diff --git a/CHANGELOG.md b/CHANGELOG.md index 99b77a71a95..4a8a7e7d438 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## 6.1.0 (July 02, 2024) + +### Added +- Support for MySQL Homogenous Migration support +- Support for Generative AI Service - Lora Fine-Tuning Method +- Support for Resource Scheduler +- Support for File Storage: Clone detach feature +- Support for Oracle Exadata Database Service on Exascale Infrastructure | ExaDB-XS +- Support for JMS Implement management resource for advancedFeatureConfiguration +- Support for Terraform integration for MHS: Manual Cross region backup copy +### Bug Fix +- formatted database migration code +- tagging in management_agent + ## 6.0.0 (June 26, 2024) ### Added diff --git a/examples/database/db_systems/db_exadbxs/datasources.tf b/examples/database/db_systems/db_exadbxs/datasources.tf new file mode 100644 index 00000000000..3297dbe7e0c --- /dev/null +++ b/examples/database/db_systems/db_exadbxs/datasources.tf @@ -0,0 +1,35 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +data "oci_identity_availability_domains" "test_availability_domains" { + compartment_id = var.tenancy_ocid +} + +locals { + ad = data.oci_identity_availability_domains.test_availability_domains.availability_domains.0.name +} + +data "oci_database_backups" "test_database_backups_by_exadbxs" { + compartment_id = var.compartment_ocid + shape_family = "EXADB_XS" +} + +data "oci_database_gi_versions" "test_gi_versions" { + #Required + compartment_id = var.compartment_ocid + #Optional + shape = "ExaDbXS" + availability_domain = local.ad +} + +data "oci_database_gi_version_minor_versions" "test_gi_minor_versions" { + #Required + version = data.oci_database_gi_versions.test_gi_versions.gi_versions[0].version + #Optional + compartment_id = data.oci_database_gi_versions.test_gi_versions.compartment_id + availability_domain = data.oci_database_gi_versions.test_gi_versions.availability_domain + shape_family = "EXADB_XS" + shape = data.oci_database_gi_versions.test_gi_versions.shape + is_gi_version_for_provisioning = false +} + diff --git a/examples/database/db_systems/db_exadbxs/exadb_vm_cluster.tf b/examples/database/db_systems/db_exadbxs/exadb_vm_cluster.tf new file mode 100644 index 00000000000..45fe5a392ee --- /dev/null +++ b/examples/database/db_systems/db_exadbxs/exadb_vm_cluster.tf @@ -0,0 +1,49 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +resource "oci_database_exadb_vm_cluster" "test_exadb_vm_cluster" { + + #Required + availability_domain = local.ad + compartment_id = var.compartment_ocid + display_name = "ExampleExadbVmCluster" + exascale_db_storage_vault_id = oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault.id + grid_image_id = data.oci_database_gi_version_minor_versions.test_gi_minor_versions.gi_minor_versions[0].grid_image_id + hostname = "apollo" + cluster_name = "apollo" + shape = "EXADBXS" + ssh_public_keys = [var.ssh_public_key] + subnet_id = oci_core_subnet.exadbxs_client_subnet.id + backup_subnet_id = oci_core_subnet.exadbxs_backup_subnet.id + + node_config { + enabled_ecpu_count_per_node = "8" + total_ecpu_count_per_node = "16" + vm_file_system_storage_size_gbs_per_node = "293" + } + + node_resource { + node_name = "node1" + } + + node_resource { + node_name = "node2" + } + + node_resource { + node_name = "node3" + } + +} + +data "oci_database_exadb_vm_clusters" "test_exadb_vm_clusters" { + #Required + compartment_id = var.compartment_ocid + #Optional + exascale_db_storage_vault_id = oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault.id +} + +data "oci_database_exadb_vm_cluster" "test_exadb_vm_cluster" { + #Required + exadb_vm_cluster_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id +} \ No newline at end of file diff --git a/examples/database/db_systems/db_exadbxs/exadb_vm_cluster_database.tf b/examples/database/db_systems/db_exadbxs/exadb_vm_cluster_database.tf new file mode 100644 index 00000000000..02b3edfaa22 --- /dev/null +++ b/examples/database/db_systems/db_exadbxs/exadb_vm_cluster_database.tf @@ -0,0 +1,67 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +resource "oci_database_db_home" "test_db_home" { + display_name = "ExampleExaDbVmDbHome" + db_system_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id + db_version = "23.4.0.24.05" +} + +resource "oci_database_database" "test_db1" { + database { + admin_password = var.test_db_password + db_name = "TFDB1" + } + db_home_id = oci_database_db_home.test_db_home.id + source = "NONE" +} + +resource "oci_database_database" "test_db2" { + database { + admin_password = var.test_db_password + db_name = "TFDB2" + } + db_home_id = oci_database_db_home.test_db_home.id + source = "NONE" +} + +resource "oci_database_pluggable_database" "test_db1_pdb" { + container_database_id = oci_database_database.test_db1.id + pdb_name = "DB1PDB" + pdb_admin_password = var.test_db_password + tde_wallet_password = var.test_db_password +} + +resource "oci_database_pluggable_database" "test_db1_local_cloned_pdb" { + container_database_id = oci_database_database.test_db1.id + pdb_name = "DB1LocalThinClonedPDB" + pdb_admin_password = var.test_db_password + tde_wallet_password = var.test_db_password + pdb_creation_type_details { + creation_type = "LOCAL_CLONE_PDB" + source_pluggable_database_id = oci_database_pluggable_database.test_db1_pdb.id + is_thin_clone = true + } +} + +# resource "oci_database_pluggable_database" "test_db2_remote_cloned_pdb" { +# container_database_id = oci_database_database.test_db2.id +# pdb_name = "DB2RemoteThinClonedPDB" +# pdb_admin_password = var.test_db_password +# tde_wallet_password = var.test_db_password +# pdb_creation_type_details { +# creation_type = "REMOTE_CLONE_PDB" +# source_container_database_admin_password = var.test_db_password +# source_pluggable_database_id = oci_database_pluggable_database.test_db1_pdb.id +# is_thin_clone = true +# } +# } + +data "oci_database_pluggable_databases" "test_pdbs" { + compartment_id = var.compartment_ocid + state = "AVAILABLE" +} + +data "oci_database_pluggable_database" "test_db1_local_cloned_pdb" { + pluggable_database_id = oci_database_pluggable_database.test_db1_local_cloned_pdb.id +} \ No newline at end of file diff --git a/examples/database/db_systems/db_exadbxs/exadb_vm_cluster_db_node.tf b/examples/database/db_systems/db_exadbxs/exadb_vm_cluster_db_node.tf new file mode 100644 index 00000000000..6dfa898bb8d --- /dev/null +++ b/examples/database/db_systems/db_exadbxs/exadb_vm_cluster_db_node.tf @@ -0,0 +1,13 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +# Get db node list +data "oci_database_db_nodes" "test_exadb_vm_cluster_db_nodes" { + compartment_id = var.compartment_ocid + vm_cluster_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id +} + +# Get db node details +data "oci_database_db_node" "test_exadb_vm_cluster_db_node" { + db_node_id = data.oci_database_db_nodes.test_exadb_vm_cluster_db_nodes.db_nodes[0].id +} \ No newline at end of file diff --git a/examples/database/db_systems/db_exadbxs/exadb_vm_cluster_update_history_entries.tf b/examples/database/db_systems/db_exadbxs/exadb_vm_cluster_update_history_entries.tf new file mode 100644 index 00000000000..fd2c3c59537 --- /dev/null +++ b/examples/database/db_systems/db_exadbxs/exadb_vm_cluster_update_history_entries.tf @@ -0,0 +1,13 @@ +data "oci_database_exadb_vm_cluster_update_history_entries" "test_exadb_vm_cluster_update_history_entries" { + #Required + exadb_vm_cluster_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id + #Optional + update_type = "OS_UPDATE" +} + +data "oci_database_exadb_vm_cluster_update_history_entry" "test_exadb_vm_cluster_update_history_entry" { + #Required + exadb_vm_cluster_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id + #Optional + update_history_entry_id = data.oci_database_exadb_vm_cluster_update_history_entries.test_exadb_vm_cluster_update_history_entries.exadb_vm_cluster_update_history_entries[0].id +} \ No newline at end of file diff --git a/examples/database/db_systems/db_exadbxs/exadb_vm_cluster_updates.tf b/examples/database/db_systems/db_exadbxs/exadb_vm_cluster_updates.tf new file mode 100644 index 00000000000..65dee24aab4 --- /dev/null +++ b/examples/database/db_systems/db_exadbxs/exadb_vm_cluster_updates.tf @@ -0,0 +1,12 @@ +data "oci_database_exadb_vm_cluster_updates" "test_exadb_vm_cluster_updates" { + #Required + exadb_vm_cluster_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id + #Optional + update_type = "GI_PATCH" +} + +data "oci_database_exadb_vm_cluster_update" "test_exadb_vm_cluster_update" { + #Required + exadb_vm_cluster_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id + update_id = data.oci_database_exadb_vm_cluster_updates.test_exadb_vm_cluster_updates.exadb_vm_cluster_updates[0].id +} \ No newline at end of file diff --git a/examples/database/db_systems/db_exadbxs/exascale_db_storage_vault.tf b/examples/database/db_systems/db_exadbxs/exascale_db_storage_vault.tf new file mode 100644 index 00000000000..0be87be8925 --- /dev/null +++ b/examples/database/db_systems/db_exadbxs/exascale_db_storage_vault.tf @@ -0,0 +1,23 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +resource "oci_database_exascale_db_storage_vault" "test_exascale_db_storage_vault" { + #Required + availability_domain = local.ad + compartment_id = var.compartment_ocid + display_name = "ExampleExascaleDbStorageVault" + high_capacity_database_storage { + total_size_in_gbs = 800 + } + additional_flash_cache_in_percent = 20 +} + +data "oci_database_exascale_db_storage_vaults" "test_exascale_db_storage_vaults" { + #Required + compartment_id = var.compartment_ocid +} + +data "oci_database_exascale_db_storage_vault" "test_exascale_db_storage_vault" { + #Required + exascale_db_storage_vault_id = oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault.id +} \ No newline at end of file diff --git a/examples/database/db_systems/db_exadbxs/network.tf b/examples/database/db_systems/db_exadbxs/network.tf new file mode 100644 index 00000000000..582ef7cba89 --- /dev/null +++ b/examples/database/db_systems/db_exadbxs/network.tf @@ -0,0 +1,79 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +resource "oci_core_virtual_network" "exadbxs_vcn" { + compartment_id = var.compartment_ocid + cidr_blocks = ["10.1.0.0/16"] + display_name = "exadbxs-tf-vcn" + dns_label = "tfvcn" +} + +resource "oci_core_internet_gateway" "exadbxs_igw" { + compartment_id = var.compartment_ocid + vcn_id = oci_core_virtual_network.exadbxs_vcn.id + display_name = "exadbxs-tf-igw" +} + +resource "oci_core_route_table" "exadbxs_rt" { + compartment_id = var.compartment_ocid + vcn_id = oci_core_virtual_network.exadbxs_vcn.id + display_name = "exadbxs-tf-route-table" + route_rules { + destination = "0.0.0.0/0" + destination_type = "CIDR_BLOCK" + network_entity_id = oci_core_internet_gateway.exadbxs_igw.id + } +} + +resource "oci_core_subnet" "exadbxs_client_subnet" { + cidr_block = "10.1.20.0/24" + compartment_id = var.compartment_ocid + vcn_id = oci_core_virtual_network.exadbxs_vcn.id + route_table_id = oci_core_route_table.exadbxs_rt.id + security_list_ids = [ + oci_core_virtual_network.exadbxs_vcn.default_security_list_id, + oci_core_security_list.exadbxs_security_list.id + ] + dns_label = "tfclientsub" + display_name = "exadbxs-tf-client-subnet" +} + +resource "oci_core_subnet" "exadbxs_backup_subnet" { + cidr_block = "10.1.21.0/24" + compartment_id = var.compartment_ocid + vcn_id = oci_core_virtual_network.exadbxs_vcn.id + route_table_id = oci_core_route_table.exadbxs_rt.id + dns_label = "tfbackupsub" + display_name = "exadbxs-tf-backup-subnet" +} + +resource "oci_core_security_list" "exadbxs_security_list" { + compartment_id = var.compartment_ocid + vcn_id = oci_core_virtual_network.exadbxs_vcn.id + display_name = "exadbxs-security-list" + + ingress_security_rules { + source = "10.1.22.0/24" + protocol = "6" + } + + ingress_security_rules { + source = "10.1.22.0/24" + protocol = "1" + } + + ingress_security_rules { + source = "10.1.22.0/24" + protocol = "all" + } + + egress_security_rules { + destination = "10.1.22.0/24" + protocol = "6" + } + + egress_security_rules { + destination = "10.1.22.0/24" + protocol = "1" + } +} \ No newline at end of file diff --git a/examples/database/db_systems/db_exadbxs/provider.tf b/examples/database/db_systems/db_exadbxs/provider.tf new file mode 100644 index 00000000000..f7d79ec5a41 --- /dev/null +++ b/examples/database/db_systems/db_exadbxs/provider.tf @@ -0,0 +1,8 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +provider "oci" { + auth = var.auth + config_file_profile = var.config_file_profile + region = var.region +} diff --git a/examples/database/db_systems/db_exadbxs/variables.tf b/examples/database/db_systems/db_exadbxs/variables.tf new file mode 100644 index 00000000000..f93f9f18c66 --- /dev/null +++ b/examples/database/db_systems/db_exadbxs/variables.tf @@ -0,0 +1,22 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +variable "tenancy_ocid" {} +variable "region" {} +variable "compartment_ocid" {} +variable "config_file_profile" {} +variable "auth" { + default = "SecurityToken" +} + +variable "ssh_public_key" { + default = "" +} + +variable "db_name" { + default = "TFDB" +} + +variable "test_db_password" { + default = "BEstrO0ng_#11" +} \ No newline at end of file diff --git a/examples/databasemigration/migration/migration.tf b/examples/databasemigration/migration/migration.tf index 60c97fff62a..c579c8742ce 100644 --- a/examples/databasemigration/migration/migration.tf +++ b/examples/databasemigration/migration/migration.tf @@ -96,19 +96,11 @@ resource "oci_core_vcn" "test_vcn" { compartment_id = var.compartment_id } -data "oci_database_migration_jobs" "test_jobs" { - display_name = "displayName" - filter { - name = "TF_id" - values = [ - "jobId"] - } - migration_id = "migrationId" - state = "Succeeded" +variable "jobId" { + default = "" } - data "oci_database_migration_job" "test_job" { - job_id = "jobId" + job_id = var.jobId } data "oci_database_migration_agent" "test_agent" { @@ -121,37 +113,43 @@ data "oci_database_migration_migrations" "test_migrations" { } data "oci_database_migration_job_advisor_report" "test_job_advisor_report" { - job_id = "jobId" + job_id = var.jobId } data "oci_database_migration_job_output" "test_job_output" { - job_id = "jobId" + job_id = var.jobId } data "oci_database_migration_migration_object_types" "test_migration_object_types" { + connection_type = "MYSQL" } data "oci_database_migration_agent_images" "test_agent_images" {} resource "oci_database_migration_connection" "test_connection_target" { - admin_credentials { - password = random_string.autonomous_database_admin_password.result - username = "admin" - } compartment_id = var.compartment_id database_id = var.database_id - database_type = "AUTONOMOUS" display_name = "TF_display_test_create" - private_endpoint { - compartment_id = var.compartment_id - subnet_id = var.subnet_id - vcn_id = var.vcn_id - } - vault_details { - compartment_id = var.compartment_id - key_id = var.kms_key_id - vault_id = var.kms_vault_id - } + + connection_type = "MYSQL" + key_id = var.kms_key_id + vault_id = var.kms_vault_id + password = "BEstrO0ng_#11" + technology_type = "AMAZON_RDS_MYSQL" + username = "ggfe" + database_name = "ggfe" + host = "254.249.0.0" + port = "3306" + replication_password="replicationPassword" + replication_username="replicationUsername" + security_protocol="PLAIN" + ssh_host = "sshHost" + ssh_key = "sshKey" + ssh_sudo_location = "sshSudoLocation" + ssh_user = "sshUser" + subnet_id = var.subnet_id + wallet = "wallet2" + } data "oci_identity_availability_domains" "test_availability_domains" { @@ -159,256 +157,47 @@ data "oci_identity_availability_domains" "test_availability_domains" { } resource "oci_database_migration_connection" "test_connection_source" { - admin_credentials { - password = "ORcl##4567890" - username = "admin" - } compartment_id = var.compartment_id - connect_descriptor { - connect_string = "(description=(address=(port=1521)(host=10.2.2.17))(connect_data=(service_name=pdb0107svc.dbsubnet.gghubvcn.oraclevcn.com)))" - } - database_type = "MANUAL" display_name = "TF_display_test_create_source" - ssh_details { - host = "10.2.2.17" - sshkey = var.ssh_key - sudo_location = "/usr/bin/sudo" - user = "opc" - } - vault_details { - compartment_id = var.compartment_id - key_id = var.kms_key_id - vault_id = var.kms_vault_id - } -} - -resource "oci_database_migration_connection" "test_connection_source_rds" { - admin_credentials { - password = "ORcl##4567890" - username = "admin" - } - compartment_id = var.compartment_id - connect_descriptor { - connect_string = "(description=(address=(port=1521)(host=10.2.2.17))(connect_data=(service_name=pdb0107svc.dbsubnet.gghubvcn.oraclevcn.com)))" - } - database_type = "MANUAL" - manual_database_sub_type = "RDS_ORACLE" - display_name = "TF_display_test_create_source_rds" - vault_details { - compartment_id = var.compartment_id - key_id = var.kms_key_id - vault_id = var.kms_vault_id - } -} - -resource "oci_database_migration_connection" "test_connection_source_no_ssh" { - admin_credentials { - password = "ORcl##4567890" - username = "admin" - } - compartment_id = var.compartment_id - database_type = "USER_MANAGED_OCI" - database_id = var.src_database_id - display_name = "TF_display_test_create_source" - - connect_descriptor { - connect_string = "(description=(address=(port=1521)(host=10.0.0.42))(connect_data=(service_name=pdb.sub10311806420.vcntesttf.oraclevcn.com)))" - } - vault_details { - compartment_id = var.compartment_id - key_id = var.kms_key_id - vault_id = var.kms_vault_id - } -} - -resource "oci_database_migration_connection" "test_connection_target_usr_managed_oci" { - admin_credentials { - password = random_string.autonomous_database_admin_password.result - username = "admin" - } - compartment_id = var.compartment_id - database_type = "USER_MANAGED_OCI" - database_id = var.tgt_database_id - display_name = "TF_display_test_create_target" - - connect_descriptor { - connect_string = "(description=(address=(port=1521)(host=10.0.0.42))(connect_data=(service_name=pdb.sub10311806420.vcntesttf.oraclevcn.com)))" - } - vault_details { - compartment_id = var.compartment_id - key_id = var.kms_key_id - vault_id = var.kms_vault_id - } + connection_type = "MYSQL" + key_id = var.kms_key_id + vault_id = var.kms_vault_id + password = "BEstrO0ng_#11" + technology_type = "AMAZON_RDS_MYSQL" + username = "ggfe" + database_id = var.database_mysql_id + database_name = "ggfe" + host = "254.249.0.0" + port = "3306" + replication_password="replicationPassword" + replication_username="replicationUsername" + security_protocol="PLAIN" + ssh_host = "sshHost" + ssh_key = "sshKey" + ssh_sudo_location = "sshSudoLocation" + ssh_user = "sshUser" + subnet_id = var.subnet_id + wallet = "wallet2" + +} + +variable "database_mysql_id" { + default = "" } -variable "secret_access_key" { +variable "source_connection_mysql_id" { default = "" } -variable "access_key_id" { +variable "target_connection_mysql_id" { default = "" } resource "oci_database_migration_migration" "test_migration" { compartment_id = var.compartment_id - - #csvText - Optional - //csv_text = "MY_BIZZ,SRC_CITY,TABLE,EXCLUDE" - golden_gate_service_details { - settings { - acceptable_lag = "10" - extract { - long_trans_duration = "10" - performance_profile = "LOW" - } - } - } - data_transfer_medium_details { - object_storage_details { - bucket = "bucket" - namespace = "namespace" - } - } - data_transfer_medium_details_v2 { - type = "AWS_S3" - access_key_id = var.access_key_id - object_storage_bucket { - bucket = "bucket" - namespace = "namespace" - } - name = "AWS-S3" - region = "Ashburn" - secret_access_key = var.secret_access_key - } - datapump_settings { - export_directory_object { - name = "test_export_dir" - path = "/u01/app/oracle/product/19.0.0.0/dbhome_1/rdbms/log" - } - metadata_remaps { - new_value = "DATA" - old_value = "USERS" - type = "TABLESPACE" - } - } - exclude_objects { - object = ".*" - owner = "owner" - is_omit_excluded_table_from_replication = "false" - type = "ALL" - } - golden_gate_details { - hub { - rest_admin_credentials { - password = random_string.autonomous_database_admin_password.result - username = "oggadmin" - } - source_container_db_admin_credentials { - password = random_string.autonomous_database_admin_password.result - username = "c##ggadmin" - } - source_db_admin_credentials { - password = random_string.autonomous_database_admin_password.result - username = "ggadmin" - } - source_microservices_deployment_name = "Target" - target_db_admin_credentials { - password = random_string.autonomous_database_admin_password.result - username = "ggadmin" - } - target_microservices_deployment_name = "Target" - url = "https://10.0.0.0" - } - } - source_database_connection_id = var.source_connection_id - source_container_database_connection_id = var.source_connection_container_id - target_database_connection_id = var.target_connection_id + database_combination = "MYSQL" + source_database_connection_id = var.source_connection_mysql_id + target_database_connection_id = var.target_connection_mysql_id type = "ONLINE" - vault_details { - compartment_id = var.compartment_id - key_id = var.kms_key_id - vault_id = var.kms_vault_id - } -} - -resource "oci_database_migration_migration" "test_migration_rds" { - compartment_id = var.compartment_id - - golden_gate_service_details { - settings { - acceptable_lag = "10" - extract { - long_trans_duration = "10" - performance_profile = "LOW" - } - } - } - data_transfer_medium_details_v2 { - type = "OBJECT_STORAGE" - } - datapump_settings { - export_directory_object { - name = "test_export_dir" - path = "/u01/app/oracle/product/19.0.0.0/dbhome_1/rdbms/log" - } - metadata_remaps { - new_value = "DATA" - old_value = "USERS" - type = "TABLESPACE" - } - } - exclude_objects { - object = ".*" - owner = "owner" - is_omit_excluded_table_from_replication = "false" - type = "ALL" - } - source_database_connection_id = var.source_connection_rds_id - target_database_connection_id = var.target_connection_id - type = "ONLINE" - vault_details { - compartment_id = var.compartment_id - key_id = var.kms_key_id - vault_id = var.kms_vault_id - } -} - -resource "oci_database_migration_migration" "test_no_ssh_migration" { - compartment_id = var.compartment_id - source_database_connection_id = oci_database_migration_connection.test_connection_source_no_ssh.id - target_database_connection_id = oci_database_migration_connection.test_connection_target_usr_managed_oci.id - type = "OFFLINE" - data_transfer_medium_details { - object_storage_details { - bucket = var.bucket_id - namespace = "namespace" - } - } - datapump_settings { - export_directory_object { - name = "test_export_dir" - path = "/u01/app/oracle/product/19.0.0.0/dbhome_1/rdbms/log" - } - import_directory_object { - name = "test_export_dir" - path = "/u01/app/oracle/product/19.0.0.0/dbhome_1/rdbms/log" - } - } - vault_details { - compartment_id = var.compartment_id - key_id = var.kms_key_id - vault_id = var.kms_vault_id - } - dump_transfer_details { - source { - kind = "OCI_CLI" - oci_home = "ociHome" - wallet_location = "wallet_location" - } - target { - kind = "OCI_CLI" - oci_home = "ociHome" - wallet_location = "wallet_location" - } - } + display_name = "displayName" } output "password" { diff --git a/examples/generative_ai/dadicated_ai_cluster.tf b/examples/generative_ai/dadicated_ai_cluster.tf index 7d4808b4046..dc18775525b 100644 --- a/examples/generative_ai/dadicated_ai_cluster.tf +++ b/examples/generative_ai/dadicated_ai_cluster.tf @@ -29,6 +29,19 @@ resource "oci_generative_ai_dedicated_ai_cluster" "test_fine_tuning_cluster" { freeform_tags = var.test_freeform_tags } +resource "oci_generative_ai_dedicated_ai_cluster" "test_dedicated_ai_cluster_large_generic" { + #Required + type = "FINE_TUNING" + compartment_id = var.compartment_ocid + unit_count = var.fine_tuning_cluster_unit_count + unit_shape = var.fine_tuning_large_generic_cluster_shape + + #Optional + display_name = var.llama_fine_tuning_cluster_display_name + description = var.fine_tuning_cluster_description + freeform_tags = var.test_freeform_tags +} + data "oci_generative_ai_dedicated_ai_cluster" "test_hosting_cluster" { #Required dedicated_ai_cluster_id = oci_generative_ai_dedicated_ai_cluster.test_hosting_cluster.id @@ -39,6 +52,12 @@ data "oci_generative_ai_dedicated_ai_cluster" "test_fine_tuning_cluster" { dedicated_ai_cluster_id = oci_generative_ai_dedicated_ai_cluster.test_fine_tuning_cluster.id } + +data "oci_generative_ai_dedicated_ai_cluster" "test_dedicated_ai_cluster_large_generic" { + #Required + dedicated_ai_cluster_id = oci_generative_ai_dedicated_ai_cluster.test_dedicated_ai_cluster_large_generic.id +} + data "oci_generative_ai_dedicated_ai_clusters" "test_clusters" { #Required compartment_id = var.compartment_ocid diff --git a/examples/generative_ai/model.tf b/examples/generative_ai/model.tf index 6afa28e21e5..67879b1321b 100644 --- a/examples/generative_ai/model.tf +++ b/examples/generative_ai/model.tf @@ -1,3 +1,38 @@ +resource "oci_generative_ai_model" "llama3_test_model" { + #Required + compartment_id = var.compartment_ocid + base_model_id = local.llama_base_model_id + fine_tune_details { + dedicated_ai_cluster_id = data.oci_generative_ai_dedicated_ai_cluster.test_dedicated_ai_cluster_large_generic.id + training_dataset { + bucket = oci_objectstorage_bucket.fine_tune_bucket.name + dataset_type = "OBJECT_STORAGE" + namespace = data.oci_objectstorage_namespace.ns.namespace + object = oci_objectstorage_object.fine_tune_object.object + } + training_config { + training_config_type = "LORA_TRAINING_CONFIG" + total_training_epochs = "3" + learning_rate = "0.0002" + training_batch_size = "8" + early_stopping_patience = "15" + early_stopping_threshold = "0.0001" + log_model_metrics_interval_in_steps = "10" + lora_r = "8" + lora_alpha = "8" + lora_dropout = "0.1" + } + } + + #Optional + display_name = var.llama3_test_model_display_name + description = var.test_model_description + vendor = var.test_model_vendor + version = var.test_model_version + #defined_tags not tested - cannot test in home region + freeform_tags = var.test_freeform_tags +} + resource "oci_generative_ai_model" "test_model" { #Required compartment_id = var.compartment_ocid @@ -20,7 +55,7 @@ resource "oci_generative_ai_model" "test_model" { description = var.test_model_description vendor = var.test_model_vendor version = var.test_model_version - #defined_tags not tested - cannot test in home region + #defined_tags not tested - cannot test in home region freeform_tags = var.test_freeform_tags } @@ -46,9 +81,22 @@ locals { ] cohere_base_model_id = local.filtered_base_models[0].id + + llama_filtered_models = [ + for item in data.oci_generative_ai_models.llama_base_models.model_collection[0].items : item + if ( + (item.version == "1.0.0") + && contains(item.capabilities, "FINE_TUNE") + && (item.display_name == "meta.llama-3-70b-instruct") + ) + ] + + llama_base_model_id = local.llama_filtered_models[0].id } - +data "oci_generative_ai_models" "llama_base_models" { + compartment_id = var.compartment_ocid +} data "oci_generative_ai_models" "base_models" { compartment_id = var.compartment_ocid diff --git a/examples/generative_ai/variables.tf b/examples/generative_ai/variables.tf index b4fa26d589a..82cc3ed51ac 100644 --- a/examples/generative_ai/variables.tf +++ b/examples/generative_ai/variables.tf @@ -21,6 +21,10 @@ variable "fine_tuning_cluster_display_name" { default = "fine_tuning_cluster" } +variable "llama_fine_tuning_cluster_display_name" { + default = "fine_tuning_cluster_large_generic" +} + variable "fine_tuning_cluster_description" { default = "this is a fine tuning cluster" } @@ -29,6 +33,10 @@ variable "fine_tuning_cluster_shape" { default = "SMALL_COHERE" } +variable "fine_tuning_large_generic_cluster_shape" { + default = "LARGE_GENERIC" +} + variable "fine_tuning_cluster_unit_count" { default = "2" } @@ -45,6 +53,10 @@ variable "test_model_display_name" { default = "test_model" } +variable "llama3_test_model_display_name" { + default = "llama3_test_model" +} + variable "test_model_description" { default = "test model" } diff --git a/examples/management_agent/management_agent.tf b/examples/management_agent/management_agent.tf index a63d5e26001..552205819c8 100644 --- a/examples/management_agent/management_agent.tf +++ b/examples/management_agent/management_agent.tf @@ -2,9 +2,6 @@ // Licensed under the Mozilla Public License v2.0 variable "tenancy_ocid" {} -variable "user_ocid" {} -variable "fingerprint" {} -variable "private_key_path" {} variable "region" {} variable "compartment_ocid" {} variable "root_compartment_ocid" {} @@ -17,9 +14,8 @@ variable "subnet" { } provider "oci" { tenancy_ocid = var.tenancy_ocid - user_ocid = var.user_ocid - fingerprint = var.fingerprint - private_key_path = var.private_key_path + auth = "SecurityToken" + config_file_profile = "terraform-federation-test" region = var.region } @@ -40,6 +36,8 @@ resource "oci_management_agent_management_agent" "test_management_agent" { #Optional deploy_plugins_id = [data.oci_management_agent_management_agent_plugins.test_management_agent_plugins.management_agent_plugins.1.id] + freeform_tags = {"tagKey":"tagValue"} + } @@ -188,4 +186,8 @@ resource "oci_management_agent_management_agent" "test_compute_management_agent" freeform_tags = { "TestingTag" : "TestingValue" } managed_agent_id = data.oci_management_agent_management_agents.find_compute_agent.management_agents[0].id deploy_plugins_id = [data.oci_management_agent_management_agent_plugins.test_management_agent_plugins.management_agent_plugins.0.id] +} + +output "updated_agent" { + value = data.oci_management_agent_management_agents.find_agent.management_agents[0].id } \ No newline at end of file diff --git a/examples/resourcescheduler/description.md b/examples/resourcescheduler/description.md new file mode 100644 index 00000000000..3e0487560db --- /dev/null +++ b/examples/resourcescheduler/description.md @@ -0,0 +1,4 @@ +# Overview +This is a Terraform configuration that creates the Resource Scheduler service on Oracle Cloud Infrastructure. + +The Terraform code is used to create a Resource Scheduler, that creates the required resources and configures the application on the created resources. diff --git a/examples/resourcescheduler/main.tf b/examples/resourcescheduler/main.tf new file mode 100644 index 00000000000..1f49d0c7bdd --- /dev/null +++ b/examples/resourcescheduler/main.tf @@ -0,0 +1,138 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +variable "tenancy_ocid" {} +variable "user_ocid" {} +variable "fingerprint" {} +variable "private_key_path" {} +variable "region" {} +variable "compartment_id" {} + +variable "schedule_action" { + default = "START_RESOURCE" +} + +variable "schedule_defined_tags_value" { + default = "value" +} + +variable "schedule_description" { + default = "description" +} + +variable "schedule_display_name" { + default = "displayName" +} + +variable "schedule_freeform_tags" { + default = { "Department" = "Finance" } +} + +variable "schedule_recurrence_details" { + default = "recurrenceDetails" +} + +variable "schedule_recurrence_type" { + default = "CRON" +} + +variable "schedule_resource_filters_attribute" { + default = "COMPARTMENT_ID" +} + +variable "schedule_resource_filters_condition" { + default = "EQUAL" +} + +variable "schedule_resource_filters_should_include_child_compartments" { + default = false +} + +variable "schedule_resource_filters_value_namespace" { + default = "namespace" +} + +variable "schedule_resource_filters_value_tag_key" { + default = "tagKey" +} + +variable "schedule_resource_filters_value_value" { + default = "value" +} + +variable "schedule_resources_id" { + default = "id" +} + +variable "schedule_resources_metadata" { + default = "metadata" +} + +variable "schedule_state" { + default = "AVAILABLE" +} + +variable "schedule_time_ends" { + default = "timeEnds" +} + +variable "schedule_time_starts" { + default = "timeStarts" +} + + + +provider "oci" { + tenancy_ocid = var.tenancy_ocid + user_ocid = var.user_ocid + fingerprint = var.fingerprint + private_key_path = var.private_key_path + region = var.region +} + +resource "oci_resource_scheduler_schedule" "test_schedule" { + #Required + action = var.schedule_action + compartment_id = var.compartment_id + recurrence_details = var.schedule_recurrence_details + recurrence_type = var.schedule_recurrence_type + + #Optional + defined_tags = map(oci_identity_tag_namespace.tag-namespace1.name.oci_identity_tag.tag1.name, var.schedule_defined_tags_value) + description = var.schedule_description + display_name = var.schedule_display_name + freeform_tags = var.schedule_freeform_tags + resource_filters { + #Required + attribute = var.schedule_resource_filters_attribute + + #Optional + condition = var.schedule_resource_filters_condition + should_include_child_compartments = var.schedule_resource_filters_should_include_child_compartments + value { + + #Optional + namespace = var.schedule_resource_filters_value_namespace + tag_key = var.schedule_resource_filters_value_tag_key + value = var.schedule_resource_filters_value_value + } + } + resources { + #Required + id = var.schedule_resources_id + + #Optional + metadata = var.schedule_resources_metadata + } + time_ends = var.schedule_time_ends + time_starts = var.schedule_time_starts +} + +data "oci_resource_scheduler_schedules" "test_schedules" { + + #Optional + compartment_id = var.compartment_id + display_name = var.schedule_display_name + schedule_id = oci_resource_scheduler_schedule.test_schedule.id + state = var.schedule_state +} diff --git a/examples/storage/fss/file_system_clone.tf b/examples/storage/fss/file_system_clone.tf index dba1be71ae9..29485f46c94 100644 --- a/examples/storage/fss/file_system_clone.tf +++ b/examples/storage/fss/file_system_clone.tf @@ -19,4 +19,27 @@ resource "oci_file_storage_snapshot" "my_snapshot_clone" { #Required file_system_id = oci_file_storage_file_system.my_fs_simple.id name = var.snapshot_name_clone +} +resource "oci_file_storage_file_system" "my_fs_clone_with_detach" { + #Required + availability_domain = data.oci_identity_availability_domain.ad.name + compartment_id = var.compartment_ocid + + #Optional + display_name = var.file_system_clone_with_detach_display_name + source_snapshot_id = oci_file_storage_snapshot.my_snapshot_clone_1.id + clone_attach_status = var.clone_attach_status_value +} +resource "oci_file_storage_file_system" "my_fs_simple_1" { + #Required + availability_domain = data.oci_identity_availability_domain.ad.name + compartment_id = var.compartment_ocid + + #Optional + display_name = var.file_system_simple_1_display_name +} +resource "oci_file_storage_snapshot" "my_snapshot_clone_1" { + #Required + file_system_id = oci_file_storage_file_system.my_fs_simple_1.id + name = var.snapshot_name_clone_1 } \ No newline at end of file diff --git a/examples/storage/fss/variables.tf b/examples/storage/fss/variables.tf index 553fc4ef537..3515d7fcf48 100644 --- a/examples/storage/fss/variables.tf +++ b/examples/storage/fss/variables.tf @@ -46,10 +46,22 @@ variable "file_system_clone_display_name" { default= "my_fs_clone" } +variable "file_system_clone_with_detach_display_name" { + default= "my_fs_clone_with_detach" +} + variable "file_system_simple_display_name" { default= "my_fs_simple" } +variable "file_system_simple_1_display_name" { + default= "my_fs_simple_1" +} + +variable "clone_attach_status_value" { + default= "DETACH" +} + variable "file_system_with_snapshot_policy_display_name" { default = "my_fs_with_snapshot_policy" } @@ -82,6 +94,10 @@ variable "snapshot_name_clone" { default = "snapshot_clone" } +variable "snapshot_name_clone_1" { + default = "snapshot_clone_1" +} + variable "export_set_name_1" { default = "export set for mount target 1" } diff --git a/go.mod b/go.mod index 10b6ecf961c..cdf6cfe445b 100644 --- a/go.mod +++ b/go.mod @@ -52,7 +52,7 @@ require ( github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/oklog/run v1.0.0 // indirect - github.com/oracle/oci-go-sdk/v65 v65.68.0 + github.com/oracle/oci-go-sdk/v65 v65.69.0 github.com/pmezard/go-difflib v1.0.0 // indirect github.com/sony/gobreaker v0.5.0 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect diff --git a/go.sum b/go.sum index ad8c1e440ff..782fd12154f 100644 --- a/go.sum +++ b/go.sum @@ -140,8 +140,8 @@ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQ github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/oracle/oci-go-sdk/v65 v65.68.0 h1:4ONv3ahPcBEwTwERxjSY0xX68u7lDAEw/+xmo612uaQ= -github.com/oracle/oci-go-sdk/v65 v65.68.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= +github.com/oracle/oci-go-sdk/v65 v65.69.0 h1:DbrRf5qcpwl7V3ixk6dxDYfHtOs3aMmlsHFld3oBjMk= +github.com/oracle/oci-go-sdk/v65 v65.69.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/internal/client/resource_scheduler_clients.go b/internal/client/resource_scheduler_clients.go new file mode 100644 index 00000000000..57915490119 --- /dev/null +++ b/internal/client/resource_scheduler_clients.go @@ -0,0 +1,34 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package client + +import ( + oci_resource_scheduler "github.com/oracle/oci-go-sdk/v65/resourcescheduler" + + oci_common "github.com/oracle/oci-go-sdk/v65/common" +) + +func init() { + RegisterOracleClient("oci_resource_scheduler.ScheduleClient", &OracleClient{InitClientFn: initResourceschedulerScheduleClient}) +} + +func initResourceschedulerScheduleClient(configProvider oci_common.ConfigurationProvider, configureClient ConfigureClient, serviceClientOverrides ServiceClientOverrides) (interface{}, error) { + client, err := oci_resource_scheduler.NewScheduleClientWithConfigurationProvider(configProvider) + if err != nil { + return nil, err + } + err = configureClient(&client.BaseClient) + if err != nil { + return nil, err + } + + if serviceClientOverrides.HostUrlOverride != "" { + client.Host = serviceClientOverrides.HostUrlOverride + } + return &client, nil +} + +func (m *OracleClients) ScheduleClient() *oci_resource_scheduler.ScheduleClient { + return m.GetClient("oci_resource_scheduler.ScheduleClient").(*oci_resource_scheduler.ScheduleClient) +} diff --git a/internal/globalvar/version.go b/internal/globalvar/version.go index 3aa08720177..05b9874b125 100644 --- a/internal/globalvar/version.go +++ b/internal/globalvar/version.go @@ -7,8 +7,8 @@ import ( "log" ) -const Version = "6.0.0" -const ReleaseDate = "2024-06-29" +const Version = "6.1.0" +const ReleaseDate = "2024-07-03" func PrintVersion() { log.Printf("[INFO] terraform-provider-oci %s\n", Version) diff --git a/internal/integrationtest/database_backup_test.go b/internal/integrationtest/database_backup_test.go index af7b2ddac44..5e8b195fe8d 100644 --- a/internal/integrationtest/database_backup_test.go +++ b/internal/integrationtest/database_backup_test.go @@ -28,6 +28,11 @@ import ( var ( BackupRequiredOnlyResource = acctest.GenerateResourceFromRepresentationMap("oci_database_backup", "test_backup", acctest.Required, acctest.Create, DatabaseBackupRepresentation) + DatabaseBackupFilterByShapeDataSourceRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.compartment_id}`}, + "shape_family": acctest.Representation{RepType: acctest.Optional, Create: `EXADB_XS`}, + } + DatabaseDatabaseBackupDataSourceRepresentation = map[string]interface{}{ "database_id": acctest.Representation{RepType: acctest.Optional, Create: `${data.oci_database_databases.db.databases.0.id}`}, "filter": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatabaseBackupDataSourceFilterRepresentation}} @@ -160,6 +165,7 @@ func TestDatabaseBackupResource_basic(t *testing.T) { acctest.GenerateResourceFromRepresentationMap("oci_database_backup", "test_backup", acctest.Optional, acctest.Update, DatabaseBackupRepresentation), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttrSet(datasourceName, "database_id"), + resource.TestCheckResourceAttr(datasourceName, "shape_family", "SINGLENODE"), resource.TestCheckResourceAttr(datasourceName, "backups.#", "1"), resource.TestCheckResourceAttrSet(datasourceName, "backups.0.availability_domain"), @@ -194,6 +200,49 @@ func TestDatabaseBackupResource_basic(t *testing.T) { }) } +// issue-routing-tag: database/default +func TestDatabaseBackupListByShapeFamily_basic(t *testing.T) { + httpreplay.SetScenario("TestDatabaseBackupListByShapeFamily_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + datasourceName := "data.oci_database_backups.test_backups" + + acctest.SaveConfigContent("", "", "", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + + // verify datasource + { + Config: config + compartmentIdVariableStr + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_backups", "test_backups", acctest.Optional, acctest.Update, DatabaseBackupFilterByShapeDataSourceRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(datasourceName, "shape_family", "EXADB_XS"), + resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), + + resource.TestCheckResourceAttr(datasourceName, "backups.#", "12"), + resource.TestCheckResourceAttrSet(datasourceName, "backups.0.availability_domain"), + resource.TestCheckResourceAttrSet(datasourceName, "backups.0.compartment_id"), + resource.TestCheckResourceAttrSet(datasourceName, "backups.0.database_edition"), + resource.TestCheckResourceAttrSet(datasourceName, "backups.0.database_id"), + resource.TestCheckResourceAttrSet(datasourceName, "backups.0.database_size_in_gbs"), + resource.TestCheckResourceAttrSet(datasourceName, "backups.0.display_name"), + resource.TestCheckResourceAttrSet(datasourceName, "backups.0.id"), + resource.TestCheckResourceAttr(datasourceName, "backups.0.shape", "ExaDbXS"), + resource.TestCheckResourceAttrSet(datasourceName, "backups.0.state"), + resource.TestCheckResourceAttrSet(datasourceName, "backups.0.time_ended"), + resource.TestCheckResourceAttrSet(datasourceName, "backups.0.time_started"), + resource.TestCheckResourceAttrSet(datasourceName, "backups.0.type"), + resource.TestCheckResourceAttrSet(datasourceName, "backups.0.version"), + ), + }, + }) +} + func testAccCheckDatabaseBackupDestroy(s *terraform.State) error { noResourceFound := true client := acctest.TestAccProvider.Meta().(*client.OracleClients).DatabaseClient() diff --git a/internal/integrationtest/database_exadb_vm_cluster_db_node_test.go b/internal/integrationtest/database_exadb_vm_cluster_db_node_test.go new file mode 100644 index 00000000000..3571ecb3390 --- /dev/null +++ b/internal/integrationtest/database_exadb_vm_cluster_db_node_test.go @@ -0,0 +1,92 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + DatabaseExadbVmClusterDbNodeSingularDataSourceRepresentation = map[string]interface{}{ + "db_node_id": acctest.Representation{RepType: acctest.Required, Create: `${data.oci_database_db_nodes.test_db_nodes.db_nodes.0.id}`}, + } + + DatabaseExadbVmClusterDbNodeDataSourceRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "state": acctest.Representation{RepType: acctest.Optional, Create: `AVAILABLE`}, + "vm_cluster_id": acctest.Representation{RepType: acctest.Required, Create: `${var.exadb_vm_cluster_id}`}, + } + + // Note: set env variable TF_VAR_exadb_vm_cluster_id before running this test + DatabaseExadbVmClusterDbNodeResourceConfig = `variable "exadb_vm_cluster_id" {}` +) + +// issue-routing-tag: database/ExaCS +func TestDatabaseExaDbVmClusterDbNodeResource_basic(t *testing.T) { + httpreplay.SetScenario("TestDatabaseExaDbVmClusterDbNodeResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + datasourceName := "data.oci_database_db_nodes.test_db_nodes" + singularDatasourceName := "data.oci_database_db_node.test_db_node" + + acctest.SaveConfigContent("", "", "", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_db_nodes", "test_db_nodes", acctest.Optional, acctest.Create, DatabaseExadbVmClusterDbNodeDataSourceRepresentation) + + compartmentIdVariableStr + DatabaseExadbVmClusterDbNodeResourceConfig, + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttrSet(datasourceName, "vm_cluster_id"), + + resource.TestCheckResourceAttrSet(datasourceName, "db_nodes.#"), + resource.TestCheckResourceAttrSet(datasourceName, "db_nodes.0.cpu_core_count"), + resource.TestCheckResourceAttrSet(datasourceName, "db_nodes.0.db_node_id"), + resource.TestCheckResourceAttrSet(datasourceName, "db_nodes.0.db_node_storage_size_in_gbs"), + resource.TestCheckResourceAttrSet(datasourceName, "db_nodes.0.db_system_id"), + resource.TestCheckResourceAttrSet(datasourceName, "db_nodes.0.hostname"), + resource.TestCheckResourceAttrSet(datasourceName, "db_nodes.0.id"), + resource.TestCheckResourceAttrSet(datasourceName, "db_nodes.0.memory_size_in_gbs"), + resource.TestCheckResourceAttrSet(datasourceName, "db_nodes.0.state"), + resource.TestCheckResourceAttrSet(datasourceName, "db_nodes.0.time_created"), + resource.TestCheckResourceAttrSet(datasourceName, "db_nodes.0.total_cpu_core_count"), + ), + }, + // verify singular datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_db_node", "test_db_node", acctest.Optional, acctest.Create, DatabaseExadbVmClusterDbNodeSingularDataSourceRepresentation) + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_db_nodes", "test_db_nodes", acctest.Optional, acctest.Create, DatabaseExadbVmClusterDbNodeDataSourceRepresentation) + + compartmentIdVariableStr + DatabaseExadbVmClusterDbNodeResourceConfig, + Check: resource.ComposeAggregateTestCheckFunc( + resource.TestCheckResourceAttrSet(singularDatasourceName, "db_node_id"), + + resource.TestCheckResourceAttrSet(singularDatasourceName, "cpu_core_count"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "db_node_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "db_node_storage_size_in_gbs"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "db_system_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "hostname"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "memory_size_in_gbs"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_created"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "total_cpu_core_count"), + ), + }, + }) +} diff --git a/internal/integrationtest/database_exadb_vm_cluster_pluggable_database_local_clone_test.go b/internal/integrationtest/database_exadb_vm_cluster_pluggable_database_local_clone_test.go new file mode 100644 index 00000000000..413466611ac --- /dev/null +++ b/internal/integrationtest/database_exadb_vm_cluster_pluggable_database_local_clone_test.go @@ -0,0 +1,148 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + ExaDbVmClusterLocalClonedPDBRequiredOnlyResource = ExaDbVmClusterLocalClonePdbResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_pluggable_database", "test_pluggable_database", acctest.Required, acctest.Create, ExaDbVmClusterLocalClonedPDBRepresentation) + + ExaDbVmClusterLocalClonedPDBSingularDataSourceRepresentation = map[string]interface{}{ + "pluggable_database_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_pluggable_database.test_pluggable_database.id}`}, + } + + ExaDbVmClusterLocalClonedPDBDataSourceRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.compartment_id}`}, + "pdb_name": acctest.Representation{RepType: acctest.Optional, Create: `LocalThinClonedPdb`}, + "state": acctest.Representation{RepType: acctest.Optional, Create: `AVAILABLE`}, + "filter": acctest.RepresentationGroup{RepType: acctest.Required, Group: ExaDbVmClusterLocalClonedPDBDataSourceFilterRepresentation}} + + ExaDbVmClusterLocalClonedPDBDataSourceFilterRepresentation = map[string]interface{}{ + "name": acctest.Representation{RepType: acctest.Required, Create: `id`}, + "values": acctest.Representation{RepType: acctest.Required, Create: []string{`${oci_database_pluggable_database.test_pluggable_database.id}`}}, + } + + ExaDbVmClusterLocalClonedPDBRepresentation = map[string]interface{}{ + "container_database_id": acctest.Representation{RepType: acctest.Required, Create: `${data.oci_database_pluggable_database.source_pdb.container_database_id}`}, + "pdb_name": acctest.Representation{RepType: acctest.Required, Create: `LocalThinClonedPdb`}, + "pdb_admin_password": acctest.Representation{RepType: acctest.Required, Create: `BEstrO0ng_#11`}, + "tde_wallet_password": acctest.Representation{RepType: acctest.Required, Create: `BEstrO0ng_#11`}, + "pdb_creation_type_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: ExaDbVmClusterLocalClonePdbCreationTypeDetailsRepresentation}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ExaDbVmClusterLocalClonePdbIgnoreDefinedTagsRepresentation}, + } + + ExaDbVmClusterLocalClonePdbCreationTypeDetailsRepresentation = map[string]interface{}{ + "creation_type": acctest.Representation{RepType: acctest.Required, Create: `LOCAL_CLONE_PDB`}, + "source_pluggable_database_id": acctest.Representation{RepType: acctest.Required, Create: `${var.source_pluggable_database_id}`}, + "is_thin_clone": acctest.Representation{RepType: acctest.Required, Create: `true`}, + } + + ExaDbVmClusterLocalClonePdbIgnoreDefinedTagsRepresentation = map[string]interface{}{ + "ignore_changes": acctest.Representation{RepType: acctest.Required, Create: []string{`defined_tags`}}, + } + + // Note: set env variable TF_VAR_source_pluggable_database_id before running this test + ExaDbVmClusterLocalCloneSourcePDBSingularDataSourceRepresentation = map[string]interface{}{ + "pluggable_database_id": acctest.Representation{RepType: acctest.Required, Create: `${var.source_pluggable_database_id}`}, + } + ExaDbVmClusterLocalClonePdbResourceDependencies = `variable "source_pluggable_database_id" {}` + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_pluggable_database", "source_pdb", acctest.Optional, acctest.Create, ExaDbVmClusterLocalCloneSourcePDBSingularDataSourceRepresentation) +) + +// issue-routing-tag: database/ExaCS +func TestDatabaseExaDbVmClusterPluggableDatabaseResource_localThinClone(t *testing.T) { + httpreplay.SetScenario("TestDatabaseExaDbVmClusterPluggableDatabaseResource_localThinClone") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + resourceName := "oci_database_pluggable_database.test_pluggable_database" + datasourceName := "data.oci_database_pluggable_databases.test_pluggable_databases" + singularDatasourceName := "data.oci_database_pluggable_database.test_pluggable_database" + + // Save TF content to Create resource with optional properties. This has to be exactly the same as the config part in the "create with optionals" step in the test. + acctest.SaveConfigContent(config+compartmentIdVariableStr+ExaDbVmClusterLocalClonePdbResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_database_pluggable_database", "test_pluggable_database", acctest.Optional, acctest.Create, ExaDbVmClusterLocalClonedPDBRepresentation), "database", "pluggableDatabase", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify Create + { + Config: config + compartmentIdVariableStr + ExaDbVmClusterLocalClonePdbResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_pluggable_database", "test_pluggable_database", acctest.Optional, acctest.Create, ExaDbVmClusterLocalClonedPDBRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "pdb_name", "LocalThinClonedPdb"), + resource.TestCheckResourceAttr(resourceName, "connection_strings.#", "1"), + resource.TestCheckResourceAttrSet(resourceName, "container_database_id"), + resource.TestCheckResourceAttr(resourceName, "pdb_admin_password", "BEstrO0ng_#11"), + resource.TestCheckResourceAttr(resourceName, "pdb_creation_type_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "pdb_creation_type_details.0.creation_type", "LOCAL_CLONE_PDB"), + resource.TestCheckResourceAttr(resourceName, "pdb_creation_type_details.0.is_thin_clone", "true"), + resource.TestCheckResourceAttrSet(resourceName, "pdb_creation_type_details.0.source_pluggable_database_id"), + ), + }, + // verify datasource + { + Config: config + compartmentIdVariableStr + ExaDbVmClusterLocalClonePdbResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_pluggable_database", "test_pluggable_database", acctest.Optional, acctest.Create, ExaDbVmClusterLocalClonedPDBRepresentation) + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_pluggable_databases", "test_pluggable_databases", acctest.Optional, acctest.Create, ExaDbVmClusterLocalClonedPDBDataSourceRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttrSet(datasourceName, "state"), + + resource.TestCheckResourceAttrSet(datasourceName, "pluggable_databases.#"), + resource.TestCheckResourceAttrSet(datasourceName, "pluggable_databases.0.id"), + resource.TestCheckResourceAttrSet(datasourceName, "pluggable_databases.0.state"), + resource.TestCheckResourceAttr(datasourceName, "pluggable_databases.0.compartment_id", compartmentId), + resource.TestCheckResourceAttr(datasourceName, "pluggable_databases.0.pdb_name", "LocalThinClonedPdb"), + resource.TestCheckResourceAttr(datasourceName, "pluggable_databases.0.connection_strings.#", "1"), + resource.TestCheckResourceAttrSet(datasourceName, "pluggable_databases.0.container_database_id"), + ), + }, + // verify singular datasource + { + Config: config + compartmentIdVariableStr + ExaDbVmClusterLocalClonePdbResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_pluggable_database", "test_pluggable_database", acctest.Optional, acctest.Create, ExaDbVmClusterLocalClonedPDBRepresentation) + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_pluggable_database", "test_pluggable_database", acctest.Required, acctest.Create, ExaDbVmClusterLocalClonedPDBSingularDataSourceRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), + resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(singularDatasourceName, "pdb_name", "LocalThinClonedPdb"), + resource.TestCheckResourceAttr(singularDatasourceName, "connection_strings.#", "1"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "container_database_id"), + ), + }, + // verify resource import + { + Config: config + ExaDbVmClusterLocalClonedPDBRequiredOnlyResource, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "pdb_admin_password", + "pdb_creation_type_details", + "tde_wallet_password", + }, + ResourceName: resourceName, + }, + { + Config: config + compartmentIdVariableStr + ExaDbVmClusterLocalClonePdbResourceDependencies, + }, + }) +} diff --git a/internal/integrationtest/database_exadb_vm_cluster_pluggable_database_remote_clone_test.go b/internal/integrationtest/database_exadb_vm_cluster_pluggable_database_remote_clone_test.go new file mode 100644 index 00000000000..fb463112510 --- /dev/null +++ b/internal/integrationtest/database_exadb_vm_cluster_pluggable_database_remote_clone_test.go @@ -0,0 +1,148 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + ExaDbVmClusterRemoteClonedPDBRequiredOnlyResource = ExaDbVmClusterRemoteClonePdbResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_pluggable_database", "test_pluggable_database", acctest.Required, acctest.Create, ExaDbVmClusterRemoteClonedPDBRepresentation) + + ExaDbVmClusterRemoteClonedPDBSingularDataSourceRepresentation = map[string]interface{}{ + "pluggable_database_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_pluggable_database.test_pluggable_database.id}`}, + } + + ExaDbVmClusterRemoteClonedPDBDataSourceRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.compartment_id}`}, + "pdb_name": acctest.Representation{RepType: acctest.Optional, Create: `RemoteThinClonedPdb`}, + "state": acctest.Representation{RepType: acctest.Optional, Create: `AVAILABLE`}, + "filter": acctest.RepresentationGroup{RepType: acctest.Required, Group: ExaDbVmClusterRemoteClonedPDBDataSourceFilterRepresentation}} + + ExaDbVmClusterRemoteClonedPDBDataSourceFilterRepresentation = map[string]interface{}{ + "name": acctest.Representation{RepType: acctest.Required, Create: `id`}, + "values": acctest.Representation{RepType: acctest.Required, Create: []string{`${oci_database_pluggable_database.test_pluggable_database.id}`}}, + } + + ExaDbVmClusterRemoteClonedPDBRepresentation = map[string]interface{}{ + "container_database_id": acctest.Representation{RepType: acctest.Required, Create: `${var.destination_database_id}`}, + "pdb_name": acctest.Representation{RepType: acctest.Required, Create: `RemoteThinClonedPdb`}, + "pdb_admin_password": acctest.Representation{RepType: acctest.Required, Create: `BEstrO0ng_#11`}, + "tde_wallet_password": acctest.Representation{RepType: acctest.Required, Create: `BEstrO0ng_#11`}, + "pdb_creation_type_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: ExaDbVmClusterRemoteClonePdbCreationTypeDetailsRepresentation}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ExaDbVmClusterRemoteClonePdbIgnoreDefinedTagsRepresentation}, + } + + ExaDbVmClusterRemoteClonePdbCreationTypeDetailsRepresentation = map[string]interface{}{ + "creation_type": acctest.Representation{RepType: acctest.Required, Create: `REMOTE_CLONE_PDB`}, + "source_container_database_admin_password": acctest.Representation{RepType: acctest.Required, Create: `BEstrO0ng_#11`}, + "source_pluggable_database_id": acctest.Representation{RepType: acctest.Required, Create: `${var.source_pluggable_database_id}`}, + "is_thin_clone": acctest.Representation{RepType: acctest.Required, Create: `true`}, + } + + ExaDbVmClusterRemoteClonePdbIgnoreDefinedTagsRepresentation = map[string]interface{}{ + "ignore_changes": acctest.Representation{RepType: acctest.Required, Create: []string{`defined_tags`}}, + } + + // Note: set env variable TF_VAR_source_pluggable_database_id and TF_VAR_destination_database_id before running this test + ExaDbVmClusterRemoteClonePdbResourceDependencies = ` + variable "source_pluggable_database_id" {} + variable "destination_database_id" {}` +) + +// issue-routing-tag: database/ExaCS +func TestDatabaseExaDbVmClusterPluggableDatabaseResource_remoteThinClone(t *testing.T) { + httpreplay.SetScenario("TestDatabaseExaDbVmClusterPluggableDatabaseResource_remoteThinClone") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + resourceName := "oci_database_pluggable_database.test_pluggable_database" + datasourceName := "data.oci_database_pluggable_databases.test_pluggable_databases" + singularDatasourceName := "data.oci_database_pluggable_database.test_pluggable_database" + + // Save TF content to Create resource with optional properties. This has to be exactly the same as the config part in the "create with optionals" step in the test. + acctest.SaveConfigContent(config+compartmentIdVariableStr+ExaDbVmClusterRemoteClonePdbResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_database_pluggable_database", "test_pluggable_database", acctest.Optional, acctest.Create, ExaDbVmClusterRemoteClonedPDBRepresentation), "database", "pluggableDatabase", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify Create + { + Config: config + compartmentIdVariableStr + ExaDbVmClusterRemoteClonePdbResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_pluggable_database", "test_pluggable_database", acctest.Optional, acctest.Create, ExaDbVmClusterRemoteClonedPDBRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "pdb_name", "RemoteThinClonedPdb"), + resource.TestCheckResourceAttr(resourceName, "connection_strings.#", "1"), + resource.TestCheckResourceAttrSet(resourceName, "container_database_id"), + resource.TestCheckResourceAttr(resourceName, "pdb_admin_password", "BEstrO0ng_#11"), + resource.TestCheckResourceAttr(resourceName, "pdb_creation_type_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "pdb_creation_type_details.0.creation_type", "REMOTE_CLONE_PDB"), + resource.TestCheckResourceAttr(resourceName, "pdb_creation_type_details.0.is_thin_clone", "true"), + resource.TestCheckResourceAttrSet(resourceName, "pdb_creation_type_details.0.source_pluggable_database_id"), + resource.TestCheckResourceAttrSet(resourceName, "pdb_creation_type_details.0.source_container_database_admin_password"), + ), + }, + // verify datasource + { + Config: config + compartmentIdVariableStr + ExaDbVmClusterRemoteClonePdbResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_pluggable_database", "test_pluggable_database", acctest.Optional, acctest.Create, ExaDbVmClusterRemoteClonedPDBRepresentation) + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_pluggable_databases", "test_pluggable_databases", acctest.Optional, acctest.Create, ExaDbVmClusterRemoteClonedPDBDataSourceRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttrSet(datasourceName, "state"), + + resource.TestCheckResourceAttrSet(datasourceName, "pluggable_databases.#"), + resource.TestCheckResourceAttrSet(datasourceName, "pluggable_databases.0.id"), + resource.TestCheckResourceAttrSet(datasourceName, "pluggable_databases.0.state"), + resource.TestCheckResourceAttr(datasourceName, "pluggable_databases.0.compartment_id", compartmentId), + resource.TestCheckResourceAttr(datasourceName, "pluggable_databases.0.pdb_name", "RemoteThinClonedPdb"), + resource.TestCheckResourceAttr(datasourceName, "pluggable_databases.0.connection_strings.#", "1"), + resource.TestCheckResourceAttrSet(datasourceName, "pluggable_databases.0.container_database_id"), + ), + }, + // verify singular datasource + { + Config: config + compartmentIdVariableStr + ExaDbVmClusterRemoteClonePdbResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_pluggable_database", "test_pluggable_database", acctest.Optional, acctest.Create, ExaDbVmClusterRemoteClonedPDBRepresentation) + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_pluggable_database", "test_pluggable_database", acctest.Required, acctest.Create, ExaDbVmClusterRemoteClonedPDBSingularDataSourceRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), + resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(singularDatasourceName, "pdb_name", "RemoteThinClonedPdb"), + resource.TestCheckResourceAttr(singularDatasourceName, "connection_strings.#", "1"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "container_database_id"), + ), + }, + // verify resource import + { + Config: config + ExaDbVmClusterRemoteClonedPDBRequiredOnlyResource, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{ + "pdb_admin_password", + "pdb_creation_type_details", + "tde_wallet_password", + }, + ResourceName: resourceName, + }, + { + Config: config + compartmentIdVariableStr + ExaDbVmClusterRemoteClonePdbResourceDependencies, + }, + }) +} diff --git a/internal/integrationtest/database_exadb_vm_cluster_test.go b/internal/integrationtest/database_exadb_vm_cluster_test.go new file mode 100644 index 00000000000..067fac22c3a --- /dev/null +++ b/internal/integrationtest/database_exadb_vm_cluster_test.go @@ -0,0 +1,795 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "context" + "fmt" + "strconv" + "testing" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + "github.com/oracle/oci-go-sdk/v65/common" + oci_database "github.com/oracle/oci-go-sdk/v65/database" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + tf_client "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/resourcediscovery" + "github.com/oracle/terraform-provider-oci/internal/tfresource" + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + DatabaseExadbVmClusterRequiredOnlyResource = DatabaseExadbVmClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Required, acctest.Create, DatabaseExadbVmClusterRepresentation) + + DatabaseExadbVmClusterResourceConfig = DatabaseExadbVmClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Optional, acctest.Update, DatabaseExadbVmClusterRepresentation) + + DatabaseExadbVmClusterSingularDataSourceRepresentation = map[string]interface{}{ + "exadb_vm_cluster_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id}`}, + } + + DatabaseExadbVmClusterDataSourceRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "display_name": acctest.Representation{RepType: acctest.Optional, Create: `TFExadbVmCluster`, Update: `TFExadbVmClusterUpdatedName`}, + "exascale_db_storage_vault_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault.id}`}, + "state": acctest.Representation{RepType: acctest.Optional, Create: `AVAILABLE`}, + "filter": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatabaseExadbVmClusterDataSourceFilterRepresentation}} + + DatabaseExadbVmClusterDataSourceFilterRepresentation = map[string]interface{}{ + "name": acctest.Representation{RepType: acctest.Required, Create: `id`}, + "values": acctest.Representation{RepType: acctest.Required, Create: []string{`${oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id}`}}, + } + + DatabaseExadbVmClusterRepresentation = map[string]interface{}{ + "availability_domain": acctest.Representation{RepType: acctest.Required, Create: `${data.oci_identity_availability_domains.test_availability_domains.availability_domains.0.name}`}, + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "display_name": acctest.Representation{RepType: acctest.Required, Create: `TFExadbVmCluster`, Update: `TFExadbVmClusterUpdatedName`}, + "exascale_db_storage_vault_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault.id}`}, + "grid_image_id": acctest.Representation{RepType: acctest.Required, Create: `${var.grid_image_id}`}, + "hostname": acctest.Representation{RepType: acctest.Required, Create: `apollo`}, + "shape": acctest.Representation{RepType: acctest.Required, Create: `EXADBXS`}, + "ssh_public_keys": acctest.Representation{RepType: acctest.Required, Create: []string{`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOuBJgh6lTmQvQJ4BA3RCJdSmxRtmiXAQEEIP68/G4gF3XuZdKEYTFeputacmRq9yO5ZnNXgO9akdUgePpf8+CfFtveQxmN5xo3HVCDKxu/70lbMgeu7+wJzrMOlzj+a4zNq2j0Ww2VWMsisJ6eV3bJTnO/9VLGCOC8M9noaOlcKcLgIYy4aDM724MxFX2lgn7o6rVADHRxkvLEXPVqYT4syvYw+8OVSnNgE4MJLxaw8/2K0qp19YlQyiriIXfQpci3ThxwLjymYRPj+kjU1xIxv6qbFQzHR7ds0pSWp1U06cIoKPfCazU9hGWW8yIe/vzfTbWrt2DK6pLwBn/G0x3 sample`}}, + "subnet_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_subnet.exadbxs_client_subnet.id}`}, + "backup_subnet_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_subnet.exadbxs_backup_subnet.id}`}, + "node_config": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatabaseExadbVmClusterNodeConfigRepresentation}, + "node_resource": []acctest.RepresentationGroup{ + {RepType: acctest.Required, Group: DatabaseExadbVmClusterNodeResourceRepresentation1}, + {RepType: acctest.Required, Group: DatabaseExadbVmClusterNodeResourceRepresentation2}, + }, + "cluster_name": acctest.Representation{RepType: acctest.Required, Create: `tfexadbxs`}, + "domain": acctest.Representation{RepType: acctest.Optional, Create: `${oci_core_subnet.exadbxs_client_subnet.subnet_domain_name}`}, + "nsg_ids": acctest.Representation{RepType: acctest.Optional, Create: []string{`${oci_core_network_security_group.exadbxs_client_nsg.id}`}}, + "backup_network_nsg_ids": acctest.Representation{RepType: acctest.Optional, Create: []string{`${oci_core_network_security_group.exadbxs_backup_nsg.id}`}}, + "data_collection_options": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatabaseExadbVmClusterDataCollectionOptionsRepresentation}, + "license_model": acctest.Representation{RepType: acctest.Optional, Create: `LICENSE_INCLUDED`}, + "scan_listener_port_tcp": acctest.Representation{RepType: acctest.Optional, Create: `1521`}, + "scan_listener_port_tcp_ssl": acctest.Representation{RepType: acctest.Optional, Create: `2484`}, + "time_zone": acctest.Representation{RepType: acctest.Optional, Create: `US/Pacific`}, + "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"example-tag-namespace-all.example-tag": "value"}, Update: map[string]string{"example-tag-namespace-all.example-tag": "updatedValue"}}, + "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatabaseExadbVmClusterIgnoreDefinedTagsRepresentation}, + } + + DatabaseExadbVmClusterNodeConfigRepresentation = map[string]interface{}{ + "enabled_ecpu_count_per_node": acctest.Representation{RepType: acctest.Required, Create: `8`, Update: `16`}, + "total_ecpu_count_per_node": acctest.Representation{RepType: acctest.Required, Create: `16`, Update: `32`}, + "vm_file_system_storage_size_gbs_per_node": acctest.Representation{RepType: acctest.Required, Create: `350`, Update: `400`}, + } + + DatabaseExadbVmClusterNodeResourceRepresentation1 = map[string]interface{}{ + "node_name": acctest.Representation{RepType: acctest.Required, Create: `node1`}, + } + + DatabaseExadbVmClusterNodeResourceRepresentation2 = map[string]interface{}{ + "node_name": acctest.Representation{RepType: acctest.Required, Create: `node2`}, + } + + DatabaseExadbVmClusterNodeResourceRepresentation3 = map[string]interface{}{ + "node_name": acctest.Representation{RepType: acctest.Required, Create: `node3`}, + } + + DatabaseExadbVmClusterDataCollectionOptionsRepresentation = map[string]interface{}{ + "is_diagnostics_events_enabled": acctest.Representation{RepType: acctest.Optional, Create: `false`, Update: `true`}, + "is_health_monitoring_enabled": acctest.Representation{RepType: acctest.Optional, Create: `false`, Update: `true`}, + "is_incident_logs_enabled": acctest.Representation{RepType: acctest.Optional, Create: `false`, Update: `true`}, + } + + DatabaseExadbVmClusterIgnoreDefinedTagsRepresentation = map[string]interface{}{ + "ignore_changes": acctest.Representation{RepType: acctest.Required, Create: []string{`defined_tags`}}, + } + + ExadbVmClusterNetwork = ` + resource "oci_core_virtual_network" "exadbxs_vcn" { + compartment_id = "${var.compartment_id}" + cidr_blocks = ["10.1.0.0/16"] + display_name = "exadbxs-tf-vcn" + dns_label = "tfvcn" + } + + resource "oci_core_internet_gateway" "exadbxs_igw" { + compartment_id = "${var.compartment_id}" + vcn_id = "${oci_core_virtual_network.exadbxs_vcn.id}" + display_name = "exadbxs-tf-igw" + } + + resource "oci_core_route_table" "exadbxs_rt" { + compartment_id = "${var.compartment_id}" + vcn_id = "${oci_core_virtual_network.exadbxs_vcn.id}" + display_name = "exadbxs-tf-route-table" + route_rules { + destination = "0.0.0.0/0" + destination_type = "CIDR_BLOCK" + network_entity_id = "${oci_core_internet_gateway.exadbxs_igw.id}" + } + } + + resource "oci_core_subnet" "exadbxs_client_subnet" { + cidr_block = "10.1.20.0/24" + compartment_id = "${var.compartment_id}" + vcn_id = "${oci_core_virtual_network.exadbxs_vcn.id}" + route_table_id = "${oci_core_route_table.exadbxs_rt.id}" + security_list_ids = ["${oci_core_virtual_network.exadbxs_vcn.default_security_list_id}", "${oci_core_security_list.exadbxs_security_list.id}"] + dns_label = "tfclientsub" + display_name = "exadbxs-tf-client-subnet" + } + + resource "oci_core_subnet" "exadbxs_backup_subnet" { + cidr_block = "10.1.21.0/24" + compartment_id = "${var.compartment_id}" + vcn_id = "${oci_core_virtual_network.exadbxs_vcn.id}" + route_table_id = "${oci_core_route_table.exadbxs_rt.id}" + dns_label = "tfbackupsub" + display_name = "exadbxs-tf-backup-subnet" + } + + resource "oci_core_network_security_group" "exadbxs_client_nsg" { + compartment_id = "${var.compartment_id}" + vcn_id = "${oci_core_virtual_network.exadbxs_vcn.id}" + display_name = "exadbxs-client-nsg" + } + + resource "oci_core_network_security_group" "exadbxs_backup_nsg" { + compartment_id = "${var.compartment_id}" + vcn_id = "${oci_core_virtual_network.exadbxs_vcn.id}" + display_name = "exadbxs-backup-nsg" + } + + resource "oci_core_security_list" "exadbxs_security_list" { + compartment_id = "${var.compartment_id}" + vcn_id = "${oci_core_virtual_network.exadbxs_vcn.id}" + display_name = "exadbxs-security-list" + + ingress_security_rules { + source = "10.1.22.0/24" + protocol = "6" + } + + ingress_security_rules { + source = "10.1.22.0/24" + protocol = "1" + } + + ingress_security_rules { + source = "0.0.0.0/0" + protocol = "all" + } + + egress_security_rules { + destination = "10.1.22.0/24" + protocol = "6" + } + + egress_security_rules { + destination = "10.1.22.0/24" + protocol = "1" + } + } +` + + // Note: set env variable TF_VAR_grid_image_id before running this test + GridImageIdDependency = `variable "grid_image_id" {}` + DatabaseExadbVmClusterResourceDependencies = AvailabilityDomainConfig + ExadbVmClusterNetwork + GridImageIdDependency + + acctest.GenerateResourceFromRepresentationMap("oci_database_exascale_db_storage_vault", "test_exascale_db_storage_vault", acctest.Required, acctest.Create, DatabaseExascaleDbStorageVaultRepresentation) +) + +// issue-routing-tag: database/ExaCS +func TestDatabaseExadbVmClusterResource_basic(t *testing.T) { + httpreplay.SetScenario("TestDatabaseExadbVmClusterResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + compartmentIdU := utils.GetEnvSettingWithDefault("compartment_id_for_update", compartmentId) + compartmentIdUVariableStr := fmt.Sprintf("variable \"compartment_id_for_update\" { default = \"%s\" }\n", compartmentIdU) + + resourceName := "oci_database_exadb_vm_cluster.test_exadb_vm_cluster" + datasourceName := "data.oci_database_exadb_vm_clusters.test_exadb_vm_clusters" + singularDatasourceName := "data.oci_database_exadb_vm_cluster.test_exadb_vm_cluster" + + var resId, resId2 string + // Save TF content to Create resource with optional properties. This has to be exactly the same as the config part in the "create with optionals" step in the test. + acctest.SaveConfigContent(config+compartmentIdVariableStr+DatabaseExadbVmClusterResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Optional, acctest.Create, DatabaseExadbVmClusterRepresentation), "database", "exadbVmCluster", t) + + acctest.ResourceTest(t, testAccCheckDatabaseExadbVmClusterDestroy, []resource.TestStep{ + // 0 verify Create + { + Config: config + compartmentIdVariableStr + DatabaseExadbVmClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Required, acctest.Create, DatabaseExadbVmClusterRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "availability_domain"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "display_name", "TFExadbVmCluster"), + resource.TestCheckResourceAttrSet(resourceName, "exascale_db_storage_vault_id"), + resource.TestCheckResourceAttrSet(resourceName, "gi_version"), + resource.TestCheckResourceAttrSet(resourceName, "grid_image_id"), + resource.TestCheckResourceAttr(resourceName, "hostname", "apollo"), + resource.TestCheckResourceAttr(resourceName, "shape", "EXADBXS"), + resource.TestCheckResourceAttr(resourceName, "ssh_public_keys.#", "1"), + resource.TestCheckResourceAttrSet(resourceName, "subnet_id"), + resource.TestCheckResourceAttrSet(resourceName, "backup_subnet_id"), + resource.TestCheckResourceAttr(resourceName, "node_resource.#", "2"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.enabled_ecpu_count_per_node", "8"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.total_ecpu_count_per_node", "16"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.vm_file_system_storage_size_gbs_per_node", "350"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.memory_size_in_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.snapshot_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.total_file_system_storage_size_gbs_per_node"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + return err + }, + ), + }, + + // 1 delete before next Create + { + Config: config + compartmentIdVariableStr + DatabaseExadbVmClusterResourceDependencies, + }, + // 2 verify Create with optionals + { + Config: config + compartmentIdVariableStr + DatabaseExadbVmClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Optional, acctest.Create, DatabaseExadbVmClusterRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "availability_domain"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "display_name", "TFExadbVmCluster"), + resource.TestCheckResourceAttrSet(resourceName, "exascale_db_storage_vault_id"), + resource.TestCheckResourceAttrSet(resourceName, "gi_version"), + resource.TestCheckResourceAttrSet(resourceName, "grid_image_id"), + resource.TestCheckResourceAttr(resourceName, "hostname", "apollo"), + resource.TestCheckResourceAttr(resourceName, "shape", "EXADBXS"), + resource.TestCheckResourceAttr(resourceName, "ssh_public_keys.#", "1"), + resource.TestCheckResourceAttrSet(resourceName, "subnet_id"), + resource.TestCheckResourceAttrSet(resourceName, "backup_subnet_id"), + resource.TestCheckResourceAttr(resourceName, "node_resource.#", "2"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.enabled_ecpu_count_per_node", "8"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.total_ecpu_count_per_node", "16"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.vm_file_system_storage_size_gbs_per_node", "350"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.memory_size_in_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.snapshot_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.total_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "cluster_name"), + // optional fields + resource.TestCheckResourceAttrSet(resourceName, "domain"), + resource.TestCheckResourceAttr(resourceName, "nsg_ids.#", "1"), + resource.TestCheckResourceAttr(resourceName, "backup_network_nsg_ids.#", "1"), + resource.TestCheckResourceAttr(resourceName, "data_collection_options.#", "1"), + resource.TestCheckResourceAttr(resourceName, "data_collection_options.0.is_diagnostics_events_enabled", "false"), + resource.TestCheckResourceAttr(resourceName, "data_collection_options.0.is_health_monitoring_enabled", "false"), + resource.TestCheckResourceAttr(resourceName, "data_collection_options.0.is_incident_logs_enabled", "false"), + resource.TestCheckResourceAttr(resourceName, "license_model", "LICENSE_INCLUDED"), + resource.TestCheckResourceAttr(resourceName, "scan_listener_port_tcp", "1521"), + resource.TestCheckResourceAttr(resourceName, "scan_listener_port_tcp_ssl", "2484"), + resource.TestCheckResourceAttr(resourceName, "time_zone", "US/Pacific"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.Department", "Finance"), + resource.TestCheckResourceAttr(resourceName, "system_tags.%", "0"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + if isEnableExportCompartment, _ := strconv.ParseBool(utils.GetEnvSettingWithDefault("enable_export_compartment", "true")); isEnableExportCompartment { + if errExport := resourcediscovery.TestExportCompartmentWithResourceName(&resId, &compartmentId, resourceName); errExport != nil { + return errExport + } + } + return err + }, + ), + }, + + // 3 verify Update to the compartment (the compartment will be switched back in the next step) + { + Config: config + compartmentIdVariableStr + compartmentIdUVariableStr + DatabaseExadbVmClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Optional, acctest.Create, + acctest.RepresentationCopyWithNewProperties(DatabaseExadbVmClusterRepresentation, map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id_for_update}`}, + })), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "availability_domain"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentIdU), + resource.TestCheckResourceAttr(resourceName, "display_name", "TFExadbVmCluster"), + resource.TestCheckResourceAttrSet(resourceName, "exascale_db_storage_vault_id"), + resource.TestCheckResourceAttrSet(resourceName, "gi_version"), + resource.TestCheckResourceAttrSet(resourceName, "grid_image_id"), + resource.TestCheckResourceAttr(resourceName, "hostname", "apollo"), + resource.TestCheckResourceAttr(resourceName, "shape", "EXADBXS"), + resource.TestCheckResourceAttr(resourceName, "ssh_public_keys.#", "1"), + resource.TestCheckResourceAttrSet(resourceName, "subnet_id"), + resource.TestCheckResourceAttrSet(resourceName, "backup_subnet_id"), + resource.TestCheckResourceAttr(resourceName, "node_resource.#", "2"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.enabled_ecpu_count_per_node", "8"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.total_ecpu_count_per_node", "16"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.vm_file_system_storage_size_gbs_per_node", "350"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.memory_size_in_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.snapshot_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.total_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "cluster_name"), + // optional fields + resource.TestCheckResourceAttrSet(resourceName, "domain"), + resource.TestCheckResourceAttr(resourceName, "nsg_ids.#", "1"), + resource.TestCheckResourceAttr(resourceName, "backup_network_nsg_ids.#", "1"), + resource.TestCheckResourceAttr(resourceName, "data_collection_options.#", "1"), + resource.TestCheckResourceAttr(resourceName, "data_collection_options.0.is_diagnostics_events_enabled", "false"), + resource.TestCheckResourceAttr(resourceName, "data_collection_options.0.is_health_monitoring_enabled", "false"), + resource.TestCheckResourceAttr(resourceName, "data_collection_options.0.is_incident_logs_enabled", "false"), + resource.TestCheckResourceAttr(resourceName, "license_model", "LICENSE_INCLUDED"), + resource.TestCheckResourceAttr(resourceName, "scan_listener_port_tcp", "1521"), + resource.TestCheckResourceAttr(resourceName, "scan_listener_port_tcp_ssl", "2484"), + resource.TestCheckResourceAttr(resourceName, "time_zone", "US/Pacific"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.Department", "Finance"), + resource.TestCheckResourceAttr(resourceName, "system_tags.%", "0"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + + func(s *terraform.State) (err error) { + resId2, err = acctest.FromInstanceState(s, resourceName, "id") + if resId != resId2 { + return fmt.Errorf("resource recreated when it was supposed to be updated") + } + return err + }, + ), + }, + + // 4 verify updates to updatable parameters + { + Config: config + compartmentIdVariableStr + DatabaseExadbVmClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Optional, acctest.Update, DatabaseExadbVmClusterRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "availability_domain"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "display_name", "TFExadbVmClusterUpdatedName"), + resource.TestCheckResourceAttrSet(resourceName, "exascale_db_storage_vault_id"), + resource.TestCheckResourceAttrSet(resourceName, "gi_version"), + resource.TestCheckResourceAttrSet(resourceName, "grid_image_id"), + resource.TestCheckResourceAttr(resourceName, "hostname", "apollo"), + resource.TestCheckResourceAttr(resourceName, "shape", "EXADBXS"), + resource.TestCheckResourceAttr(resourceName, "ssh_public_keys.#", "1"), + resource.TestCheckResourceAttrSet(resourceName, "subnet_id"), + resource.TestCheckResourceAttrSet(resourceName, "backup_subnet_id"), + resource.TestCheckResourceAttr(resourceName, "node_resource.#", "2"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.enabled_ecpu_count_per_node", "16"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.total_ecpu_count_per_node", "32"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.vm_file_system_storage_size_gbs_per_node", "400"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.memory_size_in_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.snapshot_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.total_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "cluster_name"), + // optional fields + resource.TestCheckResourceAttrSet(resourceName, "domain"), + resource.TestCheckResourceAttr(resourceName, "nsg_ids.#", "1"), + resource.TestCheckResourceAttr(resourceName, "backup_network_nsg_ids.#", "1"), + resource.TestCheckResourceAttr(resourceName, "data_collection_options.#", "1"), + resource.TestCheckResourceAttr(resourceName, "data_collection_options.0.is_diagnostics_events_enabled", "true"), + resource.TestCheckResourceAttr(resourceName, "data_collection_options.0.is_health_monitoring_enabled", "true"), + resource.TestCheckResourceAttr(resourceName, "data_collection_options.0.is_incident_logs_enabled", "true"), + resource.TestCheckResourceAttr(resourceName, "license_model", "LICENSE_INCLUDED"), + resource.TestCheckResourceAttr(resourceName, "scan_listener_port_tcp", "1521"), + resource.TestCheckResourceAttr(resourceName, "scan_listener_port_tcp_ssl", "2484"), + resource.TestCheckResourceAttr(resourceName, "time_zone", "US/Pacific"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.Department", "Accounting"), + resource.TestCheckResourceAttr(resourceName, "system_tags.%", "0"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + + func(s *terraform.State) (err error) { + resId2, err = acctest.FromInstanceState(s, resourceName, "id") + if resId != resId2 { + return fmt.Errorf("Resource recreated when it was supposed to be updated.") + } + return err + }, + ), + }, + // 5 verify datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_exadb_vm_clusters", "test_exadb_vm_clusters", acctest.Optional, acctest.Update, DatabaseExadbVmClusterDataSourceRepresentation) + + compartmentIdVariableStr + DatabaseExadbVmClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Optional, acctest.Update, DatabaseExadbVmClusterRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(datasourceName, "display_name", "TFExadbVmClusterUpdatedName"), + resource.TestCheckResourceAttrSet(datasourceName, "exascale_db_storage_vault_id"), + resource.TestCheckResourceAttr(datasourceName, "state", "AVAILABLE"), + + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.#", "1"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.availability_domain"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.compartment_id", compartmentId), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.display_name", "TFExadbVmClusterUpdatedName"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.exascale_db_storage_vault_id"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.gi_version"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.grid_image_id"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.grid_image_type"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.hostname", "apollo"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.ssh_public_keys.#", "1"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.subnet_id"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.backup_subnet_id"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.node_resource.#", "2"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.node_config.0.enabled_ecpu_count_per_node", "16"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.node_config.0.total_ecpu_count_per_node", "32"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.node_config.0.vm_file_system_storage_size_gbs_per_node", "400"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.node_config.0.memory_size_in_gbs_per_node"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.node_config.0.snapshot_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.node_config.0.total_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.cluster_name"), + // optional fields + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.domain"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.nsg_ids.#", "1"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.backup_network_nsg_ids.#", "1"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.data_collection_options.#", "1"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.data_collection_options.0.is_diagnostics_events_enabled", "true"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.data_collection_options.0.is_health_monitoring_enabled", "true"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.data_collection_options.0.is_incident_logs_enabled", "true"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.license_model", "LICENSE_INCLUDED"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.scan_listener_port_tcp", "1521"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.scan_listener_port_tcp_ssl", "2484"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.time_zone", "US/Pacific"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.freeform_tags.%", "1"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.freeform_tags.Department", "Accounting"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.system_tags.%", "0"), + // computed fields + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.listener_port"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.scan_dns_name"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.scan_dns_record_id"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_clusters.0.scan_ip_ids.#", "3"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.time_created"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.id"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_clusters.0.state"), + ), + }, + // 6 verify singular datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Required, acctest.Create, DatabaseExadbVmClusterSingularDataSourceRepresentation) + + compartmentIdVariableStr + DatabaseExadbVmClusterResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "exadb_vm_cluster_id"), + + resource.TestCheckResourceAttrSet(singularDatasourceName, "availability_domain"), + resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(singularDatasourceName, "display_name", "TFExadbVmClusterUpdatedName"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "exascale_db_storage_vault_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "gi_version"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "grid_image_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "grid_image_type"), + resource.TestCheckResourceAttr(singularDatasourceName, "hostname", "apollo"), + resource.TestCheckResourceAttr(singularDatasourceName, "ssh_public_keys.#", "1"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "subnet_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "backup_subnet_id"), + resource.TestCheckResourceAttr(singularDatasourceName, "node_resource.#", "2"), + resource.TestCheckResourceAttr(singularDatasourceName, "node_config.0.enabled_ecpu_count_per_node", "16"), + resource.TestCheckResourceAttr(singularDatasourceName, "node_config.0.total_ecpu_count_per_node", "32"), + resource.TestCheckResourceAttr(singularDatasourceName, "node_config.0.vm_file_system_storage_size_gbs_per_node", "400"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "node_config.0.memory_size_in_gbs_per_node"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "node_config.0.snapshot_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "node_config.0.total_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "cluster_name"), + // optional fields + resource.TestCheckResourceAttrSet(resourceName, "domain"), + resource.TestCheckResourceAttr(singularDatasourceName, "nsg_ids.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "backup_network_nsg_ids.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "data_collection_options.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "data_collection_options.0.is_diagnostics_events_enabled", "true"), + resource.TestCheckResourceAttr(singularDatasourceName, "data_collection_options.0.is_health_monitoring_enabled", "true"), + resource.TestCheckResourceAttr(singularDatasourceName, "data_collection_options.0.is_incident_logs_enabled", "true"), + resource.TestCheckResourceAttr(singularDatasourceName, "license_model", "LICENSE_INCLUDED"), + resource.TestCheckResourceAttr(singularDatasourceName, "scan_listener_port_tcp", "1521"), + resource.TestCheckResourceAttr(singularDatasourceName, "scan_listener_port_tcp_ssl", "2484"), + resource.TestCheckResourceAttr(singularDatasourceName, "time_zone", "US/Pacific"), + resource.TestCheckResourceAttr(singularDatasourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "freeform_tags.Department", "Accounting"), + resource.TestCheckResourceAttr(singularDatasourceName, "system_tags.%", "0"), + // computed fields + resource.TestCheckResourceAttrSet(singularDatasourceName, "listener_port"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "scan_dns_name"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "scan_dns_record_id"), + resource.TestCheckResourceAttr(singularDatasourceName, "scan_ip_ids.#", "3"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_created"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), + ), + }, + // 7 verify resource import + { + Config: config + DatabaseExadbVmClusterRequiredOnlyResource, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"node_resource.0.node_name", "node_resource.1.node_name"}, + ResourceName: resourceName, + }, + }) +} + +func TestDatabaseExadbVmClusterResource_add_remove_node(t *testing.T) { + httpreplay.SetScenario("TestDatabaseExadbVmClusterResource_add_remove_node") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + resourceName := "oci_database_exadb_vm_cluster.test_exadb_vm_cluster" + + var resId, resId2 string + // Save TF content to Create resource with optional properties. This has to be exactly the same as the config part in the "create with optionals" step in the test. + acctest.SaveConfigContent(config+compartmentIdVariableStr+DatabaseExadbVmClusterResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Optional, acctest.Create, DatabaseExadbVmClusterRepresentation), "database", "exadbVmCluster", t) + + acctest.ResourceTest(t, testAccCheckDatabaseExadbVmClusterDestroy, []resource.TestStep{ + // 0 verify Create + { + Config: config + compartmentIdVariableStr + DatabaseExadbVmClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Required, acctest.Create, DatabaseExadbVmClusterRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "availability_domain"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "display_name", "TFExadbVmCluster"), + resource.TestCheckResourceAttrSet(resourceName, "exascale_db_storage_vault_id"), + resource.TestCheckResourceAttrSet(resourceName, "gi_version"), + resource.TestCheckResourceAttrSet(resourceName, "grid_image_id"), + resource.TestCheckResourceAttr(resourceName, "hostname", "apollo"), + resource.TestCheckResourceAttr(resourceName, "shape", "EXADBXS"), + resource.TestCheckResourceAttr(resourceName, "ssh_public_keys.#", "1"), + resource.TestCheckResourceAttrSet(resourceName, "subnet_id"), + resource.TestCheckResourceAttrSet(resourceName, "backup_subnet_id"), + resource.TestCheckResourceAttr(resourceName, "node_resource.#", "2"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.enabled_ecpu_count_per_node", "8"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.total_ecpu_count_per_node", "16"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.vm_file_system_storage_size_gbs_per_node", "350"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.memory_size_in_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.snapshot_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.total_file_system_storage_size_gbs_per_node"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + return err + }, + ), + }, + // 2 verify adding node3 + { + Config: config + compartmentIdVariableStr + DatabaseExadbVmClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Required, acctest.Create, + acctest.RepresentationCopyWithNewProperties(DatabaseExadbVmClusterRepresentation, map[string]interface{}{ + "node_resource": []acctest.RepresentationGroup{ + {RepType: acctest.Required, Group: DatabaseExadbVmClusterNodeResourceRepresentation1}, + {RepType: acctest.Required, Group: DatabaseExadbVmClusterNodeResourceRepresentation2}, + {RepType: acctest.Required, Group: DatabaseExadbVmClusterNodeResourceRepresentation3}, + }, + })), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "availability_domain"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "display_name", "TFExadbVmCluster"), + resource.TestCheckResourceAttrSet(resourceName, "exascale_db_storage_vault_id"), + resource.TestCheckResourceAttrSet(resourceName, "gi_version"), + resource.TestCheckResourceAttrSet(resourceName, "grid_image_id"), + resource.TestCheckResourceAttr(resourceName, "hostname", "apollo"), + resource.TestCheckResourceAttr(resourceName, "shape", "EXADBXS"), + resource.TestCheckResourceAttr(resourceName, "ssh_public_keys.#", "1"), + resource.TestCheckResourceAttrSet(resourceName, "subnet_id"), + resource.TestCheckResourceAttrSet(resourceName, "backup_subnet_id"), + resource.TestCheckResourceAttr(resourceName, "node_resource.#", "3"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.enabled_ecpu_count_per_node", "8"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.total_ecpu_count_per_node", "16"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.vm_file_system_storage_size_gbs_per_node", "350"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.memory_size_in_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.snapshot_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.total_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "cluster_name"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + + func(s *terraform.State) (err error) { + resId2, err = acctest.FromInstanceState(s, resourceName, "id") + if resId != resId2 { + return fmt.Errorf("resource recreated when it was supposed to be updated") + } + return err + }, + ), + }, + + // 3 verify removing a node1 + { + Config: config + compartmentIdVariableStr + DatabaseExadbVmClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exadb_vm_cluster", "test_exadb_vm_cluster", acctest.Required, acctest.Create, + acctest.RepresentationCopyWithNewProperties(DatabaseExadbVmClusterRepresentation, map[string]interface{}{ + "node_resource": []acctest.RepresentationGroup{ + {RepType: acctest.Required, Group: DatabaseExadbVmClusterNodeResourceRepresentation2}, + {RepType: acctest.Required, Group: DatabaseExadbVmClusterNodeResourceRepresentation3}, + }, + })), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "availability_domain"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "display_name", "TFExadbVmCluster"), + resource.TestCheckResourceAttrSet(resourceName, "exascale_db_storage_vault_id"), + resource.TestCheckResourceAttrSet(resourceName, "gi_version"), + resource.TestCheckResourceAttrSet(resourceName, "grid_image_id"), + resource.TestCheckResourceAttr(resourceName, "hostname", "apollo"), + resource.TestCheckResourceAttr(resourceName, "shape", "EXADBXS"), + resource.TestCheckResourceAttr(resourceName, "ssh_public_keys.#", "1"), + resource.TestCheckResourceAttrSet(resourceName, "subnet_id"), + resource.TestCheckResourceAttrSet(resourceName, "backup_subnet_id"), + resource.TestCheckResourceAttr(resourceName, "node_resource.#", "2"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.enabled_ecpu_count_per_node", "8"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.total_ecpu_count_per_node", "16"), + resource.TestCheckResourceAttr(resourceName, "node_config.0.vm_file_system_storage_size_gbs_per_node", "350"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.memory_size_in_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.snapshot_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "node_config.0.total_file_system_storage_size_gbs_per_node"), + resource.TestCheckResourceAttrSet(resourceName, "cluster_name"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + + func(s *terraform.State) (err error) { + resId2, err = acctest.FromInstanceState(s, resourceName, "id") + if resId != resId2 { + return fmt.Errorf("resource recreated when it was supposed to be updated") + } + return err + }, + ), + }, + }) +} + +func testAccCheckDatabaseExadbVmClusterDestroy(s *terraform.State) error { + noResourceFound := true + client := acctest.TestAccProvider.Meta().(*tf_client.OracleClients).DatabaseClient() + for _, rs := range s.RootModule().Resources { + if rs.Type == "oci_database_exadb_vm_cluster" { + noResourceFound = false + request := oci_database.GetExadbVmClusterRequest{} + + tmp := rs.Primary.ID + request.ExadbVmClusterId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(true, "database") + + response, err := client.GetExadbVmCluster(context.Background(), request) + + if err == nil { + deletedLifecycleStates := map[string]bool{ + string(oci_database.ExadbVmClusterLifecycleStateTerminated): true, + } + if _, ok := deletedLifecycleStates[string(response.LifecycleState)]; !ok { + //resource lifecycle state is not in expected deleted lifecycle states. + return fmt.Errorf("resource lifecycle state: %s is not in expected deleted lifecycle states", response.LifecycleState) + } + //resource lifecycle state is in expected deleted lifecycle states. continue with next one. + continue + } + + //Verify that exception is for '404 not found'. + if failure, isServiceError := common.IsServiceError(err); !isServiceError || failure.GetHTTPStatusCode() != 404 { + return err + } + } + } + if noResourceFound { + return fmt.Errorf("at least one resource was expected from the state file, but could not be found") + } + + return nil +} + +func init() { + if acctest.DependencyGraph == nil { + acctest.InitDependencyGraph() + } + if !acctest.InSweeperExcludeList("DatabaseExadbVmCluster") { + resource.AddTestSweepers("DatabaseExadbVmCluster", &resource.Sweeper{ + Name: "DatabaseExadbVmCluster", + Dependencies: acctest.DependencyGraph["exadbVmCluster"], + F: sweepDatabaseExadbVmClusterResource, + }) + } +} + +func sweepDatabaseExadbVmClusterResource(compartment string) error { + databaseClient := acctest.GetTestClients(&schema.ResourceData{}).DatabaseClient() + exadbVmClusterIds, err := getDatabaseExadbVmClusterIds(compartment) + if err != nil { + return err + } + for _, exadbVmClusterId := range exadbVmClusterIds { + if ok := acctest.SweeperDefaultResourceId[exadbVmClusterId]; !ok { + deleteExadbVmClusterRequest := oci_database.DeleteExadbVmClusterRequest{} + + deleteExadbVmClusterRequest.ExadbVmClusterId = &exadbVmClusterId + + deleteExadbVmClusterRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(true, "database") + _, error := databaseClient.DeleteExadbVmCluster(context.Background(), deleteExadbVmClusterRequest) + if error != nil { + fmt.Printf("Error deleting ExadbVmCluster %s %s, It is possible that the resource is already deleted. Please verify manually \n", exadbVmClusterId, error) + continue + } + acctest.WaitTillCondition(acctest.TestAccProvider, &exadbVmClusterId, DatabaseExadbVmClusterSweepWaitCondition, time.Duration(3*time.Minute), + DatabaseExadbVmClusterSweepResponseFetchOperation, "database", true) + } + } + return nil +} + +func getDatabaseExadbVmClusterIds(compartment string) ([]string, error) { + ids := acctest.GetResourceIdsToSweep(compartment, "ExadbVmClusterId") + if ids != nil { + return ids, nil + } + var resourceIds []string + compartmentId := compartment + databaseClient := acctest.GetTestClients(&schema.ResourceData{}).DatabaseClient() + + listExadbVmClustersRequest := oci_database.ListExadbVmClustersRequest{} + listExadbVmClustersRequest.CompartmentId = &compartmentId + listExadbVmClustersRequest.LifecycleState = oci_database.ExadbVmClusterSummaryLifecycleStateAvailable + listExadbVmClustersResponse, err := databaseClient.ListExadbVmClusters(context.Background(), listExadbVmClustersRequest) + + if err != nil { + return resourceIds, fmt.Errorf("Error getting ExadbVmCluster list for compartment id : %s , %s \n", compartmentId, err) + } + for _, exadbVmCluster := range listExadbVmClustersResponse.Items { + id := *exadbVmCluster.Id + resourceIds = append(resourceIds, id) + acctest.AddResourceIdToSweeperResourceIdMap(compartmentId, "ExadbVmClusterId", id) + } + return resourceIds, nil +} + +func DatabaseExadbVmClusterSweepWaitCondition(response common.OCIOperationResponse) bool { + // Only stop if the resource is available beyond 3 mins. As there could be an issue for the sweeper to delete the resource and manual intervention required. + if exadbVmClusterResponse, ok := response.Response.(oci_database.GetExadbVmClusterResponse); ok { + return exadbVmClusterResponse.LifecycleState != oci_database.ExadbVmClusterLifecycleStateTerminated + } + return false +} + +func DatabaseExadbVmClusterSweepResponseFetchOperation(client *tf_client.OracleClients, resourceId *string, retryPolicy *common.RetryPolicy) error { + _, err := client.DatabaseClient().GetExadbVmCluster(context.Background(), oci_database.GetExadbVmClusterRequest{ + ExadbVmClusterId: resourceId, + RequestMetadata: common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + return err +} diff --git a/internal/integrationtest/database_exadb_vm_cluster_update_history_entry_test.go b/internal/integrationtest/database_exadb_vm_cluster_update_history_entry_test.go new file mode 100644 index 00000000000..b0dde87cd66 --- /dev/null +++ b/internal/integrationtest/database_exadb_vm_cluster_update_history_entry_test.go @@ -0,0 +1,83 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" +) + +var ( + DatabaseExadbVmClusterUpdateHistoryEntrySingularDataSourceRepresentation = map[string]interface{}{ + "exadb_vm_cluster_id": acctest.Representation{RepType: acctest.Required, Create: `${var.exadb_vm_cluster_id}`}, + "update_history_entry_id": acctest.Representation{RepType: acctest.Required, Create: `${data.oci_database_exadb_vm_cluster_update_history_entries.test_exadb_vm_cluster_update_history_entries.exadb_vm_cluster_update_history_entries[0].id}`}, + } + + DatabaseExadbVmClusterUpdateHistoryEntryDataSourceRepresentation = map[string]interface{}{ + "exadb_vm_cluster_id": acctest.Representation{RepType: acctest.Required, Create: `${var.exadb_vm_cluster_id}`}, + "update_type": acctest.Representation{RepType: acctest.Optional, Create: `OS_UPDATE`}, + } + + // Note: set env variable TF_VAR_exadb_vm_cluster_id before running this test + DatabaseExadbVmClusterUpdateHistoryEntryResourceConfig = `variable "exadb_vm_cluster_id" {}` +) + +// issue-routing-tag: database/default +func TestDatabaseExadbVmClusterUpdateHistoryEntryResource_basic(t *testing.T) { + httpreplay.SetScenario("TestDatabaseExadbVmClusterUpdateHistoryEntryResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + datasourceName := "data.oci_database_exadb_vm_cluster_update_history_entries.test_exadb_vm_cluster_update_history_entries" + singularDatasourceName := "data.oci_database_exadb_vm_cluster_update_history_entry.test_exadb_vm_cluster_update_history_entry" + + acctest.SaveConfigContent("", "", "", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_exadb_vm_cluster_update_history_entries", "test_exadb_vm_cluster_update_history_entries", acctest.Optional, acctest.Create, DatabaseExadbVmClusterUpdateHistoryEntryDataSourceRepresentation) + + DatabaseExadbVmClusterUpdateHistoryEntryResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_id"), + resource.TestCheckResourceAttr(datasourceName, "update_type", "OS_UPDATE"), + + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_update_history_entries.#"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_update_history_entries.0.id"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_update_history_entries.0.lifecycle_details"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_update_history_entries.0.state"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_update_history_entries.0.time_completed"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_update_history_entries.0.time_started"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_update_history_entries.0.update_action"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_update_history_entries.0.update_id"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_update_history_entries.0.update_type"), + ), + }, + // verify singular datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_exadb_vm_cluster_update_history_entries", "test_exadb_vm_cluster_update_history_entries", acctest.Optional, acctest.Create, DatabaseExadbVmClusterUpdateHistoryEntryDataSourceRepresentation) + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_exadb_vm_cluster_update_history_entry", "test_exadb_vm_cluster_update_history_entry", acctest.Required, acctest.Create, DatabaseExadbVmClusterUpdateHistoryEntrySingularDataSourceRepresentation) + + DatabaseExadbVmClusterUpdateHistoryEntryResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "exadb_vm_cluster_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "lifecycle_details"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_completed"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_started"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "update_action"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "update_history_entry_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "update_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "update_type"), + ), + }, + }) +} diff --git a/internal/integrationtest/database_exadb_vm_cluster_update_test.go b/internal/integrationtest/database_exadb_vm_cluster_update_test.go new file mode 100644 index 00000000000..13ca8bd9ef6 --- /dev/null +++ b/internal/integrationtest/database_exadb_vm_cluster_update_test.go @@ -0,0 +1,80 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" +) + +var ( + DatabaseExadbVmClusterUpdateSingularDataSourceRepresentation = map[string]interface{}{ + "exadb_vm_cluster_id": acctest.Representation{RepType: acctest.Required, Create: `${var.exadb_vm_cluster_id}`}, + "update_id": acctest.Representation{RepType: acctest.Required, Create: `${data.oci_database_exadb_vm_cluster_updates.test_exadb_vm_cluster_updates.exadb_vm_cluster_updates[0].id}`}, + } + + DatabaseExadbVmClusterUpdateDataSourceRepresentation = map[string]interface{}{ + "exadb_vm_cluster_id": acctest.Representation{RepType: acctest.Required, Create: `${var.exadb_vm_cluster_id}`}, + "update_type": acctest.Representation{RepType: acctest.Optional, Create: `GI_PATCH`}, + } + + // Note: set env variable TF_VAR_exadb_vm_cluster_id before running this test + DatabaseExadbVmClusterUpdateResourceConfig = `variable "exadb_vm_cluster_id" {}` +) + +// issue-routing-tag: database/default +func TestDatabaseExadbVmClusterUpdateResource_basic(t *testing.T) { + httpreplay.SetScenario("TestDatabaseExadbVmClusterUpdateResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + datasourceName := "data.oci_database_exadb_vm_cluster_updates.test_exadb_vm_cluster_updates" + singularDatasourceName := "data.oci_database_exadb_vm_cluster_update.test_exadb_vm_cluster_update" + + acctest.SaveConfigContent("", "", "", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_exadb_vm_cluster_updates", "test_exadb_vm_cluster_updates", acctest.Optional, acctest.Create, DatabaseExadbVmClusterUpdateDataSourceRepresentation) + + DatabaseExadbVmClusterUpdateResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_id"), + resource.TestCheckResourceAttr(datasourceName, "update_type", "GI_PATCH"), + + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_updates.#"), + resource.TestCheckResourceAttr(datasourceName, "exadb_vm_cluster_updates.0.available_actions.#", "2"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_updates.0.description"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_updates.0.id"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_updates.0.time_released"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_updates.0.update_type"), + resource.TestCheckResourceAttrSet(datasourceName, "exadb_vm_cluster_updates.0.version"), + ), + }, + // verify singular datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_exadb_vm_cluster_updates", "test_exadb_vm_cluster_updates", acctest.Optional, acctest.Create, DatabaseExadbVmClusterUpdateDataSourceRepresentation) + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_exadb_vm_cluster_update", "test_exadb_vm_cluster_update", acctest.Required, acctest.Create, DatabaseExadbVmClusterUpdateSingularDataSourceRepresentation) + + DatabaseExadbVmClusterUpdateResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "exadb_vm_cluster_id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "update_id"), + + resource.TestCheckResourceAttr(singularDatasourceName, "available_actions.#", "2"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "description"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_released"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "update_type"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "version"), + ), + }, + }) +} diff --git a/internal/integrationtest/database_exascale_db_storage_vault_test.go b/internal/integrationtest/database_exascale_db_storage_vault_test.go new file mode 100644 index 00000000000..aadb63e5be6 --- /dev/null +++ b/internal/integrationtest/database_exascale_db_storage_vault_test.go @@ -0,0 +1,398 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "context" + "fmt" + "strconv" + "testing" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + "github.com/oracle/oci-go-sdk/v65/common" + oci_database "github.com/oracle/oci-go-sdk/v65/database" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + tf_client "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/resourcediscovery" + "github.com/oracle/terraform-provider-oci/internal/tfresource" + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + DatabaseExascaleDbStorageVaultRequiredOnlyResource = DatabaseExascaleDbStorageVaultResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exascale_db_storage_vault", "test_exascale_db_storage_vault", acctest.Required, acctest.Create, DatabaseExascaleDbStorageVaultRepresentation) + + DatabaseExascaleDbStorageVaultResourceConfig = DatabaseExascaleDbStorageVaultResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exascale_db_storage_vault", "test_exascale_db_storage_vault", acctest.Optional, acctest.Update, DatabaseExascaleDbStorageVaultRepresentation) + + DatabaseExascaleDbStorageVaultSingularDataSourceRepresentation = map[string]interface{}{ + "exascale_db_storage_vault_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault.id}`}, + } + + DatabaseExascaleDbStorageVaultDataSourceRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "display_name": acctest.Representation{RepType: acctest.Optional, Create: `TFExascaleDbStorageVault`, Update: `TFExascaleDbStorageVaultUpdatedName`}, + "state": acctest.Representation{RepType: acctest.Optional, Create: `AVAILABLE`}, + "filter": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatabaseExascaleDbStorageVaultDataSourceFilterRepresentation}} + + DatabaseExascaleDbStorageVaultDataSourceFilterRepresentation = map[string]interface{}{ + "name": acctest.Representation{RepType: acctest.Required, Create: `id`}, + "values": acctest.Representation{RepType: acctest.Required, Create: []string{`${oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault.id}`}}, + } + + DatabaseExascaleDbStorageVaultRepresentation = map[string]interface{}{ + "availability_domain": acctest.Representation{RepType: acctest.Required, Create: `${data.oci_identity_availability_domains.test_availability_domains.availability_domains.0.name}`}, + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "display_name": acctest.Representation{RepType: acctest.Required, Create: `TFExascaleDbStorageVault`, Update: `TFExascaleDbStorageVaultUpdatedName`}, + "high_capacity_database_storage": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatabaseExascaleDbStorageVaultHighCapacityDatabaseStorageRepresentation}, + "additional_flash_cache_in_percent": acctest.Representation{RepType: acctest.Optional, Create: `20`, Update: `25`}, + "description": acctest.Representation{RepType: acctest.Optional, Create: `ExaScale DB Storage Vault - description`, Update: `ExaScale DB Storage Vault - updated description`}, + "time_zone": acctest.Representation{RepType: acctest.Optional, Create: `US/Pacific`}, + "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"example-tag-namespace-all.example-tag": "value"}, Update: map[string]string{"example-tag-namespace-all.example-tag": "updatedValue"}}, + "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatabaseExascaleDbStorageIgnoreDefinedTagsRepresentation}, + } + + DatabaseExascaleDbStorageVaultHighCapacityDatabaseStorageRepresentation = map[string]interface{}{ + "total_size_in_gbs": acctest.Representation{RepType: acctest.Required, Create: `800`, Update: `1600`}, + } + + DatabaseExascaleDbStorageIgnoreDefinedTagsRepresentation = map[string]interface{}{ + "ignore_changes": acctest.Representation{RepType: acctest.Required, Create: []string{`defined_tags`}}, + } + + DatabaseExascaleDbStorageVaultResourceDependencies = AvailabilityDomainConfig +) + +// issue-routing-tag: database/ExaCS +func TestDatabaseExascaleDbStorageVaultResource_basic(t *testing.T) { + httpreplay.SetScenario("TestDatabaseExascaleDbStorageVaultResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + compartmentIdU := utils.GetEnvSettingWithDefault("compartment_id_for_update", compartmentId) + compartmentIdUVariableStr := fmt.Sprintf("variable \"compartment_id_for_update\" { default = \"%s\" }\n", compartmentIdU) + + resourceName := "oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault" + datasourceName := "data.oci_database_exascale_db_storage_vaults.test_exascale_db_storage_vaults" + singularDatasourceName := "data.oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault" + + var resId, resId2 string + // Save TF content to Create resource with optional properties. This has to be exactly the same as the config part in the "create with optionals" step in the test. + acctest.SaveConfigContent(config+compartmentIdVariableStr+DatabaseExascaleDbStorageVaultResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_database_exascale_db_storage_vault", "test_exascale_db_storage_vault", acctest.Optional, acctest.Create, DatabaseExascaleDbStorageVaultRepresentation), "database", "exascaleDbStorageVault", t) + + acctest.ResourceTest(t, testAccCheckDatabaseExascaleDbStorageVaultDestroy, []resource.TestStep{ + // verify Create + { + Config: config + compartmentIdVariableStr + DatabaseExascaleDbStorageVaultResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exascale_db_storage_vault", "test_exascale_db_storage_vault", acctest.Required, acctest.Create, DatabaseExascaleDbStorageVaultRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "availability_domain"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "display_name", "TFExascaleDbStorageVault"), + resource.TestCheckResourceAttr(resourceName, "high_capacity_database_storage.#", "1"), + resource.TestCheckResourceAttr(resourceName, "high_capacity_database_storage.0.total_size_in_gbs", "800"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + return err + }, + ), + }, + + // delete before next Create + { + Config: config + compartmentIdVariableStr + DatabaseExascaleDbStorageVaultResourceDependencies, + }, + // verify Create with optionals + { + Config: config + compartmentIdVariableStr + DatabaseExascaleDbStorageVaultResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exascale_db_storage_vault", "test_exascale_db_storage_vault", acctest.Optional, acctest.Create, DatabaseExascaleDbStorageVaultRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + resource.TestCheckResourceAttrSet(resourceName, "availability_domain"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "display_name", "TFExascaleDbStorageVault"), + //resource.TestCheckResourceAttr(resourceName, "vm_cluster_count", "0"), + resource.TestCheckResourceAttr(resourceName, "high_capacity_database_storage.#", "1"), + resource.TestCheckResourceAttr(resourceName, "high_capacity_database_storage.0.total_size_in_gbs", "800"), + resource.TestCheckResourceAttr(resourceName, "additional_flash_cache_in_percent", "20"), + resource.TestCheckResourceAttr(resourceName, "description", "ExaScale DB Storage Vault - description"), + resource.TestCheckResourceAttr(resourceName, "time_zone", "US/Pacific"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.Department", "Finance"), + resource.TestCheckResourceAttr(resourceName, "system_tags.%", "0"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + if isEnableExportCompartment, _ := strconv.ParseBool(utils.GetEnvSettingWithDefault("enable_export_compartment", "true")); isEnableExportCompartment { + if errExport := resourcediscovery.TestExportCompartmentWithResourceName(&resId, &compartmentId, resourceName); errExport != nil { + return errExport + } + } + return err + }, + ), + }, + + // verify Update to the compartment (the compartment will be switched back in the next step) + { + Config: config + compartmentIdVariableStr + compartmentIdUVariableStr + DatabaseExascaleDbStorageVaultResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exascale_db_storage_vault", "test_exascale_db_storage_vault", acctest.Optional, acctest.Create, + acctest.RepresentationCopyWithNewProperties(DatabaseExascaleDbStorageVaultRepresentation, map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id_for_update}`}, + })), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + resource.TestCheckResourceAttrSet(resourceName, "availability_domain"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentIdU), + resource.TestCheckResourceAttr(resourceName, "display_name", "TFExascaleDbStorageVault"), + //resource.TestCheckResourceAttr(resourceName, "vm_cluster_count", "0"), + resource.TestCheckResourceAttr(resourceName, "high_capacity_database_storage.#", "1"), + resource.TestCheckResourceAttr(resourceName, "high_capacity_database_storage.0.total_size_in_gbs", "800"), + resource.TestCheckResourceAttr(resourceName, "additional_flash_cache_in_percent", "20"), + resource.TestCheckResourceAttr(resourceName, "description", "ExaScale DB Storage Vault - description"), + resource.TestCheckResourceAttr(resourceName, "time_zone", "US/Pacific"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.Department", "Finance"), + resource.TestCheckResourceAttr(resourceName, "system_tags.%", "0"), + + func(s *terraform.State) (err error) { + resId2, err = acctest.FromInstanceState(s, resourceName, "id") + if resId != resId2 { + return fmt.Errorf("resource recreated when it was supposed to be updated") + } + return err + }, + ), + }, + + // verify updates to updatable parameters + { + Config: config + compartmentIdVariableStr + DatabaseExascaleDbStorageVaultResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exascale_db_storage_vault", "test_exascale_db_storage_vault", acctest.Optional, acctest.Update, DatabaseExascaleDbStorageVaultRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + resource.TestCheckResourceAttrSet(resourceName, "availability_domain"), + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "display_name", "TFExascaleDbStorageVaultUpdatedName"), + //resource.TestCheckResourceAttr(resourceName, "vm_cluster_count", "0"), + resource.TestCheckResourceAttr(resourceName, "high_capacity_database_storage.#", "1"), + resource.TestCheckResourceAttr(resourceName, "high_capacity_database_storage.0.total_size_in_gbs", "1600"), + resource.TestCheckResourceAttr(resourceName, "additional_flash_cache_in_percent", "25"), + resource.TestCheckResourceAttr(resourceName, "description", "ExaScale DB Storage Vault - updated description"), + resource.TestCheckResourceAttr(resourceName, "time_zone", "US/Pacific"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.Department", "Accounting"), + resource.TestCheckResourceAttr(resourceName, "system_tags.%", "0"), + + func(s *terraform.State) (err error) { + resId2, err = acctest.FromInstanceState(s, resourceName, "id") + if resId != resId2 { + return fmt.Errorf("Resource recreated when it was supposed to be updated.") + } + return err + }, + ), + }, + // verify datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_exascale_db_storage_vaults", "test_exascale_db_storage_vaults", acctest.Optional, acctest.Update, DatabaseExascaleDbStorageVaultDataSourceRepresentation) + + compartmentIdVariableStr + DatabaseExascaleDbStorageVaultResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_exascale_db_storage_vault", "test_exascale_db_storage_vault", acctest.Optional, acctest.Update, DatabaseExascaleDbStorageVaultRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(datasourceName, "display_name", "TFExascaleDbStorageVaultUpdatedName"), + resource.TestCheckResourceAttr(datasourceName, "state", "AVAILABLE"), + + resource.TestCheckResourceAttr(datasourceName, "exascale_db_storage_vaults.#", "1"), + resource.TestCheckResourceAttrSet(datasourceName, "exascale_db_storage_vaults.0.id"), + resource.TestCheckResourceAttrSet(datasourceName, "exascale_db_storage_vaults.0.state"), + resource.TestCheckResourceAttrSet(datasourceName, "exascale_db_storage_vaults.0.time_created"), + resource.TestCheckResourceAttrSet(datasourceName, "exascale_db_storage_vaults.0.availability_domain"), + resource.TestCheckResourceAttr(datasourceName, "exascale_db_storage_vaults.0.compartment_id", compartmentId), + resource.TestCheckResourceAttr(datasourceName, "exascale_db_storage_vaults.0.display_name", "TFExascaleDbStorageVaultUpdatedName"), + //resource.TestCheckResourceAttr(datasourceName, "exascale_db_storage_vaults.0.vm_cluster_count", "0"), + resource.TestCheckResourceAttr(datasourceName, "exascale_db_storage_vaults.0.high_capacity_database_storage.#", "1"), + resource.TestCheckResourceAttrSet(datasourceName, "exascale_db_storage_vaults.0.high_capacity_database_storage.0.available_size_in_gbs"), + resource.TestCheckResourceAttr(datasourceName, "exascale_db_storage_vaults.0.high_capacity_database_storage.0.total_size_in_gbs", "1600"), + resource.TestCheckResourceAttr(datasourceName, "exascale_db_storage_vaults.0.additional_flash_cache_in_percent", "25"), + resource.TestCheckResourceAttr(datasourceName, "exascale_db_storage_vaults.0.description", "ExaScale DB Storage Vault - updated description"), + resource.TestCheckResourceAttr(datasourceName, "exascale_db_storage_vaults.0.time_zone", "US/Pacific"), + resource.TestCheckResourceAttr(datasourceName, "exascale_db_storage_vaults.0.freeform_tags.%", "1"), + resource.TestCheckResourceAttr(datasourceName, "exascale_db_storage_vaults.0.freeform_tags.Department", "Accounting"), + resource.TestCheckResourceAttr(datasourceName, "exascale_db_storage_vaults.0.system_tags.%", "0"), + ), + }, + // verify singular datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_exascale_db_storage_vault", "test_exascale_db_storage_vault", acctest.Required, acctest.Create, DatabaseExascaleDbStorageVaultSingularDataSourceRepresentation) + + compartmentIdVariableStr + DatabaseExascaleDbStorageVaultResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "exascale_db_storage_vault_id"), + + resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_created"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "availability_domain"), + resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(singularDatasourceName, "display_name", "TFExascaleDbStorageVaultUpdatedName"), + //resource.TestCheckResourceAttr(singularDatasourceName, "vm_cluster_count", "0"), + resource.TestCheckResourceAttr(singularDatasourceName, "high_capacity_database_storage.#", "1"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "high_capacity_database_storage.0.available_size_in_gbs"), + resource.TestCheckResourceAttr(singularDatasourceName, "high_capacity_database_storage.0.total_size_in_gbs", "1600"), + resource.TestCheckResourceAttr(singularDatasourceName, "additional_flash_cache_in_percent", "25"), + resource.TestCheckResourceAttr(singularDatasourceName, "time_zone", "US/Pacific"), + resource.TestCheckResourceAttr(singularDatasourceName, "description", "ExaScale DB Storage Vault - updated description"), + resource.TestCheckResourceAttr(singularDatasourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "freeform_tags.Department", "Accounting"), + resource.TestCheckResourceAttr(singularDatasourceName, "system_tags.%", "0"), + ), + }, + // verify resource import + { + Config: config + DatabaseExascaleDbStorageVaultRequiredOnlyResource, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{}, + ResourceName: resourceName, + }, + }) +} + +func testAccCheckDatabaseExascaleDbStorageVaultDestroy(s *terraform.State) error { + noResourceFound := true + client := acctest.TestAccProvider.Meta().(*tf_client.OracleClients).DatabaseClient() + for _, rs := range s.RootModule().Resources { + if rs.Type == "oci_database_exascale_db_storage_vault" { + noResourceFound = false + request := oci_database.GetExascaleDbStorageVaultRequest{} + + tmp := rs.Primary.ID + request.ExascaleDbStorageVaultId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(true, "database") + + response, err := client.GetExascaleDbStorageVault(context.Background(), request) + + if err == nil { + deletedLifecycleStates := map[string]bool{ + string(oci_database.ExascaleDbStorageVaultLifecycleStateTerminated): true, + } + if _, ok := deletedLifecycleStates[string(response.LifecycleState)]; !ok { + //resource lifecycle state is not in expected deleted lifecycle states. + return fmt.Errorf("resource lifecycle state: %s is not in expected deleted lifecycle states", response.LifecycleState) + } + //resource lifecycle state is in expected deleted lifecycle states. continue with next one. + continue + } + + //Verify that exception is for '404 not found'. + if failure, isServiceError := common.IsServiceError(err); !isServiceError || failure.GetHTTPStatusCode() != 404 { + return err + } + } + } + if noResourceFound { + return fmt.Errorf("at least one resource was expected from the state file, but could not be found") + } + + return nil +} + +func init() { + if acctest.DependencyGraph == nil { + acctest.InitDependencyGraph() + } + if !acctest.InSweeperExcludeList("DatabaseExascaleDbStorageVault") { + resource.AddTestSweepers("DatabaseExascaleDbStorageVault", &resource.Sweeper{ + Name: "DatabaseExascaleDbStorageVault", + Dependencies: acctest.DependencyGraph["exascaleDbStorageVault"], + F: sweepDatabaseExascaleDbStorageVaultResource, + }) + } +} + +func sweepDatabaseExascaleDbStorageVaultResource(compartment string) error { + databaseClient := acctest.GetTestClients(&schema.ResourceData{}).DatabaseClient() + exascaleDbStorageVaultIds, err := getDatabaseExascaleDbStorageVaultIds(compartment) + if err != nil { + return err + } + for _, exascaleDbStorageVaultId := range exascaleDbStorageVaultIds { + if ok := acctest.SweeperDefaultResourceId[exascaleDbStorageVaultId]; !ok { + deleteExascaleDbStorageVaultRequest := oci_database.DeleteExascaleDbStorageVaultRequest{} + + deleteExascaleDbStorageVaultRequest.ExascaleDbStorageVaultId = &exascaleDbStorageVaultId + + deleteExascaleDbStorageVaultRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(true, "database") + _, error := databaseClient.DeleteExascaleDbStorageVault(context.Background(), deleteExascaleDbStorageVaultRequest) + if error != nil { + fmt.Printf("Error deleting ExascaleDbStorageVault %s %s, It is possible that the resource is already deleted. Please verify manually \n", exascaleDbStorageVaultId, error) + continue + } + acctest.WaitTillCondition(acctest.TestAccProvider, &exascaleDbStorageVaultId, DatabaseExascaleDbStorageVaultSweepWaitCondition, time.Duration(3*time.Minute), + DatabaseExascaleDbStorageVaultSweepResponseFetchOperation, "database", true) + } + } + return nil +} + +func getDatabaseExascaleDbStorageVaultIds(compartment string) ([]string, error) { + ids := acctest.GetResourceIdsToSweep(compartment, "ExascaleDbStorageVaultId") + if ids != nil { + return ids, nil + } + var resourceIds []string + compartmentId := compartment + databaseClient := acctest.GetTestClients(&schema.ResourceData{}).DatabaseClient() + + listExascaleDbStorageVaultsRequest := oci_database.ListExascaleDbStorageVaultsRequest{} + listExascaleDbStorageVaultsRequest.CompartmentId = &compartmentId + listExascaleDbStorageVaultsRequest.LifecycleState = oci_database.ExascaleDbStorageVaultLifecycleStateAvailable + listExascaleDbStorageVaultsResponse, err := databaseClient.ListExascaleDbStorageVaults(context.Background(), listExascaleDbStorageVaultsRequest) + + if err != nil { + return resourceIds, fmt.Errorf("Error getting ExascaleDbStorageVault list for compartment id : %s , %s \n", compartmentId, err) + } + for _, exascaleDbStorageVault := range listExascaleDbStorageVaultsResponse.Items { + id := *exascaleDbStorageVault.Id + resourceIds = append(resourceIds, id) + acctest.AddResourceIdToSweeperResourceIdMap(compartmentId, "ExascaleDbStorageVaultId", id) + } + return resourceIds, nil +} + +func DatabaseExascaleDbStorageVaultSweepWaitCondition(response common.OCIOperationResponse) bool { + // Only stop if the resource is available beyond 3 mins. As there could be an issue for the sweeper to delete the resource and manual intervention required. + if exascaleDbStorageVaultResponse, ok := response.Response.(oci_database.GetExascaleDbStorageVaultResponse); ok { + return exascaleDbStorageVaultResponse.LifecycleState != oci_database.ExascaleDbStorageVaultLifecycleStateTerminated + } + return false +} + +func DatabaseExascaleDbStorageVaultSweepResponseFetchOperation(client *tf_client.OracleClients, resourceId *string, retryPolicy *common.RetryPolicy) error { + _, err := client.DatabaseClient().GetExascaleDbStorageVault(context.Background(), oci_database.GetExascaleDbStorageVaultRequest{ + ExascaleDbStorageVaultId: resourceId, + RequestMetadata: common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + return err +} diff --git a/internal/integrationtest/database_gi_version_minor_version_test.go b/internal/integrationtest/database_gi_version_minor_version_test.go new file mode 100644 index 00000000000..17dc6250132 --- /dev/null +++ b/internal/integrationtest/database_gi_version_minor_version_test.go @@ -0,0 +1,65 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + DatabaseGiVersionMinorVersionDataSourceRepresentation = map[string]interface{}{ + "version": acctest.Representation{RepType: acctest.Required, Create: `23.0.0.0`}, + "availability_domain": acctest.Representation{RepType: acctest.Optional, Create: `${data.oci_identity_availability_domains.test_availability_domains.availability_domains.0.name}`}, + "compartment_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.compartment_id}`}, + "is_gi_version_for_provisioning": acctest.Representation{RepType: acctest.Optional, Create: `false`}, + "shape": acctest.Representation{RepType: acctest.Optional, Create: `ExaDbXS`}, + "shape_family": acctest.Representation{RepType: acctest.Optional, Create: `EXADB_XS`}, + } + + DatabaseGiVersionMinorVersionResourceConfig = AvailabilityDomainConfig +) + +// issue-routing-tag: database/default +func TestDatabaseGiVersionMinorVersionResource_basic(t *testing.T) { + httpreplay.SetScenario("TestDatabaseGiVersionMinorVersionResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + datasourceName := "data.oci_database_gi_version_minor_versions.test_gi_version_minor_versions" + + acctest.SaveConfigContent("", "", "", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_database_gi_version_minor_versions", "test_gi_version_minor_versions", acctest.Optional, acctest.Create, DatabaseGiVersionMinorVersionDataSourceRepresentation) + + compartmentIdVariableStr + DatabaseGiVersionMinorVersionResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(datasourceName, "availability_domain"), + resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(datasourceName, "is_gi_version_for_provisioning", "false"), + resource.TestCheckResourceAttr(datasourceName, "shape", "ExaDbXS"), + resource.TestCheckResourceAttr(datasourceName, "shape_family", "EXADB_XS"), + resource.TestCheckResourceAttr(datasourceName, "version", "23.0.0.0"), + + resource.TestCheckResourceAttrSet(datasourceName, "gi_minor_versions.#"), + resource.TestCheckResourceAttrSet(datasourceName, "gi_minor_versions.0.grid_image_id"), + resource.TestCheckResourceAttrSet(datasourceName, "gi_minor_versions.0.version"), + ), + }, + }) +} diff --git a/internal/integrationtest/database_gi_version_test.go b/internal/integrationtest/database_gi_version_test.go index fc94a0e6c04..109b52f9771 100644 --- a/internal/integrationtest/database_gi_version_test.go +++ b/internal/integrationtest/database_gi_version_test.go @@ -16,11 +16,12 @@ import ( var ( DatabaseDatabaseGiVersionDataSourceRepresentation = map[string]interface{}{ - "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, - "shape": acctest.Representation{RepType: acctest.Required, Create: `ExadataCC.Quarter3.100`}, + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "shape": acctest.Representation{RepType: acctest.Required, Create: `ExadataCC.Quarter3.100`}, + "availability_domain": acctest.Representation{RepType: acctest.Required, Create: `${data.oci_identity_availability_domains.test_availability_domains.availability_domains.0.name}`}, } - DatabaseGiVersionResourceConfig = "" + DatabaseGiVersionResourceConfig = AvailabilityDomainConfig ) // issue-routing-tag: database/default @@ -44,6 +45,7 @@ func TestDatabaseGiVersionResource_basic(t *testing.T) { acctest.GenerateDataSourceFromRepresentationMap("oci_database_gi_versions", "test_gi_versions", acctest.Required, acctest.Create, DatabaseDatabaseGiVersionDataSourceRepresentation) + compartmentIdVariableStr + DatabaseGiVersionResourceConfig, Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(datasourceName, "availability_domain"), resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), resource.TestCheckResourceAttrSet(datasourceName, "gi_versions.#"), diff --git a/internal/integrationtest/database_migration_connection_test.go b/internal/integrationtest/database_migration_connection_test.go index 7d233ded6ab..4165551ef94 100644 --- a/internal/integrationtest/database_migration_connection_test.go +++ b/internal/integrationtest/database_migration_connection_test.go @@ -1,749 +1,481 @@ -// // Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. -// // Licensed under the Mozilla Public License v2.0 +// // // Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// // // Licensed under the Mozilla Public License v2.0 package integrationtest -// -//import ( -// "context" -// "fmt" -// "strconv" -// _ "strconv" -// "testing" -// "time" -// -// "github.com/oracle/terraform-provider-oci/internal/resourcediscovery" -// -// "github.com/oracle/terraform-provider-oci/internal/acctest" -// tf_client "github.com/oracle/terraform-provider-oci/internal/client" -// "github.com/oracle/terraform-provider-oci/internal/tfresource" -// "github.com/oracle/terraform-provider-oci/internal/utils" -// -// "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" -// "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" -// "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" -// "github.com/oracle/oci-go-sdk/v65/common" -// oci_database_migration "github.com/oracle/oci-go-sdk/v65/databasemigration" -// -// "github.com/oracle/terraform-provider-oci/httpreplay" -//) -// -//var ( -// DatabaseMigrationConnectionRequiredOnlyResource = acctest.GenerateResourceFromRepresentationMap("oci_database_migration_connection", "test_connection", acctest.Required, acctest.Create, connectionRepresentationTarget) -// -// goldenGateDbSystemOption = map[string]interface{}{ -// "storage_management": acctest.Representation{RepType: acctest.Required, Create: `LVM`}, -// } -// -// goldenGateDbSystemDbHomeRepresentation = map[string]interface{}{ -// "database": acctest.RepresentationGroup{RepType: acctest.Required, Group: goldenGateDatabaseRepresentation}, -// "db_version": acctest.Representation{RepType: acctest.Required, Create: `21.3.0.0`}, -// } -// -// goldenGateDatabaseRepresentation = map[string]interface{}{ -// "admin_password": acctest.Representation{RepType: acctest.Required, Create: `BEstrO0ng_#11`}, -// "db_name": acctest.Representation{RepType: acctest.Required, Create: `myDB`}, -// "pdb_name": acctest.Representation{RepType: acctest.Required, Create: `pdbName`}, -// } -// -// kmsKeyId = utils.GetEnvSettingWithBlankDefault("kms_key_id") -// KmsKeyIdVariableStr = fmt.Sprintf("\nvariable \"kms_key_id\" { default = \"%s\" }\n", kmsKeyId) -// -// DatabaseHomeConfig = ` -// data "oci_database_db_homes" "t" { -// compartment_id = "${var.compartment_id}" -// db_system_id = "${oci_database_db_system.t.id}" -//}` -// -// DatabaseData = ` -// data "oci_database_databases" "t" { -// compartment_id = "${var.compartment_id}" -// db_home_id = "${data.oci_database_db_homes.t.db_homes.0.id}" -//}` -// -// ConnectionResourceConfigTarget = acctest.GenerateResourceFromRepresentationMap("oci_database_migration_connection", "test_connection", acctest.Optional, acctest.Update, connectionRepresentationTarget) -// -// ConnectionResourceConfigSource = acctest.GenerateResourceFromRepresentationMap("oci_database_migration_connection", "test_connection", acctest.Optional, acctest.Update, DatabaseMigrationConnectionRepresentation) -// -// connectionSingularDataSourceRepresentationCon = map[string]interface{}{ -// "connection_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_migration_connection.test_connection.id}`}, -// } -// -// connectionDataSourceRepresentationCon = map[string]interface{}{ -// "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, -// "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, -// "state": acctest.Representation{RepType: acctest.Optional, Create: `ACTIVE`}, -// "filter": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionDataSourceFilterRepresentationCon}, -// } -// connectionDataSourceFilterRepresentationCon = map[string]interface{}{ -// "name": acctest.Representation{RepType: acctest.Required, Create: `id`}, -// "values": acctest.Representation{RepType: acctest.Required, Create: []string{`${oci_database_migration_connection.test_connection.id}`}}, -// } -// -// DatabaseMigrationConnectionRepresentation = map[string]interface{}{ -// "admin_credentials": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionAdminCredentialsRepresentation}, -// "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, -// "database_type": acctest.Representation{RepType: acctest.Required, Create: `USER_MANAGED_OCI`}, -// "vault_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionVaultDetailsRepresentation}, -// "certificate_tdn": acctest.Representation{RepType: acctest.Optional, Create: `certificateTdn`, Update: `certificateTdn2`}, -// "connect_descriptor": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionConnectDescriptorRepresentationMIG}, -// "database_id": acctest.Representation{RepType: acctest.Required, Create: `${var.database_source}`}, -// "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, -// "private_endpoint": acctest.RepresentationGroup{RepType: acctest.Optional, Group: connectionPrivateEndpointRepresentation}, -// "replication_credentials": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatabaseMigrationConnectionReplicationCredentialsRepresentation}, -// "ssh_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: connectionSshDetailsRepresentation}, -// "tls_keystore": acctest.Representation{RepType: acctest.Optional, Create: `tlsKeystore`, Update: `tlsKeystore2`}, -// "tls_wallet": acctest.Representation{RepType: acctest.Optional, Create: `tlsWallet`, Update: `tlsWallet2`}, -// } -// -// connectionRepresentationCon = map[string]interface{}{ -// "admin_credentials": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionAdminCredentialsRepresentation}, -// "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, -// "database_type": acctest.Representation{RepType: acctest.Required, Create: `USER_MANAGED_OCI`}, -// "vault_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionVaultDetailsRepresentation}, -// "certificate_tdn": acctest.Representation{RepType: acctest.Optional, Create: `certificateTdn`, Update: `certificateTdn2`}, -// "connect_descriptor": acctest.RepresentationGroup{RepType: acctest.Optional, Group: connectionConnectDescriptorRepresentationMIG}, -// "display_name": acctest.Representation{RepType: acctest.Optional, Create: `TF_display_test_create`, Update: `TF_display_test_create`}, -// "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"bar-key": "value"}, Update: map[string]string{"Department": "Accounting"}}, -// "nsg_ids": acctest.Representation{RepType: acctest.Required, Create: []string{`${var.nsg_id}`}}, -// "private_endpoint": acctest.RepresentationGroup{RepType: acctest.Optional, Group: connectionPrivateEndpointRepresentation}, -// "ssh_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: connectionSshDetailsRepresentation}, -// "tls_keystore": acctest.Representation{RepType: acctest.Optional, Create: `tlsKeystore`, Update: `tlsKeystore2`}, -// "tls_wallet": acctest.Representation{RepType: acctest.Optional, Create: `tlsWallet`, Update: `tlsWallet2`}, -// } -// -// connectionRepresentationTarget = map[string]interface{}{ -// "admin_credentials": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionAdminCredentialsRepresentation}, -// "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, -// "database_type": acctest.Representation{RepType: acctest.Required, Create: `AUTONOMOUS`}, -// "vault_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionVaultDetailsRepresentation}, -// "database_id": acctest.Representation{RepType: acctest.Required, Create: `${var.database_id}`}, -// "display_name": acctest.Representation{RepType: acctest.Required, Create: `TF_display_test_create11`, Update: `TF_display_test_update`}, -// } -// -// connectionRepresentationTargetOpc = map[string]interface{}{ -// "admin_credentials": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionAdminCredentialsRepresentation}, -// "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, -// "database_type": acctest.Representation{RepType: acctest.Required, Create: `AUTONOMOUS`}, -// "nsg_ids": acctest.Representation{RepType: acctest.Required, Create: []string{`${var.nsg_id}`}}, -// "private_endpoint": acctest.RepresentationGroup{RepType: acctest.Optional, Group: connectionPrivateEndpointRepresentation}, -// "vault_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionVaultDetailsRepresentation}, -// "database_id": acctest.Representation{RepType: acctest.Required, Create: `${var.database_id}`}, -// "display_name": acctest.Representation{RepType: acctest.Required, Create: `TF_display_test_create`, Update: `TF_display_test_update`}, -// } -// -// connectionRepresentationUserManagedOciTarget = map[string]interface{}{ -// "admin_credentials": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionAdminCredentialsRepresentation}, -// "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, -// "database_type": acctest.Representation{RepType: acctest.Required, Create: `USER_MANAGED_OCI`}, -// "vault_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionVaultDetailsRepresentation}, -// "connect_descriptor": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionConnectDescriptorRepresentationMIG}, -// "database_id": acctest.Representation{RepType: acctest.Required, Create: `${var.database_id}`}, -// "display_name": acctest.Representation{RepType: acctest.Required, Create: `TF_display_test_create_target`, Update: `TF_tgt_display_test_update_target`}, -// } -// -// connectionRepresentationSource = map[string]interface{}{ -// "admin_credentials": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionAdminCredentialsRepresentation}, -// "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, -// "database_type": acctest.Representation{RepType: acctest.Required, Create: `MANUAL`}, -// "manual_database_sub_type": acctest.Representation{RepType: acctest.Optional, Create: `RDS_ORACLE`}, -// "vault_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionVaultDetailsRepresentation}, -// "connect_descriptor": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionConnectDescriptorRepresentationMIG}, -// "display_name": acctest.Representation{RepType: acctest.Required, Create: `TF_display_test_create_source`, Update: `TF_display_test_update_source`}, -// "private_endpoint": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionPrivateEndpointRepresentation}, -// } -// -// connectionRepresentationNoSshSource = map[string]interface{}{ -// "admin_credentials": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionAdminCredentialsRepresentation}, -// "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, -// "database_type": acctest.Representation{RepType: acctest.Required, Create: `MANUAL`}, -// "vault_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionVaultDetailsRepresentation}, -// "connect_descriptor": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionConnectDescriptorRepresentationMIG}, -// "database_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.database_container_source_id}`}, -// "display_name": acctest.Representation{RepType: acctest.Required, Create: `TF_display_test_create_source`, Update: `TF_display_test_update_source`}, -// } -// -// connectionAdminCredentialsRepresentation = map[string]interface{}{ -// "password": acctest.Representation{RepType: acctest.Required, Create: `Cr3dential_23#`, Update: `Cr3dential_23#`}, -// "username": acctest.Representation{RepType: acctest.Required, Create: `admin`, Update: `admin`}, -// } -// -// connectionAdminCredentialsRepresentationUPDATE = map[string]interface{}{ -// "password": acctest.Representation{RepType: acctest.Required, Create: `DMS-pswd-2023#`}, -// "username": acctest.Representation{RepType: acctest.Required, Create: `admin`}, -// } -// -// connectionVaultDetailsRepresentation = map[string]interface{}{ -// "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, -// "key_id": acctest.Representation{RepType: acctest.Required, Create: `${var.kms_key_id}`}, -// "vault_id": acctest.Representation{RepType: acctest.Required, Create: `${var.kms_vault_id}`}, -// } -// -// connectionVaultDetailsRepresentationUPDATE = map[string]interface{}{ -// "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, -// "key_id": acctest.Representation{RepType: acctest.Required, Create: `${var.kms_key_id}`}, -// "vault_id": acctest.Representation{RepType: acctest.Required, Create: `${var.kms_vault_id}`}, -// } -// -// connectionConnectDescriptorRepresentation = map[string]interface{}{ -// "connect_string": acctest.Representation{RepType: acctest.Optional, Create: `(description=(address=(port=1521)(host=10.0.0.220))(connect_data=(service_name=DBSOURCE_pdb1.sub04181535190.acommonvcn.oraclevcn.com)))`, Update: `(description=(address=(port=1521)(host=10.0.0.220))(connect_data=(service_name=DBSOURCE_pdb1.sub04181535190.acommonvcn.oraclevcn.com)))`}, -// "database_service_name": acctest.Representation{RepType: acctest.Optional, Create: `database_migration`}, -// "host": acctest.Representation{RepType: acctest.Optional, Create: `10.0.0.220`, Update: `10.0.0.220`}, -// "port": acctest.Representation{RepType: acctest.Optional, Create: `1521`, Update: `1521`}, -// } -// connectionPrivateEndpointRepresentation = map[string]interface{}{ -// "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, -// "subnet_id": acctest.Representation{RepType: acctest.Required, Create: `${var.subnet_id}`}, -// "vcn_id": acctest.Representation{RepType: acctest.Required, Create: `${var.vcn_id}`}, -// } -// connectionConnectDescriptorRepresentationUpdate = map[string]interface{}{ -// "database_service_name": acctest.Representation{RepType: acctest.Required, Create: `DBSOURCE_phx1vk.sub04102006390.acommonvcn.oraclevcn.com`}, -// "host": acctest.Representation{RepType: acctest.Required, Create: `10.0.0.119`, Update: `10.0.0.119`}, -// "port": acctest.Representation{RepType: acctest.Required, Create: `1521`, Update: `1521`}, -// } -// -// connectionConnectDescriptorRepresentationMIG = map[string]interface{}{ -// "connect_string": acctest.Representation{RepType: acctest.Required, Create: `(description=(address=(port=1521)(host=10.0.0.119))(connect_data=(service_name=DBSOURCE_phx1vk.sub04102006390.acommonvcn.oraclevcn.com)))`, Update: `(description=(address=(port=1521)(host=10.0.0.119))(connect_data=(service_name=DBSOURCE_phx1vk.sub04102006390.acommonvcn.oraclevcn.com)))`}, -// } -// connectionConnectDescriptorRepresentationPDB = map[string]interface{}{ -// "connect_string": acctest.Representation{RepType: acctest.Required, Create: `(description=(address=(port=1521)(host=10.0.0.119))(connect_data=(service_name=DBSOURCE_pdb1.sub04102006390.acommonvcn.oraclevcn.com)))`, Update: `(description=(address=(port=1521)(host=10.0.0.119))(connect_data=(service_name=DBSOURCE_pdb1.sub04102006390.acommonvcn.oraclevcn.com)))`}, -// } -// -// DatabaseMigrationConnectionReplicationCredentialsRepresentation = map[string]interface{}{ -// "password": acctest.Representation{RepType: acctest.Optional, Create: `DMS-pswd-2023#`, Update: `DMS-pswd-2023#`}, -// "username": acctest.Representation{RepType: acctest.Required, Create: `admin`, Update: `admin2`}, -// } -// DatabaseMigrationConnectionSshDetailsRepresentation = map[string]interface{}{ -// "host": acctest.Representation{RepType: acctest.Required, Create: `host`, Update: `host2`}, -// "sshkey": acctest.Representation{RepType: acctest.Required, Create: `sshkey`, Update: `sshkey2`}, -// "user": acctest.Representation{RepType: acctest.Required, Create: `user`, Update: `user2`}, -// "sudo_location": acctest.Representation{RepType: acctest.Optional, Create: `sudoLocation`, Update: `sudoLocation2`}, -// } -// -// connectionSshDetailsRepresentation = map[string]interface{}{ -// "host": acctest.Representation{RepType: acctest.Required, Create: `10.0.0.119`, Update: `10.0.0.119`}, -// "sshkey": acctest.Representation{RepType: acctest.Required, Create: `${var.ssh_key}`}, -// "user": acctest.Representation{RepType: acctest.Required, Create: `opc`, Update: `opc2`}, -// "sudo_location": acctest.Representation{RepType: acctest.Required, Create: `/usr/bin/sudo`, Update: `/usr/bin/sudo`}, -// } -// -// databaseRepresentationConnectionResource = map[string]interface{}{ -// "database": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseDatabaseRepresentationConnectionResource}, -// "db_version": acctest.Representation{RepType: acctest.Required, Create: `21.1.0.0`}, -// } -// -// databaseDatabaseRepresentationConnectionResource = map[string]interface{}{ -// "admin_password": acctest.Representation{RepType: acctest.Required, Create: `BEstrO0ng_#11`}, -// "db_name": acctest.Representation{RepType: acctest.Required, Create: `myDB`}, -// "pdb_name": acctest.Representation{RepType: acctest.Required, Create: `pdbName`}, -// } -// -// SubnetData = ` -// data "oci_core_subnet" "test_subnet" { -// subnet_id = "${var.subnet_id}" -// }` -// SubnetDataDomainOutput = ` -// output "oci_core_subnet_test_subnetSource_subnet_domain_name" { -// value = "${oci_core_subnet.test_subnet.subnet_domain_name}" -// }` -// -// SubnetDataIDOutput = ` -// output "oci_core_subnet_test_subnetSource_id" { -// value = "${oci_core_subnet.test_subnet.id}" -// }` -// SubnetDataDNSOutput = ` -// output "oci_core_subnet_test_subnet_DNS" { -// value = "${oci_core_subnet.test_subnet.dns_label}" -// }` -// -// VCNDataDNSOutput = ` -// output "oci_core_vcn_test_vcn_DNS" { -// value = "${oci_core_vcn.test_vcn.dns_label}" -// }` -// VCNDataDomainNameOutput = ` -// output "oci_core_vcn_test_vcn_domain_name" { -// value = "${oci_core_vcn.test_vcn.vcn_domain_name}" -// }` -// -// DatabaseDataA = ` -// data "oci_database_autonomous_database" "t" { -// compartment_id = "${var.compartment_id}" -// db_home_id = "${data.oci_database_autonomous_db_homes.t.db_homes.0.id}" -// }` -// DatabaseHomeConfigA = ` -// data "oci_database_autonomous_db_homes" "t" { -// compartment_id = "${var.compartment_id}" -// db_system_id = "${oci_database_db_system.t.id}" -// }` -// AutonomousDatabaseResourceDependenciesCON = acctest.GenerateDataSourceFromRepresentationMap("oci_database_autonomous_db_versions", "test_autonomous_db_versions", acctest.Required, acctest.Create, DatabaseDatabaseAutonomousDbVersionDataSourceRepresentation) + -// acctest.GenerateDataSourceFromRepresentationMap("oci_database_autonomous_db_versions", "test_autonomous_dw_versions", acctest.Required, acctest.Create, -// acctest.RepresentationCopyWithNewProperties(DatabaseDatabaseAutonomousDbVersionDataSourceRepresentation, map[string]interface{}{ -// "db_workload": acctest.Representation{RepType: acctest.Required, Create: `DW`}})) -// -// AutonomousDatabaseResourceDependenciesCONSOURCE = acctest.GenerateDataSourceFromRepresentationMap("oci_database_autonomous_db_versions", "test_autonomous_db_versions_source", acctest.Required, acctest.Create, DatabaseDatabaseAutonomousDbVersionDataSourceRepresentation) + -// acctest.GenerateDataSourceFromRepresentationMap("oci_database_autonomous_db_versions", "test_autonomous_dw_versions_source", acctest.Required, acctest.Create, -// acctest.RepresentationCopyWithNewProperties(DatabaseDatabaseAutonomousDbVersionDataSourceRepresentation, map[string]interface{}{ -// "db_workload": acctest.Representation{RepType: acctest.Required, Create: `DW`}})) -// -// goldenGateDbSystemRepresentationSOURCE = map[string]interface{}{ -// "availability_domain": acctest.Representation{RepType: acctest.Required, Create: "efde:phx-ad-1"}, -// "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, -// "database_edition": acctest.Representation{RepType: acctest.Required, Create: `ENTERPRISE_EDITION`}, -// "db_home": acctest.RepresentationGroup{RepType: acctest.Required, Group: goldenGateDbSystemDbHomeRepresentation}, -// "hostname": acctest.Representation{RepType: acctest.Required, Create: `myDB`}, -// "shape": acctest.Representation{RepType: acctest.Required, Create: `VM.Standard2.2`}, -// "ssh_public_keys": acctest.Representation{RepType: acctest.Required, Create: []string{`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCBDM0G21Tc6IOp6H5fwUVhVcxDxbwRwb9I53lXDdfqytw/pRAfXxDAzlw1jMEWofoVxTVDyqxcEg5yg4ImKFYHIDrZuU9eHv5SoHYJvI9r+Dqm9z52MmEyoTuC4dUyOs79V0oER5vLcjoMQIqmGSKMSlIMoFV2d+AV//RhJSpRPWGQ6lAVPYAiaVk3EzYacayetk1ZCEnMGPV0OV1UWqovm3aAGDozs7+9Isq44HEMyJwdBTYmBu3F8OA8gss2xkwaBgK3EQjCJIRBgczDwioT7RF5WG3IkwKsDTl2bV0p5f5SeX0U8SGHnni9uNoc9wPAWaleZr3Jcp1yIcRFR9YV`}}, -// "subnet_id": acctest.Representation{RepType: acctest.Required, Create: `${var.subnet_id}`}, -// "data_storage_size_in_gb": acctest.Representation{RepType: acctest.Optional, Create: `256`}, -// "display_name": acctest.Representation{RepType: acctest.Optional, Create: `tfGGmyDB`}, -// "domain": acctest.Representation{RepType: acctest.Optional, Create: `sub10031523100.vcnabmartin.oraclevcn.com`}, -// "node_count": acctest.Representation{RepType: acctest.Optional, Create: `1`}, -// "db_system_options": acctest.RepresentationGroup{RepType: acctest.Optional, Group: goldenGateDbSystemOption}, -// "private_ip": acctest.Representation{RepType: acctest.Required, Create: `10.0.0.125`}, -// } -//) -// -//// issue-routing-tag: database_migration/default -//func TestDatabaseMigrationConnectionResource_basic(t *testing.T) { -// httpreplay.SetScenario("TestDatabaseMigrationConnectionResource_basic") -// defer httpreplay.SaveScenario() -// -// config := acctest.ProviderTestConfig() -// -// compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") -// compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) -// -// sshKey := utils.GetEnvSettingWithBlankDefault("ssh_key") -// sshKeyIdStr := fmt.Sprintf("variable \"ssh_key\" {\n type = \"string\"\n default = < 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "data_collection_options", 0) + tmp, err := s.mapToDataCollectionOptions(fieldKeyFormat) + if err != nil { + return err + } + request.DataCollectionOptions = &tmp + } + } + + err := s.setNodeConfigInCreateExaDbVmClusterRequest(&request) + if err != nil { + return err + } + + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + request.DefinedTags = convertedDefinedTags + } + + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + request.DisplayName = &tmp + } + + if domain, ok := s.D.GetOkExists("domain"); ok { + tmp := domain.(string) + request.Domain = &tmp + } + + if exascaleDbStorageVaultId, ok := s.D.GetOkExists("exascale_db_storage_vault_id"); ok { + tmp := exascaleDbStorageVaultId.(string) + request.ExascaleDbStorageVaultId = &tmp + } + + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + + if gridImageId, ok := s.D.GetOkExists("grid_image_id"); ok { + tmp := gridImageId.(string) + request.GridImageId = &tmp + } + + if hostname, ok := s.D.GetOkExists("hostname"); ok { + tmp := hostname.(string) + request.Hostname = &tmp + } + + if licenseModel, ok := s.D.GetOkExists("license_model"); ok { + request.LicenseModel = oci_database.CreateExadbVmClusterDetailsLicenseModelEnum(licenseModel.(string)) + } + + if nsgIds, ok := s.D.GetOkExists("nsg_ids"); ok { + set := nsgIds.(*schema.Set) + interfaces := set.List() + tmp := make([]string, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = interfaces[i].(string) + } + } + if len(tmp) != 0 || s.D.HasChange("nsg_ids") { + request.NsgIds = tmp + } + } + + if privateZoneId, ok := s.D.GetOkExists("private_zone_id"); ok { + tmp := privateZoneId.(string) + request.PrivateZoneId = &tmp + } + + if scanListenerPortTcp, ok := s.D.GetOkExists("scan_listener_port_tcp"); ok { + tmp := scanListenerPortTcp.(int) + request.ScanListenerPortTcp = &tmp + } + + if scanListenerPortTcpSsl, ok := s.D.GetOkExists("scan_listener_port_tcp_ssl"); ok { + tmp := scanListenerPortTcpSsl.(int) + request.ScanListenerPortTcpSsl = &tmp + } + + if shape, ok := s.D.GetOkExists("shape"); ok { + tmp := shape.(string) + request.Shape = &tmp + } + + if sshPublicKeys, ok := s.D.GetOkExists("ssh_public_keys"); ok { + interfaces := sshPublicKeys.([]interface{}) + tmp := make([]string, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = interfaces[i].(string) + } + } + if len(tmp) != 0 || s.D.HasChange("ssh_public_keys") { + request.SshPublicKeys = tmp + } + } + + if subnetId, ok := s.D.GetOkExists("subnet_id"); ok { + tmp := subnetId.(string) + request.SubnetId = &tmp + } + + if systemVersion, ok := s.D.GetOkExists("system_version"); ok { + tmp := systemVersion.(string) + request.SystemVersion = &tmp + } + + if timeZone, ok := s.D.GetOkExists("time_zone"); ok { + tmp := timeZone.(string) + request.TimeZone = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + response, err := s.Client.CreateExadbVmCluster(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + s.Res = &response.ExadbVmCluster + + if workId != nil { + var identifier *string + var err error + identifier = response.Id + if identifier != nil { + s.D.SetId(*identifier) + } + identifier, err = tfresource.WaitForWorkRequestWithErrorHandling(s.WorkRequestClient, workId, "exadbvmcluster", oci_work_requests.WorkRequestResourceActionTypeCreated, s.D.Timeout(schema.TimeoutCreate), s.DisableNotFoundRetries) + if identifier != nil { + s.D.SetId(*identifier) + } + if err != nil { + return err + } + } + return s.Get() +} + +func (s *DatabaseExadbVmClusterResourceCrud) Get() error { + request := oci_database.GetExadbVmClusterRequest{} + + tmp := s.D.Id() + request.ExadbVmClusterId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + + response, err := s.Client.GetExadbVmCluster(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response.ExadbVmCluster + return nil +} + +func (s *DatabaseExadbVmClusterResourceCrud) Update() error { + if compartment, ok := s.D.GetOkExists("compartment_id"); ok && s.D.HasChange("compartment_id") { + oldRaw, newRaw := s.D.GetChange("compartment_id") + if newRaw != "" && oldRaw != "" { + err := s.updateCompartment(compartment) + if err != nil { + return err + } + } + } + request := oci_database.UpdateExadbVmClusterRequest{} + + updateRequired := false + oldNodeCount := 1 + newNodeCount := 1 + nodeResourceKey := getNodeResourceKey() + if _, ok := s.D.GetOkExists(nodeResourceKey); ok { + oldNodeListRaw, newNodeListRaw := s.D.GetChange(nodeResourceKey) + oldNodeListRawSet := oldNodeListRaw.(*schema.Set) + oldNodeList := oldNodeListRawSet.List() + newNodeListRawSet := newNodeListRaw.(*schema.Set) + newNodeList := newNodeListRawSet.List() + oldNodeCount = len(oldNodeList) + newNodeCount = len(newNodeList) + if newNodeCount < oldNodeCount { + err := s.removeVirtualMachineFromExadbVmCluster(oldNodeList, newNodeList) + if err != nil { + return err + } + } else if newNodeCount > oldNodeCount { + updateRequired = true + request.NodeCount = &newNodeCount + } + } + + enableCpuCountKey := getEnableCpuCountKey() + if _, ok := s.D.GetOkExists(enableCpuCountKey); ok { + oldEnabledCpuCoreCountPerNodeRaw, newEnabledCpuCoreCountPerNodeRaw := s.D.GetChange(enableCpuCountKey) + oldEnabledCpuCoreCountPerNode := oldEnabledCpuCoreCountPerNodeRaw.(int) + newEnabledCpuCoreCountPerNode := newEnabledCpuCoreCountPerNodeRaw.(int) + if oldEnabledCpuCoreCountPerNode != newEnabledCpuCoreCountPerNode { + updateRequired = true + tmp := newEnabledCpuCoreCountPerNode * newNodeCount + request.EnabledECpuCount = &tmp + } + } + + totalCpuCountKey := getTotalCpuCountKey() + if _, ok := s.D.GetOkExists(totalCpuCountKey); ok { + oldTotalCpuCoreCountPerNodeRaw, newTotalCpuCoreCountPerNodeRaw := s.D.GetChange(totalCpuCountKey) + oldTotalCpuCoreCountPerNode := oldTotalCpuCoreCountPerNodeRaw.(int) + newTotalCpuCoreCountPerNode := newTotalCpuCoreCountPerNodeRaw.(int) + if oldTotalCpuCoreCountPerNode != newTotalCpuCoreCountPerNode { + updateRequired = true + tmp := newTotalCpuCoreCountPerNode * newNodeCount + request.TotalECpuCount = &tmp + } + } + + vmStorageSizeKey := getVmStorageSizeKey() + if _, ok := s.D.GetOkExists(vmStorageSizeKey); ok { + oldVmFileSystemStoragePerNodeRaw, newVmFileSystemStoragePerNodeRaw := s.D.GetChange(vmStorageSizeKey) + oldVmFileSystemStoragePerNode := oldVmFileSystemStoragePerNodeRaw.(int) + newVmFileSystemStoragePerNode := newVmFileSystemStoragePerNodeRaw.(int) + if oldVmFileSystemStoragePerNode != newVmFileSystemStoragePerNode { + updateRequired = true + tmp := newVmFileSystemStoragePerNode * newNodeCount + request.VmFileSystemStorage = &oci_database.ExadbVmClusterStorageDetails{ + TotalSizeInGbs: &tmp, + } + } + } + + if backupNetworkNsgIds, ok := s.D.GetOkExists("backup_network_nsg_ids"); ok && s.D.HasChange("backup_network_nsg_ids") { + updateRequired = true + set := backupNetworkNsgIds.(*schema.Set) + interfaces := set.List() + tmp := make([]string, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = interfaces[i].(string) + } + } + if len(tmp) != 0 || s.D.HasChange("backup_network_nsg_ids") { + request.BackupNetworkNsgIds = tmp + } + } + + if dataCollectionOptions, ok := s.D.GetOkExists("data_collection_options"); ok && s.D.HasChange("data_collection_options") { + updateRequired = true + if tmpList := dataCollectionOptions.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "data_collection_options", 0) + tmp, err := s.mapToDataCollectionOptions(fieldKeyFormat) + if err != nil { + return err + } + request.DataCollectionOptions = &tmp + } + } + + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + if s.D.HasChange("defined_tags") { + updateRequired = true + } + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + // we need to set request.DefinedTags even when there is no change. request.DefinedTags=nil would clear the definedTags + request.DefinedTags = convertedDefinedTags + } + + if displayName, ok := s.D.GetOkExists("display_name"); ok && s.D.HasChange("display_name") { + updateRequired = true + tmp := displayName.(string) + request.DisplayName = &tmp + } + + tmp := s.D.Id() + request.ExadbVmClusterId = &tmp + + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + if s.D.HasChange("freeform_tags") { + updateRequired = true + } + // we need to set request.DefinedTags even when there is no change. request.DefinedTags=nil would clear the definedTags + request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + + if gridImageId, ok := s.D.GetOkExists("grid_image_id"); ok && s.D.HasChange("grid_image_id") { + updateRequired = true + tmp := gridImageId.(string) + request.GridImageId = &tmp + } + + if licenseModel, ok := s.D.GetOkExists("license_model"); ok && s.D.HasChange("license_model") { + updateRequired = true + request.LicenseModel = oci_database.UpdateExadbVmClusterDetailsLicenseModelEnum(licenseModel.(string)) + } + + if nsgIds, ok := s.D.GetOkExists("nsg_ids"); ok && s.D.HasChange("nsg_ids") { + updateRequired = true + set := nsgIds.(*schema.Set) + interfaces := set.List() + tmp := make([]string, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = interfaces[i].(string) + } + } + if len(tmp) != 0 || s.D.HasChange("nsg_ids") { + request.NsgIds = tmp + } + } + + if sshPublicKeys, ok := s.D.GetOkExists("ssh_public_keys"); ok && s.D.HasChange("ssh_public_keys") { + updateRequired = true + interfaces := sshPublicKeys.([]interface{}) + tmp := make([]string, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = interfaces[i].(string) + } + } + if len(tmp) != 0 || s.D.HasChange("ssh_public_keys") { + request.SshPublicKeys = tmp + } + } + + if systemVersion, ok := s.D.GetOkExists("system_version"); ok && s.D.HasChange("system_version") { + updateRequired = true + tmp := systemVersion.(string) + request.SystemVersion = &tmp + } + + if updateAction, ok := s.D.GetOkExists("update_action"); ok && s.D.HasChange("update_action") { + updateRequired = true + request.UpdateAction = oci_database.UpdateExadbVmClusterDetailsUpdateActionEnum(updateAction.(string)) + } + + if updateRequired { + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + + response, err := s.Client.UpdateExadbVmCluster(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + if workId != nil { + _, err = tfresource.WaitForWorkRequestWithErrorHandling(s.WorkRequestClient, workId, "exadbvmcluster", oci_work_requests.WorkRequestResourceActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate), s.DisableNotFoundRetries) + if err != nil { + return err + } + } + } + return s.Get() +} + +func (s *DatabaseExadbVmClusterResourceCrud) Delete() error { + request := oci_database.DeleteExadbVmClusterRequest{} + + tmp := s.D.Id() + request.ExadbVmClusterId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + + response, err := s.Client.DeleteExadbVmCluster(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + if workId != nil { + _, err = tfresource.WaitForWorkRequestWithErrorHandling(s.WorkRequestClient, workId, "exadbvmcluster", oci_work_requests.WorkRequestResourceActionTypeDeleted, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries) + if err != nil { + return err + } + } + + return nil +} + +func (s *DatabaseExadbVmClusterResourceCrud) SetData() error { + if s.Res.AvailabilityDomain != nil { + s.D.Set("availability_domain", *s.Res.AvailabilityDomain) + } + + backupNetworkNsgIds := []interface{}{} + for _, item := range s.Res.BackupNetworkNsgIds { + backupNetworkNsgIds = append(backupNetworkNsgIds, item) + } + s.D.Set("backup_network_nsg_ids", schema.NewSet(tfresource.LiteralTypeHashCodeForSets, backupNetworkNsgIds)) + + if s.Res.BackupSubnetId != nil { + s.D.Set("backup_subnet_id", *s.Res.BackupSubnetId) + } + + if s.Res.ClusterName != nil { + s.D.Set("cluster_name", *s.Res.ClusterName) + } + + if s.Res.CompartmentId != nil { + s.D.Set("compartment_id", *s.Res.CompartmentId) + } + + if s.Res.DataCollectionOptions != nil { + s.D.Set("data_collection_options", []interface{}{DataCollectionOptionsToMap(s.Res.DataCollectionOptions)}) + } else { + s.D.Set("data_collection_options", nil) + } + + if s.Res.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) + } + + if s.Res.DisplayName != nil { + s.D.Set("display_name", *s.Res.DisplayName) + } + + if s.Res.Domain != nil { + s.D.Set("domain", *s.Res.Domain) + } + + if s.Res.ExascaleDbStorageVaultId != nil { + s.D.Set("exascale_db_storage_vault_id", *s.Res.ExascaleDbStorageVaultId) + } + + s.D.Set("freeform_tags", s.Res.FreeformTags) + + if s.Res.GiVersion != nil { + s.D.Set("gi_version", *s.Res.GiVersion) + } + + if s.Res.GridImageId != nil { + s.D.Set("grid_image_id", *s.Res.GridImageId) + } + + s.D.Set("grid_image_type", s.Res.GridImageType) + + if s.Res.Hostname != nil { + s.D.Set("hostname", *s.Res.Hostname) + } + + if s.Res.IormConfigCache != nil { + s.D.Set("iorm_config_cache", []interface{}{ExadataIormConfigToMap(s.Res.IormConfigCache)}) + } else { + s.D.Set("iorm_config_cache", nil) + } + + if s.Res.LastUpdateHistoryEntryId != nil { + s.D.Set("last_update_history_entry_id", *s.Res.LastUpdateHistoryEntryId) + } + + s.D.Set("license_model", s.Res.LicenseModel) + + if s.Res.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) + } + + if s.Res.ListenerPort != nil { + s.D.Set("listener_port", strconv.FormatInt(*s.Res.ListenerPort, 10)) + } + + nodeConfigInResponse, nodeListInResponse := getNodeConfigAndNodeListInResponse(s.Res.Id, s.Res.CompartmentId, s.Res.EnabledECpuCount, s.Res.TotalECpuCount, s.Res.VmFileSystemStorage, s.Res.MemorySizeInGBs, s.Res.SnapshotFileSystemStorage, s.Res.TotalFileSystemStorage, s.Client) + s.D.Set("node_config", []interface{}{nodeConfigInResponse}) + + nodeListInState := []interface{}{} + if tmp, ok := s.D.GetOkExists(getNodeResourceKey()); ok { + set := tmp.(*schema.Set) + tmpList := set.List() + nodeListInState = make([]interface{}, len(tmpList)) + _ = copy(nodeListInState, tmpList) + } + + // first try to map node in response to node in state by node_id + unusedNodeListInState := nodeListInState + for _, tmp := range nodeListInResponse { + node := tmp.(map[string]interface{}) + // if node_name has not been set and node_id is set + if _, nodeNameExistInResp := node["node_name"]; !nodeNameExistInResp { + if nodeId, nodeIdExistInResp := node["node_id"]; nodeIdExistInResp { + nodeIdInResp := nodeId.(string) + if nodeIdInResp != "" { + for j, nodeInState := range nodeListInState { + nodeInState := nodeInState.(map[string]interface{}) + if nodeIdInState, nodeIdExistInState := nodeInState["node_id"]; nodeIdExistInState { + nodeIdInState = nodeIdInState.(string) + if nodeIdInState == nodeIdInResp { + if nodeNameInState, nodeNameExistInState := nodeInState["node_name"]; nodeNameExistInState { + nodeNameInState = nodeNameInState.(string) + node["node_name"] = nodeNameInState + } else { + node["node_name"] = "" + } + unusedNodeListInState = make([]interface{}, 0) + unusedNodeListInState = append(unusedNodeListInState, nodeListInState[:j]...) + unusedNodeListInState = append(unusedNodeListInState, nodeListInState[j+1:]...) + break + } + } + } // for nodeListInState + nodeListInState = unusedNodeListInState + } // if nodeIdInResp != "" + } // if node["node_id"] + } // if node["node_name"] + } // for nodeListInResponse + + // second: try to map node in response to node in state by position for nodes created outside Terraform + if len(nodeListInState) > 0 { + for _, tmp := range nodeListInResponse { + node := tmp.(map[string]interface{}) + // if node_name has not been set + if _, nodeNameExistInResp := node["node_name"]; !nodeNameExistInResp { + nodeInState := nodeListInState[0].(map[string]interface{}) + if nodeNameInState, nodeNameExistInState := nodeInState["node_name"]; nodeNameExistInState { + nodeNameInState = nodeNameInState.(string) + node["node_name"] = nodeNameInState + } else { + node["node_name"] = "" + } + unusedNodeListInState = make([]interface{}, 0) + unusedNodeListInState = append(unusedNodeListInState, nodeListInState[1:]...) + + nodeListInState = unusedNodeListInState + if len(nodeListInState) == 0 { + break + } + } // if node["node_name"] + } // for nodeListInResponse + } // if len(nodeListInState) + + s.D.Set("node_resource", schema.NewSet(nodeResourceHashCodeForSets, nodeListInResponse)) + + nsgIds := []interface{}{} + for _, item := range s.Res.NsgIds { + nsgIds = append(nsgIds, item) + } + s.D.Set("nsg_ids", schema.NewSet(tfresource.LiteralTypeHashCodeForSets, nsgIds)) + + if s.Res.PrivateZoneId != nil { + s.D.Set("private_zone_id", *s.Res.PrivateZoneId) + } + + if s.Res.ScanDnsName != nil { + s.D.Set("scan_dns_name", *s.Res.ScanDnsName) + } + + if s.Res.ScanDnsRecordId != nil { + s.D.Set("scan_dns_record_id", *s.Res.ScanDnsRecordId) + } + + s.D.Set("scan_ip_ids", s.Res.ScanIpIds) + + if s.Res.ScanListenerPortTcp != nil { + s.D.Set("scan_listener_port_tcp", *s.Res.ScanListenerPortTcp) + } + + if s.Res.ScanListenerPortTcpSsl != nil { + s.D.Set("scan_listener_port_tcp_ssl", *s.Res.ScanListenerPortTcpSsl) + } + + if s.Res.Shape != nil { + s.D.Set("shape", *s.Res.Shape) + } + + s.D.Set("ssh_public_keys", s.Res.SshPublicKeys) + + s.D.Set("state", s.Res.LifecycleState) + + if s.Res.SubnetId != nil { + s.D.Set("subnet_id", *s.Res.SubnetId) + } + + if s.Res.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) + } + + if s.Res.SystemVersion != nil { + s.D.Set("system_version", *s.Res.SystemVersion) + } + + if s.Res.TimeCreated != nil { + s.D.Set("time_created", s.Res.TimeCreated.String()) + } + + if s.Res.TimeZone != nil { + s.D.Set("time_zone", *s.Res.TimeZone) + } + + s.D.Set("vip_ids", s.Res.VipIds) + + if s.Res.ZoneId != nil { + s.D.Set("zone_id", *s.Res.ZoneId) + } + + return nil +} + +func (s *DatabaseExadbVmClusterResourceCrud) mapToDataCollectionOptions(fieldKeyFormat string) (oci_database.DataCollectionOptions, error) { + result := oci_database.DataCollectionOptions{} + + if isDiagnosticsEventsEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_diagnostics_events_enabled")); ok { + tmp := isDiagnosticsEventsEnabled.(bool) + result.IsDiagnosticsEventsEnabled = &tmp + } + + if isHealthMonitoringEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_health_monitoring_enabled")); ok { + tmp := isHealthMonitoringEnabled.(bool) + result.IsHealthMonitoringEnabled = &tmp + } + + if isIncidentLogsEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_incident_logs_enabled")); ok { + tmp := isIncidentLogsEnabled.(bool) + result.IsIncidentLogsEnabled = &tmp + } + + return result, nil +} + +func (s *DatabaseExadbVmClusterResourceCrud) updateCompartment(compartment interface{}) error { + changeCompartmentRequest := oci_database.ChangeExadbVmClusterCompartmentRequest{} + + compartmentTmp := compartment.(string) + changeCompartmentRequest.CompartmentId = &compartmentTmp + + idTmp := s.D.Id() + changeCompartmentRequest.ExadbVmClusterId = &idTmp + + changeCompartmentRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + + response, err := s.Client.ChangeExadbVmClusterCompartment(context.Background(), changeCompartmentRequest) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + if workId != nil { + _, err = tfresource.WaitForWorkRequestWithErrorHandling(s.WorkRequestClient, workId, "exadbvmcluster", oci_work_requests.WorkRequestResourceActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate), s.DisableNotFoundRetries) + if err != nil { + return err + } + } + return nil +} + +func (s *DatabaseExadbVmClusterResourceCrud) setNodeConfigInCreateExaDbVmClusterRequest(request *oci_database.CreateExadbVmClusterRequest) error { + + nodeCount := 1 + if tmpList, ok := s.D.GetOkExists(getNodeResourceKey()); ok { + set := tmpList.(*schema.Set) + interfaces := set.List() + nodeCount = len(interfaces) + } else { + return fmt.Errorf("node_resource is required but not provided in config") + } + request.NodeCount = &nodeCount + + if nodeConfig, ok := s.D.GetOkExists("node_config"); ok { + if tmpList := nodeConfig.([]interface{}); len(tmpList) > 0 { + if enabledCpuCoreCountPerNode, ok := s.D.GetOkExists(getEnableCpuCountKey()); ok { + tmp := enabledCpuCoreCountPerNode.(int) * nodeCount + request.EnabledECpuCount = &tmp + } + + if totalCpuCoreCountPerNode, ok := s.D.GetOkExists(getTotalCpuCountKey()); ok { + tmp := totalCpuCoreCountPerNode.(int) * nodeCount + request.TotalECpuCount = &tmp + } + + if vmFileSystemStoragePerNode, ok := s.D.GetOkExists(getVmStorageSizeKey()); ok { + tmp := vmFileSystemStoragePerNode.(int) * nodeCount + request.VmFileSystemStorage = &oci_database.ExadbVmClusterStorageDetails{ + TotalSizeInGbs: &tmp, + } + } + } + } + + return nil +} + +func (s *DatabaseExadbVmClusterResourceCrud) removeVirtualMachineFromExadbVmCluster(oldNodeResourceList []interface{}, newNodeResourceList []interface{}) error { + if len(oldNodeResourceList) <= len(newNodeResourceList) { + // this method is only applicable for removeVM use case + return nil + } + newNodeIdMap := make(map[string]bool) + for _, nodeResource := range newNodeResourceList { + nodeId := getNodeIdFromNodeResource(nodeResource) + if nodeId != "" { + newNodeIdMap[nodeId] = true + } + } + removedNodeIdList := []oci_database.DbNodeDetails{} + for _, nodeResource := range oldNodeResourceList { + nodeId := getNodeIdFromNodeResource(nodeResource) + if nodeId != "" { + if _, exist := newNodeIdMap[nodeId]; !exist { + tmp := oci_database.DbNodeDetails{} + tmp.DbNodeId = &nodeId + removedNodeIdList = append(removedNodeIdList, tmp) + } + } + } + + if len(removedNodeIdList) == 0 { + return nil + } + + ExadbVmClusterId := s.D.Id() + request := oci_database.RemoveVirtualMachineFromExadbVmClusterRequest{ + ExadbVmClusterId: &ExadbVmClusterId, + RemoveVirtualMachineFromExadbVmClusterDetails: oci_database.RemoveVirtualMachineFromExadbVmClusterDetails{ + DbNodes: removedNodeIdList, + }, + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + + response, err := s.Client.RemoveVirtualMachineFromExadbVmCluster(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + if workId != nil { + _, err = tfresource.WaitForWorkRequestWithErrorHandling(s.WorkRequestClient, workId, "exadbvmcluster", oci_work_requests.WorkRequestResourceActionTypeUpdated, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries) + if err != nil { + return err + } + } + return nil +} + +func getNodeConfigKey() string { + // node_config is an array with exactly one entry + return "node_config.0" +} + +func getEnableCpuCountKey() string { + return getNodeConfigKey() + ".enabled_ecpu_count_per_node" +} + +func getTotalCpuCountKey() string { + return getNodeConfigKey() + ".total_ecpu_count_per_node" +} + +func getVmStorageSizeKey() string { + return getNodeConfigKey() + ".vm_file_system_storage_size_gbs_per_node" +} + +func getNodeResourceKey() string { + return "node_resource" +} + +func stringContainsNoSpaceAndIsNotBlack() func(i interface{}, k string) (warnings []string, errors []error) { + return func(i interface{}, k string) (warnings []string, errors []error) { + v, ok := i.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected type of %s to be string", k)) + return warnings, errors + } + + if strings.ContainsAny(v, " ") { + errors = append(errors, fmt.Errorf("expected value of %s to not contain any space, got '%v'", k, i)) + return warnings, errors + } + + if strings.TrimSpace(v) == "" { + return warnings, []error{fmt.Errorf("expected %q to not be an empty string or whitespace", k)} + } + + return warnings, errors + } +} + +// key are node_name in lower case, value are node_resource object. +func buildNodeNameToNodeResourceMap(nodeResourceList []interface{}) (map[string]interface{}, error) { + nodeNameToNodeResourceMap := make(map[string]interface{}) + for _, tmp := range nodeResourceList { + nodeResource := tmp.(map[string]interface{}) + // imported resource could have node_name = nil / "" + if nodeName, nodeNameExist := nodeResource["node_name"]; nodeNameExist && nodeName != nil && nodeName != "" { + nodeNameLowerCase := strings.ToLower(nodeName.(string)) + // validate uniqueness of all node_name + if _, duplicate := nodeNameToNodeResourceMap[nodeNameLowerCase]; duplicate { + return nil, fmt.Errorf("expected node_name to be unique (case-insensitive) in all node_resource blocks. Found duplicate: '%s'", nodeNameLowerCase) + } + nodeNameToNodeResourceMap[nodeNameLowerCase] = nodeResource + } + } + return nodeNameToNodeResourceMap, nil +} + +func getNodeIdFromNodeResource(nodeResource interface{}) string { + + if nodeResourceMap, ok := nodeResource.(map[string]interface{}); ok { + if nodeId, nodeIdExist := nodeResourceMap["node_id"]; nodeIdExist { + return nodeId.(string) + } + } + + return "" +} + +func getNodeConfigAndNodeListInResponse(ExaDbVmClusterId *string, CompartmentId *string, EnabledECpuCount *int, TotalECpuCount *int, VmFileSystemStorage *oci_database.ExadbVmClusterStorageDetails, MemorySizeInGBs *int, SnapshotFileSystemStorage *oci_database.ExadbVmClusterStorageDetails, TotalFileSystemStorage *oci_database.ExadbVmClusterStorageDetails, Client *oci_database.DatabaseClient) (map[string]interface{}, []interface{}) { + + nodeResourceList, err := getNodeResourceList(ExaDbVmClusterId, CompartmentId, Client) + if err != nil { + log.Printf("WARNING: Unable to get the list of dbnodes of the Exadata DB VM cluster: %v", err) + return nil, nil + } + + nodeConfigMap := map[string]interface{}{} + nodeCount := len(nodeResourceList) + if nodeCount != 0 { + + if EnabledECpuCount != nil { + nodeConfigMap["enabled_ecpu_count_per_node"] = *EnabledECpuCount / nodeCount + } + + if TotalECpuCount != nil { + nodeConfigMap["total_ecpu_count_per_node"] = *TotalECpuCount / nodeCount + } + + if VmFileSystemStorage != nil && VmFileSystemStorage.TotalSizeInGbs != nil { + nodeConfigMap["vm_file_system_storage_size_gbs_per_node"] = *VmFileSystemStorage.TotalSizeInGbs / nodeCount + } + + if MemorySizeInGBs != nil { + nodeConfigMap["memory_size_in_gbs_per_node"] = *MemorySizeInGBs / nodeCount + } + + if SnapshotFileSystemStorage != nil && SnapshotFileSystemStorage.TotalSizeInGbs != nil { + nodeConfigMap["snapshot_file_system_storage_size_gbs_per_node"] = *SnapshotFileSystemStorage.TotalSizeInGbs / nodeCount + } + + if TotalFileSystemStorage != nil && TotalFileSystemStorage.TotalSizeInGbs != nil { + nodeConfigMap["total_file_system_storage_size_gbs_per_node"] = *TotalFileSystemStorage.TotalSizeInGbs / nodeCount + } + + } + + return nodeConfigMap, nodeResourceList +} + +func getNodeResourceList(VmClusterId *string, CompartmentId *string, Client *oci_database.DatabaseClient) ([]interface{}, error) { + request := oci_database.ListDbNodesRequest{} + + request.VmClusterId = VmClusterId + request.CompartmentId = CompartmentId + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database") + + dbNodes := []interface{}{} + + response, err := Client.ListDbNodes(context.Background(), request) + if err != nil { + return nil, err + } + dbNodes = addLiveNodeToNodeResourceList(dbNodes, response) + + request.Page = response.OpcNextPage + for request.Page != nil { + response, err := Client.ListDbNodes(context.Background(), request) + if err != nil { + return nil, err + } + dbNodes = addLiveNodeToNodeResourceList(dbNodes, response) + request.Page = response.OpcNextPage + } + return dbNodes, nil +} + +func addLiveNodeToNodeResourceList(dbNodes []interface{}, response oci_database.ListDbNodesResponse) []interface{} { + for _, item := range response.Items { + if item.LifecycleState != oci_database.DbNodeSummaryLifecycleStateTerminated { + dbNodeResource := map[string]interface{}{} + + if item.Id != nil { + dbNodeResource["node_id"] = *item.Id + } + + if item.Hostname != nil { + dbNodeResource["node_hostname"] = *item.Hostname + } + + dbNodeResource["state"] = item.LifecycleState + dbNodes = append(dbNodes, dbNodeResource) + } + } + return dbNodes +} + +// imported cluster might cause blank node_name which is allowed +func removeEntryWithBlankNodeNameFromOldList(oldNodeResourceList []interface{}) []interface{} { + resultList := []interface{}{} + for _, tmp := range oldNodeResourceList { + nodeResource := tmp.(map[string]interface{}) + if tmp, nodeNameExist := nodeResource["node_name"]; nodeNameExist { + nodeName := tmp.(string) + if nodeName == "" { + continue + } else { + resultList = append(resultList, nodeResource) + } + } + } + return resultList +} + +func customValidationOnNodeResources(context context.Context, resourceDiff *schema.ResourceDiff, meta interface{}) error { + oldNodeResourcesRaw, newNodeResourcesRaw := resourceDiff.GetChange(getNodeResourceKey()) + oldNodeResourcesRawSet := oldNodeResourcesRaw.(*schema.Set) + oldNodeResourceList := oldNodeResourcesRawSet.List() + + newNodeResourcesRawSet := newNodeResourcesRaw.(*schema.Set) + newNodeResourceList := newNodeResourcesRawSet.List() + + // keys are node_name in lower case + newNodeMap, err := buildNodeNameToNodeResourceMap(newNodeResourceList) + if err != nil { + return err + } + + // keys are node_name in lower case + oldNodeMap, err := buildNodeNameToNodeResourceMap(oldNodeResourceList) + if err != nil { + return err + } + + // !!! node_name (user input) only lives in Terraform and does not exist or relate to dbnode API response + // !!! in order to build and maintain a one-to-one mapping between the user-provided node_name and the dbnode data + // !!! node_name must be UNIQUE and can NOT be changed once set in state + if len(oldNodeResourceList) < len(newNodeResourceList) { + // node_name list: ["node1", "node2"] -> ["node1", "node2", "node3"] + // new list must be a superset of the old list + // compare old (state) with new (config) to make sure no name change on existing nodes + for oldNodeName, _ := range oldNodeMap { + if _, match := newNodeMap[oldNodeName]; !match { + return fmt.Errorf("node_name can not be changed, found node_name '%v' was changed", oldNodeName) + } + } + } else if len(oldNodeResourceList) > len(newNodeResourceList) { + // node_name list (add node case): ["node1", "node2"] -> ["node1"] + // new list must be a subset or an equal of the old list + // compare new (config) with old (state) to make sure no name change on existing nodes + for newNodeName, _ := range newNodeMap { + if _, match := oldNodeMap[newNodeName]; !match { + return fmt.Errorf("node_name can not be changed, got a new node_name '%v'", newNodeName) + } + } + } else { + // node_name list (no change case): ["node1", "node2"] -> ["node1", "node2"] (order change should not result in a diff) + // new list must be an equal of the old list + // compare old (state) with new (config) to make sure no name change on existing nodes + for oldNodeName, _ := range oldNodeMap { + if _, match := newNodeMap[oldNodeName]; !match { + return fmt.Errorf("node_name can not be changed, found node_name '%v' was changed", oldNodeName) + } + } + } + + return nil +} + +func nodeResourceHashCodeForSets(v interface{}) int { + var buf bytes.Buffer + m := v.(map[string]interface{}) + if nodeName, ok := m["node_name"]; ok && nodeName != "" { + buf.WriteString(fmt.Sprintf("%v-", nodeName)) + } + if nodeId, ok := m["node_id"]; ok && nodeId != "" { + buf.WriteString(fmt.Sprintf("%v-", nodeId)) + } + return utils.GetStringHashcode(buf.String()) +} diff --git a/internal/service/database/database_exadb_vm_cluster_update_data_source.go b/internal/service/database/database_exadb_vm_cluster_update_data_source.go new file mode 100644 index 00000000000..ab0b30d2f2e --- /dev/null +++ b/internal/service/database/database_exadb_vm_cluster_update_data_source.go @@ -0,0 +1,142 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package database + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_database "github.com/oracle/oci-go-sdk/v65/database" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseExadbVmClusterUpdateDataSource() *schema.Resource { + return &schema.Resource{ + Read: readSingularDatabaseExadbVmClusterUpdate, + Schema: map[string]*schema.Schema{ + "exadb_vm_cluster_id": { + Type: schema.TypeString, + Required: true, + }, + "update_id": { + Type: schema.TypeString, + Required: true, + }, + // Computed + "available_actions": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "description": { + Type: schema.TypeString, + Computed: true, + }, + "last_action": { + Type: schema.TypeString, + Computed: true, + }, + "lifecycle_details": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "time_released": { + Type: schema.TypeString, + Computed: true, + }, + "update_type": { + Type: schema.TypeString, + Computed: true, + }, + "version": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func readSingularDatabaseExadbVmClusterUpdate(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseExadbVmClusterUpdateDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + + return tfresource.ReadResource(sync) +} + +type DatabaseExadbVmClusterUpdateDataSourceCrud struct { + D *schema.ResourceData + Client *oci_database.DatabaseClient + Res *oci_database.GetExadbVmClusterUpdateResponse +} + +func (s *DatabaseExadbVmClusterUpdateDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DatabaseExadbVmClusterUpdateDataSourceCrud) Get() error { + request := oci_database.GetExadbVmClusterUpdateRequest{} + + if exadbVmClusterId, ok := s.D.GetOkExists("exadb_vm_cluster_id"); ok { + tmp := exadbVmClusterId.(string) + request.ExadbVmClusterId = &tmp + } + + if updateId, ok := s.D.GetOkExists("update_id"); ok { + tmp := updateId.(string) + request.UpdateId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database") + + response, err := s.Client.GetExadbVmClusterUpdate(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *DatabaseExadbVmClusterUpdateDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(*s.Res.Id) + + s.D.Set("available_actions", s.Res.AvailableActions) + + if s.Res.Description != nil { + s.D.Set("description", *s.Res.Description) + } + + s.D.Set("last_action", s.Res.LastAction) + + if s.Res.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) + } + + s.D.Set("state", s.Res.LifecycleState) + + if s.Res.TimeReleased != nil { + s.D.Set("time_released", s.Res.TimeReleased.String()) + } + + s.D.Set("update_type", s.Res.UpdateType) + + if s.Res.Version != nil { + s.D.Set("version", *s.Res.Version) + } + + return nil +} diff --git a/internal/service/database/database_exadb_vm_cluster_update_history_entries_data_source.go b/internal/service/database/database_exadb_vm_cluster_update_history_entries_data_source.go new file mode 100644 index 00000000000..f83fcb45f49 --- /dev/null +++ b/internal/service/database/database_exadb_vm_cluster_update_history_entries_data_source.go @@ -0,0 +1,188 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package database + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_database "github.com/oracle/oci-go-sdk/v65/database" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseExadbVmClusterUpdateHistoryEntriesDataSource() *schema.Resource { + return &schema.Resource{ + Read: readDatabaseExadbVmClusterUpdateHistoryEntries, + Schema: map[string]*schema.Schema{ + "filter": tfresource.DataSourceFiltersSchema(), + "exadb_vm_cluster_id": { + Type: schema.TypeString, + Required: true, + }, + "update_type": { + Type: schema.TypeString, + Optional: true, + }, + "exadb_vm_cluster_update_history_entries": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "id": { + Type: schema.TypeString, + Computed: true, + }, + "lifecycle_details": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "time_completed": { + Type: schema.TypeString, + Computed: true, + }, + "time_started": { + Type: schema.TypeString, + Computed: true, + }, + "update_action": { + Type: schema.TypeString, + Computed: true, + }, + "update_id": { + Type: schema.TypeString, + Computed: true, + }, + "update_type": { + Type: schema.TypeString, + Computed: true, + }, + "version": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + }, + } +} + +func readDatabaseExadbVmClusterUpdateHistoryEntries(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseExadbVmClusterUpdateHistoryEntriesDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + + return tfresource.ReadResource(sync) +} + +type DatabaseExadbVmClusterUpdateHistoryEntriesDataSourceCrud struct { + D *schema.ResourceData + Client *oci_database.DatabaseClient + Res *oci_database.ListExadbVmClusterUpdateHistoryEntriesResponse +} + +func (s *DatabaseExadbVmClusterUpdateHistoryEntriesDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DatabaseExadbVmClusterUpdateHistoryEntriesDataSourceCrud) Get() error { + request := oci_database.ListExadbVmClusterUpdateHistoryEntriesRequest{} + + if exadbVmClusterId, ok := s.D.GetOkExists("exadb_vm_cluster_id"); ok { + tmp := exadbVmClusterId.(string) + request.ExadbVmClusterId = &tmp + } + + if updateType, ok := s.D.GetOkExists("update_type"); ok { + request.UpdateType = oci_database.ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum(updateType.(string)) + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database") + + response, err := s.Client.ListExadbVmClusterUpdateHistoryEntries(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + request.Page = s.Res.OpcNextPage + + for request.Page != nil { + listResponse, err := s.Client.ListExadbVmClusterUpdateHistoryEntries(context.Background(), request) + if err != nil { + return err + } + + s.Res.Items = append(s.Res.Items, listResponse.Items...) + request.Page = listResponse.OpcNextPage + } + + return nil +} + +func (s *DatabaseExadbVmClusterUpdateHistoryEntriesDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(tfresource.GenerateDataSourceHashID("DatabaseExadbVmClusterUpdateHistoryEntriesDataSource-", DatabaseExadbVmClusterUpdateHistoryEntriesDataSource(), s.D)) + resources := []map[string]interface{}{} + + for _, r := range s.Res.Items { + exadbVmClusterUpdateHistoryEntry := map[string]interface{}{} + + if r.Id != nil { + exadbVmClusterUpdateHistoryEntry["id"] = *r.Id + } + + if r.LifecycleDetails != nil { + exadbVmClusterUpdateHistoryEntry["lifecycle_details"] = *r.LifecycleDetails + } + + exadbVmClusterUpdateHistoryEntry["state"] = r.LifecycleState + + if r.TimeCompleted != nil { + exadbVmClusterUpdateHistoryEntry["time_completed"] = r.TimeCompleted.String() + } + + if r.TimeStarted != nil { + exadbVmClusterUpdateHistoryEntry["time_started"] = r.TimeStarted.String() + } + + exadbVmClusterUpdateHistoryEntry["update_action"] = r.UpdateAction + + if r.UpdateId != nil { + exadbVmClusterUpdateHistoryEntry["update_id"] = *r.UpdateId + } + + exadbVmClusterUpdateHistoryEntry["update_type"] = r.UpdateType + + if r.Version != nil { + exadbVmClusterUpdateHistoryEntry["version"] = *r.Version + } + + resources = append(resources, exadbVmClusterUpdateHistoryEntry) + } + + if f, fOk := s.D.GetOkExists("filter"); fOk { + resources = tfresource.ApplyFilters(f.(*schema.Set), resources, DatabaseExadbVmClusterUpdateHistoryEntriesDataSource().Schema["exadb_vm_cluster_update_history_entries"].Elem.(*schema.Resource).Schema) + } + + if err := s.D.Set("exadb_vm_cluster_update_history_entries", resources); err != nil { + return err + } + + return nil +} diff --git a/internal/service/database/database_exadb_vm_cluster_update_history_entry_data_source.go b/internal/service/database/database_exadb_vm_cluster_update_history_entry_data_source.go new file mode 100644 index 00000000000..82c042a1779 --- /dev/null +++ b/internal/service/database/database_exadb_vm_cluster_update_history_entry_data_source.go @@ -0,0 +1,141 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package database + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_database "github.com/oracle/oci-go-sdk/v65/database" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseExadbVmClusterUpdateHistoryEntryDataSource() *schema.Resource { + return &schema.Resource{ + Read: readSingularDatabaseExadbVmClusterUpdateHistoryEntry, + Schema: map[string]*schema.Schema{ + "exadb_vm_cluster_id": { + Type: schema.TypeString, + Required: true, + }, + "update_history_entry_id": { + Type: schema.TypeString, + Required: true, + }, + // Computed + "lifecycle_details": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "time_completed": { + Type: schema.TypeString, + Computed: true, + }, + "time_started": { + Type: schema.TypeString, + Computed: true, + }, + "update_action": { + Type: schema.TypeString, + Computed: true, + }, + "update_id": { + Type: schema.TypeString, + Computed: true, + }, + "update_type": { + Type: schema.TypeString, + Computed: true, + }, + "version": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func readSingularDatabaseExadbVmClusterUpdateHistoryEntry(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseExadbVmClusterUpdateHistoryEntryDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + + return tfresource.ReadResource(sync) +} + +type DatabaseExadbVmClusterUpdateHistoryEntryDataSourceCrud struct { + D *schema.ResourceData + Client *oci_database.DatabaseClient + Res *oci_database.GetExadbVmClusterUpdateHistoryEntryResponse +} + +func (s *DatabaseExadbVmClusterUpdateHistoryEntryDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DatabaseExadbVmClusterUpdateHistoryEntryDataSourceCrud) Get() error { + request := oci_database.GetExadbVmClusterUpdateHistoryEntryRequest{} + + if exadbVmClusterId, ok := s.D.GetOkExists("exadb_vm_cluster_id"); ok { + tmp := exadbVmClusterId.(string) + request.ExadbVmClusterId = &tmp + } + + if updateHistoryEntryId, ok := s.D.GetOkExists("update_history_entry_id"); ok { + tmp := updateHistoryEntryId.(string) + request.UpdateHistoryEntryId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database") + + response, err := s.Client.GetExadbVmClusterUpdateHistoryEntry(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *DatabaseExadbVmClusterUpdateHistoryEntryDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(*s.Res.Id) + + if s.Res.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) + } + + s.D.Set("state", s.Res.LifecycleState) + + if s.Res.TimeCompleted != nil { + s.D.Set("time_completed", s.Res.TimeCompleted.String()) + } + + if s.Res.TimeStarted != nil { + s.D.Set("time_started", s.Res.TimeStarted.String()) + } + + s.D.Set("update_action", s.Res.UpdateAction) + + if s.Res.UpdateId != nil { + s.D.Set("update_id", *s.Res.UpdateId) + } + + s.D.Set("update_type", s.Res.UpdateType) + + if s.Res.Version != nil { + s.D.Set("version", *s.Res.Version) + } + + return nil +} diff --git a/internal/service/database/database_exadb_vm_cluster_updates_data_source.go b/internal/service/database/database_exadb_vm_cluster_updates_data_source.go new file mode 100644 index 00000000000..c01f365ad51 --- /dev/null +++ b/internal/service/database/database_exadb_vm_cluster_updates_data_source.go @@ -0,0 +1,198 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package database + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_database "github.com/oracle/oci-go-sdk/v65/database" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseExadbVmClusterUpdatesDataSource() *schema.Resource { + return &schema.Resource{ + Read: readDatabaseExadbVmClusterUpdates, + Schema: map[string]*schema.Schema{ + "filter": tfresource.DataSourceFiltersSchema(), + "exadb_vm_cluster_id": { + Type: schema.TypeString, + Required: true, + }, + "update_type": { + Type: schema.TypeString, + Optional: true, + }, + "version": { + Type: schema.TypeString, + Optional: true, + }, + "exadb_vm_cluster_updates": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "available_actions": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "description": { + Type: schema.TypeString, + Computed: true, + }, + "id": { + Type: schema.TypeString, + Computed: true, + }, + "last_action": { + Type: schema.TypeString, + Computed: true, + }, + "lifecycle_details": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "time_released": { + Type: schema.TypeString, + Computed: true, + }, + "update_type": { + Type: schema.TypeString, + Computed: true, + }, + "version": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + }, + } +} + +func readDatabaseExadbVmClusterUpdates(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseExadbVmClusterUpdatesDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + + return tfresource.ReadResource(sync) +} + +type DatabaseExadbVmClusterUpdatesDataSourceCrud struct { + D *schema.ResourceData + Client *oci_database.DatabaseClient + Res *oci_database.ListExadbVmClusterUpdatesResponse +} + +func (s *DatabaseExadbVmClusterUpdatesDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DatabaseExadbVmClusterUpdatesDataSourceCrud) Get() error { + request := oci_database.ListExadbVmClusterUpdatesRequest{} + + if exadbVmClusterId, ok := s.D.GetOkExists("exadb_vm_cluster_id"); ok { + tmp := exadbVmClusterId.(string) + request.ExadbVmClusterId = &tmp + } + + if updateType, ok := s.D.GetOkExists("update_type"); ok { + request.UpdateType = oci_database.ListExadbVmClusterUpdatesUpdateTypeEnum(updateType.(string)) + } + + if version, ok := s.D.GetOkExists("version"); ok { + tmp := version.(string) + request.Version = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database") + + response, err := s.Client.ListExadbVmClusterUpdates(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + request.Page = s.Res.OpcNextPage + + for request.Page != nil { + listResponse, err := s.Client.ListExadbVmClusterUpdates(context.Background(), request) + if err != nil { + return err + } + + s.Res.Items = append(s.Res.Items, listResponse.Items...) + request.Page = listResponse.OpcNextPage + } + + return nil +} + +func (s *DatabaseExadbVmClusterUpdatesDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(tfresource.GenerateDataSourceHashID("DatabaseExadbVmClusterUpdatesDataSource-", DatabaseExadbVmClusterUpdatesDataSource(), s.D)) + resources := []map[string]interface{}{} + + for _, r := range s.Res.Items { + exadbVmClusterUpdate := map[string]interface{}{} + + exadbVmClusterUpdate["available_actions"] = r.AvailableActions + + if r.Description != nil { + exadbVmClusterUpdate["description"] = *r.Description + } + + if r.Id != nil { + exadbVmClusterUpdate["id"] = *r.Id + } + + exadbVmClusterUpdate["last_action"] = r.LastAction + + if r.LifecycleDetails != nil { + exadbVmClusterUpdate["lifecycle_details"] = *r.LifecycleDetails + } + + exadbVmClusterUpdate["state"] = r.LifecycleState + + if r.TimeReleased != nil { + exadbVmClusterUpdate["time_released"] = r.TimeReleased.String() + } + + exadbVmClusterUpdate["update_type"] = r.UpdateType + + if r.Version != nil { + exadbVmClusterUpdate["version"] = *r.Version + } + + resources = append(resources, exadbVmClusterUpdate) + } + + if f, fOk := s.D.GetOkExists("filter"); fOk { + resources = tfresource.ApplyFilters(f.(*schema.Set), resources, DatabaseExadbVmClusterUpdatesDataSource().Schema["exadb_vm_cluster_updates"].Elem.(*schema.Resource).Schema) + } + + if err := s.D.Set("exadb_vm_cluster_updates", resources); err != nil { + return err + } + + return nil +} diff --git a/internal/service/database/database_exadb_vm_clusters_data_source.go b/internal/service/database/database_exadb_vm_clusters_data_source.go new file mode 100644 index 00000000000..49cf42d2f06 --- /dev/null +++ b/internal/service/database/database_exadb_vm_clusters_data_source.go @@ -0,0 +1,267 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package database + +import ( + "context" + "strconv" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_database "github.com/oracle/oci-go-sdk/v65/database" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseExadbVmClustersDataSource() *schema.Resource { + return &schema.Resource{ + Read: readDatabaseExadbVmClusters, + Schema: map[string]*schema.Schema{ + "filter": tfresource.DataSourceFiltersSchema(), + "compartment_id": { + Type: schema.TypeString, + Required: true, + }, + "display_name": { + Type: schema.TypeString, + Optional: true, + }, + "exascale_db_storage_vault_id": { + Type: schema.TypeString, + Optional: true, + }, + "state": { + Type: schema.TypeString, + Optional: true, + }, + "exadb_vm_clusters": { + Type: schema.TypeList, + Computed: true, + Elem: tfresource.GetDataSourceItemSchema(DatabaseExadbVmClusterResource()), + }, + }, + } +} + +func readDatabaseExadbVmClusters(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseExadbVmClustersDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + + return tfresource.ReadResource(sync) +} + +type DatabaseExadbVmClustersDataSourceCrud struct { + D *schema.ResourceData + Client *oci_database.DatabaseClient + Res *oci_database.ListExadbVmClustersResponse +} + +func (s *DatabaseExadbVmClustersDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DatabaseExadbVmClustersDataSourceCrud) Get() error { + request := oci_database.ListExadbVmClustersRequest{} + + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + request.CompartmentId = &tmp + } + + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + request.DisplayName = &tmp + } + + if exascaleDbStorageVaultId, ok := s.D.GetOkExists("exascale_db_storage_vault_id"); ok { + tmp := exascaleDbStorageVaultId.(string) + request.ExascaleDbStorageVaultId = &tmp + } + + if state, ok := s.D.GetOkExists("state"); ok { + request.LifecycleState = oci_database.ExadbVmClusterSummaryLifecycleStateEnum(state.(string)) + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database") + + response, err := s.Client.ListExadbVmClusters(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + request.Page = s.Res.OpcNextPage + + for request.Page != nil { + listResponse, err := s.Client.ListExadbVmClusters(context.Background(), request) + if err != nil { + return err + } + + s.Res.Items = append(s.Res.Items, listResponse.Items...) + request.Page = listResponse.OpcNextPage + } + + return nil +} + +func (s *DatabaseExadbVmClustersDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(tfresource.GenerateDataSourceHashID("DatabaseExadbVmClustersDataSource-", DatabaseExadbVmClustersDataSource(), s.D)) + resources := []map[string]interface{}{} + + for _, r := range s.Res.Items { + exadbVmCluster := map[string]interface{}{ + "compartment_id": *r.CompartmentId, + } + + if r.AvailabilityDomain != nil { + exadbVmCluster["availability_domain"] = *r.AvailabilityDomain + } + + exadbVmCluster["backup_network_nsg_ids"] = r.BackupNetworkNsgIds + + if r.BackupSubnetId != nil { + exadbVmCluster["backup_subnet_id"] = *r.BackupSubnetId + } + + if r.ClusterName != nil { + exadbVmCluster["cluster_name"] = *r.ClusterName + } + + if r.DataCollectionOptions != nil { + exadbVmCluster["data_collection_options"] = []interface{}{DataCollectionOptionsToMap(r.DataCollectionOptions)} + } else { + exadbVmCluster["data_collection_options"] = nil + } + + if r.DefinedTags != nil { + exadbVmCluster["defined_tags"] = tfresource.DefinedTagsToMap(r.DefinedTags) + } + + if r.DisplayName != nil { + exadbVmCluster["display_name"] = *r.DisplayName + } + + if r.Domain != nil { + exadbVmCluster["domain"] = *r.Domain + } + + if r.ExascaleDbStorageVaultId != nil { + exadbVmCluster["exascale_db_storage_vault_id"] = *r.ExascaleDbStorageVaultId + } + + exadbVmCluster["freeform_tags"] = r.FreeformTags + + if r.GiVersion != nil { + exadbVmCluster["gi_version"] = *r.GiVersion + } + + if r.GridImageId != nil { + exadbVmCluster["grid_image_id"] = *r.GridImageId + } + + exadbVmCluster["grid_image_type"] = r.GridImageType + + if r.Hostname != nil { + exadbVmCluster["hostname"] = *r.Hostname + } + + if r.Id != nil { + exadbVmCluster["id"] = *r.Id + } + + if r.LastUpdateHistoryEntryId != nil { + exadbVmCluster["last_update_history_entry_id"] = *r.LastUpdateHistoryEntryId + } + + exadbVmCluster["license_model"] = r.LicenseModel + + if r.LifecycleDetails != nil { + exadbVmCluster["lifecycle_details"] = *r.LifecycleDetails + } + + if r.ListenerPort != nil { + exadbVmCluster["listener_port"] = strconv.FormatInt(*r.ListenerPort, 10) + } + + nodeConfg, nodeResourceList := getNodeConfigAndNodeListInResponse(r.Id, r.CompartmentId, r.EnabledECpuCount, r.TotalECpuCount, r.VmFileSystemStorage, r.MemorySizeInGBs, r.SnapshotFileSystemStorage, r.TotalFileSystemStorage, s.Client) + exadbVmCluster["node_config"] = []interface{}{nodeConfg} + exadbVmCluster["node_resource"] = nodeResourceList + + exadbVmCluster["nsg_ids"] = r.NsgIds + + if r.PrivateZoneId != nil { + exadbVmCluster["private_zone_id"] = *r.PrivateZoneId + } + + if r.ScanDnsName != nil { + exadbVmCluster["scan_dns_name"] = *r.ScanDnsName + } + + if r.ScanDnsRecordId != nil { + exadbVmCluster["scan_dns_record_id"] = *r.ScanDnsRecordId + } + + exadbVmCluster["scan_ip_ids"] = r.ScanIpIds + + if r.ScanListenerPortTcp != nil { + exadbVmCluster["scan_listener_port_tcp"] = *r.ScanListenerPortTcp + } + + if r.ScanListenerPortTcpSsl != nil { + exadbVmCluster["scan_listener_port_tcp_ssl"] = *r.ScanListenerPortTcpSsl + } + + if r.Shape != nil { + exadbVmCluster["shape"] = *r.Shape + } + + exadbVmCluster["ssh_public_keys"] = r.SshPublicKeys + + exadbVmCluster["state"] = r.LifecycleState + + if r.SubnetId != nil { + exadbVmCluster["subnet_id"] = *r.SubnetId + } + + if r.SystemTags != nil { + exadbVmCluster["system_tags"] = tfresource.SystemTagsToMap(r.SystemTags) + } + + if r.SystemVersion != nil { + exadbVmCluster["system_version"] = *r.SystemVersion + } + + if r.TimeCreated != nil { + exadbVmCluster["time_created"] = r.TimeCreated.String() + } + + if r.TimeZone != nil { + exadbVmCluster["time_zone"] = *r.TimeZone + } + + exadbVmCluster["vip_ids"] = r.VipIds + + if r.ZoneId != nil { + exadbVmCluster["zone_id"] = *r.ZoneId + } + + resources = append(resources, exadbVmCluster) + } + + if f, fOk := s.D.GetOkExists("filter"); fOk { + resources = tfresource.ApplyFilters(f.(*schema.Set), resources, DatabaseExadbVmClustersDataSource().Schema["exadb_vm_clusters"].Elem.(*schema.Resource).Schema) + } + + if err := s.D.Set("exadb_vm_clusters", resources); err != nil { + return err + } + + return nil +} diff --git a/internal/service/database/database_exascale_db_storage_vault_data_source.go b/internal/service/database/database_exascale_db_storage_vault_data_source.go new file mode 100644 index 00000000000..a04f7471d37 --- /dev/null +++ b/internal/service/database/database_exascale_db_storage_vault_data_source.go @@ -0,0 +1,126 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package database + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_database "github.com/oracle/oci-go-sdk/v65/database" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseExascaleDbStorageVaultDataSource() *schema.Resource { + fieldMap := make(map[string]*schema.Schema) + fieldMap["exascale_db_storage_vault_id"] = &schema.Schema{ + Type: schema.TypeString, + Required: true, + } + return tfresource.GetSingularDataSourceItemSchema(DatabaseExascaleDbStorageVaultResource(), fieldMap, readSingularDatabaseExascaleDbStorageVault) +} + +func readSingularDatabaseExascaleDbStorageVault(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseExascaleDbStorageVaultDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + + return tfresource.ReadResource(sync) +} + +type DatabaseExascaleDbStorageVaultDataSourceCrud struct { + D *schema.ResourceData + Client *oci_database.DatabaseClient + Res *oci_database.GetExascaleDbStorageVaultResponse +} + +func (s *DatabaseExascaleDbStorageVaultDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DatabaseExascaleDbStorageVaultDataSourceCrud) Get() error { + request := oci_database.GetExascaleDbStorageVaultRequest{} + + if exascaleDbStorageVaultId, ok := s.D.GetOkExists("exascale_db_storage_vault_id"); ok { + tmp := exascaleDbStorageVaultId.(string) + request.ExascaleDbStorageVaultId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database") + + response, err := s.Client.GetExascaleDbStorageVault(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *DatabaseExascaleDbStorageVaultDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(*s.Res.Id) + + if s.Res.AdditionalFlashCacheInPercent != nil { + s.D.Set("additional_flash_cache_in_percent", *s.Res.AdditionalFlashCacheInPercent) + } + + if s.Res.AvailabilityDomain != nil { + s.D.Set("availability_domain", *s.Res.AvailabilityDomain) + } + + if s.Res.CompartmentId != nil { + s.D.Set("compartment_id", *s.Res.CompartmentId) + } + + if s.Res.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) + } + + if s.Res.Description != nil { + s.D.Set("description", *s.Res.Description) + } + + if s.Res.DisplayName != nil { + s.D.Set("display_name", *s.Res.DisplayName) + } + + s.D.Set("freeform_tags", s.Res.FreeformTags) + + if s.Res.HighCapacityDatabaseStorage != nil { + s.D.Set("high_capacity_database_storage", []interface{}{ExascaleDbStorageDetailsToMap(s.Res.HighCapacityDatabaseStorage)}) + } else { + s.D.Set("high_capacity_database_storage", nil) + } + + if s.Res.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) + } + + s.D.Set("state", s.Res.LifecycleState) + + if s.Res.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) + } + + if s.Res.TimeCreated != nil { + s.D.Set("time_created", s.Res.TimeCreated.String()) + } + + if s.Res.TimeZone != nil { + s.D.Set("time_zone", *s.Res.TimeZone) + } + + if s.Res.VmClusterCount != nil { + s.D.Set("vm_cluster_count", *s.Res.VmClusterCount) + } + + s.D.Set("vm_cluster_ids", s.Res.VmClusterIds) + + return nil +} diff --git a/internal/service/database/database_exascale_db_storage_vault_resource.go b/internal/service/database/database_exascale_db_storage_vault_resource.go new file mode 100644 index 00000000000..7967d2bd3bd --- /dev/null +++ b/internal/service/database/database_exascale_db_storage_vault_resource.go @@ -0,0 +1,519 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package database + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + oci_database "github.com/oracle/oci-go-sdk/v65/database" + oci_work_requests "github.com/oracle/oci-go-sdk/v65/workrequests" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseExascaleDbStorageVaultResource() *schema.Resource { + return &schema.Resource{ + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Timeouts: tfresource.DefaultTimeout, + Create: createDatabaseExascaleDbStorageVault, + Read: readDatabaseExascaleDbStorageVault, + Update: updateDatabaseExascaleDbStorageVault, + Delete: deleteDatabaseExascaleDbStorageVault, + Schema: map[string]*schema.Schema{ + // Required + "availability_domain": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + }, + "compartment_id": { + Type: schema.TypeString, + Required: true, + }, + "display_name": { + Type: schema.TypeString, + Required: true, + }, + "high_capacity_database_storage": { + Type: schema.TypeList, + Required: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "total_size_in_gbs": { + Type: schema.TypeInt, + Required: true, + }, + + // Computed + "available_size_in_gbs": { + Type: schema.TypeInt, + Computed: true, + }, + }, + }, + }, + + // Optional + "additional_flash_cache_in_percent": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "defined_tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + DiffSuppressFunc: tfresource.DefinedTagsDiffSuppressFunction, + Elem: schema.TypeString, + }, + "description": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "freeform_tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + Elem: schema.TypeString, + }, + "time_zone": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + "lifecycle_details": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "system_tags": { + Type: schema.TypeMap, + Computed: true, + Elem: schema.TypeString, + }, + "time_created": { + Type: schema.TypeString, + Computed: true, + }, + "vm_cluster_count": { + Type: schema.TypeInt, + Computed: true, + }, + "vm_cluster_ids": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + }, + } +} + +func createDatabaseExascaleDbStorageVault(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseExascaleDbStorageVaultResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + sync.WorkRequestClient = m.(*client.OracleClients).WorkRequestClient + + return tfresource.CreateResource(d, sync) +} + +func readDatabaseExascaleDbStorageVault(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseExascaleDbStorageVaultResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + + return tfresource.ReadResource(sync) +} + +func updateDatabaseExascaleDbStorageVault(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseExascaleDbStorageVaultResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + sync.WorkRequestClient = m.(*client.OracleClients).WorkRequestClient + + return tfresource.UpdateResource(d, sync) +} + +func deleteDatabaseExascaleDbStorageVault(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseExascaleDbStorageVaultResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + sync.DisableNotFoundRetries = true + sync.WorkRequestClient = m.(*client.OracleClients).WorkRequestClient + + return tfresource.DeleteResource(d, sync) +} + +type DatabaseExascaleDbStorageVaultResourceCrud struct { + tfresource.BaseCrud + Client *oci_database.DatabaseClient + Res *oci_database.ExascaleDbStorageVault + DisableNotFoundRetries bool + WorkRequestClient *oci_work_requests.WorkRequestClient +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) ID() string { + return *s.Res.Id +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) CreatedPending() []string { + return []string{ + string(oci_database.ExascaleDbStorageVaultLifecycleStateProvisioning), + } +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) CreatedTarget() []string { + return []string{ + string(oci_database.ExascaleDbStorageVaultLifecycleStateAvailable), + } +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) DeletedPending() []string { + return []string{ + string(oci_database.ExascaleDbStorageVaultLifecycleStateTerminating), + } +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) DeletedTarget() []string { + return []string{ + string(oci_database.ExascaleDbStorageVaultLifecycleStateTerminated), + } +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) UpdatePending() []string { + return []string{ + string(oci_database.ExascaleDbStorageVaultLifecycleStateUpdating), + } +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) UpdateTarget() []string { + return []string{ + string(oci_database.ExascaleDbStorageVaultLifecycleStateAvailable), + } +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) Create() error { + request := oci_database.CreateExascaleDbStorageVaultRequest{} + + if additionalFlashCacheInPercent, ok := s.D.GetOkExists("additional_flash_cache_in_percent"); ok { + tmp := additionalFlashCacheInPercent.(int) + request.AdditionalFlashCacheInPercent = &tmp + } + + if availabilityDomain, ok := s.D.GetOkExists("availability_domain"); ok { + tmp := availabilityDomain.(string) + request.AvailabilityDomain = &tmp + } + + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + request.CompartmentId = &tmp + } + + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + request.DefinedTags = convertedDefinedTags + } + + if description, ok := s.D.GetOkExists("description"); ok { + tmp := description.(string) + request.Description = &tmp + } + + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + request.DisplayName = &tmp + } + + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + + if highCapacityDatabaseStorage, ok := s.D.GetOkExists("high_capacity_database_storage"); ok { + if tmpList := highCapacityDatabaseStorage.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "high_capacity_database_storage", 0) + tmp, err := s.mapToExascaleDbStorageInputDetails(fieldKeyFormat) + if err != nil { + return err + } + request.HighCapacityDatabaseStorage = &tmp + } + } + + if timeZone, ok := s.D.GetOkExists("time_zone"); ok { + tmp := timeZone.(string) + request.TimeZone = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + + response, err := s.Client.CreateExascaleDbStorageVault(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + s.Res = &response.ExascaleDbStorageVault + + if workId != nil { + var identifier *string + var err error + identifier = response.Id + if identifier != nil { + s.D.SetId(*identifier) + } + identifier, err = tfresource.WaitForWorkRequestWithErrorHandling(s.WorkRequestClient, workId, "exascaledbstoragevault", oci_work_requests.WorkRequestResourceActionTypeCreated, s.D.Timeout(schema.TimeoutCreate), s.DisableNotFoundRetries) + if identifier != nil { + s.D.SetId(*identifier) + } + if err != nil { + return err + } + } + return s.Get() +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) Get() error { + request := oci_database.GetExascaleDbStorageVaultRequest{} + + tmp := s.D.Id() + request.ExascaleDbStorageVaultId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + + response, err := s.Client.GetExascaleDbStorageVault(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response.ExascaleDbStorageVault + return nil +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) Update() error { + if compartment, ok := s.D.GetOkExists("compartment_id"); ok && s.D.HasChange("compartment_id") { + oldRaw, newRaw := s.D.GetChange("compartment_id") + if newRaw != "" && oldRaw != "" { + err := s.updateCompartment(compartment) + if err != nil { + return err + } + } + } + request := oci_database.UpdateExascaleDbStorageVaultRequest{} + + if additionalFlashCacheInPercent, ok := s.D.GetOkExists("additional_flash_cache_in_percent"); ok && s.D.HasChange("additional_flash_cache_in_percent") { + tmp := additionalFlashCacheInPercent.(int) + request.AdditionalFlashCacheInPercent = &tmp + } + + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + request.DefinedTags = convertedDefinedTags + } + + if description, ok := s.D.GetOkExists("description"); ok && s.D.HasChange("description") { + tmp := description.(string) + request.Description = &tmp + } + + if displayName, ok := s.D.GetOkExists("display_name"); ok && s.D.HasChange("display_name") { + tmp := displayName.(string) + request.DisplayName = &tmp + } + + tmp := s.D.Id() + request.ExascaleDbStorageVaultId = &tmp + + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + + if highCapacityDatabaseStorage, ok := s.D.GetOkExists("high_capacity_database_storage"); ok && s.D.HasChange("high_capacity_database_storage") { + if tmpList := highCapacityDatabaseStorage.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "high_capacity_database_storage", 0) + tmp, err := s.mapToExascaleDbStorageInputDetails(fieldKeyFormat) + if err != nil { + return err + } + request.HighCapacityDatabaseStorage = &tmp + } + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + + response, err := s.Client.UpdateExascaleDbStorageVault(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + if workId != nil { + _, err = tfresource.WaitForWorkRequestWithErrorHandling(s.WorkRequestClient, workId, "exascaledbstoragevault", oci_work_requests.WorkRequestResourceActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate), s.DisableNotFoundRetries) + if err != nil { + return err + } + } + return s.Get() +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) Delete() error { + request := oci_database.DeleteExascaleDbStorageVaultRequest{} + + tmp := s.D.Id() + request.ExascaleDbStorageVaultId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + + response, err := s.Client.DeleteExascaleDbStorageVault(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + if workId != nil { + _, err = tfresource.WaitForWorkRequestWithErrorHandling(s.WorkRequestClient, workId, "exascaledbstoragevault", oci_work_requests.WorkRequestResourceActionTypeDeleted, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries) + if err != nil { + return err + } + } + + return nil +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) SetData() error { + if s.Res.AdditionalFlashCacheInPercent != nil { + s.D.Set("additional_flash_cache_in_percent", *s.Res.AdditionalFlashCacheInPercent) + } + + if s.Res.AvailabilityDomain != nil { + s.D.Set("availability_domain", *s.Res.AvailabilityDomain) + } + + if s.Res.CompartmentId != nil { + s.D.Set("compartment_id", *s.Res.CompartmentId) + } + + if s.Res.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) + } + + if s.Res.Description != nil { + s.D.Set("description", *s.Res.Description) + } + + if s.Res.DisplayName != nil { + s.D.Set("display_name", *s.Res.DisplayName) + } + + s.D.Set("freeform_tags", s.Res.FreeformTags) + + if s.Res.HighCapacityDatabaseStorage != nil { + s.D.Set("high_capacity_database_storage", []interface{}{ExascaleDbStorageDetailsToMap(s.Res.HighCapacityDatabaseStorage)}) + } else { + s.D.Set("high_capacity_database_storage", nil) + } + + if s.Res.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) + } + + s.D.Set("state", s.Res.LifecycleState) + + if s.Res.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) + } + + if s.Res.TimeCreated != nil { + s.D.Set("time_created", s.Res.TimeCreated.String()) + } + + if s.Res.TimeZone != nil { + s.D.Set("time_zone", *s.Res.TimeZone) + } + + if s.Res.VmClusterCount != nil { + s.D.Set("vm_cluster_count", *s.Res.VmClusterCount) + } + + s.D.Set("vm_cluster_ids", s.Res.VmClusterIds) + + return nil +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) mapToExascaleDbStorageInputDetails(fieldKeyFormat string) (oci_database.ExascaleDbStorageInputDetails, error) { + result := oci_database.ExascaleDbStorageInputDetails{} + + if totalSizeInGbs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "total_size_in_gbs")); ok { + tmp := totalSizeInGbs.(int) + result.TotalSizeInGbs = &tmp + } + + return result, nil +} + +func ExascaleDbStorageDetailsToMap(obj *oci_database.ExascaleDbStorageDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.AvailableSizeInGbs != nil { + result["available_size_in_gbs"] = int(*obj.AvailableSizeInGbs) + } + + if obj.TotalSizeInGbs != nil { + result["total_size_in_gbs"] = int(*obj.TotalSizeInGbs) + } + + return result +} + +func (s *DatabaseExascaleDbStorageVaultResourceCrud) updateCompartment(compartment interface{}) error { + changeCompartmentRequest := oci_database.ChangeExascaleDbStorageVaultCompartmentRequest{} + + compartmentTmp := compartment.(string) + changeCompartmentRequest.CompartmentId = &compartmentTmp + + idTmp := s.D.Id() + changeCompartmentRequest.ExascaleDbStorageVaultId = &idTmp + + changeCompartmentRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database") + + response, err := s.Client.ChangeExascaleDbStorageVaultCompartment(context.Background(), changeCompartmentRequest) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + if workId != nil { + _, err = tfresource.WaitForWorkRequestWithErrorHandling(s.WorkRequestClient, workId, "exascaledbstoragevault", oci_work_requests.WorkRequestResourceActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate), s.DisableNotFoundRetries) + if err != nil { + return err + } + } + return nil +} diff --git a/internal/service/database/database_exascale_db_storage_vaults_data_source.go b/internal/service/database/database_exascale_db_storage_vaults_data_source.go new file mode 100644 index 00000000000..9dcdbd7bd7a --- /dev/null +++ b/internal/service/database/database_exascale_db_storage_vaults_data_source.go @@ -0,0 +1,179 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package database + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_database "github.com/oracle/oci-go-sdk/v65/database" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseExascaleDbStorageVaultsDataSource() *schema.Resource { + return &schema.Resource{ + Read: readDatabaseExascaleDbStorageVaults, + Schema: map[string]*schema.Schema{ + "filter": tfresource.DataSourceFiltersSchema(), + "compartment_id": { + Type: schema.TypeString, + Required: true, + }, + "display_name": { + Type: schema.TypeString, + Optional: true, + }, + "state": { + Type: schema.TypeString, + Optional: true, + }, + "exascale_db_storage_vaults": { + Type: schema.TypeList, + Computed: true, + Elem: tfresource.GetDataSourceItemSchema(DatabaseExascaleDbStorageVaultResource()), + }, + }, + } +} + +func readDatabaseExascaleDbStorageVaults(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseExascaleDbStorageVaultsDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + + return tfresource.ReadResource(sync) +} + +type DatabaseExascaleDbStorageVaultsDataSourceCrud struct { + D *schema.ResourceData + Client *oci_database.DatabaseClient + Res *oci_database.ListExascaleDbStorageVaultsResponse +} + +func (s *DatabaseExascaleDbStorageVaultsDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DatabaseExascaleDbStorageVaultsDataSourceCrud) Get() error { + request := oci_database.ListExascaleDbStorageVaultsRequest{} + + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + request.CompartmentId = &tmp + } + + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + request.DisplayName = &tmp + } + + if state, ok := s.D.GetOkExists("state"); ok { + request.LifecycleState = oci_database.ExascaleDbStorageVaultLifecycleStateEnum(state.(string)) + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database") + + response, err := s.Client.ListExascaleDbStorageVaults(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + request.Page = s.Res.OpcNextPage + + for request.Page != nil { + listResponse, err := s.Client.ListExascaleDbStorageVaults(context.Background(), request) + if err != nil { + return err + } + + s.Res.Items = append(s.Res.Items, listResponse.Items...) + request.Page = listResponse.OpcNextPage + } + + return nil +} + +func (s *DatabaseExascaleDbStorageVaultsDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(tfresource.GenerateDataSourceHashID("DatabaseExascaleDbStorageVaultsDataSource-", DatabaseExascaleDbStorageVaultsDataSource(), s.D)) + resources := []map[string]interface{}{} + + for _, r := range s.Res.Items { + exascaleDbStorageVault := map[string]interface{}{ + "compartment_id": *r.CompartmentId, + } + + if r.AdditionalFlashCacheInPercent != nil { + exascaleDbStorageVault["additional_flash_cache_in_percent"] = *r.AdditionalFlashCacheInPercent + } + + if r.AvailabilityDomain != nil { + exascaleDbStorageVault["availability_domain"] = *r.AvailabilityDomain + } + + if r.DefinedTags != nil { + exascaleDbStorageVault["defined_tags"] = tfresource.DefinedTagsToMap(r.DefinedTags) + } + + if r.Description != nil { + exascaleDbStorageVault["description"] = *r.Description + } + + if r.DisplayName != nil { + exascaleDbStorageVault["display_name"] = *r.DisplayName + } + + exascaleDbStorageVault["freeform_tags"] = r.FreeformTags + + if r.HighCapacityDatabaseStorage != nil { + exascaleDbStorageVault["high_capacity_database_storage"] = []interface{}{ExascaleDbStorageDetailsToMap(r.HighCapacityDatabaseStorage)} + } else { + exascaleDbStorageVault["high_capacity_database_storage"] = nil + } + + if r.Id != nil { + exascaleDbStorageVault["id"] = *r.Id + } + + if r.LifecycleDetails != nil { + exascaleDbStorageVault["lifecycle_details"] = *r.LifecycleDetails + } + + exascaleDbStorageVault["state"] = r.LifecycleState + + if r.SystemTags != nil { + exascaleDbStorageVault["system_tags"] = tfresource.SystemTagsToMap(r.SystemTags) + } + + if r.TimeCreated != nil { + exascaleDbStorageVault["time_created"] = r.TimeCreated.String() + } + + if r.TimeZone != nil { + exascaleDbStorageVault["time_zone"] = *r.TimeZone + } + + if r.VmClusterCount != nil { + exascaleDbStorageVault["vm_cluster_count"] = *r.VmClusterCount + } + + resources = append(resources, exascaleDbStorageVault) + } + + if f, fOk := s.D.GetOkExists("filter"); fOk { + resources = tfresource.ApplyFilters(f.(*schema.Set), resources, DatabaseExascaleDbStorageVaultsDataSource().Schema["exascale_db_storage_vaults"].Elem.(*schema.Resource).Schema) + } + + if err := s.D.Set("exascale_db_storage_vaults", resources); err != nil { + return err + } + + return nil +} diff --git a/internal/service/database/database_export.go b/internal/service/database/database_export.go index 4fca61e24f6..811a760b54b 100644 --- a/internal/service/database/database_export.go +++ b/internal/service/database/database_export.go @@ -487,6 +487,26 @@ var exportDatabasePluggableDatabaseHints = &tf_export.TerraformResourceHints{ }, } +var exportDatabaseExascaleDbStorageVaultHints = &tf_export.TerraformResourceHints{ + ResourceClass: "oci_database_exascale_db_storage_vault", + DatasourceClass: "oci_database_exascale_db_storage_vaults", + DatasourceItemsAttr: "exascale_db_storage_vaults", + ResourceAbbreviation: "exascale_db_storage_vault", + DiscoverableLifecycleStates: []string{ + string(oci_database.ExascaleDbStorageVaultLifecycleStateAvailable), + }, +} + +var exportDatabaseExadbVmClusterHints = &tf_export.TerraformResourceHints{ + ResourceClass: "oci_database_exadb_vm_cluster", + DatasourceClass: "oci_database_exadb_vm_clusters", + DatasourceItemsAttr: "exadb_vm_clusters", + ResourceAbbreviation: "exadb_vm_cluster", + DiscoverableLifecycleStates: []string{ + string(oci_database.ExadbVmClusterLifecycleStateAvailable), + }, +} + var databaseResourceGraph = tf_export.TerraformResourceGraph{ "oci_identity_compartment": { {TerraformResourceHints: exportDatabaseAutonomousContainerDatabaseHints}, @@ -513,6 +533,8 @@ var databaseResourceGraph = tf_export.TerraformResourceGraph{ {TerraformResourceHints: exportDatabasePluggableDatabaseHints}, {TerraformResourceHints: exportDatabaseCloudAutonomousVmClusterHints}, {TerraformResourceHints: exportDatabaseOneoffPatchHints}, + {TerraformResourceHints: exportDatabaseExascaleDbStorageVaultHints}, + {TerraformResourceHints: exportDatabaseExadbVmClusterHints}, }, "oci_database_autonomous_container_database": { { diff --git a/internal/service/database/database_gi_version_minor_versions_data_source.go b/internal/service/database/database_gi_version_minor_versions_data_source.go new file mode 100644 index 00000000000..2821c9b64f7 --- /dev/null +++ b/internal/service/database/database_gi_version_minor_versions_data_source.go @@ -0,0 +1,172 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package database + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_database "github.com/oracle/oci-go-sdk/v65/database" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseGiVersionMinorVersionsDataSource() *schema.Resource { + return &schema.Resource{ + Read: readDatabaseGiVersionMinorVersions, + Schema: map[string]*schema.Schema{ + "filter": tfresource.DataSourceFiltersSchema(), + "availability_domain": { + Type: schema.TypeString, + Optional: true, + }, + "compartment_id": { + Type: schema.TypeString, + Optional: true, + }, + "is_gi_version_for_provisioning": { + Type: schema.TypeBool, + Optional: true, + }, + "shape": { + Type: schema.TypeString, + Optional: true, + }, + "shape_family": { + Type: schema.TypeString, + Optional: true, + }, + "version": { + Type: schema.TypeString, + Required: true, + }, + "gi_minor_versions": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "grid_image_id": { + Type: schema.TypeString, + Computed: true, + }, + "version": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + }, + } +} + +func readDatabaseGiVersionMinorVersions(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseGiVersionMinorVersionsDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseClient() + + return tfresource.ReadResource(sync) +} + +type DatabaseGiVersionMinorVersionsDataSourceCrud struct { + D *schema.ResourceData + Client *oci_database.DatabaseClient + Res *oci_database.ListGiVersionMinorVersionsResponse +} + +func (s *DatabaseGiVersionMinorVersionsDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DatabaseGiVersionMinorVersionsDataSourceCrud) Get() error { + request := oci_database.ListGiVersionMinorVersionsRequest{} + + if availabilityDomain, ok := s.D.GetOkExists("availability_domain"); ok { + tmp := availabilityDomain.(string) + request.AvailabilityDomain = &tmp + } + + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + request.CompartmentId = &tmp + } + + if isGiVersionForProvisioning, ok := s.D.GetOkExists("is_gi_version_for_provisioning"); ok { + tmp := isGiVersionForProvisioning.(bool) + request.IsGiVersionForProvisioning = &tmp + } + + if shape, ok := s.D.GetOkExists("shape"); ok { + tmp := shape.(string) + request.Shape = &tmp + } + + if shapeFamily, ok := s.D.GetOkExists("shape_family"); ok { + request.ShapeFamily = oci_database.ListGiVersionMinorVersionsShapeFamilyEnum(shapeFamily.(string)) + } + + if version, ok := s.D.GetOkExists("version"); ok { + tmp := version.(string) + request.Version = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database") + + response, err := s.Client.ListGiVersionMinorVersions(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + request.Page = s.Res.OpcNextPage + + for request.Page != nil { + listResponse, err := s.Client.ListGiVersionMinorVersions(context.Background(), request) + if err != nil { + return err + } + + s.Res.Items = append(s.Res.Items, listResponse.Items...) + request.Page = listResponse.OpcNextPage + } + + return nil +} + +func (s *DatabaseGiVersionMinorVersionsDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(tfresource.GenerateDataSourceHashID("DatabaseGiVersionMinorVersionsDataSource-", DatabaseGiVersionMinorVersionsDataSource(), s.D)) + resources := []map[string]interface{}{} + + for _, r := range s.Res.Items { + giVersionMinorVersion := map[string]interface{}{ + "version": *r.Version, + } + + if r.GridImageId != nil { + giVersionMinorVersion["grid_image_id"] = *r.GridImageId + } + + resources = append(resources, giVersionMinorVersion) + } + + if f, fOk := s.D.GetOkExists("filter"); fOk { + resources = tfresource.ApplyFilters(f.(*schema.Set), resources, DatabaseGiVersionMinorVersionsDataSource().Schema["gi_minor_versions"].Elem.(*schema.Resource).Schema) + } + + if err := s.D.Set("gi_minor_versions", resources); err != nil { + return err + } + + return nil +} diff --git a/internal/service/database/database_gi_versions_data_source.go b/internal/service/database/database_gi_versions_data_source.go index b044448d311..d3a52ceb9a8 100644 --- a/internal/service/database/database_gi_versions_data_source.go +++ b/internal/service/database/database_gi_versions_data_source.go @@ -18,6 +18,10 @@ func DatabaseGiVersionsDataSource() *schema.Resource { Read: readDatabaseGiVersions, Schema: map[string]*schema.Schema{ "filter": tfresource.DataSourceFiltersSchema(), + "availability_domain": { + Type: schema.TypeString, + Optional: true, + }, "compartment_id": { Type: schema.TypeString, Required: true, @@ -68,6 +72,11 @@ func (s *DatabaseGiVersionsDataSourceCrud) VoidState() { func (s *DatabaseGiVersionsDataSourceCrud) Get() error { request := oci_database.ListGiVersionsRequest{} + if availabilityDomain, ok := s.D.GetOkExists("availability_domain"); ok { + tmp := availabilityDomain.(string) + request.AvailabilityDomain = &tmp + } + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { tmp := compartmentId.(string) request.CompartmentId = &tmp diff --git a/internal/service/database/database_pluggable_database_resource.go b/internal/service/database/database_pluggable_database_resource.go index 0750d6e13a0..22abd6b8557 100644 --- a/internal/service/database/database_pluggable_database_resource.go +++ b/internal/service/database/database_pluggable_database_resource.go @@ -111,6 +111,12 @@ func DatabasePluggableDatabaseResource() *schema.Resource { Computed: true, ForceNew: true, }, + "is_thin_clone": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + ForceNew: true, + }, "refreshable_clone_details": { Type: schema.TypeList, Optional: true, @@ -741,6 +747,10 @@ func (s *DatabasePluggableDatabaseResourceCrud) mapToCreatePluggableDatabaseCrea switch strings.ToLower(creationType) { case strings.ToLower("LOCAL_CLONE_PDB"): details := oci_database.CreatePluggableDatabaseFromLocalCloneDetails{} + if isThinClone, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_thin_clone")); ok { + tmp := isThinClone.(bool) + details.IsThinClone = &tmp + } if sourcePluggableDatabaseId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source_pluggable_database_id")); ok { tmp := sourcePluggableDatabaseId.(string) details.SourcePluggableDatabaseId = &tmp @@ -775,6 +785,10 @@ func (s *DatabasePluggableDatabaseResourceCrud) mapToCreatePluggableDatabaseCrea tmp := dblinkUsername.(string) details.DblinkUsername = &tmp } + if isThinClone, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_thin_clone")); ok { + tmp := isThinClone.(bool) + details.IsThinClone = &tmp + } if refreshableCloneDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "refreshable_clone_details")); ok { if tmpList := refreshableCloneDetails.([]interface{}); len(tmpList) > 0 { fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "refreshable_clone_details"), 0) @@ -806,6 +820,10 @@ func CreatePluggableDatabaseCreationTypeDetailsToMap(obj *oci_database.CreatePlu case oci_database.CreatePluggableDatabaseFromLocalCloneDetails: result["creation_type"] = "LOCAL_CLONE_PDB" + if v.IsThinClone != nil { + result["is_thin_clone"] = bool(*v.IsThinClone) + } + if v.SourcePluggableDatabaseId != nil { result["source_pluggable_database_id"] = string(*v.SourcePluggableDatabaseId) } @@ -838,6 +856,10 @@ func CreatePluggableDatabaseCreationTypeDetailsToMap(obj *oci_database.CreatePlu result["dblink_username"] = string(*v.DblinkUsername) } + if v.IsThinClone != nil { + result["is_thin_clone"] = bool(*v.IsThinClone) + } + if v.RefreshableCloneDetails != nil { result["refreshable_clone_details"] = []interface{}{CreatePluggableDatabaseRefreshableCloneDetailsToMap(v.RefreshableCloneDetails)} } diff --git a/internal/service/database/register_datasource.go b/internal/service/database/register_datasource.go index bc46e86ce19..b26166fbbf6 100644 --- a/internal/service/database/register_datasource.go +++ b/internal/service/database/register_datasource.go @@ -90,6 +90,14 @@ func RegisterDatasource() { tfresource.RegisterDatasource("oci_database_exadata_infrastructure_un_allocated_resource", DatabaseExadataInfrastructureUnAllocatedResourceDataSource()) tfresource.RegisterDatasource("oci_database_exadata_infrastructures", DatabaseExadataInfrastructuresDataSource()) tfresource.RegisterDatasource("oci_database_exadata_iorm_config", DatabaseExadataIormConfigDataSource()) + tfresource.RegisterDatasource("oci_database_exadb_vm_cluster", DatabaseExadbVmClusterDataSource()) + tfresource.RegisterDatasource("oci_database_exadb_vm_cluster_update", DatabaseExadbVmClusterUpdateDataSource()) + tfresource.RegisterDatasource("oci_database_exadb_vm_cluster_update_history_entries", DatabaseExadbVmClusterUpdateHistoryEntriesDataSource()) + tfresource.RegisterDatasource("oci_database_exadb_vm_cluster_update_history_entry", DatabaseExadbVmClusterUpdateHistoryEntryDataSource()) + tfresource.RegisterDatasource("oci_database_exadb_vm_cluster_updates", DatabaseExadbVmClusterUpdatesDataSource()) + tfresource.RegisterDatasource("oci_database_exadb_vm_clusters", DatabaseExadbVmClustersDataSource()) + tfresource.RegisterDatasource("oci_database_exascale_db_storage_vault", DatabaseExascaleDbStorageVaultDataSource()) + tfresource.RegisterDatasource("oci_database_exascale_db_storage_vaults", DatabaseExascaleDbStorageVaultsDataSource()) tfresource.RegisterDatasource("oci_database_external_container_database", DatabaseExternalContainerDatabaseDataSource()) tfresource.RegisterDatasource("oci_database_external_container_databases", DatabaseExternalContainerDatabasesDataSource()) tfresource.RegisterDatasource("oci_database_external_database_connector", DatabaseExternalDatabaseConnectorDataSource()) @@ -99,6 +107,7 @@ func RegisterDatasource() { tfresource.RegisterDatasource("oci_database_external_pluggable_database", DatabaseExternalPluggableDatabaseDataSource()) tfresource.RegisterDatasource("oci_database_external_pluggable_databases", DatabaseExternalPluggableDatabasesDataSource()) tfresource.RegisterDatasource("oci_database_flex_components", DatabaseFlexComponentsDataSource()) + tfresource.RegisterDatasource("oci_database_gi_version_minor_versions", DatabaseGiVersionMinorVersionsDataSource()) tfresource.RegisterDatasource("oci_database_gi_versions", DatabaseGiVersionsDataSource()) tfresource.RegisterDatasource("oci_database_infrastructure_target_version", DatabaseInfrastructureTargetVersionDataSource()) tfresource.RegisterDatasource("oci_database_key_store", DatabaseKeyStoreDataSource()) diff --git a/internal/service/database/register_resource.go b/internal/service/database/register_resource.go index 0d2516a85bb..353dd0d0560 100644 --- a/internal/service/database/register_resource.go +++ b/internal/service/database/register_resource.go @@ -39,6 +39,8 @@ func RegisterResource() { tfresource.RegisterResource("oci_database_db_system", DatabaseDbSystemResource()) tfresource.RegisterResource("oci_database_exadata_infrastructure", DatabaseExadataInfrastructureResource()) tfresource.RegisterResource("oci_database_exadata_iorm_config", DatabaseExadataIormConfigResource()) + tfresource.RegisterResource("oci_database_exadb_vm_cluster", DatabaseExadbVmClusterResource()) + tfresource.RegisterResource("oci_database_exascale_db_storage_vault", DatabaseExascaleDbStorageVaultResource()) tfresource.RegisterResource("oci_database_external_container_database", DatabaseExternalContainerDatabaseResource()) tfresource.RegisterResource("oci_database_external_container_database_management", DatabaseExternalContainerDatabaseManagementResource()) tfresource.RegisterResource("oci_database_external_database_connector", DatabaseExternalDatabaseConnectorResource()) diff --git a/internal/service/database_migration/database_migration_connection_data_source.go b/internal/service/database_migration/database_migration_connection_data_source.go index 310ba787a68..80c87945447 100644 --- a/internal/service/database_migration/database_migration_connection_data_source.go +++ b/internal/service/database_migration/database_migration_connection_data_source.go @@ -2,153 +2,304 @@ // // Licensed under the Mozilla Public License v2.0 package database_migration -// -//import ( -// "context" -// -// "github.com/oracle/terraform-provider-oci/internal/client" -// "github.com/oracle/terraform-provider-oci/internal/tfresource" -// -// "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" -// oci_database_migration "github.com/oracle/oci-go-sdk/v65/databasemigration" -//) -// -//func DatabaseMigrationConnectionDataSource() *schema.Resource { -// fieldMap := make(map[string]*schema.Schema) -// fieldMap["connection_id"] = &schema.Schema{ -// Type: schema.TypeString, -// Required: true, -// } -// return tfresource.GetSingularDataSourceItemSchema(DatabaseMigrationConnectionResource(), fieldMap, readSingularDatabaseMigrationConnection) -//} -// -//func readSingularDatabaseMigrationConnection(d *schema.ResourceData, m interface{}) error { -// sync := &DatabaseMigrationConnectionDataSourceCrud{} -// sync.D = d -// sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() -// -// return tfresource.ReadResource(sync) -//} -// -//type DatabaseMigrationConnectionDataSourceCrud struct { -// D *schema.ResourceData -// Client *oci_database_migration.DatabaseMigrationClient -// Res *oci_database_migration.GetConnectionResponse -//} -// -//func (s *DatabaseMigrationConnectionDataSourceCrud) VoidState() { -// s.D.SetId("") -//} -// -//func (s *DatabaseMigrationConnectionDataSourceCrud) Get() error { -// request := oci_database_migration.GetConnectionRequest{} -// -// if connectionId, ok := s.D.GetOkExists("connection_id"); ok { -// tmp := connectionId.(string) -// request.ConnectionId = &tmp -// } -// -// request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database_migration") -// -// response, err := s.Client.GetConnection(context.Background(), request) -// if err != nil { -// return err -// } -// -// s.Res = &response -// return nil -//} -// -//func (s *DatabaseMigrationConnectionDataSourceCrud) SetData() error { -// if s.Res == nil { -// return nil -// } -// -// s.D.SetId(*s.Res.Id) -// -// if s.Res.AdminCredentials != nil { -// s.D.Set("admin_credentials", []interface{}{AdminCredentialsToMap(s.Res.AdminCredentials)}) -// } else { -// s.D.Set("admin_credentials", nil) -// } -// -// if s.Res.CertificateTdn != nil { -// s.D.Set("certificate_tdn", *s.Res.CertificateTdn) -// } -// -// if s.Res.CompartmentId != nil { -// s.D.Set("compartment_id", *s.Res.CompartmentId) -// } -// -// if s.Res.ConnectDescriptor != nil { -// s.D.Set("connect_descriptor", []interface{}{ConnectDescriptorToMap(s.Res.ConnectDescriptor)}) -// } else { -// s.D.Set("connect_descriptor", nil) -// } -// -// if s.Res.CredentialsSecretId != nil { -// s.D.Set("credentials_secret_id", *s.Res.CredentialsSecretId) -// } -// -// if s.Res.DatabaseId != nil { -// s.D.Set("database_id", *s.Res.DatabaseId) -// } -// -// s.D.Set("database_type", s.Res.DatabaseType) -// -// if s.Res.DefinedTags != nil { -// s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) -// } -// -// if s.Res.DisplayName != nil { -// s.D.Set("display_name", *s.Res.DisplayName) -// } -// -// s.D.Set("freeform_tags", s.Res.FreeformTags) -// -// if s.Res.LifecycleDetails != nil { -// s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) -// } -// -// s.D.Set("manual_database_sub_type", s.Res.ManualDatabaseSubType) -// -// if s.Res.PrivateEndpoint != nil { -// s.D.Set("private_endpoint", []interface{}{PrivateEndpointDetailsToMap(s.Res.PrivateEndpoint)}) -// } else { -// s.D.Set("private_endpoint", nil) -// } -// -// if s.Res.ReplicationCredentials != nil { -// s.D.Set("replication_credentials", []interface{}{AdminCredentialsToMapPassword(s.Res.ReplicationCredentials, s.D)}) -// } else { -// s.D.Set("replication_credentials", nil) -// } -// -// if s.Res.SshDetails != nil { -// s.D.Set("ssh_details", []interface{}{SshDetailsToMap(s.Res.SshDetails)}) -// } else { -// s.D.Set("ssh_details", nil) -// } -// -// s.D.Set("state", s.Res.LifecycleState) -// -// if s.Res.SystemTags != nil { -// s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) -// } -// -// if s.Res.TimeCreated != nil { -// s.D.Set("time_created", s.Res.TimeCreated.String()) -// } -// -// if s.Res.TimeUpdated != nil { -// s.D.Set("time_updated", s.Res.TimeUpdated.String()) -// } -// -// if s.Res.VaultDetails != nil { -// s.D.Set("vault_details", []interface{}{VaultDetailsToMap(s.Res.VaultDetails)}) -// } else { -// s.D.Set("vault_details", nil) -// } -// -// return nil -//} +import ( + "context" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_database_migration "github.com/oracle/oci-go-sdk/v65/databasemigration" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseMigrationConnectionDataSource() *schema.Resource { + fieldMap := make(map[string]*schema.Schema) + fieldMap["connection_id"] = &schema.Schema{ + Type: schema.TypeString, + Required: true, + } + return tfresource.GetSingularDataSourceItemSchema(DatabaseMigrationConnectionResource(), fieldMap, readSingularDatabaseMigrationConnection) +} + +func readSingularDatabaseMigrationConnection(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseMigrationConnectionDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() + + return tfresource.ReadResource(sync) +} + +type DatabaseMigrationConnectionDataSourceCrud struct { + D *schema.ResourceData + Client *oci_database_migration.DatabaseMigrationClient + Res *oci_database_migration.GetConnectionResponse +} + +func (s *DatabaseMigrationConnectionDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DatabaseMigrationConnectionDataSourceCrud) Get() error { + request := oci_database_migration.GetConnectionRequest{} + + if connectionId, ok := s.D.GetOkExists("connection_id"); ok { + tmp := connectionId.(string) + request.ConnectionId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database_migration") + + response, err := s.Client.GetConnection(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *DatabaseMigrationConnectionDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(*s.Res.GetId()) + switch v := (s.Res.Connection).(type) { + case oci_database_migration.MysqlConnection: + s.D.Set("connection_type", "MYSQL") + + additionalAttributes := []interface{}{} + for _, item := range v.AdditionalAttributes { + additionalAttributes = append(additionalAttributes, NameValuePairToMap(item)) + } + s.D.Set("additional_attributes", additionalAttributes) + + if v.DatabaseName != nil { + s.D.Set("database_name", *v.DatabaseName) + } + + if v.DbSystemId != nil { + s.D.Set("db_system_id", *v.DbSystemId) + } + + if v.Host != nil { + s.D.Set("host", *v.Host) + } + + if v.Port != nil { + s.D.Set("port", *v.Port) + } + + s.D.Set("security_protocol", v.SecurityProtocol) + + s.D.Set("ssl_mode", v.SslMode) + + s.D.Set("technology_type", v.TechnologyType) + + if v.CompartmentId != nil { + s.D.Set("compartment_id", *v.CompartmentId) + } + + if v.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(v.DefinedTags)) + } + + if v.Description != nil { + s.D.Set("description", *v.Description) + } + + if v.DisplayName != nil { + s.D.Set("display_name", *v.DisplayName) + } + + s.D.Set("freeform_tags", v.FreeformTags) + + ingressIps := []interface{}{} + for _, item := range v.IngressIps { + ingressIps = append(ingressIps, IngressIpDetailsToMap(item)) + } + s.D.Set("ingress_ips", ingressIps) + + if v.KeyId != nil { + s.D.Set("key_id", *v.KeyId) + } + + if v.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *v.LifecycleDetails) + } + + nsgIds := []interface{}{} + for _, item := range v.NsgIds { + nsgIds = append(nsgIds, item) + } + s.D.Set("nsg_ids", v.NsgIds) + + if v.Password != nil { + s.D.Set("password", *v.Password) + } + + if v.PrivateEndpointId != nil { + s.D.Set("private_endpoint_id", *v.PrivateEndpointId) + } + + if v.ReplicationPassword != nil { + s.D.Set("replication_password", *v.ReplicationPassword) + } + + if v.ReplicationUsername != nil { + s.D.Set("replication_username", *v.ReplicationUsername) + } + + if v.SecretId != nil { + s.D.Set("secret_id", *v.SecretId) + } + + s.D.Set("state", v.LifecycleState) + + if v.SubnetId != nil { + s.D.Set("subnet_id", *v.SubnetId) + } + + if v.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(v.SystemTags)) + } + + s.D.Set("technology_type", v.TechnologyType) + + if v.TimeCreated != nil { + s.D.Set("time_created", v.TimeCreated.String()) + } + + if v.TimeUpdated != nil { + s.D.Set("time_updated", v.TimeUpdated.String()) + } + + if v.Username != nil { + s.D.Set("username", *v.Username) + } + + if v.VaultId != nil { + s.D.Set("vault_id", *v.VaultId) + } + case oci_database_migration.OracleConnection: + s.D.Set("connection_type", "ORACLE") + + if v.ConnectionString != nil { + s.D.Set("connection_string", *v.ConnectionString) + } + + if v.DatabaseId != nil { + s.D.Set("database_id", *v.DatabaseId) + } + + if v.SshHost != nil { + s.D.Set("ssh_host", *v.SshHost) + } + + if v.SshKey != nil { + s.D.Set("ssh_key", *v.SshKey) + } + + if v.SshSudoLocation != nil { + s.D.Set("ssh_sudo_location", *v.SshSudoLocation) + } + + if v.SshUser != nil { + s.D.Set("ssh_user", *v.SshUser) + } + + s.D.Set("technology_type", v.TechnologyType) + + if v.CompartmentId != nil { + s.D.Set("compartment_id", *v.CompartmentId) + } + + if v.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(v.DefinedTags)) + } + + if v.Description != nil { + s.D.Set("description", *v.Description) + } + + if v.DisplayName != nil { + s.D.Set("display_name", *v.DisplayName) + } + + s.D.Set("freeform_tags", v.FreeformTags) + + ingressIps := []interface{}{} + for _, item := range v.IngressIps { + ingressIps = append(ingressIps, IngressIpDetailsToMap(item)) + } + s.D.Set("ingress_ips", ingressIps) + + if v.KeyId != nil { + s.D.Set("key_id", *v.KeyId) + } + + if v.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *v.LifecycleDetails) + } + + nsgIds := []interface{}{} + for _, item := range v.NsgIds { + nsgIds = append(nsgIds, item) + } + s.D.Set("nsg_ids", v.NsgIds) + + if v.Password != nil { + s.D.Set("password", *v.Password) + } + + if v.PrivateEndpointId != nil { + s.D.Set("private_endpoint_id", *v.PrivateEndpointId) + } + + if v.ReplicationPassword != nil { + s.D.Set("replication_password", *v.ReplicationPassword) + } + + if v.ReplicationUsername != nil { + s.D.Set("replication_username", *v.ReplicationUsername) + } + + if v.SecretId != nil { + s.D.Set("secret_id", *v.SecretId) + } + + s.D.Set("state", v.LifecycleState) + + if v.SubnetId != nil { + s.D.Set("subnet_id", *v.SubnetId) + } + + if v.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(v.SystemTags)) + } + + s.D.Set("technology_type", v.TechnologyType) + + if v.TimeCreated != nil { + s.D.Set("time_created", v.TimeCreated.String()) + } + + if v.TimeUpdated != nil { + s.D.Set("time_updated", v.TimeUpdated.String()) + } + + if v.Username != nil { + s.D.Set("username", *v.Username) + } + + if v.VaultId != nil { + s.D.Set("vault_id", *v.VaultId) + } + default: + log.Printf("[WARN] Received 'connection_type' of unknown type %v", s.Res.Connection) + return nil + } + + return nil +} diff --git a/internal/service/database_migration/database_migration_connection_resource.go b/internal/service/database_migration/database_migration_connection_resource.go index 4b487c1f0c7..a1dfc1bab1a 100644 --- a/internal/service/database_migration/database_migration_connection_resource.go +++ b/internal/service/database_migration/database_migration_connection_resource.go @@ -2,1404 +2,1381 @@ // // Licensed under the Mozilla Public License v2.0 package database_migration -// -//import ( -// "context" -// "fmt" -// "strings" -// "time" -// -// "github.com/oracle/terraform-provider-oci/internal/client" -// "github.com/oracle/terraform-provider-oci/internal/tfresource" -// -// "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" -// "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" -// -// oci_common "github.com/oracle/oci-go-sdk/v65/common" -// oci_database_migration "github.com/oracle/oci-go-sdk/v65/databasemigration" -//) -// -//func DatabaseMigrationConnectionResource() *schema.Resource { -// return &schema.Resource{ -// Importer: &schema.ResourceImporter{ -// State: schema.ImportStatePassthrough, -// }, -// Timeouts: tfresource.DefaultTimeout, -// -// Create: createDatabaseMigrationConnection, -// Read: readDatabaseMigrationConnection, -// Update: updateDatabaseMigrationConnection, -// Delete: deleteDatabaseMigrationConnection, -// Schema: map[string]*schema.Schema{ -// // Required -// "admin_credentials": { -// Type: schema.TypeList, -// Required: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "password": { -// Type: schema.TypeString, -// Required: true, -// Sensitive: true, -// }, -// "username": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// "compartment_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// "database_type": { -// Type: schema.TypeString, -// Required: true, -// ForceNew: true, -// }, -// "vault_details": { -// Type: schema.TypeList, -// Required: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "compartment_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// "key_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// "vault_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// -// // Optional -// "certificate_tdn": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "connect_descriptor": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "connect_string": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// ConflictsWith: []string{"connect_descriptor.0.database_service_name", "connect_descriptor.0.host", "connect_descriptor.0.port"}, -// }, -// "database_service_name": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// ConflictsWith: []string{"connect_descriptor.0.connect_string"}, -// }, -// "host": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// ConflictsWith: []string{"connect_descriptor.0.connect_string"}, -// }, -// "port": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// ConflictsWith: []string{"connect_descriptor.0.connect_string"}, -// }, -// -// // Computed -// }, -// }, -// }, -// "database_id": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "defined_tags": { -// Type: schema.TypeMap, -// Optional: true, -// Computed: true, -// DiffSuppressFunc: tfresource.DefinedTagsDiffSuppressFunction, -// Elem: schema.TypeString, -// }, -// "display_name": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "freeform_tags": { -// Type: schema.TypeMap, -// Optional: true, -// Computed: true, -// Elem: schema.TypeString, -// }, -// "manual_database_sub_type": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// ForceNew: true, -// }, -// "nsg_ids": { -// Type: schema.TypeSet, -// Optional: true, -// Computed: true, -// Set: tfresource.LiteralTypeHashCodeForSets, -// Elem: &schema.Schema{ -// Type: schema.TypeString, -// }, -// }, -// "private_endpoint": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "compartment_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// "subnet_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// "vcn_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// "id": { -// Type: schema.TypeString, -// Computed: true, -// }, -// }, -// }, -// }, -// "replication_credentials": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "password": { -// Type: schema.TypeString, -// Required: true, -// Sensitive: true, -// }, -// "username": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// "ssh_details": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "host": { -// Type: schema.TypeString, -// Required: true, -// }, -// "sshkey": { -// Type: schema.TypeString, -// Required: true, -// }, -// "user": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// "sudo_location": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// "tls_keystore": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "tls_wallet": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// "credentials_secret_id": { -// Type: schema.TypeString, -// Computed: true, -// }, -// "lifecycle_details": { -// Type: schema.TypeString, -// Computed: true, -// }, -// "state": { -// Type: schema.TypeString, -// Computed: true, -// }, -// "system_tags": { -// Type: schema.TypeMap, -// Computed: true, -// Elem: schema.TypeString, -// }, -// "time_created": { -// Type: schema.TypeString, -// Computed: true, -// }, -// "time_updated": { -// Type: schema.TypeString, -// Computed: true, -// }, -// }, -// } -//} -// -//func createDatabaseMigrationConnection(d *schema.ResourceData, m interface{}) error { -// sync := &DatabaseMigrationConnectionResourceCrud{} -// sync.D = d -// sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() -// -// return tfresource.CreateResource(d, sync) -//} -// -//func readDatabaseMigrationConnection(d *schema.ResourceData, m interface{}) error { -// sync := &DatabaseMigrationConnectionResourceCrud{} -// sync.D = d -// sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() -// -// return tfresource.ReadResource(sync) -//} -// -//func updateDatabaseMigrationConnection(d *schema.ResourceData, m interface{}) error { -// sync := &DatabaseMigrationConnectionResourceCrud{} -// sync.D = d -// sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() -// -// return tfresource.UpdateResource(d, sync) -//} -// -//func deleteDatabaseMigrationConnection(d *schema.ResourceData, m interface{}) error { -// sync := &DatabaseMigrationConnectionResourceCrud{} -// sync.D = d -// sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() -// sync.DisableNotFoundRetries = true -// -// return tfresource.DeleteResource(d, sync) -//} -// -//type DatabaseMigrationConnectionResourceCrud struct { -// tfresource.BaseCrud -// Client *oci_database_migration.DatabaseMigrationClient -// Res *oci_database_migration.Connection -// DisableNotFoundRetries bool -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) ID() string { -// return *s.Res.Id -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) CreatedPending() []string { -// return []string{ -// string(oci_database_migration.LifecycleStatesCreating), -// } -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) CreatedTarget() []string { -// return []string{ -// string(oci_database_migration.LifecycleStatesActive), -// } -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) DeletedPending() []string { -// return []string{ -// string(oci_database_migration.LifecycleStatesDeleting), -// } -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) DeletedTarget() []string { -// return []string{ -// string(oci_database_migration.LifecycleStatesDeleted), -// } -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) Create() error { -// request := oci_database_migration.CreateConnectionRequest{} -// -// if adminCredentials, ok := s.D.GetOkExists("admin_credentials"); ok { -// if tmpList := adminCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "admin_credentials", 0) -// tmp, err := s.mapToCreateAdminCredentials(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.AdminCredentials = &tmp -// } -// } -// -// if certificateTdn, ok := s.D.GetOkExists("certificate_tdn"); ok { -// tmp := certificateTdn.(string) -// request.CertificateTdn = &tmp -// } -// -// if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { -// tmp := compartmentId.(string) -// request.CompartmentId = &tmp -// } -// -// if connectDescriptor, ok := s.D.GetOkExists("connect_descriptor"); ok { -// if tmpList := connectDescriptor.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "connect_descriptor", 0) -// tmp, err := s.mapToCreateConnectDescriptor(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.ConnectDescriptor = &tmp -// } -// } -// -// if databaseId, ok := s.D.GetOkExists("database_id"); ok { -// tmp := databaseId.(string) -// request.DatabaseId = &tmp -// } -// -// if databaseType, ok := s.D.GetOkExists("database_type"); ok { -// request.DatabaseType = oci_database_migration.DatabaseConnectionTypesEnum(databaseType.(string)) -// } -// -// if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { -// convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) -// if err != nil { -// return err -// } -// request.DefinedTags = convertedDefinedTags -// } -// -// if displayName, ok := s.D.GetOkExists("display_name"); ok { -// tmp := displayName.(string) -// request.DisplayName = &tmp -// } -// -// if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { -// request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) -// } -// -// if manualDatabaseSubType, ok := s.D.GetOkExists("manual_database_sub_type"); ok { -// request.ManualDatabaseSubType = oci_database_migration.DatabaseManualConnectionSubTypesEnum(manualDatabaseSubType.(string)) -// } -// -// if nsgIds, ok := s.D.GetOkExists("nsg_ids"); ok { -// set := nsgIds.(*schema.Set) -// interfaces := set.List() -// tmp := make([]string, len(interfaces)) -// for i := range interfaces { -// if interfaces[i] != nil { -// tmp[i] = interfaces[i].(string) -// } -// } -// if len(tmp) != 0 || s.D.HasChange("nsg_ids") { -// request.NsgIds = tmp -// } -// } -// -// if privateEndpoint, ok := s.D.GetOkExists("private_endpoint"); ok { -// if tmpList := privateEndpoint.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "private_endpoint", 0) -// tmp, err := s.mapToCreatePrivateEndpoint(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.PrivateEndpoint = &tmp -// } -// } -// -// if replicationCredentials, ok := s.D.GetOkExists("replication_credentials"); ok { -// if tmpList := replicationCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "replication_credentials", 0) -// tmp, err := s.mapToCreateAdminCredentials(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.ReplicationCredentials = &tmp -// } -// } -// -// if sshDetails, ok := s.D.GetOkExists("ssh_details"); ok { -// if tmpList := sshDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "ssh_details", 0) -// tmp, err := s.mapToCreateSshDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.SshDetails = &tmp -// } -// } -// -// if tlsKeystore, ok := s.D.GetOkExists("tls_keystore"); ok { -// tmp := tlsKeystore.(string) -// request.TlsKeystore = &tmp -// } -// -// if tlsWallet, ok := s.D.GetOkExists("tls_wallet"); ok { -// tmp := tlsWallet.(string) -// request.TlsWallet = &tmp -// } -// -// if vaultDetails, ok := s.D.GetOkExists("vault_details"); ok { -// if tmpList := vaultDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "vault_details", 0) -// tmp, err := s.mapToCreateVaultDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.VaultDetails = &tmp -// } -// } -// -// request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") -// -// response, err := s.Client.CreateConnection(context.Background(), request) -// if err != nil { -// return err -// } -// -// workId := response.OpcWorkRequestId -// var identifier *string -// identifier = response.Id -// if identifier != nil { -// s.D.SetId(*identifier) -// } -// return s.getConnectionFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration"), oci_database_migration.WorkRequestResourceActionTypeCreated, s.D.Timeout(schema.TimeoutCreate)) -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) getConnectionFromWorkRequest(workId *string, retryPolicy *oci_common.RetryPolicy, -// -// actionTypeEnum oci_database_migration.WorkRequestResourceActionTypeEnum, timeout time.Duration) error { -// -// // Wait until it finishes -// connectionId, err := connectionWaitForWorkRequest(workId, "connection", -// actionTypeEnum, timeout, s.DisableNotFoundRetries, s.Client) -// -// if err != nil { -// return err -// } -// s.D.SetId(*connectionId) -// -// return s.Get() -//} -// -//func connectionWorkRequestShouldRetryFunc(timeout time.Duration) func(response oci_common.OCIOperationResponse) bool { -// startTime := time.Now() -// stopTime := startTime.Add(timeout) -// return func(response oci_common.OCIOperationResponse) bool { -// -// // Stop after timeout has elapsed -// if time.Now().After(stopTime) { -// return false -// } -// -// // Make sure we stop on default rules -// if tfresource.ShouldRetry(response, false, "database_migration", startTime) { -// return true -// } -// -// return false -// } -//} -// -//func connectionWaitForWorkRequest(wId *string, entityType string, action oci_database_migration.WorkRequestResourceActionTypeEnum, -// -// timeout time.Duration, disableFoundRetries bool, client *oci_database_migration.DatabaseMigrationClient) (*string, error) { -// retryPolicy := tfresource.GetRetryPolicy(disableFoundRetries, "database_migration") -// retryPolicy.ShouldRetryOperation = connectionWorkRequestShouldRetryFunc(timeout) -// -// response := oci_database_migration.GetWorkRequestResponse{} -// -// stateConf := &resource.StateChangeConf{ -// Pending: []string{ -// string(oci_database_migration.OperationStatusInProgress), -// string(oci_database_migration.OperationStatusAccepted), -// string(oci_database_migration.OperationStatusCanceling), -// }, -// Target: []string{ -// string(oci_database_migration.OperationStatusSucceeded), -// string(oci_database_migration.OperationStatusFailed), -// string(oci_database_migration.OperationStatusCanceled), -// }, -// Refresh: func() (interface{}, string, error) { -// var err error -// response, err = client.GetWorkRequest(context.Background(), -// oci_database_migration.GetWorkRequestRequest{ -// WorkRequestId: wId, -// RequestMetadata: oci_common.RequestMetadata{ -// RetryPolicy: retryPolicy, -// }, -// }) -// wr := &response.WorkRequest -// return wr, string(wr.Status), err -// }, -// Timeout: timeout, -// } -// if _, e := stateConf.WaitForState(); e != nil { -// return nil, e -// } -// var identifier *string -// // The work request response contains an array of objects that finished the operation -// for _, res := range response.Resources { -// if strings.Contains(strings.ToLower(*res.EntityType), entityType) { -// if res.ActionType == action { -// identifier = res.Identifier -// break -// } -// } -// } -// -// // The workrequest may have failed, check for errors if identifier is not found or work failed or got cancelled -// if identifier == nil || response.Status == oci_database_migration.OperationStatusFailed || response.Status == oci_database_migration.OperationStatusCanceled { -// return nil, getErrorFromDatabaseMigrationConnectionWorkRequest(client, wId, retryPolicy, entityType, action) -// } -// return identifier, nil -//} -// -//func getErrorFromDatabaseMigrationConnectionWorkRequest(client *oci_database_migration.DatabaseMigrationClient, workId *string, retryPolicy *oci_common.RetryPolicy, entityType string, action oci_database_migration.WorkRequestResourceActionTypeEnum) error { -// response, err := client.ListWorkRequestErrors(context.Background(), -// oci_database_migration.ListWorkRequestErrorsRequest{ -// WorkRequestId: workId, -// RequestMetadata: oci_common.RequestMetadata{ -// RetryPolicy: retryPolicy, -// }, -// }) -// if err != nil { -// return err -// } -// -// allErrs := make([]string, 0) -// for _, wrkErr := range response.Items { -// allErrs = append(allErrs, *wrkErr.Message) -// } -// errorMessage := strings.Join(allErrs, "\n") -// -// workRequestErr := fmt.Errorf("work request did not succeed, workId: %s, entity: %s, action: %s. Message: %s", *workId, entityType, action, errorMessage) -// -// return workRequestErr -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) Get() error { -// request := oci_database_migration.GetConnectionRequest{} -// -// tmp := s.D.Id() -// request.ConnectionId = &tmp -// -// request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") -// -// response, err := s.Client.GetConnection(context.Background(), request) -// if err != nil { -// return err -// } -// -// s.Res = &response.Connection -// return nil -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) Update() error { -// if compartment, ok := s.D.GetOkExists("compartment_id"); ok && s.D.HasChange("compartment_id") { -// oldRaw, newRaw := s.D.GetChange("compartment_id") -// if newRaw != "" && oldRaw != "" { -// err := s.updateCompartment(compartment) -// if err != nil { -// return err -// } -// } -// } -// request := oci_database_migration.UpdateConnectionRequest{} -// -// if adminCredentials, ok := s.D.GetOkExists("admin_credentials"); ok && s.D.HasChange("admin_credentials") { -// if tmpList := adminCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "admin_credentials", 0) -// tmp, err := s.mapToUpdateAdminCredentials(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.AdminCredentials = &tmp -// } -// } -// -// if certificateTdn, ok := s.D.GetOkExists("certificate_tdn"); ok { -// tmp := certificateTdn.(string) -// request.CertificateTdn = &tmp -// } -// -// if connectDescriptor, ok := s.D.GetOkExists("connect_descriptor"); ok { -// if tmpList := connectDescriptor.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "connect_descriptor", 0) -// tmp, err := s.mapToUpdateConnectDescriptor(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.ConnectDescriptor = &tmp -// } -// } -// -// tmp := s.D.Id() -// request.ConnectionId = &tmp -// -// if databaseId, ok := s.D.GetOkExists("database_id"); ok && s.D.HasChange("database_id") { -// tmp := databaseId.(string) -// request.DatabaseId = &tmp -// } -// -// if definedTags, ok := s.D.GetOkExists("defined_tags"); ok && s.D.HasChange("defined_tags") { -// convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) -// if err != nil { -// return err -// } -// request.DefinedTags = convertedDefinedTags -// } -// -// if displayName, ok := s.D.GetOkExists("display_name"); ok { -// tmp := displayName.(string) -// request.DisplayName = &tmp -// } -// -// if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok && s.D.HasChange("freeform_tags") { -// request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) -// } -// -// if nsgIds, ok := s.D.GetOkExists("nsg_ids"); ok { -// set := nsgIds.(*schema.Set) -// interfaces := set.List() -// tmp := make([]string, len(interfaces)) -// for i := range interfaces { -// if interfaces[i] != nil { -// tmp[i] = interfaces[i].(string) -// } -// } -// if len(tmp) != 0 || s.D.HasChange("nsg_ids") { -// request.NsgIds = tmp -// } -// } -// -// if privateEndpoint, ok := s.D.GetOkExists("private_endpoint"); ok { -// if tmpList := privateEndpoint.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "private_endpoint", 0) -// tmp, err := s.mapToUpdatePrivateEndpoint(fieldKeyFormat) -// -// if err != nil { -// return err -// } -// request.PrivateEndpoint = &tmp -// } -// } -// -// if replicationCredentials, ok := s.D.GetOkExists("replication_credentials"); ok { -// if tmpList := replicationCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "replication_credentials", 0) -// tmp, err := s.mapToUpdateAdminCredentials(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.ReplicationCredentials = &tmp -// } -// } -// -// if sshDetails, ok := s.D.GetOkExists("ssh_details"); ok { -// if tmpList := sshDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "ssh_details", 0) -// tmp, err := s.mapToUpdateSshDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.SshDetails = &tmp -// } -// } -// -// if tlsKeystore, ok := s.D.GetOkExists("tls_keystore"); ok { -// tmp := tlsKeystore.(string) -// request.TlsKeystore = &tmp -// } -// -// if tlsWallet, ok := s.D.GetOkExists("tls_wallet"); ok { -// tmp := tlsWallet.(string) -// request.TlsWallet = &tmp -// } -// -// if vaultDetails, ok := s.D.GetOkExists("vault_details"); ok && s.D.HasChange("vault_details") { -// if tmpList := vaultDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "vault_details", 0) -// tmp, err := s.mapToUpdateVaultDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.VaultDetails = &tmp -// } -// } -// -// request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") -// -// response, err := s.Client.UpdateConnection(context.Background(), request) -// if err != nil { -// return err -// } -// -// workId := response.OpcWorkRequestId -// return s.getConnectionFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration"), oci_database_migration.WorkRequestResourceActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate)) -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) Delete() error { -// request := oci_database_migration.DeleteConnectionRequest{} -// -// tmp := s.D.Id() -// request.ConnectionId = &tmp -// request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") -// -// response, err := s.Client.DeleteConnection(context.Background(), request) -// if err != nil { -// return err -// } -// -// workId := response.OpcWorkRequestId -// // Wait until it finishes -// _, delWorkRequestErr := connectionWaitForWorkRequest(workId, "connection", -// oci_database_migration.WorkRequestResourceActionTypeDeleted, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries, s.Client) -// return delWorkRequestErr -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) SetData() error { -// if s.Res.AdminCredentials != nil { -// s.D.Set("admin_credentials", []interface{}{AdminCredentialsToMapPassword(s.Res.AdminCredentials, s.D)}) -// -// } else { -// s.D.Set("admin_credentials", nil) -// } -// -// if s.Res.CertificateTdn != nil { -// s.D.Set("certificate_tdn", *s.Res.CertificateTdn) -// } -// -// if s.Res.CompartmentId != nil { -// s.D.Set("compartment_id", *s.Res.CompartmentId) -// } -// -// if s.Res.ConnectDescriptor != nil { -// s.D.Set("connect_descriptor", []interface{}{ConnectDescriptorToMap(s.Res.ConnectDescriptor)}) -// } else { -// s.D.Set("connect_descriptor", nil) -// } -// -// if s.Res.CredentialsSecretId != nil { -// s.D.Set("credentials_secret_id", *s.Res.CredentialsSecretId) -// } -// -// if s.Res.DatabaseId != nil { -// s.D.Set("database_id", *s.Res.DatabaseId) -// } -// -// s.D.Set("database_type", s.Res.DatabaseType) -// -// if s.Res.DefinedTags != nil { -// s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) -// } -// -// if s.Res.DisplayName != nil { -// s.D.Set("display_name", *s.Res.DisplayName) -// } -// -// s.D.Set("freeform_tags", s.Res.FreeformTags) -// -// if s.Res.LifecycleDetails != nil { -// s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) -// } -// -// nsgIds := []interface{}{} -// for _, item := range s.Res.NsgIds { -// nsgIds = append(nsgIds, item) -// } -// s.D.Set("nsg_ids", schema.NewSet(tfresource.LiteralTypeHashCodeForSets, nsgIds)) -// s.D.Set("manual_database_sub_type", s.Res.ManualDatabaseSubType) -// -// if s.Res.PrivateEndpoint != nil { -// s.D.Set("private_endpoint", []interface{}{PrivateEndpointDetailsToMap(s.Res.PrivateEndpoint)}) -// } else { -// s.D.Set("private_endpoint", nil) -// } -// -// if s.Res.ReplicationCredentials != nil { -// s.D.Set("replication_credentials", []interface{}{AdminCredentialsToMapPassword2(s.Res.ReplicationCredentials, s.D)}) -// } else { -// s.D.Set("replication_credentials", nil) -// } -// -// if s.Res.SshDetails != nil { -// s.D.Set("ssh_details", []interface{}{SshDetailsToMapPass(s.Res.SshDetails, s.D)}) -// -// } else { -// s.D.Set("ssh_details", nil) -// } -// -// s.D.Set("state", s.Res.LifecycleState) -// -// if s.Res.SystemTags != nil { -// s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) -// } -// -// if s.Res.TimeCreated != nil { -// s.D.Set("time_created", s.Res.TimeCreated.String()) -// } -// -// if s.Res.TimeUpdated != nil { -// s.D.Set("time_updated", s.Res.TimeUpdated.String()) -// } -// -// if s.Res.VaultDetails != nil { -// s.D.Set("vault_details", []interface{}{VaultDetailsToMap(s.Res.VaultDetails)}) -// } else { -// s.D.Set("vault_details", nil) -// } -// return nil -//} -// -//func ConnectionSummaryToMap(obj oci_database_migration.ConnectionSummary) map[string]interface{} { -// -// result := map[string]interface{}{} -// -// if obj.CompartmentId != nil { -// result["compartment_id"] = string(*obj.CompartmentId) -// } -// -// if obj.DatabaseId != nil { -// result["database_id"] = string(*obj.DatabaseId) -// } -// -// result["database_type"] = string(obj.DatabaseType) -// -// if obj.DefinedTags != nil { -// result["defined_tags"] = tfresource.DefinedTagsToMap(obj.DefinedTags) -// } -// -// if obj.DisplayName != nil { -// result["display_name"] = string(*obj.DisplayName) -// } -// -// result["freeform_tags"] = obj.FreeformTags -// -// if obj.Id != nil { -// result["id"] = string(*obj.Id) -// } -// -// if obj.LifecycleDetails != nil { -// result["lifecycle_details"] = string(*obj.LifecycleDetails) -// } -// -// nsgIds := []interface{}{} -// for _, item := range obj.NsgIds { -// nsgIds = append(nsgIds, item) -// } -// result["manual_database_sub_type"] = string(obj.ManualDatabaseSubType) -// -// result["state"] = string(obj.LifecycleState) -// -// if obj.SystemTags != nil { -// result["system_tags"] = tfresource.SystemTagsToMap(obj.SystemTags) -// } -// -// if obj.TimeCreated != nil { -// result["time_created"] = obj.TimeCreated.String() -// } -// -// if obj.TimeUpdated != nil { -// result["time_updated"] = obj.TimeUpdated.String() -// } -// -// return result -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) mapToCreateAdminCredentials(fieldKeyFormat string) (oci_database_migration.CreateAdminCredentials, error) { -// result := oci_database_migration.CreateAdminCredentials{} -// -// if password, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "password")); ok { -// tmp := password.(string) -// result.Password = &tmp -// } -// -// if username, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "username")); ok { -// tmp := username.(string) -// result.Username = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) mapToUpdateAdminCredentials(fieldKeyFormat string) (oci_database_migration.UpdateAdminCredentials, error) { -// result := oci_database_migration.UpdateAdminCredentials{} -// -// if password, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "password")); ok { -// tmp := password.(string) -// result.Password = &tmp -// } -// -// if username, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "username")); ok { -// tmp := username.(string) -// result.Username = &tmp -// } -// -// return result, nil -//} -// -//func AdminCredentialsToMap(obj *oci_database_migration.AdminCredentials) map[string]interface{} { -// result := map[string]interface{}{} -// if obj.Username != nil { -// result["username"] = string(*obj.Username) -// } -// -// return result -//} -// -//func AdminCredentialsToMapPassword(obj *oci_database_migration.AdminCredentials, resourceData *schema.ResourceData) map[string]interface{} { -// result := map[string]interface{}{} -// if adminCredentialsValue, ok := resourceData.GetOkExists("admin_credentials"); ok { -// if tmpList := adminCredentialsValue.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "admin_credentials", 0) -// if adminPassword, ok := resourceData.GetOkExists(fmt.Sprintf(fieldKeyFormat, "password")); ok { -// tmp := adminPassword.(string) -// result["password"] = &tmp -// } -// } -// } -// -// if obj.Username != nil { -// result["username"] = string(*obj.Username) -// } -// return result -//} -// -//func AdminCredentialsToMapPassword2(obj *oci_database_migration.AdminCredentials, resourceData *schema.ResourceData) map[string]interface{} { -// result := map[string]interface{}{} -// if adminPass, ok := resourceData.GetOkExists("replication_credentials.0.password"); ok && adminPass != nil { -// result["password"] = adminPass.(string) -// } -// -// if obj.Username != nil { -// result["username"] = string(*obj.Username) -// } -// return result -//} -// -//func AdminCredentialsToMapPasswordRest(obj *oci_database_migration.GoldenGateHub, resourceData *schema.ResourceData) map[string]interface{} { -// result := map[string]interface{}{} -// -// if adminPasswordR, ok := resourceData.GetOkExists("golden_gate_details.0.hub.0.rest_admin_credentials.0.password"); ok && adminPasswordR != nil { -// result["password"] = adminPasswordR.(string) -// } -// -// if obj.RestAdminCredentials != nil { -// result["username"] = string(*obj.RestAdminCredentials.Username) -// } -// return result -//} -// -//func AdminCredentialsToMapPasswordContainer(obj *oci_database_migration.GoldenGateHub, resourceData *schema.ResourceData) map[string]interface{} { -// result := map[string]interface{}{} -// -// if adminPasswordC, ok := resourceData.GetOkExists("golden_gate_details.0.hub.0.source_container_db_admin_credentials.0.password"); ok && adminPasswordC != nil { -// result["password"] = adminPasswordC.(string) -// } -// -// if obj.SourceContainerDbAdminCredentials != nil { -// result["username"] = string(*obj.SourceContainerDbAdminCredentials.Username) -// } -// return result -//} -// -//func AdminCredentialsToMapPasswordSource(obj *oci_database_migration.GoldenGateHub, resourceData *schema.ResourceData) map[string]interface{} { -// result := map[string]interface{}{} -// -// if adminPasswordS, ok := resourceData.GetOkExists("golden_gate_details.0.hub.0.source_db_admin_credentials.0.password"); ok && adminPasswordS != nil { -// result["password"] = adminPasswordS.(string) -// } -// if obj.SourceDbAdminCredentials != nil { -// result["username"] = string(*obj.SourceDbAdminCredentials.Username) -// } -// return result -//} -// -//func AdminCredentialsToMapPasswordTarget(obj *oci_database_migration.GoldenGateHub, resourceData *schema.ResourceData) map[string]interface{} { -// result := map[string]interface{}{} -// -// if adminPasswordT, ok := resourceData.GetOkExists("golden_gate_details.0.hub.0.target_db_admin_credentials.0.password"); ok && adminPasswordT != nil { -// result["password"] = adminPasswordT.(string) -// } -// -// if obj.TargetDbAdminCredentials != nil { -// result["username"] = string(*obj.TargetDbAdminCredentials.Username) -// } -// -// return result -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) mapToCreateConnectDescriptor(fieldKeyFormat string) (oci_database_migration.CreateConnectDescriptor, error) { -// result := oci_database_migration.CreateConnectDescriptor{} -// -// if connectString, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "connect_string")); ok { -// tmp := connectString.(string) -// result.ConnectString = &tmp -// } -// -// if databaseServiceName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "database_service_name")); ok && s.D.HasChange("database_service_name") { -// tmp := databaseServiceName.(string) -// result.DatabaseServiceName = &tmp -// } -// -// if host, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "host")); ok && s.D.HasChange("host") { -// tmp := host.(string) -// result.Host = &tmp -// } -// -// if port, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "port")); ok && s.D.HasChange("port") { -// tmp := port.(int) -// result.Port = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) mapToUpdateConnectDescriptor(fieldKeyFormat string) (oci_database_migration.UpdateConnectDescriptor, error) { -// result := oci_database_migration.UpdateConnectDescriptor{} -// -// if connectString, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "connect_string")); ok { -// tmp := connectString.(string) -// result.ConnectString = &tmp -// } -// -// if databaseServiceName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "database_service_name")); ok && s.D.HasChange("database_service_name") { -// tmp := databaseServiceName.(string) -// result.DatabaseServiceName = &tmp -// } -// -// if host, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "host")); ok && s.D.HasChange("host") { -// tmp := host.(string) -// result.Host = &tmp -// } -// -// if port, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "port")); ok && s.D.HasChange("port") { -// tmp := port.(int) -// result.Port = &tmp -// } -// -// return result, nil -//} -// -//func ConnectDescriptorToMap(obj *oci_database_migration.ConnectDescriptor) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.ConnectString != nil { -// result["connect_string"] = string(*obj.ConnectString) -// } -// -// if obj.DatabaseServiceName != nil { -// result["database_service_name"] = *obj.DatabaseServiceName -// } -// -// if obj.Host != nil { -// result["host"] = *obj.Host -// } -// -// if obj.Port != nil { -// result["port"] = *obj.Port -// } -// -// return result -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) mapToCreatePrivateEndpoint(fieldKeyFormat string) (oci_database_migration.CreatePrivateEndpoint, error) { -// result := oci_database_migration.CreatePrivateEndpoint{} -// -// if compartmentId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compartment_id")); ok { -// tmp := compartmentId.(string) -// result.CompartmentId = &tmp -// } -// -// if subnetId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "subnet_id")); ok { -// tmp := subnetId.(string) -// result.SubnetId = &tmp -// } -// -// if vcnId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "vcn_id")); ok { -// tmp := vcnId.(string) -// result.VcnId = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) mapToUpdatePrivateEndpoint(fieldKeyFormat string) (oci_database_migration.UpdatePrivateEndpoint, error) { -// result := oci_database_migration.UpdatePrivateEndpoint{} -// -// if compartmentId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compartment_id")); ok { -// tmp := compartmentId.(string) -// result.CompartmentId = &tmp -// } -// -// if subnetId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "subnet_id")); ok { -// tmp := subnetId.(string) -// result.SubnetId = &tmp -// } -// -// if vcnId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "vcn_id")); ok { -// tmp := vcnId.(string) -// result.VcnId = &tmp -// } -// -// return result, nil -//} -// -//func PrivateEndpointDetailsToMap(obj *oci_database_migration.PrivateEndpointDetails) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.CompartmentId != nil { -// result["compartment_id"] = string(*obj.CompartmentId) -// } -// -// if obj.Id != nil { -// result["id"] = string(*obj.Id) -// } -// -// if obj.SubnetId != nil { -// result["subnet_id"] = string(*obj.SubnetId) -// } -// -// if obj.VcnId != nil { -// result["vcn_id"] = string(*obj.VcnId) -// } -// -// return result -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) mapToCreateSshDetails(fieldKeyFormat string) (oci_database_migration.CreateSshDetails, error) { -// result := oci_database_migration.CreateSshDetails{} -// -// if host, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "host")); ok { -// tmp := host.(string) -// result.Host = &tmp -// } -// -// if sshkey, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "sshkey")); ok { -// tmp := sshkey.(string) -// result.Sshkey = &tmp -// } -// -// if sudoLocation, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "sudo_location")); ok { -// tmp := sudoLocation.(string) -// result.SudoLocation = &tmp -// } -// -// if user, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "user")); ok { -// tmp := user.(string) -// result.User = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) mapToUpdateSshDetails(fieldKeyFormat string) (oci_database_migration.UpdateSshDetails, error) { -// result := oci_database_migration.UpdateSshDetails{} -// -// if host, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "host")); ok { -// tmp := host.(string) -// result.Host = &tmp -// } -// -// if sshkey, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "sshkey")); ok { -// tmp := sshkey.(string) -// result.Sshkey = &tmp -// } -// -// if sudoLocation, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "sudo_location")); ok { -// tmp := sudoLocation.(string) -// result.SudoLocation = &tmp -// } -// -// if user, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "user")); ok { -// tmp := user.(string) -// result.User = &tmp -// } -// -// return result, nil -//} -// -//func SshDetailsToMap(obj *oci_database_migration.SshDetails) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.Host != nil { -// result["host"] = string(*obj.Host) -// } -// if obj.SudoLocation != nil { -// result["sudo_location"] = string(*obj.SudoLocation) -// } -// -// if obj.User != nil { -// result["user"] = string(*obj.User) -// } -// -// return result -//} -// -//func SshDetailsToMapPass(obj *oci_database_migration.SshDetails, resourceData *schema.ResourceData) map[string]interface{} { -// result := map[string]interface{}{} -// -// if sshDetailsValue, ok := resourceData.GetOkExists("ssh_details"); ok { -// if tmpList := sshDetailsValue.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "ssh_details", 0) -// if sshKey, ok := resourceData.GetOkExists(fmt.Sprintf(fieldKeyFormat, "sshkey")); ok { -// tmp := sshKey.(string) -// result["sshkey"] = &tmp -// } -// } -// } -// if obj.Host != nil { -// result["host"] = string(*obj.Host) -// } -// -// if obj.SudoLocation != nil { -// result["sudo_location"] = string(*obj.SudoLocation) -// } -// -// if obj.User != nil { -// result["user"] = string(*obj.User) -// } -// return result -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) mapToCreateVaultDetails(fieldKeyFormat string) (oci_database_migration.CreateVaultDetails, error) { -// result := oci_database_migration.CreateVaultDetails{} -// -// if compartmentId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compartment_id")); ok { -// tmp := compartmentId.(string) -// result.CompartmentId = &tmp -// } -// -// if keyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "key_id")); ok { -// tmp := keyId.(string) -// result.KeyId = &tmp -// } -// -// if vaultId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "vault_id")); ok { -// tmp := vaultId.(string) -// result.VaultId = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) mapToUpdateVaultDetails(fieldKeyFormat string) (oci_database_migration.UpdateVaultDetails, error) { -// result := oci_database_migration.UpdateVaultDetails{} -// -// if compartmentId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compartment_id")); ok { -// tmp := compartmentId.(string) -// result.CompartmentId = &tmp -// } -// -// if keyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "key_id")); ok { -// tmp := keyId.(string) -// result.KeyId = &tmp -// } -// -// if vaultId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "vault_id")); ok { -// tmp := vaultId.(string) -// result.VaultId = &tmp -// } -// -// return result, nil -//} -//func VaultDetailsToMap(obj *oci_database_migration.VaultDetails) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.CompartmentId != nil { -// result["compartment_id"] = string(*obj.CompartmentId) -// } -// -// if obj.KeyId != nil { -// result["key_id"] = string(*obj.KeyId) -// } -// -// if obj.VaultId != nil { -// result["vault_id"] = string(*obj.VaultId) -// } -// -// return result -//} -// -//func (s *DatabaseMigrationConnectionResourceCrud) updateCompartment(compartment interface{}) error { -// changeCompartmentRequest := oci_database_migration.ChangeConnectionCompartmentRequest{} -// -// compartmentTmp := compartment.(string) -// changeCompartmentRequest.CompartmentId = &compartmentTmp -// -// idTmp := s.D.Id() -// changeCompartmentRequest.ConnectionId = &idTmp -// -// changeCompartmentRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") -// -// _, err := s.Client.ChangeConnectionCompartment(context.Background(), changeCompartmentRequest) -// if err != nil { -// return err -// } -// -// if waitErr := tfresource.WaitForUpdatedState(s.D, s); waitErr != nil { -// return waitErr -// } -// -// return nil -//} +import ( + "context" + "fmt" + "log" + "strings" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + oci_common "github.com/oracle/oci-go-sdk/v65/common" + oci_database_migration "github.com/oracle/oci-go-sdk/v65/databasemigration" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseMigrationConnectionResource() *schema.Resource { + return &schema.Resource{ + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Timeouts: tfresource.DefaultTimeout, + Create: createDatabaseMigrationConnection, + Read: readDatabaseMigrationConnection, + Update: updateDatabaseMigrationConnection, + Delete: deleteDatabaseMigrationConnection, + Schema: map[string]*schema.Schema{ + // Required + "compartment_id": { + Type: schema.TypeString, + Required: true, + }, + "connection_type": { + Type: schema.TypeString, + Required: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "MYSQL", + "ORACLE", + }, true), + }, + "display_name": { + Type: schema.TypeString, + Required: true, + }, + "key_id": { + Type: schema.TypeString, + Required: true, + }, + "password": { + Type: schema.TypeString, + Required: true, + Sensitive: true, + }, + "technology_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "username": { + Type: schema.TypeString, + Required: true, + }, + "vault_id": { + Type: schema.TypeString, + Required: true, + }, + + // Optional + "additional_attributes": { + Type: schema.TypeList, + Optional: true, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "value": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + "connection_string": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "database_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "database_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "db_system_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "defined_tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + DiffSuppressFunc: tfresource.DefinedTagsDiffSuppressFunction, + Elem: schema.TypeString, + }, + "description": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "freeform_tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + Elem: schema.TypeString, + }, + "host": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "nsg_ids": { + Type: schema.TypeSet, + Optional: true, + Computed: true, + Set: tfresource.LiteralTypeHashCodeForSets, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "port": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "replication_password": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Sensitive: true, + }, + "replication_username": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "security_protocol": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "ssh_host": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "ssh_key": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "ssh_sudo_location": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "ssh_user": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "ssl_ca": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "ssl_cert": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "ssl_crl": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "ssl_key": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "ssl_mode": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "subnet_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "wallet": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + "ingress_ips": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "ingress_ip": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + "lifecycle_details": { + Type: schema.TypeString, + Computed: true, + }, + "private_endpoint_id": { + Type: schema.TypeString, + Computed: true, + }, + "secret_id": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "system_tags": { + Type: schema.TypeMap, + Computed: true, + Elem: schema.TypeString, + }, + "time_created": { + Type: schema.TypeString, + Computed: true, + }, + "time_updated": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func createDatabaseMigrationConnection(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseMigrationConnectionResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() + + return tfresource.CreateResource(d, sync) +} + +func readDatabaseMigrationConnection(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseMigrationConnectionResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() + + return tfresource.ReadResource(sync) +} + +func updateDatabaseMigrationConnection(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseMigrationConnectionResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() + + return tfresource.UpdateResource(d, sync) +} + +func deleteDatabaseMigrationConnection(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseMigrationConnectionResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() + sync.DisableNotFoundRetries = true + + return tfresource.DeleteResource(d, sync) +} + +type DatabaseMigrationConnectionResourceCrud struct { + tfresource.BaseCrud + Client *oci_database_migration.DatabaseMigrationClient + Res *oci_database_migration.Connection + DisableNotFoundRetries bool +} + +func (s *DatabaseMigrationConnectionResourceCrud) ID() string { + connection := *s.Res + return *connection.GetId() +} + +func (s *DatabaseMigrationConnectionResourceCrud) CreatedPending() []string { + return []string{ + string(oci_database_migration.ConnectionLifecycleStateCreating), + } +} + +func (s *DatabaseMigrationConnectionResourceCrud) CreatedTarget() []string { + return []string{ + string(oci_database_migration.ConnectionLifecycleStateActive), + } +} + +func (s *DatabaseMigrationConnectionResourceCrud) DeletedPending() []string { + return []string{ + string(oci_database_migration.ConnectionLifecycleStateDeleting), + } +} + +func (s *DatabaseMigrationConnectionResourceCrud) DeletedTarget() []string { + return []string{ + string(oci_database_migration.ConnectionLifecycleStateDeleted), + } +} + +func (s *DatabaseMigrationConnectionResourceCrud) Create() error { + request := oci_database_migration.CreateConnectionRequest{} + err := s.populateTopLevelPolymorphicCreateConnectionRequest(&request) + if err != nil { + return err + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") + + response, err := s.Client.CreateConnection(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + var identifier *string + identifier = response.GetId() + if identifier != nil { + s.D.SetId(*identifier) + } + return s.getConnectionFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration"), oci_database_migration.WorkRequestResourceActionTypeCreated, s.D.Timeout(schema.TimeoutCreate)) +} + +func (s *DatabaseMigrationConnectionResourceCrud) getConnectionFromWorkRequest(workId *string, retryPolicy *oci_common.RetryPolicy, + actionTypeEnum oci_database_migration.WorkRequestResourceActionTypeEnum, timeout time.Duration) error { + + // Wait until it finishes + connectionId, err := connectionWaitForWorkRequest(workId, "connection", + actionTypeEnum, timeout, s.DisableNotFoundRetries, s.Client) + + if err != nil { + return err + } + s.D.SetId(*connectionId) + + return s.Get() +} + +func connectionWorkRequestShouldRetryFunc(timeout time.Duration) func(response oci_common.OCIOperationResponse) bool { + startTime := time.Now() + stopTime := startTime.Add(timeout) + return func(response oci_common.OCIOperationResponse) bool { + + // Stop after timeout has elapsed + if time.Now().After(stopTime) { + return false + } + + // Make sure we stop on default rules + if tfresource.ShouldRetry(response, false, "database_migration", startTime) { + return true + } + + // Only stop if the time Finished is set + /*if workRequestResponse, ok := response.Response.(oci_database_migration.GetWorkRequestResponse); ok { + return workRequestResponse.TimeFinished == nil + }*/ + return false + } +} + +func connectionWaitForWorkRequest(wId *string, entityType string, action oci_database_migration.WorkRequestResourceActionTypeEnum, + timeout time.Duration, disableFoundRetries bool, client *oci_database_migration.DatabaseMigrationClient) (*string, error) { + retryPolicy := tfresource.GetRetryPolicy(disableFoundRetries, "database_migration") + retryPolicy.ShouldRetryOperation = connectionWorkRequestShouldRetryFunc(timeout) + + response := oci_database_migration.GetWorkRequestResponse{} + stateConf := &resource.StateChangeConf{ + Pending: []string{ + string(oci_database_migration.OperationStatusInProgress), + string(oci_database_migration.OperationStatusAccepted), + string(oci_database_migration.OperationStatusCanceling), + }, + Target: []string{ + string(oci_database_migration.OperationStatusSucceeded), + string(oci_database_migration.OperationStatusFailed), + string(oci_database_migration.OperationStatusCanceled), + }, + Refresh: func() (interface{}, string, error) { + var err error + response, err = client.GetWorkRequest(context.Background(), + oci_database_migration.GetWorkRequestRequest{ + WorkRequestId: wId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + wr := &response.WorkRequest + return wr, string(wr.Status), err + }, + Timeout: timeout, + } + if _, e := stateConf.WaitForState(); e != nil { + return nil, e + } + + var identifier *string + // The work request response contains an array of objects that finished the operation + for _, res := range response.Resources { + if strings.Contains(strings.ToLower(*res.EntityType), entityType) { + if res.ActionType == action { + identifier = res.Identifier + break + } + } + } + + // The workrequest may have failed, check for errors if identifier is not found or work failed or got cancelled + if identifier == nil || response.Status == oci_database_migration.OperationStatusFailed || response.Status == oci_database_migration.OperationStatusCanceled { + return nil, getErrorFromDatabaseMigrationConnectionWorkRequest(client, wId, retryPolicy, entityType, action) + } + + return identifier, nil +} + +func getErrorFromDatabaseMigrationConnectionWorkRequest(client *oci_database_migration.DatabaseMigrationClient, workId *string, retryPolicy *oci_common.RetryPolicy, entityType string, action oci_database_migration.WorkRequestResourceActionTypeEnum) error { + response, err := client.ListWorkRequestErrors(context.Background(), + oci_database_migration.ListWorkRequestErrorsRequest{ + WorkRequestId: workId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + if err != nil { + return err + } + + allErrs := make([]string, 0) + for _, wrkErr := range response.Items { + allErrs = append(allErrs, *wrkErr.Message) + } + errorMessage := strings.Join(allErrs, "\n") + + workRequestErr := fmt.Errorf("work request did not succeed, workId: %s, entity: %s, action: %s. Message: %s", *workId, entityType, action, errorMessage) + + return workRequestErr +} + +func (s *DatabaseMigrationConnectionResourceCrud) Get() error { + request := oci_database_migration.GetConnectionRequest{} + + tmp := s.D.Id() + request.ConnectionId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") + + response, err := s.Client.GetConnection(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response.Connection + return nil +} + +func (s *DatabaseMigrationConnectionResourceCrud) Update() error { + if compartment, ok := s.D.GetOkExists("compartment_id"); ok && s.D.HasChange("compartment_id") { + oldRaw, newRaw := s.D.GetChange("compartment_id") + if newRaw != "" && oldRaw != "" { + err := s.updateCompartment(compartment) + if err != nil { + return err + } + } + } + request := oci_database_migration.UpdateConnectionRequest{} + err := s.populateTopLevelPolymorphicUpdateConnectionRequest(&request) + if err != nil { + return err + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") + + response, err := s.Client.UpdateConnection(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + return s.getConnectionFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration"), oci_database_migration.WorkRequestResourceActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate)) +} + +func (s *DatabaseMigrationConnectionResourceCrud) Delete() error { + request := oci_database_migration.DeleteConnectionRequest{} + + tmp := s.D.Id() + request.ConnectionId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") + + response, err := s.Client.DeleteConnection(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + // Wait until it finishes + _, delWorkRequestErr := connectionWaitForWorkRequest(workId, "connection", + oci_database_migration.WorkRequestResourceActionTypeDeleted, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries, s.Client) + return delWorkRequestErr +} + +func (s *DatabaseMigrationConnectionResourceCrud) SetData() error { + switch v := (*s.Res).(type) { + case oci_database_migration.MysqlConnection: + s.D.Set("connection_type", "MYSQL") + + additionalAttributes := []interface{}{} + for _, item := range v.AdditionalAttributes { + additionalAttributes = append(additionalAttributes, NameValuePairToMap(item)) + } + s.D.Set("additional_attributes", additionalAttributes) + + if v.DatabaseName != nil { + s.D.Set("database_name", *v.DatabaseName) + } + + if v.DbSystemId != nil { + s.D.Set("db_system_id", *v.DbSystemId) + } + + if v.Host != nil { + s.D.Set("host", *v.Host) + } + + if v.Port != nil { + s.D.Set("port", *v.Port) + } + + s.D.Set("security_protocol", v.SecurityProtocol) + + s.D.Set("ssl_mode", v.SslMode) + + s.D.Set("technology_type", v.TechnologyType) + + if v.CompartmentId != nil { + s.D.Set("compartment_id", *v.CompartmentId) + } + + if v.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(v.DefinedTags)) + } + + if v.Description != nil { + s.D.Set("description", *v.Description) + } + + if v.DisplayName != nil { + s.D.Set("display_name", *v.DisplayName) + } + + s.D.Set("freeform_tags", v.FreeformTags) + + if v.Id != nil { + s.D.SetId(*v.Id) + } + + ingressIps := []interface{}{} + for _, item := range v.IngressIps { + ingressIps = append(ingressIps, IngressIpDetailsToMap(item)) + } + s.D.Set("ingress_ips", ingressIps) + + if v.KeyId != nil { + s.D.Set("key_id", *v.KeyId) + } + + if v.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *v.LifecycleDetails) + } + + nsgIds := []interface{}{} + for _, item := range v.NsgIds { + nsgIds = append(nsgIds, item) + } + //s.D.Set("nsg_ids", schema.NewSet(tfresource.LiteralTypeHashCodeForSets, nsgIds)) + s.D.Set("nsg_ids", v.NsgIds) + + if v.Password != nil { + s.D.Set("password", *v.Password) + } + + if v.PrivateEndpointId != nil { + s.D.Set("private_endpoint_id", *v.PrivateEndpointId) + } + + if v.ReplicationPassword != nil { + s.D.Set("replication_password", *v.ReplicationPassword) + } + + if v.ReplicationUsername != nil { + s.D.Set("replication_username", *v.ReplicationUsername) + } + + if v.SecretId != nil { + s.D.Set("secret_id", *v.SecretId) + } + + s.D.Set("state", v.LifecycleState) + + if v.SubnetId != nil { + s.D.Set("subnet_id", *v.SubnetId) + } + + if v.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(v.SystemTags)) + } + + s.D.Set("technology_type", v.TechnologyType) + + if v.TimeCreated != nil { + s.D.Set("time_created", v.TimeCreated.String()) + } + + if v.TimeUpdated != nil { + s.D.Set("time_updated", v.TimeUpdated.String()) + } + + if v.Username != nil { + s.D.Set("username", *v.Username) + } + + if v.VaultId != nil { + s.D.Set("vault_id", *v.VaultId) + } + case oci_database_migration.OracleConnection: + s.D.Set("connection_type", "ORACLE") + + if v.ConnectionString != nil { + s.D.Set("connection_string", *v.ConnectionString) + } + + if v.DatabaseId != nil { + s.D.Set("database_id", *v.DatabaseId) + } + + if v.SshHost != nil { + s.D.Set("ssh_host", *v.SshHost) + } + + if v.SshKey != nil { + s.D.Set("ssh_key", *v.SshKey) + } + + if v.SshSudoLocation != nil { + s.D.Set("ssh_sudo_location", *v.SshSudoLocation) + } + + if v.SshUser != nil { + s.D.Set("ssh_user", *v.SshUser) + } + + s.D.Set("technology_type", v.TechnologyType) + + if v.CompartmentId != nil { + s.D.Set("compartment_id", *v.CompartmentId) + } + + if v.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(v.DefinedTags)) + } + + if v.Description != nil { + s.D.Set("description", *v.Description) + } + + if v.DisplayName != nil { + s.D.Set("display_name", *v.DisplayName) + } + + s.D.Set("freeform_tags", v.FreeformTags) + + if v.Id != nil { + s.D.SetId(*v.Id) + } + + ingressIps := []interface{}{} + for _, item := range v.IngressIps { + ingressIps = append(ingressIps, IngressIpDetailsToMap(item)) + } + s.D.Set("ingress_ips", ingressIps) + + if v.KeyId != nil { + s.D.Set("key_id", *v.KeyId) + } + + if v.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *v.LifecycleDetails) + } + + nsgIds := []interface{}{} + for _, item := range v.NsgIds { + nsgIds = append(nsgIds, item) + } + //s.D.Set("nsg_ids", schema.NewSet(tfresource.LiteralTypeHashCodeForSets, nsgIds)) + s.D.Set("nsg_ids", v.NsgIds) + + if v.Password != nil { + s.D.Set("password", *v.Password) + } + + if v.PrivateEndpointId != nil { + s.D.Set("private_endpoint_id", *v.PrivateEndpointId) + } + + if v.ReplicationPassword != nil { + s.D.Set("replication_password", *v.ReplicationPassword) + } + + if v.ReplicationUsername != nil { + s.D.Set("replication_username", *v.ReplicationUsername) + } + + if v.SecretId != nil { + s.D.Set("secret_id", *v.SecretId) + } + + s.D.Set("state", v.LifecycleState) + + if v.SubnetId != nil { + s.D.Set("subnet_id", *v.SubnetId) + } + + if v.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(v.SystemTags)) + } + + s.D.Set("technology_type", v.TechnologyType) + + if v.TimeCreated != nil { + s.D.Set("time_created", v.TimeCreated.String()) + } + + if v.TimeUpdated != nil { + s.D.Set("time_updated", v.TimeUpdated.String()) + } + + if v.Username != nil { + s.D.Set("username", *v.Username) + } + + if v.VaultId != nil { + s.D.Set("vault_id", *v.VaultId) + } + default: + log.Printf("[WARN] Received 'connection_type' of unknown type %v", *s.Res) + return nil + } + return nil +} + +func ConnectionSummaryToMap(obj oci_database_migration.ConnectionSummary, datasource bool) map[string]interface{} { + result := map[string]interface{}{} + switch v := (obj).(type) { + case oci_database_migration.MysqlConnectionSummary: + result["connection_type"] = "MYSQL" + + additionalAttributes := []interface{}{} + for _, item := range v.AdditionalAttributes { + additionalAttributes = append(additionalAttributes, NameValuePairToMap(item)) + } + result["additional_attributes"] = additionalAttributes + + if v.DatabaseName != nil { + result["database_name"] = string(*v.DatabaseName) + } + + if v.DbSystemId != nil { + result["db_system_id"] = string(*v.DbSystemId) + } + + if v.Host != nil { + result["host"] = string(*v.Host) + } + + if v.Port != nil { + result["port"] = int(*v.Port) + } + + result["security_protocol"] = string(v.SecurityProtocol) + + result["ssl_mode"] = string(v.SslMode) + + result["technology_type"] = string(v.TechnologyType) + case oci_database_migration.OracleConnectionSummary: + result["connection_type"] = "ORACLE" + + if v.ConnectionString != nil { + result["connection_string"] = string(*v.ConnectionString) + } + + if v.DatabaseId != nil { + result["database_id"] = string(*v.DatabaseId) + } + + result["technology_type"] = string(v.TechnologyType) + default: + log.Printf("[WARN] Received 'connection_type' of unknown type %v", obj) + return nil + } + + return result +} + +func IngressIpDetailsToMap(obj oci_database_migration.IngressIpDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.IngressIp != nil { + result["ingress_ip"] = string(*obj.IngressIp) + } + + return result +} + +func (s *DatabaseMigrationConnectionResourceCrud) mapToNameValuePair(fieldKeyFormat string) (oci_database_migration.NameValuePair, error) { + result := oci_database_migration.NameValuePair{} + + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + tmp := name.(string) + result.Name = &tmp + } + + if value, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "value")); ok { + tmp := value.(string) + result.Value = &tmp + } + + return result, nil +} + +func NameValuePairToMap(obj oci_database_migration.NameValuePair) map[string]interface{} { + result := map[string]interface{}{} + + if obj.Name != nil { + result["name"] = string(*obj.Name) + } + + if obj.Value != nil { + result["value"] = string(*obj.Value) + } + + return result +} + +func (s *DatabaseMigrationConnectionResourceCrud) populateTopLevelPolymorphicCreateConnectionRequest(request *oci_database_migration.CreateConnectionRequest) error { + //discriminator + connectionTypeRaw, ok := s.D.GetOkExists("connection_type") + var connectionType string + if ok { + connectionType = connectionTypeRaw.(string) + } else { + connectionType = "" // default value + } + switch strings.ToLower(connectionType) { + case strings.ToLower("MYSQL"): + details := oci_database_migration.CreateMysqlConnectionDetails{} + if additionalAttributes, ok := s.D.GetOkExists("additional_attributes"); ok { + interfaces := additionalAttributes.([]interface{}) + tmp := make([]oci_database_migration.NameValuePair, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "additional_attributes", stateDataIndex) + converted, err := s.mapToNameValuePair(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("additional_attributes") { + details.AdditionalAttributes = tmp + } + } + if databaseName, ok := s.D.GetOkExists("database_name"); ok { + tmp := databaseName.(string) + details.DatabaseName = &tmp + } + if dbSystemId, ok := s.D.GetOkExists("db_system_id"); ok { + tmp := dbSystemId.(string) + details.DbSystemId = &tmp + } + if host, ok := s.D.GetOkExists("host"); ok { + tmp := host.(string) + details.Host = &tmp + } + if port, ok := s.D.GetOkExists("port"); ok { + tmp := port.(int) + details.Port = &tmp + } + if securityProtocol, ok := s.D.GetOkExists("security_protocol"); ok { + details.SecurityProtocol = oci_database_migration.MysqlConnectionSecurityProtocolEnum(securityProtocol.(string)) + } + if sslCa, ok := s.D.GetOkExists("ssl_ca"); ok { + tmp := sslCa.(string) + details.SslCa = &tmp + } + if sslCert, ok := s.D.GetOkExists("ssl_cert"); ok { + tmp := sslCert.(string) + details.SslCert = &tmp + } + if sslCrl, ok := s.D.GetOkExists("ssl_crl"); ok { + tmp := sslCrl.(string) + details.SslCrl = &tmp + } + if sslKey, ok := s.D.GetOkExists("ssl_key"); ok { + tmp := sslKey.(string) + details.SslKey = &tmp + } + if sslMode, ok := s.D.GetOkExists("ssl_mode"); ok { + details.SslMode = oci_database_migration.MysqlConnectionSslModeEnum(sslMode.(string)) + } + if technologyType, ok := s.D.GetOkExists("technology_type"); ok { + details.TechnologyType = oci_database_migration.MysqlConnectionTechnologyTypeEnum(technologyType.(string)) + } + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + details.CompartmentId = &tmp + } + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + details.DefinedTags = convertedDefinedTags + } + if description, ok := s.D.GetOkExists("description"); ok { + tmp := description.(string) + details.Description = &tmp + } + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + details.DisplayName = &tmp + } + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + details.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + if keyId, ok := s.D.GetOkExists("key_id"); ok { + tmp := keyId.(string) + details.KeyId = &tmp + } + if nsgIds, ok := s.D.GetOkExists("nsg_ids"); ok { + set := nsgIds.(*schema.Set) + interfaces := set.List() + tmp := make([]string, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = interfaces[i].(string) + } + } + if len(tmp) != 0 || s.D.HasChange("nsg_ids") { + details.NsgIds = tmp + } + } + if password, ok := s.D.GetOkExists("password"); ok { + tmp := password.(string) + details.Password = &tmp + } + if replicationPassword, ok := s.D.GetOkExists("replication_password"); ok { + tmp := replicationPassword.(string) + details.ReplicationPassword = &tmp + } + if replicationUsername, ok := s.D.GetOkExists("replication_username"); ok { + tmp := replicationUsername.(string) + details.ReplicationUsername = &tmp + } + if subnetId, ok := s.D.GetOkExists("subnet_id"); ok { + tmp := subnetId.(string) + details.SubnetId = &tmp + } + if technologyType, ok := s.D.GetOkExists("technology_type"); ok { + details.TechnologyType = oci_database_migration.MysqlConnectionTechnologyTypeEnum(technologyType.(string)) + } + if username, ok := s.D.GetOkExists("username"); ok { + tmp := username.(string) + details.Username = &tmp + } + if vaultId, ok := s.D.GetOkExists("vault_id"); ok { + tmp := vaultId.(string) + details.VaultId = &tmp + } + request.CreateConnectionDetails = details + case strings.ToLower("ORACLE"): + details := oci_database_migration.CreateOracleConnectionDetails{} + if connectionString, ok := s.D.GetOkExists("connection_string"); ok { + tmp := connectionString.(string) + details.ConnectionString = &tmp + } + if databaseId, ok := s.D.GetOkExists("database_id"); ok { + tmp := databaseId.(string) + details.DatabaseId = &tmp + } + if sshHost, ok := s.D.GetOkExists("ssh_host"); ok { + tmp := sshHost.(string) + details.SshHost = &tmp + } + if sshKey, ok := s.D.GetOkExists("ssh_key"); ok { + tmp := sshKey.(string) + details.SshKey = &tmp + } + if sshSudoLocation, ok := s.D.GetOkExists("ssh_sudo_location"); ok { + tmp := sshSudoLocation.(string) + details.SshSudoLocation = &tmp + } + if sshUser, ok := s.D.GetOkExists("ssh_user"); ok { + tmp := sshUser.(string) + details.SshUser = &tmp + } + if technologyType, ok := s.D.GetOkExists("technology_type"); ok { + details.TechnologyType = oci_database_migration.OracleConnectionTechnologyTypeEnum(technologyType.(string)) + } + if wallet, ok := s.D.GetOkExists("wallet"); ok { + tmp := wallet.(string) + details.Wallet = &tmp + } + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + details.CompartmentId = &tmp + } + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + details.DefinedTags = convertedDefinedTags + } + if description, ok := s.D.GetOkExists("description"); ok { + tmp := description.(string) + details.Description = &tmp + } + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + details.DisplayName = &tmp + } + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + details.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + if keyId, ok := s.D.GetOkExists("key_id"); ok { + tmp := keyId.(string) + details.KeyId = &tmp + } + if nsgIds, ok := s.D.GetOkExists("nsg_ids"); ok { + set := nsgIds.(*schema.Set) + interfaces := set.List() + tmp := make([]string, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = interfaces[i].(string) + } + } + if len(tmp) != 0 || s.D.HasChange("nsg_ids") { + details.NsgIds = tmp + } + } + if password, ok := s.D.GetOkExists("password"); ok { + tmp := password.(string) + details.Password = &tmp + } + if replicationPassword, ok := s.D.GetOkExists("replication_password"); ok { + tmp := replicationPassword.(string) + details.ReplicationPassword = &tmp + } + if replicationUsername, ok := s.D.GetOkExists("replication_username"); ok { + tmp := replicationUsername.(string) + details.ReplicationUsername = &tmp + } + if subnetId, ok := s.D.GetOkExists("subnet_id"); ok { + tmp := subnetId.(string) + details.SubnetId = &tmp + } + if technologyType, ok := s.D.GetOkExists("technology_type"); ok { + details.TechnologyType = oci_database_migration.OracleConnectionTechnologyTypeEnum(technologyType.(string)) //MysqlConnectionTechnologyTypeEnum + } + if username, ok := s.D.GetOkExists("username"); ok { + tmp := username.(string) + details.Username = &tmp + } + if vaultId, ok := s.D.GetOkExists("vault_id"); ok { + tmp := vaultId.(string) + details.VaultId = &tmp + } + request.CreateConnectionDetails = details + default: + return fmt.Errorf("unknown connection_type '%v' was specified", connectionType) + } + return nil +} + +func (s *DatabaseMigrationConnectionResourceCrud) populateTopLevelPolymorphicUpdateConnectionRequest(request *oci_database_migration.UpdateConnectionRequest) error { + //discriminator + connectionTypeRaw, ok := s.D.GetOkExists("connection_type") + var connectionType string + if ok { + connectionType = connectionTypeRaw.(string) + } else { + connectionType = "" // default value + } + switch strings.ToLower(connectionType) { + case strings.ToLower("MYSQL"): + details := oci_database_migration.UpdateMysqlConnectionDetails{} + if additionalAttributes, ok := s.D.GetOkExists("additional_attributes"); ok { + interfaces := additionalAttributes.([]interface{}) + tmp := make([]oci_database_migration.NameValuePair, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "additional_attributes", stateDataIndex) + converted, err := s.mapToNameValuePair(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("additional_attributes") { + details.AdditionalAttributes = tmp + } + } + if databaseName, ok := s.D.GetOkExists("database_name"); ok { + tmp := databaseName.(string) + details.DatabaseName = &tmp + } + if dbSystemId, ok := s.D.GetOkExists("db_system_id"); ok { + tmp := dbSystemId.(string) + details.DbSystemId = &tmp + } + if host, ok := s.D.GetOkExists("host"); ok { + tmp := host.(string) + details.Host = &tmp + } + if port, ok := s.D.GetOkExists("port"); ok { + tmp := port.(int) + details.Port = &tmp + } + if securityProtocol, ok := s.D.GetOkExists("security_protocol"); ok { + details.SecurityProtocol = oci_database_migration.MysqlConnectionSecurityProtocolEnum(securityProtocol.(string)) + } + if sslCa, ok := s.D.GetOkExists("ssl_ca"); ok { + tmp := sslCa.(string) + details.SslCa = &tmp + } + if sslCert, ok := s.D.GetOkExists("ssl_cert"); ok { + tmp := sslCert.(string) + details.SslCert = &tmp + } + if sslCrl, ok := s.D.GetOkExists("ssl_crl"); ok { + tmp := sslCrl.(string) + details.SslCrl = &tmp + } + if sslKey, ok := s.D.GetOkExists("ssl_key"); ok { + tmp := sslKey.(string) + details.SslKey = &tmp + } + if sslMode, ok := s.D.GetOkExists("ssl_mode"); ok { + details.SslMode = oci_database_migration.MysqlConnectionSslModeEnum(sslMode.(string)) + } + tmp := s.D.Id() + request.ConnectionId = &tmp + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + details.DefinedTags = convertedDefinedTags + } + if description, ok := s.D.GetOkExists("description"); ok { + tmp := description.(string) + details.Description = &tmp + } + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + details.DisplayName = &tmp + } + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + details.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + if keyId, ok := s.D.GetOkExists("key_id"); ok { + tmp := keyId.(string) + details.KeyId = &tmp + } + if nsgIds, ok := s.D.GetOkExists("nsg_ids"); ok { + set := nsgIds.(*schema.Set) + interfaces := set.List() + tmp := make([]string, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = interfaces[i].(string) + } + } + if len(tmp) != 0 || s.D.HasChange("nsg_ids") { + details.NsgIds = tmp + } + } + if password, ok := s.D.GetOkExists("password"); ok { + tmp := password.(string) + details.Password = &tmp + } + if replicationPassword, ok := s.D.GetOkExists("replication_password"); ok { + tmp := replicationPassword.(string) + details.ReplicationPassword = &tmp + } + if replicationUsername, ok := s.D.GetOkExists("replication_username"); ok { + tmp := replicationUsername.(string) + details.ReplicationUsername = &tmp + } + if subnetId, ok := s.D.GetOkExists("subnet_id"); ok { + tmp := subnetId.(string) + details.SubnetId = &tmp + } + if username, ok := s.D.GetOkExists("username"); ok { + tmp := username.(string) + details.Username = &tmp + } + if vaultId, ok := s.D.GetOkExists("vault_id"); ok { + tmp := vaultId.(string) + details.VaultId = &tmp + } + request.UpdateConnectionDetails = details + case strings.ToLower("ORACLE"): + details := oci_database_migration.UpdateOracleConnectionDetails{} + if connectionString, ok := s.D.GetOkExists("connection_string"); ok { + tmp := connectionString.(string) + details.ConnectionString = &tmp + } + if databaseId, ok := s.D.GetOkExists("database_id"); ok { + tmp := databaseId.(string) + details.DatabaseId = &tmp + } + if sshHost, ok := s.D.GetOkExists("ssh_host"); ok { + tmp := sshHost.(string) + details.SshHost = &tmp + } + if sshKey, ok := s.D.GetOkExists("ssh_key"); ok { + tmp := sshKey.(string) + details.SshKey = &tmp + } + if sshSudoLocation, ok := s.D.GetOkExists("ssh_sudo_location"); ok { + tmp := sshSudoLocation.(string) + details.SshSudoLocation = &tmp + } + if sshUser, ok := s.D.GetOkExists("ssh_user"); ok { + tmp := sshUser.(string) + details.SshUser = &tmp + } + if wallet, ok := s.D.GetOkExists("wallet"); ok { + tmp := wallet.(string) + details.Wallet = &tmp + } + tmp := s.D.Id() + request.ConnectionId = &tmp + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + details.DefinedTags = convertedDefinedTags + } + if description, ok := s.D.GetOkExists("description"); ok { + tmp := description.(string) + details.Description = &tmp + } + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + details.DisplayName = &tmp + } + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + details.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + if keyId, ok := s.D.GetOkExists("key_id"); ok { + tmp := keyId.(string) + details.KeyId = &tmp + } + if nsgIds, ok := s.D.GetOkExists("nsg_ids"); ok { + set := nsgIds.(*schema.Set) + interfaces := set.List() + tmp := make([]string, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = interfaces[i].(string) + } + } + if len(tmp) != 0 || s.D.HasChange("nsg_ids") { + details.NsgIds = tmp + } + } + if password, ok := s.D.GetOkExists("password"); ok { + tmp := password.(string) + details.Password = &tmp + } + if replicationPassword, ok := s.D.GetOkExists("replication_password"); ok { + tmp := replicationPassword.(string) + details.ReplicationPassword = &tmp + } + if replicationUsername, ok := s.D.GetOkExists("replication_username"); ok { + tmp := replicationUsername.(string) + details.ReplicationUsername = &tmp + } + if subnetId, ok := s.D.GetOkExists("subnet_id"); ok { + tmp := subnetId.(string) + details.SubnetId = &tmp + } + if username, ok := s.D.GetOkExists("username"); ok { + tmp := username.(string) + details.Username = &tmp + } + if vaultId, ok := s.D.GetOkExists("vault_id"); ok { + tmp := vaultId.(string) + details.VaultId = &tmp + } + request.UpdateConnectionDetails = details + default: + return fmt.Errorf("unknown connection_type '%v' was specified", connectionType) + } + return nil +} + +func (s *DatabaseMigrationConnectionResourceCrud) updateCompartment(compartment interface{}) error { + changeCompartmentRequest := oci_database_migration.ChangeConnectionCompartmentRequest{} + + compartmentTmp := compartment.(string) + changeCompartmentRequest.CompartmentId = &compartmentTmp + + idTmp := s.D.Id() + changeCompartmentRequest.ConnectionId = &idTmp + + changeCompartmentRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") + + _, err := s.Client.ChangeConnectionCompartment(context.Background(), changeCompartmentRequest) + if err != nil { + return err + } + + if waitErr := tfresource.WaitForUpdatedState(s.D, s); waitErr != nil { + return waitErr + } + + return nil +} diff --git a/internal/service/database_migration/database_migration_connections_data_source.go b/internal/service/database_migration/database_migration_connections_data_source.go index 9241f86a7e8..9e0e812cf0f 100644 --- a/internal/service/database_migration/database_migration_connections_data_source.go +++ b/internal/service/database_migration/database_migration_connections_data_source.go @@ -2,134 +2,182 @@ // // Licensed under the Mozilla Public License v2.0 package database_migration -// -//import ( -// "context" -// -// "github.com/oracle/terraform-provider-oci/internal/client" -// "github.com/oracle/terraform-provider-oci/internal/tfresource" -// -// "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" -// oci_database_migration "github.com/oracle/oci-go-sdk/v65/databasemigration" -//) -// -//func DatabaseMigrationConnectionsDataSource() *schema.Resource { -// return &schema.Resource{ -// Read: readDatabaseMigrationConnections, -// Schema: map[string]*schema.Schema{ -// "filter": tfresource.DataSourceFiltersSchema(), -// "compartment_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// "display_name": { -// Type: schema.TypeString, -// Optional: true, -// }, -// "state": { -// Type: schema.TypeString, -// Optional: true, -// }, -// "connection_collection": { -// Type: schema.TypeList, -// Computed: true, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// -// "items": { -// Type: schema.TypeList, -// Computed: true, -// Elem: tfresource.GetDataSourceItemSchema(DatabaseMigrationConnectionResource()), -// }, -// }, -// }, -// }, -// }, -// } -//} -// -//func readDatabaseMigrationConnections(d *schema.ResourceData, m interface{}) error { -// sync := &DatabaseMigrationConnectionsDataSourceCrud{} -// sync.D = d -// sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() -// -// return tfresource.ReadResource(sync) -//} -// -//type DatabaseMigrationConnectionsDataSourceCrud struct { -// D *schema.ResourceData -// Client *oci_database_migration.DatabaseMigrationClient -// Res *oci_database_migration.ListConnectionsResponse -//} -// -//func (s *DatabaseMigrationConnectionsDataSourceCrud) VoidState() { -// s.D.SetId("") -//} -// -//func (s *DatabaseMigrationConnectionsDataSourceCrud) Get() error { -// request := oci_database_migration.ListConnectionsRequest{} -// -// if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { -// tmp := compartmentId.(string) -// request.CompartmentId = &tmp -// } -// -// if displayName, ok := s.D.GetOkExists("display_name"); ok { -// tmp := displayName.(string) -// request.DisplayName = &tmp -// } -// -// if state, ok := s.D.GetOkExists("state"); ok { -// request.LifecycleState = oci_database_migration.ListConnectionsLifecycleStateEnum(state.(string)) -// } -// -// request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database_migration") -// -// response, err := s.Client.ListConnections(context.Background(), request) -// if err != nil { -// return err -// } -// -// s.Res = &response -// request.Page = s.Res.OpcNextPage -// -// for request.Page != nil { -// listResponse, err := s.Client.ListConnections(context.Background(), request) -// if err != nil { -// return err -// } -// -// s.Res.Items = append(s.Res.Items, listResponse.Items...) -// request.Page = listResponse.OpcNextPage -// } -// -// return nil -//} -// -//func (s *DatabaseMigrationConnectionsDataSourceCrud) SetData() error { -// if s.Res == nil { -// return nil -// } -// -// s.D.SetId(tfresource.GenerateDataSourceHashID("DatabaseMigrationConnectionsDataSource-", DatabaseMigrationConnectionsDataSource(), s.D)) -// resources := []map[string]interface{}{} -// connection := map[string]interface{}{} -// -// items := []interface{}{} -// for _, item := range s.Res.Items { -// items = append(items, ConnectionSummaryToMap(item)) -// } -// connection["items"] = items -// -// if f, fOk := s.D.GetOkExists("filter"); fOk { -// items = tfresource.ApplyFiltersInCollection(f.(*schema.Set), items, DatabaseMigrationConnectionsDataSource().Schema["connection_collection"].Elem.(*schema.Resource).Schema) -// connection["items"] = items -// } -// -// resources = append(resources, connection) -// if err := s.D.Set("connection_collection", resources); err != nil { -// return err -// } -// -// return nil -//} +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_database_migration "github.com/oracle/oci-go-sdk/v65/databasemigration" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseMigrationConnectionsDataSource() *schema.Resource { + return &schema.Resource{ + Read: readDatabaseMigrationConnections, + Schema: map[string]*schema.Schema{ + "filter": tfresource.DataSourceFiltersSchema(), + "compartment_id": { + Type: schema.TypeString, + Required: true, + }, + "connection_type": { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "display_name": { + Type: schema.TypeString, + Optional: true, + }, + "source_connection_id": { + Type: schema.TypeString, + Optional: true, + }, + "state": { + Type: schema.TypeString, + Optional: true, + }, + "technology_type": { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "connection_collection": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + + "items": { + Type: schema.TypeList, + Computed: true, + Elem: tfresource.GetDataSourceItemSchema(DatabaseMigrationConnectionResource()), + }, + }, + }, + }, + }, + } +} + +func readDatabaseMigrationConnections(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseMigrationConnectionsDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() + + return tfresource.ReadResource(sync) +} + +type DatabaseMigrationConnectionsDataSourceCrud struct { + D *schema.ResourceData + Client *oci_database_migration.DatabaseMigrationClient + Res *oci_database_migration.ListConnectionsResponse +} + +func (s *DatabaseMigrationConnectionsDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DatabaseMigrationConnectionsDataSourceCrud) Get() error { + request := oci_database_migration.ListConnectionsRequest{} + + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + request.CompartmentId = &tmp + } + + if connectionType, ok := s.D.GetOkExists("connection_type"); ok { + interfaces := connectionType.([]interface{}) + tmp := make([]oci_database_migration.ConnectionTypeEnum, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = oci_database_migration.ConnectionTypeEnum(interfaces[i].(string)) + } + } + if len(tmp) != 0 || s.D.HasChange("connection_type") { + request.ConnectionType = tmp + } + } + + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + request.DisplayName = &tmp + } + + if sourceConnectionId, ok := s.D.GetOkExists("source_connection_id"); ok { + tmp := sourceConnectionId.(string) + request.SourceConnectionId = &tmp + } + + if state, ok := s.D.GetOkExists("state"); ok { + request.LifecycleState = oci_database_migration.ListConnectionsLifecycleStateEnum(state.(string)) + } + + if technologyType, ok := s.D.GetOkExists("technology_type"); ok { + interfaces := technologyType.([]interface{}) + tmp := make([]oci_database_migration.TechnologyTypeEnum, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = oci_database_migration.TechnologyTypeEnum(interfaces[i].(string)) + } + } + if len(tmp) != 0 || s.D.HasChange("technology_type") { + request.TechnologyType = tmp + } + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database_migration") + + response, err := s.Client.ListConnections(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + request.Page = s.Res.OpcNextPage + + for request.Page != nil { + listResponse, err := s.Client.ListConnections(context.Background(), request) + if err != nil { + return err + } + + s.Res.Items = append(s.Res.Items, listResponse.Items...) + request.Page = listResponse.OpcNextPage + } + + return nil +} + +func (s *DatabaseMigrationConnectionsDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(tfresource.GenerateDataSourceHashID("DatabaseMigrationConnectionsDataSource-", DatabaseMigrationConnectionsDataSource(), s.D)) + resources := []map[string]interface{}{} + connection := map[string]interface{}{} + + items := []interface{}{} + for _, item := range s.Res.Items { + items = append(items, ConnectionSummaryToMap(item, true)) + } + connection["items"] = items + + if f, fOk := s.D.GetOkExists("filter"); fOk { + items = tfresource.ApplyFiltersInCollection(f.(*schema.Set), items, DatabaseMigrationConnectionsDataSource().Schema["connection_collection"].Elem.(*schema.Resource).Schema) + connection["items"] = items + } + + resources = append(resources, connection) + if err := s.D.Set("connection_collection", resources); err != nil { + return err + } + + return nil +} diff --git a/internal/service/database_migration/database_migration_migration_data_source.go b/internal/service/database_migration/database_migration_migration_data_source.go index 590ecd16dc2..527b66df203 100644 --- a/internal/service/database_migration/database_migration_migration_data_source.go +++ b/internal/service/database_migration/database_migration_migration_data_source.go @@ -2,196 +2,258 @@ // // Licensed under the Mozilla Public License v2.0 package database_migration -// -//import ( -// "context" -// -// "github.com/oracle/terraform-provider-oci/internal/client" -// "github.com/oracle/terraform-provider-oci/internal/tfresource" -// -// "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" -// oci_database_migration "github.com/oracle/oci-go-sdk/v65/databasemigration" -//) -// -//func DatabaseMigrationMigrationDataSource() *schema.Resource { -// fieldMap := make(map[string]*schema.Schema) -// fieldMap["migration_id"] = &schema.Schema{ -// Type: schema.TypeString, -// Required: true, -// } -// return tfresource.GetSingularDataSourceItemSchema(DatabaseMigrationMigrationResource(), fieldMap, readSingularDatabaseMigrationMigration) -//} -// -//func readSingularDatabaseMigrationMigration(d *schema.ResourceData, m interface{}) error { -// sync := &DatabaseMigrationMigrationDataSourceCrud{} -// sync.D = d -// sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() -// -// return tfresource.ReadResource(sync) -//} -// -//type DatabaseMigrationMigrationDataSourceCrud struct { -// D *schema.ResourceData -// Client *oci_database_migration.DatabaseMigrationClient -// Res *oci_database_migration.GetMigrationResponse -//} -// -//func (s *DatabaseMigrationMigrationDataSourceCrud) VoidState() { -// s.D.SetId("") -//} -// -//func (s *DatabaseMigrationMigrationDataSourceCrud) Get() error { -// request := oci_database_migration.GetMigrationRequest{} -// -// if migrationId, ok := s.D.GetOkExists("migration_id"); ok { -// tmp := migrationId.(string) -// request.MigrationId = &tmp -// } -// -// request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database_migration") -// -// response, err := s.Client.GetMigration(context.Background(), request) -// if err != nil { -// return err -// } -// -// s.Res = &response -// return nil -//} -// -//func (s *DatabaseMigrationMigrationDataSourceCrud) SetData() error { -// if s.Res == nil { -// return nil -// } -// -// s.D.SetId(*s.Res.Id) -// -// if s.Res.AdvisorSettings != nil { -// s.D.Set("advisor_settings", []interface{}{AdvisorSettingsToMap(s.Res.AdvisorSettings)}) -// } else { -// s.D.Set("advisor_settings", nil) -// } -// -// if s.Res.AgentId != nil { -// s.D.Set("agent_id", *s.Res.AgentId) -// } -// -// if s.Res.CompartmentId != nil { -// s.D.Set("compartment_id", *s.Res.CompartmentId) -// } -// -// if s.Res.CredentialsSecretId != nil { -// s.D.Set("credentials_secret_id", *s.Res.CredentialsSecretId) -// } -// -// if s.Res.DataTransferMediumDetails != nil { -// s.D.Set("data_transfer_medium_details", []interface{}{DataTransferMediumDetailsToMap(s.Res.DataTransferMediumDetails)}) -// } else { -// s.D.Set("data_transfer_medium_details", nil) -// } -// -// if s.Res.DataTransferMediumDetailsV2 != nil { -// dataTransferMediumDetailsV2Array := []interface{}{} -// if dataTransferMediumDetailsV2Map := DataTransferMediumDetailsV2ToMap(&s.Res.DataTransferMediumDetailsV2); dataTransferMediumDetailsV2Map != nil { -// dataTransferMediumDetailsV2Array = append(dataTransferMediumDetailsV2Array, dataTransferMediumDetailsV2Map) -// } -// s.D.Set("data_transfer_medium_details_v2", dataTransferMediumDetailsV2Array) -// } else { -// s.D.Set("data_transfer_medium_details_v2", nil) -// } -// -// if s.Res.DatapumpSettings != nil { -// s.D.Set("datapump_settings", []interface{}{DataPumpSettingsToMap(s.Res.DatapumpSettings)}) -// } else { -// s.D.Set("datapump_settings", nil) -// } -// -// if s.Res.DefinedTags != nil { -// s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) -// } -// -// if s.Res.DisplayName != nil { -// s.D.Set("display_name", *s.Res.DisplayName) -// } -// -// if s.Res.DumpTransferDetails != nil { -// s.D.Set("dump_transfer_details", []interface{}{DumpTransferDetailsToMap(s.Res.DumpTransferDetails)}) -// } else { -// s.D.Set("dump_transfer_details", nil) -// } -// -// excludeObjects := []interface{}{} -// for _, item := range s.Res.ExcludeObjects { -// excludeObjects = append(excludeObjects, DatabaseObjectToMap(item)) -// } -// s.D.Set("exclude_objects", excludeObjects) -// -// if s.Res.ExecutingJobId != nil { -// s.D.Set("executing_job_id", *s.Res.ExecutingJobId) -// } -// -// s.D.Set("freeform_tags", s.Res.FreeformTags) -// -// if s.Res.GoldenGateDetails != nil { -// s.D.Set("golden_gate_details", []interface{}{GoldenGateDetailsToMapPass(s.Res.GoldenGateDetails, s.D)}) -// -// } else { -// s.D.Set("golden_gate_details", nil) -// } -// -// if s.Res.GoldenGateServiceDetails != nil { -// s.D.Set("golden_gate_service_details", []interface{}{GoldenGateServiceDetailsToMap(s.Res.GoldenGateServiceDetails)}) -// } else { -// s.D.Set("golden_gate_service_details", nil) -// } -// -// includeObjects := []interface{}{} -// for _, item := range s.Res.IncludeObjects { -// includeObjects = append(includeObjects, DatabaseObjectToMap(item)) -// } -// s.D.Set("include_objects", includeObjects) -// -// s.D.Set("lifecycle_details", s.Res.LifecycleDetails) -// -// if s.Res.SourceContainerDatabaseConnectionId != nil { -// s.D.Set("source_container_database_connection_id", *s.Res.SourceContainerDatabaseConnectionId) -// } -// -// if s.Res.SourceDatabaseConnectionId != nil { -// s.D.Set("source_database_connection_id", *s.Res.SourceDatabaseConnectionId) -// } -// -// s.D.Set("state", s.Res.LifecycleState) -// -// if s.Res.SystemTags != nil { -// s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) -// } -// -// if s.Res.TargetDatabaseConnectionId != nil { -// s.D.Set("target_database_connection_id", *s.Res.TargetDatabaseConnectionId) -// } -// -// if s.Res.TimeCreated != nil { -// s.D.Set("time_created", s.Res.TimeCreated.String()) -// } -// -// if s.Res.TimeLastMigration != nil { -// s.D.Set("time_last_migration", s.Res.TimeLastMigration.String()) -// } -// -// if s.Res.TimeUpdated != nil { -// s.D.Set("time_updated", s.Res.TimeUpdated.String()) -// } -// -// s.D.Set("type", s.Res.Type) -// -// if s.Res.VaultDetails != nil { -// s.D.Set("vault_details", []interface{}{VaultDetailsToMap(s.Res.VaultDetails)}) -// } else { -// s.D.Set("vault_details", nil) -// } -// -// s.D.Set("wait_after", s.Res.WaitAfter) -// -// return nil -//} +import ( + "context" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_database_migration "github.com/oracle/oci-go-sdk/v65/databasemigration" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseMigrationMigrationDataSource() *schema.Resource { + fieldMap := make(map[string]*schema.Schema) + fieldMap["migration_id"] = &schema.Schema{ + Type: schema.TypeString, + Required: true, + } + return tfresource.GetSingularDataSourceItemSchema(DatabaseMigrationMigrationResource(), fieldMap, readSingularDatabaseMigrationMigration) +} + +func readSingularDatabaseMigrationMigration(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseMigrationMigrationDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() + + return tfresource.ReadResource(sync) +} + +type DatabaseMigrationMigrationDataSourceCrud struct { + D *schema.ResourceData + Client *oci_database_migration.DatabaseMigrationClient + Res *oci_database_migration.GetMigrationResponse +} + +func (s *DatabaseMigrationMigrationDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DatabaseMigrationMigrationDataSourceCrud) Get() error { + request := oci_database_migration.GetMigrationRequest{} + + if migrationId, ok := s.D.GetOkExists("migration_id"); ok { + tmp := migrationId.(string) + request.MigrationId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database_migration") + + response, err := s.Client.GetMigration(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *DatabaseMigrationMigrationDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(*s.Res.GetId()) + switch v := (s.Res.Migration).(type) { + case oci_database_migration.MySqlMigration: + s.D.Set("database_combination", "MYSQL") + + if v.AdvisorSettings != nil { + s.D.Set("advisor_settings", []interface{}{MySqlAdvisorSettingsToMap(v.AdvisorSettings)}) + } else { + s.D.Set("advisor_settings", nil) + } + + if v.DataTransferMediumDetails != nil { + dataTransferMediumDetailsArray := []interface{}{} + if dataTransferMediumDetailsMap := MySqlDataTransferMediumDetailsToMap(&v.DataTransferMediumDetails); dataTransferMediumDetailsMap != nil { + dataTransferMediumDetailsArray = append(dataTransferMediumDetailsArray, dataTransferMediumDetailsMap) + } + s.D.Set("data_transfer_medium_details", dataTransferMediumDetailsArray) + } else { + s.D.Set("data_transfer_medium_details", nil) + } + + if v.GgsDetails != nil { + s.D.Set("ggs_details", []interface{}{MySqlGgsDeploymentDetailsToMap(v.GgsDetails)}) + } else { + s.D.Set("ggs_details", nil) + } + + if v.HubDetails != nil { + s.D.Set("hub_details", []interface{}{GoldenGateHubDetailsToMap(v.HubDetails)}) + } else { + s.D.Set("hub_details", nil) + } + + if v.InitialLoadSettings != nil { + s.D.Set("initial_load_settings", []interface{}{MySqlInitialLoadSettingsToMap(v.InitialLoadSettings)}) + } else { + s.D.Set("initial_load_settings", nil) + } + + if v.CompartmentId != nil { + s.D.Set("compartment_id", *v.CompartmentId) + } + + if v.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(v.DefinedTags)) + } + + if v.Description != nil { + s.D.Set("description", *v.Description) + } + + if v.DisplayName != nil { + s.D.Set("display_name", *v.DisplayName) + } + + if v.ExecutingJobId != nil { + s.D.Set("executing_job_id", *v.ExecutingJobId) + } + + s.D.Set("freeform_tags", v.FreeformTags) + + s.D.Set("lifecycle_details", v.LifecycleDetails) + + if v.SourceDatabaseConnectionId != nil { + s.D.Set("source_database_connection_id", *v.SourceDatabaseConnectionId) + } + + s.D.Set("state", v.LifecycleState) + + if v.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(v.SystemTags)) + } + + if v.TargetDatabaseConnectionId != nil { + s.D.Set("target_database_connection_id", *v.TargetDatabaseConnectionId) + } + + if v.TimeCreated != nil { + s.D.Set("time_created", v.TimeCreated.String()) + } + + if v.TimeLastMigration != nil { + s.D.Set("time_last_migration", v.TimeLastMigration.String()) + } + + if v.TimeUpdated != nil { + s.D.Set("time_updated", v.TimeUpdated.String()) + } + + s.D.Set("type", v.Type) + + s.D.Set("wait_after", v.WaitAfter) + case oci_database_migration.OracleMigration: + s.D.Set("database_combination", "ORACLE") + + if v.AdvisorSettings != nil { + s.D.Set("advisor_settings", []interface{}{OracleAdvisorSettingsToMap(v.AdvisorSettings)}) + } else { + s.D.Set("advisor_settings", nil) + } + + if v.DataTransferMediumDetails != nil { + dataTransferMediumDetailsArray := []interface{}{} + if dataTransferMediumDetailsMap := OracleDataTransferMediumDetailsToMap(&v.DataTransferMediumDetails); dataTransferMediumDetailsMap != nil { + dataTransferMediumDetailsArray = append(dataTransferMediumDetailsArray, dataTransferMediumDetailsMap) + } + s.D.Set("data_transfer_medium_details", dataTransferMediumDetailsArray) + } else { + s.D.Set("data_transfer_medium_details", nil) + } + + if v.GgsDetails != nil { + s.D.Set("ggs_details", []interface{}{OracleGgsDeploymentDetailsToMap(v.GgsDetails)}) + } else { + s.D.Set("ggs_details", nil) + } + + if v.HubDetails != nil { + s.D.Set("hub_details", []interface{}{GoldenGateHubDetailsToMap(v.HubDetails)}) + } else { + s.D.Set("hub_details", nil) + } + + if v.InitialLoadSettings != nil { + s.D.Set("initial_load_settings", []interface{}{OracleInitialLoadSettingsToMap(v.InitialLoadSettings)}) + } else { + s.D.Set("initial_load_settings", nil) + } + + if v.SourceContainerDatabaseConnectionId != nil { + s.D.Set("source_container_database_connection_id", *v.SourceContainerDatabaseConnectionId) + } + + if v.CompartmentId != nil { + s.D.Set("compartment_id", *v.CompartmentId) + } + + if v.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(v.DefinedTags)) + } + + if v.Description != nil { + s.D.Set("description", *v.Description) + } + + if v.DisplayName != nil { + s.D.Set("display_name", *v.DisplayName) + } + + if v.ExecutingJobId != nil { + s.D.Set("executing_job_id", *v.ExecutingJobId) + } + + s.D.Set("freeform_tags", v.FreeformTags) + + s.D.Set("lifecycle_details", v.LifecycleDetails) + + if v.SourceDatabaseConnectionId != nil { + s.D.Set("source_database_connection_id", *v.SourceDatabaseConnectionId) + } + + s.D.Set("state", v.LifecycleState) + + if v.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(v.SystemTags)) + } + + if v.TargetDatabaseConnectionId != nil { + s.D.Set("target_database_connection_id", *v.TargetDatabaseConnectionId) + } + + if v.TimeCreated != nil { + s.D.Set("time_created", v.TimeCreated.String()) + } + + if v.TimeLastMigration != nil { + s.D.Set("time_last_migration", v.TimeLastMigration.String()) + } + + if v.TimeUpdated != nil { + s.D.Set("time_updated", v.TimeUpdated.String()) + } + + s.D.Set("type", v.Type) + + s.D.Set("wait_after", v.WaitAfter) + default: + log.Printf("[WARN] Received 'database_combination' of unknown type %v", s.Res.Migration) + return nil + } + + return nil +} diff --git a/internal/service/database_migration/database_migration_migration_object_types_data_source.go b/internal/service/database_migration/database_migration_migration_object_types_data_source.go index d9e70e12671..735713dcccc 100644 --- a/internal/service/database_migration/database_migration_migration_object_types_data_source.go +++ b/internal/service/database_migration/database_migration_migration_object_types_data_source.go @@ -18,6 +18,10 @@ func DatabaseMigrationMigrationObjectTypesDataSource() *schema.Resource { Read: readDatabaseMigrationMigrationObjectTypes, Schema: map[string]*schema.Schema{ "filter": tfresource.DataSourceFiltersSchema(), + "connection_type": { + Type: schema.TypeString, + Required: true, + }, "migration_object_type_summary_collection": { Type: schema.TypeList, Computed: true, @@ -73,6 +77,10 @@ func (s *DatabaseMigrationMigrationObjectTypesDataSourceCrud) VoidState() { func (s *DatabaseMigrationMigrationObjectTypesDataSourceCrud) Get() error { request := oci_database_migration.ListMigrationObjectTypesRequest{} + if connectionType, ok := s.D.GetOkExists("connection_type"); ok { + request.ConnectionType = oci_database_migration.ListMigrationObjectTypesConnectionTypeEnum(connectionType.(string)) + } + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "database_migration") response, err := s.Client.ListMigrationObjectTypes(context.Background(), request) diff --git a/internal/service/database_migration/database_migration_migration_resource.go b/internal/service/database_migration/database_migration_migration_resource.go index 1500baadde0..9228f3f20cf 100644 --- a/internal/service/database_migration/database_migration_migration_resource.go +++ b/internal/service/database_migration/database_migration_migration_resource.go @@ -1,3663 +1,5126 @@ -// // // Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. -// // // Licensed under the Mozilla Public License v2.0 +// // Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// // Licensed under the Mozilla Public License v2.0 package database_migration -// -//import ( -// "bytes" -// "context" -// "fmt" -// "log" -// "strings" -// "time" -// -// "github.com/oracle/terraform-provider-oci/internal/client" -// "github.com/oracle/terraform-provider-oci/internal/tfresource" -// "github.com/oracle/terraform-provider-oci/internal/utils" -// -// "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" -// "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" -// "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" -// -// oci_common "github.com/oracle/oci-go-sdk/v65/common" -// oci_database_migration "github.com/oracle/oci-go-sdk/v65/databasemigration" -//) -// -//func DatabaseMigrationMigrationResource() *schema.Resource { -// return &schema.Resource{ -// Importer: &schema.ResourceImporter{ -// State: schema.ImportStatePassthrough, -// }, -// Timeouts: tfresource.DefaultTimeout, -// Create: createDatabaseMigrationMigration, -// Read: readDatabaseMigrationMigration, -// Update: updateDatabaseMigrationMigration, -// Delete: deleteDatabaseMigrationMigration, -// Schema: map[string]*schema.Schema{ -// // Required -// "compartment_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// "source_database_connection_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// "target_database_connection_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// "type": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// "advisor_settings": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "is_ignore_errors": { -// Type: schema.TypeBool, -// Optional: true, -// Computed: true, -// }, -// "is_skip_advisor": { -// Type: schema.TypeBool, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// "agent_id": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "csv_text": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// ForceNew: true, -// }, -// "data_transfer_medium_details": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "database_link_details": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "name": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "wallet_bucket": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "bucket": { -// Type: schema.TypeString, -// Required: true, -// }, -// "namespace": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// -// // Computed -// }, -// }, -// }, -// "object_storage_details": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "bucket": { -// Type: schema.TypeString, -// Required: true, -// }, -// "namespace": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// -// // Computed -// }, -// }, -// }, -// "data_transfer_medium_details_v2": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "type": { -// Type: schema.TypeString, -// Required: true, -// DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, -// ValidateFunc: validation.StringInSlice([]string{ -// "AWS_S3", -// "DBLINK", -// "NFS", -// "OBJECT_STORAGE", -// }, true), -// }, -// -// // Optional -// "access_key_id": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "name": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "object_storage_bucket": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "bucket": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "namespace": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// "region": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "secret_access_key": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// "datapump_settings": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "data_pump_parameters": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "estimate": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "exclude_parameters": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// Elem: &schema.Schema{ -// Type: schema.TypeString, -// }, -// }, -// "export_parallelism_degree": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// }, -// "import_parallelism_degree": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// }, -// "is_cluster": { -// Type: schema.TypeBool, -// Optional: true, -// Computed: true, -// }, -// "table_exists_action": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// "export_directory_object": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "name": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// "path": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// "import_directory_object": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "name": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// "path": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// "job_mode": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "metadata_remaps": { -// Type: schema.TypeSet, -// Optional: true, -// Computed: true, -// Set: metadataRemapsHashCodeForSets, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "new_value": { -// Type: schema.TypeString, -// Required: true, -// }, -// "old_value": { -// Type: schema.TypeString, -// Required: true, -// }, -// "type": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// -// // Computed -// }, -// }, -// }, -// "defined_tags": { -// Type: schema.TypeMap, -// Optional: true, -// Computed: true, -// DiffSuppressFunc: tfresource.DefinedTagsDiffSuppressFunction, -// Elem: schema.TypeString, -// }, -// "display_name": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "dump_transfer_details": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "shared_storage_mount_target_id": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "source": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "kind": { -// Type: schema.TypeString, -// Required: true, -// DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, -// ValidateFunc: validation.StringInSlice([]string{ -// "CURL", -// "OCI_CLI", -// }, true), -// }, -// -// // Optional -// "oci_home": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "wallet_location": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// "target": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "kind": { -// Type: schema.TypeString, -// Required: true, -// DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, -// ValidateFunc: validation.StringInSlice([]string{ -// "CURL", -// "OCI_CLI", -// }, true), -// }, -// -// // Optional -// "oci_home": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "wallet_location": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// // Computed -// }, -// }, -// }, -// -// // Computed -// }, -// }, -// }, -// "exclude_objects": { -// Type: schema.TypeSet, -// Optional: true, -// Computed: true, -// Set: excludeObjectsHashCodeForSets, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "object": { -// Type: schema.TypeString, -// Required: true, -// }, -// "owner": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// "is_omit_excluded_table_from_replication": { -// Type: schema.TypeBool, -// Optional: true, -// Computed: true, -// }, -// "type": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// "freeform_tags": { -// Type: schema.TypeMap, -// Optional: true, -// Computed: true, -// Elem: schema.TypeString, -// }, -// "golden_gate_details": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "hub": { -// Type: schema.TypeList, -// Required: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "rest_admin_credentials": { -// Type: schema.TypeList, -// Required: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "password": { -// Type: schema.TypeString, -// Required: true, -// Sensitive: true, -// }, -// "username": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// "url": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// "compute_id": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "source_container_db_admin_credentials": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "password": { -// Type: schema.TypeString, -// Required: true, -// Sensitive: true, -// }, -// "username": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// "source_db_admin_credentials": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "password": { -// Type: schema.TypeString, -// Required: true, -// Sensitive: true, -// }, -// "username": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// "source_microservices_deployment_name": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "target_db_admin_credentials": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "password": { -// Type: schema.TypeString, -// Required: true, -// Sensitive: true, -// }, -// "username": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// "target_microservices_deployment_name": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// -// // Optional -// "settings": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "acceptable_lag": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// }, -// "extract": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "long_trans_duration": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// }, -// "performance_profile": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// "replicat": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "map_parallelism": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// }, -// "max_apply_parallelism": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// }, -// "min_apply_parallelism": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// }, -// "performance_profile": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// -// // Computed -// }, -// }, -// }, -// -// // Computed -// }, -// }, -// }, -// "golden_gate_service_details": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "settings": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "acceptable_lag": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// }, -// "extract": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "long_trans_duration": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// }, -// "performance_profile": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// "replicat": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// "map_parallelism": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// }, -// "max_apply_parallelism": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// }, -// "min_apply_parallelism": { -// Type: schema.TypeInt, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// -// // Computed -// }, -// }, -// }, -// "source_container_db_credentials": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "password": { -// Type: schema.TypeString, -// Required: true, -// Sensitive: true, -// }, -// "username": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// "source_db_credentials": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "password": { -// Type: schema.TypeString, -// Required: true, -// Sensitive: true, -// }, -// "username": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// "target_db_credentials": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "password": { -// Type: schema.TypeString, -// Required: true, -// Sensitive: true, -// }, -// "username": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// -// // Computed -// "ggs_deployment": { -// Type: schema.TypeList, -// Computed: true, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// -// // Optional -// -// // Computed -// "deployment_id": { -// Type: schema.TypeString, -// Computed: true, -// }, -// "ggs_admin_credentials_secret_id": { -// Type: schema.TypeString, -// Computed: true, -// }, -// }, -// }, -// }, -// }, -// }, -// }, -// "include_objects": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "object": { -// Type: schema.TypeString, -// Required: true, -// }, -// "owner": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// "is_omit_excluded_table_from_replication": { -// Type: schema.TypeBool, -// Optional: true, -// Computed: true, -// }, -// "type": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// -// // Computed -// }, -// }, -// }, -// "source_container_database_connection_id": { -// Type: schema.TypeString, -// Optional: true, -// Computed: true, -// }, -// "vault_details": { -// Type: schema.TypeList, -// Optional: true, -// Computed: true, -// MaxItems: 1, -// MinItems: 1, -// Elem: &schema.Resource{ -// Schema: map[string]*schema.Schema{ -// // Required -// "compartment_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// "key_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// "vault_id": { -// Type: schema.TypeString, -// Required: true, -// }, -// -// // Optional -// -// // Computed -// }, -// }, -// }, -// -// // Computed -// "credentials_secret_id": { -// Type: schema.TypeString, -// Computed: true, -// }, -// "executing_job_id": { -// Type: schema.TypeString, -// Computed: true, -// }, -// "lifecycle_details": { -// Type: schema.TypeString, -// Computed: true, -// }, -// "state": { -// Type: schema.TypeString, -// Computed: true, -// }, -// "system_tags": { -// Type: schema.TypeMap, -// Computed: true, -// Elem: schema.TypeString, -// }, -// "time_created": { -// Type: schema.TypeString, -// Computed: true, -// }, -// "time_last_migration": { -// Type: schema.TypeString, -// Computed: true, -// }, -// "time_updated": { -// Type: schema.TypeString, -// Computed: true, -// }, -// "wait_after": { -// Type: schema.TypeString, -// Computed: true, -// }, -// }, -// } -//} -// -//func excludeObjectsHashCodeForSets(v interface{}) int { -// var buf bytes.Buffer -// m := v.(map[string]interface{}) -// if object, ok := m["object"]; ok && object != "" { -// buf.WriteString(fmt.Sprintf("%v-", object)) -// } -// if owner, ok := m["owner"]; ok && owner != "" { -// buf.WriteString(fmt.Sprintf("%v-", owner)) -// } -// -// return utils.GetStringHashcode(buf.String()) -//} -// -//func createDatabaseMigrationMigration(d *schema.ResourceData, m interface{}) error { -// sync := &DatabaseMigrationMigrationResourceCrud{} -// sync.D = d -// sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() -// -// return tfresource.CreateResource(d, sync) -//} -// -//func readDatabaseMigrationMigration(d *schema.ResourceData, m interface{}) error { -// sync := &DatabaseMigrationMigrationResourceCrud{} -// sync.D = d -// sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() -// -// return tfresource.ReadResource(sync) -//} -// -//func updateDatabaseMigrationMigration(d *schema.ResourceData, m interface{}) error { -// sync := &DatabaseMigrationMigrationResourceCrud{} -// sync.D = d -// sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() -// -// return tfresource.UpdateResource(d, sync) -//} -// -//func deleteDatabaseMigrationMigration(d *schema.ResourceData, m interface{}) error { -// sync := &DatabaseMigrationMigrationResourceCrud{} -// sync.D = d -// sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() -// sync.DisableNotFoundRetries = true -// -// return tfresource.DeleteResource(d, sync) -//} -// -//type DatabaseMigrationMigrationResourceCrud struct { -// tfresource.BaseCrud -// Client *oci_database_migration.DatabaseMigrationClient -// Res *oci_database_migration.Migration -// -// DisableNotFoundRetries bool -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) ID() string { -// return *s.Res.Id -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) CreatedPending() []string { -// return []string{ -// string(oci_database_migration.MigrationLifecycleStatesCreating), -// string(oci_database_migration.MigrationLifecycleStatesInProgress), -// } -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) CreatedTarget() []string { -// return []string{ -// string(oci_database_migration.MigrationLifecycleStatesActive), -// string(oci_database_migration.MigrationLifecycleStatesSucceeded), -// string(oci_database_migration.MigrationLifecycleStatesNeedsAttention), -// } -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) DeletedPending() []string { -// return []string{ -// string(oci_database_migration.MigrationLifecycleStatesDeleting), -// } -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) DeletedTarget() []string { -// return []string{ -// string(oci_database_migration.MigrationLifecycleStatesDeleted), -// } -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) Create() error { -// request := oci_database_migration.CreateMigrationRequest{} -// -// if advisorSettings, ok := s.D.GetOkExists("advisor_settings"); ok { -// if tmpList := advisorSettings.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "advisor_settings", 0) -// tmp, err := s.mapToCreateAdvisorSettings(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.AdvisorSettings = &tmp -// } -// } -// -// if agentId, ok := s.D.GetOkExists("agent_id"); ok { -// tmp := agentId.(string) -// request.AgentId = &tmp -// } -// -// if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { -// tmp := compartmentId.(string) -// request.CompartmentId = &tmp -// } -// -// if csvText, ok := s.D.GetOkExists("csv_text"); ok { -// tmp := csvText.(string) -// request.CsvText = &tmp -// } -// -// if dataTransferMediumDetails, ok := s.D.GetOkExists("data_transfer_medium_details"); ok { -// if tmpList := dataTransferMediumDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "data_transfer_medium_details", 0) -// tmp, err := s.mapToCreateDataTransferMediumDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.DataTransferMediumDetails = &tmp -// } -// } -// -// if dataTransferMediumDetailsV2, ok := s.D.GetOkExists("data_transfer_medium_details_v2"); ok { -// if tmpList := dataTransferMediumDetailsV2.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "data_transfer_medium_details_v2", 0) -// tmp, err := s.mapToDataTransferMediumDetailsV2(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.DataTransferMediumDetailsV2 = tmp -// } -// } -// -// if datapumpSettings, ok := s.D.GetOkExists("datapump_settings"); ok { -// if tmpList := datapumpSettings.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "datapump_settings", 0) -// tmp, err := s.mapToCreateDataPumpSettings(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.DatapumpSettings = &tmp -// } -// } -// -// if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { -// convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) -// if err != nil { -// return err -// } -// request.DefinedTags = convertedDefinedTags -// } -// -// if displayName, ok := s.D.GetOkExists("display_name"); ok { -// tmp := displayName.(string) -// request.DisplayName = &tmp -// } -// -// if dumpTransferDetails, ok := s.D.GetOkExists("dump_transfer_details"); ok { -// if tmpList := dumpTransferDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "dump_transfer_details", 0) -// tmp, err := s.mapToCreateDumpTransferDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.DumpTransferDetails = &tmp -// } -// } -// -// if excludeObjects, ok := s.D.GetOkExists("exclude_objects"); ok { -// set := excludeObjects.(*schema.Set) -// interfaces := set.List() -// tmp := make([]oci_database_migration.DatabaseObject, len(interfaces)) -// for i := range interfaces { -// stateDataIndex := excludeObjectsHashCodeForSets(interfaces[i]) -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "exclude_objects", stateDataIndex) -// converted, err := s.mapToDatabaseObject(fieldKeyFormat) -// if err != nil { -// return err -// } -// tmp[i] = converted -// } -// if len(tmp) != 0 || s.D.HasChange("exclude_objects") { -// request.ExcludeObjects = tmp -// } -// } -// -// if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { -// request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) -// } -// -// if goldenGateDetails, ok := s.D.GetOkExists("golden_gate_details"); ok { -// if tmpList := goldenGateDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "golden_gate_details", 0) -// tmp, err := s.mapToCreateGoldenGateDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.GoldenGateDetails = &tmp -// } -// } -// -// if goldenGateServiceDetails, ok := s.D.GetOkExists("golden_gate_service_details"); ok { -// if tmpList := goldenGateServiceDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "golden_gate_service_details", 0) -// tmp, err := s.mapToCreateGoldenGateServiceDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.GoldenGateServiceDetails = &tmp -// } -// } -// -// if includeObjects, ok := s.D.GetOkExists("include_objects"); ok { -// interfaces := includeObjects.([]interface{}) -// tmp := make([]oci_database_migration.DatabaseObject, len(interfaces)) -// for i := range interfaces { -// stateDataIndex := i -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "include_objects", stateDataIndex) -// converted, err := s.mapToDatabaseObject(fieldKeyFormat) -// if err != nil { -// return err -// } -// tmp[i] = converted -// } -// if len(tmp) != 0 || s.D.HasChange("include_objects") { -// request.IncludeObjects = tmp -// } -// } -// -// if sourceContainerDatabaseConnectionId, ok := s.D.GetOkExists("source_container_database_connection_id"); ok { -// tmp := sourceContainerDatabaseConnectionId.(string) -// request.SourceContainerDatabaseConnectionId = &tmp -// } -// -// if sourceDatabaseConnectionId, ok := s.D.GetOkExists("source_database_connection_id"); ok { -// tmp := sourceDatabaseConnectionId.(string) -// request.SourceDatabaseConnectionId = &tmp -// } -// -// if targetDatabaseConnectionId, ok := s.D.GetOkExists("target_database_connection_id"); ok { -// tmp := targetDatabaseConnectionId.(string) -// request.TargetDatabaseConnectionId = &tmp -// } -// -// if type_, ok := s.D.GetOkExists("type"); ok { -// request.Type = oci_database_migration.MigrationTypesEnum(type_.(string)) -// } -// -// if vaultDetails, ok := s.D.GetOkExists("vault_details"); ok { -// if tmpList := vaultDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "vault_details", 0) -// tmp, err := s.mapToCreateVaultDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.VaultDetails = &tmp -// } -// } -// -// request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") -// -// response, err := s.Client.CreateMigration(context.Background(), request) -// -// if err != nil { -// return err -// } -// workId := response.OpcWorkRequestId -// var identifier *string -// identifier = response.Id -// if identifier != nil { -// s.D.SetId(*identifier) -// } -// return s.getMigrationFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration"), oci_database_migration.WorkRequestResourceActionTypeCreated, s.D.Timeout(schema.TimeoutCreate)) -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) getMigrationFromWorkRequest(workId *string, retryPolicy *oci_common.RetryPolicy, -// -// actionTypeEnum oci_database_migration.WorkRequestResourceActionTypeEnum, timeout time.Duration) error { -// -// // Wait until it finishes -// migrationId, err := migrationWaitForWorkRequest(workId, "migration", -// actionTypeEnum, timeout, s.DisableNotFoundRetries, s.Client) -// -// if err != nil { -// return err -// } -// s.D.SetId(*migrationId) -// -// return s.Get() -//} -// -//func migrationWorkRequestShouldRetryFunc(timeout time.Duration) func(response oci_common.OCIOperationResponse) bool { -// startTime := time.Now() -// stopTime := startTime.Add(timeout) -// return func(response oci_common.OCIOperationResponse) bool { -// -// // Stop after timeout has elapsed -// if time.Now().After(stopTime) { -// return false -// } -// -// // Make sure we stop on default rules -// if tfresource.ShouldRetry(response, false, "database_migration", startTime) { -// return true -// } -// -// return false -// } -//} -// -//func migrationWaitForWorkRequest(wId *string, entityType string, action oci_database_migration.WorkRequestResourceActionTypeEnum, -// -// timeout time.Duration, disableFoundRetries bool, client *oci_database_migration.DatabaseMigrationClient) (*string, error) { -// retryPolicy := tfresource.GetRetryPolicy(disableFoundRetries, "database_migration") -// retryPolicy.ShouldRetryOperation = migrationWorkRequestShouldRetryFunc(timeout) -// -// response := oci_database_migration.GetWorkRequestResponse{} -// -// stateConf := &resource.StateChangeConf{ -// Pending: []string{ -// string(oci_database_migration.OperationStatusInProgress), -// string(oci_database_migration.OperationStatusAccepted), -// string(oci_database_migration.OperationStatusCanceling), -// }, -// Target: []string{ -// string(oci_database_migration.OperationStatusSucceeded), -// string(oci_database_migration.OperationStatusFailed), -// string(oci_database_migration.OperationStatusCanceled), -// }, -// Refresh: func() (interface{}, string, error) { -// var err error -// response, err = client.GetWorkRequest(context.Background(), -// oci_database_migration.GetWorkRequestRequest{ -// WorkRequestId: wId, -// RequestMetadata: oci_common.RequestMetadata{ -// RetryPolicy: retryPolicy, -// }, -// }) -// wr := &response.WorkRequest -// return wr, string(wr.Status), err -// }, -// Timeout: timeout, -// } -// if _, e := stateConf.WaitForState(); e != nil { -// return nil, e -// } -// -// var identifier *string -// // The work request response contains an array of objects that finished the operation -// for _, res := range response.Resources { -// if strings.Contains(strings.ToLower(*res.EntityType), entityType) { -// if res.ActionType == action { -// identifier = res.Identifier -// break -// } -// } -// } -// -// // The workrequest may have failed, check for errors if identifier is not found or work failed or got cancelled -// if identifier == nil || response.Status == oci_database_migration.OperationStatusFailed || response.Status == oci_database_migration.OperationStatusCanceled { -// return nil, getErrorFromDatabaseMigrationMigrationWorkRequest(client, wId, retryPolicy, entityType, action) -// } -// -// return identifier, nil -//} -// -//func getErrorFromDatabaseMigrationMigrationWorkRequest(client *oci_database_migration.DatabaseMigrationClient, workId *string, retryPolicy *oci_common.RetryPolicy, entityType string, action oci_database_migration.WorkRequestResourceActionTypeEnum) error { -// response, err := client.ListWorkRequestErrors(context.Background(), -// oci_database_migration.ListWorkRequestErrorsRequest{ -// WorkRequestId: workId, -// RequestMetadata: oci_common.RequestMetadata{ -// RetryPolicy: retryPolicy, -// }, -// }) -// if err != nil { -// return err -// } -// -// allErrs := make([]string, 0) -// for _, wrkErr := range response.Items { -// allErrs = append(allErrs, *wrkErr.Message) -// } -// errorMessage := strings.Join(allErrs, "\n") -// -// workRequestErr := fmt.Errorf("work request did not succeed, workId: %s, entity: %s, action: %s. Message: %s", *workId, entityType, action, errorMessage) -// -// return workRequestErr -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) Get() error { -// request := oci_database_migration.GetMigrationRequest{} -// -// tmp := s.D.Id() -// request.MigrationId = &tmp -// -// request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") -// -// response, err := s.Client.GetMigration(context.Background(), request) -// if err != nil { -// return err -// } -// -// s.Res = &response.Migration -// return nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) Update() error { -// if compartment, ok := s.D.GetOkExists("compartment_id"); ok && s.D.HasChange("compartment_id") { -// oldRaw, newRaw := s.D.GetChange("compartment_id") -// if newRaw != "" && oldRaw != "" { -// err := s.updateCompartment(compartment) -// if err != nil { -// return err -// } -// } -// } -// request := oci_database_migration.UpdateMigrationRequest{} -// -// if advisorSettings, ok := s.D.GetOkExists("advisor_settings"); ok { -// if tmpList := advisorSettings.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "advisor_settings", 0) -// tmp, err := s.mapToUpdateAdvisorSettings(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.AdvisorSettings = &tmp -// } -// } -// -// if agentId, ok := s.D.GetOkExists("agent_id"); ok { -// tmp := agentId.(string) -// request.AgentId = &tmp -// } -// -// if dataTransferMediumDetails, ok := s.D.GetOkExists("data_transfer_medium_details"); ok && s.D.HasChange("data_transfer_medium_details") { -// if tmpList := dataTransferMediumDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "data_transfer_medium_details", 0) -// tmp, err := s.mapToUpdateDataTransferMediumDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.DataTransferMediumDetails = &tmp -// } -// } -// -// if dataTransferMediumDetailsV2, ok := s.D.GetOkExists("data_transfer_medium_details_v2"); ok { -// if tmpList := dataTransferMediumDetailsV2.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "data_transfer_medium_details_v2", 0) -// tmp, err := s.mapToDataTransferMediumDetailsV2(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.DataTransferMediumDetailsV2 = tmp -// } -// } -// -// if datapumpSettings, ok := s.D.GetOkExists("datapump_settings"); ok { -// if tmpList := datapumpSettings.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "datapump_settings", 0) -// tmp, err := s.mapToUpdateDataPumpSettings(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.DatapumpSettings = &tmp -// } -// } -// -// if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { -// convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) -// if err != nil { -// return err -// } -// request.DefinedTags = convertedDefinedTags -// } -// -// if displayName, ok := s.D.GetOkExists("display_name"); ok { -// tmp := displayName.(string) -// request.DisplayName = &tmp -// } -// -// if dumpTransferDetails, ok := s.D.GetOkExists("dump_transfer_details"); ok { -// if tmpList := dumpTransferDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "dump_transfer_details", 0) -// tmp, err := s.mapToUpdateDumpTransferDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.DumpTransferDetails = &tmp -// } -// } -// -// if excludeObjects, ok := s.D.GetOkExists("exclude_objects"); ok { -// set := excludeObjects.(*schema.Set) -// interfaces := set.List() -// tmp := make([]oci_database_migration.DatabaseObject, len(interfaces)) -// for i := range interfaces { -// stateDataIndex := excludeObjectsHashCodeForSets(interfaces[i]) -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "exclude_objects", stateDataIndex) -// converted, err := s.mapToDatabaseObject(fieldKeyFormat) -// if err != nil { -// return err -// } -// tmp[i] = converted -// } -// if len(tmp) != 0 || s.D.HasChange("exclude_objects") { -// request.ExcludeObjects = tmp -// } -// } -// -// if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok && s.D.HasChange("freeform_tags") { -// request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) -// } -// -// if goldenGateDetails, ok := s.D.GetOkExists("golden_gate_details"); ok && s.D.HasChange("golden_gate_details") { -// if tmpList := goldenGateDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "golden_gate_details", 0) -// tmp, err := s.mapToUpdateGoldenGateDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.GoldenGateDetails = &tmp -// } -// } -// -// if goldenGateServiceDetails, ok := s.D.GetOkExists("golden_gate_service_details"); ok { -// if tmpList := goldenGateServiceDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "golden_gate_service_details", 0) -// tmp, err := s.mapToUpdateGoldenGateServiceDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.GoldenGateServiceDetails = &tmp -// } -// } -// -// if includeObjects, ok := s.D.GetOkExists("include_objects"); ok { -// interfaces := includeObjects.([]interface{}) -// tmp := make([]oci_database_migration.DatabaseObject, len(interfaces)) -// for i := range interfaces { -// stateDataIndex := i -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "include_objects", stateDataIndex) -// converted, err := s.mapToDatabaseObject(fieldKeyFormat) -// if err != nil { -// return err -// } -// tmp[i] = converted -// } -// if len(tmp) != 0 || s.D.HasChange("include_objects") { -// request.IncludeObjects = tmp -// } -// } -// -// tmp := s.D.Id() -// request.MigrationId = &tmp -// -// if sourceContainerDatabaseConnectionId, ok := s.D.GetOkExists("source_container_database_connection_id"); ok && s.D.HasChange("source_container_database_connection_id") { -// tmp := sourceContainerDatabaseConnectionId.(string) -// request.SourceContainerDatabaseConnectionId = &tmp -// } -// -// if sourceDatabaseConnectionId, ok := s.D.GetOkExists("source_database_connection_id"); ok && s.D.HasChange("source_database_connection_id") { -// tmp := sourceDatabaseConnectionId.(string) -// request.SourceDatabaseConnectionId = &tmp -// } -// -// if targetDatabaseConnectionId, ok := s.D.GetOkExists("target_database_connection_id"); ok && s.D.HasChange("target_database_connection_id") { -// tmp := targetDatabaseConnectionId.(string) -// request.TargetDatabaseConnectionId = &tmp -// } -// -// if type_, ok := s.D.GetOkExists("type"); ok && s.D.HasChange("type") { -// request.Type = oci_database_migration.MigrationTypesEnum(type_.(string)) -// } -// -// if vaultDetails, ok := s.D.GetOkExists("vault_details"); ok && s.D.HasChange("vault_details") { -// if tmpList := vaultDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "vault_details", 0) -// tmp, err := s.mapToUpdateVaultDetails(fieldKeyFormat) -// if err != nil { -// return err -// } -// request.VaultDetails = &tmp -// } -// } -// -// request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") -// -// response, err := s.Client.UpdateMigration(context.Background(), request) -// if err != nil { -// return err -// } -// workId := response.OpcWorkRequestId -// return s.getMigrationFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration"), oci_database_migration.WorkRequestResourceActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate)) -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) Delete() error { -// request := oci_database_migration.DeleteMigrationRequest{} -// -// tmp := s.D.Id() -// request.MigrationId = &tmp -// request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") -// -// response, err := s.Client.DeleteMigration(context.Background(), request) -// if err != nil { -// return err -// } -// -// workId := response.OpcWorkRequestId -// // Wait until it finishes -// _, delWorkRequestErr := migrationWaitForWorkRequest(workId, "migration", -// oci_database_migration.WorkRequestResourceActionTypeDeleted, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries, s.Client) -// return delWorkRequestErr -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) SetData() error { -// if s.Res.AdvisorSettings != nil { -// s.D.Set("advisor_settings", []interface{}{AdvisorSettingsToMap(s.Res.AdvisorSettings)}) -// } else { -// s.D.Set("advisor_settings", nil) -// } -// -// if s.Res.AgentId != nil { -// s.D.Set("agent_id", *s.Res.AgentId) -// } -// -// if s.Res.CompartmentId != nil { -// s.D.Set("compartment_id", *s.Res.CompartmentId) -// } -// -// if s.Res.CredentialsSecretId != nil { -// s.D.Set("credentials_secret_id", *s.Res.CredentialsSecretId) -// } -// -// if s.Res.DataTransferMediumDetails != nil { -// s.D.Set("data_transfer_medium_details", []interface{}{DataTransferMediumDetailsToMap(s.Res.DataTransferMediumDetails)}) -// } else { -// s.D.Set("data_transfer_medium_details", nil) -// } -// -// if s.Res.DataTransferMediumDetailsV2 != nil { -// dataTransferMediumDetailsV2Array := []interface{}{} -// if dataTransferMediumDetailsV2Map := DataTransferMediumDetailsV2ToMap(&s.Res.DataTransferMediumDetailsV2); dataTransferMediumDetailsV2Map != nil { -// dataTransferMediumDetailsV2Array = append(dataTransferMediumDetailsV2Array, dataTransferMediumDetailsV2Map) -// } -// s.D.Set("data_transfer_medium_details_v2", dataTransferMediumDetailsV2Array) -// } else { -// s.D.Set("data_transfer_medium_details_v2", nil) -// } -// -// if s.Res.DatapumpSettings != nil { -// s.D.Set("datapump_settings", []interface{}{DataPumpSettingsToMap(s.Res.DatapumpSettings)}) -// } else { -// s.D.Set("datapump_settings", nil) -// } -// -// if s.Res.DefinedTags != nil { -// s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) -// } -// -// if s.Res.DisplayName != nil { -// s.D.Set("display_name", *s.Res.DisplayName) -// } -// -// if s.Res.DumpTransferDetails != nil { -// s.D.Set("dump_transfer_details", []interface{}{DumpTransferDetailsToMap(s.Res.DumpTransferDetails)}) -// } else { -// s.D.Set("dump_transfer_details", nil) -// } -// -// excludeObjects := []interface{}{} -// for _, item := range s.Res.ExcludeObjects { -// excludeObjects = append(excludeObjects, DatabaseObjectToMap(item)) -// } -// s.D.Set("exclude_objects", excludeObjects) -// -// if s.Res.ExecutingJobId != nil { -// s.D.Set("executing_job_id", *s.Res.ExecutingJobId) -// } -// -// s.D.Set("freeform_tags", s.Res.FreeformTags) -// -// if s.Res.GoldenGateDetails != nil { -// //s.D.Set("golden_gate_details", []interface{}{GoldenGateDetailsToMap(s.Res.GoldenGateDetails)}) -// s.D.Set("golden_gate_details", []interface{}{GoldenGateDetailsToMapPass(s.Res.GoldenGateDetails, s.D)}) -// -// } else { -// s.D.Set("golden_gate_details", nil) -// } -// -// if s.Res.GoldenGateServiceDetails != nil { -// s.D.Set("golden_gate_service_details", []interface{}{GoldenGateServiceDetailsToMap(s.Res.GoldenGateServiceDetails)}) -// } else { -// s.D.Set("golden_gate_service_details", nil) -// } -// -// includeObjects := []interface{}{} -// for _, item := range s.Res.IncludeObjects { -// includeObjects = append(includeObjects, DatabaseObjectToMap(item)) -// } -// s.D.Set("include_objects", includeObjects) -// -// s.D.Set("lifecycle_details", s.Res.LifecycleDetails) -// -// if s.Res.SourceContainerDatabaseConnectionId != nil { -// s.D.Set("source_container_database_connection_id", *s.Res.SourceContainerDatabaseConnectionId) -// } -// -// if s.Res.SourceDatabaseConnectionId != nil { -// s.D.Set("source_database_connection_id", *s.Res.SourceDatabaseConnectionId) -// } -// -// s.D.Set("state", s.Res.LifecycleState) -// -// if s.Res.SystemTags != nil { -// s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) -// } -// -// if s.Res.TargetDatabaseConnectionId != nil { -// s.D.Set("target_database_connection_id", *s.Res.TargetDatabaseConnectionId) -// } -// -// if s.Res.TimeCreated != nil { -// s.D.Set("time_created", s.Res.TimeCreated.String()) -// } -// -// if s.Res.TimeLastMigration != nil { -// s.D.Set("time_last_migration", s.Res.TimeLastMigration.String()) -// } -// -// if s.Res.TimeUpdated != nil { -// s.D.Set("time_updated", s.Res.TimeUpdated.String()) -// } -// -// s.D.Set("type", s.Res.Type) -// -// if s.Res.VaultDetails != nil { -// s.D.Set("vault_details", []interface{}{VaultDetailsToMap(s.Res.VaultDetails)}) -// } else { -// s.D.Set("vault_details", nil) -// } -// -// s.D.Set("wait_after", s.Res.WaitAfter) -// -// return nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateAdminCredentials(fieldKeyFormat string) (oci_database_migration.CreateAdminCredentials, error) { -// result := oci_database_migration.CreateAdminCredentials{} -// -// if password, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "password")); ok { -// tmp := password.(string) -// result.Password = &tmp -// } -// -// if username, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "username")); ok { -// tmp := username.(string) -// result.Username = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateAdvisorSettings(fieldKeyFormat string) (oci_database_migration.UpdateAdvisorSettings, error) { -// result := oci_database_migration.UpdateAdvisorSettings{} -// -// if isSkipAdvisor, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_skip_advisor")); ok { -// tmp := isSkipAdvisor.(bool) -// result.IsSkipAdvisor = &tmp -// } -// -// if isIgnoreErrors, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_ignore_errors")); ok { -// tmp := isIgnoreErrors.(bool) -// result.IsIgnoreErrors = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateAdminCredentials(fieldKeyFormat string) (oci_database_migration.UpdateAdminCredentials, error) { -// result := oci_database_migration.UpdateAdminCredentials{} -// -// if password, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "password")); ok { -// tmp := password.(string) -// result.Password = &tmp -// } -// -// if username, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "username")); ok { -// tmp := username.(string) -// result.Username = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateAdvisorSettings(fieldKeyFormat string) (oci_database_migration.CreateAdvisorSettings, error) { -// result := oci_database_migration.CreateAdvisorSettings{} -// -// if isIgnoreErrors, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_ignore_errors")); ok { -// tmp := isIgnoreErrors.(bool) -// result.IsIgnoreErrors = &tmp -// } -// -// if isSkipAdvisor, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_skip_advisor")); ok { -// tmp := isSkipAdvisor.(bool) -// result.IsSkipAdvisor = &tmp -// } -// -// return result, nil -//} -// -//func AdvisorSettingsToMap(obj *oci_database_migration.AdvisorSettings) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.IsIgnoreErrors != nil { -// result["is_ignore_errors"] = bool(*obj.IsIgnoreErrors) -// } -// -// if obj.IsSkipAdvisor != nil { -// result["is_skip_advisor"] = bool(*obj.IsSkipAdvisor) -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateDataPumpParameters(fieldKeyFormat string) (oci_database_migration.CreateDataPumpParameters, error) { -// result := oci_database_migration.CreateDataPumpParameters{} -// -// if estimate, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "estimate")); ok { -// result.Estimate = oci_database_migration.DataPumpEstimateEnum(estimate.(string)) -// } -// -// if excludeParameters, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "exclude_parameters")); ok { -// interfaces := excludeParameters.([]interface{}) -// tmp := make([]oci_database_migration.DataPumpExcludeParametersEnum, len(interfaces)) -// for i := range interfaces { -// stateDataIndex := i -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "exclude_parameters"), stateDataIndex) -// converted, err := s.mapToDataPumpExcludeParameters(fieldKeyFormatNextLevel) -// if err != nil { -// return result, err -// } -// tmp[i] = converted -// } -// if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "exclude_parameters")) { -// result.ExcludeParameters = tmp -// } -// } -// -// if exportParallelismDegree, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "export_parallelism_degree")); ok { -// tmp := exportParallelismDegree.(int) -// result.ExportParallelismDegree = &tmp -// } -// -// if importParallelismDegree, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_parallelism_degree")); ok { -// tmp := importParallelismDegree.(int) -// result.ImportParallelismDegree = &tmp -// } -// -// if isCluster, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_cluster")); ok { -// tmp := isCluster.(bool) -// result.IsCluster = &tmp -// } -// -// if tableExistsAction, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "table_exists_action")); ok { -// result.TableExistsAction = oci_database_migration.DataPumpTableExistsActionEnum(tableExistsAction.(string)) -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateDataPumpParameters(fieldKeyFormat string) (oci_database_migration.UpdateDataPumpParameters, error) { -// result := oci_database_migration.UpdateDataPumpParameters{} -// -// if estimate, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "estimate")); ok { -// result.Estimate = oci_database_migration.DataPumpEstimateEnum(estimate.(string)) -// } -// -// if excludeParameters, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "exclude_parameters")); ok { -// interfaces := excludeParameters.([]interface{}) -// tmp := make([]oci_database_migration.DataPumpExcludeParametersEnum, len(interfaces)) -// for i := range interfaces { -// stateDataIndex := i -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "exclude_parameters"), stateDataIndex) -// converted, err := s.mapToDataPumpExcludeParameters(fieldKeyFormatNextLevel) -// if err != nil { -// return result, err -// } -// tmp[i] = converted -// } -// if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "exclude_parameters")) { -// result.ExcludeParameters = tmp -// } -// } -// -// /*if exportParallelismDegree, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "export_parallelism_degree")); ok { -// tmp := exportParallelismDegree.(int) -// result.ExportParallelismDegree = &tmp -// }*/ -// exportParallelismDegree, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "export_parallelism_degree")) -// if ok && s.D.HasChange("export_parallelism_degree") { -// tmp := exportParallelismDegree.(int) -// result.ExportParallelismDegree = &tmp -// } -// -// importParallelismDegree, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_parallelism_degree")) -// if ok && s.D.HasChange("import_parallelism_degree") { -// tmp := importParallelismDegree.(int) -// result.ImportParallelismDegree = &tmp -// } -// -// /*if importParallelismDegree, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_parallelism_degree")); ok { -// tmp := importParallelismDegree.(int) -// result.ImportParallelismDegree = &tmp -// }*/ -// -// if isCluster, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_cluster")); ok { -// tmp := isCluster.(bool) -// result.IsCluster = &tmp -// } -// -// if tableExistsAction, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "table_exists_action")); ok { -// result.TableExistsAction = oci_database_migration.DataPumpTableExistsActionEnum(tableExistsAction.(string)) -// } -// -// return result, nil -//} -// -//func DataPumpParametersToMap(obj *oci_database_migration.DataPumpParameters) map[string]interface{} { -// result := map[string]interface{}{} -// -// result["estimate"] = string(obj.Estimate) -// -// excludeParameters := []interface{}{} -// for _, item := range obj.ExcludeParameters { -// excludeParameters = append(excludeParameters, DataPumpExcludeParametersToMap(item)) -// } -// result["exclude_parameters"] = excludeParameters -// -// if obj.ExportParallelismDegree != nil { -// result["export_parallelism_degree"] = int(*obj.ExportParallelismDegree) -// } -// -// if obj.ImportParallelismDegree != nil { -// result["import_parallelism_degree"] = int(*obj.ImportParallelismDegree) -// } -// -// if obj.IsCluster != nil { -// result["is_cluster"] = bool(*obj.IsCluster) -// } -// -// result["table_exists_action"] = string(obj.TableExistsAction) -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateDataPumpSettings(fieldKeyFormat string) (oci_database_migration.CreateDataPumpSettings, error) { -// result := oci_database_migration.CreateDataPumpSettings{} -// -// if dataPumpParameters, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "data_pump_parameters")); ok { -// if tmpList := dataPumpParameters.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "data_pump_parameters"), 0) -// tmp, err := s.mapToCreateDataPumpParameters(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert data_pump_parameters, encountered error: %v", err) -// } -// result.DataPumpParameters = &tmp -// } -// } -// -// if exportDirectoryObject, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "export_directory_object")); ok { -// if tmpList := exportDirectoryObject.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "export_directory_object"), 0) -// tmp, err := s.mapToCreateDirectoryObject(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert export_directory_object, encountered error: %v", err) -// } -// result.ExportDirectoryObject = &tmp -// } -// } -// -// if importDirectoryObject, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_directory_object")); ok { -// if tmpList := importDirectoryObject.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "import_directory_object"), 0) -// tmp, err := s.mapToCreateDirectoryObject(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert import_directory_object, encountered error: %v", err) -// } -// result.ImportDirectoryObject = &tmp -// } -// } -// -// if jobMode, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_mode")); ok { -// result.JobMode = oci_database_migration.DataPumpJobModeEnum(jobMode.(string)) -// } -// -// if metadataRemaps, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "metadata_remaps")); ok { -// set := metadataRemaps.(*schema.Set) -// interfaces := set.List() -// tmp := make([]oci_database_migration.MetadataRemap, len(interfaces)) -// for i := range interfaces { -// stateDataIndex := metadataRemapsHashCodeForSets(interfaces[i]) -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "metadata_remaps"), stateDataIndex) -// converted, err := s.mapToMetadataRemap(fieldKeyFormatNextLevel) -// if err != nil { -// return result, err -// } -// tmp[i] = converted -// } -// if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "metadata_remaps")) { -// result.MetadataRemaps = tmp -// } -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateDataPumpSettings(fieldKeyFormat string) (oci_database_migration.UpdateDataPumpSettings, error) { -// result := oci_database_migration.UpdateDataPumpSettings{} -// -// if dataPumpParameters, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "data_pump_parameters")); ok { -// if tmpList := dataPumpParameters.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "data_pump_parameters"), 0) -// tmp, err := s.mapToUpdateDataPumpParameters(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert data_pump_parameters, encountered error: %v", err) -// } -// result.DataPumpParameters = &tmp -// } -// } -// -// if exportDirectoryObject, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "export_directory_object")); ok { -// if tmpList := exportDirectoryObject.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "export_directory_object"), 0) -// tmp, err := s.mapToUpdateDirectoryObject(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert export_directory_object, encountered error: %v", err) -// } -// result.ExportDirectoryObject = &tmp -// } -// } -// -// if importDirectoryObject, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_directory_object")); ok { -// if tmpList := importDirectoryObject.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "import_directory_object"), 0) -// tmp, err := s.mapToUpdateDirectoryObject(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert import_directory_object, encountered error: %v", err) -// } -// result.ImportDirectoryObject = &tmp -// } -// } -// -// if jobMode, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_mode")); ok { -// result.JobMode = oci_database_migration.DataPumpJobModeEnum(jobMode.(string)) -// } -// -// if metadataRemaps, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "metadata_remaps")); ok { -// set := metadataRemaps.(*schema.Set) -// interfaces := set.List() -// tmp := make([]oci_database_migration.MetadataRemap, len(interfaces)) -// for i := range interfaces { -// stateDataIndex := metadataRemapsHashCodeForSets(interfaces[i]) -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "metadata_remaps"), stateDataIndex) -// converted, err := s.mapToMetadataRemap(fieldKeyFormatNextLevel) -// if err != nil { -// return result, err -// } -// tmp[i] = converted -// } -// if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "metadata_remaps")) { -// result.MetadataRemaps = tmp -// } -// } -// return result, nil -//} -// -//func DataPumpSettingsToMap(obj *oci_database_migration.DataPumpSettings) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.DataPumpParameters != nil { -// result["data_pump_parameters"] = []interface{}{DataPumpParametersToMap(obj.DataPumpParameters)} -// } -// -// if obj.ExportDirectoryObject != nil { -// result["export_directory_object"] = []interface{}{DirectoryObjectToMap(obj.ExportDirectoryObject)} -// } -// -// if obj.ImportDirectoryObject != nil { -// result["import_directory_object"] = []interface{}{DirectoryObjectToMap(obj.ImportDirectoryObject)} -// } -// -// result["job_mode"] = string(obj.JobMode) -// -// metadataRemaps := []interface{}{} -// for _, item := range obj.MetadataRemaps { -// metadataRemaps = append(metadataRemaps, MetadataRemapToMap(item)) -// } -// result["metadata_remaps"] = metadataRemaps -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateDataTransferMediumDetails(fieldKeyFormat string) (oci_database_migration.CreateDataTransferMediumDetails, error) { -// result := oci_database_migration.CreateDataTransferMediumDetails{} -// -// if databaseLinkDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "database_link_details")); ok { -// if tmpList := databaseLinkDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "database_link_details"), 0) -// tmp, err := s.mapToCreateDatabaseLinkDetails(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert database_link_details, encountered error: %v", err) -// } -// result.DatabaseLinkDetails = &tmp -// } -// } -// -// if objectStorageDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_details")); ok { -// if tmpList := objectStorageDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_details"), 0) -// tmp, err := s.mapToCreateObjectStoreBucket(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert object_storage_details, encountered error: %v", err) -// } -// result.ObjectStorageDetails = &tmp -// } -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateDataTransferMediumDetails(fieldKeyFormat string) (oci_database_migration.UpdateDataTransferMediumDetails, error) { -// result := oci_database_migration.UpdateDataTransferMediumDetails{} -// -// if databaseLinkDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "database_link_details")); ok { -// if tmpList := databaseLinkDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "database_link_details"), 0) -// tmp, err := s.mapToUpdateDatabaseLinkDetails(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert database_link_details, encountered error: %v", err) -// } -// result.DatabaseLinkDetails = &tmp -// } -// } -// -// if objectStorageDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_details")); ok { -// if tmpList := objectStorageDetails.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_details"), 0) -// tmp, err := s.mapToUpdateObjectStoreBucket(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert object_storage_details, encountered error: %v", err) -// } -// result.ObjectStorageDetails = &tmp -// } -// } -// -// return result, nil -//} -// -//func DataTransferMediumDetailsToMap(obj *oci_database_migration.DataTransferMediumDetails) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.DatabaseLinkDetails != nil { -// result["database_link_details"] = []interface{}{DatabaseLinkDetailsToMap(obj.DatabaseLinkDetails)} -// } -// -// if obj.ObjectStorageDetails != nil { -// result["object_storage_details"] = []interface{}{ObjectStoreBucketToMap(obj.ObjectStorageDetails)} -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateDatabaseLinkDetails(fieldKeyFormat string) (oci_database_migration.CreateDatabaseLinkDetails, error) { -// result := oci_database_migration.CreateDatabaseLinkDetails{} -// -// if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { -// tmp := name.(string) -// result.Name = &tmp -// } -// -// if walletBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "wallet_bucket")); ok { -// if tmpList := walletBucket.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "wallet_bucket"), 0) -// tmp, err := s.mapToCreateObjectStoreBucket(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert wallet_bucket, encountered error: %v", err) -// } -// result.WalletBucket = &tmp -// } -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateDatabaseLinkDetails(fieldKeyFormat string) (oci_database_migration.UpdateDatabaseLinkDetails, error) { -// result := oci_database_migration.UpdateDatabaseLinkDetails{} -// -// if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { -// tmp := name.(string) -// result.Name = &tmp -// } -// -// return result, nil -//} -// -//func DatabaseLinkDetailsToMap(obj *oci_database_migration.DatabaseLinkDetails) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.Name != nil { -// result["name"] = string(*obj.Name) -// } -// -// if obj.WalletBucket != nil { -// result["wallet_bucket"] = []interface{}{ObjectStoreBucketToMap(obj.WalletBucket)} -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateDirectoryObject(fieldKeyFormat string) (oci_database_migration.CreateDirectoryObject, error) { -// result := oci_database_migration.CreateDirectoryObject{} -// -// if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { -// tmp := name.(string) -// result.Name = &tmp -// } -// -// if path, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "path")); ok { -// tmp := path.(string) -// result.Path = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateDirectoryObject(fieldKeyFormat string) (oci_database_migration.UpdateDirectoryObject, error) { -// result := oci_database_migration.UpdateDirectoryObject{} -// -// if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { -// tmp := name.(string) -// result.Name = &tmp -// } -// -// /*if path, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "path")); ok { -// tmp := path.(string) -// result.Path = &tmp -// }*/ -// -// path, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "path")) -// if ok && s.D.HasChange("path") { -// tmp := path.(string) -// result.Path = &tmp -// } -// -// return result, nil -//} -// -//func DirectoryObjectToMap(obj *oci_database_migration.DirectoryObject) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.Name != nil { -// result["name"] = string(*obj.Name) -// } -// -// if obj.Path != nil { -// result["path"] = string(*obj.Path) -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateDumpTransferDetails(fieldKeyFormat string) (oci_database_migration.CreateDumpTransferDetails, error) { -// result := oci_database_migration.CreateDumpTransferDetails{} -// -// if sharedStorageMountTargetId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shared_storage_mount_target_id")); ok { -// tmp := sharedStorageMountTargetId.(string) -// result.SharedStorageMountTargetId = &tmp -// } -// -// if source, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source")); ok { -// if tmpList := source.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source"), 0) -// tmp, err := s.mapToCreateHostDumpTransferDetails(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert source, encountered error: %v", err) -// } -// result.Source = tmp -// } -// } -// -// if target, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target")); ok { -// if tmpList := target.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "target"), 0) -// tmp, err := s.mapToCreateHostDumpTransferDetails(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert target, encountered error: %v", err) -// } -// result.Target = tmp -// } -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateDumpTransferDetails(fieldKeyFormat string) (oci_database_migration.UpdateDumpTransferDetails, error) { -// result := oci_database_migration.UpdateDumpTransferDetails{} -// -// sharedStorageMountTargetId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shared_storage_mount_target_id")) -// if ok && s.D.HasChange("shared_storage_mount_target_id") { -// tmp := sharedStorageMountTargetId.(string) -// result.SharedStorageMountTargetId = &tmp -// } -// -// if source, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source")); ok { -// if tmpList := source.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source"), 0) -// tmp, err := s.mapToUpdateHostDumpTransferDetails(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert source, encountered error: %v", err) -// } -// result.Source = tmp -// } -// } -// -// if target, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target")); ok { -// if tmpList := target.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "target"), 0) -// tmp, err := s.mapToUpdateHostDumpTransferDetails(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert target, encountered error: %v", err) -// } -// result.Target = tmp -// } -// } -// -// return result, nil -//} -// -//func DumpTransferDetailsToMap(obj *oci_database_migration.DumpTransferDetails) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.SharedStorageMountTargetId != nil { -// result["shared_storage_mount_target_id"] = string(*obj.SharedStorageMountTargetId) -// } -// -// if obj.Source != nil { -// sourceArray := []interface{}{} -// if sourceMap := HostDumpTransferDetailsToMap(&obj.Source); sourceMap != nil { -// sourceArray = append(sourceArray, sourceMap) -// } -// result["source"] = sourceArray -// } -// -// if obj.Target != nil { -// targetArray := []interface{}{} -// if targetMap := HostDumpTransferDetailsToMap(&obj.Target); targetMap != nil { -// targetArray = append(targetArray, targetMap) -// } -// result["target"] = targetArray -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateExtract(fieldKeyFormat string) (oci_database_migration.CreateExtract, error) { -// result := oci_database_migration.CreateExtract{} -// -// if longTransDuration, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "long_trans_duration")); ok { -// tmp := longTransDuration.(int) -// result.LongTransDuration = &tmp -// } -// -// if performanceProfile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "performance_profile")); ok { -// result.PerformanceProfile = oci_database_migration.ExtractPerformanceProfileEnum(performanceProfile.(string)) -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateExtract(fieldKeyFormat string) (oci_database_migration.UpdateExtract, error) { -// result := oci_database_migration.UpdateExtract{} -// -// if longTransDuration, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "long_trans_duration")); ok { -// tmp := longTransDuration.(int) -// result.LongTransDuration = &tmp -// } -// -// if performanceProfile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "performance_profile")); ok { -// result.PerformanceProfile = oci_database_migration.ExtractPerformanceProfileEnum(performanceProfile.(string)) -// } -// -// return result, nil -//} -// -//func ExtractToMap(obj *oci_database_migration.Extract) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.LongTransDuration != nil { -// result["long_trans_duration"] = int(*obj.LongTransDuration) -// } -// -// result["performance_profile"] = string(obj.PerformanceProfile) -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateGoldenGateDetails(fieldKeyFormat string) (oci_database_migration.CreateGoldenGateDetails, error) { -// result := oci_database_migration.CreateGoldenGateDetails{} -// -// if hub, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "hub")); ok { -// if tmpList := hub.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "hub"), 0) -// tmp, err := s.mapToCreateGoldenGateHub(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert hub, encountered error: %v", err) -// } -// result.Hub = &tmp -// } -// } -// -// if settings, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "settings")); ok { -// if tmpList := settings.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "settings"), 0) -// tmp, err := s.mapToCreateGoldenGateSettings(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert settings, encountered error: %v", err) -// } -// result.Settings = &tmp -// } -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateGoldenGateDetails(fieldKeyFormat string) (oci_database_migration.UpdateGoldenGateDetails, error) { -// result := oci_database_migration.UpdateGoldenGateDetails{} -// -// if hub, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "hub")); ok { -// if tmpList := hub.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "hub"), 0) -// tmp, err := s.mapToUpdateGoldenGateHub(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert hub, encountered error: %v", err) -// } -// result.Hub = &tmp -// } -// } -// -// if settings, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "settings")); ok { -// if tmpList := settings.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "settings"), 0) -// tmp, err := s.mapToUpdateGoldenGateSettings(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert settings, encountered error: %v", err) -// } -// result.Settings = &tmp -// } -// } -// -// return result, nil -//} -// -//func GoldenGateDetailsToMap(obj *oci_database_migration.GoldenGateDetails) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.Hub != nil { -// result["hub"] = []interface{}{GoldenGateHubToMap(obj.Hub)} -// } -// -// if obj.Settings != nil { -// result["settings"] = []interface{}{GoldenGateSettingsToMap(obj.Settings)} -// } -// -// return result -//} -// -//func GoldenGateDetailsToMapPass(obj *oci_database_migration.GoldenGateDetails, resourceData *schema.ResourceData) map[string]interface{} { -// result := map[string]interface{}{} -// if obj.Hub != nil { -// result["hub"] = []interface{}{GoldenGateHubToMapPass(obj.Hub, resourceData)} -// } -// -// if obj.Settings != nil { -// result["settings"] = []interface{}{GoldenGateSettingsToMap(obj.Settings)} -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateGoldenGateHub(fieldKeyFormat string) (oci_database_migration.CreateGoldenGateHub, error) { -// result := oci_database_migration.CreateGoldenGateHub{} -// -// if computeId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compute_id")); ok { -// tmp := computeId.(string) -// result.ComputeId = &tmp -// } -// -// if restAdminCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "rest_admin_credentials")); ok { -// if tmpList := restAdminCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "rest_admin_credentials"), 0) -// tmp, err := s.mapToCreateAdminCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert rest_admin_credentials, encountered error: %v", err) -// } -// result.RestAdminCredentials = &tmp -// } -// } -// -// if sourceContainerDbAdminCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source_container_db_admin_credentials")); ok { -// if tmpList := sourceContainerDbAdminCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source_container_db_admin_credentials"), 0) -// tmp, err := s.mapToCreateAdminCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert source_container_db_admin_credentials, encountered error: %v", err) -// } -// result.SourceContainerDbAdminCredentials = &tmp -// } -// } -// -// if sourceDbAdminCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source_db_admin_credentials")); ok { -// if tmpList := sourceDbAdminCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source_db_admin_credentials"), 0) -// tmp, err := s.mapToCreateAdminCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert source_db_admin_credentials, encountered error: %v", err) -// } -// result.SourceDbAdminCredentials = &tmp -// } -// } -// -// if sourceMicroservicesDeploymentName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source_microservices_deployment_name")); ok { -// tmp := sourceMicroservicesDeploymentName.(string) -// result.SourceMicroservicesDeploymentName = &tmp -// } -// -// if targetDbAdminCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target_db_admin_credentials")); ok { -// if tmpList := targetDbAdminCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "target_db_admin_credentials"), 0) -// tmp, err := s.mapToCreateAdminCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert target_db_admin_credentials, encountered error: %v", err) -// } -// result.TargetDbAdminCredentials = &tmp -// } -// } -// -// if targetMicroservicesDeploymentName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target_microservices_deployment_name")); ok { -// tmp := targetMicroservicesDeploymentName.(string) -// result.TargetMicroservicesDeploymentName = &tmp -// } -// -// if url, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "url")); ok { -// tmp := url.(string) -// result.Url = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateGoldenGateHub(fieldKeyFormat string) (oci_database_migration.UpdateGoldenGateHub, error) { -// result := oci_database_migration.UpdateGoldenGateHub{} -// -// if computeId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compute_id")); ok { -// tmp := computeId.(string) -// result.ComputeId = &tmp -// } -// -// if restAdminCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "rest_admin_credentials")); ok { -// if tmpList := restAdminCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "rest_admin_credentials"), 0) -// tmp, err := s.mapToUpdateAdminCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert rest_admin_credentials, encountered error: %v", err) -// } -// result.RestAdminCredentials = &tmp -// } -// } -// -// if sourceContainerDbAdminCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source_container_db_admin_credentials")); ok { -// if tmpList := sourceContainerDbAdminCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source_container_db_admin_credentials"), 0) -// tmp, err := s.mapToUpdateAdminCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert source_container_db_admin_credentials, encountered error: %v", err) -// } -// result.SourceContainerDbAdminCredentials = &tmp -// } -// } -// -// if sourceDbAdminCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source_db_admin_credentials")); ok { -// if tmpList := sourceDbAdminCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source_db_admin_credentials"), 0) -// tmp, err := s.mapToUpdateAdminCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert source_db_admin_credentials, encountered error: %v", err) -// } -// result.SourceDbAdminCredentials = &tmp -// } -// } -// -// if sourceMicroservicesDeploymentName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source_microservices_deployment_name")); ok { -// tmp := sourceMicroservicesDeploymentName.(string) -// result.SourceMicroservicesDeploymentName = &tmp -// } -// -// if targetDbAdminCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target_db_admin_credentials")); ok { -// if tmpList := targetDbAdminCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "target_db_admin_credentials"), 0) -// tmp, err := s.mapToUpdateAdminCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert target_db_admin_credentials, encountered error: %v", err) -// } -// result.TargetDbAdminCredentials = &tmp -// } -// } -// -// if targetMicroservicesDeploymentName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target_microservices_deployment_name")); ok { -// tmp := targetMicroservicesDeploymentName.(string) -// result.TargetMicroservicesDeploymentName = &tmp -// } -// -// if url, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "url")); ok { -// tmp := url.(string) -// result.Url = &tmp -// } -// -// return result, nil -//} -// -//func GoldenGateHubToMap(obj *oci_database_migration.GoldenGateHub) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.ComputeId != nil { -// result["compute_id"] = string(*obj.ComputeId) -// } -// -// if obj.RestAdminCredentials != nil { -// result["rest_admin_credentials"] = []interface{}{AdminCredentialsToMap(obj.RestAdminCredentials)} -// } -// -// if obj.SourceContainerDbAdminCredentials != nil { -// result["source_container_db_admin_credentials"] = []interface{}{AdminCredentialsToMap(obj.SourceContainerDbAdminCredentials)} -// } -// -// if obj.SourceDbAdminCredentials != nil { -// result["source_db_admin_credentials"] = []interface{}{AdminCredentialsToMap(obj.SourceDbAdminCredentials)} -// } -// -// if obj.SourceMicroservicesDeploymentName != nil { -// result["source_microservices_deployment_name"] = string(*obj.SourceMicroservicesDeploymentName) -// } -// -// if obj.TargetDbAdminCredentials != nil { -// result["target_db_admin_credentials"] = []interface{}{AdminCredentialsToMap(obj.TargetDbAdminCredentials)} -// } -// -// if obj.TargetMicroservicesDeploymentName != nil { -// result["target_microservices_deployment_name"] = string(*obj.TargetMicroservicesDeploymentName) -// } -// -// if obj.Url != nil { -// result["url"] = string(*obj.Url) -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateGoldenGateServiceDetails(fieldKeyFormat string) (oci_database_migration.CreateGoldenGateServiceDetails, error) { -// result := oci_database_migration.CreateGoldenGateServiceDetails{} -// -// if settings, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "settings")); ok { -// if tmpList := settings.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "settings"), 0) -// tmp, err := s.mapToCreateGoldenGateSettings(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert settings, encountered error: %v", err) -// } -// result.Settings = &tmp -// } -// } -// -// if sourceContainerDbCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source_container_db_credentials")); ok { -// if tmpList := sourceContainerDbCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source_container_db_credentials"), 0) -// tmp, err := s.mapToDatabaseCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert source_container_db_credentials, encountered error: %v", err) -// } -// result.SourceContainerDbCredentials = &tmp -// } -// } -// -// if sourceDbCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source_db_credentials")); ok { -// if tmpList := sourceDbCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source_db_credentials"), 0) -// tmp, err := s.mapToDatabaseCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert source_db_credentials, encountered error: %v", err) -// } -// result.SourceDbCredentials = &tmp -// } -// } -// -// if targetDbCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target_db_credentials")); ok { -// if tmpList := targetDbCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "target_db_credentials"), 0) -// tmp, err := s.mapToDatabaseCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert target_db_credentials, encountered error: %v", err) -// } -// result.TargetDbCredentials = &tmp -// } -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateGoldenGateServiceDetails(fieldKeyFormat string) (oci_database_migration.UpdateGoldenGateServiceDetails, error) { -// result := oci_database_migration.UpdateGoldenGateServiceDetails{} -// -// if settings, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "settings")); ok { -// if tmpList := settings.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "settings"), 0) -// tmp, err := s.mapToUpdateGoldenGateSettings(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert settings, encountered error: %v", err) -// } -// result.Settings = &tmp -// } -// } -// -// if sourceContainerDbCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source_container_db_credentials")); ok { -// if tmpList := sourceContainerDbCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source_container_db_credentials"), 0) -// tmp, err := s.mapToDatabaseCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert source_container_db_credentials, encountered error: %v", err) -// } -// result.SourceContainerDbCredentials = &tmp -// } -// } -// -// if sourceDbCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source_db_credentials")); ok { -// if tmpList := sourceDbCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source_db_credentials"), 0) -// tmp, err := s.mapToDatabaseCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert source_db_credentials, encountered error: %v", err) -// } -// result.SourceDbCredentials = &tmp -// } -// } -// -// if targetDbCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target_db_credentials")); ok { -// if tmpList := targetDbCredentials.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "target_db_credentials"), 0) -// tmp, err := s.mapToDatabaseCredentials(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert target_db_credentials, encountered error: %v", err) -// } -// result.TargetDbCredentials = &tmp -// } -// } -// -// return result, nil -//} -// -//// func GoldenGateServiceDetailsToMap(obj *oci_database_migration.CreateGoldenGateServiceDetails) map[string]interface{} { -// -//func GoldenGateServiceDetailsToMap(obj *oci_database_migration.GoldenGateServiceDetails) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.GgsDeployment != nil { -// result["ggs_deployment"] = []interface{}{GgsDeploymentToMap(obj.GgsDeployment)} -// } -// -// if obj.Settings != nil { -// result["settings"] = []interface{}{GoldenGateSettingsToMap(obj.Settings)} -// } -// -// return result -//} -// -//func GoldenGateHubToMapPass(obj *oci_database_migration.GoldenGateHub, resourceData *schema.ResourceData) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.ComputeId != nil { -// result["compute_id"] = string(*obj.ComputeId) -// } -// -// if obj.RestAdminCredentials != nil { -// //result["rest_admin_credentials"] = []interface{}{AdminCredentialsToMap(obj.RestAdminCredentials)} -// result["rest_admin_credentials"] = []interface{}{AdminCredentialsToMapPasswordRest(obj, resourceData)} -// -// } -// -// if obj.SourceContainerDbAdminCredentials != nil { -// //result["source_container_db_admin_credentials"] = []interface{}{AdminCredentialsToMap(obj.SourceContainerDbAdminCredentials)} -// result["source_container_db_admin_credentials"] = []interface{}{AdminCredentialsToMapPasswordContainer(obj, resourceData)} -// -// } -// -// if obj.SourceDbAdminCredentials != nil { -// //result["source_db_admin_credentials"] = []interface{}{AdminCredentialsToMap(obj.SourceDbAdminCredentials)} -// result["source_db_admin_credentials"] = []interface{}{AdminCredentialsToMapPasswordSource(obj, resourceData)} -// -// } -// -// if obj.SourceMicroservicesDeploymentName != nil { -// result["source_microservices_deployment_name"] = string(*obj.SourceMicroservicesDeploymentName) -// } -// -// if obj.TargetDbAdminCredentials != nil { -// //result["target_db_admin_credentials"] = []interface{}{AdminCredentialsToMap(obj.TargetDbAdminCredentials)} -// result["target_db_admin_credentials"] = []interface{}{AdminCredentialsToMapPasswordTarget(obj, resourceData)} -// -// } -// -// if obj.TargetMicroservicesDeploymentName != nil { -// result["target_microservices_deployment_name"] = string(*obj.TargetMicroservicesDeploymentName) -// } -// -// if obj.Url != nil { -// result["url"] = string(*obj.Url) -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateGoldenGateSettings(fieldKeyFormat string) (oci_database_migration.CreateGoldenGateSettings, error) { -// result := oci_database_migration.CreateGoldenGateSettings{} -// -// if acceptableLag, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "acceptable_lag")); ok { -// tmp := acceptableLag.(int) -// result.AcceptableLag = &tmp -// } -// -// if extract, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extract")); ok { -// if tmpList := extract.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "extract"), 0) -// tmp, err := s.mapToCreateExtract(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert extract, encountered error: %v", err) -// } -// result.Extract = &tmp -// } -// } -// -// if replicat, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicat")); ok { -// if tmpList := replicat.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "replicat"), 0) -// tmp, err := s.mapToCreateReplicat(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert replicat, encountered error: %v", err) -// } -// result.Replicat = &tmp -// } -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateGoldenGateSettings(fieldKeyFormat string) (oci_database_migration.UpdateGoldenGateSettings, error) { -// result := oci_database_migration.UpdateGoldenGateSettings{} -// -// if acceptableLag, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "acceptable_lag")); ok { -// tmp := acceptableLag.(int) -// result.AcceptableLag = &tmp -// } -// -// if extract, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extract")); ok { -// if tmpList := extract.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "extract"), 0) -// tmp, err := s.mapToUpdateExtract(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert extract, encountered error: %v", err) -// } -// result.Extract = &tmp -// } -// } -// -// if replicat, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicat")); ok { -// if tmpList := replicat.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "replicat"), 0) -// tmp, err := s.mapToUpdateReplicat(fieldKeyFormatNextLevel) -// if err != nil { -// return result, fmt.Errorf("unable to convert replicat, encountered error: %v", err) -// } -// result.Replicat = &tmp -// } -// } -// -// return result, nil -//} -// -//func GoldenGateSettingsToMap(obj *oci_database_migration.GoldenGateSettings) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.AcceptableLag != nil { -// result["acceptable_lag"] = int(*obj.AcceptableLag) -// } -// -// if obj.Extract != nil { -// result["extract"] = []interface{}{ExtractToMap(obj.Extract)} -// } -// -// if obj.Replicat != nil { -// result["replicat"] = []interface{}{ReplicatToMap(obj.Replicat)} -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateHostDumpTransferDetails(fieldKeyFormat string) (oci_database_migration.CreateHostDumpTransferDetails, error) { -// var baseObject oci_database_migration.CreateHostDumpTransferDetails -// //discriminator -// kindRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "kind")) -// var kind string -// if ok { -// kind = kindRaw.(string) -// } else { -// kind = "CURL" // default value -// } -// switch strings.ToLower(kind) { -// case strings.ToLower("CURL"): -// details := oci_database_migration.CurlTransferDetails{} -// if walletLocation, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "wallet_location")); ok { -// tmp := walletLocation.(string) -// details.WalletLocation = &tmp -// } -// baseObject = details -// case strings.ToLower("OCI_CLI"): -// details := oci_database_migration.OciCliDumpTransferDetails{} -// if ociHome, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "oci_home")); ok { -// tmp := ociHome.(string) -// details.OciHome = &tmp -// } -// if walletLocation, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "wallet_location")); ok { -// tmp := walletLocation.(string) -// details.WalletLocation = &tmp -// } -// baseObject = details -// default: -// return nil, fmt.Errorf("unknown kind '%v' was specified", kind) -// } -// return baseObject, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateHostDumpTransferDetails(fieldKeyFormat string) (oci_database_migration.UpdateHostDumpTransferDetails, error) { -// var baseObject oci_database_migration.UpdateHostDumpTransferDetails -// //discriminator -// kindRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "kind")) -// var kind string -// if ok { -// kind = kindRaw.(string) -// } else { -// kind = "CURL" // default value -// } -// switch strings.ToLower(kind) { -// case strings.ToLower("CURL"): -// details := oci_database_migration.UpdateCurlTransferDetails{} -// if walletLocation, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "wallet_location")); ok { -// tmp := walletLocation.(string) -// details.WalletLocation = &tmp -// } -// baseObject = details -// case strings.ToLower("OCI_CLI"): -// details := oci_database_migration.UpdateOciCliDumpTransferDetails{} -// if ociHome, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "oci_home")); ok { -// tmp := ociHome.(string) -// details.OciHome = &tmp -// } -// if walletLocation, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "wallet_location")); ok { -// tmp := walletLocation.(string) -// details.WalletLocation = &tmp -// } -// baseObject = details -// default: -// return nil, fmt.Errorf("unknown kind '%v' was specified", kind) -// } -// return baseObject, nil -//} -// -//func HostDumpTransferDetailsToMap(obj *oci_database_migration.HostDumpTransferDetails) map[string]interface{} { -// result := map[string]interface{}{} -// switch v := (*obj).(type) { -// case oci_database_migration.CurlTransferDetails: -// result["kind"] = "CURL" -// -// if v.WalletLocation != nil { -// result["wallet_location"] = string(*v.WalletLocation) -// } -// case oci_database_migration.OciCliDumpTransferDetails: -// result["kind"] = "OCI_CLI" -// -// if v.OciHome != nil { -// result["oci_home"] = string(*v.OciHome) -// } -// -// if v.WalletLocation != nil { -// result["wallet_location"] = string(*v.WalletLocation) -// } -// default: -// log.Printf("[WARN] Received 'kind' of unknown type %v", *obj) -// return nil -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateObjectStoreBucket(fieldKeyFormat string) (oci_database_migration.CreateObjectStoreBucket, error) { -// result := oci_database_migration.CreateObjectStoreBucket{} -// -// if bucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "bucket")); ok { -// tmp := bucket.(string) -// result.BucketName = &tmp -// } -// -// if namespace, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "namespace")); ok { -// tmp := namespace.(string) -// result.NamespaceName = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateObjectStoreBucket(fieldKeyFormat string) (oci_database_migration.UpdateObjectStoreBucket, error) { -// result := oci_database_migration.UpdateObjectStoreBucket{} -// -// if bucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "bucket")); ok { -// tmp := bucket.(string) -// result.BucketName = &tmp -// } -// -// if namespace, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "namespace")); ok { -// tmp := namespace.(string) -// result.NamespaceName = &tmp -// } -// -// return result, nil -//} -// -//func ObjectStoreBucketToMap(obj *oci_database_migration.ObjectStoreBucket) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.BucketName != nil { -// result["bucket"] = string(*obj.BucketName) -// } -// -// if obj.NamespaceName != nil { -// result["namespace"] = string(*obj.NamespaceName) -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateReplicat(fieldKeyFormat string) (oci_database_migration.CreateReplicat, error) { -// result := oci_database_migration.CreateReplicat{} -// -// if mapParallelism, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "map_parallelism")); ok { -// tmp := mapParallelism.(int) -// result.MapParallelism = &tmp -// } -// -// if maxApplyParallelism, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "max_apply_parallelism")); ok { -// tmp := maxApplyParallelism.(int) -// result.MaxApplyParallelism = &tmp -// } -// -// if minApplyParallelism, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "min_apply_parallelism")); ok { -// tmp := minApplyParallelism.(int) -// result.MinApplyParallelism = &tmp -// } -// -// if performanceProfile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "performance_profile")); ok { -// result.PerformanceProfile = oci_database_migration.ReplicatPerformanceProfileEnum(performanceProfile.(string)) -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateReplicat(fieldKeyFormat string) (oci_database_migration.UpdateReplicat, error) { -// result := oci_database_migration.UpdateReplicat{} -// -// if mapParallelism, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "map_parallelism")); ok { -// tmp := mapParallelism.(int) -// result.MapParallelism = &tmp -// } -// -// if maxApplyParallelism, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "max_apply_parallelism")); ok { -// tmp := maxApplyParallelism.(int) -// result.MaxApplyParallelism = &tmp -// } -// -// if minApplyParallelism, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "min_apply_parallelism")); ok { -// tmp := minApplyParallelism.(int) -// result.MinApplyParallelism = &tmp -// } -// -// if performanceProfile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "performance_profile")); ok { -// result.PerformanceProfile = oci_database_migration.ReplicatPerformanceProfileEnum(performanceProfile.(string)) -// } -// -// return result, nil -//} -// -//func ReplicatToMap(obj *oci_database_migration.Replicat) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.MapParallelism != nil { -// result["map_parallelism"] = *obj.MapParallelism -// } -// -// if obj.MaxApplyParallelism != nil { -// result["max_apply_parallelism"] = *obj.MaxApplyParallelism -// } -// -// if obj.MinApplyParallelism != nil { -// result["min_apply_parallelism"] = *obj.MinApplyParallelism -// } -// -// //result["performance_profile"] = string(obj.PerformanceProfile) -// -// return result -//} -// -//func CreateReplicatToMap(obj *oci_database_migration.CreateReplicat) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.MapParallelism != nil { -// result["map_parallelism"] = int(*obj.MapParallelism) -// } -// -// if obj.MaxApplyParallelism != nil { -// result["max_apply_parallelism"] = int(*obj.MaxApplyParallelism) -// } -// -// if obj.MinApplyParallelism != nil { -// result["min_apply_parallelism"] = int(*obj.MinApplyParallelism) -// } -// -// result["performance_profile"] = string(obj.PerformanceProfile) -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateVaultDetails(fieldKeyFormat string) (oci_database_migration.CreateVaultDetails, error) { -// result := oci_database_migration.CreateVaultDetails{} -// -// if compartmentId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compartment_id")); ok { -// tmp := compartmentId.(string) -// result.CompartmentId = &tmp -// } -// -// if keyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "key_id")); ok { -// tmp := keyId.(string) -// result.KeyId = &tmp -// } -// -// if vaultId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "vault_id")); ok { -// tmp := vaultId.(string) -// result.VaultId = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateVaultDetails(fieldKeyFormat string) (oci_database_migration.UpdateVaultDetails, error) { -// result := oci_database_migration.UpdateVaultDetails{} -// -// if compartmentId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compartment_id")); ok { -// tmp := compartmentId.(string) -// result.CompartmentId = &tmp -// } -// -// if keyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "key_id")); ok { -// tmp := keyId.(string) -// result.KeyId = &tmp -// } -// -// if vaultId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "vault_id")); ok { -// tmp := vaultId.(string) -// result.VaultId = &tmp -// } -// -// return result, nil -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToDataPumpExcludeParameters(fieldKeyFormat string) (oci_database_migration.DataPumpExcludeParametersEnum, error) { -// //result := make([]oci_database_migration.DataPumpExcludeParametersEnum, 3) -// result := oci_database_migration.DataPumpExcludeParametersIndex -// return result, nil -//} -// -//func DataPumpExcludeParametersToMap(obj oci_database_migration.DataPumpExcludeParametersEnum) map[string]interface{} { -// result := map[string]interface{}{} -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToDatabaseCredentials(fieldKeyFormat string) (oci_database_migration.DatabaseCredentials, error) { -// result := oci_database_migration.DatabaseCredentials{} -// -// if password, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "password")); ok { -// tmp := password.(string) -// result.Password = &tmp -// } -// -// if username, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "username")); ok { -// tmp := username.(string) -// result.Username = &tmp -// } -// -// return result, nil -//} -// -//func DatabaseCredentialsToMap(obj *oci_database_migration.DatabaseCredentials) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.Password != nil { -// result["password"] = string(*obj.Password) -// } -// -// if obj.Username != nil { -// result["username"] = string(*obj.Username) -// } -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToDataTransferMediumDetailsV2(fieldKeyFormat string) (oci_database_migration.DataTransferMediumDetailsV2, error) { -// var baseObject oci_database_migration.DataTransferMediumDetailsV2 -// //discriminator -// typeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")) -// var type_ string -// if ok { -// type_ = typeRaw.(string) -// } else { -// type_ = "" // default value -// } -// switch strings.ToLower(type_) { -// case strings.ToLower("AWS_S3"): -// details := oci_database_migration.AwsS3DataTransferMediumDetails{} -// if accessKeyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "access_key_id")); ok { -// tmp := accessKeyId.(string) -// details.AccessKeyId = &tmp -// } -// if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { -// tmp := name.(string) -// details.Name = &tmp -// } -// if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { -// if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) -// tmp, err := s.mapToObjectStoreBucket(fieldKeyFormatNextLevel) -// if err != nil { -// return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) -// } -// details.ObjectStorageBucket = &tmp -// } -// } -// if region, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "region")); ok { -// tmp := region.(string) -// details.Region = &tmp -// } -// if secretAccessKey, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "secret_access_key")); ok { -// tmp := secretAccessKey.(string) -// details.SecretAccessKey = &tmp -// } -// baseObject = details -// case strings.ToLower("DBLINK"): -// details := oci_database_migration.DbLinkDataTransferMediumDetails{} -// if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { -// tmp := name.(string) -// details.Name = &tmp -// } -// if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { -// if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) -// tmp, err := s.mapToObjectStoreBucket(fieldKeyFormatNextLevel) -// if err != nil { -// return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) -// } -// details.ObjectStorageBucket = &tmp -// } -// } -// baseObject = details -// case strings.ToLower("NFS"): -// details := oci_database_migration.NfsDataTransferMediumDetails{} -// if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { -// if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) -// tmp, err := s.mapToObjectStoreBucket(fieldKeyFormatNextLevel) -// if err != nil { -// return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) -// } -// details.ObjectStorageBucket = &tmp -// } -// } -// baseObject = details -// case strings.ToLower("OBJECT_STORAGE"): -// details := oci_database_migration.ObjectStorageDataTransferMediumDetails{} -// if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { -// if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { -// fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) -// tmp, err := s.mapToObjectStoreBucket(fieldKeyFormatNextLevel) -// if err != nil { -// return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) -// } -// details.ObjectStorageBucket = &tmp -// } -// } -// baseObject = details -// default: -// return nil, fmt.Errorf("unknown type '%v' was specified", type_) -// } -// return baseObject, nil -//} -// -//func DataTransferMediumDetailsV2ToMap(obj *oci_database_migration.DataTransferMediumDetailsV2) map[string]interface{} { -// result := map[string]interface{}{} -// switch v := (*obj).(type) { -// case oci_database_migration.AwsS3DataTransferMediumDetails: -// result["type"] = "AWS_S3" -// -// if v.AccessKeyId != nil { -// result["access_key_id"] = string(*v.AccessKeyId) -// } -// -// if v.Name != nil { -// result["name"] = string(*v.Name) -// } -// -// if v.ObjectStorageBucket != nil { -// result["object_storage_bucket"] = []interface{}{ObjectStoreBucketToMap(v.ObjectStorageBucket)} -// } -// -// if v.Region != nil { -// result["region"] = string(*v.Region) -// } -// -// if v.SecretAccessKey != nil { -// result["secret_access_key"] = string(*v.SecretAccessKey) -// } -// case oci_database_migration.DbLinkDataTransferMediumDetails: -// result["type"] = "DBLINK" -// -// if v.Name != nil { -// result["name"] = string(*v.Name) -// } -// -// if v.ObjectStorageBucket != nil { -// result["object_storage_bucket"] = []interface{}{ObjectStoreBucketToMap(v.ObjectStorageBucket)} -// } -// case oci_database_migration.NfsDataTransferMediumDetails: -// result["type"] = "NFS" -// -// if v.ObjectStorageBucket != nil { -// result["object_storage_bucket"] = []interface{}{ObjectStoreBucketToMap(v.ObjectStorageBucket)} -// } -// case oci_database_migration.ObjectStorageDataTransferMediumDetails: -// result["type"] = "OBJECT_STORAGE" -// -// if v.ObjectStorageBucket != nil { -// result["object_storage_bucket"] = []interface{}{ObjectStoreBucketToMap(v.ObjectStorageBucket)} -// } -// default: -// log.Printf("[WARN] Received 'type' of unknown type %v", *obj) -// return nil -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToDatabaseObject(fieldKeyFormat string) (oci_database_migration.DatabaseObject, error) { -// result := oci_database_migration.DatabaseObject{} -// -// if isOmitExcludedTableFromReplication, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_omit_excluded_table_from_replication")); ok { -// tmp := isOmitExcludedTableFromReplication.(bool) -// result.IsOmitExcludedTableFromReplication = &tmp -// } -// -// if object, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object")); ok { -// tmp := object.(string) -// result.ObjectName = &tmp -// } -// -// if owner, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "owner")); ok { -// tmp := owner.(string) -// result.Owner = &tmp -// } -// -// if type_, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")); ok { -// tmp := type_.(string) -// result.Type = &tmp -// } -// -// return result, nil -//} -// -//func DatabaseObjectToMap(obj oci_database_migration.DatabaseObject) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.IsOmitExcludedTableFromReplication != nil { -// result["is_omit_excluded_table_from_replication"] = bool(*obj.IsOmitExcludedTableFromReplication) -// } -// -// if obj.ObjectName != nil { -// result["object"] = string(*obj.ObjectName) -// } -// -// if obj.Owner != nil { -// result["owner"] = string(*obj.Owner) -// } -// -// if obj.Type != nil { -// result["type"] = string(*obj.Type) -// } -// -// return result -//} -// -//func GgsDeploymentToMap(obj *oci_database_migration.GgsDeployment) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.DeploymentId != nil { -// result["deployment_id"] = string(*obj.DeploymentId) -// } -// -// if obj.GgsAdminCredentialsSecretId != nil { -// result["ggs_admin_credentials_secret_id"] = string(*obj.GgsAdminCredentialsSecretId) -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToMetadataRemap(fieldKeyFormat string) (oci_database_migration.MetadataRemap, error) { -// result := oci_database_migration.MetadataRemap{} -// -// if newValue, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "new_value")); ok { -// tmp := newValue.(string) -// result.NewValue = &tmp -// } -// -// if oldValue, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "old_value")); ok { -// tmp := oldValue.(string) -// result.OldValue = &tmp -// } -// -// if type_, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")); ok { -// result.Type = oci_database_migration.MetadataRemapTypeEnum(type_.(string)) -// } -// -// return result, nil -//} -// -//func MetadataRemapToMap(obj oci_database_migration.MetadataRemap) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.NewValue != nil { -// result["new_value"] = string(*obj.NewValue) -// } -// -// if obj.OldValue != nil { -// result["old_value"] = string(*obj.OldValue) -// } -// -// result["type"] = string(obj.Type) -// -// return result -//} -// -//func MigrationSummaryToMap(obj oci_database_migration.MigrationSummary) map[string]interface{} { -// result := map[string]interface{}{} -// -// if obj.AgentId != nil { -// result["agent_id"] = string(*obj.AgentId) -// } -// -// if obj.CompartmentId != nil { -// result["compartment_id"] = string(*obj.CompartmentId) -// } -// -// if obj.DefinedTags != nil { -// result["defined_tags"] = tfresource.DefinedTagsToMap(obj.DefinedTags) -// } -// -// if obj.DisplayName != nil { -// result["display_name"] = string(*obj.DisplayName) -// } -// -// if obj.ExecutingJobId != nil { -// result["executing_job_id"] = string(*obj.ExecutingJobId) -// } -// -// result["freeform_tags"] = obj.FreeformTags -// -// if obj.Id != nil { -// result["id"] = string(*obj.Id) -// } -// -// result["lifecycle_details"] = string(obj.LifecycleDetails) -// -// if obj.SourceContainerDatabaseConnectionId != nil { -// result["source_container_database_connection_id"] = string(*obj.SourceContainerDatabaseConnectionId) -// } -// -// if obj.SourceDatabaseConnectionId != nil { -// result["source_database_connection_id"] = string(*obj.SourceDatabaseConnectionId) -// } -// -// result["state"] = string(obj.LifecycleState) -// -// if obj.SystemTags != nil { -// result["system_tags"] = tfresource.SystemTagsToMap(obj.SystemTags) -// } -// -// if obj.TargetDatabaseConnectionId != nil { -// result["target_database_connection_id"] = string(*obj.TargetDatabaseConnectionId) -// } -// -// if obj.TimeCreated != nil { -// result["time_created"] = obj.TimeCreated.String() -// } -// -// if obj.TimeLastMigration != nil { -// result["time_last_migration"] = obj.TimeLastMigration.String() -// } -// -// if obj.TimeUpdated != nil { -// result["time_updated"] = obj.TimeUpdated.String() -// } -// -// result["type"] = string(obj.Type) -// -// if obj.VaultDetails != nil { -// result["vault_details"] = []interface{}{VaultDetailsToMap(obj.VaultDetails)} -// } -// -// return result -//} -// -//func (s *DatabaseMigrationMigrationResourceCrud) mapToObjectStoreBucket(fieldKeyFormat string) (oci_database_migration.ObjectStoreBucket, error) { -// result := oci_database_migration.ObjectStoreBucket{} -// -// if bucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "bucket")); ok { -// tmp := bucket.(string) -// result.BucketName = &tmp -// } -// -// if namespace, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "namespace")); ok { -// tmp := namespace.(string) -// result.NamespaceName = &tmp -// } -// -// return result, nil -//} -// -//func metadataRemapsHashCodeForSets(v interface{}) int { -// var buf bytes.Buffer -// m := v.(map[string]interface{}) -// if newValue, ok := m["new_value"]; ok && newValue != "" { -// buf.WriteString(fmt.Sprintf("%v-", newValue)) -// } -// if oldValue, ok := m["old_value"]; ok && oldValue != "" { -// buf.WriteString(fmt.Sprintf("%v-", oldValue)) -// } -// if type_, ok := m["type"]; ok && type_ != "" { -// buf.WriteString(fmt.Sprintf("%v-", type_)) -// } -// return utils.GetStringHashcode(buf.String()) -//} -//func (s *DatabaseMigrationMigrationResourceCrud) updateCompartment(compartment interface{}) error { -// changeCompartmentRequest := oci_database_migration.ChangeMigrationCompartmentRequest{} -// -// compartmentTmp := compartment.(string) -// changeCompartmentRequest.CompartmentId = &compartmentTmp -// -// idTmp := s.D.Id() -// changeCompartmentRequest.MigrationId = &idTmp -// -// changeCompartmentRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") -// -// _, err := s.Client.ChangeMigrationCompartment(context.Background(), changeCompartmentRequest) -// if err != nil { -// return err -// } -// -// if waitErr := tfresource.WaitForUpdatedState(s.D, s); waitErr != nil { -// return waitErr -// } -// -// return nil -//} +import ( + "bytes" + "context" + "fmt" + "log" + "strings" + "time" + + "github.com/oracle/terraform-provider-oci/internal/utils" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + oci_common "github.com/oracle/oci-go-sdk/v65/common" + oci_database_migration "github.com/oracle/oci-go-sdk/v65/databasemigration" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DatabaseMigrationMigrationResource() *schema.Resource { + return &schema.Resource{ + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Timeouts: tfresource.DefaultTimeout, + Create: createDatabaseMigrationMigration, + Read: readDatabaseMigrationMigration, + Update: updateDatabaseMigrationMigration, + Delete: deleteDatabaseMigrationMigration, + Schema: map[string]*schema.Schema{ + // Required + "compartment_id": { + Type: schema.TypeString, + Required: true, + }, + "database_combination": { + Type: schema.TypeString, + Required: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "MYSQL", + "ORACLE", + }, true), + }, + "source_database_connection_id": { + Type: schema.TypeString, + Required: true, + }, + "target_database_connection_id": { + Type: schema.TypeString, + Required: true, + }, + "type": { + Type: schema.TypeString, + Required: true, + }, + + // Optional + "advisor_settings": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "is_ignore_errors": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + }, + "is_skip_advisor": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + "bulk_include_exclude_data": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "data_transfer_medium_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "type": { + Type: schema.TypeString, + Required: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "AWS_S3", + "DBLINK", + "NFS", + "OBJECT_STORAGE", + }, true), + }, + + // Optional + "access_key_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "object_storage_bucket": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "bucket": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "namespace": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + "region": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "secret_access_key": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "shared_storage_mount_target_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "source": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "kind": { + Type: schema.TypeString, + Required: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "CURL", + "OCI_CLI", + }, true), + }, + + // Optional + "oci_home": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "wallet_location": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + "target": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "kind": { + Type: schema.TypeString, + Required: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "CURL", + "OCI_CLI", + }, true), + }, + + // Optional + "oci_home": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "wallet_location": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + + // Computed + }, + }, + }, + "defined_tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + DiffSuppressFunc: tfresource.DefinedTagsDiffSuppressFunction, + Elem: schema.TypeString, + }, + "description": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "display_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "exclude_objects": { + Type: schema.TypeSet, + Optional: true, + Computed: true, + ForceNew: true, + Set: excludeObjectsHashCodeForSets, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "object": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + "is_omit_excluded_table_from_replication": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + ForceNew: true, + }, + "owner": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "schema": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "type": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "freeform_tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + Elem: schema.TypeString, + }, + "ggs_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "acceptable_lag": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "extract": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "long_trans_duration": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "performance_profile": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + "replicat": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "performance_profile": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + + // Computed + "ggs_deployment": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "deployment_id": { + Type: schema.TypeString, + Computed: true, + }, + "ggs_admin_credentials_secret_id": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + }, + }, + }, + "hub_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "key_id": { + Type: schema.TypeString, + Required: true, + }, + "rest_admin_credentials": { + Type: schema.TypeList, + Required: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "password": { + Type: schema.TypeString, + Required: true, + Sensitive: true, + }, + "username": { + Type: schema.TypeString, + Required: true, + }, + + // Optional + + // Computed + }, + }, + }, + "url": { + Type: schema.TypeString, + Required: true, + }, + "vault_id": { + Type: schema.TypeString, + Required: true, + }, + + // Optional + "acceptable_lag": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "compute_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "extract": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "long_trans_duration": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "performance_profile": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + "replicat": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "performance_profile": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + + // Computed + }, + }, + }, + "include_objects": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "object": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + "is_omit_excluded_table_from_replication": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + ForceNew: true, + }, + "owner": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "schema": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "type": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "initial_load_settings": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "job_mode": { + Type: schema.TypeString, + Required: true, + }, + + // Optional + "compatibility": { + Type: schema.TypeList, + Optional: true, + Computed: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "data_pump_parameters": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "estimate": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "exclude_parameters": { + Type: schema.TypeList, + Optional: true, + Computed: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "export_parallelism_degree": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "import_parallelism_degree": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "is_cluster": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + }, + "table_exists_action": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + "export_directory_object": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "path": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + "handle_grant_errors": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "import_directory_object": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "path": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + "is_consistent": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + }, + "is_ignore_existing_objects": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + }, + "is_tz_utc": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + }, + "metadata_remaps": { + Type: schema.TypeList, + Optional: true, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "new_value": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "old_value": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "type": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + "primary_key_compatibility": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "tablespace_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "target_type": { + Type: schema.TypeString, + Required: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "ADB_D_AUTOCREATE", + "ADB_D_REMAP", + "ADB_S_REMAP", + "NON_ADB_AUTOCREATE", + "NON_ADB_REMAP", + "TARGET_DEFAULTS_AUTOCREATE", + "TARGET_DEFAULTS_REMAP", + }, true), + }, + + // Optional + "block_size_in_kbs": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "extend_size_in_mbs": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "is_auto_create": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + }, + "is_big_file": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + }, + "remap_target": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + + // Computed + }, + }, + }, + "source_container_database_connection_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + "executing_job_id": { + Type: schema.TypeString, + Computed: true, + }, + "lifecycle_details": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "system_tags": { + Type: schema.TypeMap, + Computed: true, + Elem: schema.TypeString, + }, + "time_created": { + Type: schema.TypeString, + Computed: true, + }, + "time_last_migration": { + Type: schema.TypeString, + Computed: true, + }, + "time_updated": { + Type: schema.TypeString, + Computed: true, + }, + "wait_after": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func excludeObjectsHashCodeForSets(v interface{}) int { + var buf bytes.Buffer + m := v.(map[string]interface{}) + if object, ok := m["object"]; ok && object != "" { + buf.WriteString(fmt.Sprintf("%v-", object)) + } + if owner, ok := m["owner"]; ok && owner != "" { + buf.WriteString(fmt.Sprintf("%v-", owner)) + } + + return utils.GetStringHashcode(buf.String()) +} + +func createDatabaseMigrationMigration(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseMigrationMigrationResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() + + return tfresource.CreateResource(d, sync) +} + +func readDatabaseMigrationMigration(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseMigrationMigrationResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() + + return tfresource.ReadResource(sync) +} + +func updateDatabaseMigrationMigration(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseMigrationMigrationResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() + + return tfresource.UpdateResource(d, sync) +} + +func deleteDatabaseMigrationMigration(d *schema.ResourceData, m interface{}) error { + sync := &DatabaseMigrationMigrationResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DatabaseMigrationClient() + sync.DisableNotFoundRetries = true + + return tfresource.DeleteResource(d, sync) +} + +type DatabaseMigrationMigrationResourceCrud struct { + tfresource.BaseCrud + Client *oci_database_migration.DatabaseMigrationClient + Res *oci_database_migration.Migration + DisableNotFoundRetries bool +} + +func (s *DatabaseMigrationMigrationResourceCrud) ID() string { + migration := *s.Res + return *migration.GetId() +} + +func (s *DatabaseMigrationMigrationResourceCrud) CreatedPending() []string { + return []string{ + string(oci_database_migration.MigrationLifecycleStatesCreating), + string(oci_database_migration.MigrationLifecycleStatesInProgress), + } +} + +func (s *DatabaseMigrationMigrationResourceCrud) CreatedTarget() []string { + return []string{ + string(oci_database_migration.MigrationLifecycleStatesActive), + string(oci_database_migration.MigrationLifecycleStatesSucceeded), + string(oci_database_migration.MigrationLifecycleStatesNeedsAttention), + } +} + +func (s *DatabaseMigrationMigrationResourceCrud) DeletedPending() []string { + return []string{ + string(oci_database_migration.MigrationLifecycleStatesDeleting), + } +} + +func (s *DatabaseMigrationMigrationResourceCrud) DeletedTarget() []string { + return []string{ + string(oci_database_migration.MigrationLifecycleStatesDeleted), + } +} + +func (s *DatabaseMigrationMigrationResourceCrud) Create() error { + request := oci_database_migration.CreateMigrationRequest{} + err := s.populateTopLevelPolymorphicCreateMigrationRequest(&request) + if err != nil { + return err + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") + + response, err := s.Client.CreateMigration(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + var identifier *string + identifier = response.GetId() + if identifier != nil { + s.D.SetId(*identifier) + } + return s.getMigrationFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration"), oci_database_migration.WorkRequestResourceActionTypeCreated, s.D.Timeout(schema.TimeoutCreate)) +} + +func (s *DatabaseMigrationMigrationResourceCrud) getMigrationFromWorkRequest(workId *string, retryPolicy *oci_common.RetryPolicy, + actionTypeEnum oci_database_migration.WorkRequestResourceActionTypeEnum, timeout time.Duration) error { + + // Wait until it finishes + migrationId, err := migrationWaitForWorkRequest(workId, "migration", + actionTypeEnum, timeout, s.DisableNotFoundRetries, s.Client) + + if err != nil { + return err + } + s.D.SetId(*migrationId) + + return s.Get() +} + +func migrationWorkRequestShouldRetryFunc(timeout time.Duration) func(response oci_common.OCIOperationResponse) bool { + startTime := time.Now() + stopTime := startTime.Add(timeout) + return func(response oci_common.OCIOperationResponse) bool { + + // Stop after timeout has elapsed + if time.Now().After(stopTime) { + return false + } + + // Make sure we stop on default rules + if tfresource.ShouldRetry(response, false, "database_migration", startTime) { + return true + } + + // Only stop if the time Finished is set + /* if workRequestResponse, ok := response.Response.(oci_database_migration.GetWorkRequestResponse); ok { + return workRequestResponse.TimeFinished == nil + }*/ + + return false + } +} + +func migrationWaitForWorkRequest(wId *string, entityType string, action oci_database_migration.WorkRequestResourceActionTypeEnum, + timeout time.Duration, disableFoundRetries bool, client *oci_database_migration.DatabaseMigrationClient) (*string, error) { + retryPolicy := tfresource.GetRetryPolicy(disableFoundRetries, "database_migration") + retryPolicy.ShouldRetryOperation = migrationWorkRequestShouldRetryFunc(timeout) + + response := oci_database_migration.GetWorkRequestResponse{} + stateConf := &resource.StateChangeConf{ + Pending: []string{ + string(oci_database_migration.OperationStatusInProgress), + string(oci_database_migration.OperationStatusAccepted), + string(oci_database_migration.OperationStatusCanceling), + }, + Target: []string{ + string(oci_database_migration.OperationStatusSucceeded), + string(oci_database_migration.OperationStatusFailed), + string(oci_database_migration.OperationStatusCanceled), + }, + Refresh: func() (interface{}, string, error) { + var err error + response, err = client.GetWorkRequest(context.Background(), + oci_database_migration.GetWorkRequestRequest{ + WorkRequestId: wId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + wr := &response.WorkRequest + return wr, string(wr.Status), err + }, + Timeout: timeout, + } + if _, e := stateConf.WaitForState(); e != nil { + return nil, e + } + + var identifier *string + // The work request response contains an array of objects that finished the operation + for _, res := range response.Resources { + if strings.Contains(strings.ToLower(*res.EntityType), entityType) { + if res.ActionType == action { + identifier = res.Identifier + break + } + } + } + + // The workrequest may have failed, check for errors if identifier is not found or work failed or got cancelled + if identifier == nil || response.Status == oci_database_migration.OperationStatusFailed || response.Status == oci_database_migration.OperationStatusCanceled { + return nil, getErrorFromDatabaseMigrationMigrationWorkRequest(client, wId, retryPolicy, entityType, action) + } + + return identifier, nil +} + +func getErrorFromDatabaseMigrationMigrationWorkRequest(client *oci_database_migration.DatabaseMigrationClient, workId *string, retryPolicy *oci_common.RetryPolicy, entityType string, action oci_database_migration.WorkRequestResourceActionTypeEnum) error { + response, err := client.ListWorkRequestErrors(context.Background(), + oci_database_migration.ListWorkRequestErrorsRequest{ + WorkRequestId: workId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + if err != nil { + return err + } + + allErrs := make([]string, 0) + for _, wrkErr := range response.Items { + allErrs = append(allErrs, *wrkErr.Message) + } + errorMessage := strings.Join(allErrs, "\n") + + workRequestErr := fmt.Errorf("work request did not succeed, workId: %s, entity: %s, action: %s. Message: %s", *workId, entityType, action, errorMessage) + + return workRequestErr +} + +func (s *DatabaseMigrationMigrationResourceCrud) Get() error { + request := oci_database_migration.GetMigrationRequest{} + + tmp := s.D.Id() + request.MigrationId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") + + response, err := s.Client.GetMigration(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response.Migration + return nil +} + +func (s *DatabaseMigrationMigrationResourceCrud) Update() error { + if compartment, ok := s.D.GetOkExists("compartment_id"); ok && s.D.HasChange("compartment_id") { + oldRaw, newRaw := s.D.GetChange("compartment_id") + if newRaw != "" && oldRaw != "" { + err := s.updateCompartment(compartment) + if err != nil { + return err + } + } + } + request := oci_database_migration.UpdateMigrationRequest{} + err := s.populateTopLevelPolymorphicUpdateMigrationRequest(&request) + if err != nil { + return err + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") + + response, err := s.Client.UpdateMigration(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + return s.getMigrationFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration"), oci_database_migration.WorkRequestResourceActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate)) +} + +func (s *DatabaseMigrationMigrationResourceCrud) Delete() error { + request := oci_database_migration.DeleteMigrationRequest{} + + tmp := s.D.Id() + request.MigrationId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") + + response, err := s.Client.DeleteMigration(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + // Wait until it finishes + _, delWorkRequestErr := migrationWaitForWorkRequest(workId, "migration", + oci_database_migration.WorkRequestResourceActionTypeDeleted, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries, s.Client) + return delWorkRequestErr +} + +func (s *DatabaseMigrationMigrationResourceCrud) SetData() error { + switch v := (*s.Res).(type) { + case oci_database_migration.MySqlMigration: + s.D.Set("database_combination", "MYSQL") + + if v.AdvisorSettings != nil { + s.D.Set("advisor_settings", []interface{}{MySqlAdvisorSettingsToMap(v.AdvisorSettings)}) + } else { + s.D.Set("advisor_settings", nil) + } + + if v.DataTransferMediumDetails != nil { + dataTransferMediumDetailsArray := []interface{}{} + if dataTransferMediumDetailsMap := MySqlDataTransferMediumDetailsToMap(&v.DataTransferMediumDetails); dataTransferMediumDetailsMap != nil { + dataTransferMediumDetailsArray = append(dataTransferMediumDetailsArray, dataTransferMediumDetailsMap) + } + s.D.Set("data_transfer_medium_details", dataTransferMediumDetailsArray) + } else { + s.D.Set("data_transfer_medium_details", nil) + } + + if v.GgsDetails != nil { + s.D.Set("ggs_details", []interface{}{MySqlGgsDeploymentDetailsToMap(v.GgsDetails)}) + } else { + s.D.Set("ggs_details", nil) + } + + if v.HubDetails != nil { + s.D.Set("hub_details", []interface{}{GoldenGateHubDetailsToMap(v.HubDetails)}) + } else { + s.D.Set("hub_details", nil) + } + + if v.InitialLoadSettings != nil { + s.D.Set("initial_load_settings", []interface{}{MySqlInitialLoadSettingsToMap(v.InitialLoadSettings)}) + } else { + s.D.Set("initial_load_settings", nil) + } + + if v.CompartmentId != nil { + s.D.Set("compartment_id", *v.CompartmentId) + } + + if v.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(v.DefinedTags)) + } + + if v.Description != nil { + s.D.Set("description", *v.Description) + } + + if v.DisplayName != nil { + s.D.Set("display_name", *v.DisplayName) + } + + if v.ExecutingJobId != nil { + s.D.Set("executing_job_id", *v.ExecutingJobId) + } + + s.D.Set("freeform_tags", v.FreeformTags) + + if v.Id != nil { + s.D.SetId(*v.Id) + } + + s.D.Set("lifecycle_details", v.LifecycleDetails) + + if v.SourceDatabaseConnectionId != nil { + s.D.Set("source_database_connection_id", *v.SourceDatabaseConnectionId) + } + + s.D.Set("state", v.LifecycleState) + + if v.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(v.SystemTags)) + } + + if v.TargetDatabaseConnectionId != nil { + s.D.Set("target_database_connection_id", *v.TargetDatabaseConnectionId) + } + + if v.TimeCreated != nil { + s.D.Set("time_created", v.TimeCreated.String()) + } + + if v.TimeLastMigration != nil { + s.D.Set("time_last_migration", v.TimeLastMigration.String()) + } + + if v.TimeUpdated != nil { + s.D.Set("time_updated", v.TimeUpdated.String()) + } + + s.D.Set("type", v.Type) + + s.D.Set("wait_after", v.WaitAfter) + case oci_database_migration.OracleMigration: + s.D.Set("database_combination", "ORACLE") + + if v.AdvisorSettings != nil { + s.D.Set("advisor_settings", []interface{}{OracleAdvisorSettingsToMap(v.AdvisorSettings)}) + } else { + s.D.Set("advisor_settings", nil) + } + + if v.DataTransferMediumDetails != nil { + dataTransferMediumDetailsArray := []interface{}{} + if dataTransferMediumDetailsMap := OracleDataTransferMediumDetailsToMap(&v.DataTransferMediumDetails); dataTransferMediumDetailsMap != nil { + dataTransferMediumDetailsArray = append(dataTransferMediumDetailsArray, dataTransferMediumDetailsMap) + } + s.D.Set("data_transfer_medium_details", dataTransferMediumDetailsArray) + } else { + s.D.Set("data_transfer_medium_details", nil) + } + + if v.GgsDetails != nil { + s.D.Set("ggs_details", []interface{}{OracleGgsDeploymentDetailsToMap(v.GgsDetails)}) + } else { + s.D.Set("ggs_details", nil) + } + + if v.HubDetails != nil { + s.D.Set("hub_details", []interface{}{GoldenGateHubDetailsToMap(v.HubDetails)}) + } else { + s.D.Set("hub_details", nil) + } + + if v.InitialLoadSettings != nil { + s.D.Set("initial_load_settings", []interface{}{OracleInitialLoadSettingsToMap(v.InitialLoadSettings)}) + } else { + s.D.Set("initial_load_settings", nil) + } + + if v.SourceContainerDatabaseConnectionId != nil { + s.D.Set("source_container_database_connection_id", *v.SourceContainerDatabaseConnectionId) + } + + if v.CompartmentId != nil { + s.D.Set("compartment_id", *v.CompartmentId) + } + + if v.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(v.DefinedTags)) + } + + if v.Description != nil { + s.D.Set("description", *v.Description) + } + + if v.DisplayName != nil { + s.D.Set("display_name", *v.DisplayName) + } + + if v.ExecutingJobId != nil { + s.D.Set("executing_job_id", *v.ExecutingJobId) + } + + s.D.Set("freeform_tags", v.FreeformTags) + + if v.Id != nil { + s.D.SetId(*v.Id) + } + + s.D.Set("lifecycle_details", v.LifecycleDetails) + + if v.SourceDatabaseConnectionId != nil { + s.D.Set("source_database_connection_id", *v.SourceDatabaseConnectionId) + } + + s.D.Set("state", v.LifecycleState) + + if v.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(v.SystemTags)) + } + + if v.TargetDatabaseConnectionId != nil { + s.D.Set("target_database_connection_id", *v.TargetDatabaseConnectionId) + } + + if v.TimeCreated != nil { + s.D.Set("time_created", v.TimeCreated.String()) + } + + if v.TimeLastMigration != nil { + s.D.Set("time_last_migration", v.TimeLastMigration.String()) + } + + if v.TimeUpdated != nil { + s.D.Set("time_updated", v.TimeUpdated.String()) + } + + s.D.Set("type", v.Type) + + s.D.Set("wait_after", v.WaitAfter) + default: + log.Printf("[WARN] Received 'database_combination' of unknown type %v", *s.Res) + return nil + } + return nil +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToAdminCredentials(fieldKeyFormat string) (oci_database_migration.AdminCredentials, error) { + result := oci_database_migration.AdminCredentials{} + + if username, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "username")); ok { + tmp := username.(string) + result.Username = &tmp + } + + return result, nil +} + +func AdminCredentialsToMap(obj *oci_database_migration.AdminCredentials) map[string]interface{} { + result := map[string]interface{}{} + + if obj.Username != nil { + result["username"] = string(*obj.Username) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateAdminCredentials(fieldKeyFormat string) (oci_database_migration.CreateAdminCredentials, error) { + result := oci_database_migration.CreateAdminCredentials{} + + if password, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "password")); ok { + tmp := password.(string) + result.Password = &tmp + } + + if username, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "username")); ok { + tmp := username.(string) + result.Username = &tmp + } + + return result, nil +} + +func CreateAdminCredentialsToMap(obj *oci_database_migration.CreateAdminCredentials) map[string]interface{} { + result := map[string]interface{}{} + + if obj.Password != nil { + result["password"] = string(*obj.Password) + } + + if obj.Username != nil { + result["username"] = string(*obj.Username) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateDataPumpParameters(fieldKeyFormat string) (oci_database_migration.CreateDataPumpParameters, error) { + result := oci_database_migration.CreateDataPumpParameters{} + + if estimate, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "estimate")); ok { + result.Estimate = oci_database_migration.DataPumpEstimateEnum(estimate.(string)) + } + + if excludeParameters, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "exclude_parameters")); ok { + interfaces := excludeParameters.([]interface{}) + tmp := make([]oci_database_migration.DataPumpExcludeParametersEnum, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = oci_database_migration.DataPumpExcludeParametersEnum(interfaces[i].(string)) + } + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "exclude_parameters")) { + result.ExcludeParameters = tmp + } + } + + if exportParallelismDegree, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "export_parallelism_degree")); ok { + tmp := exportParallelismDegree.(int) + result.ExportParallelismDegree = &tmp + } + + if importParallelismDegree, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_parallelism_degree")); ok { + tmp := importParallelismDegree.(int) + result.ImportParallelismDegree = &tmp + } + + if isCluster, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_cluster")); ok { + tmp := isCluster.(bool) + result.IsCluster = &tmp + } + + if tableExistsAction, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "table_exists_action")); ok { + result.TableExistsAction = oci_database_migration.DataPumpTableExistsActionEnum(tableExistsAction.(string)) + } + + return result, nil +} + +func CreateDataPumpParametersToMap(obj *oci_database_migration.CreateDataPumpParameters) map[string]interface{} { + result := map[string]interface{}{} + + result["estimate"] = string(obj.Estimate) + + result["exclude_parameters"] = obj.ExcludeParameters + + if obj.ExportParallelismDegree != nil { + result["export_parallelism_degree"] = int(*obj.ExportParallelismDegree) + } + + if obj.ImportParallelismDegree != nil { + result["import_parallelism_degree"] = int(*obj.ImportParallelismDegree) + } + + if obj.IsCluster != nil { + result["is_cluster"] = bool(*obj.IsCluster) + } + + result["table_exists_action"] = string(obj.TableExistsAction) + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateDirectoryObject(fieldKeyFormat string) (oci_database_migration.CreateDirectoryObject, error) { + result := oci_database_migration.CreateDirectoryObject{} + + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + tmp := name.(string) + result.Name = &tmp + } + + if path, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "path")); ok { + tmp := path.(string) + result.Path = &tmp + } + + return result, nil +} + +func CreateDirectoryObjectToMap(obj *oci_database_migration.CreateDirectoryObject) map[string]interface{} { + result := map[string]interface{}{} + + if obj.Name != nil { + result["name"] = string(*obj.Name) + } + + if obj.Path != nil { + result["path"] = string(*obj.Path) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateExtract(fieldKeyFormat string) (oci_database_migration.CreateExtract, error) { + result := oci_database_migration.CreateExtract{} + + if longTransDuration, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "long_trans_duration")); ok { + tmp := longTransDuration.(int) + result.LongTransDuration = &tmp + } + + if performanceProfile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "performance_profile")); ok { + result.PerformanceProfile = oci_database_migration.ExtractPerformanceProfileEnum(performanceProfile.(string)) + } + + return result, nil +} + +func CreateExtractToMap(obj *oci_database_migration.CreateExtract) map[string]interface{} { + result := map[string]interface{}{} + + if obj.LongTransDuration != nil { + result["long_trans_duration"] = int(*obj.LongTransDuration) + } + + result["performance_profile"] = string(obj.PerformanceProfile) + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateGoldenGateHubDetails(fieldKeyFormat string) (oci_database_migration.CreateGoldenGateHubDetails, error) { + result := oci_database_migration.CreateGoldenGateHubDetails{} + + if acceptableLag, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "acceptable_lag")); ok { + tmp := acceptableLag.(int) + result.AcceptableLag = &tmp + } + + if computeId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compute_id")); ok { + tmp := computeId.(string) + result.ComputeId = &tmp + } + + if extract, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extract")); ok { + if tmpList := extract.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "extract"), 0) + tmp, err := s.mapToCreateExtract(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert extract, encountered error: %v", err) + } + result.Extract = &tmp + } + } + + if keyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "key_id")); ok { + tmp := keyId.(string) + result.KeyId = &tmp + } + + if replicat, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicat")); ok { + if tmpList := replicat.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "replicat"), 0) + tmp, err := s.mapToCreateReplicat(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert replicat, encountered error: %v", err) + } + result.Replicat = &tmp + } + } + + if restAdminCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "rest_admin_credentials")); ok { + if tmpList := restAdminCredentials.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "rest_admin_credentials"), 0) + tmp, err := s.mapToCreateAdminCredentials(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert rest_admin_credentials, encountered error: %v", err) + } + result.RestAdminCredentials = &tmp + } + } + + if url, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "url")); ok { + tmp := url.(string) + result.Url = &tmp + } + + if vaultId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "vault_id")); ok { + tmp := vaultId.(string) + result.VaultId = &tmp + } + + return result, nil +} + +func CreateGoldenGateHubDetailsToMap(obj *oci_database_migration.CreateGoldenGateHubDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.AcceptableLag != nil { + result["acceptable_lag"] = int(*obj.AcceptableLag) + } + + if obj.ComputeId != nil { + result["compute_id"] = string(*obj.ComputeId) + } + + if obj.Extract != nil { + result["extract"] = []interface{}{CreateExtractToMap(obj.Extract)} + } + + if obj.KeyId != nil { + result["key_id"] = string(*obj.KeyId) + } + + if obj.Replicat != nil { + result["replicat"] = []interface{}{CreateReplicatToMap(obj.Replicat)} + } + + if obj.RestAdminCredentials != nil { + result["rest_admin_credentials"] = []interface{}{CreateAdminCredentialsToMap(obj.RestAdminCredentials)} + } + + if obj.Url != nil { + result["url"] = string(*obj.Url) + } + + if obj.VaultId != nil { + result["vault_id"] = string(*obj.VaultId) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateMySqlAdvisorSettings(fieldKeyFormat string) (oci_database_migration.CreateMySqlAdvisorSettings, error) { + result := oci_database_migration.CreateMySqlAdvisorSettings{} + + if isIgnoreErrors, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_ignore_errors")); ok { + tmp := isIgnoreErrors.(bool) + result.IsIgnoreErrors = &tmp + } + + if isSkipAdvisor, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_skip_advisor")); ok { + tmp := isSkipAdvisor.(bool) + result.IsSkipAdvisor = &tmp + } + + return result, nil +} + +func CreateMySqlAdvisorSettingsToMap(obj *oci_database_migration.CreateMySqlAdvisorSettings) map[string]interface{} { + result := map[string]interface{}{} + + if obj.IsIgnoreErrors != nil { + result["is_ignore_errors"] = bool(*obj.IsIgnoreErrors) + } + + if obj.IsSkipAdvisor != nil { + result["is_skip_advisor"] = bool(*obj.IsSkipAdvisor) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateMySqlDataTransferMediumDetails(fieldKeyFormat string) (oci_database_migration.CreateMySqlDataTransferMediumDetails, error) { + var baseObject oci_database_migration.CreateMySqlDataTransferMediumDetails + //discriminator + typeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")) + var type_ string + if ok { + type_ = typeRaw.(string) + } else { + type_ = "" // default value + } + switch strings.ToLower(type_) { + case strings.ToLower("OBJECT_STORAGE"): + details := oci_database_migration.CreateMySqlObjectStorageDataTransferMediumDetails{} + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToCreateObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + baseObject = details + default: + return nil, fmt.Errorf("unknown type '%v' was specified", type_) + } + return baseObject, nil +} + +func CreateMySqlDataTransferMediumDetailsToMap(obj *oci_database_migration.CreateMySqlDataTransferMediumDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_database_migration.CreateMySqlObjectStorageDataTransferMediumDetails: + result["type"] = "OBJECT_STORAGE" + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{CreateObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + default: + log.Printf("[WARN] Received 'type' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateMySqlGgsDeploymentDetails(fieldKeyFormat string) (oci_database_migration.CreateMySqlGgsDeploymentDetails, error) { + result := oci_database_migration.CreateMySqlGgsDeploymentDetails{} + + if acceptableLag, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "acceptable_lag")); ok { + tmp := acceptableLag.(int) + result.AcceptableLag = &tmp + } + + if replicat, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicat")); ok { + if tmpList := replicat.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "replicat"), 0) + tmp, err := s.mapToCreateReplicat(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert replicat, encountered error: %v", err) + } + result.Replicat = &tmp + } + } + + return result, nil +} + +func CreateMySqlGgsDeploymentDetailsToMap(obj *oci_database_migration.CreateMySqlGgsDeploymentDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.AcceptableLag != nil { + result["acceptable_lag"] = int(*obj.AcceptableLag) + } + + if obj.Replicat != nil { + result["replicat"] = []interface{}{CreateReplicatToMap(obj.Replicat)} + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateMySqlInitialLoadSettings(fieldKeyFormat string) (oci_database_migration.CreateMySqlInitialLoadSettings, error) { + result := oci_database_migration.CreateMySqlInitialLoadSettings{} + + if compatibility, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compatibility")); ok { + interfaces := compatibility.([]interface{}) + tmp := make([]oci_database_migration.CompatibilityOptionEnum, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = oci_database_migration.CompatibilityOptionEnum(interfaces[i].(string)) + } + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "compatibility")) { + result.Compatibility = tmp + } + } + + if handleGrantErrors, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "handle_grant_errors")); ok { + result.HandleGrantErrors = oci_database_migration.HandleGrantErrorsEnum(handleGrantErrors.(string)) + } + + if isConsistent, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_consistent")); ok { + tmp := isConsistent.(bool) + result.IsConsistent = &tmp + } + + if isIgnoreExistingObjects, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_ignore_existing_objects")); ok { + tmp := isIgnoreExistingObjects.(bool) + result.IsIgnoreExistingObjects = &tmp + } + + if isTzUtc, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_tz_utc")); ok { + tmp := isTzUtc.(bool) + result.IsTzUtc = &tmp + } + + if jobMode, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_mode")); ok { + result.JobMode = oci_database_migration.JobModeMySqlEnum(jobMode.(string)) + } + + if primaryKeyCompatibility, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "primary_key_compatibility")); ok { + result.PrimaryKeyCompatibility = oci_database_migration.PrimaryKeyCompatibilityEnum(primaryKeyCompatibility.(string)) + } + + return result, nil +} + +func CreateMySqlInitialLoadSettingsToMap(obj *oci_database_migration.CreateMySqlInitialLoadSettings) map[string]interface{} { + result := map[string]interface{}{} + + result["compatibility"] = obj.Compatibility + + result["handle_grant_errors"] = string(obj.HandleGrantErrors) + + if obj.IsConsistent != nil { + result["is_consistent"] = bool(*obj.IsConsistent) + } + + if obj.IsIgnoreExistingObjects != nil { + result["is_ignore_existing_objects"] = bool(*obj.IsIgnoreExistingObjects) + } + + if obj.IsTzUtc != nil { + result["is_tz_utc"] = bool(*obj.IsTzUtc) + } + + result["job_mode"] = string(obj.JobMode) + + result["primary_key_compatibility"] = string(obj.PrimaryKeyCompatibility) + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateObjectStoreBucket(fieldKeyFormat string) (oci_database_migration.CreateObjectStoreBucket, error) { + result := oci_database_migration.CreateObjectStoreBucket{} + + if bucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "bucket")); ok { + tmp := bucket.(string) + result.BucketName = &tmp + } + + if namespace, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "namespace")); ok { + tmp := namespace.(string) + result.NamespaceName = &tmp + } + + return result, nil +} + +func CreateObjectStoreBucketToMap(obj *oci_database_migration.CreateObjectStoreBucket) map[string]interface{} { + result := map[string]interface{}{} + + if obj.BucketName != nil { + result["bucket"] = string(*obj.BucketName) + } + + if obj.NamespaceName != nil { + result["namespace"] = string(*obj.NamespaceName) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateOracleAdvisorSettings(fieldKeyFormat string) (oci_database_migration.CreateOracleAdvisorSettings, error) { + result := oci_database_migration.CreateOracleAdvisorSettings{} + + if isIgnoreErrors, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_ignore_errors")); ok { + tmp := isIgnoreErrors.(bool) + result.IsIgnoreErrors = &tmp + } + + if isSkipAdvisor, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_skip_advisor")); ok { + tmp := isSkipAdvisor.(bool) + result.IsSkipAdvisor = &tmp + } + + return result, nil +} + +func CreateOracleAdvisorSettingsToMap(obj *oci_database_migration.CreateOracleAdvisorSettings) map[string]interface{} { + result := map[string]interface{}{} + + if obj.IsIgnoreErrors != nil { + result["is_ignore_errors"] = bool(*obj.IsIgnoreErrors) + } + + if obj.IsSkipAdvisor != nil { + result["is_skip_advisor"] = bool(*obj.IsSkipAdvisor) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateOracleDataTransferMediumDetails(fieldKeyFormat string) (oci_database_migration.CreateOracleDataTransferMediumDetails, error) { + var baseObject oci_database_migration.CreateOracleDataTransferMediumDetails + //discriminator + typeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")) + var type_ string + if ok { + type_ = typeRaw.(string) + } else { + type_ = "" // default value + } + switch strings.ToLower(type_) { + case strings.ToLower("AWS_S3"): + details := oci_database_migration.CreateOracleAwsS3DataTransferMediumDetails{} + if accessKeyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "access_key_id")); ok { + tmp := accessKeyId.(string) + details.AccessKeyId = &tmp + } + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + tmp := name.(string) + details.Name = &tmp + } + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + if region, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "region")); ok { + tmp := region.(string) + details.Region = &tmp + } + if secretAccessKey, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "secret_access_key")); ok { + tmp := secretAccessKey.(string) + details.SecretAccessKey = &tmp + } + baseObject = details + case strings.ToLower("DBLINK"): + details := oci_database_migration.CreateOracleDbLinkDataTransferMediumDetails{} + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + tmp := name.(string) + details.Name = &tmp + } + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToCreateObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + baseObject = details + case strings.ToLower("NFS"): + details := oci_database_migration.CreateOracleNfsDataTransferMediumDetails{} + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToCreateObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + if sharedStorageMountTargetId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shared_storage_mount_target_id")); ok { + tmp := sharedStorageMountTargetId.(string) + details.SharedStorageMountTargetId = &tmp + } + if source, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source")); ok { + if tmpList := source.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source"), 0) + tmp, err := s.mapToHostDumpTransferDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert source, encountered error: %v", err) + } + details.Source = tmp + } + } + if target, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target")); ok { + if tmpList := target.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "target"), 0) + tmp, err := s.mapToHostDumpTransferDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert target, encountered error: %v", err) + } + details.Target = tmp + } + } + baseObject = details + case strings.ToLower("OBJECT_STORAGE"): + details := oci_database_migration.CreateOracleObjectStorageDataTransferMediumDetails{} + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToCreateObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + if source, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source")); ok { + if tmpList := source.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source"), 0) + tmp, err := s.mapToHostDumpTransferDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert source, encountered error: %v", err) + } + details.Source = tmp + } + } + if target, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target")); ok { + if tmpList := target.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "target"), 0) + tmp, err := s.mapToHostDumpTransferDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert target, encountered error: %v", err) + } + details.Target = tmp + } + } + baseObject = details + default: + return nil, fmt.Errorf("unknown type '%v' was specified", type_) + } + return baseObject, nil +} + +func CreateOracleDataTransferMediumDetailsToMap(obj *oci_database_migration.CreateOracleDataTransferMediumDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_database_migration.CreateOracleAwsS3DataTransferMediumDetails: + result["type"] = "AWS_S3" + + if v.AccessKeyId != nil { + result["access_key_id"] = string(*v.AccessKeyId) + } + + if v.Name != nil { + result["name"] = string(*v.Name) + } + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{ObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + + if v.Region != nil { + result["region"] = string(*v.Region) + } + + if v.SecretAccessKey != nil { + result["secret_access_key"] = string(*v.SecretAccessKey) + } + case oci_database_migration.CreateOracleDbLinkDataTransferMediumDetails: + result["type"] = "DBLINK" + + if v.Name != nil { + result["name"] = string(*v.Name) + } + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{CreateObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + case oci_database_migration.CreateOracleNfsDataTransferMediumDetails: + result["type"] = "NFS" + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{CreateObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + + if v.SharedStorageMountTargetId != nil { + result["shared_storage_mount_target_id"] = string(*v.SharedStorageMountTargetId) + } + + if v.Source != nil { + sourceArray := []interface{}{} + if sourceMap := HostDumpTransferDetailsToMap(&v.Source); sourceMap != nil { + sourceArray = append(sourceArray, sourceMap) + } + result["source"] = sourceArray + } + + if v.Target != nil { + targetArray := []interface{}{} + if targetMap := HostDumpTransferDetailsToMap(&v.Target); targetMap != nil { + targetArray = append(targetArray, targetMap) + } + result["target"] = targetArray + } + case oci_database_migration.CreateOracleObjectStorageDataTransferMediumDetails: + result["type"] = "OBJECT_STORAGE" + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{CreateObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + + if v.Source != nil { + sourceArray := []interface{}{} + if sourceMap := HostDumpTransferDetailsToMap(&v.Source); sourceMap != nil { + sourceArray = append(sourceArray, sourceMap) + } + result["source"] = sourceArray + } + + if v.Target != nil { + targetArray := []interface{}{} + if targetMap := HostDumpTransferDetailsToMap(&v.Target); targetMap != nil { + targetArray = append(targetArray, targetMap) + } + result["target"] = targetArray + } + default: + log.Printf("[WARN] Received 'type' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateOracleGgsDeploymentDetails(fieldKeyFormat string) (oci_database_migration.CreateOracleGgsDeploymentDetails, error) { + result := oci_database_migration.CreateOracleGgsDeploymentDetails{} + + if acceptableLag, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "acceptable_lag")); ok { + tmp := acceptableLag.(int) + result.AcceptableLag = &tmp + } + + if extract, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extract")); ok { + if tmpList := extract.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "extract"), 0) + tmp, err := s.mapToCreateExtract(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert extract, encountered error: %v", err) + } + result.Extract = &tmp + } + } + + if replicat, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicat")); ok { + if tmpList := replicat.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "replicat"), 0) + tmp, err := s.mapToCreateReplicat(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert replicat, encountered error: %v", err) + } + result.Replicat = &tmp + } + } + + return result, nil +} + +func CreateOracleGgsDeploymentDetailsToMap(obj *oci_database_migration.CreateOracleGgsDeploymentDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.AcceptableLag != nil { + result["acceptable_lag"] = int(*obj.AcceptableLag) + } + + if obj.Extract != nil { + result["extract"] = []interface{}{CreateExtractToMap(obj.Extract)} + } + + if obj.Replicat != nil { + result["replicat"] = []interface{}{CreateReplicatToMap(obj.Replicat)} + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateOracleInitialLoadSettings(fieldKeyFormat string) (oci_database_migration.CreateOracleInitialLoadSettings, error) { + result := oci_database_migration.CreateOracleInitialLoadSettings{} + + if dataPumpParameters, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "data_pump_parameters")); ok { + if tmpList := dataPumpParameters.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "data_pump_parameters"), 0) + tmp, err := s.mapToCreateDataPumpParameters(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert data_pump_parameters, encountered error: %v", err) + } + result.DataPumpParameters = &tmp + } + } + + if exportDirectoryObject, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "export_directory_object")); ok { + if tmpList := exportDirectoryObject.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "export_directory_object"), 0) + tmp, err := s.mapToCreateDirectoryObject(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert export_directory_object, encountered error: %v", err) + } + result.ExportDirectoryObject = &tmp + } + } + + if importDirectoryObject, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_directory_object")); ok { + if tmpList := importDirectoryObject.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "import_directory_object"), 0) + tmp, err := s.mapToCreateDirectoryObject(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert import_directory_object, encountered error: %v", err) + } + result.ImportDirectoryObject = &tmp + } + } + + if jobMode, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_mode")); ok { + result.JobMode = oci_database_migration.JobModeOracleEnum(jobMode.(string)) + } + + if metadataRemaps, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "metadata_remaps")); ok { + interfaces := metadataRemaps.([]interface{}) + tmp := make([]oci_database_migration.MetadataRemap, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "metadata_remaps"), stateDataIndex) + converted, err := s.mapToMetadataRemap(fieldKeyFormatNextLevel) + if err != nil { + return result, err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "metadata_remaps")) { + result.MetadataRemaps = tmp + } + } + + if tablespaceDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "tablespace_details")); ok { + if tmpList := tablespaceDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "tablespace_details"), 0) + tmp, err := s.mapToCreateTargetTypeTablespaceDetails(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert tablespace_details, encountered error: %v", err) + } + result.TablespaceDetails = tmp + } + } + + return result, nil +} + +func CreateOracleInitialLoadSettingsToMap(obj *oci_database_migration.CreateOracleInitialLoadSettings) map[string]interface{} { + result := map[string]interface{}{} + + if obj.DataPumpParameters != nil { + result["data_pump_parameters"] = []interface{}{CreateDataPumpParametersToMap(obj.DataPumpParameters)} + } + + if obj.ExportDirectoryObject != nil { + result["export_directory_object"] = []interface{}{CreateDirectoryObjectToMap(obj.ExportDirectoryObject)} + } + + if obj.ImportDirectoryObject != nil { + result["import_directory_object"] = []interface{}{CreateDirectoryObjectToMap(obj.ImportDirectoryObject)} + } + + result["job_mode"] = string(obj.JobMode) + + metadataRemaps := []interface{}{} + for _, item := range obj.MetadataRemaps { + metadataRemaps = append(metadataRemaps, MetadataRemapToMap(item)) + } + result["metadata_remaps"] = metadataRemaps + + if obj.TablespaceDetails != nil { + tablespaceDetailsArray := []interface{}{} + if tablespaceDetailsMap := CreateTargetTypeTablespaceDetailsToMap(&obj.TablespaceDetails); tablespaceDetailsMap != nil { + tablespaceDetailsArray = append(tablespaceDetailsArray, tablespaceDetailsMap) + } + result["tablespace_details"] = tablespaceDetailsArray + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateReplicat(fieldKeyFormat string) (oci_database_migration.CreateReplicat, error) { + result := oci_database_migration.CreateReplicat{} + + if performanceProfile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "performance_profile")); ok { + result.PerformanceProfile = oci_database_migration.ReplicatPerformanceProfileEnum(performanceProfile.(string)) + } + + return result, nil +} + +func CreateReplicatToMap(obj *oci_database_migration.CreateReplicat) map[string]interface{} { + result := map[string]interface{}{} + + result["performance_profile"] = string(obj.PerformanceProfile) + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToCreateTargetTypeTablespaceDetails(fieldKeyFormat string) (oci_database_migration.CreateTargetTypeTablespaceDetails, error) { + var baseObject oci_database_migration.CreateTargetTypeTablespaceDetails + //discriminator + targetTypeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target_type")) + var targetType string + if ok { + targetType = targetTypeRaw.(string) + } else { + targetType = "" // default value + } + switch strings.ToLower(targetType) { + case strings.ToLower("ADB_D_AUTOCREATE"): + details := oci_database_migration.CreateAdbDedicatedAutoCreateTablespaceDetails{} + if blockSizeInKBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_size_in_kbs")); ok { + details.BlockSizeInKBs = oci_database_migration.DataPumpTablespaceBlockSizesInKbEnum(blockSizeInKBs.(string)) + } + if extendSizeInMBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extend_size_in_mbs")); ok { + tmp := extendSizeInMBs.(int) + details.ExtendSizeInMBs = &tmp + } + if isAutoCreate, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_auto_create")); ok { + tmp := isAutoCreate.(bool) + details.IsAutoCreate = &tmp + } + if isBigFile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_big_file")); ok { + tmp := isBigFile.(bool) + details.IsBigFile = &tmp + } + baseObject = details + case strings.ToLower("ADB_D_REMAP"): + details := oci_database_migration.CreateAdbDedicatedRemapTargetTablespaceDetails{} + if remapTarget, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "remap_target")); ok { + tmp := remapTarget.(string) + details.RemapTarget = &tmp + } + baseObject = details + case strings.ToLower("ADB_S_REMAP"): + details := oci_database_migration.CreateAdbServerlesTablespaceDetails{} + baseObject = details + case strings.ToLower("NON_ADB_AUTOCREATE"): + details := oci_database_migration.CreateNonAdbAutoCreateTablespaceDetails{} + if blockSizeInKBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_size_in_kbs")); ok { + details.BlockSizeInKBs = oci_database_migration.DataPumpTablespaceBlockSizesInKbEnum(blockSizeInKBs.(string)) + } + if extendSizeInMBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extend_size_in_mbs")); ok { + tmp := extendSizeInMBs.(int) + details.ExtendSizeInMBs = &tmp + } + if isAutoCreate, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_auto_create")); ok { + tmp := isAutoCreate.(bool) + details.IsAutoCreate = &tmp + } + if isBigFile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_big_file")); ok { + tmp := isBigFile.(bool) + details.IsBigFile = &tmp + } + baseObject = details + case strings.ToLower("NON_ADB_REMAP"): + details := oci_database_migration.CreateNonAdbRemapTablespaceDetails{} + if remapTarget, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "remap_target")); ok { + tmp := remapTarget.(string) + details.RemapTarget = &tmp + } + baseObject = details + default: + return nil, fmt.Errorf("unknown target_type '%v' was specified", targetType) + } + return baseObject, nil +} + +func CreateTargetTypeTablespaceDetailsToMap(obj *oci_database_migration.CreateTargetTypeTablespaceDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_database_migration.CreateAdbDedicatedAutoCreateTablespaceDetails: //CreateADBDedicatedAutoCreateTablespaceDetails + result["target_type"] = "ADB_D_AUTOCREATE" + + result["block_size_in_kbs"] = string(v.BlockSizeInKBs) + + if v.ExtendSizeInMBs != nil { + result["extend_size_in_mbs"] = int(*v.ExtendSizeInMBs) + } + + result["is_auto_create"] = bool(*v.IsAutoCreate) + + if v.IsBigFile != nil { + result["is_big_file"] = bool(*v.IsBigFile) + } + case oci_database_migration.CreateAdbDedicatedRemapTargetTablespaceDetails: + result["target_type"] = "ADB_D_REMAP" + + if v.RemapTarget != nil { + result["remap_target"] = string(*v.RemapTarget) + } + case oci_database_migration.CreateAdbServerlesTablespaceDetails: + result["target_type"] = "ADB_S_REMAP" + case oci_database_migration.CreateNonAdbAutoCreateTablespaceDetails: + result["target_type"] = "NON_ADB_AUTOCREATE" + + result["block_size_in_kbs"] = string(v.BlockSizeInKBs) + + if v.ExtendSizeInMBs != nil { + result["extend_size_in_mbs"] = int(*v.ExtendSizeInMBs) + } + + result["is_auto_create"] = bool(*v.IsAutoCreate) + + if v.IsBigFile != nil { + result["is_big_file"] = bool(*v.IsBigFile) + } + case oci_database_migration.CreateNonAdbRemapTablespaceDetails: + result["target_type"] = "NON_ADB_REMAP" + + if v.RemapTarget != nil { + result["remap_target"] = string(*v.RemapTarget) + } + default: + log.Printf("[WARN] Received 'target_type' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToDataPumpParameters(fieldKeyFormat string) (oci_database_migration.DataPumpParameters, error) { + result := oci_database_migration.DataPumpParameters{} + + if estimate, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "estimate")); ok { + result.Estimate = oci_database_migration.DataPumpEstimateEnum(estimate.(string)) + } + + if excludeParameters, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "exclude_parameters")); ok { + interfaces := excludeParameters.([]interface{}) + tmp := make([]oci_database_migration.DataPumpExcludeParametersEnum, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = oci_database_migration.DataPumpExcludeParametersEnum(interfaces[i].(string)) + } + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "exclude_parameters")) { + result.ExcludeParameters = tmp + } + } + + if exportParallelismDegree, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "export_parallelism_degree")); ok { + tmp := exportParallelismDegree.(int) + result.ExportParallelismDegree = &tmp + } + + if importParallelismDegree, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_parallelism_degree")); ok { + tmp := importParallelismDegree.(int) + result.ImportParallelismDegree = &tmp + } + + if isCluster, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_cluster")); ok { + tmp := isCluster.(bool) + result.IsCluster = &tmp + } + + if tableExistsAction, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "table_exists_action")); ok { + result.TableExistsAction = oci_database_migration.DataPumpTableExistsActionEnum(tableExistsAction.(string)) + } + + return result, nil +} + +func DataPumpParametersToMap(obj *oci_database_migration.DataPumpParameters) map[string]interface{} { + result := map[string]interface{}{} + + result["estimate"] = string(obj.Estimate) + + result["exclude_parameters"] = obj.ExcludeParameters + + if obj.ExportParallelismDegree != nil { + result["export_parallelism_degree"] = int(*obj.ExportParallelismDegree) + } + + if obj.ImportParallelismDegree != nil { + result["import_parallelism_degree"] = int(*obj.ImportParallelismDegree) + } + + if obj.IsCluster != nil { + result["is_cluster"] = bool(*obj.IsCluster) + } + + result["table_exists_action"] = string(obj.TableExistsAction) + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToDirectoryObject(fieldKeyFormat string) (oci_database_migration.DirectoryObject, error) { + result := oci_database_migration.DirectoryObject{} + + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + tmp := name.(string) + result.Name = &tmp + } + + if path, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "path")); ok { + tmp := path.(string) + result.Path = &tmp + } + + return result, nil +} + +func DirectoryObjectToMap(obj *oci_database_migration.DirectoryObject) map[string]interface{} { + result := map[string]interface{}{} + + if obj.Name != nil { + result["name"] = string(*obj.Name) + } + + if obj.Path != nil { + result["path"] = string(*obj.Path) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToExtract(fieldKeyFormat string) (oci_database_migration.Extract, error) { + result := oci_database_migration.Extract{} + + if longTransDuration, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "long_trans_duration")); ok { + tmp := longTransDuration.(int) + result.LongTransDuration = &tmp + } + + if performanceProfile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "performance_profile")); ok { + result.PerformanceProfile = oci_database_migration.ExtractPerformanceProfileEnum(performanceProfile.(string)) + } + + return result, nil +} + +func ExtractToMap(obj *oci_database_migration.Extract) map[string]interface{} { + result := map[string]interface{}{} + + if obj.LongTransDuration != nil { + result["long_trans_duration"] = int(*obj.LongTransDuration) + } + + result["performance_profile"] = string(obj.PerformanceProfile) + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToGgsDeployment(fieldKeyFormat string) (oci_database_migration.GgsDeployment, error) { + result := oci_database_migration.GgsDeployment{} + + if deploymentId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "deployment_id")); ok { + tmp := deploymentId.(string) + result.DeploymentId = &tmp + } + + if ggsAdminCredentialsSecretId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "ggs_admin_credentials_secret_id")); ok { + tmp := ggsAdminCredentialsSecretId.(string) + result.GgsAdminCredentialsSecretId = &tmp + } + + return result, nil +} + +func GgsDeploymentToMap(obj *oci_database_migration.GgsDeployment) map[string]interface{} { + result := map[string]interface{}{} + + if obj.DeploymentId != nil { + result["deployment_id"] = string(*obj.DeploymentId) + } + + if obj.GgsAdminCredentialsSecretId != nil { + result["ggs_admin_credentials_secret_id"] = string(*obj.GgsAdminCredentialsSecretId) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToGoldenGateHubDetails(fieldKeyFormat string) (oci_database_migration.GoldenGateHubDetails, error) { + result := oci_database_migration.GoldenGateHubDetails{} + + if acceptableLag, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "acceptable_lag")); ok { + tmp := acceptableLag.(int) + result.AcceptableLag = &tmp + } + + if computeId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compute_id")); ok { + tmp := computeId.(string) + result.ComputeId = &tmp + } + + if extract, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extract")); ok { + if tmpList := extract.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "extract"), 0) + tmp, err := s.mapToExtract(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert extract, encountered error: %v", err) + } + result.Extract = &tmp + } + } + + if keyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "key_id")); ok { + tmp := keyId.(string) + result.KeyId = &tmp + } + + if replicat, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicat")); ok { + if tmpList := replicat.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "replicat"), 0) + tmp, err := s.mapToReplicat(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert replicat, encountered error: %v", err) + } + result.Replicat = &tmp + } + } + + if restAdminCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "rest_admin_credentials")); ok { + if tmpList := restAdminCredentials.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "rest_admin_credentials"), 0) + tmp, err := s.mapToAdminCredentials(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert rest_admin_credentials, encountered error: %v", err) + } + result.RestAdminCredentials = &tmp + } + } + + if url, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "url")); ok { + tmp := url.(string) + result.Url = &tmp + } + + if vaultId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "vault_id")); ok { + tmp := vaultId.(string) + result.VaultId = &tmp + } + + return result, nil +} + +func GoldenGateHubDetailsToMap(obj *oci_database_migration.GoldenGateHubDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.AcceptableLag != nil { + result["acceptable_lag"] = int(*obj.AcceptableLag) + } + + if obj.ComputeId != nil { + result["compute_id"] = string(*obj.ComputeId) + } + + if obj.Extract != nil { + result["extract"] = []interface{}{ExtractToMap(obj.Extract)} + } + + if obj.KeyId != nil { + result["key_id"] = string(*obj.KeyId) + } + + if obj.Replicat != nil { + result["replicat"] = []interface{}{ReplicatToMap(obj.Replicat)} + } + + if obj.RestAdminCredentials != nil { + result["rest_admin_credentials"] = []interface{}{AdminCredentialsToMap(obj.RestAdminCredentials)} + } + + if obj.Url != nil { + result["url"] = string(*obj.Url) + } + + if obj.VaultId != nil { + result["vault_id"] = string(*obj.VaultId) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToHostDumpTransferDetails(fieldKeyFormat string) (oci_database_migration.HostDumpTransferDetails, error) { + var baseObject oci_database_migration.HostDumpTransferDetails + //discriminator + kindRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "kind")) + var kind string + if ok { + kind = kindRaw.(string) + } else { + kind = "" // default value + } + switch strings.ToLower(kind) { + case strings.ToLower("CURL"): + details := oci_database_migration.CurlTransferDetails{} + if walletLocation, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "wallet_location")); ok { + tmp := walletLocation.(string) + details.WalletLocation = &tmp + } + baseObject = details + case strings.ToLower("OCI_CLI"): + details := oci_database_migration.OciCliDumpTransferDetails{} + if ociHome, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "oci_home")); ok { + tmp := ociHome.(string) + details.OciHome = &tmp + } + if walletLocation, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "wallet_location")); ok { + tmp := walletLocation.(string) + details.WalletLocation = &tmp + } + baseObject = details + default: + return nil, fmt.Errorf("unknown kind '%v' was specified", kind) + } + return baseObject, nil +} + +func HostDumpTransferDetailsToMap(obj *oci_database_migration.HostDumpTransferDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_database_migration.CurlTransferDetails: + result["kind"] = "CURL" + case oci_database_migration.OciCliDumpTransferDetails: + result["kind"] = "OCI_CLI" + + if v.OciHome != nil { + result["oci_home"] = string(*v.OciHome) + } + default: + log.Printf("[WARN] Received 'kind' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToMetadataRemap(fieldKeyFormat string) (oci_database_migration.MetadataRemap, error) { + result := oci_database_migration.MetadataRemap{} + + if newValue, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "new_value")); ok { + tmp := newValue.(string) + result.NewValue = &tmp + } + + if oldValue, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "old_value")); ok { + tmp := oldValue.(string) + result.OldValue = &tmp + } + + if type_, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")); ok { + result.Type = oci_database_migration.MetadataRemapTypeEnum(type_.(string)) + } + + return result, nil +} + +func MetadataRemapToMap(obj oci_database_migration.MetadataRemap) map[string]interface{} { + result := map[string]interface{}{} + + if obj.NewValue != nil { + result["new_value"] = string(*obj.NewValue) + } + + if obj.OldValue != nil { + result["old_value"] = string(*obj.OldValue) + } + + result["type"] = string(obj.Type) + + return result +} + +func MigrationSummaryToMap(obj oci_database_migration.MigrationSummary) map[string]interface{} { + result := map[string]interface{}{} + switch v := (obj).(type) { + case oci_database_migration.MySqlMigrationSummary: + result["database_combination"] = "MYSQL" + case oci_database_migration.OracleMigrationSummary: + result["database_combination"] = "ORACLE" + + if v.SourceContainerDatabaseConnectionId != nil { + result["source_container_database_connection_id"] = string(*v.SourceContainerDatabaseConnectionId) + } + default: + log.Printf("[WARN] Received 'database_combination' of unknown type %v", obj) + return nil + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToMySqlAdvisorSettings(fieldKeyFormat string) (oci_database_migration.MySqlAdvisorSettings, error) { + result := oci_database_migration.MySqlAdvisorSettings{} + + if isIgnoreErrors, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_ignore_errors")); ok { + tmp := isIgnoreErrors.(bool) + result.IsIgnoreErrors = &tmp + } + + if isSkipAdvisor, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_skip_advisor")); ok { + tmp := isSkipAdvisor.(bool) + result.IsSkipAdvisor = &tmp + } + + return result, nil +} + +func MySqlAdvisorSettingsToMap(obj *oci_database_migration.MySqlAdvisorSettings) map[string]interface{} { + result := map[string]interface{}{} + + if obj.IsIgnoreErrors != nil { + result["is_ignore_errors"] = bool(*obj.IsIgnoreErrors) + } + + if obj.IsSkipAdvisor != nil { + result["is_skip_advisor"] = bool(*obj.IsSkipAdvisor) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToMySqlDataTransferMediumDetails(fieldKeyFormat string) (oci_database_migration.MySqlDataTransferMediumDetails, error) { + var baseObject oci_database_migration.MySqlDataTransferMediumDetails + //discriminator + typeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")) + var type_ string + if ok { + type_ = typeRaw.(string) + } else { + type_ = "" // default value + } + switch strings.ToLower(type_) { + case strings.ToLower("OBJECT_STORAGE"): + details := oci_database_migration.MySqlObjectStorageDataTransferMediumDetails{} + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + baseObject = details + default: + return nil, fmt.Errorf("unknown type '%v' was specified", type_) + } + return baseObject, nil +} + +func MySqlDataTransferMediumDetailsToMap(obj *oci_database_migration.MySqlDataTransferMediumDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_database_migration.MySqlObjectStorageDataTransferMediumDetails: + result["type"] = "OBJECT_STORAGE" + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{ObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + default: + log.Printf("[WARN] Received 'type' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToMySqlDatabaseObject(fieldKeyFormat string) (oci_database_migration.MySqlDatabaseObject, error) { + result := oci_database_migration.MySqlDatabaseObject{} + + if object, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object")); ok { + tmp := object.(string) + result.ObjectName = &tmp + } + + if schema, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "schema")); ok { + tmp := schema.(string) + result.Schema = &tmp + } + + if type_, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")); ok { + tmp := type_.(string) + result.Type = &tmp + } + + return result, nil +} + +func MySqlDatabaseObjectToMap(obj oci_database_migration.MySqlDatabaseObject) map[string]interface{} { + result := map[string]interface{}{} + + if obj.ObjectName != nil { + result["object"] = string(*obj.ObjectName) + } + + if obj.Schema != nil { + result["schema"] = string(*obj.Schema) + } + + if obj.Type != nil { + result["type"] = string(*obj.Type) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToMySqlGgsDeploymentDetails(fieldKeyFormat string) (oci_database_migration.MySqlGgsDeploymentDetails, error) { + result := oci_database_migration.MySqlGgsDeploymentDetails{} + + if acceptableLag, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "acceptable_lag")); ok { + tmp := acceptableLag.(int) + result.AcceptableLag = &tmp + } + + if ggsDeployment, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "ggs_deployment")); ok { + if tmpList := ggsDeployment.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "ggs_deployment"), 0) + tmp, err := s.mapToGgsDeployment(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert ggs_deployment, encountered error: %v", err) + } + result.GgsDeployment = &tmp + } + } + + if replicat, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicat")); ok { + if tmpList := replicat.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "replicat"), 0) + tmp, err := s.mapToReplicat(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert replicat, encountered error: %v", err) + } + result.Replicat = &tmp + } + } + + return result, nil +} + +func MySqlGgsDeploymentDetailsToMap(obj *oci_database_migration.MySqlGgsDeploymentDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.AcceptableLag != nil { + result["acceptable_lag"] = int(*obj.AcceptableLag) + } + + if obj.GgsDeployment != nil { + result["ggs_deployment"] = []interface{}{GgsDeploymentToMap(obj.GgsDeployment)} + } + + if obj.Replicat != nil { + result["replicat"] = []interface{}{ReplicatToMap(obj.Replicat)} + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToMySqlInitialLoadSettings(fieldKeyFormat string) (oci_database_migration.MySqlInitialLoadSettings, error) { + result := oci_database_migration.MySqlInitialLoadSettings{} + + if compatibility, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compatibility")); ok { + interfaces := compatibility.([]interface{}) + tmp := make([]oci_database_migration.CompatibilityOptionEnum, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = oci_database_migration.CompatibilityOptionEnum(interfaces[i].(string)) + } + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "compatibility")) { + result.Compatibility = tmp + } + } + + if handleGrantErrors, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "handle_grant_errors")); ok { + result.HandleGrantErrors = oci_database_migration.HandleGrantErrorsEnum(handleGrantErrors.(string)) + } + + if isConsistent, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_consistent")); ok { + tmp := isConsistent.(bool) + result.IsConsistent = &tmp + } + + if isIgnoreExistingObjects, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_ignore_existing_objects")); ok { + tmp := isIgnoreExistingObjects.(bool) + result.IsIgnoreExistingObjects = &tmp + } + + if isTzUtc, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_tz_utc")); ok { + tmp := isTzUtc.(bool) + result.IsTzUtc = &tmp + } + + if jobMode, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_mode")); ok { + result.JobMode = oci_database_migration.JobModeMySqlEnum(jobMode.(string)) + } + + if primaryKeyCompatibility, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "primary_key_compatibility")); ok { + result.PrimaryKeyCompatibility = oci_database_migration.PrimaryKeyCompatibilityEnum(primaryKeyCompatibility.(string)) + } + + return result, nil +} + +func MySqlInitialLoadSettingsToMap(obj *oci_database_migration.MySqlInitialLoadSettings) map[string]interface{} { + result := map[string]interface{}{} + + result["compatibility"] = obj.Compatibility + + result["handle_grant_errors"] = string(obj.HandleGrantErrors) + + if obj.IsConsistent != nil { + result["is_consistent"] = bool(*obj.IsConsistent) + } + + if obj.IsIgnoreExistingObjects != nil { + result["is_ignore_existing_objects"] = bool(*obj.IsIgnoreExistingObjects) + } + + if obj.IsTzUtc != nil { + result["is_tz_utc"] = bool(*obj.IsTzUtc) + } + + result["job_mode"] = string(obj.JobMode) + + result["primary_key_compatibility"] = string(obj.PrimaryKeyCompatibility) + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToObjectStoreBucket(fieldKeyFormat string) (oci_database_migration.ObjectStoreBucket, error) { + result := oci_database_migration.ObjectStoreBucket{} + + if bucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "bucket")); ok { + tmp := bucket.(string) + result.BucketName = &tmp + } + + if namespace, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "namespace")); ok { + tmp := namespace.(string) + result.NamespaceName = &tmp + } + + return result, nil +} + +func ObjectStoreBucketToMap(obj *oci_database_migration.ObjectStoreBucket) map[string]interface{} { + result := map[string]interface{}{} + + if obj.BucketName != nil { + result["bucket"] = string(*obj.BucketName) + } + + if obj.NamespaceName != nil { + result["namespace"] = string(*obj.NamespaceName) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToOracleAdvisorSettings(fieldKeyFormat string) (oci_database_migration.OracleAdvisorSettings, error) { + result := oci_database_migration.OracleAdvisorSettings{} + + if isIgnoreErrors, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_ignore_errors")); ok { + tmp := isIgnoreErrors.(bool) + result.IsIgnoreErrors = &tmp + } + + if isSkipAdvisor, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_skip_advisor")); ok { + tmp := isSkipAdvisor.(bool) + result.IsSkipAdvisor = &tmp + } + + return result, nil +} + +func OracleAdvisorSettingsToMap(obj *oci_database_migration.OracleAdvisorSettings) map[string]interface{} { + result := map[string]interface{}{} + + if obj.IsIgnoreErrors != nil { + result["is_ignore_errors"] = bool(*obj.IsIgnoreErrors) + } + + if obj.IsSkipAdvisor != nil { + result["is_skip_advisor"] = bool(*obj.IsSkipAdvisor) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToOracleDataTransferMediumDetails(fieldKeyFormat string) (oci_database_migration.OracleDataTransferMediumDetails, error) { + var baseObject oci_database_migration.OracleDataTransferMediumDetails + //discriminator + typeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")) + var type_ string + if ok { + type_ = typeRaw.(string) + } else { + type_ = "" // default value + } + switch strings.ToLower(type_) { + case strings.ToLower("AWS_S3"): + details := oci_database_migration.OracleAwsS3DataTransferMediumDetails{} + if accessKeyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "access_key_id")); ok { + tmp := accessKeyId.(string) + details.AccessKeyId = &tmp + } + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + tmp := name.(string) + details.Name = &tmp + } + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + if region, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "region")); ok { + tmp := region.(string) + details.Region = &tmp + } + if secretAccessKey, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "secret_access_key")); ok { + tmp := secretAccessKey.(string) + details.SecretAccessKey = &tmp + } + baseObject = details + case strings.ToLower("DBLINK"): + details := oci_database_migration.OracleDbLinkDataTransferMediumDetails{} + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + tmp := name.(string) + details.Name = &tmp + } + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + baseObject = details + case strings.ToLower("NFS"): + details := oci_database_migration.OracleNfsDataTransferMediumDetails{} + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + if sharedStorageMountTargetId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shared_storage_mount_target_id")); ok { + tmp := sharedStorageMountTargetId.(string) + details.SharedStorageMountTargetId = &tmp + } + if source, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source")); ok { + if tmpList := source.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source"), 0) + tmp, err := s.mapToHostDumpTransferDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert source, encountered error: %v", err) + } + details.Source = tmp + } + } + if target, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target")); ok { + if tmpList := target.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "target"), 0) + tmp, err := s.mapToHostDumpTransferDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert target, encountered error: %v", err) + } + details.Target = tmp + } + } + baseObject = details + case strings.ToLower("OBJECT_STORAGE"): + details := oci_database_migration.OracleObjectStorageDataTransferMediumDetails{} + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + if source, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source")); ok { + if tmpList := source.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source"), 0) + tmp, err := s.mapToHostDumpTransferDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert source, encountered error: %v", err) + } + details.Source = tmp + } + } + if target, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target")); ok { + if tmpList := target.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "target"), 0) + tmp, err := s.mapToHostDumpTransferDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert target, encountered error: %v", err) + } + details.Target = tmp + } + } + baseObject = details + default: + return nil, fmt.Errorf("unknown type '%v' was specified", type_) + } + return baseObject, nil +} + +func OracleDataTransferMediumDetailsToMap(obj *oci_database_migration.OracleDataTransferMediumDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_database_migration.OracleAwsS3DataTransferMediumDetails: + result["type"] = "AWS_S3" + + if v.AccessKeyId != nil { + result["access_key_id"] = string(*v.AccessKeyId) + } + + if v.Name != nil { + result["name"] = string(*v.Name) + } + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{ObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + + if v.Region != nil { + result["region"] = string(*v.Region) + } + + if v.SecretAccessKey != nil { + result["secret_access_key"] = string(*v.SecretAccessKey) + } + case oci_database_migration.OracleDbLinkDataTransferMediumDetails: + result["type"] = "DBLINK" + + if v.Name != nil { + result["name"] = string(*v.Name) + } + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{ObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + case oci_database_migration.OracleNfsDataTransferMediumDetails: + result["type"] = "NFS" + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{ObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + + if v.SharedStorageMountTargetId != nil { + result["shared_storage_mount_target_id"] = string(*v.SharedStorageMountTargetId) + } + + if v.Source != nil { + sourceArray := []interface{}{} + if sourceMap := HostDumpTransferDetailsToMap(&v.Source); sourceMap != nil { + sourceArray = append(sourceArray, sourceMap) + } + result["source"] = sourceArray + } + + if v.Target != nil { + targetArray := []interface{}{} + if targetMap := HostDumpTransferDetailsToMap(&v.Target); targetMap != nil { + targetArray = append(targetArray, targetMap) + } + result["target"] = targetArray + } + case oci_database_migration.OracleObjectStorageDataTransferMediumDetails: + result["type"] = "OBJECT_STORAGE" + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{ObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + + if v.Source != nil { + sourceArray := []interface{}{} + if sourceMap := HostDumpTransferDetailsToMap(&v.Source); sourceMap != nil { + sourceArray = append(sourceArray, sourceMap) + } + result["source"] = sourceArray + } + + if v.Target != nil { + targetArray := []interface{}{} + if targetMap := HostDumpTransferDetailsToMap(&v.Target); targetMap != nil { + targetArray = append(targetArray, targetMap) + } + result["target"] = targetArray + } + default: + log.Printf("[WARN] Received 'type' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToOracleDatabaseObject(fieldKeyFormat string) (oci_database_migration.OracleDatabaseObject, error) { + result := oci_database_migration.OracleDatabaseObject{} + + if isOmitExcludedTableFromReplication, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_omit_excluded_table_from_replication")); ok { + tmp := isOmitExcludedTableFromReplication.(bool) + result.IsOmitExcludedTableFromReplication = &tmp + } + + if object, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object")); ok { + tmp := object.(string) + result.ObjectName = &tmp + } + + if owner, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "owner")); ok { + tmp := owner.(string) + result.Owner = &tmp + } + + if type_, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")); ok { + tmp := type_.(string) + result.Type = &tmp + } + + return result, nil +} + +func OracleDatabaseObjectToMap(obj oci_database_migration.OracleDatabaseObject) map[string]interface{} { + result := map[string]interface{}{} + + if obj.IsOmitExcludedTableFromReplication != nil { + result["is_omit_excluded_table_from_replication"] = bool(*obj.IsOmitExcludedTableFromReplication) + } + + if obj.ObjectName != nil { + result["object"] = string(*obj.ObjectName) + } + + if obj.Owner != nil { + result["owner"] = string(*obj.Owner) + } + + if obj.Type != nil { + result["type"] = string(*obj.Type) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToOracleGgsDeploymentDetails(fieldKeyFormat string) (oci_database_migration.OracleGgsDeploymentDetails, error) { + result := oci_database_migration.OracleGgsDeploymentDetails{} + + if acceptableLag, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "acceptable_lag")); ok { + tmp := acceptableLag.(int) + result.AcceptableLag = &tmp + } + + if extract, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extract")); ok { + if tmpList := extract.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "extract"), 0) + tmp, err := s.mapToExtract(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert extract, encountered error: %v", err) + } + result.Extract = &tmp + } + } + + if ggsDeployment, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "ggs_deployment")); ok { + if tmpList := ggsDeployment.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "ggs_deployment"), 0) + tmp, err := s.mapToGgsDeployment(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert ggs_deployment, encountered error: %v", err) + } + result.GgsDeployment = &tmp + } + } + + if replicat, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicat")); ok { + if tmpList := replicat.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "replicat"), 0) + tmp, err := s.mapToReplicat(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert replicat, encountered error: %v", err) + } + result.Replicat = &tmp + } + } + + return result, nil +} + +func OracleGgsDeploymentDetailsToMap(obj *oci_database_migration.OracleGgsDeploymentDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.AcceptableLag != nil { + result["acceptable_lag"] = int(*obj.AcceptableLag) + } + + if obj.Extract != nil { + result["extract"] = []interface{}{ExtractToMap(obj.Extract)} + } + + if obj.GgsDeployment != nil { + result["ggs_deployment"] = []interface{}{GgsDeploymentToMap(obj.GgsDeployment)} + } + + if obj.Replicat != nil { + result["replicat"] = []interface{}{ReplicatToMap(obj.Replicat)} + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToOracleInitialLoadSettings(fieldKeyFormat string) (oci_database_migration.OracleInitialLoadSettings, error) { + result := oci_database_migration.OracleInitialLoadSettings{} + + if dataPumpParameters, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "data_pump_parameters")); ok { + if tmpList := dataPumpParameters.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "data_pump_parameters"), 0) + tmp, err := s.mapToDataPumpParameters(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert data_pump_parameters, encountered error: %v", err) + } + result.DataPumpParameters = &tmp + } + } + + if exportDirectoryObject, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "export_directory_object")); ok { + if tmpList := exportDirectoryObject.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "export_directory_object"), 0) + tmp, err := s.mapToDirectoryObject(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert export_directory_object, encountered error: %v", err) + } + result.ExportDirectoryObject = &tmp + } + } + + if importDirectoryObject, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_directory_object")); ok { + if tmpList := importDirectoryObject.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "import_directory_object"), 0) + tmp, err := s.mapToDirectoryObject(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert import_directory_object, encountered error: %v", err) + } + result.ImportDirectoryObject = &tmp + } + } + + if jobMode, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_mode")); ok { + result.JobMode = oci_database_migration.JobModeOracleEnum(jobMode.(string)) + } + + if metadataRemaps, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "metadata_remaps")); ok { + interfaces := metadataRemaps.([]interface{}) + tmp := make([]oci_database_migration.MetadataRemap, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "metadata_remaps"), stateDataIndex) + converted, err := s.mapToMetadataRemap(fieldKeyFormatNextLevel) + if err != nil { + return result, err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "metadata_remaps")) { + result.MetadataRemaps = tmp + } + } + + if tablespaceDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "tablespace_details")); ok { + if tmpList := tablespaceDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "tablespace_details"), 0) + tmp, err := s.mapToTargetTypeTablespaceDetails(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert tablespace_details, encountered error: %v", err) + } + result.TablespaceDetails = tmp + } + } + + return result, nil +} + +func OracleInitialLoadSettingsToMap(obj *oci_database_migration.OracleInitialLoadSettings) map[string]interface{} { + result := map[string]interface{}{} + + if obj.DataPumpParameters != nil { + result["data_pump_parameters"] = []interface{}{DataPumpParametersToMap(obj.DataPumpParameters)} + } + + if obj.ExportDirectoryObject != nil { + result["export_directory_object"] = []interface{}{DirectoryObjectToMap(obj.ExportDirectoryObject)} + } + + if obj.ImportDirectoryObject != nil { + result["import_directory_object"] = []interface{}{DirectoryObjectToMap(obj.ImportDirectoryObject)} + } + + result["job_mode"] = string(obj.JobMode) + + metadataRemaps := []interface{}{} + for _, item := range obj.MetadataRemaps { + metadataRemaps = append(metadataRemaps, MetadataRemapToMap(item)) + } + result["metadata_remaps"] = metadataRemaps + + if obj.TablespaceDetails != nil { + tablespaceDetailsArray := []interface{}{} + if tablespaceDetailsMap := TargetTypeTablespaceDetailsToMap(&obj.TablespaceDetails); tablespaceDetailsMap != nil { + tablespaceDetailsArray = append(tablespaceDetailsArray, tablespaceDetailsMap) + } + result["tablespace_details"] = tablespaceDetailsArray + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToReplicat(fieldKeyFormat string) (oci_database_migration.Replicat, error) { + result := oci_database_migration.Replicat{} + + if performanceProfile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "performance_profile")); ok { + result.PerformanceProfile = oci_database_migration.ReplicatPerformanceProfileEnum(performanceProfile.(string)) + } + + return result, nil +} + +func ReplicatToMap(obj *oci_database_migration.Replicat) map[string]interface{} { + result := map[string]interface{}{} + + result["performance_profile"] = string(obj.PerformanceProfile) + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToTargetTypeTablespaceDetails(fieldKeyFormat string) (oci_database_migration.TargetTypeTablespaceDetails, error) { + var baseObject oci_database_migration.TargetTypeTablespaceDetails + //discriminator + targetTypeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target_type")) + var targetType string + if ok { + targetType = targetTypeRaw.(string) + } else { + targetType = "" // default value + } + switch strings.ToLower(targetType) { + case strings.ToLower("ADB_D_AUTOCREATE"): + details := oci_database_migration.AdbDedicatedAutoCreateTablespaceDetails{} + if blockSizeInKBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_size_in_kbs")); ok { + details.BlockSizeInKBs = oci_database_migration.DataPumpTablespaceBlockSizesInKbEnum(blockSizeInKBs.(string)) + } + if extendSizeInMBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extend_size_in_mbs")); ok { + tmp := extendSizeInMBs.(int) + details.ExtendSizeInMBs = &tmp + } + if isAutoCreate, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_auto_create")); ok { + tmp := isAutoCreate.(bool) + details.IsAutoCreate = &tmp + } + if isBigFile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_big_file")); ok { + tmp := isBigFile.(bool) + details.IsBigFile = &tmp + } + baseObject = details + case strings.ToLower("ADB_D_REMAP"): + details := oci_database_migration.AdbDedicatedRemapTargetTablespaceDetails{} + if remapTarget, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "remap_target")); ok { + tmp := remapTarget.(string) + details.RemapTarget = &tmp + } + baseObject = details + case strings.ToLower("ADB_S_REMAP"): + details := oci_database_migration.AdbServerlesTablespaceDetails{} + if remapTarget, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "remap_target")); ok { + details.RemapTarget = oci_database_migration.AdbServerlesTablespaceDetailsRemapTargetEnum(remapTarget.(string)) + } + baseObject = details + case strings.ToLower("NON_ADB_AUTOCREATE"): + details := oci_database_migration.NonAdbAutoCreateTablespaceDetails{} + if blockSizeInKBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_size_in_kbs")); ok { + details.BlockSizeInKBs = oci_database_migration.DataPumpTablespaceBlockSizesInKbEnum(blockSizeInKBs.(string)) + } + if extendSizeInMBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extend_size_in_mbs")); ok { + tmp := extendSizeInMBs.(int) + details.ExtendSizeInMBs = &tmp + } + if isAutoCreate, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_auto_create")); ok { + tmp := isAutoCreate.(bool) + details.IsAutoCreate = &tmp + } + if isBigFile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_big_file")); ok { + tmp := isBigFile.(bool) + details.IsBigFile = &tmp + } + baseObject = details + case strings.ToLower("NON_ADB_REMAP"): + details := oci_database_migration.NonAdbRemapTablespaceDetails{} + if remapTarget, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "remap_target")); ok { + tmp := remapTarget.(string) + details.RemapTarget = &tmp + } + baseObject = details + default: + return nil, fmt.Errorf("unknown target_type '%v' was specified", targetType) + } + return baseObject, nil +} + +func TargetTypeTablespaceDetailsToMap(obj *oci_database_migration.TargetTypeTablespaceDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_database_migration.AdbDedicatedAutoCreateTablespaceDetails: + result["target_type"] = "ADB_D_AUTOCREATE" + + result["block_size_in_kbs"] = string(v.BlockSizeInKBs) + + if v.ExtendSizeInMBs != nil { + result["extend_size_in_mbs"] = int(*v.ExtendSizeInMBs) + } + + result["is_auto_create"] = bool(*v.IsAutoCreate) + + if v.IsBigFile != nil { + result["is_big_file"] = bool(*v.IsBigFile) + } + case oci_database_migration.AdbDedicatedRemapTargetTablespaceDetails: + result["target_type"] = "ADB_D_REMAP" + + if v.RemapTarget != nil { + result["remap_target"] = string(*v.RemapTarget) + } + case oci_database_migration.AdbServerlesTablespaceDetails: + result["target_type"] = "ADB_S_REMAP" + + result["remap_target"] = string(v.RemapTarget) + case oci_database_migration.NonAdbAutoCreateTablespaceDetails: + result["target_type"] = "NON_ADB_AUTOCREATE" + + result["block_size_in_kbs"] = string(v.BlockSizeInKBs) + + if v.ExtendSizeInMBs != nil { + result["extend_size_in_mbs"] = int(*v.ExtendSizeInMBs) + } + + result["is_auto_create"] = bool(*v.IsAutoCreate) + + if v.IsBigFile != nil { + result["is_big_file"] = bool(*v.IsBigFile) + } + case oci_database_migration.NonAdbRemapTablespaceDetails: + result["target_type"] = "NON_ADB_REMAP" + + if v.RemapTarget != nil { + result["remap_target"] = string(*v.RemapTarget) + } + default: + log.Printf("[WARN] Received 'target_type' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateAdminCredentials(fieldKeyFormat string) (oci_database_migration.UpdateAdminCredentials, error) { + result := oci_database_migration.UpdateAdminCredentials{} + + if password, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "password")); ok { + tmp := password.(string) + result.Password = &tmp + } + + if username, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "username")); ok { + tmp := username.(string) + result.Username = &tmp + } + + return result, nil +} + +func UpdateAdminCredentialsToMap(obj *oci_database_migration.UpdateAdminCredentials) map[string]interface{} { + result := map[string]interface{}{} + + if obj.Password != nil { + result["password"] = string(*obj.Password) + } + + if obj.Username != nil { + result["username"] = string(*obj.Username) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateDataPumpParameters(fieldKeyFormat string) (oci_database_migration.UpdateDataPumpParameters, error) { + result := oci_database_migration.UpdateDataPumpParameters{} + + if estimate, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "estimate")); ok { + result.Estimate = oci_database_migration.DataPumpEstimateEnum(estimate.(string)) + } + + if excludeParameters, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "exclude_parameters")); ok { + interfaces := excludeParameters.([]interface{}) + tmp := make([]oci_database_migration.DataPumpExcludeParametersEnum, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = oci_database_migration.DataPumpExcludeParametersEnum(interfaces[i].(string)) + } + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "exclude_parameters")) { + result.ExcludeParameters = tmp + } + } + + if exportParallelismDegree, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "export_parallelism_degree")); ok { + tmp := exportParallelismDegree.(int) + result.ExportParallelismDegree = &tmp + } + + if importParallelismDegree, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_parallelism_degree")); ok { + tmp := importParallelismDegree.(int) + result.ImportParallelismDegree = &tmp + } + + if isCluster, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_cluster")); ok { + tmp := isCluster.(bool) + result.IsCluster = &tmp + } + + if tableExistsAction, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "table_exists_action")); ok { + result.TableExistsAction = oci_database_migration.DataPumpTableExistsActionEnum(tableExistsAction.(string)) + } + + return result, nil +} + +func UpdateDataPumpParametersToMap(obj *oci_database_migration.UpdateDataPumpParameters) map[string]interface{} { + result := map[string]interface{}{} + + result["estimate"] = string(obj.Estimate) + + result["exclude_parameters"] = obj.ExcludeParameters + + if obj.ExportParallelismDegree != nil { + result["export_parallelism_degree"] = int(*obj.ExportParallelismDegree) + } + + if obj.ImportParallelismDegree != nil { + result["import_parallelism_degree"] = int(*obj.ImportParallelismDegree) + } + + if obj.IsCluster != nil { + result["is_cluster"] = bool(*obj.IsCluster) + } + + result["table_exists_action"] = string(obj.TableExistsAction) + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateDirectoryObject(fieldKeyFormat string) (oci_database_migration.UpdateDirectoryObject, error) { + result := oci_database_migration.UpdateDirectoryObject{} + + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + tmp := name.(string) + result.Name = &tmp + } + + if path, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "path")); ok { + tmp := path.(string) + result.Path = &tmp + } + + return result, nil +} + +func UpdateDirectoryObjectToMap(obj *oci_database_migration.UpdateDirectoryObject) map[string]interface{} { + result := map[string]interface{}{} + + if obj.Name != nil { + result["name"] = string(*obj.Name) + } + + if obj.Path != nil { + result["path"] = string(*obj.Path) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateExtract(fieldKeyFormat string) (oci_database_migration.UpdateExtract, error) { + result := oci_database_migration.UpdateExtract{} + + if longTransDuration, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "long_trans_duration")); ok { + tmp := longTransDuration.(int) + result.LongTransDuration = &tmp + } + + if performanceProfile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "performance_profile")); ok { + result.PerformanceProfile = oci_database_migration.ExtractPerformanceProfileEnum(performanceProfile.(string)) + } + + return result, nil +} + +func UpdateExtractToMap(obj *oci_database_migration.UpdateExtract) map[string]interface{} { + result := map[string]interface{}{} + + if obj.LongTransDuration != nil { + result["long_trans_duration"] = int(*obj.LongTransDuration) + } + + result["performance_profile"] = string(obj.PerformanceProfile) + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateGoldenGateHubDetails(fieldKeyFormat string) (oci_database_migration.UpdateGoldenGateHubDetails, error) { + result := oci_database_migration.UpdateGoldenGateHubDetails{} + + if acceptableLag, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "acceptable_lag")); ok { + tmp := acceptableLag.(int) + result.AcceptableLag = &tmp + } + + if computeId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compute_id")); ok { + tmp := computeId.(string) + result.ComputeId = &tmp + } + + if extract, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extract")); ok { + if tmpList := extract.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "extract"), 0) + tmp, err := s.mapToUpdateExtract(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert extract, encountered error: %v", err) + } + result.Extract = &tmp + } + } + + if keyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "key_id")); ok { + tmp := keyId.(string) + result.KeyId = &tmp + } + + if replicat, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicat")); ok { + if tmpList := replicat.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "replicat"), 0) + tmp, err := s.mapToUpdateReplicat(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert replicat, encountered error: %v", err) + } + result.Replicat = &tmp + } + } + + if restAdminCredentials, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "rest_admin_credentials")); ok { + if tmpList := restAdminCredentials.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "rest_admin_credentials"), 0) + tmp, err := s.mapToUpdateAdminCredentials(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert rest_admin_credentials, encountered error: %v", err) + } + result.RestAdminCredentials = &tmp + } + } + + if url, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "url")); ok { + tmp := url.(string) + result.Url = &tmp + } + + if vaultId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "vault_id")); ok { + tmp := vaultId.(string) + result.VaultId = &tmp + } + + return result, nil +} + +func UpdateGoldenGateHubDetailsToMap(obj *oci_database_migration.UpdateGoldenGateHubDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.AcceptableLag != nil { + result["acceptable_lag"] = int(*obj.AcceptableLag) + } + + if obj.ComputeId != nil { + result["compute_id"] = string(*obj.ComputeId) + } + + if obj.Extract != nil { + result["extract"] = []interface{}{UpdateExtractToMap(obj.Extract)} + } + + if obj.KeyId != nil { + result["key_id"] = string(*obj.KeyId) + } + + if obj.Replicat != nil { + result["replicat"] = []interface{}{UpdateReplicatToMap(obj.Replicat)} + } + + if obj.RestAdminCredentials != nil { + result["rest_admin_credentials"] = []interface{}{UpdateAdminCredentialsToMap(obj.RestAdminCredentials)} + } + + if obj.Url != nil { + result["url"] = string(*obj.Url) + } + + if obj.VaultId != nil { + result["vault_id"] = string(*obj.VaultId) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateMySqlAdvisorSettings(fieldKeyFormat string) (oci_database_migration.UpdateMySqlAdvisorSettings, error) { + result := oci_database_migration.UpdateMySqlAdvisorSettings{} + + if isIgnoreErrors, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_ignore_errors")); ok { + tmp := isIgnoreErrors.(bool) + result.IsIgnoreErrors = &tmp + } + + if isSkipAdvisor, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_skip_advisor")); ok { + tmp := isSkipAdvisor.(bool) + result.IsSkipAdvisor = &tmp + } + + return result, nil +} + +func UpdateMySqlAdvisorSettingsToMap(obj *oci_database_migration.UpdateMySqlAdvisorSettings) map[string]interface{} { + result := map[string]interface{}{} + + if obj.IsIgnoreErrors != nil { + result["is_ignore_errors"] = bool(*obj.IsIgnoreErrors) + } + + if obj.IsSkipAdvisor != nil { + result["is_skip_advisor"] = bool(*obj.IsSkipAdvisor) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateMySqlDataTransferMediumDetails(fieldKeyFormat string) (oci_database_migration.UpdateMySqlDataTransferMediumDetails, error) { + var baseObject oci_database_migration.UpdateMySqlDataTransferMediumDetails + //discriminator + typeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")) + var type_ string + if ok { + type_ = typeRaw.(string) + } else { + type_ = "" // default value + } + switch strings.ToLower(type_) { + case strings.ToLower("OBJECT_STORAGE"): + details := oci_database_migration.UpdateMySqlObjectStorageDataTransferMediumDetails{} + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToUpdateObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + baseObject = details + default: + return nil, fmt.Errorf("unknown type '%v' was specified", type_) + } + return baseObject, nil +} + +func UpdateMySqlDataTransferMediumDetailsToMap(obj *oci_database_migration.UpdateMySqlDataTransferMediumDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_database_migration.UpdateMySqlObjectStorageDataTransferMediumDetails: + result["type"] = "OBJECT_STORAGE" + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{UpdateObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + default: + log.Printf("[WARN] Received 'type' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateMySqlGgsDeploymentDetails(fieldKeyFormat string) (oci_database_migration.UpdateMySqlGgsDeploymentDetails, error) { + result := oci_database_migration.UpdateMySqlGgsDeploymentDetails{} + + if acceptableLag, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "acceptable_lag")); ok { + tmp := acceptableLag.(int) + result.AcceptableLag = &tmp + } + + if replicat, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicat")); ok { + if tmpList := replicat.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "replicat"), 0) + tmp, err := s.mapToUpdateReplicat(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert replicat, encountered error: %v", err) + } + result.Replicat = &tmp + } + } + + return result, nil +} + +func UpdateMySqlGgsDeploymentDetailsToMap(obj *oci_database_migration.UpdateMySqlGgsDeploymentDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.AcceptableLag != nil { + result["acceptable_lag"] = int(*obj.AcceptableLag) + } + + if obj.Replicat != nil { + result["replicat"] = []interface{}{UpdateReplicatToMap(obj.Replicat)} + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateMySqlInitialLoadSettings(fieldKeyFormat string) (oci_database_migration.UpdateMySqlInitialLoadSettings, error) { + result := oci_database_migration.UpdateMySqlInitialLoadSettings{} + + if compatibility, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compatibility")); ok { + interfaces := compatibility.([]interface{}) + tmp := make([]oci_database_migration.CompatibilityOptionEnum, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = oci_database_migration.CompatibilityOptionEnum(interfaces[i].(string)) + } + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "compatibility")) { + result.Compatibility = tmp + } + } + + if handleGrantErrors, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "handle_grant_errors")); ok { + result.HandleGrantErrors = oci_database_migration.HandleGrantErrorsEnum(handleGrantErrors.(string)) + } + + if isConsistent, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_consistent")); ok { + tmp := isConsistent.(bool) + result.IsConsistent = &tmp + } + + if isIgnoreExistingObjects, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_ignore_existing_objects")); ok { + tmp := isIgnoreExistingObjects.(bool) + result.IsIgnoreExistingObjects = &tmp + } + + if isTzUtc, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_tz_utc")); ok { + tmp := isTzUtc.(bool) + result.IsTzUtc = &tmp + } + + if jobMode, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_mode")); ok { + result.JobMode = oci_database_migration.JobModeMySqlEnum(jobMode.(string)) + } + + if primaryKeyCompatibility, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "primary_key_compatibility")); ok { + result.PrimaryKeyCompatibility = oci_database_migration.PrimaryKeyCompatibilityEnum(primaryKeyCompatibility.(string)) + } + + return result, nil +} + +func UpdateMySqlInitialLoadSettingsToMap(obj *oci_database_migration.UpdateMySqlInitialLoadSettings) map[string]interface{} { + result := map[string]interface{}{} + + result["compatibility"] = obj.Compatibility + + result["handle_grant_errors"] = string(obj.HandleGrantErrors) + + if obj.IsConsistent != nil { + result["is_consistent"] = bool(*obj.IsConsistent) + } + + if obj.IsIgnoreExistingObjects != nil { + result["is_ignore_existing_objects"] = bool(*obj.IsIgnoreExistingObjects) + } + + if obj.IsTzUtc != nil { + result["is_tz_utc"] = bool(*obj.IsTzUtc) + } + + result["job_mode"] = string(obj.JobMode) + + result["primary_key_compatibility"] = string(obj.PrimaryKeyCompatibility) + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateObjectStoreBucket(fieldKeyFormat string) (oci_database_migration.UpdateObjectStoreBucket, error) { + result := oci_database_migration.UpdateObjectStoreBucket{} + + if bucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "bucket")); ok { + tmp := bucket.(string) + result.BucketName = &tmp + } + + if namespace, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "namespace")); ok { + tmp := namespace.(string) + result.NamespaceName = &tmp + } + + return result, nil +} + +func UpdateObjectStoreBucketToMap(obj *oci_database_migration.UpdateObjectStoreBucket) map[string]interface{} { + result := map[string]interface{}{} + + if obj.BucketName != nil { + result["bucket"] = string(*obj.BucketName) + } + + if obj.NamespaceName != nil { + result["namespace"] = string(*obj.NamespaceName) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateOracleAdvisorSettings(fieldKeyFormat string) (oci_database_migration.UpdateOracleAdvisorSettings, error) { + result := oci_database_migration.UpdateOracleAdvisorSettings{} + + if isIgnoreErrors, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_ignore_errors")); ok { + tmp := isIgnoreErrors.(bool) + result.IsIgnoreErrors = &tmp + } + + if isSkipAdvisor, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_skip_advisor")); ok { + tmp := isSkipAdvisor.(bool) + result.IsSkipAdvisor = &tmp + } + + return result, nil +} + +func UpdateOracleAdvisorSettingsToMap(obj *oci_database_migration.UpdateOracleAdvisorSettings) map[string]interface{} { + result := map[string]interface{}{} + + if obj.IsIgnoreErrors != nil { + result["is_ignore_errors"] = bool(*obj.IsIgnoreErrors) + } + + if obj.IsSkipAdvisor != nil { + result["is_skip_advisor"] = bool(*obj.IsSkipAdvisor) + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateOracleDataTransferMediumDetails(fieldKeyFormat string) (oci_database_migration.UpdateOracleDataTransferMediumDetails, error) { + var baseObject oci_database_migration.UpdateOracleDataTransferMediumDetails + //discriminator + typeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")) + var type_ string + if ok { + type_ = typeRaw.(string) + } else { + type_ = "" // default value + } + switch strings.ToLower(type_) { + case strings.ToLower("AWS_S3"): + details := oci_database_migration.UpdateOracleAwsS3DataTransferMediumDetails{} + if accessKeyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "access_key_id")); ok { + tmp := accessKeyId.(string) + details.AccessKeyId = &tmp + } + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + tmp := name.(string) + details.Name = &tmp + } + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + if region, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "region")); ok { + tmp := region.(string) + details.Region = &tmp + } + if secretAccessKey, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "secret_access_key")); ok { + tmp := secretAccessKey.(string) + details.SecretAccessKey = &tmp + } + baseObject = details + case strings.ToLower("DBLINK"): + details := oci_database_migration.UpdateOracleDbLinkDataTransferMediumDetails{} + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + tmp := name.(string) + details.Name = &tmp + } + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToUpdateObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + baseObject = details + case strings.ToLower("NFS"): + details := oci_database_migration.UpdateOracleNfsDataTransferMediumDetails{} + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToUpdateObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + if sharedStorageMountTargetId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shared_storage_mount_target_id")); ok { + tmp := sharedStorageMountTargetId.(string) + details.SharedStorageMountTargetId = &tmp + } + if source, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source")); ok { + if tmpList := source.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source"), 0) + tmp, err := s.mapToHostDumpTransferDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert source, encountered error: %v", err) + } + details.Source = tmp + } + } + if target, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target")); ok { + if tmpList := target.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "target"), 0) + tmp, err := s.mapToHostDumpTransferDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert target, encountered error: %v", err) + } + details.Target = tmp + } + } + baseObject = details + case strings.ToLower("OBJECT_STORAGE"): + details := oci_database_migration.UpdateOracleObjectStorageDataTransferMediumDetails{} + if objectStorageBucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "object_storage_bucket")); ok { + if tmpList := objectStorageBucket.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "object_storage_bucket"), 0) + tmp, err := s.mapToUpdateObjectStoreBucket(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert object_storage_bucket, encountered error: %v", err) + } + details.ObjectStorageBucket = &tmp + } + } + if source, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source")); ok { + if tmpList := source.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "source"), 0) + tmp, err := s.mapToHostDumpTransferDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert source, encountered error: %v", err) + } + details.Source = tmp + } + } + if target, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target")); ok { + if tmpList := target.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "target"), 0) + tmp, err := s.mapToHostDumpTransferDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert target, encountered error: %v", err) + } + details.Target = tmp + } + } + baseObject = details + default: + return nil, fmt.Errorf("unknown type '%v' was specified", type_) + } + return baseObject, nil +} + +func UpdateOracleDataTransferMediumDetailsToMap(obj *oci_database_migration.UpdateOracleDataTransferMediumDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_database_migration.UpdateOracleAwsS3DataTransferMediumDetails: + result["type"] = "AWS_S3" + + if v.AccessKeyId != nil { + result["access_key_id"] = string(*v.AccessKeyId) + } + + if v.Name != nil { + result["name"] = string(*v.Name) + } + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{ObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + + if v.Region != nil { + result["region"] = string(*v.Region) + } + + if v.SecretAccessKey != nil { + result["secret_access_key"] = string(*v.SecretAccessKey) + } + case oci_database_migration.UpdateOracleDbLinkDataTransferMediumDetails: + result["type"] = "DBLINK" + + if v.Name != nil { + result["name"] = string(*v.Name) + } + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{UpdateObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + case oci_database_migration.UpdateOracleNfsDataTransferMediumDetails: + result["type"] = "NFS" + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{UpdateObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + + if v.SharedStorageMountTargetId != nil { + result["shared_storage_mount_target_id"] = string(*v.SharedStorageMountTargetId) + } + + if v.Source != nil { + sourceArray := []interface{}{} + if sourceMap := HostDumpTransferDetailsToMap(&v.Source); sourceMap != nil { + sourceArray = append(sourceArray, sourceMap) + } + result["source"] = sourceArray + } + + if v.Target != nil { + targetArray := []interface{}{} + if targetMap := HostDumpTransferDetailsToMap(&v.Target); targetMap != nil { + targetArray = append(targetArray, targetMap) + } + result["target"] = targetArray + } + case oci_database_migration.UpdateOracleObjectStorageDataTransferMediumDetails: + result["type"] = "OBJECT_STORAGE" + + if v.ObjectStorageBucket != nil { + result["object_storage_bucket"] = []interface{}{UpdateObjectStoreBucketToMap(v.ObjectStorageBucket)} + } + + if v.Source != nil { + sourceArray := []interface{}{} + if sourceMap := HostDumpTransferDetailsToMap(&v.Source); sourceMap != nil { + sourceArray = append(sourceArray, sourceMap) + } + result["source"] = sourceArray + } + + if v.Target != nil { + targetArray := []interface{}{} + if targetMap := HostDumpTransferDetailsToMap(&v.Target); targetMap != nil { + targetArray = append(targetArray, targetMap) + } + result["target"] = targetArray + } + default: + log.Printf("[WARN] Received 'type' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateOracleGgsDeploymentDetails(fieldKeyFormat string) (oci_database_migration.UpdateOracleGgsDeploymentDetails, error) { + result := oci_database_migration.UpdateOracleGgsDeploymentDetails{} + + if acceptableLag, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "acceptable_lag")); ok { + tmp := acceptableLag.(int) + result.AcceptableLag = &tmp + } + + if extract, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extract")); ok { + if tmpList := extract.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "extract"), 0) + tmp, err := s.mapToUpdateExtract(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert extract, encountered error: %v", err) + } + result.Extract = &tmp + } + } + + if replicat, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicat")); ok { + if tmpList := replicat.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "replicat"), 0) + tmp, err := s.mapToUpdateReplicat(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert replicat, encountered error: %v", err) + } + result.Replicat = &tmp + } + } + + return result, nil +} + +func UpdateOracleGgsDeploymentDetailsToMap(obj *oci_database_migration.UpdateOracleGgsDeploymentDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.AcceptableLag != nil { + result["acceptable_lag"] = int(*obj.AcceptableLag) + } + + if obj.Extract != nil { + result["extract"] = []interface{}{UpdateExtractToMap(obj.Extract)} + } + + if obj.Replicat != nil { + result["replicat"] = []interface{}{UpdateReplicatToMap(obj.Replicat)} + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateOracleInitialLoadSettings(fieldKeyFormat string) (oci_database_migration.UpdateOracleInitialLoadSettings, error) { + result := oci_database_migration.UpdateOracleInitialLoadSettings{} + + if dataPumpParameters, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "data_pump_parameters")); ok { + if tmpList := dataPumpParameters.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "data_pump_parameters"), 0) + tmp, err := s.mapToUpdateDataPumpParameters(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert data_pump_parameters, encountered error: %v", err) + } + result.DataPumpParameters = &tmp + } + } + + if exportDirectoryObject, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "export_directory_object")); ok { + if tmpList := exportDirectoryObject.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "export_directory_object"), 0) + tmp, err := s.mapToUpdateDirectoryObject(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert export_directory_object, encountered error: %v", err) + } + result.ExportDirectoryObject = &tmp + } + } + + if importDirectoryObject, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_directory_object")); ok { + if tmpList := importDirectoryObject.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "import_directory_object"), 0) + tmp, err := s.mapToUpdateDirectoryObject(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert import_directory_object, encountered error: %v", err) + } + result.ImportDirectoryObject = &tmp + } + } + + if jobMode, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_mode")); ok { + result.JobMode = oci_database_migration.JobModeOracleEnum(jobMode.(string)) + } + + if metadataRemaps, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "metadata_remaps")); ok { + interfaces := metadataRemaps.([]interface{}) + tmp := make([]oci_database_migration.MetadataRemap, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "metadata_remaps"), stateDataIndex) + converted, err := s.mapToMetadataRemap(fieldKeyFormatNextLevel) + if err != nil { + return result, err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "metadata_remaps")) { + result.MetadataRemaps = tmp + } + } + + if tablespaceDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "tablespace_details")); ok { + if tmpList := tablespaceDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "tablespace_details"), 0) + tmp, err := s.mapToUpdateTargetTypeTablespaceDetails(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert tablespace_details, encountered error: %v", err) + } + result.TablespaceDetails = tmp + } + } + + return result, nil +} + +func UpdateOracleInitialLoadSettingsToMap(obj *oci_database_migration.UpdateOracleInitialLoadSettings) map[string]interface{} { + result := map[string]interface{}{} + + if obj.DataPumpParameters != nil { + result["data_pump_parameters"] = []interface{}{UpdateDataPumpParametersToMap(obj.DataPumpParameters)} + } + + if obj.ExportDirectoryObject != nil { + result["export_directory_object"] = []interface{}{UpdateDirectoryObjectToMap(obj.ExportDirectoryObject)} + } + + if obj.ImportDirectoryObject != nil { + result["import_directory_object"] = []interface{}{UpdateDirectoryObjectToMap(obj.ImportDirectoryObject)} + } + + result["job_mode"] = string(obj.JobMode) + + metadataRemaps := []interface{}{} + for _, item := range obj.MetadataRemaps { + metadataRemaps = append(metadataRemaps, MetadataRemapToMap(item)) + } + result["metadata_remaps"] = metadataRemaps + + if obj.TablespaceDetails != nil { + tablespaceDetailsArray := []interface{}{} + if tablespaceDetailsMap := UpdateTargetTypeTablespaceDetailsToMap(&obj.TablespaceDetails); tablespaceDetailsMap != nil { + tablespaceDetailsArray = append(tablespaceDetailsArray, tablespaceDetailsMap) + } + result["tablespace_details"] = tablespaceDetailsArray + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateReplicat(fieldKeyFormat string) (oci_database_migration.UpdateReplicat, error) { + result := oci_database_migration.UpdateReplicat{} + + if performanceProfile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "performance_profile")); ok { + result.PerformanceProfile = oci_database_migration.ReplicatPerformanceProfileEnum(performanceProfile.(string)) + } + + return result, nil +} + +func UpdateReplicatToMap(obj *oci_database_migration.UpdateReplicat) map[string]interface{} { + result := map[string]interface{}{} + + result["performance_profile"] = string(obj.PerformanceProfile) + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) mapToUpdateTargetTypeTablespaceDetails(fieldKeyFormat string) (oci_database_migration.UpdateTargetTypeTablespaceDetails, error) { + var baseObject oci_database_migration.UpdateTargetTypeTablespaceDetails + //discriminator + targetTypeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "target_type")) + var targetType string + if ok { + targetType = targetTypeRaw.(string) + } else { + targetType = "" // default value + } + switch strings.ToLower(targetType) { + case strings.ToLower("ADB_D_AUTOCREATE"): + details := oci_database_migration.UpdateAdbDedicatedAutoCreateTablespaceDetails{} + if blockSizeInKBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_size_in_kbs")); ok { + details.BlockSizeInKBs = oci_database_migration.DataPumpTablespaceBlockSizesInKbEnum(blockSizeInKBs.(string)) + } + if extendSizeInMBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extend_size_in_mbs")); ok { + tmp := extendSizeInMBs.(int) + details.ExtendSizeInMBs = &tmp + } + if isAutoCreate, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_auto_create")); ok { + tmp := isAutoCreate.(bool) + details.IsAutoCreate = &tmp + } + if isBigFile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_big_file")); ok { + tmp := isBigFile.(bool) + details.IsBigFile = &tmp + } + baseObject = details + case strings.ToLower("ADB_D_REMAP"): + details := oci_database_migration.UpdateAdbDedicatedRemapTargetTablespaceDetails{} + if remapTarget, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "remap_target")); ok { + tmp := remapTarget.(string) + details.RemapTarget = &tmp + } + baseObject = details + case strings.ToLower("ADB_S_REMAP"): + details := oci_database_migration.UpdateAdbServerlesTablespaceDetails{} + baseObject = details + case strings.ToLower("NON_ADB_AUTOCREATE"): + details := oci_database_migration.UpdateNonAdbAutoCreateTablespaceDetails{} + if blockSizeInKBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_size_in_kbs")); ok { + details.BlockSizeInKBs = oci_database_migration.DataPumpTablespaceBlockSizesInKbEnum(blockSizeInKBs.(string)) + } + if extendSizeInMBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "extend_size_in_mbs")); ok { + tmp := extendSizeInMBs.(int) + details.ExtendSizeInMBs = &tmp + } + if isAutoCreate, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_auto_create")); ok { + tmp := isAutoCreate.(bool) + details.IsAutoCreate = &tmp + } + if isBigFile, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_big_file")); ok { + tmp := isBigFile.(bool) + details.IsBigFile = &tmp + } + baseObject = details + case strings.ToLower("NON_ADB_REMAP"): + details := oci_database_migration.UpdateNonAdbRemapTablespaceDetails{} + if remapTarget, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "remap_target")); ok { + tmp := remapTarget.(string) + details.RemapTarget = &tmp + } + baseObject = details + case strings.ToLower("TARGET_DEFAULTS_AUTOCREATE"): + details := oci_database_migration.UpdateTargetDefaultsAutoCreateTablespaceDetails{} + baseObject = details + case strings.ToLower("TARGET_DEFAULTS_REMAP"): + details := oci_database_migration.UpdateTargetDefaultsRemapTablespaceDetails{} + baseObject = details + default: + return nil, fmt.Errorf("unknown target_type '%v' was specified", targetType) + } + return baseObject, nil +} + +func UpdateTargetTypeTablespaceDetailsToMap(obj *oci_database_migration.UpdateTargetTypeTablespaceDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_database_migration.UpdateAdbDedicatedAutoCreateTablespaceDetails: + result["target_type"] = "ADB_D_AUTOCREATE" + + result["block_size_in_kbs"] = string(v.BlockSizeInKBs) + + if v.ExtendSizeInMBs != nil { + result["extend_size_in_mbs"] = int(*v.ExtendSizeInMBs) + } + + result["is_auto_create"] = bool(*v.IsAutoCreate) + + if v.IsBigFile != nil { + result["is_big_file"] = bool(*v.IsBigFile) + } + case oci_database_migration.UpdateAdbDedicatedRemapTargetTablespaceDetails: + result["target_type"] = "ADB_D_REMAP" + + if v.RemapTarget != nil { + result["remap_target"] = string(*v.RemapTarget) + } + case oci_database_migration.UpdateAdbServerlesTablespaceDetails: + result["target_type"] = "ADB_S_REMAP" + case oci_database_migration.UpdateNonAdbAutoCreateTablespaceDetails: + result["target_type"] = "NON_ADB_AUTOCREATE" + + result["block_size_in_kbs"] = string(v.BlockSizeInKBs) + + if v.ExtendSizeInMBs != nil { + result["extend_size_in_mbs"] = int(*v.ExtendSizeInMBs) + } + + result["is_auto_create"] = bool(*v.IsAutoCreate) + + if v.IsBigFile != nil { + result["is_big_file"] = bool(*v.IsBigFile) + } + case oci_database_migration.UpdateNonAdbRemapTablespaceDetails: + result["target_type"] = "NON_ADB_REMAP" + + if v.RemapTarget != nil { + result["remap_target"] = string(*v.RemapTarget) + } + case oci_database_migration.UpdateTargetDefaultsAutoCreateTablespaceDetails: + result["target_type"] = "TARGET_DEFAULTS_AUTOCREATE" + case oci_database_migration.UpdateTargetDefaultsRemapTablespaceDetails: + result["target_type"] = "TARGET_DEFAULTS_REMAP" + default: + log.Printf("[WARN] Received 'target_type' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DatabaseMigrationMigrationResourceCrud) populateTopLevelPolymorphicCreateMigrationRequest(request *oci_database_migration.CreateMigrationRequest) error { + //discriminator + databaseCombinationRaw, ok := s.D.GetOkExists("database_combination") + var databaseCombination string + if ok { + databaseCombination = databaseCombinationRaw.(string) + } else { + databaseCombination = "" // default value + } + switch strings.ToLower(databaseCombination) { + case strings.ToLower("MYSQL"): + details := oci_database_migration.CreateMySqlMigrationDetails{} + if advisorSettings, ok := s.D.GetOkExists("advisor_settings"); ok { + if tmpList := advisorSettings.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "advisor_settings", 0) + tmp, err := s.mapToCreateMySqlAdvisorSettings(fieldKeyFormat) + if err != nil { + return err + } + details.AdvisorSettings = &tmp + } + } + if bulkIncludeExcludeData, ok := s.D.GetOkExists("bulk_include_exclude_data"); ok { + tmp := bulkIncludeExcludeData.(string) + details.BulkIncludeExcludeData = &tmp + } + if dataTransferMediumDetails, ok := s.D.GetOkExists("data_transfer_medium_details"); ok { + if tmpList := dataTransferMediumDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "data_transfer_medium_details", 0) + tmp, err := s.mapToCreateMySqlDataTransferMediumDetails(fieldKeyFormat) + if err != nil { + return err + } + details.DataTransferMediumDetails = tmp + } + } + if excludeObjects, ok := s.D.GetOkExists("exclude_objects"); ok { + set := excludeObjects.(*schema.Set) + interfaces := set.List() + tmp := make([]oci_database_migration.MySqlDatabaseObject, len(interfaces)) + for i := range interfaces { + stateDataIndex := excludeObjectsHashCodeForSets(interfaces[i]) + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "exclude_objects", stateDataIndex) + converted, err := s.mapToMySqlDatabaseObject(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("exclude_objects") { + details.ExcludeObjects = tmp + } + } + if ggsDetails, ok := s.D.GetOkExists("ggs_details"); ok { + if tmpList := ggsDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "ggs_details", 0) + tmp, err := s.mapToCreateMySqlGgsDeploymentDetails(fieldKeyFormat) + if err != nil { + return err + } + details.GgsDetails = &tmp + } + } + if hubDetails, ok := s.D.GetOkExists("hub_details"); ok { + if tmpList := hubDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "hub_details", 0) + tmp, err := s.mapToCreateGoldenGateHubDetails(fieldKeyFormat) + if err != nil { + return err + } + details.HubDetails = &tmp + } + } + if includeObjects, ok := s.D.GetOkExists("include_objects"); ok { + interfaces := includeObjects.([]interface{}) + tmp := make([]oci_database_migration.MySqlDatabaseObject, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "include_objects", stateDataIndex) + converted, err := s.mapToMySqlDatabaseObject(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("include_objects") { + details.IncludeObjects = tmp + } + } + if initialLoadSettings, ok := s.D.GetOkExists("initial_load_settings"); ok { + if tmpList := initialLoadSettings.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "initial_load_settings", 0) + tmp, err := s.mapToCreateMySqlInitialLoadSettings(fieldKeyFormat) + if err != nil { + return err + } + details.InitialLoadSettings = &tmp + } + } + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + details.CompartmentId = &tmp + } + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + details.DefinedTags = convertedDefinedTags + } + if description, ok := s.D.GetOkExists("description"); ok { + tmp := description.(string) + details.Description = &tmp + } + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + details.DisplayName = &tmp + } + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + details.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + if sourceDatabaseConnectionId, ok := s.D.GetOkExists("source_database_connection_id"); ok { + tmp := sourceDatabaseConnectionId.(string) + details.SourceDatabaseConnectionId = &tmp + } + if targetDatabaseConnectionId, ok := s.D.GetOkExists("target_database_connection_id"); ok { + tmp := targetDatabaseConnectionId.(string) + details.TargetDatabaseConnectionId = &tmp + } + if type_, ok := s.D.GetOkExists("type"); ok { + details.Type = oci_database_migration.MigrationTypesEnum(type_.(string)) + } + request.CreateMigrationDetails = details + case strings.ToLower("ORACLE"): + details := oci_database_migration.CreateOracleMigrationDetails{} + if advisorSettings, ok := s.D.GetOkExists("advisor_settings"); ok { + if tmpList := advisorSettings.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "advisor_settings", 0) + tmp, err := s.mapToCreateOracleAdvisorSettings(fieldKeyFormat) + if err != nil { + return err + } + details.AdvisorSettings = &tmp + } + } + if bulkIncludeExcludeData, ok := s.D.GetOkExists("bulk_include_exclude_data"); ok { + tmp := bulkIncludeExcludeData.(string) + details.BulkIncludeExcludeData = &tmp + } + if dataTransferMediumDetails, ok := s.D.GetOkExists("data_transfer_medium_details"); ok { + if tmpList := dataTransferMediumDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "data_transfer_medium_details", 0) + tmp, err := s.mapToCreateOracleDataTransferMediumDetails(fieldKeyFormat) + if err != nil { + return err + } + details.DataTransferMediumDetails = tmp + } + } + if excludeObjects, ok := s.D.GetOkExists("exclude_objects"); ok { + set := excludeObjects.(*schema.Set) + interfaces := set.List() + tmp := make([]oci_database_migration.OracleDatabaseObject, len(interfaces)) + for i := range interfaces { + stateDataIndex := excludeObjectsHashCodeForSets(interfaces[i]) + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "exclude_objects", stateDataIndex) + converted, err := s.mapToOracleDatabaseObject(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("exclude_objects") { + details.ExcludeObjects = tmp + } + } + if ggsDetails, ok := s.D.GetOkExists("ggs_details"); ok { + if tmpList := ggsDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "ggs_details", 0) + tmp, err := s.mapToCreateOracleGgsDeploymentDetails(fieldKeyFormat) + if err != nil { + return err + } + details.GgsDetails = &tmp + } + } + if hubDetails, ok := s.D.GetOkExists("hub_details"); ok { + if tmpList := hubDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "hub_details", 0) + tmp, err := s.mapToCreateGoldenGateHubDetails(fieldKeyFormat) + if err != nil { + return err + } + details.HubDetails = &tmp + } + } + if includeObjects, ok := s.D.GetOkExists("include_objects"); ok { + interfaces := includeObjects.([]interface{}) + tmp := make([]oci_database_migration.OracleDatabaseObject, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "include_objects", stateDataIndex) + converted, err := s.mapToOracleDatabaseObject(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("include_objects") { + details.IncludeObjects = tmp + } + } + if initialLoadSettings, ok := s.D.GetOkExists("initial_load_settings"); ok { + if tmpList := initialLoadSettings.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "initial_load_settings", 0) + tmp, err := s.mapToCreateOracleInitialLoadSettings(fieldKeyFormat) + if err != nil { + return err + } + details.InitialLoadSettings = &tmp + } + } + if sourceContainerDatabaseConnectionId, ok := s.D.GetOkExists("source_container_database_connection_id"); ok { + tmp := sourceContainerDatabaseConnectionId.(string) + details.SourceContainerDatabaseConnectionId = &tmp + } + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + details.CompartmentId = &tmp + } + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + details.DefinedTags = convertedDefinedTags + } + if description, ok := s.D.GetOkExists("description"); ok { + tmp := description.(string) + details.Description = &tmp + } + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + details.DisplayName = &tmp + } + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + details.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + if sourceDatabaseConnectionId, ok := s.D.GetOkExists("source_database_connection_id"); ok { + tmp := sourceDatabaseConnectionId.(string) + details.SourceDatabaseConnectionId = &tmp + } + if targetDatabaseConnectionId, ok := s.D.GetOkExists("target_database_connection_id"); ok { + tmp := targetDatabaseConnectionId.(string) + details.TargetDatabaseConnectionId = &tmp + } + if type_, ok := s.D.GetOkExists("type"); ok { + details.Type = oci_database_migration.MigrationTypesEnum(type_.(string)) + } + request.CreateMigrationDetails = details + default: + return fmt.Errorf("unknown database_combination '%v' was specified", databaseCombination) + } + return nil +} + +func (s *DatabaseMigrationMigrationResourceCrud) populateTopLevelPolymorphicUpdateMigrationRequest(request *oci_database_migration.UpdateMigrationRequest) error { + //discriminator + databaseCombinationRaw, ok := s.D.GetOkExists("database_combination") + var databaseCombination string + if ok { + databaseCombination = databaseCombinationRaw.(string) + } else { + databaseCombination = "" // default value + } + switch strings.ToLower(databaseCombination) { + case strings.ToLower("MYSQL"): + details := oci_database_migration.UpdateMySqlMigrationDetails{} + if advisorSettings, ok := s.D.GetOkExists("advisor_settings"); ok { + if tmpList := advisorSettings.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "advisor_settings", 0) + tmp, err := s.mapToUpdateMySqlAdvisorSettings(fieldKeyFormat) + if err != nil { + return err + } + details.AdvisorSettings = &tmp + } + } + if dataTransferMediumDetails, ok := s.D.GetOkExists("data_transfer_medium_details"); ok { + if tmpList := dataTransferMediumDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "data_transfer_medium_details", 0) + tmp, err := s.mapToUpdateMySqlDataTransferMediumDetails(fieldKeyFormat) + if err != nil { + return err + } + details.DataTransferMediumDetails = tmp + } + } + if ggsDetails, ok := s.D.GetOkExists("ggs_details"); ok { + if tmpList := ggsDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "ggs_details", 0) + tmp, err := s.mapToUpdateMySqlGgsDeploymentDetails(fieldKeyFormat) + if err != nil { + return err + } + details.GgsDetails = &tmp + } + } + if hubDetails, ok := s.D.GetOkExists("hub_details"); ok { + if tmpList := hubDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "hub_details", 0) + tmp, err := s.mapToUpdateGoldenGateHubDetails(fieldKeyFormat) + if err != nil { + return err + } + details.HubDetails = &tmp + } + } + if initialLoadSettings, ok := s.D.GetOkExists("initial_load_settings"); ok { + if tmpList := initialLoadSettings.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "initial_load_settings", 0) + tmp, err := s.mapToUpdateMySqlInitialLoadSettings(fieldKeyFormat) + if err != nil { + return err + } + details.InitialLoadSettings = &tmp + } + } + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + details.DefinedTags = convertedDefinedTags + } + if description, ok := s.D.GetOkExists("description"); ok { + tmp := description.(string) + details.Description = &tmp + } + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + details.DisplayName = &tmp + } + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + details.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + tmp := s.D.Id() + request.MigrationId = &tmp + if sourceDatabaseConnectionId, ok := s.D.GetOkExists("source_database_connection_id"); ok { + tmp := sourceDatabaseConnectionId.(string) + details.SourceDatabaseConnectionId = &tmp + } + if targetDatabaseConnectionId, ok := s.D.GetOkExists("target_database_connection_id"); ok { + tmp := targetDatabaseConnectionId.(string) + details.TargetDatabaseConnectionId = &tmp + } + if type_, ok := s.D.GetOkExists("type"); ok { + details.Type = oci_database_migration.MigrationTypesEnum(type_.(string)) + } + request.UpdateMigrationDetails = details + case strings.ToLower("ORACLE"): + details := oci_database_migration.UpdateOracleMigrationDetails{} + if advisorSettings, ok := s.D.GetOkExists("advisor_settings"); ok { + if tmpList := advisorSettings.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "advisor_settings", 0) + tmp, err := s.mapToUpdateOracleAdvisorSettings(fieldKeyFormat) + if err != nil { + return err + } + details.AdvisorSettings = &tmp + } + } + if dataTransferMediumDetails, ok := s.D.GetOkExists("data_transfer_medium_details"); ok { + if tmpList := dataTransferMediumDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "data_transfer_medium_details", 0) + tmp, err := s.mapToUpdateOracleDataTransferMediumDetails(fieldKeyFormat) + if err != nil { + return err + } + details.DataTransferMediumDetails = tmp + } + } + if ggsDetails, ok := s.D.GetOkExists("ggs_details"); ok { + if tmpList := ggsDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "ggs_details", 0) + tmp, err := s.mapToUpdateOracleGgsDeploymentDetails(fieldKeyFormat) + if err != nil { + return err + } + details.GgsDetails = &tmp + } + } + if hubDetails, ok := s.D.GetOkExists("hub_details"); ok { + if tmpList := hubDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "hub_details", 0) + tmp, err := s.mapToUpdateGoldenGateHubDetails(fieldKeyFormat) + if err != nil { + return err + } + details.HubDetails = &tmp + } + } + if initialLoadSettings, ok := s.D.GetOkExists("initial_load_settings"); ok { + if tmpList := initialLoadSettings.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "initial_load_settings", 0) + tmp, err := s.mapToUpdateOracleInitialLoadSettings(fieldKeyFormat) + if err != nil { + return err + } + details.InitialLoadSettings = &tmp + } + } + if sourceContainerDatabaseConnectionId, ok := s.D.GetOkExists("source_container_database_connection_id"); ok { + tmp := sourceContainerDatabaseConnectionId.(string) + details.SourceContainerDatabaseConnectionId = &tmp + } + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + details.DefinedTags = convertedDefinedTags + } + if description, ok := s.D.GetOkExists("description"); ok { + tmp := description.(string) + details.Description = &tmp + } + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + details.DisplayName = &tmp + } + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + details.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + tmp := s.D.Id() + request.MigrationId = &tmp + if sourceDatabaseConnectionId, ok := s.D.GetOkExists("source_database_connection_id"); ok { + tmp := sourceDatabaseConnectionId.(string) + details.SourceDatabaseConnectionId = &tmp + } + if targetDatabaseConnectionId, ok := s.D.GetOkExists("target_database_connection_id"); ok { + tmp := targetDatabaseConnectionId.(string) + details.TargetDatabaseConnectionId = &tmp + } + if type_, ok := s.D.GetOkExists("type"); ok { + details.Type = oci_database_migration.MigrationTypesEnum(type_.(string)) + } + request.UpdateMigrationDetails = details + default: + return fmt.Errorf("unknown database_combination '%v' was specified", databaseCombination) + } + return nil +} + +func (s *DatabaseMigrationMigrationResourceCrud) updateCompartment(compartment interface{}) error { + changeCompartmentRequest := oci_database_migration.ChangeMigrationCompartmentRequest{} + + compartmentTmp := compartment.(string) + changeCompartmentRequest.CompartmentId = &compartmentTmp + + idTmp := s.D.Id() + changeCompartmentRequest.MigrationId = &idTmp + + changeCompartmentRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "database_migration") + + _, err := s.Client.ChangeMigrationCompartment(context.Background(), changeCompartmentRequest) + if err != nil { + return err + } + + if waitErr := tfresource.WaitForUpdatedState(s.D, s); waitErr != nil { + return waitErr + } + + return nil +} diff --git a/internal/service/database_migration/register_datasource.go b/internal/service/database_migration/register_datasource.go index eadfc05d072..a03cb0e5d69 100644 --- a/internal/service/database_migration/register_datasource.go +++ b/internal/service/database_migration/register_datasource.go @@ -6,16 +6,22 @@ package database_migration import "github.com/oracle/terraform-provider-oci/internal/tfresource" func RegisterDatasource() { + + tfresource.RegisterDatasource("oci_database_migration_connection", DatabaseMigrationConnectionDataSource()) + tfresource.RegisterDatasource("oci_database_migration_connections", DatabaseMigrationConnectionsDataSource()) + tfresource.RegisterDatasource("oci_database_migration_job", DatabaseMigrationJobDataSource()) + //tfresource.RegisterDatasource("oci_database_migration_agent", DatabaseMigrationAgentDataSource()) //tfresource.RegisterDatasource("oci_database_migration_agent_images", DatabaseMigrationAgentImagesDataSource()) //tfresource.RegisterDatasource("oci_database_migration_agents", DatabaseMigrationAgentsDataSource()) //tfresource.RegisterDatasource("oci_database_migration_connection", DatabaseMigrationConnectionDataSource()) //tfresource.RegisterDatasource("oci_database_migration_connections", DatabaseMigrationConnectionsDataSource()) - tfresource.RegisterDatasource("oci_database_migration_job", DatabaseMigrationJobDataSource()) + //tfresource.RegisterDatasource("oci_database_migration_job", DatabaseMigrationJobDataSource()) + tfresource.RegisterDatasource("oci_database_migration_job_advisor_report", DatabaseMigrationJobAdvisorReportDataSource()) tfresource.RegisterDatasource("oci_database_migration_job_output", DatabaseMigrationJobOutputDataSource()) tfresource.RegisterDatasource("oci_database_migration_jobs", DatabaseMigrationJobsDataSource()) - //tfresource.RegisterDatasource("oci_database_migration_migration", DatabaseMigrationMigrationDataSource()) + tfresource.RegisterDatasource("oci_database_migration_migration", DatabaseMigrationMigrationDataSource()) tfresource.RegisterDatasource("oci_database_migration_migration_object_types", DatabaseMigrationMigrationObjectTypesDataSource()) - //tfresource.RegisterDatasource("oci_database_migration_migrations", DatabaseMigrationMigrationsDataSource()) + tfresource.RegisterDatasource("oci_database_migration_migrations", DatabaseMigrationMigrationDataSource()) } diff --git a/internal/service/database_migration/register_resource.go b/internal/service/database_migration/register_resource.go index 040ad098071..800b0ecc5f6 100644 --- a/internal/service/database_migration/register_resource.go +++ b/internal/service/database_migration/register_resource.go @@ -6,8 +6,12 @@ package database_migration import "github.com/oracle/terraform-provider-oci/internal/tfresource" func RegisterResource() { + + tfresource.RegisterResource("oci_database_migration_connection", DatabaseMigrationConnectionResource()) + //tfresource.RegisterResource("oci_database_migration_agent", DatabaseMigrationAgentResource()) //tfresource.RegisterResource("oci_database_migration_connection", DatabaseMigrationConnectionResource()) + tfresource.RegisterResource("oci_database_migration_job", DatabaseMigrationJobResource()) - //tfresource.RegisterResource("oci_database_migration_migration", DatabaseMigrationMigrationResource()) + tfresource.RegisterResource("oci_database_migration_migration", DatabaseMigrationMigrationResource()) } diff --git a/internal/service/file_storage/file_storage_file_system_resource.go b/internal/service/file_storage/file_storage_file_system_resource.go index 510a9892416..b1628fc71a2 100644 --- a/internal/service/file_storage/file_storage_file_system_resource.go +++ b/internal/service/file_storage/file_storage_file_system_resource.go @@ -5,6 +5,7 @@ package file_storage import ( "context" + "fmt" "strconv" "github.com/oracle/terraform-provider-oci/internal/client" @@ -39,6 +40,12 @@ func FileStorageFileSystemResource() *schema.Resource { }, // Optional + "clone_attach_status": { + Type: schema.TypeString, + Optional: true, + Computed: true, + DiffSuppressFunc: tfresource.AttachDiffSuppressFunction, + }, "defined_tags": { Type: schema.TypeMap, Optional: true, @@ -74,8 +81,16 @@ func FileStorageFileSystemResource() *schema.Resource { Computed: true, ForceNew: true, }, + "detach_clone_trigger": { + Type: schema.TypeInt, + Optional: true, + }, // Computed + "clone_count": { + Type: schema.TypeInt, + Computed: true, + }, "is_clone_parent": { Type: schema.TypeBool, Computed: true, @@ -138,7 +153,18 @@ func createFileStorageFileSystem(d *schema.ResourceData, m interface{}) error { sync.D = d sync.Client = m.(*client.OracleClients).FileStorageClient() - return tfresource.CreateResource(d, sync) + if e := tfresource.CreateResource(d, sync); e != nil { + return e + } + + if _, ok := sync.D.GetOkExists("detach_clone_trigger"); ok { + err := sync.DetachClone() + if err != nil { + return err + } + } + return nil + } func readFileStorageFileSystem(d *schema.ResourceData, m interface{}) error { @@ -154,7 +180,27 @@ func updateFileStorageFileSystem(d *schema.ResourceData, m interface{}) error { sync.D = d sync.Client = m.(*client.OracleClients).FileStorageClient() - return tfresource.UpdateResource(d, sync) + if _, ok := sync.D.GetOkExists("detach_clone_trigger"); ok && sync.D.HasChange("detach_clone_trigger") { + oldRaw, newRaw := sync.D.GetChange("detach_clone_trigger") + oldValue := oldRaw.(int) + newValue := newRaw.(int) + if oldValue < newValue { + err := sync.DetachClone() + + if err != nil { + return err + } + } else { + sync.D.Set("detach_clone_trigger", oldRaw) + return fmt.Errorf("new value of trigger should be greater than the old value") + } + } + + if err := tfresource.UpdateResource(d, sync); err != nil { + return err + } + + return nil } func deleteFileStorageFileSystem(d *schema.ResourceData, m interface{}) error { @@ -209,6 +255,10 @@ func (s *FileStorageFileSystemResourceCrud) Create() error { request.AvailabilityDomain = &tmp } + if cloneAttachStatus, ok := s.D.GetOkExists("clone_attach_status"); ok { + request.CloneAttachStatus = oci_file_storage.CreateFileSystemDetailsCloneAttachStatusEnum(cloneAttachStatus.(string)) + } + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { tmp := compartmentId.(string) request.CompartmentId = &tmp @@ -334,6 +384,11 @@ func (s *FileStorageFileSystemResourceCrud) Update() error { func (s *FileStorageFileSystemResourceCrud) Delete() error { request := oci_file_storage.DeleteFileSystemRequest{} + if canDetachChildFileSystem, ok := s.D.GetOkExists("can_detach_child_file_system"); ok { + tmp := canDetachChildFileSystem.(bool) + request.CanDetachChildFileSystem = &tmp + } + tmp := s.D.Id() request.FileSystemId = &tmp @@ -348,6 +403,12 @@ func (s *FileStorageFileSystemResourceCrud) SetData() error { s.D.Set("availability_domain", *s.Res.AvailabilityDomain) } + s.D.Set("clone_attach_status", s.Res.CloneAttachStatus) + + if s.Res.CloneCount != nil { + s.D.Set("clone_count", *s.Res.CloneCount) + } + if s.Res.CompartmentId != nil { s.D.Set("compartment_id", *s.Res.CompartmentId) } @@ -409,6 +470,29 @@ func (s *FileStorageFileSystemResourceCrud) SetData() error { return nil } +func (s *FileStorageFileSystemResourceCrud) DetachClone() error { + request := oci_file_storage.DetachCloneRequest{} + + idTmp := s.D.Id() + request.FileSystemId = &idTmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "file_storage") + + _, err := s.Client.DetachClone(context.Background(), request) + if err != nil { + return err + } + + if waitErr := tfresource.WaitForUpdatedState(s.D, s); waitErr != nil { + return waitErr + } + + val := s.D.Get("detach_clone_trigger") + s.D.Set("detach_clone_trigger", val) + + return nil +} + func FileSystemSourceDetailsToMap(obj *oci_file_storage.SourceDetails) map[string]interface{} { result := map[string]interface{}{} diff --git a/internal/service/file_storage/file_storage_file_systems_data_source.go b/internal/service/file_storage/file_storage_file_systems_data_source.go index 17a732e0eae..943f9b3dad7 100644 --- a/internal/service/file_storage/file_storage_file_systems_data_source.go +++ b/internal/service/file_storage/file_storage_file_systems_data_source.go @@ -157,6 +157,8 @@ func (s *FileStorageFileSystemsDataSourceCrud) SetData() error { "compartment_id": *r.CompartmentId, } + fileSystem["clone_attach_status"] = r.CloneAttachStatus + if r.DefinedTags != nil { fileSystem["defined_tags"] = tfresource.DefinedTagsToMap(r.DefinedTags) } diff --git a/internal/service/generative_ai/generative_ai_dedicated_ai_cluster_resource.go b/internal/service/generative_ai/generative_ai_dedicated_ai_cluster_resource.go index 7b2bb8406a0..d3208449c13 100644 --- a/internal/service/generative_ai/generative_ai_dedicated_ai_cluster_resource.go +++ b/internal/service/generative_ai/generative_ai_dedicated_ai_cluster_resource.go @@ -25,11 +25,15 @@ func GenerativeAiDedicatedAiClusterResource() *schema.Resource { Importer: &schema.ResourceImporter{ State: schema.ImportStatePassthrough, }, - Timeouts: tfresource.DefaultTimeout, - Create: createGenerativeAiDedicatedAiCluster, - Read: readGenerativeAiDedicatedAiCluster, - Update: updateGenerativeAiDedicatedAiCluster, - Delete: deleteGenerativeAiDedicatedAiCluster, + Timeouts: &schema.ResourceTimeout{ + Create: tfresource.GetTimeoutDuration("80m"), + Update: tfresource.GetTimeoutDuration("80m"), + Delete: tfresource.GetTimeoutDuration("20m"), + }, + Create: createGenerativeAiDedicatedAiCluster, + Read: readGenerativeAiDedicatedAiCluster, + Update: updateGenerativeAiDedicatedAiCluster, + Delete: deleteGenerativeAiDedicatedAiCluster, Schema: map[string]*schema.Schema{ // Required "compartment_id": { diff --git a/internal/service/generative_ai/generative_ai_endpoint_resource.go b/internal/service/generative_ai/generative_ai_endpoint_resource.go index 8d6dfdb42c9..04f528c1557 100644 --- a/internal/service/generative_ai/generative_ai_endpoint_resource.go +++ b/internal/service/generative_ai/generative_ai_endpoint_resource.go @@ -24,11 +24,15 @@ func GenerativeAiEndpointResource() *schema.Resource { Importer: &schema.ResourceImporter{ State: schema.ImportStatePassthrough, }, - Timeouts: tfresource.DefaultTimeout, - Create: createGenerativeAiEndpoint, - Read: readGenerativeAiEndpoint, - Update: updateGenerativeAiEndpoint, - Delete: deleteGenerativeAiEndpoint, + Timeouts: &schema.ResourceTimeout{ + Create: tfresource.GetTimeoutDuration("80m"), + Update: tfresource.GetTimeoutDuration("20m"), + Delete: tfresource.GetTimeoutDuration("20m"), + }, + Create: createGenerativeAiEndpoint, + Read: readGenerativeAiEndpoint, + Update: updateGenerativeAiEndpoint, + Delete: deleteGenerativeAiEndpoint, Schema: map[string]*schema.Schema{ // Required "compartment_id": { diff --git a/internal/service/generative_ai/generative_ai_export.go b/internal/service/generative_ai/generative_ai_export.go index 71c7ef15978..ba26fa33727 100644 --- a/internal/service/generative_ai/generative_ai_export.go +++ b/internal/service/generative_ai/generative_ai_export.go @@ -19,7 +19,6 @@ var exportGenerativeAiDedicatedAiClusterHints = &tf_export.TerraformResourceHint DatasourceItemsAttr: "dedicated_ai_cluster_collection", IsDatasourceCollection: true, ResourceAbbreviation: "dedicated_ai_cluster", - RequireResourceRefresh: true, DiscoverableLifecycleStates: []string{ string(oci_generative_ai.DedicatedAiClusterLifecycleStateActive), string(oci_generative_ai.DedicatedAiClusterLifecycleStateNeedsAttention), diff --git a/internal/service/generative_ai/generative_ai_model_resource.go b/internal/service/generative_ai/generative_ai_model_resource.go index aa9fd7c00c6..d36f530e8a5 100644 --- a/internal/service/generative_ai/generative_ai_model_resource.go +++ b/internal/service/generative_ai/generative_ai_model_resource.go @@ -26,11 +26,15 @@ func GenerativeAiModelResource() *schema.Resource { Importer: &schema.ResourceImporter{ State: schema.ImportStatePassthrough, }, - Timeouts: tfresource.DefaultTimeout, - Create: createGenerativeAiModel, - Read: readGenerativeAiModel, - Update: updateGenerativeAiModel, - Delete: deleteGenerativeAiModel, + Timeouts: &schema.ResourceTimeout{ + Create: tfresource.GetTimeoutDuration("80m"), + Update: tfresource.GetTimeoutDuration("20m"), + Delete: tfresource.GetTimeoutDuration("20m"), + }, + Create: createGenerativeAiModel, + Read: readGenerativeAiModel, + Update: updateGenerativeAiModel, + Delete: deleteGenerativeAiModel, Schema: map[string]*schema.Schema{ // Required "base_model_id": { @@ -114,6 +118,7 @@ func GenerativeAiModelResource() *schema.Resource { ForceNew: true, DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, ValidateFunc: validation.StringInSlice([]string{ + "LORA_TRAINING_CONFIG", "TFEW_TRAINING_CONFIG", "VANILLA_TRAINING_CONFIG", }, true), @@ -144,6 +149,24 @@ func GenerativeAiModelResource() *schema.Resource { Computed: true, ForceNew: true, }, + "lora_alpha": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + "lora_dropout": { + Type: schema.TypeFloat, + Optional: true, + Computed: true, + ForceNew: true, + }, + "lora_r": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, "num_of_last_layers": { Type: schema.TypeInt, Optional: true, @@ -827,6 +850,16 @@ func FineTuneDetailsToMap(obj *oci_generative_ai.FineTuneDetails) map[string]int func ModelMetricsToMap(obj *oci_generative_ai.ModelMetrics) map[string]interface{} { result := map[string]interface{}{} switch v := (*obj).(type) { + case oci_generative_ai.ChatModelMetrics: + result["model_metrics_type"] = "CHAT_MODEL_METRICS" + + if v.FinalAccuracy != nil { + result["final_accuracy"] = float64(*v.FinalAccuracy) + } + + if v.FinalLoss != nil { + result["final_loss"] = float64(*v.FinalLoss) + } case oci_generative_ai.TextGenerationModelMetrics: result["model_metrics_type"] = "TEXT_GENERATION_MODEL_METRICS" @@ -930,6 +963,45 @@ func (s *GenerativeAiModelResourceCrud) mapToTrainingConfig(fieldKeyFormat strin trainingConfigType = "TFEW_TRAINING_CONFIG" // default value } switch strings.ToLower(trainingConfigType) { + case strings.ToLower("LORA_TRAINING_CONFIG"): + details := oci_generative_ai.LoraTrainingConfig{} + if loraAlpha, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "lora_alpha")); ok { + tmp := loraAlpha.(int) + details.LoraAlpha = &tmp + } + if loraDropout, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "lora_dropout")); ok { + tmp := loraDropout.(float64) + details.LoraDropout = &tmp + } + if loraR, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "lora_r")); ok { + tmp := loraR.(int) + details.LoraR = &tmp + } + if earlyStoppingPatience, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "early_stopping_patience")); ok { + tmp := earlyStoppingPatience.(int) + details.EarlyStoppingPatience = &tmp + } + if earlyStoppingThreshold, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "early_stopping_threshold")); ok { + tmp := earlyStoppingThreshold.(float64) + details.EarlyStoppingThreshold = &tmp + } + if learningRate, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "learning_rate")); ok { + tmp := learningRate.(float64) + details.LearningRate = &tmp + } + if logModelMetricsIntervalInSteps, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "log_model_metrics_interval_in_steps")); ok { + tmp := logModelMetricsIntervalInSteps.(int) + details.LogModelMetricsIntervalInSteps = &tmp + } + if totalTrainingEpochs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "total_training_epochs")); ok { + tmp := totalTrainingEpochs.(int) + details.TotalTrainingEpochs = &tmp + } + if trainingBatchSize, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "training_batch_size")); ok { + tmp := trainingBatchSize.(int) + details.TrainingBatchSize = &tmp + } + baseObject = details case strings.ToLower("TFEW_TRAINING_CONFIG"): details := oci_generative_ai.TFewTrainingConfig{} if earlyStoppingPatience, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "early_stopping_patience")); ok { @@ -997,6 +1069,44 @@ func (s *GenerativeAiModelResourceCrud) mapToTrainingConfig(fieldKeyFormat strin func TrainingConfigToMap(obj *oci_generative_ai.TrainingConfig) map[string]interface{} { result := map[string]interface{}{} switch v := (*obj).(type) { + case oci_generative_ai.LoraTrainingConfig: + result["training_config_type"] = "LORA_TRAINING_CONFIG" + + if v.LoraAlpha != nil { + result["lora_alpha"] = int(*v.LoraAlpha) + } + + if v.LoraDropout != nil { + result["lora_dropout"] = float64(*v.LoraDropout) + } + + if v.LoraR != nil { + result["lora_r"] = int(*v.LoraR) + } + if v.EarlyStoppingPatience != nil { + result["early_stopping_patience"] = int(*v.EarlyStoppingPatience) + } + + if v.EarlyStoppingThreshold != nil { + result["early_stopping_threshold"] = float64(*v.EarlyStoppingThreshold) + } + + if v.LearningRate != nil { + result["learning_rate"] = float64(*v.LearningRate) + } + + if v.LogModelMetricsIntervalInSteps != nil { + result["log_model_metrics_interval_in_steps"] = int(*v.LogModelMetricsIntervalInSteps) + } + + if v.TotalTrainingEpochs != nil { + result["total_training_epochs"] = int(*v.TotalTrainingEpochs) + } + + if v.TrainingBatchSize != nil { + result["training_batch_size"] = int(*v.TrainingBatchSize) + } + case oci_generative_ai.TFewTrainingConfig: result["training_config_type"] = "TFEW_TRAINING_CONFIG" @@ -1023,6 +1133,7 @@ func TrainingConfigToMap(obj *oci_generative_ai.TrainingConfig) map[string]inter if v.TrainingBatchSize != nil { result["training_batch_size"] = int(*v.TrainingBatchSize) } + case oci_generative_ai.VanillaTrainingConfig: result["training_config_type"] = "VANILLA_TRAINING_CONFIG" diff --git a/internal/service/management_agent/management_agent_management_agent_resource.go b/internal/service/management_agent/management_agent_management_agent_resource.go index 53d968e48e3..cad95737e61 100644 --- a/internal/service/management_agent/management_agent_management_agent_resource.go +++ b/internal/service/management_agent/management_agent_management_agent_resource.go @@ -993,6 +993,14 @@ func (s *ManagementAgentManagementAgentResourceCrud) mapToMetricDimension(fieldK } func (s *ManagementAgentManagementAgentResourceCrud) Create() error { + + // During create, the user can set new value for tags and or display_name + // During create, the s.D is updated with s.Get to the current values in MACS + // so we keep a copy of the required values locally, and then set them during the update if necessary + freeformtags, freeformtagsok := s.D.GetOkExists("freeform_tags") + definedtags, definedtagsok := s.D.GetOkExists("defined_tags") + displayname, displaynameok := s.D.GetOkExists("display_name") + e := s.Get() if e != nil { return e @@ -1002,6 +1010,18 @@ func (s *ManagementAgentManagementAgentResourceCrud) Create() error { return e } + if freeformtagsok { + log.Printf("[DEBUG] Updating agent freeformtags to %v", freeformtags) + s.D.Set("freeform_tags", freeformtags) + } + if definedtagsok { + log.Printf("[DEBUG] Updating agent definedtags to %v", definedtags) + s.D.Set("defined_tags", definedtags) + } + if displaynameok { + log.Printf("[DEBUG] Updating agent displayname to %v", displayname) + s.D.Set("display_name", displayname) + } return s.Update() } diff --git a/internal/service/resource_scheduler/register_datasource.go b/internal/service/resource_scheduler/register_datasource.go new file mode 100644 index 00000000000..31d71af4a89 --- /dev/null +++ b/internal/service/resource_scheduler/register_datasource.go @@ -0,0 +1,11 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package resource_scheduler + +import "github.com/oracle/terraform-provider-oci/internal/tfresource" + +func RegisterDatasource() { + tfresource.RegisterDatasource("oci_resource_scheduler_schedule", ResourceSchedulerScheduleDataSource()) + tfresource.RegisterDatasource("oci_resource_scheduler_schedules", ResourceSchedulerSchedulesDataSource()) +} diff --git a/internal/service/resource_scheduler/register_resource.go b/internal/service/resource_scheduler/register_resource.go new file mode 100644 index 00000000000..ac80002be7d --- /dev/null +++ b/internal/service/resource_scheduler/register_resource.go @@ -0,0 +1,10 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package resource_scheduler + +import "github.com/oracle/terraform-provider-oci/internal/tfresource" + +func RegisterResource() { + tfresource.RegisterResource("oci_resource_scheduler_schedule", ResourceSchedulerScheduleResource()) +} diff --git a/internal/service/resource_scheduler/resource_scheduler_export.go b/internal/service/resource_scheduler/resource_scheduler_export.go new file mode 100644 index 00000000000..3e657eb1c52 --- /dev/null +++ b/internal/service/resource_scheduler/resource_scheduler_export.go @@ -0,0 +1,32 @@ +package resource_scheduler + +import ( + oci_resource_scheduler "github.com/oracle/oci-go-sdk/v65/resourcescheduler" + + tf_export "github.com/oracle/terraform-provider-oci/internal/commonexport" +) + +func init() { + tf_export.RegisterCompartmentGraphs("resource_scheduler", resourceSchedulerResourceGraph) +} + +// Custom overrides for generating composite IDs within the resource discovery framework + +// Hints for discovering and exporting this resource to configuration and state files +var exportResourceSchedulerScheduleHints = &tf_export.TerraformResourceHints{ + ResourceClass: "oci_resource_scheduler_schedule", + DatasourceClass: "oci_resource_scheduler_schedules", + DatasourceItemsAttr: "schedule_collection", + IsDatasourceCollection: true, + ResourceAbbreviation: "schedule", + RequireResourceRefresh: true, + DiscoverableLifecycleStates: []string{ + string(oci_resource_scheduler.ScheduleLifecycleStateActive), + }, +} + +var resourceSchedulerResourceGraph = tf_export.TerraformResourceGraph{ + "oci_identity_compartment": { + {TerraformResourceHints: exportResourceSchedulerScheduleHints}, + }, +} diff --git a/internal/service/resource_scheduler/resource_scheduler_schedule_data_source.go b/internal/service/resource_scheduler/resource_scheduler_schedule_data_source.go new file mode 100644 index 00000000000..acfc74b8c62 --- /dev/null +++ b/internal/service/resource_scheduler/resource_scheduler_schedule_data_source.go @@ -0,0 +1,139 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package resource_scheduler + +import ( + "context" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_resource_scheduler "github.com/oracle/oci-go-sdk/v65/resourcescheduler" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func ResourceSchedulerScheduleDataSource() *schema.Resource { + fieldMap := make(map[string]*schema.Schema) + fieldMap["schedule_id"] = &schema.Schema{ + Type: schema.TypeString, + Required: true, + } + return tfresource.GetSingularDataSourceItemSchema(ResourceSchedulerScheduleResource(), fieldMap, readSingularResourceSchedulerSchedule) +} + +func readSingularResourceSchedulerSchedule(d *schema.ResourceData, m interface{}) error { + sync := &ResourceSchedulerScheduleDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).ScheduleClient() + + return tfresource.ReadResource(sync) +} + +type ResourceSchedulerScheduleDataSourceCrud struct { + D *schema.ResourceData + Client *oci_resource_scheduler.ScheduleClient + Res *oci_resource_scheduler.GetScheduleResponse +} + +func (s *ResourceSchedulerScheduleDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *ResourceSchedulerScheduleDataSourceCrud) Get() error { + request := oci_resource_scheduler.GetScheduleRequest{} + + if scheduleId, ok := s.D.GetOkExists("schedule_id"); ok { + tmp := scheduleId.(string) + request.ScheduleId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "resource_scheduler") + + response, err := s.Client.GetSchedule(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *ResourceSchedulerScheduleDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(*s.Res.Id) + + s.D.Set("action", s.Res.Action) + + if s.Res.CompartmentId != nil { + s.D.Set("compartment_id", *s.Res.CompartmentId) + } + + if s.Res.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) + } + + if s.Res.Description != nil { + s.D.Set("description", *s.Res.Description) + } + + if s.Res.DisplayName != nil { + s.D.Set("display_name", *s.Res.DisplayName) + } + + s.D.Set("freeform_tags", s.Res.FreeformTags) + + if s.Res.RecurrenceDetails != nil { + s.D.Set("recurrence_details", *s.Res.RecurrenceDetails) + } + + s.D.Set("recurrence_type", s.Res.RecurrenceType) + + resourceFilters := []interface{}{} + for _, item := range s.Res.ResourceFilters { + resourceFilters = append(resourceFilters, ResourceFilterToMap(item)) + } + s.D.Set("resource_filters", resourceFilters) + + resources := []interface{}{} + for _, item := range s.Res.Resources { + resources = append(resources, ResourceToMap(item)) + } + s.D.Set("resources", resources) + + s.D.Set("state", s.Res.LifecycleState) + + if s.Res.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) + } + + if s.Res.TimeCreated != nil { + s.D.Set("time_created", s.Res.TimeCreated.String()) + } + + if s.Res.TimeEnds != nil { + s.D.Set("time_ends", s.Res.TimeEnds.Format(time.RFC3339Nano)) + } + + if s.Res.TimeLastRun != nil { + s.D.Set("time_last_run", s.Res.TimeLastRun.String()) + } + + if s.Res.TimeNextRun != nil { + s.D.Set("time_next_run", s.Res.TimeNextRun.String()) + } + + if s.Res.TimeStarts != nil { + s.D.Set("time_starts", s.Res.TimeStarts.Format(time.RFC3339Nano)) + } + + if s.Res.TimeUpdated != nil { + s.D.Set("time_updated", s.Res.TimeUpdated.String()) + } + + return nil +} diff --git a/internal/service/resource_scheduler/resource_scheduler_schedule_resource.go b/internal/service/resource_scheduler/resource_scheduler_schedule_resource.go new file mode 100644 index 00000000000..80f5538795c --- /dev/null +++ b/internal/service/resource_scheduler/resource_scheduler_schedule_resource.go @@ -0,0 +1,1117 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package resource_scheduler + +import ( + "context" + "fmt" + "log" + "strings" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + oci_common "github.com/oracle/oci-go-sdk/v65/common" + oci_resource_scheduler "github.com/oracle/oci-go-sdk/v65/resourcescheduler" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func ResourceSchedulerScheduleResource() *schema.Resource { + return &schema.Resource{ + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Timeouts: tfresource.DefaultTimeout, + Create: createResourceSchedulerSchedule, + Read: readResourceSchedulerSchedule, + Update: updateResourceSchedulerSchedule, + Delete: deleteResourceSchedulerSchedule, + Schema: map[string]*schema.Schema{ + // Required + "action": { + Type: schema.TypeString, + Required: true, + }, + "compartment_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "recurrence_details": { + Type: schema.TypeString, + Required: true, + }, + "recurrence_type": { + Type: schema.TypeString, + Required: true, + }, + + // Optional + "defined_tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + DiffSuppressFunc: tfresource.DefinedTagsDiffSuppressFunction, + Elem: schema.TypeString, + }, + "description": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "display_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "freeform_tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + Elem: schema.TypeString, + }, + "resource_filters": { + Type: schema.TypeList, + Optional: true, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "attribute": { + Type: schema.TypeString, + Required: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "COMPARTMENT_ID", + "DEFINED_TAGS", + "LIFECYCLE_STATE", + "RESOURCE_TYPE", + "TIME_CREATED", + }, true), + }, + + // Optional + "condition": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "should_include_child_compartments": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + }, + "value": { + Type: schema.TypeList, + Optional: true, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "namespace": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "tag_key": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "value": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + + // Computed + }, + }, + }, + "resources": { + Type: schema.TypeList, + Optional: true, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "id": { + Type: schema.TypeString, + Required: true, + }, + + // Optional + "metadata": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + Elem: schema.TypeString, + }, + + // Computed + }, + }, + }, + "state": { + Type: schema.TypeString, + Optional: true, + Computed: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + string(oci_resource_scheduler.ScheduleLifecycleStateInactive), + string(oci_resource_scheduler.ScheduleLifecycleStateActive), + }, true), + }, + "time_ends": { + Type: schema.TypeString, + Optional: true, + Computed: true, + DiffSuppressFunc: tfresource.TimeDiffSuppressFunction, + }, + "time_starts": { + Type: schema.TypeString, + Optional: true, + Computed: true, + DiffSuppressFunc: tfresource.TimeDiffSuppressFunction, + }, + + // Computed + "system_tags": { + Type: schema.TypeMap, + Computed: true, + Elem: schema.TypeString, + }, + "time_created": { + Type: schema.TypeString, + Computed: true, + }, + "time_last_run": { + Type: schema.TypeString, + Computed: true, + }, + "time_next_run": { + Type: schema.TypeString, + Computed: true, + }, + "time_updated": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func createResourceSchedulerSchedule(d *schema.ResourceData, m interface{}) error { + sync := &ResourceSchedulerScheduleResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).ScheduleClient() + var powerOff = false + if powerState, ok := sync.D.GetOkExists("state"); ok { + wantedPowerState := oci_resource_scheduler.ScheduleLifecycleStateEnum(strings.ToUpper(powerState.(string))) + if wantedPowerState == oci_resource_scheduler.ScheduleLifecycleStateInactive { + powerOff = true + } + } + + if e := tfresource.CreateResource(d, sync); e != nil { + return e + } + + if powerOff { + if err := sync.StopSchedule(); err != nil { + return err + } + sync.D.Set("state", oci_resource_scheduler.ScheduleLifecycleStateInactive) + } + return nil + +} + +func readResourceSchedulerSchedule(d *schema.ResourceData, m interface{}) error { + sync := &ResourceSchedulerScheduleResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).ScheduleClient() + + return tfresource.ReadResource(sync) +} + +func updateResourceSchedulerSchedule(d *schema.ResourceData, m interface{}) error { + sync := &ResourceSchedulerScheduleResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).ScheduleClient() + + powerOn, powerOff := false, false + + if sync.D.HasChange("state") { + wantedState := strings.ToUpper(sync.D.Get("state").(string)) + if oci_resource_scheduler.ScheduleLifecycleStateActive == oci_resource_scheduler.ScheduleLifecycleStateEnum(wantedState) { + powerOn = true + } else if oci_resource_scheduler.ScheduleLifecycleStateInactive == oci_resource_scheduler.ScheduleLifecycleStateEnum(wantedState) { + powerOff = true + } + } + + if powerOn { + if err := sync.StartSchedule(); err != nil { + return err + } + sync.D.Set("state", oci_resource_scheduler.ScheduleLifecycleStateActive) + } + + if err := tfresource.UpdateResource(d, sync); err != nil { + return err + } + + if powerOff { + if err := sync.StopSchedule(); err != nil { + return err + } + sync.D.Set("state", oci_resource_scheduler.ScheduleLifecycleStateInactive) + } + + return nil +} + +func deleteResourceSchedulerSchedule(d *schema.ResourceData, m interface{}) error { + sync := &ResourceSchedulerScheduleResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).ScheduleClient() + sync.DisableNotFoundRetries = true + + return tfresource.DeleteResource(d, sync) +} + +type ResourceSchedulerScheduleResourceCrud struct { + tfresource.BaseCrud + Client *oci_resource_scheduler.ScheduleClient + Res *oci_resource_scheduler.Schedule + DisableNotFoundRetries bool +} + +func (s *ResourceSchedulerScheduleResourceCrud) ID() string { + return *s.Res.Id +} + +func (s *ResourceSchedulerScheduleResourceCrud) CreatedPending() []string { + return []string{ + string(oci_resource_scheduler.ScheduleLifecycleStateCreating), + } +} + +func (s *ResourceSchedulerScheduleResourceCrud) CreatedTarget() []string { + return []string{ + string(oci_resource_scheduler.ScheduleLifecycleStateActive), + } +} + +func (s *ResourceSchedulerScheduleResourceCrud) DeletedPending() []string { + return []string{ + string(oci_resource_scheduler.ScheduleLifecycleStateDeleting), + } +} + +func (s *ResourceSchedulerScheduleResourceCrud) DeletedTarget() []string { + return []string{ + string(oci_resource_scheduler.ScheduleLifecycleStateDeleted), + } +} + +func (s *ResourceSchedulerScheduleResourceCrud) Create() error { + request := oci_resource_scheduler.CreateScheduleRequest{} + + if action, ok := s.D.GetOkExists("action"); ok { + request.Action = oci_resource_scheduler.CreateScheduleDetailsActionEnum(action.(string)) + } + + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + request.CompartmentId = &tmp + } + + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + request.DefinedTags = convertedDefinedTags + } + + if description, ok := s.D.GetOkExists("description"); ok { + tmp := description.(string) + request.Description = &tmp + } + + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + request.DisplayName = &tmp + } + + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + + if recurrenceDetails, ok := s.D.GetOkExists("recurrence_details"); ok { + tmp := recurrenceDetails.(string) + request.RecurrenceDetails = &tmp + } + + if recurrenceType, ok := s.D.GetOkExists("recurrence_type"); ok { + request.RecurrenceType = oci_resource_scheduler.CreateScheduleDetailsRecurrenceTypeEnum(recurrenceType.(string)) + } + + if resourceFilters, ok := s.D.GetOkExists("resource_filters"); ok { + interfaces := resourceFilters.([]interface{}) + tmp := make([]oci_resource_scheduler.ResourceFilter, len(interfaces)) + for i := range interfaces { + //interfaces[i] map[attribute:RESOURCE_TYPE condition: should_include_child_compartments:%!s(bool=false) value:[map[namespace: tag_key: value:instance]]] + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "resource_filters", stateDataIndex) + converted, err := s.mapToResourceFilter(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + //{ Value=[{ Namespace=ResourceSchedulerCanary TagKey=ScheduleTagFilterTestKey Value=foo }] } + } + if len(tmp) != 0 || s.D.HasChange("resource_filters") { + request.ResourceFilters = tmp + } + } + + if resources, ok := s.D.GetOkExists("resources"); ok { + interfaces := resources.([]interface{}) + tmp := make([]oci_resource_scheduler.Resource, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "resources", stateDataIndex) + converted, err := s.mapToResource(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("resources") { + request.Resources = tmp + } + } + + if timeEnds, ok := s.D.GetOkExists("time_ends"); ok { + tmp, err := time.Parse(time.RFC3339, timeEnds.(string)) + if err != nil { + return err + } + request.TimeEnds = &oci_common.SDKTime{Time: tmp} + } + + if timeStarts, ok := s.D.GetOkExists("time_starts"); ok { + tmp, err := time.Parse(time.RFC3339, timeStarts.(string)) + if err != nil { + return err + } + request.TimeStarts = &oci_common.SDKTime{Time: tmp} + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "resource_scheduler") + + response, err := s.Client.CreateSchedule(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + var identifier *string + identifier = response.Id + if identifier != nil { + s.D.SetId(*identifier) + } + return s.getScheduleFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "resource_scheduler"), oci_resource_scheduler.ActionTypeRelated, s.D.Timeout(schema.TimeoutCreate)) +} + +func (s *ResourceSchedulerScheduleResourceCrud) getScheduleFromWorkRequest(workId *string, retryPolicy *oci_common.RetryPolicy, + actionTypeEnum oci_resource_scheduler.ActionTypeEnum, timeout time.Duration) error { + + // Wait until it finishes + scheduleId, err := scheduleWaitForWorkRequest(workId, "resourceschedule", + actionTypeEnum, timeout, s.DisableNotFoundRetries, s.Client) + + if err != nil { + // Try to cancel the work request + log.Printf("[DEBUG] creation failed, attempting to cancel the workrequest: %v for identifier: %v\n", workId, scheduleId) + _, cancelErr := s.Client.CancelWorkRequest(context.Background(), + oci_resource_scheduler.CancelWorkRequestRequest{ + WorkRequestId: workId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + if cancelErr != nil { + log.Printf("[DEBUG] cleanup cancelWorkRequest failed with the error: %v\n", cancelErr) + } + return err + } + s.D.SetId(*scheduleId) + + return s.Get() +} + +func scheduleWorkRequestShouldRetryFunc(timeout time.Duration) func(response oci_common.OCIOperationResponse) bool { + startTime := time.Now() + stopTime := startTime.Add(timeout) + return func(response oci_common.OCIOperationResponse) bool { + + // Stop after timeout has elapsed + if time.Now().After(stopTime) { + return false + } + + // Make sure we stop on default rules + if tfresource.ShouldRetry(response, false, "resource_scheduler", startTime) { + return true + } + + // Only stop if the time Finished is set + if workRequestResponse, ok := response.Response.(oci_resource_scheduler.GetWorkRequestResponse); ok { + return workRequestResponse.TimeFinished == nil + } + return false + } +} + +func scheduleWaitForWorkRequest(wId *string, entityType string, action oci_resource_scheduler.ActionTypeEnum, + timeout time.Duration, disableFoundRetries bool, client *oci_resource_scheduler.ScheduleClient) (*string, error) { + retryPolicy := tfresource.GetRetryPolicy(disableFoundRetries, "resource_scheduler") + retryPolicy.ShouldRetryOperation = scheduleWorkRequestShouldRetryFunc(timeout) + + response := oci_resource_scheduler.GetWorkRequestResponse{} + stateConf := &resource.StateChangeConf{ + Pending: []string{ + string(oci_resource_scheduler.OperationStatusInProgress), + string(oci_resource_scheduler.OperationStatusAccepted), + string(oci_resource_scheduler.OperationStatusCanceling), + }, + Target: []string{ + string(oci_resource_scheduler.OperationStatusSucceeded), + string(oci_resource_scheduler.OperationStatusFailed), + string(oci_resource_scheduler.OperationStatusCanceled), + }, + Refresh: func() (interface{}, string, error) { + var err error + response, err = client.GetWorkRequest(context.Background(), + oci_resource_scheduler.GetWorkRequestRequest{ + WorkRequestId: wId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + wr := &response.WorkRequest + return wr, string(wr.Status), err + }, + Timeout: timeout, + } + if _, e := stateConf.WaitForState(); e != nil { + return nil, e + } + + var identifier *string + // The work request response contains an array of objects that finished the operation + for _, res := range response.Resources { + if strings.Contains(strings.ToLower(*res.EntityType), entityType) { + if res.ActionType == action { + identifier = res.Identifier + break + } + } + } + + // The workrequest may have failed, check for errors if identifier is not found or work failed or got cancelled + if identifier == nil || response.Status == oci_resource_scheduler.OperationStatusFailed || response.Status == oci_resource_scheduler.OperationStatusCanceled { + return nil, getErrorFromResourceSchedulerScheduleWorkRequest(client, wId, retryPolicy, entityType, action) + } + + return identifier, nil +} + +func getErrorFromResourceSchedulerScheduleWorkRequest(client *oci_resource_scheduler.ScheduleClient, workId *string, retryPolicy *oci_common.RetryPolicy, entityType string, action oci_resource_scheduler.ActionTypeEnum) error { + response, err := client.ListWorkRequestErrors(context.Background(), + oci_resource_scheduler.ListWorkRequestErrorsRequest{ + WorkRequestId: workId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + if err != nil { + return err + } + + allErrs := make([]string, 0) + for _, wrkErr := range response.Items { + allErrs = append(allErrs, *wrkErr.Message) + } + errorMessage := strings.Join(allErrs, "\n") + + workRequestErr := fmt.Errorf("work request did not succeed, workId: %s, entity: %s, action: %s. Message: %s", *workId, entityType, action, errorMessage) + + return workRequestErr +} + +func (s *ResourceSchedulerScheduleResourceCrud) Get() error { + request := oci_resource_scheduler.GetScheduleRequest{} + + tmp := s.D.Id() + request.ScheduleId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "resource_scheduler") + + response, err := s.Client.GetSchedule(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response.Schedule + return nil +} + +func (s *ResourceSchedulerScheduleResourceCrud) Update() error { + request := oci_resource_scheduler.UpdateScheduleRequest{} + + if action, ok := s.D.GetOkExists("action"); ok { + request.Action = oci_resource_scheduler.UpdateScheduleDetailsActionEnum(action.(string)) + } + + if definedTags, ok := s.D.GetOkExists("defined_tags"); ok { + convertedDefinedTags, err := tfresource.MapToDefinedTags(definedTags.(map[string]interface{})) + if err != nil { + return err + } + request.DefinedTags = convertedDefinedTags + } + + if description, ok := s.D.GetOkExists("description"); ok { + tmp := description.(string) + request.Description = &tmp + } + + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + request.DisplayName = &tmp + } + + if freeformTags, ok := s.D.GetOkExists("freeform_tags"); ok { + request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) + } + + if recurrenceDetails, ok := s.D.GetOkExists("recurrence_details"); ok { + tmp := recurrenceDetails.(string) + request.RecurrenceDetails = &tmp + } + + if recurrenceType, ok := s.D.GetOkExists("recurrence_type"); ok { + request.RecurrenceType = oci_resource_scheduler.UpdateScheduleDetailsRecurrenceTypeEnum(recurrenceType.(string)) + } + + if resourceFilters, ok := s.D.GetOkExists("resource_filters"); ok { + interfaces := resourceFilters.([]interface{}) + tmp := make([]oci_resource_scheduler.ResourceFilter, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "resource_filters", stateDataIndex) + converted, err := s.mapToResourceFilter(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("resource_filters") { + request.ResourceFilters = tmp + } + } + + if resources, ok := s.D.GetOkExists("resources"); ok { + interfaces := resources.([]interface{}) + tmp := make([]oci_resource_scheduler.Resource, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "resources", stateDataIndex) + converted, err := s.mapToResource(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("resources") { + request.Resources = tmp + } + } + + tmp := s.D.Id() + request.ScheduleId = &tmp + + if timeEnds, ok := s.D.GetOkExists("time_ends"); ok { + tmp, err := time.Parse(time.RFC3339, timeEnds.(string)) + if err != nil { + return err + } + request.TimeEnds = &oci_common.SDKTime{Time: tmp} + } + + if timeStarts, ok := s.D.GetOkExists("time_starts"); ok { + tmp, err := time.Parse(time.RFC3339, timeStarts.(string)) + if err != nil { + return err + } + request.TimeStarts = &oci_common.SDKTime{Time: tmp} + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "resource_scheduler") + + response, err := s.Client.UpdateSchedule(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + return s.getScheduleFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "resource_scheduler"), oci_resource_scheduler.ActionTypeRelated, s.D.Timeout(schema.TimeoutUpdate)) +} + +func (s *ResourceSchedulerScheduleResourceCrud) Delete() error { + request := oci_resource_scheduler.DeleteScheduleRequest{} + + tmp := s.D.Id() + request.ScheduleId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "resource_scheduler") + + _, err := s.Client.DeleteSchedule(context.Background(), request) + return err +} + +func (s *ResourceSchedulerScheduleResourceCrud) SetData() error { + s.D.Set("action", s.Res.Action) + + if s.Res.CompartmentId != nil { + s.D.Set("compartment_id", *s.Res.CompartmentId) + } + + if s.Res.DefinedTags != nil { + s.D.Set("defined_tags", tfresource.DefinedTagsToMap(s.Res.DefinedTags)) + } + + if s.Res.Description != nil { + s.D.Set("description", *s.Res.Description) + } + + if s.Res.DisplayName != nil { + s.D.Set("display_name", *s.Res.DisplayName) + } + + s.D.Set("freeform_tags", s.Res.FreeformTags) + + if s.Res.RecurrenceDetails != nil { + s.D.Set("recurrence_details", *s.Res.RecurrenceDetails) + } + + s.D.Set("recurrence_type", s.Res.RecurrenceType) + + resourceFilters := []interface{}{} + for _, item := range s.Res.ResourceFilters { + resourceFilters = append(resourceFilters, ResourceFilterToMap(item)) + } + s.D.Set("resource_filters", resourceFilters) + + resources := []interface{}{} + for _, item := range s.Res.Resources { + resources = append(resources, ResourceToMap(item)) + } + s.D.Set("resources", resources) + + s.D.Set("state", s.Res.LifecycleState) + + if s.Res.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) + } + + if s.Res.TimeCreated != nil { + s.D.Set("time_created", s.Res.TimeCreated.String()) + } + + if s.Res.TimeEnds != nil { + s.D.Set("time_ends", s.Res.TimeEnds.Format(time.RFC3339Nano)) + } + + if s.Res.TimeLastRun != nil { + s.D.Set("time_last_run", s.Res.TimeLastRun.String()) + } + + if s.Res.TimeNextRun != nil { + s.D.Set("time_next_run", s.Res.TimeNextRun.String()) + } + + if s.Res.TimeStarts != nil { + s.D.Set("time_starts", s.Res.TimeStarts.Format(time.RFC3339Nano)) + } + + if s.Res.TimeUpdated != nil { + s.D.Set("time_updated", s.Res.TimeUpdated.String()) + } + + return nil +} + +func (s *ResourceSchedulerScheduleResourceCrud) StartSchedule() error { + request := oci_resource_scheduler.ActivateScheduleRequest{} + + idTmp := s.D.Id() + request.ScheduleId = &idTmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "resource_scheduler") + + _, err := s.Client.ActivateSchedule(context.Background(), request) + if err != nil { + return err + } + + retentionPolicyFunc := func() bool { return s.Res.LifecycleState == oci_resource_scheduler.ScheduleLifecycleStateActive } + return tfresource.WaitForResourceCondition(s, retentionPolicyFunc, s.D.Timeout(schema.TimeoutUpdate)) +} + +func (s *ResourceSchedulerScheduleResourceCrud) StopSchedule() error { + request := oci_resource_scheduler.DeactivateScheduleRequest{} + + idTmp := s.D.Id() + request.ScheduleId = &idTmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "resource_scheduler") + + _, err := s.Client.DeactivateSchedule(context.Background(), request) + if err != nil { + return err + } + + retentionPolicyFunc := func() bool { return s.Res.LifecycleState == oci_resource_scheduler.ScheduleLifecycleStateInactive } + return tfresource.WaitForResourceCondition(s, retentionPolicyFunc, s.D.Timeout(schema.TimeoutUpdate)) +} + +func (s *ResourceSchedulerScheduleResourceCrud) mapToDefinedTagFilterValue(fieldKeyFormat string) (oci_resource_scheduler.DefinedTagFilterValue, error) { + result := oci_resource_scheduler.DefinedTagFilterValue{} + + if namespace, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "namespace")); ok { + tmp := namespace.(string) + result.Namespace = &tmp + } + + if tagKey, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "tag_key")); ok { + tmp := tagKey.(string) + result.TagKey = &tmp + } + + if value, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "value")); ok { + tmp := value.(string) + result.Value = &tmp + } + + return result, nil +} + +func DefinedTagFilterValueToMap(obj oci_resource_scheduler.DefinedTagFilterValue) map[string]interface{} { + result := map[string]interface{}{} + + if obj.Namespace != nil { + result["namespace"] = string(*obj.Namespace) + } + + if obj.TagKey != nil { + result["tag_key"] = string(*obj.TagKey) + } + + if obj.Value != nil { + result["value"] = string(*obj.Value) + } + + return result +} + +func (s *ResourceSchedulerScheduleResourceCrud) mapToResource(fieldKeyFormat string) (oci_resource_scheduler.Resource, error) { + result := oci_resource_scheduler.Resource{} + + if id, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "id")); ok { + tmp := id.(string) + result.Id = &tmp + } + + if metadata, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "metadata")); ok { + result.Metadata = tfresource.ObjectMapToStringMap(metadata.(map[string]interface{})) + } + + return result, nil +} + +func ResourceToMap(obj oci_resource_scheduler.Resource) map[string]interface{} { + result := map[string]interface{}{} + + if obj.Id != nil { + result["id"] = string(*obj.Id) + } + + result["metadata"] = obj.Metadata + + return result +} + +func (s *ResourceSchedulerScheduleResourceCrud) mapToResourceFilter(fieldKeyFormat string) (oci_resource_scheduler.ResourceFilter, error) { + var baseObject oci_resource_scheduler.ResourceFilter + //discriminator + attributeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "attribute")) + var attribute string + if ok { + attribute = attributeRaw.(string) + } else { + attribute = "" // default value + } + switch strings.ToLower(attribute) { + case strings.ToLower("COMPARTMENT_ID"): + details := oci_resource_scheduler.CompartmentIdResourceFilter{} + if shouldIncludeChildCompartments, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "should_include_child_compartments")); ok { + tmp := shouldIncludeChildCompartments.(bool) + details.ShouldIncludeChildCompartments = &tmp + } + details.Value = mapToStringFilter(s, fieldKeyFormat) + baseObject = details + case strings.ToLower("TIME_CREATED"): + details := oci_resource_scheduler.TimeCreatedResourceFilter{} + if condition, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "condition")); ok { + details.Condition = oci_resource_scheduler.TimeCreatedResourceFilterConditionEnum(condition.(string)) + } + details.Value = mapToStringFilter(s, fieldKeyFormat) + baseObject = details + case strings.ToLower("LIFECYCLE_STATE"): + details := oci_resource_scheduler.LifecycleStateResourceFilter{} + details.Value = mapToStringArrayFilter(s, fieldKeyFormat) + baseObject = details + case strings.ToLower("RESOURCE_TYPE"): + details := oci_resource_scheduler.ResourceTypeResourceFilter{} + details.Value = mapToStringArrayFilter(s, fieldKeyFormat) + baseObject = details + case strings.ToLower("DEFINED_TAGS"): + details := oci_resource_scheduler.DefinedTagsResourceFilter{} + if value, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "value")); ok { + interfaces := value.([]interface{}) + tmp := make([]oci_resource_scheduler.DefinedTagFilterValue, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "value"), stateDataIndex) + converted, err := s.mapToDefinedTagFilterValue(fieldKeyFormatNextLevel) + if err != nil { + return details, err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "value")) { + details.Value = tmp + } + } + baseObject = details + default: + return nil, fmt.Errorf("unknown attribute '%v' was specified", attribute) + } + return baseObject, nil +} + +func mapToStringFilter(s *ResourceSchedulerScheduleResourceCrud, fieldKeyFormat string) *string { + if value, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "value")); ok { + interfaces := value.([]interface{}) + if len(interfaces) > 0 { + if valMap, ok := interfaces[0].(map[string]interface{}); ok { + tmp := valMap["value"].(string) + return &tmp + } + } + } + return nil +} + +// mapToStringArrayFilter extracts a slice of strings from a map stored in a ResourceSchedulerScheduleResourceCrud object. +// It looks for the key "value" within the maps contained in the interfaces slice. +// +// Example: +// +// Input: interfaces slice with maps containing "value" keys +// Output: []string{"instance", "anotherValue"} +func mapToStringArrayFilter(s *ResourceSchedulerScheduleResourceCrud, fieldKeyFormat string) []string { + if value, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "value")); ok { + interfaces := value.([]interface{}) + tmp := make([]string, len(interfaces)) + for i := range interfaces { + //interfaces[i] map[namespace: tag_key: value:instance] + if valMap, ok := interfaces[i].(map[string]interface{}); ok { + tmp[i] = valMap["value"].(string) + } + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "value")) { + return tmp + } + } + return nil +} + +// stringArrayFilterToMap converts a slice of strings into a slice of interfaces, +// where each string is wrapped in a map with a single key "value". +// It logs the resulting slice for debugging purposes. +// +// Example: +// +// Input: []string{"item1", "item2"} +// Output: []interface{}{ +// map[string]interface{}{"value": "item1"}, +// map[string]interface{}{"value": "item2"}, +// } +func stringArrayFilterToMap(values []string) []interface{} { + result := make([]interface{}, len(values)) + for i, item := range values { + result[i] = map[string]interface{}{"value": item} + } + return result +} + +// stringFilterToMap converts a pointer to a string into a slice of interfaces containing a map. +// The map has a single key "value" with the string's dereferenced value. +// If the input pointer is nil, the function returns nil. +// +// Examples: +// - Non-nil string pointer ("exampleString") -> [map[value:exampleString]] +// - Nil string pointer -> [] +// - Empty string ("") -> [map[value:]] +func stringFilterToMap(value *string) []interface{} { + if value == nil { + return nil + } + return []interface{}{map[string]interface{}{"value": *value}} +} + +func ResourceFilterToMap(obj oci_resource_scheduler.ResourceFilter) map[string]interface{} { + + result := map[string]interface{}{} + switch v := (obj).(type) { + case oci_resource_scheduler.CompartmentIdResourceFilter: + result["attribute"] = "COMPARTMENT_ID" + if v.ShouldIncludeChildCompartments != nil { + result["should_include_child_compartments"] = bool(*v.ShouldIncludeChildCompartments) + } + result["value"] = stringFilterToMap(v.Value) + case oci_resource_scheduler.TimeCreatedResourceFilter: + result["attribute"] = "TIME_CREATED" + result["condition"] = string(v.Condition) + result["value"] = stringFilterToMap(v.Value) + case oci_resource_scheduler.LifecycleStateResourceFilter: + result["attribute"] = "LIFECYCLE_STATE" + // v: { Value=[active creating] } + result["value"] = stringArrayFilterToMap(v.Value) + case oci_resource_scheduler.ResourceTypeResourceFilter: + result["attribute"] = "RESOURCE_TYPE" + // v: { Value=[instance autonomousdatabase] } + result["value"] = stringArrayFilterToMap(v.Value) + case oci_resource_scheduler.DefinedTagsResourceFilter: + result["attribute"] = "DEFINED_TAGS" + + value := []interface{}{} + for _, item := range v.Value { + value = append(value, DefinedTagFilterValueToMap(item)) + } + result["value"] = value + default: + log.Printf("[WARN] Received 'attribute' of unknown type %v", obj) + return nil + } + return result +} + +func ScheduleSummaryToMap(obj oci_resource_scheduler.ScheduleSummary) map[string]interface{} { + result := map[string]interface{}{} + + result["action"] = string(obj.Action) + + if obj.CompartmentId != nil { + result["compartment_id"] = string(*obj.CompartmentId) + } + + if obj.DefinedTags != nil { + result["defined_tags"] = tfresource.DefinedTagsToMap(obj.DefinedTags) + } + + if obj.Description != nil { + result["description"] = string(*obj.Description) + } + + if obj.DisplayName != nil { + result["display_name"] = string(*obj.DisplayName) + } + + result["freeform_tags"] = obj.FreeformTags + + if obj.Id != nil { + result["id"] = string(*obj.Id) + } + + //result["last_run_status"] = string(obj.LastRunStatus) + + if obj.RecurrenceDetails != nil { + result["recurrence_details"] = string(*obj.RecurrenceDetails) + } + + result["recurrence_type"] = string(obj.RecurrenceType) + + resourceFilters := []interface{}{} + for _, item := range obj.ResourceFilters { + resourceFilters = append(resourceFilters, ResourceFilterToMap(item)) + } + result["resource_filters"] = resourceFilters + + resources := []interface{}{} + for _, item := range obj.Resources { + resources = append(resources, ResourceToMap(item)) + } + result["resources"] = resources + + result["state"] = string(obj.LifecycleState) + + if obj.SystemTags != nil { + result["system_tags"] = tfresource.SystemTagsToMap(obj.SystemTags) + } + + if obj.TimeCreated != nil { + result["time_created"] = obj.TimeCreated.String() + } + + if obj.TimeEnds != nil { + result["time_ends"] = obj.TimeEnds.String() + } + + if obj.TimeLastRun != nil { + result["time_last_run"] = obj.TimeLastRun.String() + } + + if obj.TimeNextRun != nil { + result["time_next_run"] = obj.TimeNextRun.String() + } + + if obj.TimeStarts != nil { + result["time_starts"] = obj.TimeStarts.String() + } + + if obj.TimeUpdated != nil { + result["time_updated"] = obj.TimeUpdated.String() + } + + return result +} diff --git a/internal/service/resource_scheduler/resource_scheduler_schedules_data_source.go b/internal/service/resource_scheduler/resource_scheduler_schedules_data_source.go new file mode 100644 index 00000000000..db1aa9e5726 --- /dev/null +++ b/internal/service/resource_scheduler/resource_scheduler_schedules_data_source.go @@ -0,0 +1,143 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package resource_scheduler + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_resource_scheduler "github.com/oracle/oci-go-sdk/v65/resourcescheduler" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func ResourceSchedulerSchedulesDataSource() *schema.Resource { + return &schema.Resource{ + Read: readResourceSchedulerSchedules, + Schema: map[string]*schema.Schema{ + "filter": tfresource.DataSourceFiltersSchema(), + "compartment_id": { + Type: schema.TypeString, + Optional: true, + }, + "display_name": { + Type: schema.TypeString, + Optional: true, + }, + "schedule_id": { + Type: schema.TypeString, + Optional: true, + }, + "state": { + Type: schema.TypeString, + Optional: true, + }, + "schedule_collection": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + + "items": { + Type: schema.TypeList, + Computed: true, + Elem: tfresource.GetDataSourceItemSchema(ResourceSchedulerScheduleResource()), + }, + }, + }, + }, + }, + } +} + +func readResourceSchedulerSchedules(d *schema.ResourceData, m interface{}) error { + sync := &ResourceSchedulerSchedulesDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).ScheduleClient() + + return tfresource.ReadResource(sync) +} + +type ResourceSchedulerSchedulesDataSourceCrud struct { + D *schema.ResourceData + Client *oci_resource_scheduler.ScheduleClient + Res *oci_resource_scheduler.ListSchedulesResponse +} + +func (s *ResourceSchedulerSchedulesDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *ResourceSchedulerSchedulesDataSourceCrud) Get() error { + request := oci_resource_scheduler.ListSchedulesRequest{} + + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + request.CompartmentId = &tmp + } + + if displayName, ok := s.D.GetOkExists("display_name"); ok { + tmp := displayName.(string) + request.DisplayName = &tmp + } + + if scheduleId, ok := s.D.GetOkExists("id"); ok { + tmp := scheduleId.(string) + request.ScheduleId = &tmp + } + + if state, ok := s.D.GetOkExists("state"); ok { + request.LifecycleState = oci_resource_scheduler.ScheduleLifecycleStateEnum(state.(string)) + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "resource_scheduler") + response, err := s.Client.ListSchedules(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + request.Page = s.Res.OpcNextPage + + for request.Page != nil { + listResponse, err := s.Client.ListSchedules(context.Background(), request) + if err != nil { + return err + } + + s.Res.Items = append(s.Res.Items, listResponse.Items...) + request.Page = listResponse.OpcNextPage + } + + return nil +} + +func (s *ResourceSchedulerSchedulesDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(tfresource.GenerateDataSourceHashID("ResourceSchedulerSchedulesDataSource-", ResourceSchedulerSchedulesDataSource(), s.D)) + resources := []map[string]interface{}{} + schedule := map[string]interface{}{} + + items := []interface{}{} + for _, item := range s.Res.Items { + items = append(items, ScheduleSummaryToMap(item)) + } + schedule["items"] = items + + if f, fOk := s.D.GetOkExists("filter"); fOk { + items = tfresource.ApplyFiltersInCollection(f.(*schema.Set), items, ResourceSchedulerSchedulesDataSource().Schema["schedule_collection"].Elem.(*schema.Resource).Schema) + schedule["items"] = items + } + + resources = append(resources, schedule) + if err := s.D.Set("schedule_collection", resources); err != nil { + return err + } + + return nil +} diff --git a/internal/tfresource/crud_helpers.go b/internal/tfresource/crud_helpers.go index 9c10ee2bae1..905bec85a6f 100644 --- a/internal/tfresource/crud_helpers.go +++ b/internal/tfresource/crud_helpers.go @@ -1231,6 +1231,13 @@ func MonetaryDiffSuppress(key string, old string, new string, d *schema.Resource return fmt.Sprintf("%.2f", oldVal) == fmt.Sprintf("%.2f", newVal) } +func AttachDiffSuppressFunction(key string, old string, new string, d *schema.ResourceData) bool { + if new == "DETACH" { + return true + } + return false +} + // Diff suppression function to make sure that any change in ordering of attributes in JSON objects don't result in diffs. // For example, the config may have created this: // diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/capacitymanagement_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/capacitymanagement_client.go index cf7f83aa43d..aff22fb4772 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/capacitymanagement_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/capacitymanagement_client.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement @@ -145,7 +145,7 @@ func (client CapacityManagementClient) createOccAvailabilityCatalog(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalog/CreateOccAvailabilityCatalog" err = common.PostProcessServiceError(err, "CapacityManagement", "CreateOccAvailabilityCatalog", apiReferenceLink) return response, err } @@ -208,7 +208,7 @@ func (client CapacityManagementClient) createOccCapacityRequest(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequest/CreateOccCapacityRequest" err = common.PostProcessServiceError(err, "CapacityManagement", "CreateOccCapacityRequest", apiReferenceLink) return response, err } @@ -266,7 +266,7 @@ func (client CapacityManagementClient) deleteOccAvailabilityCatalog(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalog/DeleteOccAvailabilityCatalog" err = common.PostProcessServiceError(err, "CapacityManagement", "DeleteOccAvailabilityCatalog", apiReferenceLink) return response, err } @@ -324,7 +324,7 @@ func (client CapacityManagementClient) deleteOccCapacityRequest(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequest/DeleteOccCapacityRequest" err = common.PostProcessServiceError(err, "CapacityManagement", "DeleteOccCapacityRequest", apiReferenceLink) return response, err } @@ -382,7 +382,7 @@ func (client CapacityManagementClient) getOccAvailabilityCatalog(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalog/GetOccAvailabilityCatalog" err = common.PostProcessServiceError(err, "CapacityManagement", "GetOccAvailabilityCatalog", apiReferenceLink) return response, err } @@ -444,7 +444,7 @@ func (client CapacityManagementClient) getOccAvailabilityCatalogContent(ctx cont httpResponse, err = client.Call(ctx, &httpRequest) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalog/GetOccAvailabilityCatalogContent" err = common.PostProcessServiceError(err, "CapacityManagement", "GetOccAvailabilityCatalogContent", apiReferenceLink) return response, err } @@ -502,7 +502,7 @@ func (client CapacityManagementClient) getOccCapacityRequest(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequest/GetOccCapacityRequest" err = common.PostProcessServiceError(err, "CapacityManagement", "GetOccCapacityRequest", apiReferenceLink) return response, err } @@ -560,7 +560,7 @@ func (client CapacityManagementClient) getOccCustomerGroup(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCustomerGroup/GetOccCustomerGroup" err = common.PostProcessServiceError(err, "CapacityManagement", "GetOccCustomerGroup", apiReferenceLink) return response, err } @@ -618,7 +618,7 @@ func (client CapacityManagementClient) listInternalNamespaceOccOverviews(ctx con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccOverviewCollection/ListInternalNamespaceOccOverviews" err = common.PostProcessServiceError(err, "CapacityManagement", "ListInternalNamespaceOccOverviews", apiReferenceLink) return response, err } @@ -676,7 +676,7 @@ func (client CapacityManagementClient) listOccAvailabilities(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCollection/ListOccAvailabilities" err = common.PostProcessServiceError(err, "CapacityManagement", "ListOccAvailabilities", apiReferenceLink) return response, err } @@ -734,7 +734,7 @@ func (client CapacityManagementClient) listOccAvailabilityCatalogs(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalogCollection/ListOccAvailabilityCatalogs" err = common.PostProcessServiceError(err, "CapacityManagement", "ListOccAvailabilityCatalogs", apiReferenceLink) return response, err } @@ -792,7 +792,7 @@ func (client CapacityManagementClient) listOccAvailabilityCatalogsInternal(ctx c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalogCollection/ListOccAvailabilityCatalogsInternal" err = common.PostProcessServiceError(err, "CapacityManagement", "ListOccAvailabilityCatalogsInternal", apiReferenceLink) return response, err } @@ -850,7 +850,7 @@ func (client CapacityManagementClient) listOccCapacityRequests(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequestCollection/ListOccCapacityRequests" err = common.PostProcessServiceError(err, "CapacityManagement", "ListOccCapacityRequests", apiReferenceLink) return response, err } @@ -908,7 +908,7 @@ func (client CapacityManagementClient) listOccCapacityRequestsInternal(ctx conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequestCollection/ListOccCapacityRequestsInternal" err = common.PostProcessServiceError(err, "CapacityManagement", "ListOccCapacityRequestsInternal", apiReferenceLink) return response, err } @@ -966,7 +966,7 @@ func (client CapacityManagementClient) listOccCustomerGroups(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCustomerGroupCollection/ListOccCustomerGroups" err = common.PostProcessServiceError(err, "CapacityManagement", "ListOccCustomerGroups", apiReferenceLink) return response, err } @@ -1024,7 +1024,7 @@ func (client CapacityManagementClient) listOccOverviews(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccOverviewCollection/ListOccOverviews" err = common.PostProcessServiceError(err, "CapacityManagement", "ListOccOverviews", apiReferenceLink) return response, err } @@ -1082,7 +1082,7 @@ func (client CapacityManagementClient) patchInternalOccCapacityRequest(ctx conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequest/PatchInternalOccCapacityRequest" err = common.PostProcessServiceError(err, "CapacityManagement", "PatchInternalOccCapacityRequest", apiReferenceLink) return response, err } @@ -1140,7 +1140,7 @@ func (client CapacityManagementClient) patchOccCapacityRequest(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequest/PatchOccCapacityRequest" err = common.PostProcessServiceError(err, "CapacityManagement", "PatchOccCapacityRequest", apiReferenceLink) return response, err } @@ -1203,7 +1203,7 @@ func (client CapacityManagementClient) publishOccAvailabilityCatalog(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalog/PublishOccAvailabilityCatalog" err = common.PostProcessServiceError(err, "CapacityManagement", "PublishOccAvailabilityCatalog", apiReferenceLink) return response, err } @@ -1261,7 +1261,7 @@ func (client CapacityManagementClient) updateInternalOccCapacityRequest(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequest/UpdateInternalOccCapacityRequest" err = common.PostProcessServiceError(err, "CapacityManagement", "UpdateInternalOccCapacityRequest", apiReferenceLink) return response, err } @@ -1319,7 +1319,7 @@ func (client CapacityManagementClient) updateOccAvailabilityCatalog(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccAvailabilityCatalog/UpdateOccAvailabilityCatalog" err = common.PostProcessServiceError(err, "CapacityManagement", "UpdateOccAvailabilityCatalog", apiReferenceLink) return response, err } @@ -1377,7 +1377,7 @@ func (client CapacityManagementClient) updateOccCapacityRequest(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/occcm/20231107/OccCapacityRequest/UpdateOccCapacityRequest" err = common.PostProcessServiceError(err, "CapacityManagement", "UpdateOccCapacityRequest", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/create_occ_availability_catalog_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/create_occ_availability_catalog_details.go index 1539152a516..07565ed2414 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/create_occ_availability_catalog_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/create_occ_availability_catalog_details.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/create_occ_capacity_request_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/create_occ_capacity_request_details.go index 3c146ce72cf..cf0a8d4aa15 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/create_occ_capacity_request_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/create_occ_capacity_request_details.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/metadata_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/metadata_details.go index 4c2f5a300c4..4c629e19967 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/metadata_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/metadata_details.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/namespace.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/namespace.go index e7c3b36955e..367d4d4701b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/namespace.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/namespace.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_catalog.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_catalog.go index 95a5673f0b5..5fdb6ca6b09 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_catalog.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_catalog.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_catalog_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_catalog_collection.go index b8ccf247497..7544732984a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_catalog_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_catalog_collection.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_catalog_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_catalog_summary.go index 86a84e248ba..d1beebdb8af 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_catalog_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_catalog_summary.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_collection.go index 47e0095c0e2..8227c976f06 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_collection.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_summary.go index a683c687ed9..8e419f26433 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_availability_summary.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request.go index 8132c594632..ed62c316086 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request_base_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request_base_details.go index eb828ee162b..fe11685b867 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request_base_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request_base_details.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request_collection.go index 8d29bfacf66..3ac66cc2284 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request_collection.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request_summary.go index d244601fee9..650bbc82cda 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_capacity_request_summary.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer.go index 62534eb024a..02a21cc24ce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer_group.go index 0763f5198a5..f4954b5cd50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer_group.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer_group_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer_group_collection.go index 10a0aff93f9..81d52c802a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer_group_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer_group_collection.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer_group_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer_group_summary.go index a50a294258f..dfcdd3ca5b7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer_group_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_customer_group_summary.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_overview_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_overview_collection.go index 1c5a38467cc..00068771029 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_overview_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_overview_collection.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_overview_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_overview_summary.go index d2d258e377b..31da09f32fe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_overview_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/occ_overview_summary.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_insert_instruction.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_insert_instruction.go index 377319c6a83..3d14c48b9dc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_insert_instruction.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_insert_instruction.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_insert_multiple_instruction.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_insert_multiple_instruction.go index fea25cc6add..6c3e627fac2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_insert_multiple_instruction.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_insert_multiple_instruction.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_instruction.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_instruction.go index 21b415834ca..c4e5e740563 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_instruction.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_instruction.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_merge_instruction.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_merge_instruction.go index 6600bf2aa29..a61e0535a0f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_merge_instruction.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_merge_instruction.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_move_instruction.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_move_instruction.go index dd1286b85d4..900c333c286 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_move_instruction.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_move_instruction.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_occ_capacity_request_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_occ_capacity_request_details.go index 044d1789239..96870d6b397 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_occ_capacity_request_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_occ_capacity_request_details.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_prohibit_instruction.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_prohibit_instruction.go index 6365803ff02..5075a600eec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_prohibit_instruction.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_prohibit_instruction.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_remove_instruction.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_remove_instruction.go index 1f4cfaddcc5..14c443b276f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_remove_instruction.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_remove_instruction.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_replace_instruction.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_replace_instruction.go index eceffb26f36..cb6a7045cc2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_replace_instruction.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_replace_instruction.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_require_instruction.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_require_instruction.go index 3f85328b811..ce9b5f84f8a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_require_instruction.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/patch_require_instruction.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/sort_order.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/sort_order.go index 1f2cd1537b3..ee8daf29119 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/sort_order.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/sort_order.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/update_internal_occ_capacity_request_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/update_internal_occ_capacity_request_details.go index e44b4647e57..f119cc75423 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/update_internal_occ_capacity_request_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/update_internal_occ_capacity_request_details.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/update_occ_availability_catalog_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/update_occ_availability_catalog_details.go index 48d8bd4388c..b367e50b1d0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/update_occ_availability_catalog_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/update_occ_availability_catalog_details.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/update_occ_capacity_request_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/update_occ_capacity_request_details.go index 24a3066cacb..2f0aa761c50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/update_occ_capacity_request_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/capacitymanagement/update_occ_capacity_request_details.go @@ -2,9 +2,9 @@ // 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. // Code generated. DO NOT EDIT. -// OciControlCenterCp API +// OCI Control Center Capacity Management API // -// A description of the OciControlCenterCp API +// OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center (https://docs.cloud.oracle.com/iaas/Content/control-center/home.htm). // package capacitymanagement diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go index 274c44d5c96..c4cf19005d1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go @@ -80,6 +80,8 @@ const ( RegionSABogota1 Region = "sa-bogota-1" //RegionSAValparaiso1 region Valparaiso RegionSAValparaiso1 Region = "sa-valparaiso-1" + //RegionAPSingapore2 region Singapore + RegionAPSingapore2 Region = "ap-singapore-2" //RegionUSLangley1 region Langley RegionUSLangley1 Region = "us-langley-1" //RegionUSLuke1 region Luke @@ -169,6 +171,7 @@ var shortNameRegion = map[string]Region{ "aga": RegionUSSaltlake2, "bog": RegionSABogota1, "vap": RegionSAValparaiso1, + "xsp": RegionAPSingapore2, "lfi": RegionUSLangley1, "luf": RegionUSLuke1, "ric": RegionUSGovAshburn1, @@ -251,6 +254,7 @@ var regionRealm = map[Region]string{ RegionUSSaltlake2: "oc1", RegionSABogota1: "oc1", RegionSAValparaiso1: "oc1", + RegionAPSingapore2: "oc1", RegionUSLangley1: "oc2", RegionUSLuke1: "oc2", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json index 6bb858e393e..a97061f42e1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json @@ -370,5 +370,11 @@ "realmKey": "oc15", "regionIdentifier": "ap-dcc-gazipur-1", "realmDomainComponent": "oraclecloud15.com" + }, + { + "regionKey": "xsp", + "realmKey": "oc1", + "regionIdentifier": "ap-singapore-2", + "realmDomainComponent": "oraclecloud.com" } ] \ No newline at end of file diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go index dc78ac19bd7..c8849f7ff68 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go @@ -12,7 +12,7 @@ import ( const ( major = "65" - minor = "68" + minor = "69" patch = "0" tag = "" ) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_container_database.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_container_database.go index 62783e8e7cd..f271095572c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_container_database.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_container_database.go @@ -96,7 +96,7 @@ type AutonomousContainerDatabase struct { // Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database. If enabled along with Release Update, patching will be done in a Non-Rolling manner. IsDstFileUpdateEnabled *bool `mandatory:"false" json:"isDstFileUpdateEnabled"` - // DST Time-zone File version of the Autonomous Container Database. + // DST Time-Zone File version of the Autonomous Container Database. DstFileVersion *string `mandatory:"false" json:"dstFileVersion"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_container_database_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_container_database_summary.go index 47193a86567..9d367ee4cc1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_container_database_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_container_database_summary.go @@ -96,7 +96,7 @@ type AutonomousContainerDatabaseSummary struct { // Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database. If enabled along with Release Update, patching will be done in a Non-Rolling manner. IsDstFileUpdateEnabled *bool `mandatory:"false" json:"isDstFileUpdateEnabled"` - // DST Time-zone File version of the Autonomous Container Database. + // DST Time-Zone File version of the Autonomous Container Database. DstFileVersion *string `mandatory:"false" json:"dstFileVersion"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database.go index 935053aa565..ca32f86b055 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database.go @@ -31,6 +31,9 @@ type AutonomousDatabase struct { DbName *string `mandatory:"true" json:"dbName"` // The quantity of data in the database, in terabytes. + // The following points apply to Autonomous Databases on Serverless Infrastructure: + // - This is an integer field whose value remains null when the data size is in GBs and cannot be converted to TBs (by dividing the GB value by 1024) without rounding error. + // - To get the exact value of data storage size without rounding error, please see `dataStorageSizeInGBs` of Autonomous Database. DataStorageSizeInTBs *int `mandatory:"true" json:"dataStorageSizeInTBs"` // Information about the current lifecycle state. @@ -122,6 +125,7 @@ type AutonomousDatabase struct { MemoryPerOracleComputeUnitInGBs *int `mandatory:"false" json:"memoryPerOracleComputeUnitInGBs"` // The quantity of data in the database, in gigabytes. + // For Autonomous Transaction Processing databases using ECPUs on Serverless Infrastructure, this value is always populated. In all the other cases, this value will be null and `dataStorageSizeInTBs` will be populated instead. DataStorageSizeInGBs *int `mandatory:"false" json:"dataStorageSizeInGBs"` // The storage space consumed by Autonomous Database in GBs. @@ -160,7 +164,7 @@ type AutonomousDatabase struct { // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel AutonomousDatabaseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` - // The amount of storage that has been used, in terabytes. + // The amount of storage that has been used for Autonomous Databases in dedicated infrastructure, in terabytes. UsedDataStorageSizeInTBs *int `mandatory:"false" json:"usedDataStorageSizeInTBs"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_backup_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_backup_summary.go index 9fd23665209..54a3c09b7f0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_backup_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_backup_summary.go @@ -17,6 +17,7 @@ import ( // AutonomousDatabaseBackupSummary An Autonomous Database backup. // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). +// // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type AutonomousDatabaseBackupSummary struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_summary.go index edf023493b9..1e4ff9956a9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/autonomous_database_summary.go @@ -16,6 +16,7 @@ import ( ) // AutonomousDatabaseSummary An Oracle Autonomous Database. +// // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type AutonomousDatabaseSummary struct { @@ -32,6 +33,9 @@ type AutonomousDatabaseSummary struct { DbName *string `mandatory:"true" json:"dbName"` // The quantity of data in the database, in terabytes. + // The following points apply to Autonomous Databases on Serverless Infrastructure: + // - This is an integer field whose value remains null when the data size is in GBs and cannot be converted to TBs (by dividing the GB value by 1024) without rounding error. + // - To get the exact value of data storage size without rounding error, please see `dataStorageSizeInGBs` of Autonomous Database. DataStorageSizeInTBs *int `mandatory:"true" json:"dataStorageSizeInTBs"` // Information about the current lifecycle state. @@ -123,6 +127,7 @@ type AutonomousDatabaseSummary struct { MemoryPerOracleComputeUnitInGBs *int `mandatory:"false" json:"memoryPerOracleComputeUnitInGBs"` // The quantity of data in the database, in gigabytes. + // For Autonomous Transaction Processing databases using ECPUs on Serverless Infrastructure, this value is always populated. In all the other cases, this value will be null and `dataStorageSizeInTBs` will be populated instead. DataStorageSizeInGBs *int `mandatory:"false" json:"dataStorageSizeInGBs"` // The storage space consumed by Autonomous Database in GBs. @@ -161,7 +166,7 @@ type AutonomousDatabaseSummary struct { // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel AutonomousDatabaseSummaryLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` - // The amount of storage that has been used, in terabytes. + // The amount of storage that has been used for Autonomous Databases in dedicated infrastructure, in terabytes. UsedDataStorageSizeInTBs *int `mandatory:"false" json:"usedDataStorageSizeInTBs"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/change_exadb_vm_cluster_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/change_exadb_vm_cluster_compartment_details.go new file mode 100644 index 00000000000..6cb4f26aaf4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/change_exadb_vm_cluster_compartment_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeExadbVmClusterCompartmentDetails The configuration details for moving the Exadata VM cluster on Exascale Infrastructure to another compartment. Applies to Exadata Database Service on Exascale Infrastructure only. +type ChangeExadbVmClusterCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeExadbVmClusterCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeExadbVmClusterCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/change_exadb_vm_cluster_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/change_exadb_vm_cluster_compartment_request_response.go new file mode 100644 index 00000000000..5cf8a731309 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/change_exadb_vm_cluster_compartment_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeExadbVmClusterCompartmentRequest wrapper for the ChangeExadbVmClusterCompartment operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ChangeExadbVmClusterCompartment.go.html to see an example of how to use ChangeExadbVmClusterCompartmentRequest. +type ChangeExadbVmClusterCompartmentRequest struct { + + // Request to move Exadata VM cluster on Exascale Infrastructure to a different compartment + ChangeExadbVmClusterCompartmentDetails `contributesTo:"body"` + + // The Exadata VM cluster OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + ExadbVmClusterId *string `mandatory:"true" contributesTo:"path" name:"exadbVmClusterId"` + + // 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 + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ChangeExadbVmClusterCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeExadbVmClusterCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ChangeExadbVmClusterCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeExadbVmClusterCompartmentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeExadbVmClusterCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeExadbVmClusterCompartmentResponse wrapper for the ChangeExadbVmClusterCompartment operation +type ChangeExadbVmClusterCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use GetWorkRequest with a work request OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ChangeExadbVmClusterCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeExadbVmClusterCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/change_exascale_db_storage_vault_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/change_exascale_db_storage_vault_compartment_details.go new file mode 100644 index 00000000000..f8ec18fdfa2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/change_exascale_db_storage_vault_compartment_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeExascaleDbStorageVaultCompartmentDetails The configuration details for moving the Exadata Database Storage Vault to another compartment. +type ChangeExascaleDbStorageVaultCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeExascaleDbStorageVaultCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeExascaleDbStorageVaultCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/change_exascale_db_storage_vault_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/change_exascale_db_storage_vault_compartment_request_response.go new file mode 100644 index 00000000000..dd320688e00 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/change_exascale_db_storage_vault_compartment_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeExascaleDbStorageVaultCompartmentRequest wrapper for the ChangeExascaleDbStorageVaultCompartment operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ChangeExascaleDbStorageVaultCompartment.go.html to see an example of how to use ChangeExascaleDbStorageVaultCompartmentRequest. +type ChangeExascaleDbStorageVaultCompartmentRequest struct { + + // Request to move Exadata Database Storage Vault to a different compartment + ChangeExascaleDbStorageVaultCompartmentDetails `contributesTo:"body"` + + // The Exadata Database Storage Vault OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + ExascaleDbStorageVaultId *string `mandatory:"true" contributesTo:"path" name:"exascaleDbStorageVaultId"` + + // 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 + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ChangeExascaleDbStorageVaultCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeExascaleDbStorageVaultCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ChangeExascaleDbStorageVaultCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeExascaleDbStorageVaultCompartmentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeExascaleDbStorageVaultCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeExascaleDbStorageVaultCompartmentResponse wrapper for the ChangeExascaleDbStorageVaultCompartment operation +type ChangeExascaleDbStorageVaultCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use GetWorkRequest with a work request OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ChangeExascaleDbStorageVaultCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeExascaleDbStorageVaultCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/cloud_automation_apply_update_time_preference.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/cloud_automation_apply_update_time_preference.go new file mode 100644 index 00000000000..53b909326e9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/cloud_automation_apply_update_time_preference.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CloudAutomationApplyUpdateTimePreference Configure the time slot for applying VM cloud automation software updates to the cluster. When nothing is selected, the default time slot is 12 AM to 2 AM UTC. Any 2-hour slot is available starting at 12 AM. +type CloudAutomationApplyUpdateTimePreference struct { + + // Start time for polling VM cloud automation software updates for the cluster. If the startTime is not specified, 12 AM UTC is used by default. + ApplyUpdatePreferredStartTime *string `mandatory:"false" json:"applyUpdatePreferredStartTime"` + + // End time for polling VM cloud automation software updates for the cluster. If the endTime is not specified, 2 AM UTC is used by default. + ApplyUpdatePreferredEndTime *string `mandatory:"false" json:"applyUpdatePreferredEndTime"` +} + +func (m CloudAutomationApplyUpdateTimePreference) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CloudAutomationApplyUpdateTimePreference) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/cloud_automation_freeze_period.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/cloud_automation_freeze_period.go new file mode 100644 index 00000000000..79b420cddf7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/cloud_automation_freeze_period.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CloudAutomationFreezePeriod Enables a freeze period for the VM cluster prohibiting the VMs from getting cloud automation software updates during critical business cycles. Freeze period start date. Starts at 12:00 AM UTC on the selected date and ends at 11:59:59 PM UTC on the selected date. Validates to ensure the freeze period does not exceed 45 days. +type CloudAutomationFreezePeriod struct { + + // Start time of the freeze period cycle. + FreezePeriodStartTime *string `mandatory:"false" json:"freezePeriodStartTime"` + + // End time of the freeze period cycle. + FreezePeriodEndTime *string `mandatory:"false" json:"freezePeriodEndTime"` +} + +func (m CloudAutomationFreezePeriod) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CloudAutomationFreezePeriod) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/cloud_automation_update_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/cloud_automation_update_details.go new file mode 100644 index 00000000000..7f11de73fc7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/cloud_automation_update_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CloudAutomationUpdateDetails Specifies the properties necessary for cloud automation updates. This includes modifying the apply update time preference, enabling or disabling early adoption, and enabling, modifying, or disabling the update freeze period. +type CloudAutomationUpdateDetails struct { + + // Annotates whether the cluster should be part of early access to apply VM cloud automation software updates. Those clusters annotated as early access will download the software bits for cloud automation in the first week after the update is available, while other clusters will have to wait until the following week. + IsEarlyAdoptionEnabled *bool `mandatory:"false" json:"isEarlyAdoptionEnabled"` + + // Specifies if the freeze period is enabled for the VM cluster to prevent the VMs from receiving cloud automation software updates during critical business cycles. Freeze period starts at 12:00 AM UTC and ends at 11:59:59 PM UTC on the selected date. Ensure that the freezing period does not exceed 45 days. + IsFreezePeriodEnabled *bool `mandatory:"false" json:"isFreezePeriodEnabled"` + + ApplyUpdateTimePreference *CloudAutomationApplyUpdateTimePreference `mandatory:"false" json:"applyUpdateTimePreference"` + + FreezePeriod *CloudAutomationFreezePeriod `mandatory:"false" json:"freezePeriod"` +} + +func (m CloudAutomationUpdateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CloudAutomationUpdateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_base.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_base.go index 037302352b4..c9188b3377d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_base.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_base.go @@ -17,10 +17,12 @@ import ( ) // CreateAutonomousDatabaseBase Details to create an Oracle Autonomous Database. +// // **Notes:** // - To specify OCPU core count, you must use either `ocpuCount` or `cpuCoreCount`. You cannot use both parameters at the same time. For Autonomous Database Serverless instances, `ocpuCount` is not used. // - To specify a storage allocation, you must use either `dataStorageSizeInGBs` or `dataStorageSizeInTBs`. // - See the individual parameter discriptions for more information on the OCPU and storage value parameters. +// // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. type CreateAutonomousDatabaseBase interface { @@ -391,14 +393,14 @@ func (m *createautonomousdatabasebase) UnmarshalPolymorphicJSON(data []byte) (in mm := CreateCrossRegionDisasterRecoveryDetails{} err = json.Unmarshal(data, &mm) return mm, err - case "CROSS_TENANCY_DISASTER_RECOVERY": - mm := CreateCrossTenancyDisasterRecoveryDetails{} - err = json.Unmarshal(data, &mm) - return mm, err case "BACKUP_FROM_TIMESTAMP": mm := CreateAutonomousDatabaseFromBackupTimestampDetails{} err = json.Unmarshal(data, &mm) return mm, err + case "CROSS_TENANCY_DISASTER_RECOVERY": + mm := CreateCrossTenancyDisasterRecoveryDetails{} + err = json.Unmarshal(data, &mm) + return mm, err case "CROSS_REGION_DATAGUARD": mm := CreateCrossRegionAutonomousDatabaseDataGuardDetails{} err = json.Unmarshal(data, &mm) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_database_software_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_database_software_image_details.go index 558f32b34ef..906ceb21c70 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_database_software_image_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_database_software_image_details.go @@ -86,18 +86,21 @@ const ( CreateDatabaseSoftwareImageDetailsImageShapeFamilyVmBmShape CreateDatabaseSoftwareImageDetailsImageShapeFamilyEnum = "VM_BM_SHAPE" CreateDatabaseSoftwareImageDetailsImageShapeFamilyExadataShape CreateDatabaseSoftwareImageDetailsImageShapeFamilyEnum = "EXADATA_SHAPE" CreateDatabaseSoftwareImageDetailsImageShapeFamilyExaccShape CreateDatabaseSoftwareImageDetailsImageShapeFamilyEnum = "EXACC_SHAPE" + CreateDatabaseSoftwareImageDetailsImageShapeFamilyExadbxsShape CreateDatabaseSoftwareImageDetailsImageShapeFamilyEnum = "EXADBXS_SHAPE" ) var mappingCreateDatabaseSoftwareImageDetailsImageShapeFamilyEnum = map[string]CreateDatabaseSoftwareImageDetailsImageShapeFamilyEnum{ "VM_BM_SHAPE": CreateDatabaseSoftwareImageDetailsImageShapeFamilyVmBmShape, "EXADATA_SHAPE": CreateDatabaseSoftwareImageDetailsImageShapeFamilyExadataShape, "EXACC_SHAPE": CreateDatabaseSoftwareImageDetailsImageShapeFamilyExaccShape, + "EXADBXS_SHAPE": CreateDatabaseSoftwareImageDetailsImageShapeFamilyExadbxsShape, } var mappingCreateDatabaseSoftwareImageDetailsImageShapeFamilyEnumLowerCase = map[string]CreateDatabaseSoftwareImageDetailsImageShapeFamilyEnum{ "vm_bm_shape": CreateDatabaseSoftwareImageDetailsImageShapeFamilyVmBmShape, "exadata_shape": CreateDatabaseSoftwareImageDetailsImageShapeFamilyExadataShape, "exacc_shape": CreateDatabaseSoftwareImageDetailsImageShapeFamilyExaccShape, + "exadbxs_shape": CreateDatabaseSoftwareImageDetailsImageShapeFamilyExadbxsShape, } // GetCreateDatabaseSoftwareImageDetailsImageShapeFamilyEnumValues Enumerates the set of values for CreateDatabaseSoftwareImageDetailsImageShapeFamilyEnum @@ -115,6 +118,7 @@ func GetCreateDatabaseSoftwareImageDetailsImageShapeFamilyEnumStringValues() []s "VM_BM_SHAPE", "EXADATA_SHAPE", "EXACC_SHAPE", + "EXADBXS_SHAPE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_exadb_vm_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_exadb_vm_cluster_details.go new file mode 100644 index 00000000000..0162e61cf14 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_exadb_vm_cluster_details.go @@ -0,0 +1,172 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateExadbVmClusterDetails Details for the create Exadata VM cluster on Exascale Infrastructure operation. Applies to Exadata Database Service on Exascale Infrastructure only. +type CreateExadbVmClusterDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name of the availability domain in which the Exadata VM cluster on Exascale Infrastructure is located. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet associated with the Exadata VM cluster on Exascale Infrastructure. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. + BackupSubnetId *string `mandatory:"true" json:"backupSubnetId"` + + // The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name does not need to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The hostname for the Exadata VM cluster on Exascale Infrastructure. The hostname must begin with an alphabetic character, and + // can contain alphanumeric characters and hyphens (-). For Exadata systems, the maximum length of the hostname is 12 characters. + // The maximum length of the combined hostname and domain is 63 characters. + // **Note:** The hostname must be unique within the subnet. If it is not unique, + // then the Exadata VM cluster on Exascale Infrastructure will fail to provision. + Hostname *string `mandatory:"true" json:"hostname"` + + // The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster on Exascale Infrastructure. + SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` + + // The shape of the Exadata VM cluster on Exascale Infrastructure resource + Shape *string `mandatory:"true" json:"shape"` + + // The number of nodes in the Exadata VM cluster on Exascale Infrastructure. + NodeCount *int `mandatory:"true" json:"nodeCount"` + + // The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure. + TotalECpuCount *int `mandatory:"true" json:"totalECpuCount"` + + // The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure. + EnabledECpuCount *int `mandatory:"true" json:"enabledECpuCount"` + + VmFileSystemStorage *ExadbVmClusterStorageDetails `mandatory:"true" json:"vmFileSystemStorage"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. + ExascaleDbStorageVaultId *string `mandatory:"true" json:"exascaleDbStorageVaultId"` + + // Grid Setup will be done using this grid image id + GridImageId *string `mandatory:"true" json:"gridImageId"` + + // The cluster name for Exadata VM cluster on Exascale Infrastructure. The cluster name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. + ClusterName *string `mandatory:"false" json:"clusterName"` + + // A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the Oracle-provided internet and VCN + // resolver is enabled for the specified subnet, then the domain name for the subnet is used + // (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. + // Applies to Exadata Database Service on Exascale Infrastructure only. + Domain *string `mandatory:"false" json:"domain"` + + // The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. The default is BRING_YOUR_OWN_LICENSE. + LicenseModel CreateExadbVmClusterDetailsLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` + + // The time zone to use for the Exadata VM cluster on Exascale Infrastructure. For details, see Time Zones (https://docs.cloud.oracle.com/Content/Database/References/timezones.htm). + TimeZone *string `mandatory:"false" json:"timeZone"` + + // The TCP Single Client Access Name (SCAN) port. The default port is 1521. + ScanListenerPortTcp *int `mandatory:"false" json:"scanListenerPortTcp"` + + // The Secured Communication (TCPS) protocol Single Client Access Name (SCAN) port. The default port is 2484. + ScanListenerPortTcpSsl *int `mandatory:"false" json:"scanListenerPortTcpSsl"` + + // The private zone ID in which you want DNS records to be created. + PrivateZoneId *string `mandatory:"false" json:"privateZoneId"` + + // The list of OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) for the network security groups (NSGs) to which this resource belongs. Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). + // **NsgIds restrictions:** + // - A network security group (NSG) is optional for Autonomous Databases with private access. The nsgIds list can be empty. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // A list of the OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that the backup network of this DB system belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). Applicable only to Exadata systems. + BackupNetworkNsgIds []string `mandatory:"false" json:"backupNetworkNsgIds"` + + // Operating system version of the image. + SystemVersion *string `mandatory:"false" json:"systemVersion"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + DataCollectionOptions *DataCollectionOptions `mandatory:"false" json:"dataCollectionOptions"` +} + +func (m CreateExadbVmClusterDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateExadbVmClusterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateExadbVmClusterDetailsLicenseModelEnum(string(m.LicenseModel)); !ok && m.LicenseModel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LicenseModel: %s. Supported values are: %s.", m.LicenseModel, strings.Join(GetCreateExadbVmClusterDetailsLicenseModelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateExadbVmClusterDetailsLicenseModelEnum Enum with underlying type: string +type CreateExadbVmClusterDetailsLicenseModelEnum string + +// Set of constants representing the allowable values for CreateExadbVmClusterDetailsLicenseModelEnum +const ( + CreateExadbVmClusterDetailsLicenseModelLicenseIncluded CreateExadbVmClusterDetailsLicenseModelEnum = "LICENSE_INCLUDED" + CreateExadbVmClusterDetailsLicenseModelBringYourOwnLicense CreateExadbVmClusterDetailsLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingCreateExadbVmClusterDetailsLicenseModelEnum = map[string]CreateExadbVmClusterDetailsLicenseModelEnum{ + "LICENSE_INCLUDED": CreateExadbVmClusterDetailsLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": CreateExadbVmClusterDetailsLicenseModelBringYourOwnLicense, +} + +var mappingCreateExadbVmClusterDetailsLicenseModelEnumLowerCase = map[string]CreateExadbVmClusterDetailsLicenseModelEnum{ + "license_included": CreateExadbVmClusterDetailsLicenseModelLicenseIncluded, + "bring_your_own_license": CreateExadbVmClusterDetailsLicenseModelBringYourOwnLicense, +} + +// GetCreateExadbVmClusterDetailsLicenseModelEnumValues Enumerates the set of values for CreateExadbVmClusterDetailsLicenseModelEnum +func GetCreateExadbVmClusterDetailsLicenseModelEnumValues() []CreateExadbVmClusterDetailsLicenseModelEnum { + values := make([]CreateExadbVmClusterDetailsLicenseModelEnum, 0) + for _, v := range mappingCreateExadbVmClusterDetailsLicenseModelEnum { + values = append(values, v) + } + return values +} + +// GetCreateExadbVmClusterDetailsLicenseModelEnumStringValues Enumerates the set of values in String for CreateExadbVmClusterDetailsLicenseModelEnum +func GetCreateExadbVmClusterDetailsLicenseModelEnumStringValues() []string { + return []string{ + "LICENSE_INCLUDED", + "BRING_YOUR_OWN_LICENSE", + } +} + +// GetMappingCreateExadbVmClusterDetailsLicenseModelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateExadbVmClusterDetailsLicenseModelEnum(val string) (CreateExadbVmClusterDetailsLicenseModelEnum, bool) { + enum, ok := mappingCreateExadbVmClusterDetailsLicenseModelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_exadb_vm_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_exadb_vm_cluster_request_response.go new file mode 100644 index 00000000000..dcd5b4f81c7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_exadb_vm_cluster_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateExadbVmClusterRequest wrapper for the CreateExadbVmCluster operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/CreateExadbVmCluster.go.html to see an example of how to use CreateExadbVmClusterRequest. +type CreateExadbVmClusterRequest struct { + + // Request to create a Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only. See The New Exadata Cloud Service Resource Model (https://docs.cloud.oracle.com/iaas/Content/Database/iaas/Content/Database/Concepts/exaflexsystem.htm#exaflexsystem_topic-resource_model) for information on this resource type. + CreateExadbVmClusterDetails `contributesTo:"body"` + + // 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 + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateExadbVmClusterRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateExadbVmClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateExadbVmClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateExadbVmClusterRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateExadbVmClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateExadbVmClusterResponse wrapper for the CreateExadbVmCluster operation +type CreateExadbVmClusterResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ExadbVmCluster instance + ExadbVmCluster `presentIn:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use GetWorkRequest with a work request OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateExadbVmClusterResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateExadbVmClusterResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_exascale_db_storage_vault_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_exascale_db_storage_vault_details.go new file mode 100644 index 00000000000..d1902a8f2c6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_exascale_db_storage_vault_details.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateExascaleDbStorageVaultDetails Details to create a Exadata Database Storage Vault. +type CreateExascaleDbStorageVaultDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The user-friendly name for the Exadata Database Storage Vault. The name does not need to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The name of the availability domain in which the Exadata Database Storage Vault is located. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + HighCapacityDatabaseStorage *ExascaleDbStorageInputDetails `mandatory:"true" json:"highCapacityDatabaseStorage"` + + // Exadata Database Storage Vault description. + Description *string `mandatory:"false" json:"description"` + + // The time zone that you want to use for the Exadata Database Storage Vault. For details, see Time Zones (https://docs.cloud.oracle.com/Content/Database/References/timezones.htm). + TimeZone *string `mandatory:"false" json:"timeZone"` + + // The size of additional Flash Cache in percentage of High Capacity database storage. + AdditionalFlashCacheInPercent *int `mandatory:"false" json:"additionalFlashCacheInPercent"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateExascaleDbStorageVaultDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateExascaleDbStorageVaultDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_exascale_db_storage_vault_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_exascale_db_storage_vault_request_response.go new file mode 100644 index 00000000000..796aec384e4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_exascale_db_storage_vault_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateExascaleDbStorageVaultRequest wrapper for the CreateExascaleDbStorageVault operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/CreateExascaleDbStorageVault.go.html to see an example of how to use CreateExascaleDbStorageVaultRequest. +type CreateExascaleDbStorageVaultRequest struct { + + // Request to create a Exadata Database Storage Vault. + CreateExascaleDbStorageVaultDetails `contributesTo:"body"` + + // 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 + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateExascaleDbStorageVaultRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateExascaleDbStorageVaultRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateExascaleDbStorageVaultRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateExascaleDbStorageVaultRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateExascaleDbStorageVaultRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateExascaleDbStorageVaultResponse wrapper for the CreateExascaleDbStorageVault operation +type CreateExascaleDbStorageVaultResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ExascaleDbStorageVault instance + ExascaleDbStorageVault `presentIn:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use GetWorkRequest with a work request OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateExascaleDbStorageVaultResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateExascaleDbStorageVaultResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_pluggable_database_creation_type_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_pluggable_database_creation_type_details.go index 86f109aaf69..edfd54de5ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_pluggable_database_creation_type_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_pluggable_database_creation_type_details.go @@ -20,11 +20,19 @@ import ( // Use `LOCAL_CLONE_PDB` for creating a new PDB using Local Clone on Source Pluggable Database. This will Clone and starts a // pluggable database (PDB) in the same database (CDB) as the source PDB. The source PDB must be in the `READ_WRITE` openMode to // perform the clone operation. +// +// sourcePluggableDatabaseSnapshotId and isThinClone options are supported only for Exadata VM cluster on Exascale Infrastructure. +// +// isThinClone options are supported only for Exadata VM cluster on Exascale Infrastructure. // Use `REMOTE_CLONE_PDB` for creating a new PDB using Remote Clone on Source Pluggable Database. This will Clone a pluggable // database (PDB) to a different database from the source PDB. The cloned PDB will be started upon completion of the clone // operation. The source PDB must be in the `READ_WRITE` openMode when performing the clone. // For Exadata Cloud@Customer instances, the source pluggable database (PDB) must be on the same Exadata Infrastructure as the // target container database (CDB) to create a remote clone. +// +// sourcePluggableDatabaseSnapshotId and isThinClone options are supported only for Exadata VM cluster on Exascale Infrastructure. +// +// isThinClone options are supported only for Exadata VM cluster on Exascale Infrastructure. // Use `RELOCATE_PDB` for relocating the Pluggable Database from Source CDB and creating it in target CDB. This will relocate a // pluggable database (PDB) to a different database from the source PDB. The source PDB must be in the `READ_WRITE` openMode when // performing the relocate. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_pluggable_database_from_local_clone_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_pluggable_database_from_local_clone_details.go index d59934d578c..8ff187a0912 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_pluggable_database_from_local_clone_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_pluggable_database_from_local_clone_details.go @@ -21,6 +21,9 @@ type CreatePluggableDatabaseFromLocalCloneDetails struct { // The OCID of the Source Pluggable Database. SourcePluggableDatabaseId *string `mandatory:"true" json:"sourcePluggableDatabaseId"` + + // True if Pluggable Database needs to be thin cloned and false if Pluggable Database needs to be thick cloned. + IsThinClone *bool `mandatory:"false" json:"isThinClone"` } func (m CreatePluggableDatabaseFromLocalCloneDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_pluggable_database_from_remote_clone_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_pluggable_database_from_remote_clone_details.go index 03d5137d628..ee37bc26cf7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_pluggable_database_from_remote_clone_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_pluggable_database_from_remote_clone_details.go @@ -34,6 +34,9 @@ type CreatePluggableDatabaseFromRemoteCloneDetails struct { DblinkUserPassword *string `mandatory:"false" json:"dblinkUserPassword"` RefreshableCloneDetails *CreatePluggableDatabaseRefreshableCloneDetails `mandatory:"false" json:"refreshableCloneDetails"` + + // True if Pluggable Database needs to be thin cloned and false if Pluggable Database needs to be thick cloned. + IsThinClone *bool `mandatory:"false" json:"isThinClone"` } func (m CreatePluggableDatabaseFromRemoteCloneDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/database_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/database_client.go index c94f2008aee..69e04212cce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/database_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/database_client.go @@ -1403,6 +1403,130 @@ func (client DatabaseClient) changeExadataInfrastructureCompartment(ctx context. return response, err } +// ChangeExadbVmClusterCompartment Moves a Exadata VM cluster on Exascale Infrastructure and its dependent resources to another compartment. Applies to Exadata Database Service on Exascale Infrastructure only. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ChangeExadbVmClusterCompartment.go.html to see an example of how to use ChangeExadbVmClusterCompartment API. +func (client DatabaseClient) ChangeExadbVmClusterCompartment(ctx context.Context, request ChangeExadbVmClusterCompartmentRequest) (response ChangeExadbVmClusterCompartmentResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.changeExadbVmClusterCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeExadbVmClusterCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeExadbVmClusterCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeExadbVmClusterCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeExadbVmClusterCompartmentResponse") + } + return +} + +// changeExadbVmClusterCompartment implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) changeExadbVmClusterCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/exadbVmClusters/{exadbVmClusterId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeExadbVmClusterCompartmentResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/ChangeExadbVmClusterCompartment" + err = common.PostProcessServiceError(err, "Database", "ChangeExadbVmClusterCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeExascaleDbStorageVaultCompartment Moves a Exadata Database Storage Vault to another compartment. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ChangeExascaleDbStorageVaultCompartment.go.html to see an example of how to use ChangeExascaleDbStorageVaultCompartment API. +func (client DatabaseClient) ChangeExascaleDbStorageVaultCompartment(ctx context.Context, request ChangeExascaleDbStorageVaultCompartmentRequest) (response ChangeExascaleDbStorageVaultCompartmentResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.changeExascaleDbStorageVaultCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeExascaleDbStorageVaultCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeExascaleDbStorageVaultCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeExascaleDbStorageVaultCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeExascaleDbStorageVaultCompartmentResponse") + } + return +} + +// changeExascaleDbStorageVaultCompartment implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) changeExascaleDbStorageVaultCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/exascaleDbStorageVaults/{exascaleDbStorageVaultId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeExascaleDbStorageVaultCompartmentResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/ChangeExascaleDbStorageVaultCompartment" + err = common.PostProcessServiceError(err, "Database", "ChangeExascaleDbStorageVaultCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ChangeExternalContainerDatabaseCompartment Move the CreateExternalContainerDatabaseDetails // and its dependent resources to the specified compartment. // For more information about moving external container databases, see @@ -3406,6 +3530,130 @@ func (client DatabaseClient) createExadataInfrastructure(ctx context.Context, re return response, err } +// CreateExadbVmCluster Creates an Exadata VM cluster on Exascale Infrastructure +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/CreateExadbVmCluster.go.html to see an example of how to use CreateExadbVmCluster API. +func (client DatabaseClient) CreateExadbVmCluster(ctx context.Context, request CreateExadbVmClusterRequest) (response CreateExadbVmClusterResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createExadbVmCluster, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateExadbVmClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateExadbVmClusterResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateExadbVmClusterResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateExadbVmClusterResponse") + } + return +} + +// createExadbVmCluster implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) createExadbVmCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/exadbVmClusters", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateExadbVmClusterResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/CreateExadbVmCluster" + err = common.PostProcessServiceError(err, "Database", "CreateExadbVmCluster", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateExascaleDbStorageVault Creates an Exadata Database Storage Vault +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/CreateExascaleDbStorageVault.go.html to see an example of how to use CreateExascaleDbStorageVault API. +func (client DatabaseClient) CreateExascaleDbStorageVault(ctx context.Context, request CreateExascaleDbStorageVaultRequest) (response CreateExascaleDbStorageVaultResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createExascaleDbStorageVault, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateExascaleDbStorageVaultResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateExascaleDbStorageVaultResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateExascaleDbStorageVaultResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateExascaleDbStorageVaultResponse") + } + return +} + +// createExascaleDbStorageVault implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) createExascaleDbStorageVault(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/exascaleDbStorageVaults", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateExascaleDbStorageVaultResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/CreateExascaleDbStorageVault" + err = common.PostProcessServiceError(err, "Database", "CreateExascaleDbStorageVault", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreateExternalBackupJob Creates a new backup resource and returns the information the caller needs to back up an on-premises Oracle Database to Oracle Cloud Infrastructure. // **Note:** This API is used by an Oracle Cloud Infrastructure Python script that is packaged with the Oracle Cloud Infrastructure CLI. Oracle recommends that you use the script instead using the API directly. See Migrating an On-Premises Database to Oracle Cloud Infrastructure by Creating a Backup in the Cloud (https://docs.cloud.oracle.com/Content/Database/Tasks/mig-onprembackup.htm) for more information. // @@ -5083,14 +5331,12 @@ func (client DatabaseClient) deleteExadataInfrastructure(ctx context.Context, re return response, err } -// DeleteExternalContainerDatabase Deletes the CreateExternalContainerDatabaseDetails -// resource. Any external pluggable databases registered under this container database must be deleted in -// your Oracle Cloud Infrastructure tenancy prior to this operation. +// DeleteExadbVmCluster Deletes the specified Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/DeleteExternalContainerDatabase.go.html to see an example of how to use DeleteExternalContainerDatabase API. -func (client DatabaseClient) DeleteExternalContainerDatabase(ctx context.Context, request DeleteExternalContainerDatabaseRequest) (response DeleteExternalContainerDatabaseResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/DeleteExadbVmCluster.go.html to see an example of how to use DeleteExadbVmCluster API. +func (client DatabaseClient) DeleteExadbVmCluster(ctx context.Context, request DeleteExadbVmClusterRequest) (response DeleteExadbVmClusterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -5099,42 +5345,42 @@ func (client DatabaseClient) DeleteExternalContainerDatabase(ctx context.Context if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteExternalContainerDatabase, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteExadbVmCluster, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteExternalContainerDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteExadbVmClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteExternalContainerDatabaseResponse{} + response = DeleteExadbVmClusterResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteExternalContainerDatabaseResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteExadbVmClusterResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteExternalContainerDatabaseResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteExadbVmClusterResponse") } return } -// deleteExternalContainerDatabase implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) deleteExternalContainerDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteExadbVmCluster implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) deleteExadbVmCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/externalcontainerdatabases/{externalContainerDatabaseId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/exadbVmClusters/{exadbVmClusterId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteExternalContainerDatabaseResponse + var response DeleteExadbVmClusterResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalContainerDatabase/DeleteExternalContainerDatabase" - err = common.PostProcessServiceError(err, "Database", "DeleteExternalContainerDatabase", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/DeleteExadbVmCluster" + err = common.PostProcessServiceError(err, "Database", "DeleteExadbVmCluster", apiReferenceLink) return response, err } @@ -5142,14 +5388,12 @@ func (client DatabaseClient) deleteExternalContainerDatabase(ctx context.Context return response, err } -// DeleteExternalDatabaseConnector Deletes an external database connector. -// Any services enabled using the external database connector must be -// deleted prior to this operation. +// DeleteExascaleDbStorageVault Deletes the specified Exadata Database Storage Vault. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/DeleteExternalDatabaseConnector.go.html to see an example of how to use DeleteExternalDatabaseConnector API. -func (client DatabaseClient) DeleteExternalDatabaseConnector(ctx context.Context, request DeleteExternalDatabaseConnectorRequest) (response DeleteExternalDatabaseConnectorResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/DeleteExascaleDbStorageVault.go.html to see an example of how to use DeleteExascaleDbStorageVault API. +func (client DatabaseClient) DeleteExascaleDbStorageVault(ctx context.Context, request DeleteExascaleDbStorageVaultRequest) (response DeleteExascaleDbStorageVaultResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -5158,42 +5402,42 @@ func (client DatabaseClient) DeleteExternalDatabaseConnector(ctx context.Context if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteExternalDatabaseConnector, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteExascaleDbStorageVault, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteExternalDatabaseConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteExascaleDbStorageVaultResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteExternalDatabaseConnectorResponse{} + response = DeleteExascaleDbStorageVaultResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteExternalDatabaseConnectorResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteExascaleDbStorageVaultResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteExternalDatabaseConnectorResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteExascaleDbStorageVaultResponse") } return } -// deleteExternalDatabaseConnector implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) deleteExternalDatabaseConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteExascaleDbStorageVault implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) deleteExascaleDbStorageVault(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/externaldatabaseconnectors/{externalDatabaseConnectorId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/exascaleDbStorageVaults/{exascaleDbStorageVaultId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteExternalDatabaseConnectorResponse + var response DeleteExascaleDbStorageVaultResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalDatabaseConnector/DeleteExternalDatabaseConnector" - err = common.PostProcessServiceError(err, "Database", "DeleteExternalDatabaseConnector", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/DeleteExascaleDbStorageVault" + err = common.PostProcessServiceError(err, "Database", "DeleteExascaleDbStorageVault", apiReferenceLink) return response, err } @@ -5201,12 +5445,14 @@ func (client DatabaseClient) deleteExternalDatabaseConnector(ctx context.Context return response, err } -// DeleteExternalNonContainerDatabase Deletes the Oracle Cloud Infrastructure resource representing an external non-container database. +// DeleteExternalContainerDatabase Deletes the CreateExternalContainerDatabaseDetails +// resource. Any external pluggable databases registered under this container database must be deleted in +// your Oracle Cloud Infrastructure tenancy prior to this operation. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/DeleteExternalNonContainerDatabase.go.html to see an example of how to use DeleteExternalNonContainerDatabase API. -func (client DatabaseClient) DeleteExternalNonContainerDatabase(ctx context.Context, request DeleteExternalNonContainerDatabaseRequest) (response DeleteExternalNonContainerDatabaseResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/DeleteExternalContainerDatabase.go.html to see an example of how to use DeleteExternalContainerDatabase API. +func (client DatabaseClient) DeleteExternalContainerDatabase(ctx context.Context, request DeleteExternalContainerDatabaseRequest) (response DeleteExternalContainerDatabaseResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -5215,42 +5461,42 @@ func (client DatabaseClient) DeleteExternalNonContainerDatabase(ctx context.Cont if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteExternalNonContainerDatabase, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteExternalContainerDatabase, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteExternalNonContainerDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteExternalContainerDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteExternalNonContainerDatabaseResponse{} + response = DeleteExternalContainerDatabaseResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteExternalNonContainerDatabaseResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteExternalContainerDatabaseResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteExternalNonContainerDatabaseResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteExternalContainerDatabaseResponse") } return } -// deleteExternalNonContainerDatabase implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) deleteExternalNonContainerDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteExternalContainerDatabase implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) deleteExternalContainerDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/externalcontainerdatabases/{externalContainerDatabaseId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteExternalNonContainerDatabaseResponse + var response DeleteExternalContainerDatabaseResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/DeleteExternalNonContainerDatabase" - err = common.PostProcessServiceError(err, "Database", "DeleteExternalNonContainerDatabase", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalContainerDatabase/DeleteExternalContainerDatabase" + err = common.PostProcessServiceError(err, "Database", "DeleteExternalContainerDatabase", apiReferenceLink) return response, err } @@ -5258,8 +5504,124 @@ func (client DatabaseClient) deleteExternalNonContainerDatabase(ctx context.Cont return response, err } -// DeleteExternalPluggableDatabase Deletes the CreateExternalPluggableDatabaseDetails. -// resource. +// DeleteExternalDatabaseConnector Deletes an external database connector. +// Any services enabled using the external database connector must be +// deleted prior to this operation. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/DeleteExternalDatabaseConnector.go.html to see an example of how to use DeleteExternalDatabaseConnector API. +func (client DatabaseClient) DeleteExternalDatabaseConnector(ctx context.Context, request DeleteExternalDatabaseConnectorRequest) (response DeleteExternalDatabaseConnectorResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteExternalDatabaseConnector, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteExternalDatabaseConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteExternalDatabaseConnectorResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteExternalDatabaseConnectorResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteExternalDatabaseConnectorResponse") + } + return +} + +// deleteExternalDatabaseConnector implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) deleteExternalDatabaseConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/externaldatabaseconnectors/{externalDatabaseConnectorId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteExternalDatabaseConnectorResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalDatabaseConnector/DeleteExternalDatabaseConnector" + err = common.PostProcessServiceError(err, "Database", "DeleteExternalDatabaseConnector", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteExternalNonContainerDatabase Deletes the Oracle Cloud Infrastructure resource representing an external non-container database. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/DeleteExternalNonContainerDatabase.go.html to see an example of how to use DeleteExternalNonContainerDatabase API. +func (client DatabaseClient) DeleteExternalNonContainerDatabase(ctx context.Context, request DeleteExternalNonContainerDatabaseRequest) (response DeleteExternalNonContainerDatabaseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteExternalNonContainerDatabase, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteExternalNonContainerDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteExternalNonContainerDatabaseResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteExternalNonContainerDatabaseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteExternalNonContainerDatabaseResponse") + } + return +} + +// deleteExternalNonContainerDatabase implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) deleteExternalNonContainerDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteExternalNonContainerDatabaseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/DeleteExternalNonContainerDatabase" + err = common.PostProcessServiceError(err, "Database", "DeleteExternalNonContainerDatabase", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteExternalPluggableDatabase Deletes the CreateExternalPluggableDatabaseDetails. +// resource. // // # See also // @@ -10263,13 +10625,12 @@ func (client DatabaseClient) getExadataIormConfig(ctx context.Context, request c return response, err } -// GetExternalBackupJob Gets information about the specified external backup job. -// **Note:** This API is used by an Oracle Cloud Infrastructure Python script that is packaged with the Oracle Cloud Infrastructure CLI. Oracle recommends that you use the script instead using the API directly. See Migrating an On-Premises Database to Oracle Cloud Infrastructure by Creating a Backup in the Cloud (https://docs.cloud.oracle.com/Content/Database/Tasks/mig-onprembackup.htm) for more information. +// GetExadbVmCluster Gets information about the specified Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExternalBackupJob.go.html to see an example of how to use GetExternalBackupJob API. -func (client DatabaseClient) GetExternalBackupJob(ctx context.Context, request GetExternalBackupJobRequest) (response GetExternalBackupJobResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExadbVmCluster.go.html to see an example of how to use GetExadbVmCluster API. +func (client DatabaseClient) GetExadbVmCluster(ctx context.Context, request GetExadbVmClusterRequest) (response GetExadbVmClusterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -10278,42 +10639,42 @@ func (client DatabaseClient) GetExternalBackupJob(ctx context.Context, request G if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getExternalBackupJob, policy) + ociResponse, err = common.Retry(ctx, request, client.getExadbVmCluster, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetExternalBackupJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetExadbVmClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetExternalBackupJobResponse{} + response = GetExadbVmClusterResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetExternalBackupJobResponse); ok { + if convertedResponse, ok := ociResponse.(GetExadbVmClusterResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetExternalBackupJobResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetExadbVmClusterResponse") } return } -// getExternalBackupJob implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) getExternalBackupJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getExadbVmCluster implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getExadbVmCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/externalBackupJobs/{backupId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exadbVmClusters/{exadbVmClusterId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetExternalBackupJobResponse + var response GetExadbVmClusterResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalBackupJob/GetExternalBackupJob" - err = common.PostProcessServiceError(err, "Database", "GetExternalBackupJob", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/GetExadbVmCluster" + err = common.PostProcessServiceError(err, "Database", "GetExadbVmCluster", apiReferenceLink) return response, err } @@ -10321,12 +10682,12 @@ func (client DatabaseClient) getExternalBackupJob(ctx context.Context, request c return response, err } -// GetExternalContainerDatabase Gets information about the specified external container database. +// GetExadbVmClusterUpdate Gets information about a specified maintenance update package for a Exadata VM cluster on Exascale Infrastructure. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExternalContainerDatabase.go.html to see an example of how to use GetExternalContainerDatabase API. -func (client DatabaseClient) GetExternalContainerDatabase(ctx context.Context, request GetExternalContainerDatabaseRequest) (response GetExternalContainerDatabaseResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExadbVmClusterUpdate.go.html to see an example of how to use GetExadbVmClusterUpdate API. +func (client DatabaseClient) GetExadbVmClusterUpdate(ctx context.Context, request GetExadbVmClusterUpdateRequest) (response GetExadbVmClusterUpdateResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -10335,42 +10696,42 @@ func (client DatabaseClient) GetExternalContainerDatabase(ctx context.Context, r if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getExternalContainerDatabase, policy) + ociResponse, err = common.Retry(ctx, request, client.getExadbVmClusterUpdate, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetExternalContainerDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetExadbVmClusterUpdateResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetExternalContainerDatabaseResponse{} + response = GetExadbVmClusterUpdateResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetExternalContainerDatabaseResponse); ok { + if convertedResponse, ok := ociResponse.(GetExadbVmClusterUpdateResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetExternalContainerDatabaseResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetExadbVmClusterUpdateResponse") } return } -// getExternalContainerDatabase implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) getExternalContainerDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getExadbVmClusterUpdate implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getExadbVmClusterUpdate(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/externalcontainerdatabases/{externalContainerDatabaseId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exadbVmClusters/{exadbVmClusterId}/updates/{updateId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetExternalContainerDatabaseResponse + var response GetExadbVmClusterUpdateResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalContainerDatabase/GetExternalContainerDatabase" - err = common.PostProcessServiceError(err, "Database", "GetExternalContainerDatabase", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmClusterUpdate/GetExadbVmClusterUpdate" + err = common.PostProcessServiceError(err, "Database", "GetExadbVmClusterUpdate", apiReferenceLink) return response, err } @@ -10378,12 +10739,12 @@ func (client DatabaseClient) getExternalContainerDatabase(ctx context.Context, r return response, err } -// GetExternalDatabaseConnector Gets information about the specified external database connector. +// GetExadbVmClusterUpdateHistoryEntry Gets the maintenance update history details for the specified update history entry. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExternalDatabaseConnector.go.html to see an example of how to use GetExternalDatabaseConnector API. -func (client DatabaseClient) GetExternalDatabaseConnector(ctx context.Context, request GetExternalDatabaseConnectorRequest) (response GetExternalDatabaseConnectorResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExadbVmClusterUpdateHistoryEntry.go.html to see an example of how to use GetExadbVmClusterUpdateHistoryEntry API. +func (client DatabaseClient) GetExadbVmClusterUpdateHistoryEntry(ctx context.Context, request GetExadbVmClusterUpdateHistoryEntryRequest) (response GetExadbVmClusterUpdateHistoryEntryResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -10392,55 +10753,55 @@ func (client DatabaseClient) GetExternalDatabaseConnector(ctx context.Context, r if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getExternalDatabaseConnector, policy) + ociResponse, err = common.Retry(ctx, request, client.getExadbVmClusterUpdateHistoryEntry, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetExternalDatabaseConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetExadbVmClusterUpdateHistoryEntryResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetExternalDatabaseConnectorResponse{} + response = GetExadbVmClusterUpdateHistoryEntryResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetExternalDatabaseConnectorResponse); ok { + if convertedResponse, ok := ociResponse.(GetExadbVmClusterUpdateHistoryEntryResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetExternalDatabaseConnectorResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetExadbVmClusterUpdateHistoryEntryResponse") } return } -// getExternalDatabaseConnector implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) getExternalDatabaseConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getExadbVmClusterUpdateHistoryEntry implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getExadbVmClusterUpdateHistoryEntry(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/externaldatabaseconnectors/{externalDatabaseConnectorId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exadbVmClusters/{exadbVmClusterId}/updateHistoryEntries/{updateHistoryEntryId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetExternalDatabaseConnectorResponse + var response GetExadbVmClusterUpdateHistoryEntryResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalDatabaseConnector/GetExternalDatabaseConnector" - err = common.PostProcessServiceError(err, "Database", "GetExternalDatabaseConnector", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmClusterUpdateHistoryEntry/GetExadbVmClusterUpdateHistoryEntry" + err = common.PostProcessServiceError(err, "Database", "GetExadbVmClusterUpdateHistoryEntry", apiReferenceLink) return response, err } - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &externaldatabaseconnector{}) + err = common.UnmarshalResponse(httpResponse, &response) return response, err } -// GetExternalNonContainerDatabase Gets information about a specific external non-container database. +// GetExascaleDbStorageVault Gets information about the specified Exadata Database Storage Vaults in the specified compartment. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExternalNonContainerDatabase.go.html to see an example of how to use GetExternalNonContainerDatabase API. -func (client DatabaseClient) GetExternalNonContainerDatabase(ctx context.Context, request GetExternalNonContainerDatabaseRequest) (response GetExternalNonContainerDatabaseResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExascaleDbStorageVault.go.html to see an example of how to use GetExascaleDbStorageVault API. +func (client DatabaseClient) GetExascaleDbStorageVault(ctx context.Context, request GetExascaleDbStorageVaultRequest) (response GetExascaleDbStorageVaultResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -10449,42 +10810,42 @@ func (client DatabaseClient) GetExternalNonContainerDatabase(ctx context.Context if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getExternalNonContainerDatabase, policy) + ociResponse, err = common.Retry(ctx, request, client.getExascaleDbStorageVault, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetExternalNonContainerDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetExascaleDbStorageVaultResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetExternalNonContainerDatabaseResponse{} + response = GetExascaleDbStorageVaultResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetExternalNonContainerDatabaseResponse); ok { + if convertedResponse, ok := ociResponse.(GetExascaleDbStorageVaultResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetExternalNonContainerDatabaseResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetExascaleDbStorageVaultResponse") } return } -// getExternalNonContainerDatabase implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) getExternalNonContainerDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getExascaleDbStorageVault implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getExascaleDbStorageVault(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exascaleDbStorageVaults/{exascaleDbStorageVaultId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetExternalNonContainerDatabaseResponse + var response GetExascaleDbStorageVaultResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/GetExternalNonContainerDatabase" - err = common.PostProcessServiceError(err, "Database", "GetExternalNonContainerDatabase", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/GetExascaleDbStorageVault" + err = common.PostProcessServiceError(err, "Database", "GetExascaleDbStorageVault", apiReferenceLink) return response, err } @@ -10492,13 +10853,13 @@ func (client DatabaseClient) getExternalNonContainerDatabase(ctx context.Context return response, err } -// GetExternalPluggableDatabase Gets information about a specific -// CreateExternalPluggableDatabaseDetails resource. +// GetExternalBackupJob Gets information about the specified external backup job. +// **Note:** This API is used by an Oracle Cloud Infrastructure Python script that is packaged with the Oracle Cloud Infrastructure CLI. Oracle recommends that you use the script instead using the API directly. See Migrating an On-Premises Database to Oracle Cloud Infrastructure by Creating a Backup in the Cloud (https://docs.cloud.oracle.com/Content/Database/Tasks/mig-onprembackup.htm) for more information. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExternalPluggableDatabase.go.html to see an example of how to use GetExternalPluggableDatabase API. -func (client DatabaseClient) GetExternalPluggableDatabase(ctx context.Context, request GetExternalPluggableDatabaseRequest) (response GetExternalPluggableDatabaseResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExternalBackupJob.go.html to see an example of how to use GetExternalBackupJob API. +func (client DatabaseClient) GetExternalBackupJob(ctx context.Context, request GetExternalBackupJobRequest) (response GetExternalBackupJobResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -10507,42 +10868,42 @@ func (client DatabaseClient) GetExternalPluggableDatabase(ctx context.Context, r if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getExternalPluggableDatabase, policy) + ociResponse, err = common.Retry(ctx, request, client.getExternalBackupJob, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetExternalPluggableDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetExternalBackupJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetExternalPluggableDatabaseResponse{} + response = GetExternalBackupJobResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetExternalPluggableDatabaseResponse); ok { + if convertedResponse, ok := ociResponse.(GetExternalBackupJobResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetExternalPluggableDatabaseResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetExternalBackupJobResponse") } return } -// getExternalPluggableDatabase implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) getExternalPluggableDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getExternalBackupJob implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getExternalBackupJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/externalpluggabledatabases/{externalPluggableDatabaseId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/externalBackupJobs/{backupId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetExternalPluggableDatabaseResponse + var response GetExternalBackupJobResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalPluggableDatabase/GetExternalPluggableDatabase" - err = common.PostProcessServiceError(err, "Database", "GetExternalPluggableDatabase", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalBackupJob/GetExternalBackupJob" + err = common.PostProcessServiceError(err, "Database", "GetExternalBackupJob", apiReferenceLink) return response, err } @@ -10550,13 +10911,12 @@ func (client DatabaseClient) getExternalPluggableDatabase(ctx context.Context, r return response, err } -// GetInfrastructureTargetVersions Gets details of the Exadata Infrastructure target system software versions that can be applied to the specified infrastructure resource for maintenance updates. -// Applies to Exadata Cloud@Customer and Exadata Cloud instances only. +// GetExternalContainerDatabase Gets information about the specified external container database. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetInfrastructureTargetVersions.go.html to see an example of how to use GetInfrastructureTargetVersions API. -func (client DatabaseClient) GetInfrastructureTargetVersions(ctx context.Context, request GetInfrastructureTargetVersionsRequest) (response GetInfrastructureTargetVersionsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExternalContainerDatabase.go.html to see an example of how to use GetExternalContainerDatabase API. +func (client DatabaseClient) GetExternalContainerDatabase(ctx context.Context, request GetExternalContainerDatabaseRequest) (response GetExternalContainerDatabaseResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -10565,42 +10925,42 @@ func (client DatabaseClient) GetInfrastructureTargetVersions(ctx context.Context if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getInfrastructureTargetVersions, policy) + ociResponse, err = common.Retry(ctx, request, client.getExternalContainerDatabase, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetInfrastructureTargetVersionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetExternalContainerDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetInfrastructureTargetVersionsResponse{} + response = GetExternalContainerDatabaseResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetInfrastructureTargetVersionsResponse); ok { + if convertedResponse, ok := ociResponse.(GetExternalContainerDatabaseResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetInfrastructureTargetVersionsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetExternalContainerDatabaseResponse") } return } -// getInfrastructureTargetVersions implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) getInfrastructureTargetVersions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getExternalContainerDatabase implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getExternalContainerDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/infrastructureTargetVersions", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/externalcontainerdatabases/{externalContainerDatabaseId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetInfrastructureTargetVersionsResponse + var response GetExternalContainerDatabaseResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/InfrastructureTargetVersion/GetInfrastructureTargetVersions" - err = common.PostProcessServiceError(err, "Database", "GetInfrastructureTargetVersions", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalContainerDatabase/GetExternalContainerDatabase" + err = common.PostProcessServiceError(err, "Database", "GetExternalContainerDatabase", apiReferenceLink) return response, err } @@ -10608,12 +10968,12 @@ func (client DatabaseClient) getInfrastructureTargetVersions(ctx context.Context return response, err } -// GetKeyStore Gets information about the specified key store. +// GetExternalDatabaseConnector Gets information about the specified external database connector. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetKeyStore.go.html to see an example of how to use GetKeyStore API. -func (client DatabaseClient) GetKeyStore(ctx context.Context, request GetKeyStoreRequest) (response GetKeyStoreResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExternalDatabaseConnector.go.html to see an example of how to use GetExternalDatabaseConnector API. +func (client DatabaseClient) GetExternalDatabaseConnector(ctx context.Context, request GetExternalDatabaseConnectorRequest) (response GetExternalDatabaseConnectorResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -10622,28 +10982,258 @@ func (client DatabaseClient) GetKeyStore(ctx context.Context, request GetKeyStor if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getKeyStore, policy) + ociResponse, err = common.Retry(ctx, request, client.getExternalDatabaseConnector, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetKeyStoreResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetExternalDatabaseConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetKeyStoreResponse{} + response = GetExternalDatabaseConnectorResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetKeyStoreResponse); ok { + if convertedResponse, ok := ociResponse.(GetExternalDatabaseConnectorResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetKeyStoreResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetExternalDatabaseConnectorResponse") } return } -// getKeyStore implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) getKeyStore(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getExternalDatabaseConnector implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getExternalDatabaseConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/externaldatabaseconnectors/{externalDatabaseConnectorId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetExternalDatabaseConnectorResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalDatabaseConnector/GetExternalDatabaseConnector" + err = common.PostProcessServiceError(err, "Database", "GetExternalDatabaseConnector", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &externaldatabaseconnector{}) + return response, err +} + +// GetExternalNonContainerDatabase Gets information about a specific external non-container database. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExternalNonContainerDatabase.go.html to see an example of how to use GetExternalNonContainerDatabase API. +func (client DatabaseClient) GetExternalNonContainerDatabase(ctx context.Context, request GetExternalNonContainerDatabaseRequest) (response GetExternalNonContainerDatabaseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getExternalNonContainerDatabase, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetExternalNonContainerDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetExternalNonContainerDatabaseResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetExternalNonContainerDatabaseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetExternalNonContainerDatabaseResponse") + } + return +} + +// getExternalNonContainerDatabase implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getExternalNonContainerDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetExternalNonContainerDatabaseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/GetExternalNonContainerDatabase" + err = common.PostProcessServiceError(err, "Database", "GetExternalNonContainerDatabase", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetExternalPluggableDatabase Gets information about a specific +// CreateExternalPluggableDatabaseDetails resource. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExternalPluggableDatabase.go.html to see an example of how to use GetExternalPluggableDatabase API. +func (client DatabaseClient) GetExternalPluggableDatabase(ctx context.Context, request GetExternalPluggableDatabaseRequest) (response GetExternalPluggableDatabaseResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getExternalPluggableDatabase, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetExternalPluggableDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetExternalPluggableDatabaseResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetExternalPluggableDatabaseResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetExternalPluggableDatabaseResponse") + } + return +} + +// getExternalPluggableDatabase implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getExternalPluggableDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/externalpluggabledatabases/{externalPluggableDatabaseId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetExternalPluggableDatabaseResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalPluggableDatabase/GetExternalPluggableDatabase" + err = common.PostProcessServiceError(err, "Database", "GetExternalPluggableDatabase", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetInfrastructureTargetVersions Gets details of the Exadata Infrastructure target system software versions that can be applied to the specified infrastructure resource for maintenance updates. +// Applies to Exadata Cloud@Customer and Exadata Cloud instances only. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetInfrastructureTargetVersions.go.html to see an example of how to use GetInfrastructureTargetVersions API. +func (client DatabaseClient) GetInfrastructureTargetVersions(ctx context.Context, request GetInfrastructureTargetVersionsRequest) (response GetInfrastructureTargetVersionsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getInfrastructureTargetVersions, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetInfrastructureTargetVersionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetInfrastructureTargetVersionsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetInfrastructureTargetVersionsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetInfrastructureTargetVersionsResponse") + } + return +} + +// getInfrastructureTargetVersions implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getInfrastructureTargetVersions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/infrastructureTargetVersions", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetInfrastructureTargetVersionsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/InfrastructureTargetVersion/GetInfrastructureTargetVersions" + err = common.PostProcessServiceError(err, "Database", "GetInfrastructureTargetVersions", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetKeyStore Gets information about the specified key store. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetKeyStore.go.html to see an example of how to use GetKeyStore API. +func (client DatabaseClient) GetKeyStore(ctx context.Context, request GetKeyStoreRequest) (response GetKeyStoreResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getKeyStore, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetKeyStoreResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetKeyStoreResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetKeyStoreResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetKeyStoreResponse") + } + return +} + +// getKeyStore implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) getKeyStore(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { httpRequest, err := request.HTTPRequest(http.MethodGet, "/keyStores/{keyStoreId}", binaryReqBody, extraHeaders) if err != nil { @@ -13895,37 +14485,268 @@ func (client DatabaseClient) ListDbSystemStoragePerformances(ctx context.Context if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListDbSystemStoragePerformancesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListDbSystemStoragePerformancesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDbSystemStoragePerformancesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDbSystemStoragePerformancesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDbSystemStoragePerformancesResponse") + } + return +} + +// listDbSystemStoragePerformances implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listDbSystemStoragePerformances(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/dbSystemStoragePerformance", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDbSystemStoragePerformancesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbSystem/ListDbSystemStoragePerformances" + err = common.PostProcessServiceError(err, "Database", "ListDbSystemStoragePerformances", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListDbSystemUpgradeHistoryEntries Gets the history of the upgrade actions performed on the specified DB system. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListDbSystemUpgradeHistoryEntries.go.html to see an example of how to use ListDbSystemUpgradeHistoryEntries API. +func (client DatabaseClient) ListDbSystemUpgradeHistoryEntries(ctx context.Context, request ListDbSystemUpgradeHistoryEntriesRequest) (response ListDbSystemUpgradeHistoryEntriesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listDbSystemUpgradeHistoryEntries, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListDbSystemUpgradeHistoryEntriesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDbSystemUpgradeHistoryEntriesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDbSystemUpgradeHistoryEntriesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDbSystemUpgradeHistoryEntriesResponse") + } + return +} + +// listDbSystemUpgradeHistoryEntries implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listDbSystemUpgradeHistoryEntries(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/dbSystems/{dbSystemId}/upgradeHistoryEntries", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDbSystemUpgradeHistoryEntriesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbSystemUpgradeHistoryEntry/ListDbSystemUpgradeHistoryEntries" + err = common.PostProcessServiceError(err, "Database", "ListDbSystemUpgradeHistoryEntries", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListDbSystems Lists the DB systems in the specified compartment. You can specify a `backupId` to list only the DB systems that support creating a database using this backup in this compartment. +// **Note:** Deprecated for Exadata Cloud Service systems. Use the new resource model APIs (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/exaflexsystem.htm#exaflexsystem_topic-resource_model) instead. +// For Exadata Cloud Service instances, support for this API will end on May 15th, 2021. See Switching an Exadata DB System to the New Resource Model and APIs (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/exaflexsystem_topic-resource_model_conversion.htm) for details on converting existing Exadata DB systems to the new resource model. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListDbSystems.go.html to see an example of how to use ListDbSystems API. +func (client DatabaseClient) ListDbSystems(ctx context.Context, request ListDbSystemsRequest) (response ListDbSystemsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listDbSystems, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListDbSystemsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDbSystemsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDbSystemsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDbSystemsResponse") + } + return +} + +// listDbSystems implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listDbSystems(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/dbSystems", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDbSystemsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbSystem/ListDbSystems" + err = common.PostProcessServiceError(err, "Database", "ListDbSystems", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListDbVersions Gets a list of supported Oracle Database versions. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListDbVersions.go.html to see an example of how to use ListDbVersions API. +func (client DatabaseClient) ListDbVersions(ctx context.Context, request ListDbVersionsRequest) (response ListDbVersionsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listDbVersions, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListDbVersionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDbVersionsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDbVersionsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDbVersionsResponse") + } + return +} + +// listDbVersions implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listDbVersions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/dbVersions", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDbVersionsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbVersionSummary/ListDbVersions" + err = common.PostProcessServiceError(err, "Database", "ListDbVersions", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListExadataInfrastructures Lists the Exadata infrastructure resources in the specified compartment. Applies to Exadata Cloud@Customer instances only. +// To list the Exadata Cloud Service infrastructure resources in a compartment, use the ListCloudExadataInfrastructures operation. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListExadataInfrastructures.go.html to see an example of how to use ListExadataInfrastructures API. +func (client DatabaseClient) ListExadataInfrastructures(ctx context.Context, request ListExadataInfrastructuresRequest) (response ListExadataInfrastructuresResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listExadataInfrastructures, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListExadataInfrastructuresResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListDbSystemStoragePerformancesResponse{} + response = ListExadataInfrastructuresResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListDbSystemStoragePerformancesResponse); ok { + if convertedResponse, ok := ociResponse.(ListExadataInfrastructuresResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListDbSystemStoragePerformancesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListExadataInfrastructuresResponse") } return } -// listDbSystemStoragePerformances implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) listDbSystemStoragePerformances(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listExadataInfrastructures implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listExadataInfrastructures(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/dbSystemStoragePerformance", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exadataInfrastructures", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListDbSystemStoragePerformancesResponse + var response ListExadataInfrastructuresResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbSystem/ListDbSystemStoragePerformances" - err = common.PostProcessServiceError(err, "Database", "ListDbSystemStoragePerformances", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadataInfrastructure/ListExadataInfrastructures" + err = common.PostProcessServiceError(err, "Database", "ListExadataInfrastructures", apiReferenceLink) return response, err } @@ -13933,12 +14754,12 @@ func (client DatabaseClient) listDbSystemStoragePerformances(ctx context.Context return response, err } -// ListDbSystemUpgradeHistoryEntries Gets the history of the upgrade actions performed on the specified DB system. +// ListExadbVmClusterUpdateHistoryEntries Gets the history of the maintenance update actions performed on the specified Exadata VM cluster on Exascale Infrastructure. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListDbSystemUpgradeHistoryEntries.go.html to see an example of how to use ListDbSystemUpgradeHistoryEntries API. -func (client DatabaseClient) ListDbSystemUpgradeHistoryEntries(ctx context.Context, request ListDbSystemUpgradeHistoryEntriesRequest) (response ListDbSystemUpgradeHistoryEntriesResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListExadbVmClusterUpdateHistoryEntries.go.html to see an example of how to use ListExadbVmClusterUpdateHistoryEntries API. +func (client DatabaseClient) ListExadbVmClusterUpdateHistoryEntries(ctx context.Context, request ListExadbVmClusterUpdateHistoryEntriesRequest) (response ListExadbVmClusterUpdateHistoryEntriesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -13947,42 +14768,42 @@ func (client DatabaseClient) ListDbSystemUpgradeHistoryEntries(ctx context.Conte if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listDbSystemUpgradeHistoryEntries, policy) + ociResponse, err = common.Retry(ctx, request, client.listExadbVmClusterUpdateHistoryEntries, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListDbSystemUpgradeHistoryEntriesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListExadbVmClusterUpdateHistoryEntriesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListDbSystemUpgradeHistoryEntriesResponse{} + response = ListExadbVmClusterUpdateHistoryEntriesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListDbSystemUpgradeHistoryEntriesResponse); ok { + if convertedResponse, ok := ociResponse.(ListExadbVmClusterUpdateHistoryEntriesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListDbSystemUpgradeHistoryEntriesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListExadbVmClusterUpdateHistoryEntriesResponse") } return } -// listDbSystemUpgradeHistoryEntries implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) listDbSystemUpgradeHistoryEntries(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listExadbVmClusterUpdateHistoryEntries implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listExadbVmClusterUpdateHistoryEntries(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/dbSystems/{dbSystemId}/upgradeHistoryEntries", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exadbVmClusters/{exadbVmClusterId}/updateHistoryEntries", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListDbSystemUpgradeHistoryEntriesResponse + var response ListExadbVmClusterUpdateHistoryEntriesResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbSystemUpgradeHistoryEntry/ListDbSystemUpgradeHistoryEntries" - err = common.PostProcessServiceError(err, "Database", "ListDbSystemUpgradeHistoryEntries", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmClusterUpdateHistoryEntry/ListExadbVmClusterUpdateHistoryEntries" + err = common.PostProcessServiceError(err, "Database", "ListExadbVmClusterUpdateHistoryEntries", apiReferenceLink) return response, err } @@ -13990,14 +14811,12 @@ func (client DatabaseClient) listDbSystemUpgradeHistoryEntries(ctx context.Conte return response, err } -// ListDbSystems Lists the DB systems in the specified compartment. You can specify a `backupId` to list only the DB systems that support creating a database using this backup in this compartment. -// **Note:** Deprecated for Exadata Cloud Service systems. Use the new resource model APIs (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/exaflexsystem.htm#exaflexsystem_topic-resource_model) instead. -// For Exadata Cloud Service instances, support for this API will end on May 15th, 2021. See Switching an Exadata DB System to the New Resource Model and APIs (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/exaflexsystem_topic-resource_model_conversion.htm) for details on converting existing Exadata DB systems to the new resource model. +// ListExadbVmClusterUpdates Lists the maintenance updates that can be applied to the specified Exadata VM cluster on Exascale Infrastructure. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListDbSystems.go.html to see an example of how to use ListDbSystems API. -func (client DatabaseClient) ListDbSystems(ctx context.Context, request ListDbSystemsRequest) (response ListDbSystemsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListExadbVmClusterUpdates.go.html to see an example of how to use ListExadbVmClusterUpdates API. +func (client DatabaseClient) ListExadbVmClusterUpdates(ctx context.Context, request ListExadbVmClusterUpdatesRequest) (response ListExadbVmClusterUpdatesResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -14006,42 +14825,42 @@ func (client DatabaseClient) ListDbSystems(ctx context.Context, request ListDbSy if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listDbSystems, policy) + ociResponse, err = common.Retry(ctx, request, client.listExadbVmClusterUpdates, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListDbSystemsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListExadbVmClusterUpdatesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListDbSystemsResponse{} + response = ListExadbVmClusterUpdatesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListDbSystemsResponse); ok { + if convertedResponse, ok := ociResponse.(ListExadbVmClusterUpdatesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListDbSystemsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListExadbVmClusterUpdatesResponse") } return } -// listDbSystems implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) listDbSystems(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listExadbVmClusterUpdates implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listExadbVmClusterUpdates(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/dbSystems", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exadbVmClusters/{exadbVmClusterId}/updates", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListDbSystemsResponse + var response ListExadbVmClusterUpdatesResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbSystem/ListDbSystems" - err = common.PostProcessServiceError(err, "Database", "ListDbSystems", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmClusterUpdate/ListExadbVmClusterUpdates" + err = common.PostProcessServiceError(err, "Database", "ListExadbVmClusterUpdates", apiReferenceLink) return response, err } @@ -14049,12 +14868,12 @@ func (client DatabaseClient) listDbSystems(ctx context.Context, request common.O return response, err } -// ListDbVersions Gets a list of supported Oracle Database versions. +// ListExadbVmClusters Gets a list of the Exadata VM clusters on Exascale Infrastructure in the specified compartment. Applies to Exadata Database Service on Exascale Infrastructure only. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListDbVersions.go.html to see an example of how to use ListDbVersions API. -func (client DatabaseClient) ListDbVersions(ctx context.Context, request ListDbVersionsRequest) (response ListDbVersionsResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListExadbVmClusters.go.html to see an example of how to use ListExadbVmClusters API. +func (client DatabaseClient) ListExadbVmClusters(ctx context.Context, request ListExadbVmClustersRequest) (response ListExadbVmClustersResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -14063,42 +14882,42 @@ func (client DatabaseClient) ListDbVersions(ctx context.Context, request ListDbV if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listDbVersions, policy) + ociResponse, err = common.Retry(ctx, request, client.listExadbVmClusters, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListDbVersionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListExadbVmClustersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListDbVersionsResponse{} + response = ListExadbVmClustersResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListDbVersionsResponse); ok { + if convertedResponse, ok := ociResponse.(ListExadbVmClustersResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListDbVersionsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListExadbVmClustersResponse") } return } -// listDbVersions implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) listDbVersions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listExadbVmClusters implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listExadbVmClusters(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/dbVersions", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exadbVmClusters", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListDbVersionsResponse + var response ListExadbVmClustersResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbVersionSummary/ListDbVersions" - err = common.PostProcessServiceError(err, "Database", "ListDbVersions", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/ListExadbVmClusters" + err = common.PostProcessServiceError(err, "Database", "ListExadbVmClusters", apiReferenceLink) return response, err } @@ -14106,13 +14925,12 @@ func (client DatabaseClient) listDbVersions(ctx context.Context, request common. return response, err } -// ListExadataInfrastructures Lists the Exadata infrastructure resources in the specified compartment. Applies to Exadata Cloud@Customer instances only. -// To list the Exadata Cloud Service infrastructure resources in a compartment, use the ListCloudExadataInfrastructures operation. +// ListExascaleDbStorageVaults Gets a list of the Exadata Database Storage Vaults in the specified compartment. // // # See also // -// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListExadataInfrastructures.go.html to see an example of how to use ListExadataInfrastructures API. -func (client DatabaseClient) ListExadataInfrastructures(ctx context.Context, request ListExadataInfrastructuresRequest) (response ListExadataInfrastructuresResponse, err error) { +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListExascaleDbStorageVaults.go.html to see an example of how to use ListExascaleDbStorageVaults API. +func (client DatabaseClient) ListExascaleDbStorageVaults(ctx context.Context, request ListExascaleDbStorageVaultsRequest) (response ListExascaleDbStorageVaultsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -14121,42 +14939,42 @@ func (client DatabaseClient) ListExadataInfrastructures(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listExadataInfrastructures, policy) + ociResponse, err = common.Retry(ctx, request, client.listExascaleDbStorageVaults, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListExadataInfrastructuresResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListExascaleDbStorageVaultsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListExadataInfrastructuresResponse{} + response = ListExascaleDbStorageVaultsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListExadataInfrastructuresResponse); ok { + if convertedResponse, ok := ociResponse.(ListExascaleDbStorageVaultsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListExadataInfrastructuresResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListExascaleDbStorageVaultsResponse") } return } -// listExadataInfrastructures implements the OCIOperation interface (enables retrying operations) -func (client DatabaseClient) listExadataInfrastructures(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listExascaleDbStorageVaults implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listExascaleDbStorageVaults(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/exadataInfrastructures", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exascaleDbStorageVaults", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListExadataInfrastructuresResponse + var response ListExascaleDbStorageVaultsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadataInfrastructure/ListExadataInfrastructures" - err = common.PostProcessServiceError(err, "Database", "ListExadataInfrastructures", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/ListExascaleDbStorageVaults" + err = common.PostProcessServiceError(err, "Database", "ListExascaleDbStorageVaults", apiReferenceLink) return response, err } @@ -14466,6 +15284,63 @@ func (client DatabaseClient) listFlexComponents(ctx context.Context, request com return response, err } +// ListGiVersionMinorVersions Gets a list of supported Oracle Grid Infrastructure minor versions for the given major version and shape family. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListGiVersionMinorVersions.go.html to see an example of how to use ListGiVersionMinorVersions API. +func (client DatabaseClient) ListGiVersionMinorVersions(ctx context.Context, request ListGiVersionMinorVersionsRequest) (response ListGiVersionMinorVersionsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listGiVersionMinorVersions, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListGiVersionMinorVersionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListGiVersionMinorVersionsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListGiVersionMinorVersionsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListGiVersionMinorVersionsResponse") + } + return +} + +// listGiVersionMinorVersions implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) listGiVersionMinorVersions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/giVersions/{version}/minorVersions", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListGiVersionMinorVersionsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiMinorVersionSummary/ListGiVersionMinorVersions" + err = common.PostProcessServiceError(err, "Database", "ListGiVersionMinorVersions", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListGiVersions Gets a list of supported GI versions. // // # See also @@ -15936,6 +16811,68 @@ func (client DatabaseClient) removeVirtualMachineFromCloudVmCluster(ctx context. return response, err } +// RemoveVirtualMachineFromExadbVmCluster Remove Virtual Machines from the Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Cloud instances only. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/RemoveVirtualMachineFromExadbVmCluster.go.html to see an example of how to use RemoveVirtualMachineFromExadbVmCluster API. +func (client DatabaseClient) RemoveVirtualMachineFromExadbVmCluster(ctx context.Context, request RemoveVirtualMachineFromExadbVmClusterRequest) (response RemoveVirtualMachineFromExadbVmClusterResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.removeVirtualMachineFromExadbVmCluster, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RemoveVirtualMachineFromExadbVmClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RemoveVirtualMachineFromExadbVmClusterResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RemoveVirtualMachineFromExadbVmClusterResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RemoveVirtualMachineFromExadbVmClusterResponse") + } + return +} + +// removeVirtualMachineFromExadbVmCluster implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) removeVirtualMachineFromExadbVmCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/exadbVmClusters/{exadbVmClusterId}/actions/removeVirtualMachine", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RemoveVirtualMachineFromExadbVmClusterResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/RemoveVirtualMachineFromExadbVmCluster" + err = common.PostProcessServiceError(err, "Database", "RemoveVirtualMachineFromExadbVmCluster", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // RemoveVirtualMachineFromVmCluster Remove Virtual Machines from the VM cluster. Applies to Exadata Cloud@Customer instances only. // // # See also @@ -19120,6 +20057,120 @@ func (client DatabaseClient) updateExadataIormConfig(ctx context.Context, reques return response, err } +// UpdateExadbVmCluster Updates the specified Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/UpdateExadbVmCluster.go.html to see an example of how to use UpdateExadbVmCluster API. +func (client DatabaseClient) UpdateExadbVmCluster(ctx context.Context, request UpdateExadbVmClusterRequest) (response UpdateExadbVmClusterResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateExadbVmCluster, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateExadbVmClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateExadbVmClusterResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateExadbVmClusterResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateExadbVmClusterResponse") + } + return +} + +// updateExadbVmCluster implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) updateExadbVmCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/exadbVmClusters/{exadbVmClusterId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateExadbVmClusterResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/UpdateExadbVmCluster" + err = common.PostProcessServiceError(err, "Database", "UpdateExadbVmCluster", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateExascaleDbStorageVault Updates the specified Exadata Database Storage Vault. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/UpdateExascaleDbStorageVault.go.html to see an example of how to use UpdateExascaleDbStorageVault API. +func (client DatabaseClient) UpdateExascaleDbStorageVault(ctx context.Context, request UpdateExascaleDbStorageVaultRequest) (response UpdateExascaleDbStorageVaultResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateExascaleDbStorageVault, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateExascaleDbStorageVaultResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateExascaleDbStorageVaultResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateExascaleDbStorageVaultResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateExascaleDbStorageVaultResponse") + } + return +} + +// updateExascaleDbStorageVault implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) updateExascaleDbStorageVault(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/exascaleDbStorageVaults/{exascaleDbStorageVaultId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateExascaleDbStorageVaultResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/UpdateExascaleDbStorageVault" + err = common.PostProcessServiceError(err, "Database", "UpdateExascaleDbStorageVault", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateExternalContainerDatabase Updates the properties of // an CreateExternalContainerDatabaseDetails resource, // such as the display name. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/database_software_image.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/database_software_image.go index 76def07b439..80d08a80703 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/database_software_image.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/database_software_image.go @@ -214,18 +214,21 @@ const ( DatabaseSoftwareImageImageShapeFamilyVmBmShape DatabaseSoftwareImageImageShapeFamilyEnum = "VM_BM_SHAPE" DatabaseSoftwareImageImageShapeFamilyExadataShape DatabaseSoftwareImageImageShapeFamilyEnum = "EXADATA_SHAPE" DatabaseSoftwareImageImageShapeFamilyExaccShape DatabaseSoftwareImageImageShapeFamilyEnum = "EXACC_SHAPE" + DatabaseSoftwareImageImageShapeFamilyExadbxsShape DatabaseSoftwareImageImageShapeFamilyEnum = "EXADBXS_SHAPE" ) var mappingDatabaseSoftwareImageImageShapeFamilyEnum = map[string]DatabaseSoftwareImageImageShapeFamilyEnum{ "VM_BM_SHAPE": DatabaseSoftwareImageImageShapeFamilyVmBmShape, "EXADATA_SHAPE": DatabaseSoftwareImageImageShapeFamilyExadataShape, "EXACC_SHAPE": DatabaseSoftwareImageImageShapeFamilyExaccShape, + "EXADBXS_SHAPE": DatabaseSoftwareImageImageShapeFamilyExadbxsShape, } var mappingDatabaseSoftwareImageImageShapeFamilyEnumLowerCase = map[string]DatabaseSoftwareImageImageShapeFamilyEnum{ "vm_bm_shape": DatabaseSoftwareImageImageShapeFamilyVmBmShape, "exadata_shape": DatabaseSoftwareImageImageShapeFamilyExadataShape, "exacc_shape": DatabaseSoftwareImageImageShapeFamilyExaccShape, + "exadbxs_shape": DatabaseSoftwareImageImageShapeFamilyExadbxsShape, } // GetDatabaseSoftwareImageImageShapeFamilyEnumValues Enumerates the set of values for DatabaseSoftwareImageImageShapeFamilyEnum @@ -243,6 +246,7 @@ func GetDatabaseSoftwareImageImageShapeFamilyEnumStringValues() []string { "VM_BM_SHAPE", "EXADATA_SHAPE", "EXACC_SHAPE", + "EXADBXS_SHAPE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/database_software_image_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/database_software_image_summary.go index 804b8a66fdc..4c6937ca63f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/database_software_image_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/database_software_image_summary.go @@ -217,18 +217,21 @@ const ( DatabaseSoftwareImageSummaryImageShapeFamilyVmBmShape DatabaseSoftwareImageSummaryImageShapeFamilyEnum = "VM_BM_SHAPE" DatabaseSoftwareImageSummaryImageShapeFamilyExadataShape DatabaseSoftwareImageSummaryImageShapeFamilyEnum = "EXADATA_SHAPE" DatabaseSoftwareImageSummaryImageShapeFamilyExaccShape DatabaseSoftwareImageSummaryImageShapeFamilyEnum = "EXACC_SHAPE" + DatabaseSoftwareImageSummaryImageShapeFamilyExadbxsShape DatabaseSoftwareImageSummaryImageShapeFamilyEnum = "EXADBXS_SHAPE" ) var mappingDatabaseSoftwareImageSummaryImageShapeFamilyEnum = map[string]DatabaseSoftwareImageSummaryImageShapeFamilyEnum{ "VM_BM_SHAPE": DatabaseSoftwareImageSummaryImageShapeFamilyVmBmShape, "EXADATA_SHAPE": DatabaseSoftwareImageSummaryImageShapeFamilyExadataShape, "EXACC_SHAPE": DatabaseSoftwareImageSummaryImageShapeFamilyExaccShape, + "EXADBXS_SHAPE": DatabaseSoftwareImageSummaryImageShapeFamilyExadbxsShape, } var mappingDatabaseSoftwareImageSummaryImageShapeFamilyEnumLowerCase = map[string]DatabaseSoftwareImageSummaryImageShapeFamilyEnum{ "vm_bm_shape": DatabaseSoftwareImageSummaryImageShapeFamilyVmBmShape, "exadata_shape": DatabaseSoftwareImageSummaryImageShapeFamilyExadataShape, "exacc_shape": DatabaseSoftwareImageSummaryImageShapeFamilyExaccShape, + "exadbxs_shape": DatabaseSoftwareImageSummaryImageShapeFamilyExadbxsShape, } // GetDatabaseSoftwareImageSummaryImageShapeFamilyEnumValues Enumerates the set of values for DatabaseSoftwareImageSummaryImageShapeFamilyEnum @@ -246,6 +249,7 @@ func GetDatabaseSoftwareImageSummaryImageShapeFamilyEnumStringValues() []string "VM_BM_SHAPE", "EXADATA_SHAPE", "EXACC_SHAPE", + "EXADBXS_SHAPE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/db_node.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/db_node.go index 8095eb247f2..e3e3e994e5f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/db_node.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/db_node.go @@ -98,6 +98,9 @@ type DbNode struct { // The allocated local node storage in GBs on the Db node. DbNodeStorageSizeInGBs *int `mandatory:"false" json:"dbNodeStorageSizeInGBs"` + // The total number of CPU cores reserved on the Db node. + TotalCpuCoreCount *int `mandatory:"false" json:"totalCpuCoreCount"` + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. DbServerId *string `mandatory:"false" json:"dbServerId"` } @@ -199,15 +202,18 @@ type DbNodeMaintenanceTypeEnum string // Set of constants representing the allowable values for DbNodeMaintenanceTypeEnum const ( - DbNodeMaintenanceTypeVmdbRebootMigration DbNodeMaintenanceTypeEnum = "VMDB_REBOOT_MIGRATION" + DbNodeMaintenanceTypeVmdbRebootMigration DbNodeMaintenanceTypeEnum = "VMDB_REBOOT_MIGRATION" + DbNodeMaintenanceTypeExadbxsRebootMigration DbNodeMaintenanceTypeEnum = "EXADBXS_REBOOT_MIGRATION" ) var mappingDbNodeMaintenanceTypeEnum = map[string]DbNodeMaintenanceTypeEnum{ - "VMDB_REBOOT_MIGRATION": DbNodeMaintenanceTypeVmdbRebootMigration, + "VMDB_REBOOT_MIGRATION": DbNodeMaintenanceTypeVmdbRebootMigration, + "EXADBXS_REBOOT_MIGRATION": DbNodeMaintenanceTypeExadbxsRebootMigration, } var mappingDbNodeMaintenanceTypeEnumLowerCase = map[string]DbNodeMaintenanceTypeEnum{ - "vmdb_reboot_migration": DbNodeMaintenanceTypeVmdbRebootMigration, + "vmdb_reboot_migration": DbNodeMaintenanceTypeVmdbRebootMigration, + "exadbxs_reboot_migration": DbNodeMaintenanceTypeExadbxsRebootMigration, } // GetDbNodeMaintenanceTypeEnumValues Enumerates the set of values for DbNodeMaintenanceTypeEnum @@ -223,6 +229,7 @@ func GetDbNodeMaintenanceTypeEnumValues() []DbNodeMaintenanceTypeEnum { func GetDbNodeMaintenanceTypeEnumStringValues() []string { return []string{ "VMDB_REBOOT_MIGRATION", + "EXADBXS_REBOOT_MIGRATION", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/db_node_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/db_node_details.go new file mode 100644 index 00000000000..8e94d4545a4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/db_node_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DbNodeDetails Details of the ExaCS Db node. Applies to Exadata Database Service on Exascale Infrastructure only. +type DbNodeDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of ExaCS Db node. + DbNodeId *string `mandatory:"true" json:"dbNodeId"` +} + +func (m DbNodeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DbNodeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/db_node_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/db_node_summary.go index a312ab567cf..14500737844 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/db_node_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/db_node_summary.go @@ -100,6 +100,9 @@ type DbNodeSummary struct { // The allocated local node storage in GBs on the Db node. DbNodeStorageSizeInGBs *int `mandatory:"false" json:"dbNodeStorageSizeInGBs"` + // The total number of CPU cores reserved on the Db node. + TotalCpuCoreCount *int `mandatory:"false" json:"totalCpuCoreCount"` + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. DbServerId *string `mandatory:"false" json:"dbServerId"` } @@ -201,15 +204,18 @@ type DbNodeSummaryMaintenanceTypeEnum string // Set of constants representing the allowable values for DbNodeSummaryMaintenanceTypeEnum const ( - DbNodeSummaryMaintenanceTypeVmdbRebootMigration DbNodeSummaryMaintenanceTypeEnum = "VMDB_REBOOT_MIGRATION" + DbNodeSummaryMaintenanceTypeVmdbRebootMigration DbNodeSummaryMaintenanceTypeEnum = "VMDB_REBOOT_MIGRATION" + DbNodeSummaryMaintenanceTypeExadbxsRebootMigration DbNodeSummaryMaintenanceTypeEnum = "EXADBXS_REBOOT_MIGRATION" ) var mappingDbNodeSummaryMaintenanceTypeEnum = map[string]DbNodeSummaryMaintenanceTypeEnum{ - "VMDB_REBOOT_MIGRATION": DbNodeSummaryMaintenanceTypeVmdbRebootMigration, + "VMDB_REBOOT_MIGRATION": DbNodeSummaryMaintenanceTypeVmdbRebootMigration, + "EXADBXS_REBOOT_MIGRATION": DbNodeSummaryMaintenanceTypeExadbxsRebootMigration, } var mappingDbNodeSummaryMaintenanceTypeEnumLowerCase = map[string]DbNodeSummaryMaintenanceTypeEnum{ - "vmdb_reboot_migration": DbNodeSummaryMaintenanceTypeVmdbRebootMigration, + "vmdb_reboot_migration": DbNodeSummaryMaintenanceTypeVmdbRebootMigration, + "exadbxs_reboot_migration": DbNodeSummaryMaintenanceTypeExadbxsRebootMigration, } // GetDbNodeSummaryMaintenanceTypeEnumValues Enumerates the set of values for DbNodeSummaryMaintenanceTypeEnum @@ -225,6 +231,7 @@ func GetDbNodeSummaryMaintenanceTypeEnumValues() []DbNodeSummaryMaintenanceTypeE func GetDbNodeSummaryMaintenanceTypeEnumStringValues() []string { return []string{ "VMDB_REBOOT_MIGRATION", + "EXADBXS_REBOOT_MIGRATION", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/db_server.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/db_server.go index c0b1fa0ad7c..694cfb6211c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/db_server.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/db_server.go @@ -15,10 +15,10 @@ import ( "strings" ) -// DbServer Details of the Exacc Db server resource. Applies to Exadata Cloud@Customer instances only. +// DbServer Details of the Db server resource. type DbServer struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exacc Db server. + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Db server. Id *string `mandatory:"false" json:"id"` // The user-friendly name for the Db server. The name does not need to be unique. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/db_server_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/db_server_summary.go index d910e9f6120..51bfda71a18 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/db_server_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/db_server_summary.go @@ -15,10 +15,10 @@ import ( "strings" ) -// DbServerSummary Details of the Exadata Cloud@Customer Db server. +// DbServerSummary Details of the Db server. type DbServerSummary struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exacc Db server. + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Db server. Id *string `mandatory:"false" json:"id"` // The user-friendly name for the Db server. The name does not need to be unique. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/delete_exadb_vm_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/delete_exadb_vm_cluster_request_response.go new file mode 100644 index 00000000000..fd90407b3f7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/delete_exadb_vm_cluster_request_response.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteExadbVmClusterRequest wrapper for the DeleteExadbVmCluster operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/DeleteExadbVmCluster.go.html to see an example of how to use DeleteExadbVmClusterRequest. +type DeleteExadbVmClusterRequest struct { + + // The Exadata VM cluster OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + ExadbVmClusterId *string `mandatory:"true" contributesTo:"path" name:"exadbVmClusterId"` + + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteExadbVmClusterRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteExadbVmClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteExadbVmClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteExadbVmClusterRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteExadbVmClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteExadbVmClusterResponse wrapper for the DeleteExadbVmCluster operation +type DeleteExadbVmClusterResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use GetWorkRequest with a work request OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteExadbVmClusterResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteExadbVmClusterResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/delete_exascale_db_storage_vault_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/delete_exascale_db_storage_vault_request_response.go new file mode 100644 index 00000000000..0a9abe7c44d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/delete_exascale_db_storage_vault_request_response.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteExascaleDbStorageVaultRequest wrapper for the DeleteExascaleDbStorageVault operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/DeleteExascaleDbStorageVault.go.html to see an example of how to use DeleteExascaleDbStorageVaultRequest. +type DeleteExascaleDbStorageVaultRequest struct { + + // The Exadata Database Storage Vault OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + ExascaleDbStorageVaultId *string `mandatory:"true" contributesTo:"path" name:"exascaleDbStorageVaultId"` + + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteExascaleDbStorageVaultRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteExascaleDbStorageVaultRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteExascaleDbStorageVaultRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteExascaleDbStorageVaultRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteExascaleDbStorageVaultRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteExascaleDbStorageVaultResponse wrapper for the DeleteExascaleDbStorageVault operation +type DeleteExascaleDbStorageVaultResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use GetWorkRequest with a work request OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteExascaleDbStorageVaultResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteExascaleDbStorageVaultResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster.go new file mode 100644 index 00000000000..9280de39ba2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster.go @@ -0,0 +1,339 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExadbVmCluster Details of the Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only. +type ExadbVmCluster struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata VM cluster on Exascale Infrastructure. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name of the availability domain in which the Exadata VM cluster on Exascale Infrastructure is located. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet associated with the Exadata VM cluster on Exascale Infrastructure. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. + BackupSubnetId *string `mandatory:"true" json:"backupSubnetId"` + + // The current state of the Exadata VM cluster on Exascale Infrastructure. + LifecycleState ExadbVmClusterLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The number of nodes in the Exadata VM cluster on Exascale Infrastructure. + NodeCount *int `mandatory:"true" json:"nodeCount"` + + // The shape of the Exadata VM cluster on Exascale Infrastructure resource + Shape *string `mandatory:"true" json:"shape"` + + // The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name does not need to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The hostname for the Exadata VM cluster on Exascale Infrastructure. The hostname must begin with an alphabetic character, and + // can contain alphanumeric characters and hyphens (-). For Exadata systems, the maximum length of the hostname is 12 characters. + // The maximum length of the combined hostname and domain is 63 characters. + // **Note:** The hostname must be unique within the subnet. If it is not unique, + // then the Exadata VM cluster on Exascale Infrastructure will fail to provision. + Hostname *string `mandatory:"true" json:"hostname"` + + // A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the Oracle-provided internet and VCN + // resolver is enabled for the specified subnet, then the domain name for the subnet is used + // (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. + // Applies to Exadata Database Service on Exascale Infrastructure only. + Domain *string `mandatory:"true" json:"domain"` + + // The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster on Exascale Infrastructure. + SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` + + // The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure. + TotalECpuCount *int `mandatory:"true" json:"totalECpuCount"` + + // The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure. + EnabledECpuCount *int `mandatory:"true" json:"enabledECpuCount"` + + VmFileSystemStorage *ExadbVmClusterStorageDetails `mandatory:"true" json:"vmFileSystemStorage"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. + ExascaleDbStorageVaultId *string `mandatory:"true" json:"exascaleDbStorageVaultId"` + + // The list of OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) for the network security groups (NSGs) to which this resource belongs. Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). + // **NsgIds restrictions:** + // - A network security group (NSG) is optional for Autonomous Databases with private access. The nsgIds list can be empty. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // A list of the OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that the backup network of this DB system belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). Applicable only to Exadata systems. + BackupNetworkNsgIds []string `mandatory:"false" json:"backupNetworkNsgIds"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the last maintenance update history entry. This value is updated when a maintenance update starts. + LastUpdateHistoryEntryId *string `mandatory:"false" json:"lastUpdateHistoryEntryId"` + + // The port number configured for the listener on the Exadata VM cluster on Exascale Infrastructure. + ListenerPort *int64 `mandatory:"false" json:"listenerPort"` + + // The date and time that the Exadata VM cluster on Exascale Infrastructure was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Additional information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The time zone to use for the Exadata VM cluster on Exascale Infrastructure. For details, see Time Zones (https://docs.cloud.oracle.com/Content/Database/References/timezones.htm). + TimeZone *string `mandatory:"false" json:"timeZone"` + + // The cluster name for Exadata VM cluster on Exascale Infrastructure. The cluster name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. + ClusterName *string `mandatory:"false" json:"clusterName"` + + // A valid Oracle Grid Infrastructure (GI) software version. + GiVersion *string `mandatory:"false" json:"giVersion"` + + // Grid Setup will be done using this grid image id + GridImageId *string `mandatory:"false" json:"gridImageId"` + + // The type of Grid Image + GridImageType ExadbVmClusterGridImageTypeEnum `mandatory:"false" json:"gridImageType,omitempty"` + + // Operating system version of the image. + SystemVersion *string `mandatory:"false" json:"systemVersion"` + + // The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. The default is BRING_YOUR_OWN_LICENSE. + LicenseModel ExadbVmClusterLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Single Client Access Name (SCAN) IP addresses associated with the Exadata VM cluster on Exascale Infrastructure. + // SCAN IP addresses are typically used for load balancing and are not assigned to any interface. + // Oracle Clusterware directs the requests to the appropriate nodes in the cluster. + // **Note:** For a single-node DB system, this list is empty. + ScanIpIds []string `mandatory:"false" json:"scanIpIds"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual IP (VIP) addresses associated with the Exadata VM cluster on Exascale Infrastructure. + // The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the Exadata Cloud Service instance to + // enable failover. If one node fails, then the VIP is reassigned to another active node in the cluster. + VipIds []string `mandatory:"false" json:"vipIds"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DNS record for the SCAN IP addresses that are associated with the Exadata VM cluster on Exascale Infrastructure. + ScanDnsRecordId *string `mandatory:"false" json:"scanDnsRecordId"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The FQDN of the DNS record for the SCAN IP addresses that are associated with the Exadata VM cluster on Exascale Infrastructure. + ScanDnsName *string `mandatory:"false" json:"scanDnsName"` + + // The OCID of the zone with which the Exadata VM cluster on Exascale Infrastructure is associated. + ZoneId *string `mandatory:"false" json:"zoneId"` + + // The TCP Single Client Access Name (SCAN) port. The default port is 1521. + ScanListenerPortTcp *int `mandatory:"false" json:"scanListenerPortTcp"` + + // The Secured Communication (TCPS) protocol Single Client Access Name (SCAN) port. The default port is 2484. + ScanListenerPortTcpSsl *int `mandatory:"false" json:"scanListenerPortTcpSsl"` + + // The private zone ID in which you want DNS records to be created. + PrivateZoneId *string `mandatory:"false" json:"privateZoneId"` + + DataCollectionOptions *DataCollectionOptions `mandatory:"false" json:"dataCollectionOptions"` + + SnapshotFileSystemStorage *ExadbVmClusterStorageDetails `mandatory:"false" json:"snapshotFileSystemStorage"` + + TotalFileSystemStorage *ExadbVmClusterStorageDetails `mandatory:"false" json:"totalFileSystemStorage"` + + // The memory that you want to be allocated in GBs. Memory is calculated based on 11 GB per VM core reserved. + MemorySizeInGBs *int `mandatory:"false" json:"memorySizeInGBs"` + + IormConfigCache *ExadataIormConfig `mandatory:"false" json:"iormConfigCache"` +} + +func (m ExadbVmCluster) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExadbVmCluster) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingExadbVmClusterLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetExadbVmClusterLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingExadbVmClusterGridImageTypeEnum(string(m.GridImageType)); !ok && m.GridImageType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for GridImageType: %s. Supported values are: %s.", m.GridImageType, strings.Join(GetExadbVmClusterGridImageTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingExadbVmClusterLicenseModelEnum(string(m.LicenseModel)); !ok && m.LicenseModel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LicenseModel: %s. Supported values are: %s.", m.LicenseModel, strings.Join(GetExadbVmClusterLicenseModelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ExadbVmClusterLifecycleStateEnum Enum with underlying type: string +type ExadbVmClusterLifecycleStateEnum string + +// Set of constants representing the allowable values for ExadbVmClusterLifecycleStateEnum +const ( + ExadbVmClusterLifecycleStateProvisioning ExadbVmClusterLifecycleStateEnum = "PROVISIONING" + ExadbVmClusterLifecycleStateAvailable ExadbVmClusterLifecycleStateEnum = "AVAILABLE" + ExadbVmClusterLifecycleStateUpdating ExadbVmClusterLifecycleStateEnum = "UPDATING" + ExadbVmClusterLifecycleStateTerminating ExadbVmClusterLifecycleStateEnum = "TERMINATING" + ExadbVmClusterLifecycleStateTerminated ExadbVmClusterLifecycleStateEnum = "TERMINATED" + ExadbVmClusterLifecycleStateFailed ExadbVmClusterLifecycleStateEnum = "FAILED" + ExadbVmClusterLifecycleStateMaintenanceInProgress ExadbVmClusterLifecycleStateEnum = "MAINTENANCE_IN_PROGRESS" +) + +var mappingExadbVmClusterLifecycleStateEnum = map[string]ExadbVmClusterLifecycleStateEnum{ + "PROVISIONING": ExadbVmClusterLifecycleStateProvisioning, + "AVAILABLE": ExadbVmClusterLifecycleStateAvailable, + "UPDATING": ExadbVmClusterLifecycleStateUpdating, + "TERMINATING": ExadbVmClusterLifecycleStateTerminating, + "TERMINATED": ExadbVmClusterLifecycleStateTerminated, + "FAILED": ExadbVmClusterLifecycleStateFailed, + "MAINTENANCE_IN_PROGRESS": ExadbVmClusterLifecycleStateMaintenanceInProgress, +} + +var mappingExadbVmClusterLifecycleStateEnumLowerCase = map[string]ExadbVmClusterLifecycleStateEnum{ + "provisioning": ExadbVmClusterLifecycleStateProvisioning, + "available": ExadbVmClusterLifecycleStateAvailable, + "updating": ExadbVmClusterLifecycleStateUpdating, + "terminating": ExadbVmClusterLifecycleStateTerminating, + "terminated": ExadbVmClusterLifecycleStateTerminated, + "failed": ExadbVmClusterLifecycleStateFailed, + "maintenance_in_progress": ExadbVmClusterLifecycleStateMaintenanceInProgress, +} + +// GetExadbVmClusterLifecycleStateEnumValues Enumerates the set of values for ExadbVmClusterLifecycleStateEnum +func GetExadbVmClusterLifecycleStateEnumValues() []ExadbVmClusterLifecycleStateEnum { + values := make([]ExadbVmClusterLifecycleStateEnum, 0) + for _, v := range mappingExadbVmClusterLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterLifecycleStateEnumStringValues Enumerates the set of values in String for ExadbVmClusterLifecycleStateEnum +func GetExadbVmClusterLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "TERMINATING", + "TERMINATED", + "FAILED", + "MAINTENANCE_IN_PROGRESS", + } +} + +// GetMappingExadbVmClusterLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterLifecycleStateEnum(val string) (ExadbVmClusterLifecycleStateEnum, bool) { + enum, ok := mappingExadbVmClusterLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterGridImageTypeEnum Enum with underlying type: string +type ExadbVmClusterGridImageTypeEnum string + +// Set of constants representing the allowable values for ExadbVmClusterGridImageTypeEnum +const ( + ExadbVmClusterGridImageTypeReleaseUpdate ExadbVmClusterGridImageTypeEnum = "RELEASE_UPDATE" + ExadbVmClusterGridImageTypeCustomImage ExadbVmClusterGridImageTypeEnum = "CUSTOM_IMAGE" +) + +var mappingExadbVmClusterGridImageTypeEnum = map[string]ExadbVmClusterGridImageTypeEnum{ + "RELEASE_UPDATE": ExadbVmClusterGridImageTypeReleaseUpdate, + "CUSTOM_IMAGE": ExadbVmClusterGridImageTypeCustomImage, +} + +var mappingExadbVmClusterGridImageTypeEnumLowerCase = map[string]ExadbVmClusterGridImageTypeEnum{ + "release_update": ExadbVmClusterGridImageTypeReleaseUpdate, + "custom_image": ExadbVmClusterGridImageTypeCustomImage, +} + +// GetExadbVmClusterGridImageTypeEnumValues Enumerates the set of values for ExadbVmClusterGridImageTypeEnum +func GetExadbVmClusterGridImageTypeEnumValues() []ExadbVmClusterGridImageTypeEnum { + values := make([]ExadbVmClusterGridImageTypeEnum, 0) + for _, v := range mappingExadbVmClusterGridImageTypeEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterGridImageTypeEnumStringValues Enumerates the set of values in String for ExadbVmClusterGridImageTypeEnum +func GetExadbVmClusterGridImageTypeEnumStringValues() []string { + return []string{ + "RELEASE_UPDATE", + "CUSTOM_IMAGE", + } +} + +// GetMappingExadbVmClusterGridImageTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterGridImageTypeEnum(val string) (ExadbVmClusterGridImageTypeEnum, bool) { + enum, ok := mappingExadbVmClusterGridImageTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterLicenseModelEnum Enum with underlying type: string +type ExadbVmClusterLicenseModelEnum string + +// Set of constants representing the allowable values for ExadbVmClusterLicenseModelEnum +const ( + ExadbVmClusterLicenseModelLicenseIncluded ExadbVmClusterLicenseModelEnum = "LICENSE_INCLUDED" + ExadbVmClusterLicenseModelBringYourOwnLicense ExadbVmClusterLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingExadbVmClusterLicenseModelEnum = map[string]ExadbVmClusterLicenseModelEnum{ + "LICENSE_INCLUDED": ExadbVmClusterLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": ExadbVmClusterLicenseModelBringYourOwnLicense, +} + +var mappingExadbVmClusterLicenseModelEnumLowerCase = map[string]ExadbVmClusterLicenseModelEnum{ + "license_included": ExadbVmClusterLicenseModelLicenseIncluded, + "bring_your_own_license": ExadbVmClusterLicenseModelBringYourOwnLicense, +} + +// GetExadbVmClusterLicenseModelEnumValues Enumerates the set of values for ExadbVmClusterLicenseModelEnum +func GetExadbVmClusterLicenseModelEnumValues() []ExadbVmClusterLicenseModelEnum { + values := make([]ExadbVmClusterLicenseModelEnum, 0) + for _, v := range mappingExadbVmClusterLicenseModelEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterLicenseModelEnumStringValues Enumerates the set of values in String for ExadbVmClusterLicenseModelEnum +func GetExadbVmClusterLicenseModelEnumStringValues() []string { + return []string{ + "LICENSE_INCLUDED", + "BRING_YOUR_OWN_LICENSE", + } +} + +// GetMappingExadbVmClusterLicenseModelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterLicenseModelEnum(val string) (ExadbVmClusterLicenseModelEnum, bool) { + enum, ok := mappingExadbVmClusterLicenseModelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_storage_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_storage_details.go new file mode 100644 index 00000000000..b50d7b046f7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_storage_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExadbVmClusterStorageDetails Storage Details on the Exadata VM cluster. +type ExadbVmClusterStorageDetails struct { + + // Total Capacity + TotalSizeInGbs *int `mandatory:"true" json:"totalSizeInGbs"` +} + +func (m ExadbVmClusterStorageDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExadbVmClusterStorageDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_summary.go new file mode 100644 index 00000000000..d61ad87f22f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_summary.go @@ -0,0 +1,337 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExadbVmClusterSummary Details of the Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only. +type ExadbVmClusterSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata VM cluster on Exascale Infrastructure. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name of the availability domain in which the Exadata VM cluster on Exascale Infrastructure is located. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet associated with the Exadata VM cluster on Exascale Infrastructure. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. + BackupSubnetId *string `mandatory:"true" json:"backupSubnetId"` + + // The current state of the Exadata VM cluster on Exascale Infrastructure. + LifecycleState ExadbVmClusterSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The number of nodes in the Exadata VM cluster on Exascale Infrastructure. + NodeCount *int `mandatory:"true" json:"nodeCount"` + + // The shape of the Exadata VM cluster on Exascale Infrastructure resource + Shape *string `mandatory:"true" json:"shape"` + + // The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name does not need to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The hostname for the Exadata VM cluster on Exascale Infrastructure. The hostname must begin with an alphabetic character, and + // can contain alphanumeric characters and hyphens (-). For Exadata systems, the maximum length of the hostname is 12 characters. + // The maximum length of the combined hostname and domain is 63 characters. + // **Note:** The hostname must be unique within the subnet. If it is not unique, + // then the Exadata VM cluster on Exascale Infrastructure will fail to provision. + Hostname *string `mandatory:"true" json:"hostname"` + + // A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the Oracle-provided internet and VCN + // resolver is enabled for the specified subnet, then the domain name for the subnet is used + // (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. + // Applies to Exadata Database Service on Exascale Infrastructure only. + Domain *string `mandatory:"true" json:"domain"` + + // The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster on Exascale Infrastructure. + SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"` + + // The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure. + TotalECpuCount *int `mandatory:"true" json:"totalECpuCount"` + + // The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure. + EnabledECpuCount *int `mandatory:"true" json:"enabledECpuCount"` + + VmFileSystemStorage *ExadbVmClusterStorageDetails `mandatory:"true" json:"vmFileSystemStorage"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. + ExascaleDbStorageVaultId *string `mandatory:"true" json:"exascaleDbStorageVaultId"` + + // The list of OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) for the network security groups (NSGs) to which this resource belongs. Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). + // **NsgIds restrictions:** + // - A network security group (NSG) is optional for Autonomous Databases with private access. The nsgIds list can be empty. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // A list of the OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that the backup network of this DB system belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). Applicable only to Exadata systems. + BackupNetworkNsgIds []string `mandatory:"false" json:"backupNetworkNsgIds"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the last maintenance update history entry. This value is updated when a maintenance update starts. + LastUpdateHistoryEntryId *string `mandatory:"false" json:"lastUpdateHistoryEntryId"` + + // The port number configured for the listener on the Exadata VM cluster on Exascale Infrastructure. + ListenerPort *int64 `mandatory:"false" json:"listenerPort"` + + // The date and time that the Exadata VM cluster on Exascale Infrastructure was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Additional information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The time zone to use for the Exadata VM cluster on Exascale Infrastructure. For details, see Time Zones (https://docs.cloud.oracle.com/Content/Database/References/timezones.htm). + TimeZone *string `mandatory:"false" json:"timeZone"` + + // The cluster name for Exadata VM cluster on Exascale Infrastructure. The cluster name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. + ClusterName *string `mandatory:"false" json:"clusterName"` + + // A valid Oracle Grid Infrastructure (GI) software version. + GiVersion *string `mandatory:"false" json:"giVersion"` + + // Grid Setup will be done using this grid image id + GridImageId *string `mandatory:"false" json:"gridImageId"` + + // The type of Grid Image + GridImageType ExadbVmClusterSummaryGridImageTypeEnum `mandatory:"false" json:"gridImageType,omitempty"` + + // Operating system version of the image. + SystemVersion *string `mandatory:"false" json:"systemVersion"` + + // The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. The default is BRING_YOUR_OWN_LICENSE. + LicenseModel ExadbVmClusterSummaryLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Single Client Access Name (SCAN) IP addresses associated with the Exadata VM cluster on Exascale Infrastructure. + // SCAN IP addresses are typically used for load balancing and are not assigned to any interface. + // Oracle Clusterware directs the requests to the appropriate nodes in the cluster. + // **Note:** For a single-node DB system, this list is empty. + ScanIpIds []string `mandatory:"false" json:"scanIpIds"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual IP (VIP) addresses associated with the Exadata VM cluster on Exascale Infrastructure. + // The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the Exadata Cloud Service instance to + // enable failover. If one node fails, then the VIP is reassigned to another active node in the cluster. + VipIds []string `mandatory:"false" json:"vipIds"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DNS record for the SCAN IP addresses that are associated with the Exadata VM cluster on Exascale Infrastructure. + ScanDnsRecordId *string `mandatory:"false" json:"scanDnsRecordId"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The FQDN of the DNS record for the SCAN IP addresses that are associated with the Exadata VM cluster on Exascale Infrastructure. + ScanDnsName *string `mandatory:"false" json:"scanDnsName"` + + // The OCID of the zone with which the Exadata VM cluster on Exascale Infrastructure is associated. + ZoneId *string `mandatory:"false" json:"zoneId"` + + // The TCP Single Client Access Name (SCAN) port. The default port is 1521. + ScanListenerPortTcp *int `mandatory:"false" json:"scanListenerPortTcp"` + + // The Secured Communication (TCPS) protocol Single Client Access Name (SCAN) port. The default port is 2484. + ScanListenerPortTcpSsl *int `mandatory:"false" json:"scanListenerPortTcpSsl"` + + // The private zone ID in which you want DNS records to be created. + PrivateZoneId *string `mandatory:"false" json:"privateZoneId"` + + DataCollectionOptions *DataCollectionOptions `mandatory:"false" json:"dataCollectionOptions"` + + SnapshotFileSystemStorage *ExadbVmClusterStorageDetails `mandatory:"false" json:"snapshotFileSystemStorage"` + + TotalFileSystemStorage *ExadbVmClusterStorageDetails `mandatory:"false" json:"totalFileSystemStorage"` + + // The memory that you want to be allocated in GBs. Memory is calculated based on 11 GB per VM core reserved. + MemorySizeInGBs *int `mandatory:"false" json:"memorySizeInGBs"` +} + +func (m ExadbVmClusterSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExadbVmClusterSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingExadbVmClusterSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetExadbVmClusterSummaryLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingExadbVmClusterSummaryGridImageTypeEnum(string(m.GridImageType)); !ok && m.GridImageType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for GridImageType: %s. Supported values are: %s.", m.GridImageType, strings.Join(GetExadbVmClusterSummaryGridImageTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingExadbVmClusterSummaryLicenseModelEnum(string(m.LicenseModel)); !ok && m.LicenseModel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LicenseModel: %s. Supported values are: %s.", m.LicenseModel, strings.Join(GetExadbVmClusterSummaryLicenseModelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ExadbVmClusterSummaryLifecycleStateEnum Enum with underlying type: string +type ExadbVmClusterSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for ExadbVmClusterSummaryLifecycleStateEnum +const ( + ExadbVmClusterSummaryLifecycleStateProvisioning ExadbVmClusterSummaryLifecycleStateEnum = "PROVISIONING" + ExadbVmClusterSummaryLifecycleStateAvailable ExadbVmClusterSummaryLifecycleStateEnum = "AVAILABLE" + ExadbVmClusterSummaryLifecycleStateUpdating ExadbVmClusterSummaryLifecycleStateEnum = "UPDATING" + ExadbVmClusterSummaryLifecycleStateTerminating ExadbVmClusterSummaryLifecycleStateEnum = "TERMINATING" + ExadbVmClusterSummaryLifecycleStateTerminated ExadbVmClusterSummaryLifecycleStateEnum = "TERMINATED" + ExadbVmClusterSummaryLifecycleStateFailed ExadbVmClusterSummaryLifecycleStateEnum = "FAILED" + ExadbVmClusterSummaryLifecycleStateMaintenanceInProgress ExadbVmClusterSummaryLifecycleStateEnum = "MAINTENANCE_IN_PROGRESS" +) + +var mappingExadbVmClusterSummaryLifecycleStateEnum = map[string]ExadbVmClusterSummaryLifecycleStateEnum{ + "PROVISIONING": ExadbVmClusterSummaryLifecycleStateProvisioning, + "AVAILABLE": ExadbVmClusterSummaryLifecycleStateAvailable, + "UPDATING": ExadbVmClusterSummaryLifecycleStateUpdating, + "TERMINATING": ExadbVmClusterSummaryLifecycleStateTerminating, + "TERMINATED": ExadbVmClusterSummaryLifecycleStateTerminated, + "FAILED": ExadbVmClusterSummaryLifecycleStateFailed, + "MAINTENANCE_IN_PROGRESS": ExadbVmClusterSummaryLifecycleStateMaintenanceInProgress, +} + +var mappingExadbVmClusterSummaryLifecycleStateEnumLowerCase = map[string]ExadbVmClusterSummaryLifecycleStateEnum{ + "provisioning": ExadbVmClusterSummaryLifecycleStateProvisioning, + "available": ExadbVmClusterSummaryLifecycleStateAvailable, + "updating": ExadbVmClusterSummaryLifecycleStateUpdating, + "terminating": ExadbVmClusterSummaryLifecycleStateTerminating, + "terminated": ExadbVmClusterSummaryLifecycleStateTerminated, + "failed": ExadbVmClusterSummaryLifecycleStateFailed, + "maintenance_in_progress": ExadbVmClusterSummaryLifecycleStateMaintenanceInProgress, +} + +// GetExadbVmClusterSummaryLifecycleStateEnumValues Enumerates the set of values for ExadbVmClusterSummaryLifecycleStateEnum +func GetExadbVmClusterSummaryLifecycleStateEnumValues() []ExadbVmClusterSummaryLifecycleStateEnum { + values := make([]ExadbVmClusterSummaryLifecycleStateEnum, 0) + for _, v := range mappingExadbVmClusterSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for ExadbVmClusterSummaryLifecycleStateEnum +func GetExadbVmClusterSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "TERMINATING", + "TERMINATED", + "FAILED", + "MAINTENANCE_IN_PROGRESS", + } +} + +// GetMappingExadbVmClusterSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterSummaryLifecycleStateEnum(val string) (ExadbVmClusterSummaryLifecycleStateEnum, bool) { + enum, ok := mappingExadbVmClusterSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterSummaryGridImageTypeEnum Enum with underlying type: string +type ExadbVmClusterSummaryGridImageTypeEnum string + +// Set of constants representing the allowable values for ExadbVmClusterSummaryGridImageTypeEnum +const ( + ExadbVmClusterSummaryGridImageTypeReleaseUpdate ExadbVmClusterSummaryGridImageTypeEnum = "RELEASE_UPDATE" + ExadbVmClusterSummaryGridImageTypeCustomImage ExadbVmClusterSummaryGridImageTypeEnum = "CUSTOM_IMAGE" +) + +var mappingExadbVmClusterSummaryGridImageTypeEnum = map[string]ExadbVmClusterSummaryGridImageTypeEnum{ + "RELEASE_UPDATE": ExadbVmClusterSummaryGridImageTypeReleaseUpdate, + "CUSTOM_IMAGE": ExadbVmClusterSummaryGridImageTypeCustomImage, +} + +var mappingExadbVmClusterSummaryGridImageTypeEnumLowerCase = map[string]ExadbVmClusterSummaryGridImageTypeEnum{ + "release_update": ExadbVmClusterSummaryGridImageTypeReleaseUpdate, + "custom_image": ExadbVmClusterSummaryGridImageTypeCustomImage, +} + +// GetExadbVmClusterSummaryGridImageTypeEnumValues Enumerates the set of values for ExadbVmClusterSummaryGridImageTypeEnum +func GetExadbVmClusterSummaryGridImageTypeEnumValues() []ExadbVmClusterSummaryGridImageTypeEnum { + values := make([]ExadbVmClusterSummaryGridImageTypeEnum, 0) + for _, v := range mappingExadbVmClusterSummaryGridImageTypeEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterSummaryGridImageTypeEnumStringValues Enumerates the set of values in String for ExadbVmClusterSummaryGridImageTypeEnum +func GetExadbVmClusterSummaryGridImageTypeEnumStringValues() []string { + return []string{ + "RELEASE_UPDATE", + "CUSTOM_IMAGE", + } +} + +// GetMappingExadbVmClusterSummaryGridImageTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterSummaryGridImageTypeEnum(val string) (ExadbVmClusterSummaryGridImageTypeEnum, bool) { + enum, ok := mappingExadbVmClusterSummaryGridImageTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterSummaryLicenseModelEnum Enum with underlying type: string +type ExadbVmClusterSummaryLicenseModelEnum string + +// Set of constants representing the allowable values for ExadbVmClusterSummaryLicenseModelEnum +const ( + ExadbVmClusterSummaryLicenseModelLicenseIncluded ExadbVmClusterSummaryLicenseModelEnum = "LICENSE_INCLUDED" + ExadbVmClusterSummaryLicenseModelBringYourOwnLicense ExadbVmClusterSummaryLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingExadbVmClusterSummaryLicenseModelEnum = map[string]ExadbVmClusterSummaryLicenseModelEnum{ + "LICENSE_INCLUDED": ExadbVmClusterSummaryLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": ExadbVmClusterSummaryLicenseModelBringYourOwnLicense, +} + +var mappingExadbVmClusterSummaryLicenseModelEnumLowerCase = map[string]ExadbVmClusterSummaryLicenseModelEnum{ + "license_included": ExadbVmClusterSummaryLicenseModelLicenseIncluded, + "bring_your_own_license": ExadbVmClusterSummaryLicenseModelBringYourOwnLicense, +} + +// GetExadbVmClusterSummaryLicenseModelEnumValues Enumerates the set of values for ExadbVmClusterSummaryLicenseModelEnum +func GetExadbVmClusterSummaryLicenseModelEnumValues() []ExadbVmClusterSummaryLicenseModelEnum { + values := make([]ExadbVmClusterSummaryLicenseModelEnum, 0) + for _, v := range mappingExadbVmClusterSummaryLicenseModelEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterSummaryLicenseModelEnumStringValues Enumerates the set of values in String for ExadbVmClusterSummaryLicenseModelEnum +func GetExadbVmClusterSummaryLicenseModelEnumStringValues() []string { + return []string{ + "LICENSE_INCLUDED", + "BRING_YOUR_OWN_LICENSE", + } +} + +// GetMappingExadbVmClusterSummaryLicenseModelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterSummaryLicenseModelEnum(val string) (ExadbVmClusterSummaryLicenseModelEnum, bool) { + enum, ok := mappingExadbVmClusterSummaryLicenseModelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_update.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_update.go new file mode 100644 index 00000000000..5c67862bedf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_update.go @@ -0,0 +1,274 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExadbVmClusterUpdate A maintenance update details for an Exadata VM cluster on Exascale Infrastructure. +type ExadbVmClusterUpdate struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the maintenance update. + Id *string `mandatory:"true" json:"id"` + + // Details of the maintenance update package. + Description *string `mandatory:"true" json:"description"` + + // The type of cloud VM cluster maintenance update. + UpdateType ExadbVmClusterUpdateUpdateTypeEnum `mandatory:"true" json:"updateType"` + + // The date and time the maintenance update was released. + TimeReleased *common.SDKTime `mandatory:"true" json:"timeReleased"` + + // The version of the maintenance update package. + Version *string `mandatory:"true" json:"version"` + + // The previous update action performed. + LastAction ExadbVmClusterUpdateLastActionEnum `mandatory:"false" json:"lastAction,omitempty"` + + // The possible actions performed by the update operation on the infrastructure components. + AvailableActions []ExadbVmClusterUpdateAvailableActionsEnum `mandatory:"false" json:"availableActions,omitempty"` + + // Descriptive text providing additional details about the lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The current state of the maintenance update. Dependent on value of `lastAction`. + LifecycleState ExadbVmClusterUpdateLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` +} + +func (m ExadbVmClusterUpdate) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExadbVmClusterUpdate) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingExadbVmClusterUpdateUpdateTypeEnum(string(m.UpdateType)); !ok && m.UpdateType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateType: %s. Supported values are: %s.", m.UpdateType, strings.Join(GetExadbVmClusterUpdateUpdateTypeEnumStringValues(), ","))) + } + + if _, ok := GetMappingExadbVmClusterUpdateLastActionEnum(string(m.LastAction)); !ok && m.LastAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LastAction: %s. Supported values are: %s.", m.LastAction, strings.Join(GetExadbVmClusterUpdateLastActionEnumStringValues(), ","))) + } + for _, val := range m.AvailableActions { + if _, ok := GetMappingExadbVmClusterUpdateAvailableActionsEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AvailableActions: %s. Supported values are: %s.", val, strings.Join(GetExadbVmClusterUpdateAvailableActionsEnumStringValues(), ","))) + } + } + + if _, ok := GetMappingExadbVmClusterUpdateLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetExadbVmClusterUpdateLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ExadbVmClusterUpdateLastActionEnum Enum with underlying type: string +type ExadbVmClusterUpdateLastActionEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateLastActionEnum +const ( + ExadbVmClusterUpdateLastActionRollingApply ExadbVmClusterUpdateLastActionEnum = "ROLLING_APPLY" + ExadbVmClusterUpdateLastActionNonRollingApply ExadbVmClusterUpdateLastActionEnum = "NON_ROLLING_APPLY" + ExadbVmClusterUpdateLastActionPrecheck ExadbVmClusterUpdateLastActionEnum = "PRECHECK" + ExadbVmClusterUpdateLastActionRollback ExadbVmClusterUpdateLastActionEnum = "ROLLBACK" +) + +var mappingExadbVmClusterUpdateLastActionEnum = map[string]ExadbVmClusterUpdateLastActionEnum{ + "ROLLING_APPLY": ExadbVmClusterUpdateLastActionRollingApply, + "NON_ROLLING_APPLY": ExadbVmClusterUpdateLastActionNonRollingApply, + "PRECHECK": ExadbVmClusterUpdateLastActionPrecheck, + "ROLLBACK": ExadbVmClusterUpdateLastActionRollback, +} + +var mappingExadbVmClusterUpdateLastActionEnumLowerCase = map[string]ExadbVmClusterUpdateLastActionEnum{ + "rolling_apply": ExadbVmClusterUpdateLastActionRollingApply, + "non_rolling_apply": ExadbVmClusterUpdateLastActionNonRollingApply, + "precheck": ExadbVmClusterUpdateLastActionPrecheck, + "rollback": ExadbVmClusterUpdateLastActionRollback, +} + +// GetExadbVmClusterUpdateLastActionEnumValues Enumerates the set of values for ExadbVmClusterUpdateLastActionEnum +func GetExadbVmClusterUpdateLastActionEnumValues() []ExadbVmClusterUpdateLastActionEnum { + values := make([]ExadbVmClusterUpdateLastActionEnum, 0) + for _, v := range mappingExadbVmClusterUpdateLastActionEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateLastActionEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateLastActionEnum +func GetExadbVmClusterUpdateLastActionEnumStringValues() []string { + return []string{ + "ROLLING_APPLY", + "NON_ROLLING_APPLY", + "PRECHECK", + "ROLLBACK", + } +} + +// GetMappingExadbVmClusterUpdateLastActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateLastActionEnum(val string) (ExadbVmClusterUpdateLastActionEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateLastActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterUpdateAvailableActionsEnum Enum with underlying type: string +type ExadbVmClusterUpdateAvailableActionsEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateAvailableActionsEnum +const ( + ExadbVmClusterUpdateAvailableActionsRollingApply ExadbVmClusterUpdateAvailableActionsEnum = "ROLLING_APPLY" + ExadbVmClusterUpdateAvailableActionsNonRollingApply ExadbVmClusterUpdateAvailableActionsEnum = "NON_ROLLING_APPLY" + ExadbVmClusterUpdateAvailableActionsPrecheck ExadbVmClusterUpdateAvailableActionsEnum = "PRECHECK" + ExadbVmClusterUpdateAvailableActionsRollback ExadbVmClusterUpdateAvailableActionsEnum = "ROLLBACK" +) + +var mappingExadbVmClusterUpdateAvailableActionsEnum = map[string]ExadbVmClusterUpdateAvailableActionsEnum{ + "ROLLING_APPLY": ExadbVmClusterUpdateAvailableActionsRollingApply, + "NON_ROLLING_APPLY": ExadbVmClusterUpdateAvailableActionsNonRollingApply, + "PRECHECK": ExadbVmClusterUpdateAvailableActionsPrecheck, + "ROLLBACK": ExadbVmClusterUpdateAvailableActionsRollback, +} + +var mappingExadbVmClusterUpdateAvailableActionsEnumLowerCase = map[string]ExadbVmClusterUpdateAvailableActionsEnum{ + "rolling_apply": ExadbVmClusterUpdateAvailableActionsRollingApply, + "non_rolling_apply": ExadbVmClusterUpdateAvailableActionsNonRollingApply, + "precheck": ExadbVmClusterUpdateAvailableActionsPrecheck, + "rollback": ExadbVmClusterUpdateAvailableActionsRollback, +} + +// GetExadbVmClusterUpdateAvailableActionsEnumValues Enumerates the set of values for ExadbVmClusterUpdateAvailableActionsEnum +func GetExadbVmClusterUpdateAvailableActionsEnumValues() []ExadbVmClusterUpdateAvailableActionsEnum { + values := make([]ExadbVmClusterUpdateAvailableActionsEnum, 0) + for _, v := range mappingExadbVmClusterUpdateAvailableActionsEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateAvailableActionsEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateAvailableActionsEnum +func GetExadbVmClusterUpdateAvailableActionsEnumStringValues() []string { + return []string{ + "ROLLING_APPLY", + "NON_ROLLING_APPLY", + "PRECHECK", + "ROLLBACK", + } +} + +// GetMappingExadbVmClusterUpdateAvailableActionsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateAvailableActionsEnum(val string) (ExadbVmClusterUpdateAvailableActionsEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateAvailableActionsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterUpdateUpdateTypeEnum Enum with underlying type: string +type ExadbVmClusterUpdateUpdateTypeEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateUpdateTypeEnum +const ( + ExadbVmClusterUpdateUpdateTypeGiUpgrade ExadbVmClusterUpdateUpdateTypeEnum = "GI_UPGRADE" + ExadbVmClusterUpdateUpdateTypeGiPatch ExadbVmClusterUpdateUpdateTypeEnum = "GI_PATCH" + ExadbVmClusterUpdateUpdateTypeOsUpdate ExadbVmClusterUpdateUpdateTypeEnum = "OS_UPDATE" +) + +var mappingExadbVmClusterUpdateUpdateTypeEnum = map[string]ExadbVmClusterUpdateUpdateTypeEnum{ + "GI_UPGRADE": ExadbVmClusterUpdateUpdateTypeGiUpgrade, + "GI_PATCH": ExadbVmClusterUpdateUpdateTypeGiPatch, + "OS_UPDATE": ExadbVmClusterUpdateUpdateTypeOsUpdate, +} + +var mappingExadbVmClusterUpdateUpdateTypeEnumLowerCase = map[string]ExadbVmClusterUpdateUpdateTypeEnum{ + "gi_upgrade": ExadbVmClusterUpdateUpdateTypeGiUpgrade, + "gi_patch": ExadbVmClusterUpdateUpdateTypeGiPatch, + "os_update": ExadbVmClusterUpdateUpdateTypeOsUpdate, +} + +// GetExadbVmClusterUpdateUpdateTypeEnumValues Enumerates the set of values for ExadbVmClusterUpdateUpdateTypeEnum +func GetExadbVmClusterUpdateUpdateTypeEnumValues() []ExadbVmClusterUpdateUpdateTypeEnum { + values := make([]ExadbVmClusterUpdateUpdateTypeEnum, 0) + for _, v := range mappingExadbVmClusterUpdateUpdateTypeEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateUpdateTypeEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateUpdateTypeEnum +func GetExadbVmClusterUpdateUpdateTypeEnumStringValues() []string { + return []string{ + "GI_UPGRADE", + "GI_PATCH", + "OS_UPDATE", + } +} + +// GetMappingExadbVmClusterUpdateUpdateTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateUpdateTypeEnum(val string) (ExadbVmClusterUpdateUpdateTypeEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateUpdateTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterUpdateLifecycleStateEnum Enum with underlying type: string +type ExadbVmClusterUpdateLifecycleStateEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateLifecycleStateEnum +const ( + ExadbVmClusterUpdateLifecycleStateAvailable ExadbVmClusterUpdateLifecycleStateEnum = "AVAILABLE" + ExadbVmClusterUpdateLifecycleStateSuccess ExadbVmClusterUpdateLifecycleStateEnum = "SUCCESS" + ExadbVmClusterUpdateLifecycleStateInProgress ExadbVmClusterUpdateLifecycleStateEnum = "IN_PROGRESS" + ExadbVmClusterUpdateLifecycleStateFailed ExadbVmClusterUpdateLifecycleStateEnum = "FAILED" +) + +var mappingExadbVmClusterUpdateLifecycleStateEnum = map[string]ExadbVmClusterUpdateLifecycleStateEnum{ + "AVAILABLE": ExadbVmClusterUpdateLifecycleStateAvailable, + "SUCCESS": ExadbVmClusterUpdateLifecycleStateSuccess, + "IN_PROGRESS": ExadbVmClusterUpdateLifecycleStateInProgress, + "FAILED": ExadbVmClusterUpdateLifecycleStateFailed, +} + +var mappingExadbVmClusterUpdateLifecycleStateEnumLowerCase = map[string]ExadbVmClusterUpdateLifecycleStateEnum{ + "available": ExadbVmClusterUpdateLifecycleStateAvailable, + "success": ExadbVmClusterUpdateLifecycleStateSuccess, + "in_progress": ExadbVmClusterUpdateLifecycleStateInProgress, + "failed": ExadbVmClusterUpdateLifecycleStateFailed, +} + +// GetExadbVmClusterUpdateLifecycleStateEnumValues Enumerates the set of values for ExadbVmClusterUpdateLifecycleStateEnum +func GetExadbVmClusterUpdateLifecycleStateEnumValues() []ExadbVmClusterUpdateLifecycleStateEnum { + values := make([]ExadbVmClusterUpdateLifecycleStateEnum, 0) + for _, v := range mappingExadbVmClusterUpdateLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateLifecycleStateEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateLifecycleStateEnum +func GetExadbVmClusterUpdateLifecycleStateEnumStringValues() []string { + return []string{ + "AVAILABLE", + "SUCCESS", + "IN_PROGRESS", + "FAILED", + } +} + +// GetMappingExadbVmClusterUpdateLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateLifecycleStateEnum(val string) (ExadbVmClusterUpdateLifecycleStateEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_update_history_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_update_history_entry.go new file mode 100644 index 00000000000..4c27a4202e3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_update_history_entry.go @@ -0,0 +1,214 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExadbVmClusterUpdateHistoryEntry The record of an maintenance update action on a specified Exadata VM cluster on Exascale Infrastructure. +type ExadbVmClusterUpdateHistoryEntry struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the maintenance update. + UpdateId *string `mandatory:"true" json:"updateId"` + + // The type of cloud VM cluster maintenance update. + UpdateType ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum `mandatory:"true" json:"updateType"` + + // The current lifecycle state of the maintenance update operation. + LifecycleState ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time when the maintenance update action started. + TimeStarted *common.SDKTime `mandatory:"true" json:"timeStarted"` + + // The update action. + UpdateAction ExadbVmClusterUpdateHistoryEntryUpdateActionEnum `mandatory:"false" json:"updateAction,omitempty"` + + // Descriptive text providing additional details about the lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The date and time when the maintenance update action completed. + TimeCompleted *common.SDKTime `mandatory:"false" json:"timeCompleted"` + + // The version of the maintenance update package. + Version *string `mandatory:"false" json:"version"` +} + +func (m ExadbVmClusterUpdateHistoryEntry) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExadbVmClusterUpdateHistoryEntry) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingExadbVmClusterUpdateHistoryEntryUpdateTypeEnum(string(m.UpdateType)); !ok && m.UpdateType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateType: %s. Supported values are: %s.", m.UpdateType, strings.Join(GetExadbVmClusterUpdateHistoryEntryUpdateTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingExadbVmClusterUpdateHistoryEntryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetExadbVmClusterUpdateHistoryEntryLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingExadbVmClusterUpdateHistoryEntryUpdateActionEnum(string(m.UpdateAction)); !ok && m.UpdateAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateAction: %s. Supported values are: %s.", m.UpdateAction, strings.Join(GetExadbVmClusterUpdateHistoryEntryUpdateActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ExadbVmClusterUpdateHistoryEntryUpdateActionEnum Enum with underlying type: string +type ExadbVmClusterUpdateHistoryEntryUpdateActionEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateHistoryEntryUpdateActionEnum +const ( + ExadbVmClusterUpdateHistoryEntryUpdateActionRollingApply ExadbVmClusterUpdateHistoryEntryUpdateActionEnum = "ROLLING_APPLY" + ExadbVmClusterUpdateHistoryEntryUpdateActionNonRollingApply ExadbVmClusterUpdateHistoryEntryUpdateActionEnum = "NON_ROLLING_APPLY" + ExadbVmClusterUpdateHistoryEntryUpdateActionPrecheck ExadbVmClusterUpdateHistoryEntryUpdateActionEnum = "PRECHECK" + ExadbVmClusterUpdateHistoryEntryUpdateActionRollback ExadbVmClusterUpdateHistoryEntryUpdateActionEnum = "ROLLBACK" +) + +var mappingExadbVmClusterUpdateHistoryEntryUpdateActionEnum = map[string]ExadbVmClusterUpdateHistoryEntryUpdateActionEnum{ + "ROLLING_APPLY": ExadbVmClusterUpdateHistoryEntryUpdateActionRollingApply, + "NON_ROLLING_APPLY": ExadbVmClusterUpdateHistoryEntryUpdateActionNonRollingApply, + "PRECHECK": ExadbVmClusterUpdateHistoryEntryUpdateActionPrecheck, + "ROLLBACK": ExadbVmClusterUpdateHistoryEntryUpdateActionRollback, +} + +var mappingExadbVmClusterUpdateHistoryEntryUpdateActionEnumLowerCase = map[string]ExadbVmClusterUpdateHistoryEntryUpdateActionEnum{ + "rolling_apply": ExadbVmClusterUpdateHistoryEntryUpdateActionRollingApply, + "non_rolling_apply": ExadbVmClusterUpdateHistoryEntryUpdateActionNonRollingApply, + "precheck": ExadbVmClusterUpdateHistoryEntryUpdateActionPrecheck, + "rollback": ExadbVmClusterUpdateHistoryEntryUpdateActionRollback, +} + +// GetExadbVmClusterUpdateHistoryEntryUpdateActionEnumValues Enumerates the set of values for ExadbVmClusterUpdateHistoryEntryUpdateActionEnum +func GetExadbVmClusterUpdateHistoryEntryUpdateActionEnumValues() []ExadbVmClusterUpdateHistoryEntryUpdateActionEnum { + values := make([]ExadbVmClusterUpdateHistoryEntryUpdateActionEnum, 0) + for _, v := range mappingExadbVmClusterUpdateHistoryEntryUpdateActionEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateHistoryEntryUpdateActionEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateHistoryEntryUpdateActionEnum +func GetExadbVmClusterUpdateHistoryEntryUpdateActionEnumStringValues() []string { + return []string{ + "ROLLING_APPLY", + "NON_ROLLING_APPLY", + "PRECHECK", + "ROLLBACK", + } +} + +// GetMappingExadbVmClusterUpdateHistoryEntryUpdateActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateHistoryEntryUpdateActionEnum(val string) (ExadbVmClusterUpdateHistoryEntryUpdateActionEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateHistoryEntryUpdateActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum Enum with underlying type: string +type ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum +const ( + ExadbVmClusterUpdateHistoryEntryUpdateTypeGiUpgrade ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum = "GI_UPGRADE" + ExadbVmClusterUpdateHistoryEntryUpdateTypeGiPatch ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum = "GI_PATCH" + ExadbVmClusterUpdateHistoryEntryUpdateTypeOsUpdate ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum = "OS_UPDATE" +) + +var mappingExadbVmClusterUpdateHistoryEntryUpdateTypeEnum = map[string]ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum{ + "GI_UPGRADE": ExadbVmClusterUpdateHistoryEntryUpdateTypeGiUpgrade, + "GI_PATCH": ExadbVmClusterUpdateHistoryEntryUpdateTypeGiPatch, + "OS_UPDATE": ExadbVmClusterUpdateHistoryEntryUpdateTypeOsUpdate, +} + +var mappingExadbVmClusterUpdateHistoryEntryUpdateTypeEnumLowerCase = map[string]ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum{ + "gi_upgrade": ExadbVmClusterUpdateHistoryEntryUpdateTypeGiUpgrade, + "gi_patch": ExadbVmClusterUpdateHistoryEntryUpdateTypeGiPatch, + "os_update": ExadbVmClusterUpdateHistoryEntryUpdateTypeOsUpdate, +} + +// GetExadbVmClusterUpdateHistoryEntryUpdateTypeEnumValues Enumerates the set of values for ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum +func GetExadbVmClusterUpdateHistoryEntryUpdateTypeEnumValues() []ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum { + values := make([]ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum, 0) + for _, v := range mappingExadbVmClusterUpdateHistoryEntryUpdateTypeEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateHistoryEntryUpdateTypeEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum +func GetExadbVmClusterUpdateHistoryEntryUpdateTypeEnumStringValues() []string { + return []string{ + "GI_UPGRADE", + "GI_PATCH", + "OS_UPDATE", + } +} + +// GetMappingExadbVmClusterUpdateHistoryEntryUpdateTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateHistoryEntryUpdateTypeEnum(val string) (ExadbVmClusterUpdateHistoryEntryUpdateTypeEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateHistoryEntryUpdateTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum Enum with underlying type: string +type ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum +const ( + ExadbVmClusterUpdateHistoryEntryLifecycleStateInProgress ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum = "IN_PROGRESS" + ExadbVmClusterUpdateHistoryEntryLifecycleStateSucceeded ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum = "SUCCEEDED" + ExadbVmClusterUpdateHistoryEntryLifecycleStateFailed ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum = "FAILED" +) + +var mappingExadbVmClusterUpdateHistoryEntryLifecycleStateEnum = map[string]ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum{ + "IN_PROGRESS": ExadbVmClusterUpdateHistoryEntryLifecycleStateInProgress, + "SUCCEEDED": ExadbVmClusterUpdateHistoryEntryLifecycleStateSucceeded, + "FAILED": ExadbVmClusterUpdateHistoryEntryLifecycleStateFailed, +} + +var mappingExadbVmClusterUpdateHistoryEntryLifecycleStateEnumLowerCase = map[string]ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum{ + "in_progress": ExadbVmClusterUpdateHistoryEntryLifecycleStateInProgress, + "succeeded": ExadbVmClusterUpdateHistoryEntryLifecycleStateSucceeded, + "failed": ExadbVmClusterUpdateHistoryEntryLifecycleStateFailed, +} + +// GetExadbVmClusterUpdateHistoryEntryLifecycleStateEnumValues Enumerates the set of values for ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum +func GetExadbVmClusterUpdateHistoryEntryLifecycleStateEnumValues() []ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum { + values := make([]ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum, 0) + for _, v := range mappingExadbVmClusterUpdateHistoryEntryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateHistoryEntryLifecycleStateEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum +func GetExadbVmClusterUpdateHistoryEntryLifecycleStateEnumStringValues() []string { + return []string{ + "IN_PROGRESS", + "SUCCEEDED", + "FAILED", + } +} + +// GetMappingExadbVmClusterUpdateHistoryEntryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateHistoryEntryLifecycleStateEnum(val string) (ExadbVmClusterUpdateHistoryEntryLifecycleStateEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateHistoryEntryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_update_history_entry_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_update_history_entry_summary.go new file mode 100644 index 00000000000..b06cb2f5a16 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_update_history_entry_summary.go @@ -0,0 +1,214 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExadbVmClusterUpdateHistoryEntrySummary The record of an maintenance update action on a specified Exadata VM cluster on Exascale Infrastructure. +type ExadbVmClusterUpdateHistoryEntrySummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the maintenance update. + UpdateId *string `mandatory:"true" json:"updateId"` + + // The type of cloud VM cluster maintenance update. + UpdateType ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum `mandatory:"true" json:"updateType"` + + // The current lifecycle state of the maintenance update operation. + LifecycleState ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time when the maintenance update action started. + TimeStarted *common.SDKTime `mandatory:"true" json:"timeStarted"` + + // The update action. + UpdateAction ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum `mandatory:"false" json:"updateAction,omitempty"` + + // Descriptive text providing additional details about the lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The date and time when the maintenance update action completed. + TimeCompleted *common.SDKTime `mandatory:"false" json:"timeCompleted"` + + // The version of the maintenance update package. + Version *string `mandatory:"false" json:"version"` +} + +func (m ExadbVmClusterUpdateHistoryEntrySummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExadbVmClusterUpdateHistoryEntrySummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum(string(m.UpdateType)); !ok && m.UpdateType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateType: %s. Supported values are: %s.", m.UpdateType, strings.Join(GetExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum(string(m.UpdateAction)); !ok && m.UpdateAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateAction: %s. Supported values are: %s.", m.UpdateAction, strings.Join(GetExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum Enum with underlying type: string +type ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum +const ( + ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionRollingApply ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum = "ROLLING_APPLY" + ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionNonRollingApply ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum = "NON_ROLLING_APPLY" + ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionPrecheck ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum = "PRECHECK" + ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionRollback ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum = "ROLLBACK" +) + +var mappingExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum = map[string]ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum{ + "ROLLING_APPLY": ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionRollingApply, + "NON_ROLLING_APPLY": ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionNonRollingApply, + "PRECHECK": ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionPrecheck, + "ROLLBACK": ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionRollback, +} + +var mappingExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnumLowerCase = map[string]ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum{ + "rolling_apply": ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionRollingApply, + "non_rolling_apply": ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionNonRollingApply, + "precheck": ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionPrecheck, + "rollback": ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionRollback, +} + +// GetExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnumValues Enumerates the set of values for ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum +func GetExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnumValues() []ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum { + values := make([]ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum, 0) + for _, v := range mappingExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum +func GetExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnumStringValues() []string { + return []string{ + "ROLLING_APPLY", + "NON_ROLLING_APPLY", + "PRECHECK", + "ROLLBACK", + } +} + +// GetMappingExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum(val string) (ExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateHistoryEntrySummaryUpdateActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum Enum with underlying type: string +type ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum +const ( + ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeGiUpgrade ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum = "GI_UPGRADE" + ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeGiPatch ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum = "GI_PATCH" + ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeOsUpdate ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum = "OS_UPDATE" +) + +var mappingExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum = map[string]ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum{ + "GI_UPGRADE": ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeGiUpgrade, + "GI_PATCH": ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeGiPatch, + "OS_UPDATE": ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeOsUpdate, +} + +var mappingExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnumLowerCase = map[string]ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum{ + "gi_upgrade": ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeGiUpgrade, + "gi_patch": ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeGiPatch, + "os_update": ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeOsUpdate, +} + +// GetExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnumValues Enumerates the set of values for ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum +func GetExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnumValues() []ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum { + values := make([]ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum, 0) + for _, v := range mappingExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum +func GetExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnumStringValues() []string { + return []string{ + "GI_UPGRADE", + "GI_PATCH", + "OS_UPDATE", + } +} + +// GetMappingExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum(val string) (ExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateHistoryEntrySummaryUpdateTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum Enum with underlying type: string +type ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum +const ( + ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateInProgress ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum = "IN_PROGRESS" + ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateSucceeded ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum = "SUCCEEDED" + ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateFailed ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum = "FAILED" +) + +var mappingExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum = map[string]ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum{ + "IN_PROGRESS": ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateInProgress, + "SUCCEEDED": ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateSucceeded, + "FAILED": ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateFailed, +} + +var mappingExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnumLowerCase = map[string]ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum{ + "in_progress": ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateInProgress, + "succeeded": ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateSucceeded, + "failed": ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateFailed, +} + +// GetExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnumValues Enumerates the set of values for ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum +func GetExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnumValues() []ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum { + values := make([]ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum, 0) + for _, v := range mappingExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum +func GetExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnumStringValues() []string { + return []string{ + "IN_PROGRESS", + "SUCCEEDED", + "FAILED", + } +} + +// GetMappingExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum(val string) (ExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateHistoryEntrySummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_update_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_update_summary.go new file mode 100644 index 00000000000..3f74d37fd74 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/exadb_vm_cluster_update_summary.go @@ -0,0 +1,277 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExadbVmClusterUpdateSummary A maintenance update details for an Exadata VM cluster on Exascale Infrastructure. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). +type ExadbVmClusterUpdateSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the maintenance update. + Id *string `mandatory:"true" json:"id"` + + // Details of the maintenance update package. + Description *string `mandatory:"true" json:"description"` + + // The type of cloud VM cluster maintenance update. + UpdateType ExadbVmClusterUpdateSummaryUpdateTypeEnum `mandatory:"true" json:"updateType"` + + // The date and time the maintenance update was released. + TimeReleased *common.SDKTime `mandatory:"true" json:"timeReleased"` + + // The version of the maintenance update package. + Version *string `mandatory:"true" json:"version"` + + // The previous update action performed. + LastAction ExadbVmClusterUpdateSummaryLastActionEnum `mandatory:"false" json:"lastAction,omitempty"` + + // The possible actions performed by the update operation on the infrastructure components. + AvailableActions []ExadbVmClusterUpdateSummaryAvailableActionsEnum `mandatory:"false" json:"availableActions,omitempty"` + + // Descriptive text providing additional details about the lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The current state of the maintenance update. Dependent on value of `lastAction`. + LifecycleState ExadbVmClusterUpdateSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` +} + +func (m ExadbVmClusterUpdateSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExadbVmClusterUpdateSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingExadbVmClusterUpdateSummaryUpdateTypeEnum(string(m.UpdateType)); !ok && m.UpdateType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateType: %s. Supported values are: %s.", m.UpdateType, strings.Join(GetExadbVmClusterUpdateSummaryUpdateTypeEnumStringValues(), ","))) + } + + if _, ok := GetMappingExadbVmClusterUpdateSummaryLastActionEnum(string(m.LastAction)); !ok && m.LastAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LastAction: %s. Supported values are: %s.", m.LastAction, strings.Join(GetExadbVmClusterUpdateSummaryLastActionEnumStringValues(), ","))) + } + for _, val := range m.AvailableActions { + if _, ok := GetMappingExadbVmClusterUpdateSummaryAvailableActionsEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AvailableActions: %s. Supported values are: %s.", val, strings.Join(GetExadbVmClusterUpdateSummaryAvailableActionsEnumStringValues(), ","))) + } + } + + if _, ok := GetMappingExadbVmClusterUpdateSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetExadbVmClusterUpdateSummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ExadbVmClusterUpdateSummaryLastActionEnum Enum with underlying type: string +type ExadbVmClusterUpdateSummaryLastActionEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateSummaryLastActionEnum +const ( + ExadbVmClusterUpdateSummaryLastActionRollingApply ExadbVmClusterUpdateSummaryLastActionEnum = "ROLLING_APPLY" + ExadbVmClusterUpdateSummaryLastActionNonRollingApply ExadbVmClusterUpdateSummaryLastActionEnum = "NON_ROLLING_APPLY" + ExadbVmClusterUpdateSummaryLastActionPrecheck ExadbVmClusterUpdateSummaryLastActionEnum = "PRECHECK" + ExadbVmClusterUpdateSummaryLastActionRollback ExadbVmClusterUpdateSummaryLastActionEnum = "ROLLBACK" +) + +var mappingExadbVmClusterUpdateSummaryLastActionEnum = map[string]ExadbVmClusterUpdateSummaryLastActionEnum{ + "ROLLING_APPLY": ExadbVmClusterUpdateSummaryLastActionRollingApply, + "NON_ROLLING_APPLY": ExadbVmClusterUpdateSummaryLastActionNonRollingApply, + "PRECHECK": ExadbVmClusterUpdateSummaryLastActionPrecheck, + "ROLLBACK": ExadbVmClusterUpdateSummaryLastActionRollback, +} + +var mappingExadbVmClusterUpdateSummaryLastActionEnumLowerCase = map[string]ExadbVmClusterUpdateSummaryLastActionEnum{ + "rolling_apply": ExadbVmClusterUpdateSummaryLastActionRollingApply, + "non_rolling_apply": ExadbVmClusterUpdateSummaryLastActionNonRollingApply, + "precheck": ExadbVmClusterUpdateSummaryLastActionPrecheck, + "rollback": ExadbVmClusterUpdateSummaryLastActionRollback, +} + +// GetExadbVmClusterUpdateSummaryLastActionEnumValues Enumerates the set of values for ExadbVmClusterUpdateSummaryLastActionEnum +func GetExadbVmClusterUpdateSummaryLastActionEnumValues() []ExadbVmClusterUpdateSummaryLastActionEnum { + values := make([]ExadbVmClusterUpdateSummaryLastActionEnum, 0) + for _, v := range mappingExadbVmClusterUpdateSummaryLastActionEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateSummaryLastActionEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateSummaryLastActionEnum +func GetExadbVmClusterUpdateSummaryLastActionEnumStringValues() []string { + return []string{ + "ROLLING_APPLY", + "NON_ROLLING_APPLY", + "PRECHECK", + "ROLLBACK", + } +} + +// GetMappingExadbVmClusterUpdateSummaryLastActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateSummaryLastActionEnum(val string) (ExadbVmClusterUpdateSummaryLastActionEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateSummaryLastActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterUpdateSummaryAvailableActionsEnum Enum with underlying type: string +type ExadbVmClusterUpdateSummaryAvailableActionsEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateSummaryAvailableActionsEnum +const ( + ExadbVmClusterUpdateSummaryAvailableActionsRollingApply ExadbVmClusterUpdateSummaryAvailableActionsEnum = "ROLLING_APPLY" + ExadbVmClusterUpdateSummaryAvailableActionsNonRollingApply ExadbVmClusterUpdateSummaryAvailableActionsEnum = "NON_ROLLING_APPLY" + ExadbVmClusterUpdateSummaryAvailableActionsPrecheck ExadbVmClusterUpdateSummaryAvailableActionsEnum = "PRECHECK" + ExadbVmClusterUpdateSummaryAvailableActionsRollback ExadbVmClusterUpdateSummaryAvailableActionsEnum = "ROLLBACK" +) + +var mappingExadbVmClusterUpdateSummaryAvailableActionsEnum = map[string]ExadbVmClusterUpdateSummaryAvailableActionsEnum{ + "ROLLING_APPLY": ExadbVmClusterUpdateSummaryAvailableActionsRollingApply, + "NON_ROLLING_APPLY": ExadbVmClusterUpdateSummaryAvailableActionsNonRollingApply, + "PRECHECK": ExadbVmClusterUpdateSummaryAvailableActionsPrecheck, + "ROLLBACK": ExadbVmClusterUpdateSummaryAvailableActionsRollback, +} + +var mappingExadbVmClusterUpdateSummaryAvailableActionsEnumLowerCase = map[string]ExadbVmClusterUpdateSummaryAvailableActionsEnum{ + "rolling_apply": ExadbVmClusterUpdateSummaryAvailableActionsRollingApply, + "non_rolling_apply": ExadbVmClusterUpdateSummaryAvailableActionsNonRollingApply, + "precheck": ExadbVmClusterUpdateSummaryAvailableActionsPrecheck, + "rollback": ExadbVmClusterUpdateSummaryAvailableActionsRollback, +} + +// GetExadbVmClusterUpdateSummaryAvailableActionsEnumValues Enumerates the set of values for ExadbVmClusterUpdateSummaryAvailableActionsEnum +func GetExadbVmClusterUpdateSummaryAvailableActionsEnumValues() []ExadbVmClusterUpdateSummaryAvailableActionsEnum { + values := make([]ExadbVmClusterUpdateSummaryAvailableActionsEnum, 0) + for _, v := range mappingExadbVmClusterUpdateSummaryAvailableActionsEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateSummaryAvailableActionsEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateSummaryAvailableActionsEnum +func GetExadbVmClusterUpdateSummaryAvailableActionsEnumStringValues() []string { + return []string{ + "ROLLING_APPLY", + "NON_ROLLING_APPLY", + "PRECHECK", + "ROLLBACK", + } +} + +// GetMappingExadbVmClusterUpdateSummaryAvailableActionsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateSummaryAvailableActionsEnum(val string) (ExadbVmClusterUpdateSummaryAvailableActionsEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateSummaryAvailableActionsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterUpdateSummaryUpdateTypeEnum Enum with underlying type: string +type ExadbVmClusterUpdateSummaryUpdateTypeEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateSummaryUpdateTypeEnum +const ( + ExadbVmClusterUpdateSummaryUpdateTypeGiUpgrade ExadbVmClusterUpdateSummaryUpdateTypeEnum = "GI_UPGRADE" + ExadbVmClusterUpdateSummaryUpdateTypeGiPatch ExadbVmClusterUpdateSummaryUpdateTypeEnum = "GI_PATCH" + ExadbVmClusterUpdateSummaryUpdateTypeOsUpdate ExadbVmClusterUpdateSummaryUpdateTypeEnum = "OS_UPDATE" +) + +var mappingExadbVmClusterUpdateSummaryUpdateTypeEnum = map[string]ExadbVmClusterUpdateSummaryUpdateTypeEnum{ + "GI_UPGRADE": ExadbVmClusterUpdateSummaryUpdateTypeGiUpgrade, + "GI_PATCH": ExadbVmClusterUpdateSummaryUpdateTypeGiPatch, + "OS_UPDATE": ExadbVmClusterUpdateSummaryUpdateTypeOsUpdate, +} + +var mappingExadbVmClusterUpdateSummaryUpdateTypeEnumLowerCase = map[string]ExadbVmClusterUpdateSummaryUpdateTypeEnum{ + "gi_upgrade": ExadbVmClusterUpdateSummaryUpdateTypeGiUpgrade, + "gi_patch": ExadbVmClusterUpdateSummaryUpdateTypeGiPatch, + "os_update": ExadbVmClusterUpdateSummaryUpdateTypeOsUpdate, +} + +// GetExadbVmClusterUpdateSummaryUpdateTypeEnumValues Enumerates the set of values for ExadbVmClusterUpdateSummaryUpdateTypeEnum +func GetExadbVmClusterUpdateSummaryUpdateTypeEnumValues() []ExadbVmClusterUpdateSummaryUpdateTypeEnum { + values := make([]ExadbVmClusterUpdateSummaryUpdateTypeEnum, 0) + for _, v := range mappingExadbVmClusterUpdateSummaryUpdateTypeEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateSummaryUpdateTypeEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateSummaryUpdateTypeEnum +func GetExadbVmClusterUpdateSummaryUpdateTypeEnumStringValues() []string { + return []string{ + "GI_UPGRADE", + "GI_PATCH", + "OS_UPDATE", + } +} + +// GetMappingExadbVmClusterUpdateSummaryUpdateTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateSummaryUpdateTypeEnum(val string) (ExadbVmClusterUpdateSummaryUpdateTypeEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateSummaryUpdateTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ExadbVmClusterUpdateSummaryLifecycleStateEnum Enum with underlying type: string +type ExadbVmClusterUpdateSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for ExadbVmClusterUpdateSummaryLifecycleStateEnum +const ( + ExadbVmClusterUpdateSummaryLifecycleStateAvailable ExadbVmClusterUpdateSummaryLifecycleStateEnum = "AVAILABLE" + ExadbVmClusterUpdateSummaryLifecycleStateSuccess ExadbVmClusterUpdateSummaryLifecycleStateEnum = "SUCCESS" + ExadbVmClusterUpdateSummaryLifecycleStateInProgress ExadbVmClusterUpdateSummaryLifecycleStateEnum = "IN_PROGRESS" + ExadbVmClusterUpdateSummaryLifecycleStateFailed ExadbVmClusterUpdateSummaryLifecycleStateEnum = "FAILED" +) + +var mappingExadbVmClusterUpdateSummaryLifecycleStateEnum = map[string]ExadbVmClusterUpdateSummaryLifecycleStateEnum{ + "AVAILABLE": ExadbVmClusterUpdateSummaryLifecycleStateAvailable, + "SUCCESS": ExadbVmClusterUpdateSummaryLifecycleStateSuccess, + "IN_PROGRESS": ExadbVmClusterUpdateSummaryLifecycleStateInProgress, + "FAILED": ExadbVmClusterUpdateSummaryLifecycleStateFailed, +} + +var mappingExadbVmClusterUpdateSummaryLifecycleStateEnumLowerCase = map[string]ExadbVmClusterUpdateSummaryLifecycleStateEnum{ + "available": ExadbVmClusterUpdateSummaryLifecycleStateAvailable, + "success": ExadbVmClusterUpdateSummaryLifecycleStateSuccess, + "in_progress": ExadbVmClusterUpdateSummaryLifecycleStateInProgress, + "failed": ExadbVmClusterUpdateSummaryLifecycleStateFailed, +} + +// GetExadbVmClusterUpdateSummaryLifecycleStateEnumValues Enumerates the set of values for ExadbVmClusterUpdateSummaryLifecycleStateEnum +func GetExadbVmClusterUpdateSummaryLifecycleStateEnumValues() []ExadbVmClusterUpdateSummaryLifecycleStateEnum { + values := make([]ExadbVmClusterUpdateSummaryLifecycleStateEnum, 0) + for _, v := range mappingExadbVmClusterUpdateSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetExadbVmClusterUpdateSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for ExadbVmClusterUpdateSummaryLifecycleStateEnum +func GetExadbVmClusterUpdateSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "AVAILABLE", + "SUCCESS", + "IN_PROGRESS", + "FAILED", + } +} + +// GetMappingExadbVmClusterUpdateSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExadbVmClusterUpdateSummaryLifecycleStateEnum(val string) (ExadbVmClusterUpdateSummaryLifecycleStateEnum, bool) { + enum, ok := mappingExadbVmClusterUpdateSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/exascale_db_storage_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/exascale_db_storage_details.go new file mode 100644 index 00000000000..aa0e11eed00 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/exascale_db_storage_details.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExascaleDbStorageDetails Exadata Database Storage Details +type ExascaleDbStorageDetails struct { + + // Total Capacity + TotalSizeInGbs *int `mandatory:"false" json:"totalSizeInGbs"` + + // Available Capacity + AvailableSizeInGbs *int `mandatory:"false" json:"availableSizeInGbs"` +} + +func (m ExascaleDbStorageDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExascaleDbStorageDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/exascale_db_storage_input_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/exascale_db_storage_input_details.go new file mode 100644 index 00000000000..8b2fb1c2ccc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/exascale_db_storage_input_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExascaleDbStorageInputDetails Create exadata Database Storage Details +type ExascaleDbStorageInputDetails struct { + + // Total Capacity + TotalSizeInGbs *int `mandatory:"true" json:"totalSizeInGbs"` +} + +func (m ExascaleDbStorageInputDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExascaleDbStorageInputDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/exascale_db_storage_vault.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/exascale_db_storage_vault.go new file mode 100644 index 00000000000..a4de0585f8b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/exascale_db_storage_vault.go @@ -0,0 +1,149 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExascaleDbStorageVault Details of the Exadata Database Storage Vault. +type ExascaleDbStorageVault struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name of the availability domain in which the Exadata Database Storage Vault is located. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The current state of the Exadata Database Storage Vault. + LifecycleState ExascaleDbStorageVaultLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The user-friendly name for the Exadata Database Storage Vault. The name does not need to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + HighCapacityDatabaseStorage *ExascaleDbStorageDetails `mandatory:"true" json:"highCapacityDatabaseStorage"` + + // Exadata Database Storage Vault description. + Description *string `mandatory:"false" json:"description"` + + // The date and time that the Exadata Database Storage Vault was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Additional information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The time zone that you want to use for the Exadata Database Storage Vault. For details, see Time Zones (https://docs.cloud.oracle.com/Content/Database/References/timezones.htm). + TimeZone *string `mandatory:"false" json:"timeZone"` + + // The List of Exadata VM cluster on Exascale Infrastructure OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + // **Note:** If Exadata Database Storage Vault is not used for any Exadata VM cluster on Exascale Infrastructure, this list is empty. + VmClusterIds []string `mandatory:"false" json:"vmClusterIds"` + + // The number of Exadata VM clusters used the Exadata Database Storage Vault. + VmClusterCount *int `mandatory:"false" json:"vmClusterCount"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The size of additional Flash Cache in percentage of High Capacity database storage. + AdditionalFlashCacheInPercent *int `mandatory:"false" json:"additionalFlashCacheInPercent"` +} + +func (m ExascaleDbStorageVault) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExascaleDbStorageVault) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingExascaleDbStorageVaultLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetExascaleDbStorageVaultLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ExascaleDbStorageVaultLifecycleStateEnum Enum with underlying type: string +type ExascaleDbStorageVaultLifecycleStateEnum string + +// Set of constants representing the allowable values for ExascaleDbStorageVaultLifecycleStateEnum +const ( + ExascaleDbStorageVaultLifecycleStateProvisioning ExascaleDbStorageVaultLifecycleStateEnum = "PROVISIONING" + ExascaleDbStorageVaultLifecycleStateAvailable ExascaleDbStorageVaultLifecycleStateEnum = "AVAILABLE" + ExascaleDbStorageVaultLifecycleStateUpdating ExascaleDbStorageVaultLifecycleStateEnum = "UPDATING" + ExascaleDbStorageVaultLifecycleStateTerminating ExascaleDbStorageVaultLifecycleStateEnum = "TERMINATING" + ExascaleDbStorageVaultLifecycleStateTerminated ExascaleDbStorageVaultLifecycleStateEnum = "TERMINATED" + ExascaleDbStorageVaultLifecycleStateFailed ExascaleDbStorageVaultLifecycleStateEnum = "FAILED" +) + +var mappingExascaleDbStorageVaultLifecycleStateEnum = map[string]ExascaleDbStorageVaultLifecycleStateEnum{ + "PROVISIONING": ExascaleDbStorageVaultLifecycleStateProvisioning, + "AVAILABLE": ExascaleDbStorageVaultLifecycleStateAvailable, + "UPDATING": ExascaleDbStorageVaultLifecycleStateUpdating, + "TERMINATING": ExascaleDbStorageVaultLifecycleStateTerminating, + "TERMINATED": ExascaleDbStorageVaultLifecycleStateTerminated, + "FAILED": ExascaleDbStorageVaultLifecycleStateFailed, +} + +var mappingExascaleDbStorageVaultLifecycleStateEnumLowerCase = map[string]ExascaleDbStorageVaultLifecycleStateEnum{ + "provisioning": ExascaleDbStorageVaultLifecycleStateProvisioning, + "available": ExascaleDbStorageVaultLifecycleStateAvailable, + "updating": ExascaleDbStorageVaultLifecycleStateUpdating, + "terminating": ExascaleDbStorageVaultLifecycleStateTerminating, + "terminated": ExascaleDbStorageVaultLifecycleStateTerminated, + "failed": ExascaleDbStorageVaultLifecycleStateFailed, +} + +// GetExascaleDbStorageVaultLifecycleStateEnumValues Enumerates the set of values for ExascaleDbStorageVaultLifecycleStateEnum +func GetExascaleDbStorageVaultLifecycleStateEnumValues() []ExascaleDbStorageVaultLifecycleStateEnum { + values := make([]ExascaleDbStorageVaultLifecycleStateEnum, 0) + for _, v := range mappingExascaleDbStorageVaultLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetExascaleDbStorageVaultLifecycleStateEnumStringValues Enumerates the set of values in String for ExascaleDbStorageVaultLifecycleStateEnum +func GetExascaleDbStorageVaultLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "TERMINATING", + "TERMINATED", + "FAILED", + } +} + +// GetMappingExascaleDbStorageVaultLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExascaleDbStorageVaultLifecycleStateEnum(val string) (ExascaleDbStorageVaultLifecycleStateEnum, bool) { + enum, ok := mappingExascaleDbStorageVaultLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/exascale_db_storage_vault_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/exascale_db_storage_vault_summary.go new file mode 100644 index 00000000000..c2bd8f79d91 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/exascale_db_storage_vault_summary.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExascaleDbStorageVaultSummary Details of the Exadata Database Storage Vault. +type ExascaleDbStorageVaultSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name of the availability domain in which the Exadata Database Storage Vault is located. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The current state of the Exadata Database Storage Vault. + LifecycleState ExascaleDbStorageVaultLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The user-friendly name for the Exadata Database Storage Vault. The name does not need to be unique. + DisplayName *string `mandatory:"true" json:"displayName"` + + HighCapacityDatabaseStorage *ExascaleDbStorageDetails `mandatory:"true" json:"highCapacityDatabaseStorage"` + + // The time zone that you want to use for the Exadata Database Storage Vault. For details, see Time Zones (https://docs.cloud.oracle.com/Content/Database/References/timezones.htm). + TimeZone *string `mandatory:"false" json:"timeZone"` + + // Exadata Database Storage Vault description. + Description *string `mandatory:"false" json:"description"` + + // The date and time that the Exadata Database Storage Vault was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Additional information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The size of additional Flash Cache in percentage of High Capacity database storage. + AdditionalFlashCacheInPercent *int `mandatory:"false" json:"additionalFlashCacheInPercent"` + + // The number of Exadata VM clusters used the Exadata Database Storage Vault. + VmClusterCount *int `mandatory:"false" json:"vmClusterCount"` +} + +func (m ExascaleDbStorageVaultSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExascaleDbStorageVaultSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingExascaleDbStorageVaultLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetExascaleDbStorageVaultLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/get_exadb_vm_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/get_exadb_vm_cluster_request_response.go new file mode 100644 index 00000000000..f1e0a0ba3bd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/get_exadb_vm_cluster_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetExadbVmClusterRequest wrapper for the GetExadbVmCluster operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExadbVmCluster.go.html to see an example of how to use GetExadbVmClusterRequest. +type GetExadbVmClusterRequest struct { + + // The Exadata VM cluster OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + ExadbVmClusterId *string `mandatory:"true" contributesTo:"path" name:"exadbVmClusterId"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetExadbVmClusterRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetExadbVmClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetExadbVmClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetExadbVmClusterRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetExadbVmClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetExadbVmClusterResponse wrapper for the GetExadbVmCluster operation +type GetExadbVmClusterResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ExadbVmCluster instance + ExadbVmCluster `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetExadbVmClusterResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetExadbVmClusterResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/get_exadb_vm_cluster_update_history_entry_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/get_exadb_vm_cluster_update_history_entry_request_response.go new file mode 100644 index 00000000000..b85e184baeb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/get_exadb_vm_cluster_update_history_entry_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetExadbVmClusterUpdateHistoryEntryRequest wrapper for the GetExadbVmClusterUpdateHistoryEntry operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExadbVmClusterUpdateHistoryEntry.go.html to see an example of how to use GetExadbVmClusterUpdateHistoryEntryRequest. +type GetExadbVmClusterUpdateHistoryEntryRequest struct { + + // The Exadata VM cluster OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + ExadbVmClusterId *string `mandatory:"true" contributesTo:"path" name:"exadbVmClusterId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + UpdateHistoryEntryId *string `mandatory:"true" contributesTo:"path" name:"updateHistoryEntryId"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetExadbVmClusterUpdateHistoryEntryRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetExadbVmClusterUpdateHistoryEntryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetExadbVmClusterUpdateHistoryEntryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetExadbVmClusterUpdateHistoryEntryRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetExadbVmClusterUpdateHistoryEntryRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetExadbVmClusterUpdateHistoryEntryResponse wrapper for the GetExadbVmClusterUpdateHistoryEntry operation +type GetExadbVmClusterUpdateHistoryEntryResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ExadbVmClusterUpdateHistoryEntry instance + ExadbVmClusterUpdateHistoryEntry `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetExadbVmClusterUpdateHistoryEntryResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetExadbVmClusterUpdateHistoryEntryResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/get_exadb_vm_cluster_update_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/get_exadb_vm_cluster_update_request_response.go new file mode 100644 index 00000000000..8b2d982584a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/get_exadb_vm_cluster_update_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetExadbVmClusterUpdateRequest wrapper for the GetExadbVmClusterUpdate operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExadbVmClusterUpdate.go.html to see an example of how to use GetExadbVmClusterUpdateRequest. +type GetExadbVmClusterUpdateRequest struct { + + // The Exadata VM cluster OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + ExadbVmClusterId *string `mandatory:"true" contributesTo:"path" name:"exadbVmClusterId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the maintenance update. + UpdateId *string `mandatory:"true" contributesTo:"path" name:"updateId"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetExadbVmClusterUpdateRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetExadbVmClusterUpdateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetExadbVmClusterUpdateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetExadbVmClusterUpdateRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetExadbVmClusterUpdateRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetExadbVmClusterUpdateResponse wrapper for the GetExadbVmClusterUpdate operation +type GetExadbVmClusterUpdateResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ExadbVmClusterUpdate instance + ExadbVmClusterUpdate `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetExadbVmClusterUpdateResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetExadbVmClusterUpdateResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/get_exascale_db_storage_vault_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/get_exascale_db_storage_vault_request_response.go new file mode 100644 index 00000000000..1a68a6e6866 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/get_exascale_db_storage_vault_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetExascaleDbStorageVaultRequest wrapper for the GetExascaleDbStorageVault operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/GetExascaleDbStorageVault.go.html to see an example of how to use GetExascaleDbStorageVaultRequest. +type GetExascaleDbStorageVaultRequest struct { + + // The Exadata Database Storage Vault OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + ExascaleDbStorageVaultId *string `mandatory:"true" contributesTo:"path" name:"exascaleDbStorageVaultId"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetExascaleDbStorageVaultRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetExascaleDbStorageVaultRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetExascaleDbStorageVaultRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetExascaleDbStorageVaultRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetExascaleDbStorageVaultRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetExascaleDbStorageVaultResponse wrapper for the GetExascaleDbStorageVault operation +type GetExascaleDbStorageVaultResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ExascaleDbStorageVault instance + ExascaleDbStorageVault `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetExascaleDbStorageVaultResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetExascaleDbStorageVaultResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/gi_minor_version_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/gi_minor_version_summary.go new file mode 100644 index 00000000000..d5754c1787a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/gi_minor_version_summary.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// GiMinorVersionSummary The Oracle Grid Infrastructure (GI) minor version. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). +type GiMinorVersionSummary struct { + + // A valid Oracle Grid Infrastructure (GI) software version. + Version *string `mandatory:"true" json:"version"` + + // Grid Infrastructure Image Id + GridImageId *string `mandatory:"false" json:"gridImageId"` +} + +func (m GiMinorVersionSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m GiMinorVersionSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/list_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_backups_request_response.go index ede37ff0f3c..204429176ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/list_backups_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_backups_request_response.go @@ -30,6 +30,9 @@ type ListBackupsRequest struct { // The pagination token to continue listing from. Page *string `mandatory:"false" contributesTo:"query" name:"page"` + // If provided, filters the results to the set of database versions which are supported for the given shape family. + ShapeFamily ListBackupsShapeFamilyEnum `mandatory:"false" contributesTo:"query" name:"shapeFamily" omitEmpty:"true"` + // Unique Oracle-assigned identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -70,6 +73,9 @@ func (request ListBackupsRequest) RetryPolicy() *common.RetryPolicy { // Not recommended for calling this function directly func (request ListBackupsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingListBackupsShapeFamilyEnum(string(request.ShapeFamily)); !ok && request.ShapeFamily != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ShapeFamily: %s. Supported values are: %s.", request.ShapeFamily, strings.Join(GetListBackupsShapeFamilyEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -104,3 +110,61 @@ func (response ListBackupsResponse) String() string { func (response ListBackupsResponse) HTTPResponse() *http.Response { return response.RawResponse } + +// ListBackupsShapeFamilyEnum Enum with underlying type: string +type ListBackupsShapeFamilyEnum string + +// Set of constants representing the allowable values for ListBackupsShapeFamilyEnum +const ( + ListBackupsShapeFamilySinglenode ListBackupsShapeFamilyEnum = "SINGLENODE" + ListBackupsShapeFamilyYoda ListBackupsShapeFamilyEnum = "YODA" + ListBackupsShapeFamilyVirtualmachine ListBackupsShapeFamilyEnum = "VIRTUALMACHINE" + ListBackupsShapeFamilyExadata ListBackupsShapeFamilyEnum = "EXADATA" + ListBackupsShapeFamilyExacc ListBackupsShapeFamilyEnum = "EXACC" + ListBackupsShapeFamilyExadbXs ListBackupsShapeFamilyEnum = "EXADB_XS" +) + +var mappingListBackupsShapeFamilyEnum = map[string]ListBackupsShapeFamilyEnum{ + "SINGLENODE": ListBackupsShapeFamilySinglenode, + "YODA": ListBackupsShapeFamilyYoda, + "VIRTUALMACHINE": ListBackupsShapeFamilyVirtualmachine, + "EXADATA": ListBackupsShapeFamilyExadata, + "EXACC": ListBackupsShapeFamilyExacc, + "EXADB_XS": ListBackupsShapeFamilyExadbXs, +} + +var mappingListBackupsShapeFamilyEnumLowerCase = map[string]ListBackupsShapeFamilyEnum{ + "singlenode": ListBackupsShapeFamilySinglenode, + "yoda": ListBackupsShapeFamilyYoda, + "virtualmachine": ListBackupsShapeFamilyVirtualmachine, + "exadata": ListBackupsShapeFamilyExadata, + "exacc": ListBackupsShapeFamilyExacc, + "exadb_xs": ListBackupsShapeFamilyExadbXs, +} + +// GetListBackupsShapeFamilyEnumValues Enumerates the set of values for ListBackupsShapeFamilyEnum +func GetListBackupsShapeFamilyEnumValues() []ListBackupsShapeFamilyEnum { + values := make([]ListBackupsShapeFamilyEnum, 0) + for _, v := range mappingListBackupsShapeFamilyEnum { + values = append(values, v) + } + return values +} + +// GetListBackupsShapeFamilyEnumStringValues Enumerates the set of values in String for ListBackupsShapeFamilyEnum +func GetListBackupsShapeFamilyEnumStringValues() []string { + return []string{ + "SINGLENODE", + "YODA", + "VIRTUALMACHINE", + "EXADATA", + "EXACC", + "EXADB_XS", + } +} + +// GetMappingListBackupsShapeFamilyEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListBackupsShapeFamilyEnum(val string) (ListBackupsShapeFamilyEnum, bool) { + enum, ok := mappingListBackupsShapeFamilyEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/list_exadb_vm_cluster_update_history_entries_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_exadb_vm_cluster_update_history_entries_request_response.go new file mode 100644 index 00000000000..ab5080f366f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_exadb_vm_cluster_update_history_entries_request_response.go @@ -0,0 +1,154 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListExadbVmClusterUpdateHistoryEntriesRequest wrapper for the ListExadbVmClusterUpdateHistoryEntries operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListExadbVmClusterUpdateHistoryEntries.go.html to see an example of how to use ListExadbVmClusterUpdateHistoryEntriesRequest. +type ListExadbVmClusterUpdateHistoryEntriesRequest struct { + + // The Exadata VM cluster OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + ExadbVmClusterId *string `mandatory:"true" contributesTo:"path" name:"exadbVmClusterId"` + + // A filter to return only resources that match the given update type exactly. + UpdateType ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum `mandatory:"false" contributesTo:"query" name:"updateType" omitEmpty:"true"` + + // The maximum number of items to return per page. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListExadbVmClusterUpdateHistoryEntriesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListExadbVmClusterUpdateHistoryEntriesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListExadbVmClusterUpdateHistoryEntriesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListExadbVmClusterUpdateHistoryEntriesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListExadbVmClusterUpdateHistoryEntriesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum(string(request.UpdateType)); !ok && request.UpdateType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateType: %s. Supported values are: %s.", request.UpdateType, strings.Join(GetListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListExadbVmClusterUpdateHistoryEntriesResponse wrapper for the ListExadbVmClusterUpdateHistoryEntries operation +type ListExadbVmClusterUpdateHistoryEntriesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ExadbVmClusterUpdateHistoryEntrySummary instances + Items []ExadbVmClusterUpdateHistoryEntrySummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListExadbVmClusterUpdateHistoryEntriesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListExadbVmClusterUpdateHistoryEntriesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum Enum with underlying type: string +type ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum string + +// Set of constants representing the allowable values for ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum +const ( + ListExadbVmClusterUpdateHistoryEntriesUpdateTypeGiUpgrade ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum = "GI_UPGRADE" + ListExadbVmClusterUpdateHistoryEntriesUpdateTypeGiPatch ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum = "GI_PATCH" + ListExadbVmClusterUpdateHistoryEntriesUpdateTypeOsUpdate ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum = "OS_UPDATE" +) + +var mappingListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum = map[string]ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum{ + "GI_UPGRADE": ListExadbVmClusterUpdateHistoryEntriesUpdateTypeGiUpgrade, + "GI_PATCH": ListExadbVmClusterUpdateHistoryEntriesUpdateTypeGiPatch, + "OS_UPDATE": ListExadbVmClusterUpdateHistoryEntriesUpdateTypeOsUpdate, +} + +var mappingListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnumLowerCase = map[string]ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum{ + "gi_upgrade": ListExadbVmClusterUpdateHistoryEntriesUpdateTypeGiUpgrade, + "gi_patch": ListExadbVmClusterUpdateHistoryEntriesUpdateTypeGiPatch, + "os_update": ListExadbVmClusterUpdateHistoryEntriesUpdateTypeOsUpdate, +} + +// GetListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnumValues Enumerates the set of values for ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum +func GetListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnumValues() []ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum { + values := make([]ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum, 0) + for _, v := range mappingListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum { + values = append(values, v) + } + return values +} + +// GetListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnumStringValues Enumerates the set of values in String for ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum +func GetListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnumStringValues() []string { + return []string{ + "GI_UPGRADE", + "GI_PATCH", + "OS_UPDATE", + } +} + +// GetMappingListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum(val string) (ListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnum, bool) { + enum, ok := mappingListExadbVmClusterUpdateHistoryEntriesUpdateTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/list_exadb_vm_cluster_updates_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_exadb_vm_cluster_updates_request_response.go new file mode 100644 index 00000000000..fe39f18ce7c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_exadb_vm_cluster_updates_request_response.go @@ -0,0 +1,157 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListExadbVmClusterUpdatesRequest wrapper for the ListExadbVmClusterUpdates operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListExadbVmClusterUpdates.go.html to see an example of how to use ListExadbVmClusterUpdatesRequest. +type ListExadbVmClusterUpdatesRequest struct { + + // The Exadata VM cluster OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + ExadbVmClusterId *string `mandatory:"true" contributesTo:"path" name:"exadbVmClusterId"` + + // A filter to return only resources that match the given update type exactly. + UpdateType ListExadbVmClusterUpdatesUpdateTypeEnum `mandatory:"false" contributesTo:"query" name:"updateType" omitEmpty:"true"` + + // A filter to return only resources that match the given update version exactly. + Version *string `mandatory:"false" contributesTo:"query" name:"version"` + + // The maximum number of items to return per page. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListExadbVmClusterUpdatesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListExadbVmClusterUpdatesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListExadbVmClusterUpdatesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListExadbVmClusterUpdatesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListExadbVmClusterUpdatesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListExadbVmClusterUpdatesUpdateTypeEnum(string(request.UpdateType)); !ok && request.UpdateType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateType: %s. Supported values are: %s.", request.UpdateType, strings.Join(GetListExadbVmClusterUpdatesUpdateTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListExadbVmClusterUpdatesResponse wrapper for the ListExadbVmClusterUpdates operation +type ListExadbVmClusterUpdatesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ExadbVmClusterUpdateSummary instances + Items []ExadbVmClusterUpdateSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListExadbVmClusterUpdatesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListExadbVmClusterUpdatesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListExadbVmClusterUpdatesUpdateTypeEnum Enum with underlying type: string +type ListExadbVmClusterUpdatesUpdateTypeEnum string + +// Set of constants representing the allowable values for ListExadbVmClusterUpdatesUpdateTypeEnum +const ( + ListExadbVmClusterUpdatesUpdateTypeGiUpgrade ListExadbVmClusterUpdatesUpdateTypeEnum = "GI_UPGRADE" + ListExadbVmClusterUpdatesUpdateTypeGiPatch ListExadbVmClusterUpdatesUpdateTypeEnum = "GI_PATCH" + ListExadbVmClusterUpdatesUpdateTypeOsUpdate ListExadbVmClusterUpdatesUpdateTypeEnum = "OS_UPDATE" +) + +var mappingListExadbVmClusterUpdatesUpdateTypeEnum = map[string]ListExadbVmClusterUpdatesUpdateTypeEnum{ + "GI_UPGRADE": ListExadbVmClusterUpdatesUpdateTypeGiUpgrade, + "GI_PATCH": ListExadbVmClusterUpdatesUpdateTypeGiPatch, + "OS_UPDATE": ListExadbVmClusterUpdatesUpdateTypeOsUpdate, +} + +var mappingListExadbVmClusterUpdatesUpdateTypeEnumLowerCase = map[string]ListExadbVmClusterUpdatesUpdateTypeEnum{ + "gi_upgrade": ListExadbVmClusterUpdatesUpdateTypeGiUpgrade, + "gi_patch": ListExadbVmClusterUpdatesUpdateTypeGiPatch, + "os_update": ListExadbVmClusterUpdatesUpdateTypeOsUpdate, +} + +// GetListExadbVmClusterUpdatesUpdateTypeEnumValues Enumerates the set of values for ListExadbVmClusterUpdatesUpdateTypeEnum +func GetListExadbVmClusterUpdatesUpdateTypeEnumValues() []ListExadbVmClusterUpdatesUpdateTypeEnum { + values := make([]ListExadbVmClusterUpdatesUpdateTypeEnum, 0) + for _, v := range mappingListExadbVmClusterUpdatesUpdateTypeEnum { + values = append(values, v) + } + return values +} + +// GetListExadbVmClusterUpdatesUpdateTypeEnumStringValues Enumerates the set of values in String for ListExadbVmClusterUpdatesUpdateTypeEnum +func GetListExadbVmClusterUpdatesUpdateTypeEnumStringValues() []string { + return []string{ + "GI_UPGRADE", + "GI_PATCH", + "OS_UPDATE", + } +} + +// GetMappingListExadbVmClusterUpdatesUpdateTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListExadbVmClusterUpdatesUpdateTypeEnum(val string) (ListExadbVmClusterUpdatesUpdateTypeEnum, bool) { + enum, ok := mappingListExadbVmClusterUpdatesUpdateTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/list_exadb_vm_clusters_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_exadb_vm_clusters_request_response.go new file mode 100644 index 00000000000..beb42c43e53 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_exadb_vm_clusters_request_response.go @@ -0,0 +1,210 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListExadbVmClustersRequest wrapper for the ListExadbVmClusters operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListExadbVmClusters.go.html to see an example of how to use ListExadbVmClustersRequest. +type ListExadbVmClustersRequest struct { + + // The compartment OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return per page. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + SortBy ListExadbVmClustersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListExadbVmClustersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only Exadata VM clusters on Exascale Infrastructure that match the given lifecycle state exactly. + LifecycleState ExadbVmClusterSummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return only Exadata VM clusters on Exascale Infrastructure that match the given Exascale Database Storage Vault ID. + ExascaleDbStorageVaultId *string `mandatory:"false" contributesTo:"query" name:"exascaleDbStorageVaultId"` + + // A filter to return only resources that match the entire display name given. The match is not case sensitive. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListExadbVmClustersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListExadbVmClustersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListExadbVmClustersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListExadbVmClustersRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListExadbVmClustersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListExadbVmClustersSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListExadbVmClustersSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListExadbVmClustersSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListExadbVmClustersSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingExadbVmClusterSummaryLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetExadbVmClusterSummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListExadbVmClustersResponse wrapper for the ListExadbVmClusters operation +type ListExadbVmClustersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ExadbVmClusterSummary instances + Items []ExadbVmClusterSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListExadbVmClustersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListExadbVmClustersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListExadbVmClustersSortByEnum Enum with underlying type: string +type ListExadbVmClustersSortByEnum string + +// Set of constants representing the allowable values for ListExadbVmClustersSortByEnum +const ( + ListExadbVmClustersSortByTimecreated ListExadbVmClustersSortByEnum = "TIMECREATED" + ListExadbVmClustersSortByDisplayname ListExadbVmClustersSortByEnum = "DISPLAYNAME" +) + +var mappingListExadbVmClustersSortByEnum = map[string]ListExadbVmClustersSortByEnum{ + "TIMECREATED": ListExadbVmClustersSortByTimecreated, + "DISPLAYNAME": ListExadbVmClustersSortByDisplayname, +} + +var mappingListExadbVmClustersSortByEnumLowerCase = map[string]ListExadbVmClustersSortByEnum{ + "timecreated": ListExadbVmClustersSortByTimecreated, + "displayname": ListExadbVmClustersSortByDisplayname, +} + +// GetListExadbVmClustersSortByEnumValues Enumerates the set of values for ListExadbVmClustersSortByEnum +func GetListExadbVmClustersSortByEnumValues() []ListExadbVmClustersSortByEnum { + values := make([]ListExadbVmClustersSortByEnum, 0) + for _, v := range mappingListExadbVmClustersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListExadbVmClustersSortByEnumStringValues Enumerates the set of values in String for ListExadbVmClustersSortByEnum +func GetListExadbVmClustersSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListExadbVmClustersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListExadbVmClustersSortByEnum(val string) (ListExadbVmClustersSortByEnum, bool) { + enum, ok := mappingListExadbVmClustersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListExadbVmClustersSortOrderEnum Enum with underlying type: string +type ListExadbVmClustersSortOrderEnum string + +// Set of constants representing the allowable values for ListExadbVmClustersSortOrderEnum +const ( + ListExadbVmClustersSortOrderAsc ListExadbVmClustersSortOrderEnum = "ASC" + ListExadbVmClustersSortOrderDesc ListExadbVmClustersSortOrderEnum = "DESC" +) + +var mappingListExadbVmClustersSortOrderEnum = map[string]ListExadbVmClustersSortOrderEnum{ + "ASC": ListExadbVmClustersSortOrderAsc, + "DESC": ListExadbVmClustersSortOrderDesc, +} + +var mappingListExadbVmClustersSortOrderEnumLowerCase = map[string]ListExadbVmClustersSortOrderEnum{ + "asc": ListExadbVmClustersSortOrderAsc, + "desc": ListExadbVmClustersSortOrderDesc, +} + +// GetListExadbVmClustersSortOrderEnumValues Enumerates the set of values for ListExadbVmClustersSortOrderEnum +func GetListExadbVmClustersSortOrderEnumValues() []ListExadbVmClustersSortOrderEnum { + values := make([]ListExadbVmClustersSortOrderEnum, 0) + for _, v := range mappingListExadbVmClustersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListExadbVmClustersSortOrderEnumStringValues Enumerates the set of values in String for ListExadbVmClustersSortOrderEnum +func GetListExadbVmClustersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListExadbVmClustersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListExadbVmClustersSortOrderEnum(val string) (ListExadbVmClustersSortOrderEnum, bool) { + enum, ok := mappingListExadbVmClustersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/list_exascale_db_storage_vaults_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_exascale_db_storage_vaults_request_response.go new file mode 100644 index 00000000000..59fb7ec4bd6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_exascale_db_storage_vaults_request_response.go @@ -0,0 +1,207 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListExascaleDbStorageVaultsRequest wrapper for the ListExascaleDbStorageVaults operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListExascaleDbStorageVaults.go.html to see an example of how to use ListExascaleDbStorageVaultsRequest. +type ListExascaleDbStorageVaultsRequest struct { + + // The compartment OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The maximum number of items to return per page. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + SortBy ListExascaleDbStorageVaultsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListExascaleDbStorageVaultsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only Exadata Database Storage Vaults that match the given lifecycle state exactly. + LifecycleState ExascaleDbStorageVaultLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return only resources that match the entire display name given. The match is not case sensitive. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListExascaleDbStorageVaultsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListExascaleDbStorageVaultsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListExascaleDbStorageVaultsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListExascaleDbStorageVaultsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListExascaleDbStorageVaultsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListExascaleDbStorageVaultsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListExascaleDbStorageVaultsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListExascaleDbStorageVaultsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListExascaleDbStorageVaultsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingExascaleDbStorageVaultLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetExascaleDbStorageVaultLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListExascaleDbStorageVaultsResponse wrapper for the ListExascaleDbStorageVaults operation +type ListExascaleDbStorageVaultsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ExascaleDbStorageVaultSummary instances + Items []ExascaleDbStorageVaultSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListExascaleDbStorageVaultsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListExascaleDbStorageVaultsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListExascaleDbStorageVaultsSortByEnum Enum with underlying type: string +type ListExascaleDbStorageVaultsSortByEnum string + +// Set of constants representing the allowable values for ListExascaleDbStorageVaultsSortByEnum +const ( + ListExascaleDbStorageVaultsSortByTimecreated ListExascaleDbStorageVaultsSortByEnum = "TIMECREATED" + ListExascaleDbStorageVaultsSortByDisplayname ListExascaleDbStorageVaultsSortByEnum = "DISPLAYNAME" +) + +var mappingListExascaleDbStorageVaultsSortByEnum = map[string]ListExascaleDbStorageVaultsSortByEnum{ + "TIMECREATED": ListExascaleDbStorageVaultsSortByTimecreated, + "DISPLAYNAME": ListExascaleDbStorageVaultsSortByDisplayname, +} + +var mappingListExascaleDbStorageVaultsSortByEnumLowerCase = map[string]ListExascaleDbStorageVaultsSortByEnum{ + "timecreated": ListExascaleDbStorageVaultsSortByTimecreated, + "displayname": ListExascaleDbStorageVaultsSortByDisplayname, +} + +// GetListExascaleDbStorageVaultsSortByEnumValues Enumerates the set of values for ListExascaleDbStorageVaultsSortByEnum +func GetListExascaleDbStorageVaultsSortByEnumValues() []ListExascaleDbStorageVaultsSortByEnum { + values := make([]ListExascaleDbStorageVaultsSortByEnum, 0) + for _, v := range mappingListExascaleDbStorageVaultsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListExascaleDbStorageVaultsSortByEnumStringValues Enumerates the set of values in String for ListExascaleDbStorageVaultsSortByEnum +func GetListExascaleDbStorageVaultsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListExascaleDbStorageVaultsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListExascaleDbStorageVaultsSortByEnum(val string) (ListExascaleDbStorageVaultsSortByEnum, bool) { + enum, ok := mappingListExascaleDbStorageVaultsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListExascaleDbStorageVaultsSortOrderEnum Enum with underlying type: string +type ListExascaleDbStorageVaultsSortOrderEnum string + +// Set of constants representing the allowable values for ListExascaleDbStorageVaultsSortOrderEnum +const ( + ListExascaleDbStorageVaultsSortOrderAsc ListExascaleDbStorageVaultsSortOrderEnum = "ASC" + ListExascaleDbStorageVaultsSortOrderDesc ListExascaleDbStorageVaultsSortOrderEnum = "DESC" +) + +var mappingListExascaleDbStorageVaultsSortOrderEnum = map[string]ListExascaleDbStorageVaultsSortOrderEnum{ + "ASC": ListExascaleDbStorageVaultsSortOrderAsc, + "DESC": ListExascaleDbStorageVaultsSortOrderDesc, +} + +var mappingListExascaleDbStorageVaultsSortOrderEnumLowerCase = map[string]ListExascaleDbStorageVaultsSortOrderEnum{ + "asc": ListExascaleDbStorageVaultsSortOrderAsc, + "desc": ListExascaleDbStorageVaultsSortOrderDesc, +} + +// GetListExascaleDbStorageVaultsSortOrderEnumValues Enumerates the set of values for ListExascaleDbStorageVaultsSortOrderEnum +func GetListExascaleDbStorageVaultsSortOrderEnumValues() []ListExascaleDbStorageVaultsSortOrderEnum { + values := make([]ListExascaleDbStorageVaultsSortOrderEnum, 0) + for _, v := range mappingListExascaleDbStorageVaultsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListExascaleDbStorageVaultsSortOrderEnumStringValues Enumerates the set of values in String for ListExascaleDbStorageVaultsSortOrderEnum +func GetListExascaleDbStorageVaultsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListExascaleDbStorageVaultsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListExascaleDbStorageVaultsSortOrderEnum(val string) (ListExascaleDbStorageVaultsSortOrderEnum, bool) { + enum, ok := mappingListExascaleDbStorageVaultsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/list_gi_version_minor_versions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_gi_version_minor_versions_request_response.go new file mode 100644 index 00000000000..b3807a7dcae --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_gi_version_minor_versions_request_response.go @@ -0,0 +1,270 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListGiVersionMinorVersionsRequest wrapper for the ListGiVersionMinorVersions operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/ListGiVersionMinorVersions.go.html to see an example of how to use ListGiVersionMinorVersionsRequest. +type ListGiVersionMinorVersionsRequest struct { + + // The Oracle Grid Infrastructure major version. + Version *string `mandatory:"true" contributesTo:"path" name:"version"` + + // The target availability domain. Only passed if the limit is AD-specific. + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // The compartment OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // If provided, filters the results to the set of database versions which are supported for the given shape family. + ShapeFamily ListGiVersionMinorVersionsShapeFamilyEnum `mandatory:"false" contributesTo:"query" name:"shapeFamily" omitEmpty:"true"` + + // If true, returns the Grid Infrastructure versions that can be used for provisioning a cluster + IsGiVersionForProvisioning *bool `mandatory:"false" contributesTo:"query" name:"isGiVersionForProvisioning"` + + // If provided, filters the results for the given shape. + Shape *string `mandatory:"false" contributesTo:"query" name:"shape"` + + // Sort by VERSION. Default order for VERSION is descending. + SortBy ListGiVersionMinorVersionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListGiVersionMinorVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The maximum number of items to return per page. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The pagination token to continue listing from. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListGiVersionMinorVersionsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListGiVersionMinorVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListGiVersionMinorVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListGiVersionMinorVersionsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListGiVersionMinorVersionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListGiVersionMinorVersionsShapeFamilyEnum(string(request.ShapeFamily)); !ok && request.ShapeFamily != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ShapeFamily: %s. Supported values are: %s.", request.ShapeFamily, strings.Join(GetListGiVersionMinorVersionsShapeFamilyEnumStringValues(), ","))) + } + if _, ok := GetMappingListGiVersionMinorVersionsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListGiVersionMinorVersionsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListGiVersionMinorVersionsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListGiVersionMinorVersionsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListGiVersionMinorVersionsResponse wrapper for the ListGiVersionMinorVersions operation +type ListGiVersionMinorVersionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []GiMinorVersionSummary instances + Items []GiMinorVersionSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then there are additional items still to get. Include this value as the `page` parameter for the + // subsequent GET request. For information about pagination, see + // List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListGiVersionMinorVersionsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListGiVersionMinorVersionsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListGiVersionMinorVersionsShapeFamilyEnum Enum with underlying type: string +type ListGiVersionMinorVersionsShapeFamilyEnum string + +// Set of constants representing the allowable values for ListGiVersionMinorVersionsShapeFamilyEnum +const ( + ListGiVersionMinorVersionsShapeFamilySinglenode ListGiVersionMinorVersionsShapeFamilyEnum = "SINGLENODE" + ListGiVersionMinorVersionsShapeFamilyYoda ListGiVersionMinorVersionsShapeFamilyEnum = "YODA" + ListGiVersionMinorVersionsShapeFamilyVirtualmachine ListGiVersionMinorVersionsShapeFamilyEnum = "VIRTUALMACHINE" + ListGiVersionMinorVersionsShapeFamilyExadata ListGiVersionMinorVersionsShapeFamilyEnum = "EXADATA" + ListGiVersionMinorVersionsShapeFamilyExacc ListGiVersionMinorVersionsShapeFamilyEnum = "EXACC" + ListGiVersionMinorVersionsShapeFamilyExadbXs ListGiVersionMinorVersionsShapeFamilyEnum = "EXADB_XS" +) + +var mappingListGiVersionMinorVersionsShapeFamilyEnum = map[string]ListGiVersionMinorVersionsShapeFamilyEnum{ + "SINGLENODE": ListGiVersionMinorVersionsShapeFamilySinglenode, + "YODA": ListGiVersionMinorVersionsShapeFamilyYoda, + "VIRTUALMACHINE": ListGiVersionMinorVersionsShapeFamilyVirtualmachine, + "EXADATA": ListGiVersionMinorVersionsShapeFamilyExadata, + "EXACC": ListGiVersionMinorVersionsShapeFamilyExacc, + "EXADB_XS": ListGiVersionMinorVersionsShapeFamilyExadbXs, +} + +var mappingListGiVersionMinorVersionsShapeFamilyEnumLowerCase = map[string]ListGiVersionMinorVersionsShapeFamilyEnum{ + "singlenode": ListGiVersionMinorVersionsShapeFamilySinglenode, + "yoda": ListGiVersionMinorVersionsShapeFamilyYoda, + "virtualmachine": ListGiVersionMinorVersionsShapeFamilyVirtualmachine, + "exadata": ListGiVersionMinorVersionsShapeFamilyExadata, + "exacc": ListGiVersionMinorVersionsShapeFamilyExacc, + "exadb_xs": ListGiVersionMinorVersionsShapeFamilyExadbXs, +} + +// GetListGiVersionMinorVersionsShapeFamilyEnumValues Enumerates the set of values for ListGiVersionMinorVersionsShapeFamilyEnum +func GetListGiVersionMinorVersionsShapeFamilyEnumValues() []ListGiVersionMinorVersionsShapeFamilyEnum { + values := make([]ListGiVersionMinorVersionsShapeFamilyEnum, 0) + for _, v := range mappingListGiVersionMinorVersionsShapeFamilyEnum { + values = append(values, v) + } + return values +} + +// GetListGiVersionMinorVersionsShapeFamilyEnumStringValues Enumerates the set of values in String for ListGiVersionMinorVersionsShapeFamilyEnum +func GetListGiVersionMinorVersionsShapeFamilyEnumStringValues() []string { + return []string{ + "SINGLENODE", + "YODA", + "VIRTUALMACHINE", + "EXADATA", + "EXACC", + "EXADB_XS", + } +} + +// GetMappingListGiVersionMinorVersionsShapeFamilyEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListGiVersionMinorVersionsShapeFamilyEnum(val string) (ListGiVersionMinorVersionsShapeFamilyEnum, bool) { + enum, ok := mappingListGiVersionMinorVersionsShapeFamilyEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListGiVersionMinorVersionsSortByEnum Enum with underlying type: string +type ListGiVersionMinorVersionsSortByEnum string + +// Set of constants representing the allowable values for ListGiVersionMinorVersionsSortByEnum +const ( + ListGiVersionMinorVersionsSortByVersion ListGiVersionMinorVersionsSortByEnum = "VERSION" +) + +var mappingListGiVersionMinorVersionsSortByEnum = map[string]ListGiVersionMinorVersionsSortByEnum{ + "VERSION": ListGiVersionMinorVersionsSortByVersion, +} + +var mappingListGiVersionMinorVersionsSortByEnumLowerCase = map[string]ListGiVersionMinorVersionsSortByEnum{ + "version": ListGiVersionMinorVersionsSortByVersion, +} + +// GetListGiVersionMinorVersionsSortByEnumValues Enumerates the set of values for ListGiVersionMinorVersionsSortByEnum +func GetListGiVersionMinorVersionsSortByEnumValues() []ListGiVersionMinorVersionsSortByEnum { + values := make([]ListGiVersionMinorVersionsSortByEnum, 0) + for _, v := range mappingListGiVersionMinorVersionsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListGiVersionMinorVersionsSortByEnumStringValues Enumerates the set of values in String for ListGiVersionMinorVersionsSortByEnum +func GetListGiVersionMinorVersionsSortByEnumStringValues() []string { + return []string{ + "VERSION", + } +} + +// GetMappingListGiVersionMinorVersionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListGiVersionMinorVersionsSortByEnum(val string) (ListGiVersionMinorVersionsSortByEnum, bool) { + enum, ok := mappingListGiVersionMinorVersionsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListGiVersionMinorVersionsSortOrderEnum Enum with underlying type: string +type ListGiVersionMinorVersionsSortOrderEnum string + +// Set of constants representing the allowable values for ListGiVersionMinorVersionsSortOrderEnum +const ( + ListGiVersionMinorVersionsSortOrderAsc ListGiVersionMinorVersionsSortOrderEnum = "ASC" + ListGiVersionMinorVersionsSortOrderDesc ListGiVersionMinorVersionsSortOrderEnum = "DESC" +) + +var mappingListGiVersionMinorVersionsSortOrderEnum = map[string]ListGiVersionMinorVersionsSortOrderEnum{ + "ASC": ListGiVersionMinorVersionsSortOrderAsc, + "DESC": ListGiVersionMinorVersionsSortOrderDesc, +} + +var mappingListGiVersionMinorVersionsSortOrderEnumLowerCase = map[string]ListGiVersionMinorVersionsSortOrderEnum{ + "asc": ListGiVersionMinorVersionsSortOrderAsc, + "desc": ListGiVersionMinorVersionsSortOrderDesc, +} + +// GetListGiVersionMinorVersionsSortOrderEnumValues Enumerates the set of values for ListGiVersionMinorVersionsSortOrderEnum +func GetListGiVersionMinorVersionsSortOrderEnumValues() []ListGiVersionMinorVersionsSortOrderEnum { + values := make([]ListGiVersionMinorVersionsSortOrderEnum, 0) + for _, v := range mappingListGiVersionMinorVersionsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListGiVersionMinorVersionsSortOrderEnumStringValues Enumerates the set of values in String for ListGiVersionMinorVersionsSortOrderEnum +func GetListGiVersionMinorVersionsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListGiVersionMinorVersionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListGiVersionMinorVersionsSortOrderEnum(val string) (ListGiVersionMinorVersionsSortOrderEnum, bool) { + enum, ok := mappingListGiVersionMinorVersionsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/list_gi_versions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_gi_versions_request_response.go index c11945284b0..13147f32f03 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/list_gi_versions_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/list_gi_versions_request_response.go @@ -33,6 +33,9 @@ type ListGiVersionsRequest struct { // If provided, filters the results for the given shape. Shape *string `mandatory:"false" contributesTo:"query" name:"shape"` + // The target availability domain. Only passed if the limit is AD-specific. + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + // Unique Oracle-assigned identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/maintenance_window.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/maintenance_window.go index a44643e3ec3..cbcc6384e79 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/maintenance_window.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/maintenance_window.go @@ -46,8 +46,7 @@ type MaintenanceWindow struct { // Days during the week when maintenance should be performed. DaysOfWeek []DayOfWeek `mandatory:"false" json:"daysOfWeek"` - // The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are - // - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC + // The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC HoursOfDay []int `mandatory:"false" json:"hoursOfDay"` // Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is between 1 to 4. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/remove_virtual_machine_from_exadb_vm_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/remove_virtual_machine_from_exadb_vm_cluster_details.go new file mode 100644 index 00000000000..4a4b91adf8d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/remove_virtual_machine_from_exadb_vm_cluster_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemoveVirtualMachineFromExadbVmClusterDetails Details of removing Virtual Machines from the Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only. +type RemoveVirtualMachineFromExadbVmClusterDetails struct { + + // The list of ExaCS DB nodes for the Exadata VM cluster on Exascale Infrastructure to be removed. + DbNodes []DbNodeDetails `mandatory:"true" json:"dbNodes"` +} + +func (m RemoveVirtualMachineFromExadbVmClusterDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemoveVirtualMachineFromExadbVmClusterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/remove_virtual_machine_from_exadb_vm_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/remove_virtual_machine_from_exadb_vm_cluster_request_response.go new file mode 100644 index 00000000000..0973f897729 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/remove_virtual_machine_from_exadb_vm_cluster_request_response.go @@ -0,0 +1,111 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// RemoveVirtualMachineFromExadbVmClusterRequest wrapper for the RemoveVirtualMachineFromExadbVmCluster operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/RemoveVirtualMachineFromExadbVmCluster.go.html to see an example of how to use RemoveVirtualMachineFromExadbVmClusterRequest. +type RemoveVirtualMachineFromExadbVmClusterRequest struct { + + // Request to remove Virtual Machines from the Exadata VM cluster on Exascale Infrastructure. + RemoveVirtualMachineFromExadbVmClusterDetails `contributesTo:"body"` + + // The Exadata VM cluster OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + ExadbVmClusterId *string `mandatory:"true" contributesTo:"path" name:"exadbVmClusterId"` + + // 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 + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request RemoveVirtualMachineFromExadbVmClusterRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RemoveVirtualMachineFromExadbVmClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request RemoveVirtualMachineFromExadbVmClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RemoveVirtualMachineFromExadbVmClusterRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveVirtualMachineFromExadbVmClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RemoveVirtualMachineFromExadbVmClusterResponse wrapper for the RemoveVirtualMachineFromExadbVmCluster operation +type RemoveVirtualMachineFromExadbVmClusterResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ExadbVmCluster instance + ExadbVmCluster `presentIn:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use GetWorkRequest with a work request OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response RemoveVirtualMachineFromExadbVmClusterResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RemoveVirtualMachineFromExadbVmClusterResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/update_exadb_vm_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_exadb_vm_cluster_details.go new file mode 100644 index 00000000000..3f7a30859c3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_exadb_vm_cluster_details.go @@ -0,0 +1,182 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateExadbVmClusterDetails Details for updating the Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only. +type UpdateExadbVmClusterDetails struct { + + // The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name does not need to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The number of Total ECPUs for an Exadata VM cluster on Exascale Infrastructure. + TotalECpuCount *int `mandatory:"false" json:"totalECpuCount"` + + // The number of ECPUs to enable for an Exadata VM cluster on Exascale Infrastructure. + EnabledECpuCount *int `mandatory:"false" json:"enabledECpuCount"` + + VmFileSystemStorage *ExadbVmClusterStorageDetails `mandatory:"false" json:"vmFileSystemStorage"` + + // The number of nodes to be added in the Exadata VM cluster on Exascale Infrastructure. + NodeCount *int `mandatory:"false" json:"nodeCount"` + + // The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. The default is BRING_YOUR_OWN_LICENSE. + LicenseModel UpdateExadbVmClusterDetailsLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` + + // The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster on Exascale Infrastructure. + SshPublicKeys []string `mandatory:"false" json:"sshPublicKeys"` + + // The list of OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) for the network security groups (NSGs) to which this resource belongs. Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). + // **NsgIds restrictions:** + // - A network security group (NSG) is optional for Autonomous Databases with private access. The nsgIds list can be empty. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // A list of the OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that the backup network of this DB system belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). Applicable only to Exadata systems. + BackupNetworkNsgIds []string `mandatory:"false" json:"backupNetworkNsgIds"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + DataCollectionOptions *DataCollectionOptions `mandatory:"false" json:"dataCollectionOptions"` + + // Operating system version of the image. + SystemVersion *string `mandatory:"false" json:"systemVersion"` + + // Grid Setup will be done using this grid image id + GridImageId *string `mandatory:"false" json:"gridImageId"` + + // The update action. + UpdateAction UpdateExadbVmClusterDetailsUpdateActionEnum `mandatory:"false" json:"updateAction,omitempty"` +} + +func (m UpdateExadbVmClusterDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateExadbVmClusterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateExadbVmClusterDetailsLicenseModelEnum(string(m.LicenseModel)); !ok && m.LicenseModel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LicenseModel: %s. Supported values are: %s.", m.LicenseModel, strings.Join(GetUpdateExadbVmClusterDetailsLicenseModelEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateExadbVmClusterDetailsUpdateActionEnum(string(m.UpdateAction)); !ok && m.UpdateAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateAction: %s. Supported values are: %s.", m.UpdateAction, strings.Join(GetUpdateExadbVmClusterDetailsUpdateActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateExadbVmClusterDetailsLicenseModelEnum Enum with underlying type: string +type UpdateExadbVmClusterDetailsLicenseModelEnum string + +// Set of constants representing the allowable values for UpdateExadbVmClusterDetailsLicenseModelEnum +const ( + UpdateExadbVmClusterDetailsLicenseModelLicenseIncluded UpdateExadbVmClusterDetailsLicenseModelEnum = "LICENSE_INCLUDED" + UpdateExadbVmClusterDetailsLicenseModelBringYourOwnLicense UpdateExadbVmClusterDetailsLicenseModelEnum = "BRING_YOUR_OWN_LICENSE" +) + +var mappingUpdateExadbVmClusterDetailsLicenseModelEnum = map[string]UpdateExadbVmClusterDetailsLicenseModelEnum{ + "LICENSE_INCLUDED": UpdateExadbVmClusterDetailsLicenseModelLicenseIncluded, + "BRING_YOUR_OWN_LICENSE": UpdateExadbVmClusterDetailsLicenseModelBringYourOwnLicense, +} + +var mappingUpdateExadbVmClusterDetailsLicenseModelEnumLowerCase = map[string]UpdateExadbVmClusterDetailsLicenseModelEnum{ + "license_included": UpdateExadbVmClusterDetailsLicenseModelLicenseIncluded, + "bring_your_own_license": UpdateExadbVmClusterDetailsLicenseModelBringYourOwnLicense, +} + +// GetUpdateExadbVmClusterDetailsLicenseModelEnumValues Enumerates the set of values for UpdateExadbVmClusterDetailsLicenseModelEnum +func GetUpdateExadbVmClusterDetailsLicenseModelEnumValues() []UpdateExadbVmClusterDetailsLicenseModelEnum { + values := make([]UpdateExadbVmClusterDetailsLicenseModelEnum, 0) + for _, v := range mappingUpdateExadbVmClusterDetailsLicenseModelEnum { + values = append(values, v) + } + return values +} + +// GetUpdateExadbVmClusterDetailsLicenseModelEnumStringValues Enumerates the set of values in String for UpdateExadbVmClusterDetailsLicenseModelEnum +func GetUpdateExadbVmClusterDetailsLicenseModelEnumStringValues() []string { + return []string{ + "LICENSE_INCLUDED", + "BRING_YOUR_OWN_LICENSE", + } +} + +// GetMappingUpdateExadbVmClusterDetailsLicenseModelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateExadbVmClusterDetailsLicenseModelEnum(val string) (UpdateExadbVmClusterDetailsLicenseModelEnum, bool) { + enum, ok := mappingUpdateExadbVmClusterDetailsLicenseModelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateExadbVmClusterDetailsUpdateActionEnum Enum with underlying type: string +type UpdateExadbVmClusterDetailsUpdateActionEnum string + +// Set of constants representing the allowable values for UpdateExadbVmClusterDetailsUpdateActionEnum +const ( + UpdateExadbVmClusterDetailsUpdateActionRollingApply UpdateExadbVmClusterDetailsUpdateActionEnum = "ROLLING_APPLY" + UpdateExadbVmClusterDetailsUpdateActionNonRollingApply UpdateExadbVmClusterDetailsUpdateActionEnum = "NON_ROLLING_APPLY" + UpdateExadbVmClusterDetailsUpdateActionPrecheck UpdateExadbVmClusterDetailsUpdateActionEnum = "PRECHECK" + UpdateExadbVmClusterDetailsUpdateActionRollback UpdateExadbVmClusterDetailsUpdateActionEnum = "ROLLBACK" +) + +var mappingUpdateExadbVmClusterDetailsUpdateActionEnum = map[string]UpdateExadbVmClusterDetailsUpdateActionEnum{ + "ROLLING_APPLY": UpdateExadbVmClusterDetailsUpdateActionRollingApply, + "NON_ROLLING_APPLY": UpdateExadbVmClusterDetailsUpdateActionNonRollingApply, + "PRECHECK": UpdateExadbVmClusterDetailsUpdateActionPrecheck, + "ROLLBACK": UpdateExadbVmClusterDetailsUpdateActionRollback, +} + +var mappingUpdateExadbVmClusterDetailsUpdateActionEnumLowerCase = map[string]UpdateExadbVmClusterDetailsUpdateActionEnum{ + "rolling_apply": UpdateExadbVmClusterDetailsUpdateActionRollingApply, + "non_rolling_apply": UpdateExadbVmClusterDetailsUpdateActionNonRollingApply, + "precheck": UpdateExadbVmClusterDetailsUpdateActionPrecheck, + "rollback": UpdateExadbVmClusterDetailsUpdateActionRollback, +} + +// GetUpdateExadbVmClusterDetailsUpdateActionEnumValues Enumerates the set of values for UpdateExadbVmClusterDetailsUpdateActionEnum +func GetUpdateExadbVmClusterDetailsUpdateActionEnumValues() []UpdateExadbVmClusterDetailsUpdateActionEnum { + values := make([]UpdateExadbVmClusterDetailsUpdateActionEnum, 0) + for _, v := range mappingUpdateExadbVmClusterDetailsUpdateActionEnum { + values = append(values, v) + } + return values +} + +// GetUpdateExadbVmClusterDetailsUpdateActionEnumStringValues Enumerates the set of values in String for UpdateExadbVmClusterDetailsUpdateActionEnum +func GetUpdateExadbVmClusterDetailsUpdateActionEnumStringValues() []string { + return []string{ + "ROLLING_APPLY", + "NON_ROLLING_APPLY", + "PRECHECK", + "ROLLBACK", + } +} + +// GetMappingUpdateExadbVmClusterDetailsUpdateActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateExadbVmClusterDetailsUpdateActionEnum(val string) (UpdateExadbVmClusterDetailsUpdateActionEnum, bool) { + enum, ok := mappingUpdateExadbVmClusterDetailsUpdateActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/update_exadb_vm_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_exadb_vm_cluster_request_response.go new file mode 100644 index 00000000000..a77043f4985 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_exadb_vm_cluster_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateExadbVmClusterRequest wrapper for the UpdateExadbVmCluster operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/UpdateExadbVmCluster.go.html to see an example of how to use UpdateExadbVmClusterRequest. +type UpdateExadbVmClusterRequest struct { + + // The Exadata VM cluster OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + ExadbVmClusterId *string `mandatory:"true" contributesTo:"path" name:"exadbVmClusterId"` + + // Request to update the attributes of a Exadata VM cluster on Exascale Infrastructure. + UpdateExadbVmClusterDetails `contributesTo:"body"` + + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateExadbVmClusterRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateExadbVmClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateExadbVmClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateExadbVmClusterRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateExadbVmClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateExadbVmClusterResponse wrapper for the UpdateExadbVmCluster operation +type UpdateExadbVmClusterResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ExadbVmCluster instance + ExadbVmCluster `presentIn:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use GetWorkRequest with a work request OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateExadbVmClusterResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateExadbVmClusterResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/update_exascale_db_storage_vault_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_exascale_db_storage_vault_details.go new file mode 100644 index 00000000000..cb5bfb2014a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_exascale_db_storage_vault_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Service API +// +// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm). +// + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateExascaleDbStorageVaultDetails Details for updating the Exadata Database Storage Vault. +type UpdateExascaleDbStorageVaultDetails struct { + + // The user-friendly name for the Exadata Database Storage Vault. The name does not need to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Exadata Database Storage Vault description. + Description *string `mandatory:"false" json:"description"` + + HighCapacityDatabaseStorage *ExascaleDbStorageInputDetails `mandatory:"false" json:"highCapacityDatabaseStorage"` + + // The size of additional Flash Cache in percentage of High Capacity database storage. + AdditionalFlashCacheInPercent *int `mandatory:"false" json:"additionalFlashCacheInPercent"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateExascaleDbStorageVaultDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateExascaleDbStorageVaultDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/update_exascale_db_storage_vault_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_exascale_db_storage_vault_request_response.go new file mode 100644 index 00000000000..24639aebd7d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_exascale_db_storage_vault_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package database + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateExascaleDbStorageVaultRequest wrapper for the UpdateExascaleDbStorageVault operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/UpdateExascaleDbStorageVault.go.html to see an example of how to use UpdateExascaleDbStorageVaultRequest. +type UpdateExascaleDbStorageVaultRequest struct { + + // The Exadata Database Storage Vault OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + ExascaleDbStorageVaultId *string `mandatory:"true" contributesTo:"path" name:"exascaleDbStorageVaultId"` + + // Request to update the attributes of a Exadata Database Storage Vault. + UpdateExascaleDbStorageVaultDetails `contributesTo:"body"` + + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateExascaleDbStorageVaultRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateExascaleDbStorageVaultRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateExascaleDbStorageVaultRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateExascaleDbStorageVaultRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateExascaleDbStorageVaultRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateExascaleDbStorageVaultResponse wrapper for the UpdateExascaleDbStorageVault operation +type UpdateExascaleDbStorageVaultResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ExascaleDbStorageVault instance + ExascaleDbStorageVault `presentIn:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use GetWorkRequest with a work request OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateExascaleDbStorageVaultResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateExascaleDbStorageVaultResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/databasemanagement/deployment_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/databasemanagement/deployment_type.go index 13cb62c1b0c..9bc5bda1f07 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/databasemanagement/deployment_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/databasemanagement/deployment_type.go @@ -26,6 +26,7 @@ const ( DeploymentTypeExadata DeploymentTypeEnum = "EXADATA" DeploymentTypeExadataCc DeploymentTypeEnum = "EXADATA_CC" DeploymentTypeAutonomous DeploymentTypeEnum = "AUTONOMOUS" + DeploymentTypeExadataXs DeploymentTypeEnum = "EXADATA_XS" ) var mappingDeploymentTypeEnum = map[string]DeploymentTypeEnum{ @@ -35,6 +36,7 @@ var mappingDeploymentTypeEnum = map[string]DeploymentTypeEnum{ "EXADATA": DeploymentTypeExadata, "EXADATA_CC": DeploymentTypeExadataCc, "AUTONOMOUS": DeploymentTypeAutonomous, + "EXADATA_XS": DeploymentTypeExadataXs, } var mappingDeploymentTypeEnumLowerCase = map[string]DeploymentTypeEnum{ @@ -44,6 +46,7 @@ var mappingDeploymentTypeEnumLowerCase = map[string]DeploymentTypeEnum{ "exadata": DeploymentTypeExadata, "exadata_cc": DeploymentTypeExadataCc, "autonomous": DeploymentTypeAutonomous, + "exadata_xs": DeploymentTypeExadataXs, } // GetDeploymentTypeEnumValues Enumerates the set of values for DeploymentTypeEnum @@ -64,6 +67,7 @@ func GetDeploymentTypeEnumStringValues() []string { "EXADATA", "EXADATA_CC", "AUTONOMOUS", + "EXADATA_XS", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/databasemanagement/list_managed_databases_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/databasemanagement/list_managed_databases_request_response.go index 7fc3dcc1653..0b059e0d9fa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/databasemanagement/list_managed_databases_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/databasemanagement/list_managed_databases_request_response.go @@ -189,6 +189,7 @@ const ( ListManagedDatabasesDeploymentTypeExadata ListManagedDatabasesDeploymentTypeEnum = "EXADATA" ListManagedDatabasesDeploymentTypeExadataCc ListManagedDatabasesDeploymentTypeEnum = "EXADATA_CC" ListManagedDatabasesDeploymentTypeAutonomous ListManagedDatabasesDeploymentTypeEnum = "AUTONOMOUS" + ListManagedDatabasesDeploymentTypeExadataXs ListManagedDatabasesDeploymentTypeEnum = "EXADATA_XS" ) var mappingListManagedDatabasesDeploymentTypeEnum = map[string]ListManagedDatabasesDeploymentTypeEnum{ @@ -198,6 +199,7 @@ var mappingListManagedDatabasesDeploymentTypeEnum = map[string]ListManagedDataba "EXADATA": ListManagedDatabasesDeploymentTypeExadata, "EXADATA_CC": ListManagedDatabasesDeploymentTypeExadataCc, "AUTONOMOUS": ListManagedDatabasesDeploymentTypeAutonomous, + "EXADATA_XS": ListManagedDatabasesDeploymentTypeExadataXs, } var mappingListManagedDatabasesDeploymentTypeEnumLowerCase = map[string]ListManagedDatabasesDeploymentTypeEnum{ @@ -207,6 +209,7 @@ var mappingListManagedDatabasesDeploymentTypeEnumLowerCase = map[string]ListMana "exadata": ListManagedDatabasesDeploymentTypeExadata, "exadata_cc": ListManagedDatabasesDeploymentTypeExadataCc, "autonomous": ListManagedDatabasesDeploymentTypeAutonomous, + "exadata_xs": ListManagedDatabasesDeploymentTypeExadataXs, } // GetListManagedDatabasesDeploymentTypeEnumValues Enumerates the set of values for ListManagedDatabasesDeploymentTypeEnum @@ -227,6 +230,7 @@ func GetListManagedDatabasesDeploymentTypeEnumStringValues() []string { "EXADATA", "EXADATA_CC", "AUTONOMOUS", + "EXADATA_XS", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/advanced_parameter_data_types.go b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/advanced_parameter_data_types.go new file mode 100644 index 00000000000..a85d95033cd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/advanced_parameter_data_types.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Migration API +// +// Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration operations. +// + +package databasemigration + +import ( + "strings" +) + +// AdvancedParameterDataTypesEnum Enum with underlying type: string +type AdvancedParameterDataTypesEnum string + +// Set of constants representing the allowable values for AdvancedParameterDataTypesEnum +const ( + AdvancedParameterDataTypesString AdvancedParameterDataTypesEnum = "STRING" + AdvancedParameterDataTypesInteger AdvancedParameterDataTypesEnum = "INTEGER" + AdvancedParameterDataTypesFloat AdvancedParameterDataTypesEnum = "FLOAT" + AdvancedParameterDataTypesBoolean AdvancedParameterDataTypesEnum = "BOOLEAN" +) + +var mappingAdvancedParameterDataTypesEnum = map[string]AdvancedParameterDataTypesEnum{ + "STRING": AdvancedParameterDataTypesString, + "INTEGER": AdvancedParameterDataTypesInteger, + "FLOAT": AdvancedParameterDataTypesFloat, + "BOOLEAN": AdvancedParameterDataTypesBoolean, +} + +var mappingAdvancedParameterDataTypesEnumLowerCase = map[string]AdvancedParameterDataTypesEnum{ + "string": AdvancedParameterDataTypesString, + "integer": AdvancedParameterDataTypesInteger, + "float": AdvancedParameterDataTypesFloat, + "boolean": AdvancedParameterDataTypesBoolean, +} + +// GetAdvancedParameterDataTypesEnumValues Enumerates the set of values for AdvancedParameterDataTypesEnum +func GetAdvancedParameterDataTypesEnumValues() []AdvancedParameterDataTypesEnum { + values := make([]AdvancedParameterDataTypesEnum, 0) + for _, v := range mappingAdvancedParameterDataTypesEnum { + values = append(values, v) + } + return values +} + +// GetAdvancedParameterDataTypesEnumStringValues Enumerates the set of values in String for AdvancedParameterDataTypesEnum +func GetAdvancedParameterDataTypesEnumStringValues() []string { + return []string{ + "STRING", + "INTEGER", + "FLOAT", + "BOOLEAN", + } +} + +// GetMappingAdvancedParameterDataTypesEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAdvancedParameterDataTypesEnum(val string) (AdvancedParameterDataTypesEnum, bool) { + enum, ok := mappingAdvancedParameterDataTypesEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/create_oracle_migration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/create_oracle_migration_details.go index f93f1dacac3..8ea32e0b068 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/create_oracle_migration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/create_oracle_migration_details.go @@ -54,6 +54,9 @@ type CreateOracleMigrationDetails struct { GgsDetails *CreateOracleGgsDeploymentDetails `mandatory:"false" json:"ggsDetails"` + // List of Migration Parameter objects. + AdvancedParameters []MigrationParameterDetails `mandatory:"false" json:"advancedParameters"` + // The OCID of the resource being referenced. SourceContainerDatabaseConnectionId *string `mandatory:"false" json:"sourceContainerDatabaseConnectionId"` @@ -158,6 +161,7 @@ func (m *CreateOracleMigrationDetails) UnmarshalJSON(data []byte) (e error) { AdvisorSettings *CreateOracleAdvisorSettings `json:"advisorSettings"` HubDetails *CreateGoldenGateHubDetails `json:"hubDetails"` GgsDetails *CreateOracleGgsDeploymentDetails `json:"ggsDetails"` + AdvancedParameters []MigrationParameterDetails `json:"advancedParameters"` SourceContainerDatabaseConnectionId *string `json:"sourceContainerDatabaseConnectionId"` ExcludeObjects []OracleDatabaseObject `json:"excludeObjects"` IncludeObjects []OracleDatabaseObject `json:"includeObjects"` @@ -199,6 +203,8 @@ func (m *CreateOracleMigrationDetails) UnmarshalJSON(data []byte) (e error) { m.GgsDetails = model.GgsDetails + m.AdvancedParameters = make([]MigrationParameterDetails, len(model.AdvancedParameters)) + copy(m.AdvancedParameters, model.AdvancedParameters) m.SourceContainerDatabaseConnectionId = model.SourceContainerDatabaseConnectionId m.ExcludeObjects = make([]OracleDatabaseObject, len(model.ExcludeObjects)) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/databasemigration_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/databasemigration_client.go index f735dc6458e..bf0598c1496 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/databasemigration_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/databasemigration_client.go @@ -1526,6 +1526,64 @@ func (client DatabaseMigrationClient) listMigrationObjects(ctx context.Context, return response, err } +// ListMigrationParameters List of parameters that can be used to customize migrations. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemigration/ListMigrationParameters.go.html to see an example of how to use ListMigrationParameters API. +// A default retry strategy applies to this operation ListMigrationParameters() +func (client DatabaseMigrationClient) ListMigrationParameters(ctx context.Context, request ListMigrationParametersRequest) (response ListMigrationParametersResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listMigrationParameters, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListMigrationParametersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListMigrationParametersResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListMigrationParametersResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListMigrationParametersResponse") + } + return +} + +// listMigrationParameters implements the OCIOperation interface (enables retrying operations) +func (client DatabaseMigrationClient) listMigrationParameters(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/migrationParameters", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListMigrationParametersResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationParameterSummary/ListMigrationParameters" + err = common.PostProcessServiceError(err, "DatabaseMigration", "ListMigrationParameters", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListMigrations List all Migrations. // // # See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/list_migration_parameters_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/list_migration_parameters_request_response.go new file mode 100644 index 00000000000..b5a251d45b6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/list_migration_parameters_request_response.go @@ -0,0 +1,292 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package databasemigration + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListMigrationParametersRequest wrapper for the ListMigrationParameters operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemigration/ListMigrationParameters.go.html to see an example of how to use ListMigrationParametersRequest. +type ListMigrationParametersRequest struct { + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A filter to return only resources that match a certain Migration Type. + MigrationType ListMigrationParametersMigrationTypeEnum `mandatory:"false" contributesTo:"query" name:"migrationType" omitEmpty:"true"` + + // A filter to return only resources that match a certain Database Combination. + DatabaseCombination ListMigrationParametersDatabaseCombinationEnum `mandatory:"false" contributesTo:"query" name:"databaseCombination" omitEmpty:"true"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. + // Default order for displayName is ascending. If no value is specified timeCreated is default. + SortBy ListMigrationParametersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc'. + SortOrder ListMigrationParametersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListMigrationParametersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListMigrationParametersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListMigrationParametersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListMigrationParametersRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListMigrationParametersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListMigrationParametersMigrationTypeEnum(string(request.MigrationType)); !ok && request.MigrationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MigrationType: %s. Supported values are: %s.", request.MigrationType, strings.Join(GetListMigrationParametersMigrationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingListMigrationParametersDatabaseCombinationEnum(string(request.DatabaseCombination)); !ok && request.DatabaseCombination != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DatabaseCombination: %s. Supported values are: %s.", request.DatabaseCombination, strings.Join(GetListMigrationParametersDatabaseCombinationEnumStringValues(), ","))) + } + if _, ok := GetMappingListMigrationParametersSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListMigrationParametersSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListMigrationParametersSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListMigrationParametersSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListMigrationParametersResponse wrapper for the ListMigrationParameters operation +type ListMigrationParametersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of MigrationParameterSummaryCollection instances + MigrationParameterSummaryCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListMigrationParametersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListMigrationParametersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListMigrationParametersMigrationTypeEnum Enum with underlying type: string +type ListMigrationParametersMigrationTypeEnum string + +// Set of constants representing the allowable values for ListMigrationParametersMigrationTypeEnum +const ( + ListMigrationParametersMigrationTypeOnline ListMigrationParametersMigrationTypeEnum = "ONLINE" + ListMigrationParametersMigrationTypeOffline ListMigrationParametersMigrationTypeEnum = "OFFLINE" +) + +var mappingListMigrationParametersMigrationTypeEnum = map[string]ListMigrationParametersMigrationTypeEnum{ + "ONLINE": ListMigrationParametersMigrationTypeOnline, + "OFFLINE": ListMigrationParametersMigrationTypeOffline, +} + +var mappingListMigrationParametersMigrationTypeEnumLowerCase = map[string]ListMigrationParametersMigrationTypeEnum{ + "online": ListMigrationParametersMigrationTypeOnline, + "offline": ListMigrationParametersMigrationTypeOffline, +} + +// GetListMigrationParametersMigrationTypeEnumValues Enumerates the set of values for ListMigrationParametersMigrationTypeEnum +func GetListMigrationParametersMigrationTypeEnumValues() []ListMigrationParametersMigrationTypeEnum { + values := make([]ListMigrationParametersMigrationTypeEnum, 0) + for _, v := range mappingListMigrationParametersMigrationTypeEnum { + values = append(values, v) + } + return values +} + +// GetListMigrationParametersMigrationTypeEnumStringValues Enumerates the set of values in String for ListMigrationParametersMigrationTypeEnum +func GetListMigrationParametersMigrationTypeEnumStringValues() []string { + return []string{ + "ONLINE", + "OFFLINE", + } +} + +// GetMappingListMigrationParametersMigrationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMigrationParametersMigrationTypeEnum(val string) (ListMigrationParametersMigrationTypeEnum, bool) { + enum, ok := mappingListMigrationParametersMigrationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListMigrationParametersDatabaseCombinationEnum Enum with underlying type: string +type ListMigrationParametersDatabaseCombinationEnum string + +// Set of constants representing the allowable values for ListMigrationParametersDatabaseCombinationEnum +const ( + ListMigrationParametersDatabaseCombinationMysql ListMigrationParametersDatabaseCombinationEnum = "MYSQL" + ListMigrationParametersDatabaseCombinationOracle ListMigrationParametersDatabaseCombinationEnum = "ORACLE" +) + +var mappingListMigrationParametersDatabaseCombinationEnum = map[string]ListMigrationParametersDatabaseCombinationEnum{ + "MYSQL": ListMigrationParametersDatabaseCombinationMysql, + "ORACLE": ListMigrationParametersDatabaseCombinationOracle, +} + +var mappingListMigrationParametersDatabaseCombinationEnumLowerCase = map[string]ListMigrationParametersDatabaseCombinationEnum{ + "mysql": ListMigrationParametersDatabaseCombinationMysql, + "oracle": ListMigrationParametersDatabaseCombinationOracle, +} + +// GetListMigrationParametersDatabaseCombinationEnumValues Enumerates the set of values for ListMigrationParametersDatabaseCombinationEnum +func GetListMigrationParametersDatabaseCombinationEnumValues() []ListMigrationParametersDatabaseCombinationEnum { + values := make([]ListMigrationParametersDatabaseCombinationEnum, 0) + for _, v := range mappingListMigrationParametersDatabaseCombinationEnum { + values = append(values, v) + } + return values +} + +// GetListMigrationParametersDatabaseCombinationEnumStringValues Enumerates the set of values in String for ListMigrationParametersDatabaseCombinationEnum +func GetListMigrationParametersDatabaseCombinationEnumStringValues() []string { + return []string{ + "MYSQL", + "ORACLE", + } +} + +// GetMappingListMigrationParametersDatabaseCombinationEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMigrationParametersDatabaseCombinationEnum(val string) (ListMigrationParametersDatabaseCombinationEnum, bool) { + enum, ok := mappingListMigrationParametersDatabaseCombinationEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListMigrationParametersSortByEnum Enum with underlying type: string +type ListMigrationParametersSortByEnum string + +// Set of constants representing the allowable values for ListMigrationParametersSortByEnum +const ( + ListMigrationParametersSortByTimecreated ListMigrationParametersSortByEnum = "timeCreated" + ListMigrationParametersSortByDisplayname ListMigrationParametersSortByEnum = "displayName" +) + +var mappingListMigrationParametersSortByEnum = map[string]ListMigrationParametersSortByEnum{ + "timeCreated": ListMigrationParametersSortByTimecreated, + "displayName": ListMigrationParametersSortByDisplayname, +} + +var mappingListMigrationParametersSortByEnumLowerCase = map[string]ListMigrationParametersSortByEnum{ + "timecreated": ListMigrationParametersSortByTimecreated, + "displayname": ListMigrationParametersSortByDisplayname, +} + +// GetListMigrationParametersSortByEnumValues Enumerates the set of values for ListMigrationParametersSortByEnum +func GetListMigrationParametersSortByEnumValues() []ListMigrationParametersSortByEnum { + values := make([]ListMigrationParametersSortByEnum, 0) + for _, v := range mappingListMigrationParametersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListMigrationParametersSortByEnumStringValues Enumerates the set of values in String for ListMigrationParametersSortByEnum +func GetListMigrationParametersSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListMigrationParametersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMigrationParametersSortByEnum(val string) (ListMigrationParametersSortByEnum, bool) { + enum, ok := mappingListMigrationParametersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListMigrationParametersSortOrderEnum Enum with underlying type: string +type ListMigrationParametersSortOrderEnum string + +// Set of constants representing the allowable values for ListMigrationParametersSortOrderEnum +const ( + ListMigrationParametersSortOrderAsc ListMigrationParametersSortOrderEnum = "ASC" + ListMigrationParametersSortOrderDesc ListMigrationParametersSortOrderEnum = "DESC" +) + +var mappingListMigrationParametersSortOrderEnum = map[string]ListMigrationParametersSortOrderEnum{ + "ASC": ListMigrationParametersSortOrderAsc, + "DESC": ListMigrationParametersSortOrderDesc, +} + +var mappingListMigrationParametersSortOrderEnumLowerCase = map[string]ListMigrationParametersSortOrderEnum{ + "asc": ListMigrationParametersSortOrderAsc, + "desc": ListMigrationParametersSortOrderDesc, +} + +// GetListMigrationParametersSortOrderEnumValues Enumerates the set of values for ListMigrationParametersSortOrderEnum +func GetListMigrationParametersSortOrderEnumValues() []ListMigrationParametersSortOrderEnum { + values := make([]ListMigrationParametersSortOrderEnum, 0) + for _, v := range mappingListMigrationParametersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListMigrationParametersSortOrderEnumStringValues Enumerates the set of values in String for ListMigrationParametersSortOrderEnum +func GetListMigrationParametersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListMigrationParametersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMigrationParametersSortOrderEnum(val string) (ListMigrationParametersSortOrderEnum, bool) { + enum, ok := mappingListMigrationParametersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/migration_parameter_base.go b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/migration_parameter_base.go new file mode 100644 index 00000000000..8b5963da232 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/migration_parameter_base.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Migration API +// +// Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration operations. +// + +package databasemigration + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MigrationParameterBase Migration parameter base object. +type MigrationParameterBase struct { + + // Parameter name. + Name *string `mandatory:"true" json:"name"` + + // Parameter data type. + DataType AdvancedParameterDataTypesEnum `mandatory:"true" json:"dataType"` +} + +func (m MigrationParameterBase) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MigrationParameterBase) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAdvancedParameterDataTypesEnum(string(m.DataType)); !ok && m.DataType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DataType: %s. Supported values are: %s.", m.DataType, strings.Join(GetAdvancedParameterDataTypesEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/migration_parameter_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/migration_parameter_details.go new file mode 100644 index 00000000000..a91939c92ff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/migration_parameter_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Migration API +// +// Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration operations. +// + +package databasemigration + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MigrationParameterDetails Migration parameter details object. +type MigrationParameterDetails struct { + + // Parameter name. + Name *string `mandatory:"true" json:"name"` + + // Parameter data type. + DataType AdvancedParameterDataTypesEnum `mandatory:"true" json:"dataType"` + + // If a STRING data type then the value should be an array of characters, + // if a INTEGER data type then the value should be an integer value, + // if a FLOAT data type then the value should be an float value, + // if a BOOLEAN data type then the value should be TRUE or FALSE. + Value *string `mandatory:"true" json:"value"` +} + +func (m MigrationParameterDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MigrationParameterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAdvancedParameterDataTypesEnum(string(m.DataType)); !ok && m.DataType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DataType: %s. Supported values are: %s.", m.DataType, strings.Join(GetAdvancedParameterDataTypesEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/migration_parameter_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/migration_parameter_summary.go new file mode 100644 index 00000000000..bee06f631af --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/migration_parameter_summary.go @@ -0,0 +1,85 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Migration API +// +// Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration operations. +// + +package databasemigration + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MigrationParameterSummary Migration parameter response object. +type MigrationParameterSummary struct { + + // Parameter name. + Name *string `mandatory:"true" json:"name"` + + // Parameter data type. + DataType AdvancedParameterDataTypesEnum `mandatory:"true" json:"dataType"` + + // The combination of source and target databases participating in a migration. + // Example: ORACLE means the migration is meant for migrating Oracle source and target databases. + DatabaseCombination DatabaseCombinationEnum `mandatory:"true" json:"databaseCombination"` + + // Parameter display name. + DisplayName *string `mandatory:"true" json:"displayName"` + + // Parameter name description. + Description *string `mandatory:"true" json:"description"` + + // Parameter category name. + CategoryName *string `mandatory:"true" json:"categoryName"` + + // Parameter category display name. + CategoryDisplayName *string `mandatory:"true" json:"categoryDisplayName"` + + // Migration Stage. + MigrationType MigrationTypesEnum `mandatory:"true" json:"migrationType"` + + // Parameter documentation URL link. + DocUrlLink *string `mandatory:"false" json:"docUrlLink"` + + // Default value for a parameter. + DefaultValue *string `mandatory:"false" json:"defaultValue"` + + // Parameter minimum value. + MinValue *float32 `mandatory:"false" json:"minValue"` + + // Parameter maximum value. + MaxValue *float32 `mandatory:"false" json:"maxValue"` + + // Hint text for parameter value. + HintText *string `mandatory:"false" json:"hintText"` +} + +func (m MigrationParameterSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MigrationParameterSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAdvancedParameterDataTypesEnum(string(m.DataType)); !ok && m.DataType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DataType: %s. Supported values are: %s.", m.DataType, strings.Join(GetAdvancedParameterDataTypesEnumStringValues(), ","))) + } + if _, ok := GetMappingDatabaseCombinationEnum(string(m.DatabaseCombination)); !ok && m.DatabaseCombination != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DatabaseCombination: %s. Supported values are: %s.", m.DatabaseCombination, strings.Join(GetDatabaseCombinationEnumStringValues(), ","))) + } + if _, ok := GetMappingMigrationTypesEnum(string(m.MigrationType)); !ok && m.MigrationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MigrationType: %s. Supported values are: %s.", m.MigrationType, strings.Join(GetMigrationTypesEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/migration_parameter_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/migration_parameter_summary_collection.go new file mode 100644 index 00000000000..b90c4fc828d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/migration_parameter_summary_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Database Migration API +// +// Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration operations. +// + +package databasemigration + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MigrationParameterSummaryCollection List of Migration Parameter Summary objects. +type MigrationParameterSummaryCollection struct { + + // List of Migration Parameters. + Items []MigrationParameterSummary `mandatory:"true" json:"items"` +} + +func (m MigrationParameterSummaryCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MigrationParameterSummaryCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/oracle_migration.go b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/oracle_migration.go index f5885970d7d..34d5612f70f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/oracle_migration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/oracle_migration.go @@ -76,6 +76,9 @@ type OracleMigration struct { // The OCID of the resource being referenced. SourceContainerDatabaseConnectionId *string `mandatory:"false" json:"sourceContainerDatabaseConnectionId"` + // List of Migration Parameter objects. + AdvancedParameters []MigrationParameterDetails `mandatory:"false" json:"advancedParameters"` + // The type of the migration to be performed. // Example: ONLINE if no downtime is preferred for a migration. This method uses Oracle GoldenGate for replication. Type MigrationTypesEnum `mandatory:"true" json:"type"` @@ -236,6 +239,7 @@ func (m *OracleMigration) UnmarshalJSON(data []byte) (e error) { HubDetails *GoldenGateHubDetails `json:"hubDetails"` GgsDetails *OracleGgsDeploymentDetails `json:"ggsDetails"` SourceContainerDatabaseConnectionId *string `json:"sourceContainerDatabaseConnectionId"` + AdvancedParameters []MigrationParameterDetails `json:"advancedParameters"` Id *string `json:"id"` DisplayName *string `json:"displayName"` CompartmentId *string `json:"compartmentId"` @@ -289,6 +293,8 @@ func (m *OracleMigration) UnmarshalJSON(data []byte) (e error) { m.SourceContainerDatabaseConnectionId = model.SourceContainerDatabaseConnectionId + m.AdvancedParameters = make([]MigrationParameterDetails, len(model.AdvancedParameters)) + copy(m.AdvancedParameters, model.AdvancedParameters) m.Id = model.Id m.DisplayName = model.DisplayName diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/update_oracle_migration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/update_oracle_migration_details.go index 37d9dec7fff..9c2aa92a6ca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/update_oracle_migration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/databasemigration/update_oracle_migration_details.go @@ -51,6 +51,9 @@ type UpdateOracleMigrationDetails struct { GgsDetails *UpdateOracleGgsDeploymentDetails `mandatory:"false" json:"ggsDetails"` + // List of Migration Parameter objects. + AdvancedParameters []MigrationParameterDetails `mandatory:"false" json:"advancedParameters"` + // The OCID of the resource being referenced. SourceContainerDatabaseConnectionId *string `mandatory:"false" json:"sourceContainerDatabaseConnectionId"` @@ -142,6 +145,7 @@ func (m *UpdateOracleMigrationDetails) UnmarshalJSON(data []byte) (e error) { AdvisorSettings *UpdateOracleAdvisorSettings `json:"advisorSettings"` HubDetails *UpdateGoldenGateHubDetails `json:"hubDetails"` GgsDetails *UpdateOracleGgsDeploymentDetails `json:"ggsDetails"` + AdvancedParameters []MigrationParameterDetails `json:"advancedParameters"` SourceContainerDatabaseConnectionId *string `json:"sourceContainerDatabaseConnectionId"` }{} @@ -182,6 +186,8 @@ func (m *UpdateOracleMigrationDetails) UnmarshalJSON(data []byte) (e error) { m.GgsDetails = model.GgsDetails + m.AdvancedParameters = make([]MigrationParameterDetails, len(model.AdvancedParameters)) + copy(m.AdvancedParameters, model.AdvancedParameters) m.SourceContainerDatabaseConnectionId = model.SourceContainerDatabaseConnectionId return diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_details.go index db63c230afe..34c0f0b7712 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_details.go @@ -30,8 +30,9 @@ type CreateExportDetails struct { // Example: `/mediafiles` Path *string `mandatory:"true" json:"path"` - // Export options for the new export. If left unspecified, - // defaults to: + // Export options for the new export. For exports of mount targets with + // IPv4 address, if client options are left unspecified, client options + // would default to: // [ // { // "source" : "0.0.0.0/0", @@ -44,6 +45,9 @@ type CreateExportDetails struct { // "allowedAuth": ["SYS"] // } // ] + // For exports of mount targets with IPv6 address, if client options are + // left unspecified, client options would be an empty array, i.e. export + // would not be visible to any clients. // **Note:** Mount targets do not have Internet-routable IP // addresses. Therefore they will not be reachable from the // Internet, even if an associated `ClientOptions` item has diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_details.go index 281da78a375..362f3ba8366 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_details.go @@ -49,6 +49,11 @@ type CreateFileSystemDetails struct { // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). SourceSnapshotId *string `mandatory:"false" json:"sourceSnapshotId"` + // Specifies whether the clone file system is attached to its parent file system. + // If the value is set to 'DETACH', then the file system will be created, which is deep copied from the snapshot + // specified by sourceSnapshotId, else will remain attached to its parent. + CloneAttachStatus CreateFileSystemDetailsCloneAttachStatusEnum `mandatory:"false" json:"cloneAttachStatus,omitempty"` + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated file system snapshot policy, which // controls the frequency of snapshot creation and retention period of the taken snapshots. // May be unset as a blank value. @@ -65,8 +70,53 @@ func (m CreateFileSystemDetails) String() string { func (m CreateFileSystemDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingCreateFileSystemDetailsCloneAttachStatusEnum(string(m.CloneAttachStatus)); !ok && m.CloneAttachStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CloneAttachStatus: %s. Supported values are: %s.", m.CloneAttachStatus, strings.Join(GetCreateFileSystemDetailsCloneAttachStatusEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } return false, nil } + +// CreateFileSystemDetailsCloneAttachStatusEnum Enum with underlying type: string +type CreateFileSystemDetailsCloneAttachStatusEnum string + +// Set of constants representing the allowable values for CreateFileSystemDetailsCloneAttachStatusEnum +const ( + CreateFileSystemDetailsCloneAttachStatusDetach CreateFileSystemDetailsCloneAttachStatusEnum = "DETACH" + CreateFileSystemDetailsCloneAttachStatusAttach CreateFileSystemDetailsCloneAttachStatusEnum = "ATTACH" +) + +var mappingCreateFileSystemDetailsCloneAttachStatusEnum = map[string]CreateFileSystemDetailsCloneAttachStatusEnum{ + "DETACH": CreateFileSystemDetailsCloneAttachStatusDetach, + "ATTACH": CreateFileSystemDetailsCloneAttachStatusAttach, +} + +var mappingCreateFileSystemDetailsCloneAttachStatusEnumLowerCase = map[string]CreateFileSystemDetailsCloneAttachStatusEnum{ + "detach": CreateFileSystemDetailsCloneAttachStatusDetach, + "attach": CreateFileSystemDetailsCloneAttachStatusAttach, +} + +// GetCreateFileSystemDetailsCloneAttachStatusEnumValues Enumerates the set of values for CreateFileSystemDetailsCloneAttachStatusEnum +func GetCreateFileSystemDetailsCloneAttachStatusEnumValues() []CreateFileSystemDetailsCloneAttachStatusEnum { + values := make([]CreateFileSystemDetailsCloneAttachStatusEnum, 0) + for _, v := range mappingCreateFileSystemDetailsCloneAttachStatusEnum { + values = append(values, v) + } + return values +} + +// GetCreateFileSystemDetailsCloneAttachStatusEnumStringValues Enumerates the set of values in String for CreateFileSystemDetailsCloneAttachStatusEnum +func GetCreateFileSystemDetailsCloneAttachStatusEnumStringValues() []string { + return []string{ + "DETACH", + "ATTACH", + } +} + +// GetMappingCreateFileSystemDetailsCloneAttachStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateFileSystemDetailsCloneAttachStatusEnum(val string) (CreateFileSystemDetailsCloneAttachStatusEnum, bool) { + enum, ok := mappingCreateFileSystemDetailsCloneAttachStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go index d6088f13ef3..434675c8c9d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go @@ -32,6 +32,10 @@ type DeleteFileSystemRequest struct { // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // If the value is set to true, then the file system will be deleted by detaching its child file system, turning + // the child file system into an independent File System. + CanDetachChildFileSystem *bool `mandatory:"false" contributesTo:"query" name:"canDetachChildFileSystem"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/detach_clone_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/detach_clone_request_response.go new file mode 100644 index 00000000000..786738814dd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/detach_clone_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DetachCloneRequest wrapper for the DetachClone operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DetachClone.go.html to see an example of how to use DetachCloneRequest. +type DetachCloneRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` + + // 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DetachCloneRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DetachCloneRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DetachCloneRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DetachCloneRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachCloneRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DetachCloneResponse wrapper for the DetachClone operation +type DetachCloneResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DetachCloneResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DetachCloneResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system.go index 422efa22784..d3ea3ae4b04 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system.go @@ -84,6 +84,12 @@ type FileSystem struct { // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm#hydration). IsHydrated *bool `mandatory:"false" json:"isHydrated"` + // Specifies the total number of children of a file system. + CloneCount *int `mandatory:"false" json:"cloneCount"` + + // Specifies whether the file system is attached to its parent file system. + CloneAttachStatus FileSystemCloneAttachStatusEnum `mandatory:"false" json:"cloneAttachStatus,omitempty"` + // Additional information about the current 'lifecycleState'. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` @@ -113,6 +119,9 @@ func (m FileSystem) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetFileSystemLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingFileSystemCloneAttachStatusEnum(string(m.CloneAttachStatus)); !ok && m.CloneAttachStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CloneAttachStatus: %s. Supported values are: %s.", m.CloneAttachStatus, strings.Join(GetFileSystemCloneAttachStatusEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -126,6 +135,7 @@ type FileSystemLifecycleStateEnum string const ( FileSystemLifecycleStateCreating FileSystemLifecycleStateEnum = "CREATING" FileSystemLifecycleStateActive FileSystemLifecycleStateEnum = "ACTIVE" + FileSystemLifecycleStateUpdating FileSystemLifecycleStateEnum = "UPDATING" FileSystemLifecycleStateDeleting FileSystemLifecycleStateEnum = "DELETING" FileSystemLifecycleStateDeleted FileSystemLifecycleStateEnum = "DELETED" FileSystemLifecycleStateFailed FileSystemLifecycleStateEnum = "FAILED" @@ -134,6 +144,7 @@ const ( var mappingFileSystemLifecycleStateEnum = map[string]FileSystemLifecycleStateEnum{ "CREATING": FileSystemLifecycleStateCreating, "ACTIVE": FileSystemLifecycleStateActive, + "UPDATING": FileSystemLifecycleStateUpdating, "DELETING": FileSystemLifecycleStateDeleting, "DELETED": FileSystemLifecycleStateDeleted, "FAILED": FileSystemLifecycleStateFailed, @@ -142,6 +153,7 @@ var mappingFileSystemLifecycleStateEnum = map[string]FileSystemLifecycleStateEnu var mappingFileSystemLifecycleStateEnumLowerCase = map[string]FileSystemLifecycleStateEnum{ "creating": FileSystemLifecycleStateCreating, "active": FileSystemLifecycleStateActive, + "updating": FileSystemLifecycleStateUpdating, "deleting": FileSystemLifecycleStateDeleting, "deleted": FileSystemLifecycleStateDeleted, "failed": FileSystemLifecycleStateFailed, @@ -161,6 +173,7 @@ func GetFileSystemLifecycleStateEnumStringValues() []string { return []string{ "CREATING", "ACTIVE", + "UPDATING", "DELETING", "DELETED", "FAILED", @@ -172,3 +185,49 @@ func GetMappingFileSystemLifecycleStateEnum(val string) (FileSystemLifecycleStat enum, ok := mappingFileSystemLifecycleStateEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// FileSystemCloneAttachStatusEnum Enum with underlying type: string +type FileSystemCloneAttachStatusEnum string + +// Set of constants representing the allowable values for FileSystemCloneAttachStatusEnum +const ( + FileSystemCloneAttachStatusAttached FileSystemCloneAttachStatusEnum = "ATTACHED" + FileSystemCloneAttachStatusDetaching FileSystemCloneAttachStatusEnum = "DETACHING" + FileSystemCloneAttachStatusDetached FileSystemCloneAttachStatusEnum = "DETACHED" +) + +var mappingFileSystemCloneAttachStatusEnum = map[string]FileSystemCloneAttachStatusEnum{ + "ATTACHED": FileSystemCloneAttachStatusAttached, + "DETACHING": FileSystemCloneAttachStatusDetaching, + "DETACHED": FileSystemCloneAttachStatusDetached, +} + +var mappingFileSystemCloneAttachStatusEnumLowerCase = map[string]FileSystemCloneAttachStatusEnum{ + "attached": FileSystemCloneAttachStatusAttached, + "detaching": FileSystemCloneAttachStatusDetaching, + "detached": FileSystemCloneAttachStatusDetached, +} + +// GetFileSystemCloneAttachStatusEnumValues Enumerates the set of values for FileSystemCloneAttachStatusEnum +func GetFileSystemCloneAttachStatusEnumValues() []FileSystemCloneAttachStatusEnum { + values := make([]FileSystemCloneAttachStatusEnum, 0) + for _, v := range mappingFileSystemCloneAttachStatusEnum { + values = append(values, v) + } + return values +} + +// GetFileSystemCloneAttachStatusEnumStringValues Enumerates the set of values in String for FileSystemCloneAttachStatusEnum +func GetFileSystemCloneAttachStatusEnumStringValues() []string { + return []string{ + "ATTACHED", + "DETACHING", + "DETACHED", + } +} + +// GetMappingFileSystemCloneAttachStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFileSystemCloneAttachStatusEnum(val string) (FileSystemCloneAttachStatusEnum, bool) { + enum, ok := mappingFileSystemCloneAttachStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system_summary.go index 71c95027312..d1a07495457 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system_summary.go @@ -77,6 +77,9 @@ type FileSystemSummary struct { // Additional information about the current 'lifecycleState'. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // Specifies whether the file system is attached to its parent file system. + CloneAttachStatus FileSystemSummaryCloneAttachStatusEnum `mandatory:"false" json:"cloneAttachStatus,omitempty"` } func (m FileSystemSummary) String() string { @@ -92,6 +95,9 @@ func (m FileSystemSummary) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetFileSystemSummaryLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingFileSystemSummaryCloneAttachStatusEnum(string(m.CloneAttachStatus)); !ok && m.CloneAttachStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CloneAttachStatus: %s. Supported values are: %s.", m.CloneAttachStatus, strings.Join(GetFileSystemSummaryCloneAttachStatusEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -105,6 +111,7 @@ type FileSystemSummaryLifecycleStateEnum string const ( FileSystemSummaryLifecycleStateCreating FileSystemSummaryLifecycleStateEnum = "CREATING" FileSystemSummaryLifecycleStateActive FileSystemSummaryLifecycleStateEnum = "ACTIVE" + FileSystemSummaryLifecycleStateUpdating FileSystemSummaryLifecycleStateEnum = "UPDATING" FileSystemSummaryLifecycleStateDeleting FileSystemSummaryLifecycleStateEnum = "DELETING" FileSystemSummaryLifecycleStateDeleted FileSystemSummaryLifecycleStateEnum = "DELETED" FileSystemSummaryLifecycleStateFailed FileSystemSummaryLifecycleStateEnum = "FAILED" @@ -113,6 +120,7 @@ const ( var mappingFileSystemSummaryLifecycleStateEnum = map[string]FileSystemSummaryLifecycleStateEnum{ "CREATING": FileSystemSummaryLifecycleStateCreating, "ACTIVE": FileSystemSummaryLifecycleStateActive, + "UPDATING": FileSystemSummaryLifecycleStateUpdating, "DELETING": FileSystemSummaryLifecycleStateDeleting, "DELETED": FileSystemSummaryLifecycleStateDeleted, "FAILED": FileSystemSummaryLifecycleStateFailed, @@ -121,6 +129,7 @@ var mappingFileSystemSummaryLifecycleStateEnum = map[string]FileSystemSummaryLif var mappingFileSystemSummaryLifecycleStateEnumLowerCase = map[string]FileSystemSummaryLifecycleStateEnum{ "creating": FileSystemSummaryLifecycleStateCreating, "active": FileSystemSummaryLifecycleStateActive, + "updating": FileSystemSummaryLifecycleStateUpdating, "deleting": FileSystemSummaryLifecycleStateDeleting, "deleted": FileSystemSummaryLifecycleStateDeleted, "failed": FileSystemSummaryLifecycleStateFailed, @@ -140,6 +149,7 @@ func GetFileSystemSummaryLifecycleStateEnumStringValues() []string { return []string{ "CREATING", "ACTIVE", + "UPDATING", "DELETING", "DELETED", "FAILED", @@ -151,3 +161,49 @@ func GetMappingFileSystemSummaryLifecycleStateEnum(val string) (FileSystemSummar enum, ok := mappingFileSystemSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// FileSystemSummaryCloneAttachStatusEnum Enum with underlying type: string +type FileSystemSummaryCloneAttachStatusEnum string + +// Set of constants representing the allowable values for FileSystemSummaryCloneAttachStatusEnum +const ( + FileSystemSummaryCloneAttachStatusAttached FileSystemSummaryCloneAttachStatusEnum = "ATTACHED" + FileSystemSummaryCloneAttachStatusDetaching FileSystemSummaryCloneAttachStatusEnum = "DETACHING" + FileSystemSummaryCloneAttachStatusDetached FileSystemSummaryCloneAttachStatusEnum = "DETACHED" +) + +var mappingFileSystemSummaryCloneAttachStatusEnum = map[string]FileSystemSummaryCloneAttachStatusEnum{ + "ATTACHED": FileSystemSummaryCloneAttachStatusAttached, + "DETACHING": FileSystemSummaryCloneAttachStatusDetaching, + "DETACHED": FileSystemSummaryCloneAttachStatusDetached, +} + +var mappingFileSystemSummaryCloneAttachStatusEnumLowerCase = map[string]FileSystemSummaryCloneAttachStatusEnum{ + "attached": FileSystemSummaryCloneAttachStatusAttached, + "detaching": FileSystemSummaryCloneAttachStatusDetaching, + "detached": FileSystemSummaryCloneAttachStatusDetached, +} + +// GetFileSystemSummaryCloneAttachStatusEnumValues Enumerates the set of values for FileSystemSummaryCloneAttachStatusEnum +func GetFileSystemSummaryCloneAttachStatusEnumValues() []FileSystemSummaryCloneAttachStatusEnum { + values := make([]FileSystemSummaryCloneAttachStatusEnum, 0) + for _, v := range mappingFileSystemSummaryCloneAttachStatusEnum { + values = append(values, v) + } + return values +} + +// GetFileSystemSummaryCloneAttachStatusEnumStringValues Enumerates the set of values in String for FileSystemSummaryCloneAttachStatusEnum +func GetFileSystemSummaryCloneAttachStatusEnumStringValues() []string { + return []string{ + "ATTACHED", + "DETACHING", + "DETACHED", + } +} + +// GetMappingFileSystemSummaryCloneAttachStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFileSystemSummaryCloneAttachStatusEnum(val string) (FileSystemSummaryCloneAttachStatusEnum, bool) { + enum, ok := mappingFileSystemSummaryCloneAttachStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filestorage_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filestorage_client.go index ea1a3d4726a..624162681af 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filestorage_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filestorage_client.go @@ -1370,6 +1370,63 @@ func (client FileStorageClient) deleteSnapshot(ctx context.Context, request comm return response, err } +// DetachClone Detaches the file system from its parent file system +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/filestorage/DetachClone.go.html to see an example of how to use DetachClone API. +func (client FileStorageClient) DetachClone(ctx context.Context, request DetachCloneRequest) (response DetachCloneResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.detachClone, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DetachCloneResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DetachCloneResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DetachCloneResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DetachCloneResponse") + } + return +} + +// detachClone implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) detachClone(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/detachClone", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DetachCloneResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/DetachClone" + err = common.PostProcessServiceError(err, "FileStorage", "DetachClone", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // EstimateReplication Provides estimates for replication created using specific file system. // // # See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_export_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_export_sets_request_response.go index a20ade7b3bf..687d6671211 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_export_sets_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_export_sets_request_response.go @@ -154,6 +154,7 @@ type ListExportSetsLifecycleStateEnum string const ( ListExportSetsLifecycleStateCreating ListExportSetsLifecycleStateEnum = "CREATING" ListExportSetsLifecycleStateActive ListExportSetsLifecycleStateEnum = "ACTIVE" + ListExportSetsLifecycleStateUpdating ListExportSetsLifecycleStateEnum = "UPDATING" ListExportSetsLifecycleStateDeleting ListExportSetsLifecycleStateEnum = "DELETING" ListExportSetsLifecycleStateDeleted ListExportSetsLifecycleStateEnum = "DELETED" ListExportSetsLifecycleStateFailed ListExportSetsLifecycleStateEnum = "FAILED" @@ -162,6 +163,7 @@ const ( var mappingListExportSetsLifecycleStateEnum = map[string]ListExportSetsLifecycleStateEnum{ "CREATING": ListExportSetsLifecycleStateCreating, "ACTIVE": ListExportSetsLifecycleStateActive, + "UPDATING": ListExportSetsLifecycleStateUpdating, "DELETING": ListExportSetsLifecycleStateDeleting, "DELETED": ListExportSetsLifecycleStateDeleted, "FAILED": ListExportSetsLifecycleStateFailed, @@ -170,6 +172,7 @@ var mappingListExportSetsLifecycleStateEnum = map[string]ListExportSetsLifecycle var mappingListExportSetsLifecycleStateEnumLowerCase = map[string]ListExportSetsLifecycleStateEnum{ "creating": ListExportSetsLifecycleStateCreating, "active": ListExportSetsLifecycleStateActive, + "updating": ListExportSetsLifecycleStateUpdating, "deleting": ListExportSetsLifecycleStateDeleting, "deleted": ListExportSetsLifecycleStateDeleted, "failed": ListExportSetsLifecycleStateFailed, @@ -189,6 +192,7 @@ func GetListExportSetsLifecycleStateEnumStringValues() []string { return []string{ "CREATING", "ACTIVE", + "UPDATING", "DELETING", "DELETED", "FAILED", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_exports_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_exports_request_response.go index 84e1aac0264..d140c63d0fe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_exports_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_exports_request_response.go @@ -152,6 +152,7 @@ type ListExportsLifecycleStateEnum string const ( ListExportsLifecycleStateCreating ListExportsLifecycleStateEnum = "CREATING" ListExportsLifecycleStateActive ListExportsLifecycleStateEnum = "ACTIVE" + ListExportsLifecycleStateUpdating ListExportsLifecycleStateEnum = "UPDATING" ListExportsLifecycleStateDeleting ListExportsLifecycleStateEnum = "DELETING" ListExportsLifecycleStateDeleted ListExportsLifecycleStateEnum = "DELETED" ListExportsLifecycleStateFailed ListExportsLifecycleStateEnum = "FAILED" @@ -160,6 +161,7 @@ const ( var mappingListExportsLifecycleStateEnum = map[string]ListExportsLifecycleStateEnum{ "CREATING": ListExportsLifecycleStateCreating, "ACTIVE": ListExportsLifecycleStateActive, + "UPDATING": ListExportsLifecycleStateUpdating, "DELETING": ListExportsLifecycleStateDeleting, "DELETED": ListExportsLifecycleStateDeleted, "FAILED": ListExportsLifecycleStateFailed, @@ -168,6 +170,7 @@ var mappingListExportsLifecycleStateEnum = map[string]ListExportsLifecycleStateE var mappingListExportsLifecycleStateEnumLowerCase = map[string]ListExportsLifecycleStateEnum{ "creating": ListExportsLifecycleStateCreating, "active": ListExportsLifecycleStateActive, + "updating": ListExportsLifecycleStateUpdating, "deleting": ListExportsLifecycleStateDeleting, "deleted": ListExportsLifecycleStateDeleted, "failed": ListExportsLifecycleStateFailed, @@ -187,6 +190,7 @@ func GetListExportsLifecycleStateEnumStringValues() []string { return []string{ "CREATING", "ACTIVE", + "UPDATING", "DELETING", "DELETED", "FAILED", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_file_systems_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_file_systems_request_response.go index bed1d84973e..ffc8658b03f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_file_systems_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_file_systems_request_response.go @@ -164,6 +164,7 @@ type ListFileSystemsLifecycleStateEnum string const ( ListFileSystemsLifecycleStateCreating ListFileSystemsLifecycleStateEnum = "CREATING" ListFileSystemsLifecycleStateActive ListFileSystemsLifecycleStateEnum = "ACTIVE" + ListFileSystemsLifecycleStateUpdating ListFileSystemsLifecycleStateEnum = "UPDATING" ListFileSystemsLifecycleStateDeleting ListFileSystemsLifecycleStateEnum = "DELETING" ListFileSystemsLifecycleStateDeleted ListFileSystemsLifecycleStateEnum = "DELETED" ListFileSystemsLifecycleStateFailed ListFileSystemsLifecycleStateEnum = "FAILED" @@ -172,6 +173,7 @@ const ( var mappingListFileSystemsLifecycleStateEnum = map[string]ListFileSystemsLifecycleStateEnum{ "CREATING": ListFileSystemsLifecycleStateCreating, "ACTIVE": ListFileSystemsLifecycleStateActive, + "UPDATING": ListFileSystemsLifecycleStateUpdating, "DELETING": ListFileSystemsLifecycleStateDeleting, "DELETED": ListFileSystemsLifecycleStateDeleted, "FAILED": ListFileSystemsLifecycleStateFailed, @@ -180,6 +182,7 @@ var mappingListFileSystemsLifecycleStateEnum = map[string]ListFileSystemsLifecyc var mappingListFileSystemsLifecycleStateEnumLowerCase = map[string]ListFileSystemsLifecycleStateEnum{ "creating": ListFileSystemsLifecycleStateCreating, "active": ListFileSystemsLifecycleStateActive, + "updating": ListFileSystemsLifecycleStateUpdating, "deleting": ListFileSystemsLifecycleStateDeleting, "deleted": ListFileSystemsLifecycleStateDeleted, "failed": ListFileSystemsLifecycleStateFailed, @@ -199,6 +202,7 @@ func GetListFileSystemsLifecycleStateEnumStringValues() []string { return []string{ "CREATING", "ACTIVE", + "UPDATING", "DELETING", "DELETED", "FAILED", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_mount_targets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_mount_targets_request_response.go index 903c4c8f045..16e85ec4c31 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_mount_targets_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_mount_targets_request_response.go @@ -157,6 +157,7 @@ type ListMountTargetsLifecycleStateEnum string const ( ListMountTargetsLifecycleStateCreating ListMountTargetsLifecycleStateEnum = "CREATING" ListMountTargetsLifecycleStateActive ListMountTargetsLifecycleStateEnum = "ACTIVE" + ListMountTargetsLifecycleStateUpdating ListMountTargetsLifecycleStateEnum = "UPDATING" ListMountTargetsLifecycleStateDeleting ListMountTargetsLifecycleStateEnum = "DELETING" ListMountTargetsLifecycleStateDeleted ListMountTargetsLifecycleStateEnum = "DELETED" ListMountTargetsLifecycleStateFailed ListMountTargetsLifecycleStateEnum = "FAILED" @@ -165,6 +166,7 @@ const ( var mappingListMountTargetsLifecycleStateEnum = map[string]ListMountTargetsLifecycleStateEnum{ "CREATING": ListMountTargetsLifecycleStateCreating, "ACTIVE": ListMountTargetsLifecycleStateActive, + "UPDATING": ListMountTargetsLifecycleStateUpdating, "DELETING": ListMountTargetsLifecycleStateDeleting, "DELETED": ListMountTargetsLifecycleStateDeleted, "FAILED": ListMountTargetsLifecycleStateFailed, @@ -173,6 +175,7 @@ var mappingListMountTargetsLifecycleStateEnum = map[string]ListMountTargetsLifec var mappingListMountTargetsLifecycleStateEnumLowerCase = map[string]ListMountTargetsLifecycleStateEnum{ "creating": ListMountTargetsLifecycleStateCreating, "active": ListMountTargetsLifecycleStateActive, + "updating": ListMountTargetsLifecycleStateUpdating, "deleting": ListMountTargetsLifecycleStateDeleting, "deleted": ListMountTargetsLifecycleStateDeleted, "failed": ListMountTargetsLifecycleStateFailed, @@ -192,6 +195,7 @@ func GetListMountTargetsLifecycleStateEnumStringValues() []string { return []string{ "CREATING", "ACTIVE", + "UPDATING", "DELETING", "DELETED", "FAILED", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_outbound_connectors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_outbound_connectors_request_response.go index ae62304ddcd..b49248ef7d5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_outbound_connectors_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_outbound_connectors_request_response.go @@ -154,6 +154,7 @@ type ListOutboundConnectorsLifecycleStateEnum string const ( ListOutboundConnectorsLifecycleStateCreating ListOutboundConnectorsLifecycleStateEnum = "CREATING" ListOutboundConnectorsLifecycleStateActive ListOutboundConnectorsLifecycleStateEnum = "ACTIVE" + ListOutboundConnectorsLifecycleStateUpdating ListOutboundConnectorsLifecycleStateEnum = "UPDATING" ListOutboundConnectorsLifecycleStateDeleting ListOutboundConnectorsLifecycleStateEnum = "DELETING" ListOutboundConnectorsLifecycleStateDeleted ListOutboundConnectorsLifecycleStateEnum = "DELETED" ListOutboundConnectorsLifecycleStateFailed ListOutboundConnectorsLifecycleStateEnum = "FAILED" @@ -162,6 +163,7 @@ const ( var mappingListOutboundConnectorsLifecycleStateEnum = map[string]ListOutboundConnectorsLifecycleStateEnum{ "CREATING": ListOutboundConnectorsLifecycleStateCreating, "ACTIVE": ListOutboundConnectorsLifecycleStateActive, + "UPDATING": ListOutboundConnectorsLifecycleStateUpdating, "DELETING": ListOutboundConnectorsLifecycleStateDeleting, "DELETED": ListOutboundConnectorsLifecycleStateDeleted, "FAILED": ListOutboundConnectorsLifecycleStateFailed, @@ -170,6 +172,7 @@ var mappingListOutboundConnectorsLifecycleStateEnum = map[string]ListOutboundCon var mappingListOutboundConnectorsLifecycleStateEnumLowerCase = map[string]ListOutboundConnectorsLifecycleStateEnum{ "creating": ListOutboundConnectorsLifecycleStateCreating, "active": ListOutboundConnectorsLifecycleStateActive, + "updating": ListOutboundConnectorsLifecycleStateUpdating, "deleting": ListOutboundConnectorsLifecycleStateDeleting, "deleted": ListOutboundConnectorsLifecycleStateDeleted, "failed": ListOutboundConnectorsLifecycleStateFailed, @@ -189,6 +192,7 @@ func GetListOutboundConnectorsLifecycleStateEnumStringValues() []string { return []string{ "CREATING", "ACTIVE", + "UPDATING", "DELETING", "DELETED", "FAILED", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replication_targets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replication_targets_request_response.go index 7799d060819..f0955421183 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replication_targets_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replication_targets_request_response.go @@ -154,6 +154,7 @@ type ListReplicationTargetsLifecycleStateEnum string const ( ListReplicationTargetsLifecycleStateCreating ListReplicationTargetsLifecycleStateEnum = "CREATING" ListReplicationTargetsLifecycleStateActive ListReplicationTargetsLifecycleStateEnum = "ACTIVE" + ListReplicationTargetsLifecycleStateUpdating ListReplicationTargetsLifecycleStateEnum = "UPDATING" ListReplicationTargetsLifecycleStateDeleting ListReplicationTargetsLifecycleStateEnum = "DELETING" ListReplicationTargetsLifecycleStateDeleted ListReplicationTargetsLifecycleStateEnum = "DELETED" ListReplicationTargetsLifecycleStateFailed ListReplicationTargetsLifecycleStateEnum = "FAILED" @@ -162,6 +163,7 @@ const ( var mappingListReplicationTargetsLifecycleStateEnum = map[string]ListReplicationTargetsLifecycleStateEnum{ "CREATING": ListReplicationTargetsLifecycleStateCreating, "ACTIVE": ListReplicationTargetsLifecycleStateActive, + "UPDATING": ListReplicationTargetsLifecycleStateUpdating, "DELETING": ListReplicationTargetsLifecycleStateDeleting, "DELETED": ListReplicationTargetsLifecycleStateDeleted, "FAILED": ListReplicationTargetsLifecycleStateFailed, @@ -170,6 +172,7 @@ var mappingListReplicationTargetsLifecycleStateEnum = map[string]ListReplication var mappingListReplicationTargetsLifecycleStateEnumLowerCase = map[string]ListReplicationTargetsLifecycleStateEnum{ "creating": ListReplicationTargetsLifecycleStateCreating, "active": ListReplicationTargetsLifecycleStateActive, + "updating": ListReplicationTargetsLifecycleStateUpdating, "deleting": ListReplicationTargetsLifecycleStateDeleting, "deleted": ListReplicationTargetsLifecycleStateDeleted, "failed": ListReplicationTargetsLifecycleStateFailed, @@ -189,6 +192,7 @@ func GetListReplicationTargetsLifecycleStateEnumStringValues() []string { return []string{ "CREATING", "ACTIVE", + "UPDATING", "DELETING", "DELETED", "FAILED", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replications_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replications_request_response.go index 4cacc7f90a2..2e865b7dee5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replications_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replications_request_response.go @@ -157,6 +157,7 @@ type ListReplicationsLifecycleStateEnum string const ( ListReplicationsLifecycleStateCreating ListReplicationsLifecycleStateEnum = "CREATING" ListReplicationsLifecycleStateActive ListReplicationsLifecycleStateEnum = "ACTIVE" + ListReplicationsLifecycleStateUpdating ListReplicationsLifecycleStateEnum = "UPDATING" ListReplicationsLifecycleStateDeleting ListReplicationsLifecycleStateEnum = "DELETING" ListReplicationsLifecycleStateDeleted ListReplicationsLifecycleStateEnum = "DELETED" ListReplicationsLifecycleStateFailed ListReplicationsLifecycleStateEnum = "FAILED" @@ -165,6 +166,7 @@ const ( var mappingListReplicationsLifecycleStateEnum = map[string]ListReplicationsLifecycleStateEnum{ "CREATING": ListReplicationsLifecycleStateCreating, "ACTIVE": ListReplicationsLifecycleStateActive, + "UPDATING": ListReplicationsLifecycleStateUpdating, "DELETING": ListReplicationsLifecycleStateDeleting, "DELETED": ListReplicationsLifecycleStateDeleted, "FAILED": ListReplicationsLifecycleStateFailed, @@ -173,6 +175,7 @@ var mappingListReplicationsLifecycleStateEnum = map[string]ListReplicationsLifec var mappingListReplicationsLifecycleStateEnumLowerCase = map[string]ListReplicationsLifecycleStateEnum{ "creating": ListReplicationsLifecycleStateCreating, "active": ListReplicationsLifecycleStateActive, + "updating": ListReplicationsLifecycleStateUpdating, "deleting": ListReplicationsLifecycleStateDeleting, "deleted": ListReplicationsLifecycleStateDeleted, "failed": ListReplicationsLifecycleStateFailed, @@ -192,6 +195,7 @@ func GetListReplicationsLifecycleStateEnumStringValues() []string { return []string{ "CREATING", "ACTIVE", + "UPDATING", "DELETING", "DELETED", "FAILED", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_snapshots_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_snapshots_request_response.go index c283b2d6ec2..1b896654fac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_snapshots_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_snapshots_request_response.go @@ -144,6 +144,7 @@ type ListSnapshotsLifecycleStateEnum string const ( ListSnapshotsLifecycleStateCreating ListSnapshotsLifecycleStateEnum = "CREATING" ListSnapshotsLifecycleStateActive ListSnapshotsLifecycleStateEnum = "ACTIVE" + ListSnapshotsLifecycleStateUpdating ListSnapshotsLifecycleStateEnum = "UPDATING" ListSnapshotsLifecycleStateDeleting ListSnapshotsLifecycleStateEnum = "DELETING" ListSnapshotsLifecycleStateDeleted ListSnapshotsLifecycleStateEnum = "DELETED" ListSnapshotsLifecycleStateFailed ListSnapshotsLifecycleStateEnum = "FAILED" @@ -152,6 +153,7 @@ const ( var mappingListSnapshotsLifecycleStateEnum = map[string]ListSnapshotsLifecycleStateEnum{ "CREATING": ListSnapshotsLifecycleStateCreating, "ACTIVE": ListSnapshotsLifecycleStateActive, + "UPDATING": ListSnapshotsLifecycleStateUpdating, "DELETING": ListSnapshotsLifecycleStateDeleting, "DELETED": ListSnapshotsLifecycleStateDeleted, "FAILED": ListSnapshotsLifecycleStateFailed, @@ -160,6 +162,7 @@ var mappingListSnapshotsLifecycleStateEnum = map[string]ListSnapshotsLifecycleSt var mappingListSnapshotsLifecycleStateEnumLowerCase = map[string]ListSnapshotsLifecycleStateEnum{ "creating": ListSnapshotsLifecycleStateCreating, "active": ListSnapshotsLifecycleStateActive, + "updating": ListSnapshotsLifecycleStateUpdating, "deleting": ListSnapshotsLifecycleStateDeleting, "deleted": ListSnapshotsLifecycleStateDeleted, "failed": ListSnapshotsLifecycleStateFailed, @@ -179,6 +182,7 @@ func GetListSnapshotsLifecycleStateEnumStringValues() []string { return []string{ "CREATING", "ACTIVE", + "UPDATING", "DELETING", "DELETED", "FAILED", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_schedule.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_schedule.go index 903e8cd74ab..e2daa3da78d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_schedule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_schedule.go @@ -40,20 +40,23 @@ type SnapshotSchedule struct { RetentionDurationInSeconds *int64 `mandatory:"false" json:"retentionDurationInSeconds"` // The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot. - // If not set, a value will be chosen at creation time. + // If not set, the system chooses a value at creation time. HourOfDay *int `mandatory:"false" json:"hourOfDay"` // The day of the week to create a scheduled snapshot. // Used for WEEKLY snapshot schedules. + // If not set, the system chooses a value at creation time. DayOfWeek SnapshotScheduleDayOfWeekEnum `mandatory:"false" json:"dayOfWeek,omitempty"` // The day of the month to create a scheduled snapshot. // If the day does not exist for the month, snapshot creation will be skipped. // Used for MONTHLY and YEARLY snapshot schedules. + // If not set, the system chooses a value at creation time. DayOfMonth *int `mandatory:"false" json:"dayOfMonth"` // The month to create a scheduled snapshot. // Used only for YEARLY snapshot schedules. + // If not set, the system chooses a value at creation time. Month SnapshotScheduleMonthEnum `mandatory:"false" json:"month,omitempty"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/action_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/action_type.go index b13d3ce38f3..84dad2355c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/action_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/action_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/add_em_managed_external_exadata_insight_members_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/add_em_managed_external_exadata_insight_members_details.go index d4dc583c3d7..7d705e46c1e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/add_em_managed_external_exadata_insight_members_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/add_em_managed_external_exadata_insight_members_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/add_exadata_insight_members_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/add_exadata_insight_members_details.go index ea36dc70245..fee9be8f7ec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/add_exadata_insight_members_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/add_exadata_insight_members_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/add_pe_comanaged_exadata_insight_members_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/add_pe_comanaged_exadata_insight_members_details.go index 2879749fbe3..edc9041322c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/add_pe_comanaged_exadata_insight_members_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/add_pe_comanaged_exadata_insight_members_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_collection.go index c23e4caa10a..309b42bd779 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_aggregation.go index 2a09e27394f..3e8c85d472b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_aggregation_collection.go index 349e74f5132..e8a7e90fff1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_category_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_category_collection.go index 7834776bad6..0613ca99528 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_category_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_category_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_category_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_category_summary.go index e329dfd8eed..767ef64e4b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_category_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_finding_category_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_findings_time_series_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_findings_time_series_collection.go index f9152aa0a97..6b2d685b874 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_findings_time_series_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_findings_time_series_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_findings_time_series_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_findings_time_series_summary.go index de67c7c370b..b7205609f9d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_findings_time_series_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_findings_time_series_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_aggregation.go index 51da4bc4fcb..73759f8752b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_aggregation_collection.go index 46553540755..3ccaf751026 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_category_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_category_collection.go index 17bc9c66dad..16f28171527 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_category_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_category_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_category_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_category_summary.go index a0a7f6c1f15..8490065fc08 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_category_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_category_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_change_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_change_aggregation.go index 093db405b19..f7ffe8e6755 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_change_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_change_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_change_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_change_aggregation_collection.go index f6cc0b00838..224d3b5cf04 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_change_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_parameter_change_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_aggregation.go index cb608fc1ccc..003ddf6e304 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_aggregation_collection.go index 71dfd10c421..c62dd47e154 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_category_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_category_collection.go index 260fd9ab419..6bbbf05e9ec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_category_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_category_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_category_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_category_summary.go index c8f085c5b33..6860f53232e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_category_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendation_category_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendations_time_series_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendations_time_series_collection.go index 783c649220d..ecef4998bae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendations_time_series_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendations_time_series_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendations_time_series_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendations_time_series_summary.go index 0aaeeea7a54..5ce53474445 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendations_time_series_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_recommendations_time_series_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_schema_object_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_schema_object_collection.go index 4f4a95b7dfb..4cc923fd73a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_schema_object_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_schema_object_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_schema_object_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_schema_object_summary.go index 71982be6098..6bd1b5d425a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_schema_object_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_schema_object_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_sql_statement_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_sql_statement_collection.go index d6803482d5a..d51d636fda4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_sql_statement_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_sql_statement_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_sql_statement_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_sql_statement_summary.go index 1b5e0200df4..416ec91ca94 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_sql_statement_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_sql_statement_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_summary.go index 133637ff3b1..8a95261c440 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_db_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_report.go index 0e291056d9d..9d21b43aec7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_report.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/addm_report.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/archival_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/archival_state.go index 6570d6be092..a1d125aaaab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/archival_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/archival_state.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/autonomous_database_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/autonomous_database_configuration_summary.go index d69aa2d1647..9a26e002fc5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/autonomous_database_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/autonomous_database_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -33,7 +33,7 @@ type AutonomousDatabaseConfigurationSummary struct { // The user-friendly name for the database. The name does not have to be unique. DatabaseDisplayName *string `mandatory:"true" json:"databaseDisplayName"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"true" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/autonomous_database_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/autonomous_database_insight.go index 0e09edf33a6..5365d430322 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/autonomous_database_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/autonomous_database_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -47,7 +47,7 @@ type AutonomousDatabaseInsight struct { // OCI database resource type DatabaseResourceType *string `mandatory:"true" json:"databaseResourceType"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"false" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/autonomous_database_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/autonomous_database_insight_summary.go index bc8561e6967..c26fde2defc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/autonomous_database_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/autonomous_database_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -36,7 +36,7 @@ type AutonomousDatabaseInsightSummary struct { // The user-friendly name for the database. The name does not have to be unique. DatabaseDisplayName *string `mandatory:"false" json:"databaseDisplayName"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"false" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_collection.go index ec19730b065..46b20351a78 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_cpu_usage_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_cpu_usage_collection.go index 3fd251455d9..bd9f90c8a69 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_cpu_usage_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_cpu_usage_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_cpu_usage_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_cpu_usage_summary.go index 530303088c6..3d1fac8a5c4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_cpu_usage_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_cpu_usage_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_metric_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_metric_collection.go index c415694c88b..725420c6524 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_metric_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_metric_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_metric_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_metric_summary.go index 6d1df3d95e9..c22cc489cd9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_metric_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_metric_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_change_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_change_collection.go index b0a0c49105e..a9d4c71950b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_change_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_change_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_change_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_change_summary.go index c2cf50f8155..e997e104a32 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_change_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_change_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_collection.go index 960f40f2577..00719a36570 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_summary.go index a6ceecf99b0..6d00bf282e1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_parameter_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_report.go index 975de052ff5..50e6a378fee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_report.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_report.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_collection.go index 815b4786aba..e6d58e9a9f2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_range_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_range_collection.go index 4c593d98ed1..91450b4a6c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_range_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_range_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_range_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_range_summary.go index 5acfdeac461..e4933e3e7f3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_range_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_range_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_summary.go index 6d9d55bd090..517c1414496 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_snapshot_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_sql_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_sql_report.go index 4d6fd35d207..0a62d08a042 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_sql_report.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_sql_report.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_summary.go index 2ad95a67f8c..1c5922f71a1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_sysstat_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_sysstat_collection.go index 4dab6809bdc..41601125c63 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_sysstat_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_sysstat_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_sysstat_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_sysstat_summary.go index e0baaf83156..b3e821dc41e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_sysstat_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_sysstat_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_top_wait_event_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_top_wait_event_collection.go index 676175223e3..39e6f7cb6b7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_top_wait_event_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_top_wait_event_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_top_wait_event_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_top_wait_event_summary.go index 806e3316539..f68f7efe4f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_top_wait_event_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_top_wait_event_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_bucket_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_bucket_collection.go index 500a36111b4..323700dcacd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_bucket_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_bucket_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_bucket_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_bucket_summary.go index aa857fed1d5..330550edcd7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_bucket_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_bucket_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_collection.go index 491b437040d..0520b66ced5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_summary.go index 750bd40da3f..5cefaa1fede 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_database_wait_event_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub.go index e96f0975f3e..c9dce5281ff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_lifecycle_state.go index 20aa31d5710..bfa78677ba1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_lifecycle_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_lifecycle_state.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_objects.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_objects.go index 1e926284aa6..0c6268d1d27 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_objects.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_objects.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source.go index a27b1a3df60..f6ea2c856a9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_lifecycle_state.go index f0d75938817..457aabdacfd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_lifecycle_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_lifecycle_state.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_status.go index 4fe203b3441..3370c7d814a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_status.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_status.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_summary.go index 2fd77556223..eeb38979879 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_summary_collection.go index 2720714b19a..72f0671bae6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_summary_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_summary_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_type.go index ba8e54e350c..920aeddaeb3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_source_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_sources.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_sources.go index bcdd514ffb4..5e4a27343f0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_sources.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_sources.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_summary.go index c9400d5bdd0..19e0b4f8de8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_summary_collection.go index 646b54ad5a0..c9c5463e0ba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_summary_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hub_summary_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hubs.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hubs.go index 5685cb5f0bb..3de945ab282 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hubs.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_hubs.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_query_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_query_result.go index cfbf4ab7922..42720a56f7b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_query_result.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_query_result.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_report.go index 96a34fb0bd3..db1e68130a9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_report.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_report.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_report_format_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_report_format_type.go index 95b65d6aad0..ab49f401daa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_report_format_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_report_format_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_snapshot_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_snapshot_collection.go index b804e306ed9..00af293ed3a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_snapshot_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_snapshot_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_snapshot_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_snapshot_summary.go index 26d7e241116..6eb2318c6a0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_snapshot_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_snapshot_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_source_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_source_summary.go index 3cfecb9e4f5..706ee55c676 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_source_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/awr_source_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/basic_configuration_item_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/basic_configuration_item_metadata.go index fb73e5258a2..e4c523c1134 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/basic_configuration_item_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/basic_configuration_item_metadata.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/basic_configuration_item_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/basic_configuration_item_summary.go index 925701544dc..60d196ac961 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/basic_configuration_item_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/basic_configuration_item_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -20,7 +20,7 @@ import ( // BasicConfigurationItemSummary Basic configuration item summary. // Value field contain the most preferred value for the specified scope (compartmentId), which could be from any of the ConfigurationItemValueSourceConfigurationType. -// Default value field contains the default value from Operations Insights. +// Default value field contains the default value from Ops Insights. type BasicConfigurationItemSummary struct { // Name of configuration item. @@ -32,7 +32,7 @@ type BasicConfigurationItemSummary struct { // Value of configuration item. DefaultValue *string `mandatory:"false" json:"defaultValue"` - // List of contexts in Operations Insights where this configuration item is applicable. + // List of contexts in Ops Insights where this configuration item is applicable. ApplicableContexts []string `mandatory:"false" json:"applicableContexts"` Metadata ConfigurationItemMetadata `mandatory:"false" json:"metadata"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_autonomous_database_insight_advanced_features_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_autonomous_database_insight_advanced_features_details.go index cbde7bd3100..e575704ec7e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_autonomous_database_insight_advanced_features_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_autonomous_database_insight_advanced_features_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_awr_hub_source_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_awr_hub_source_compartment_details.go index 7050f8666aa..2aef5594d81 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_awr_hub_source_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_awr_hub_source_compartment_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_database_insight_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_database_insight_compartment_details.go index 45c8ecc2fab..85fc99ca40d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_database_insight_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_database_insight_compartment_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_enterprise_manager_bridge_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_enterprise_manager_bridge_compartment_details.go index ace74a3a3ea..3da528c8013 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_enterprise_manager_bridge_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_enterprise_manager_bridge_compartment_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_exadata_insight_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_exadata_insight_compartment_details.go index 72f189c4e7a..12e33a6dcde 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_exadata_insight_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_exadata_insight_compartment_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_host_insight_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_host_insight_compartment_details.go index 350a6aff2be..2bb39464ea5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_host_insight_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_host_insight_compartment_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go index 8290ada5bb0..6dcf0812bbb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_news_report_compartment_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_operations_insights_private_endpoint_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_operations_insights_private_endpoint_compartment_details.go index ddc30d31e45..e92b1eac512 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_operations_insights_private_endpoint_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_operations_insights_private_endpoint_compartment_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_operations_insights_warehouse_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_operations_insights_warehouse_compartment_details.go index 7c377ae325d..db856a9067b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_operations_insights_warehouse_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_operations_insights_warehouse_compartment_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_operations_insights_warehouse_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_operations_insights_warehouse_compartment_request_response.go index 1c4d32e2f84..dd2eae543ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_operations_insights_warehouse_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_operations_insights_warehouse_compartment_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/ChangeOperationsInsightsWarehouseCompartment.go.html to see an example of how to use ChangeOperationsInsightsWarehouseCompartmentRequest. type ChangeOperationsInsightsWarehouseCompartmentRequest struct { - // Unique Operations Insights Warehouse identifier + // Unique Ops Insights Warehouse identifier OperationsInsightsWarehouseId *string `mandatory:"true" contributesTo:"path" name:"operationsInsightsWarehouseId"` // The information to be updated. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_opsi_configuration_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_opsi_configuration_compartment_details.go index a7e7fcf4ab7..577bc3266c7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_opsi_configuration_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_opsi_configuration_compartment_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_pe_comanaged_database_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_pe_comanaged_database_insight_details.go index 043fbd1d2a4..fea0861fb00 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_pe_comanaged_database_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/change_pe_comanaged_database_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/cloud_importable_compute_entity_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/cloud_importable_compute_entity_summary.go index 21b80284527..6fb3527f8ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/cloud_importable_compute_entity_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/cloud_importable_compute_entity_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_allowed_value_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_allowed_value_details.go index d74796970f6..d7d7f1ce552 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_allowed_value_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_allowed_value_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_allowed_value_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_allowed_value_type.go index d5a20bb0975..d90b8493269 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_allowed_value_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_allowed_value_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_free_text_allowed_value_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_free_text_allowed_value_details.go index bd3857338df..32785f7a932 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_free_text_allowed_value_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_free_text_allowed_value_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_limit_allowed_value_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_limit_allowed_value_details.go index ad7181caf4d..b6d239e964c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_limit_allowed_value_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_limit_allowed_value_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_metadata.go index 8e1eb39f296..2aefdc72a6a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_metadata.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_pick_allowed_value_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_pick_allowed_value_details.go index e4080635d01..ebf4244c927 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_pick_allowed_value_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_pick_allowed_value_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_summary.go index 28857f043fa..f105791d4fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_type.go index 3a305160f14..1d306467446 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_unit_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_unit_details.go index 8dc75460363..9fbc8b36266 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_unit_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_unit_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_value_source_configuration_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_value_source_configuration_type.go index 1f2d76b1893..90b8beefd97 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_value_source_configuration_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_item_value_source_configuration_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_items_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_items_collection.go index 78524e6d6cc..5791557e878 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_items_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/configuration_items_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/connection_details.go index 77851f8ff3c..8ba622dd1de 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/connection_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_awr_hub_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_awr_hub_details.go index 156dae964b0..10a90ab6356 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_awr_hub_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_awr_hub_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_awr_hub_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_awr_hub_source_details.go index aa9a005ec8b..ca7c93632a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_awr_hub_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_awr_hub_source_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_basic_configuration_item_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_basic_configuration_item_details.go index 348041b22d5..6a28dab7d38 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_basic_configuration_item_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_basic_configuration_item_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_configuration_item_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_configuration_item_details.go index 2f0d507caa6..c490e7ef58a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_configuration_item_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_configuration_item_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_database_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_database_insight_details.go index 514b89f89e9..ca5b29da8b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_database_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_database_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_database_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_database_insight_details.go index 250e287347a..025a0885793 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_database_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_database_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_exadata_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_exadata_insight_details.go index 560b527a3bc..63211770a80 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_exadata_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_exadata_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_exadata_member_entity_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_exadata_member_entity_details.go index f0f39301da7..8d5ef1d65b9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_exadata_member_entity_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_exadata_member_entity_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_host_insight_details.go index 390909845ba..c42fe63d5c9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_em_managed_external_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_enterprise_manager_bridge_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_enterprise_manager_bridge_details.go index a67553df433..557910ebae3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_enterprise_manager_bridge_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_enterprise_manager_bridge_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_exadata_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_exadata_insight_details.go index 7858a0f9f4e..16097ee2283 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_exadata_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_exadata_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_host_insight_details.go index 31457b5e0ad..88422e2967d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_host_insight_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_host_insight_request_response.go index b35c226a1e9..aeab92d3fb1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_host_insight_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_host_insight_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/CreateHostInsight.go.html to see an example of how to use CreateHostInsightRequest. type CreateHostInsightRequest struct { - // Details for the host for which a Host Insight resource will be created in Operations Insights. + // Details for the host for which a Host Insight resource will be created in Ops Insights. CreateHostInsightDetails `contributesTo:"body"` // A token that uniquely identifies a request that can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_macs_managed_cloud_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_macs_managed_cloud_host_insight_details.go index d1d02b5e24b..a2011c59f85 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_macs_managed_cloud_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_macs_managed_cloud_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_macs_managed_external_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_macs_managed_external_host_insight_details.go index fa36166719f..e51ef8d1133 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_macs_managed_external_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_macs_managed_external_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go index edfd251b9b5..55a1f5ffc06 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go index 6418a562917..fca13e8290c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_news_report_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/CreateNewsReport.go.html to see an example of how to use CreateNewsReportRequest. type CreateNewsReportRequest struct { - // Details for the news report that will be created in Operations Insights. + // Details for the news report that will be created in Ops Insights. CreateNewsReportDetails `contributesTo:"body"` // A token that uniquely identifies a request that can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_private_endpoint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_private_endpoint_details.go index fe36b64488b..25357b59658 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_private_endpoint_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_private_endpoint_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -32,7 +32,8 @@ type CreateOperationsInsightsPrivateEndpointDetails struct { // The Subnet OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Private service accessed database. SubnetId *string `mandatory:"true" json:"subnetId"` - // The flag to identify if private endpoint is used for rac database or not + // This flag was previously used to create a private endpoint with scan proxy. Setting this to true will now create a private endpoint with a + // DNS proxy causing `isProxyEnabled` flag to be true; this is used exclusively for full feature support for dedicated Autonomous Databases. IsUsedForRacDbs *bool `mandatory:"true" json:"isUsedForRacDbs"` // The description of the private endpoint. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_warehouse_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_warehouse_details.go index 9452ac80ee6..958d6c59d67 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_warehouse_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_warehouse_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -23,7 +23,7 @@ type CreateOperationsInsightsWarehouseDetails struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // User-friedly name of Operations Insights Warehouse that does not have to be unique. + // User-friedly name of Ops Insights Warehouse that does not have to be unique. DisplayName *string `mandatory:"true" json:"displayName"` // Number of OCPUs allocated to OPSI Warehouse ADW. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_warehouse_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_warehouse_request_response.go index 71dad1630eb..51370f7393e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_warehouse_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_warehouse_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/CreateOperationsInsightsWarehouse.go.html to see an example of how to use CreateOperationsInsightsWarehouseRequest. type CreateOperationsInsightsWarehouseRequest struct { - // Details using which an Operations Insights Warehouse resource will be created in Operations Insights. + // Details using which an Ops Insights Warehouse resource will be created in Ops Insights. CreateOperationsInsightsWarehouseDetails `contributesTo:"body"` // A token that uniquely identifies a request that can be retried in case of a timeout or diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_warehouse_user_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_warehouse_user_details.go index 9c570522a0d..e30aa273e53 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_warehouse_user_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_operations_insights_warehouse_user_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -26,10 +26,10 @@ type CreateOperationsInsightsWarehouseUserDetails struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // Username for schema which would have access to AWR Data, Enterprise Manager Data and Operations Insights OPSI Hub. + // Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. Name *string `mandatory:"true" json:"name"` - // User provided connection password for the AWR Data, Enterprise Manager Data and Operations Insights OPSI Hub. + // User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. ConnectionPassword *string `mandatory:"true" json:"connectionPassword"` // Indicate whether user has access to AWR data. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_opsi_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_opsi_configuration_details.go index f1e32230438..1dca7ea87cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_opsi_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_opsi_configuration_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_opsi_ux_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_opsi_ux_configuration_details.go index 7913e0ea5e3..39b11b9ddc2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_opsi_ux_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_opsi_ux_configuration_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_pe_comanaged_database_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_pe_comanaged_database_insight_details.go index 55d1158d730..2f2de8f9a65 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_pe_comanaged_database_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_pe_comanaged_database_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_pe_comanaged_exadata_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_pe_comanaged_exadata_insight_details.go index ebb42988506..2d59e6a5783 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_pe_comanaged_exadata_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_pe_comanaged_exadata_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_pe_comanaged_exadata_vmcluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_pe_comanaged_exadata_vmcluster_details.go index aaa4952f9d2..30a9293100b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_pe_comanaged_exadata_vmcluster_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/create_pe_comanaged_exadata_vmcluster_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/credential_by_vault.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/credential_by_vault.go index 0bdfd8378e0..bd683cb5f25 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/credential_by_vault.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/credential_by_vault.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/credential_details.go index 36ef171c201..8a35631af14 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/credential_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -18,7 +18,7 @@ import ( "strings" ) -// CredentialDetails User credential details to connect to the database. This is supplied via the External Database Service. +// CredentialDetails User credential details to connect to the database. type CredentialDetails interface { // Credential source name that had been added in Management Agent wallet. This is supplied in the External Database Service. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/credentials_by_source.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/credentials_by_source.go index 219a74af4ee..e305ff139f9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/credentials_by_source.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/credentials_by_source.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_bind_parameter.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_bind_parameter.go index 2ca69897564..42e532440c1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_bind_parameter.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_bind_parameter.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go index 5d5760b9050..9f3ae5a75e4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_metadata.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_unit.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_unit.go index 99535a51847..8f515d67f5b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_unit.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_column_unit.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_core_column_unit.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_core_column_unit.go index 334301b25c3..7c7089e7bb6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_core_column_unit.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_core_column_unit.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_custom_column_unit.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_custom_column_unit.go index 47b004b3442..d4a40abcbe3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_custom_column_unit.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_custom_column_unit.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_data_size_column_unit.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_data_size_column_unit.go index e62a3519ea0..5f272762e8d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_data_size_column_unit.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_data_size_column_unit.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_frequency_column_unit.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_frequency_column_unit.go index 6532dacef7a..56876911549 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_frequency_column_unit.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_frequency_column_unit.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_other_standard_column_unit.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_other_standard_column_unit.go index 3f2009a1cb1..49a68d88ab1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_other_standard_column_unit.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_other_standard_column_unit.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_power_column_unit.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_power_column_unit.go index f1fcdfa7703..4fdd38c9562 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_power_column_unit.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_power_column_unit.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_query.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_query.go index cddabe9ab47..b00e3a08842 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_query.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_query.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_query_time_filters.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_query_time_filters.go index f944107dac7..f3ad5953ea5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_query_time_filters.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_query_time_filters.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_rate_column_unit.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_rate_column_unit.go index 678ff08896d..01bb2b7f035 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_rate_column_unit.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_rate_column_unit.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_standard_query.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_standard_query.go index 0659f720543..1412f8619b0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_standard_query.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_standard_query.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_temperature_column_unit.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_temperature_column_unit.go index f8d766b2b64..ce657e71dd0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_temperature_column_unit.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_temperature_column_unit.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_templatized_query.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_templatized_query.go index 3e0f8704b82..85480eab6cb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_templatized_query.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_templatized_query.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_time_column_unit.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_time_column_unit.go index aae12b647b6..47dd800fe7f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_time_column_unit.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_time_column_unit.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_type.go index 678a2c3b2ad..5d77b074684 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/data_object_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database.go index fe059de7463..89c8da06836 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_configuration_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_configuration_collection.go index e4b5a12caf1..954b2481dc9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_configuration_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_configuration_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_configuration_metric_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_configuration_metric_group.go index 7226115e606..56c0fc2347f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_configuration_metric_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_configuration_metric_group.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_configuration_summary.go index 6011f7a2a7b..f58aa02306c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -33,7 +33,7 @@ type DatabaseConfigurationSummary interface { // The user-friendly name for the database. The name does not have to be unique. GetDatabaseDisplayName() *string - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. GetDatabaseType() *string // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_details.go index 70da87b35a0..e684d9f7ff5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -32,7 +32,7 @@ type DatabaseDetails struct { // The database name. The database name is unique within the tenancy. DatabaseName *string `mandatory:"true" json:"databaseName"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"true" json:"databaseType"` // The user-friendly name for the database. The name does not have to be unique. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_entity_source.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_entity_source.go index 2ae292443d1..2779a04919c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_entity_source.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_entity_source.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_entity_source_all.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_entity_source_all.go index fdb8360ce84..98bdad61df8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_entity_source_all.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_entity_source_all.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insight.go index b4af93209fa..3e76c2dfd7e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -44,7 +44,7 @@ type DatabaseInsight interface { // The current state of the database. GetLifecycleState() LifecycleStateEnum - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. GetDatabaseType() *string // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insight_summary.go index 0e970f358a5..dc134666be5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -36,7 +36,7 @@ type DatabaseInsightSummary interface { // The user-friendly name for the database. The name does not have to be unique. GetDatabaseDisplayName() *string - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. GetDatabaseType() *string // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights.go index 4f378d068c4..6f5d74328ba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights_collection.go index 287f1b9fb61..4bef79498de 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights_data_object.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights_data_object.go index 357a151f435..94ffd33b01c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights_data_object.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights_data_object.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights_data_object_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights_data_object_summary.go index 96aeb56ba47..12677503367 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights_data_object_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_insights_data_object_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_parameter_type_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_parameter_type_details.go index 08d083b2ee5..806ef06d0c5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_parameter_type_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/database_parameter_type_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/day_of_week.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/day_of_week.go index 5fc954f55c2..9f62bb6606e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/day_of_week.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/day_of_week.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/db_external_instance.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/db_external_instance.go index 64546a50fb5..95f211cc9b8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/db_external_instance.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/db_external_instance.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/db_external_properties.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/db_external_properties.go index 0cf3304391d..fe4e0d25c9a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/db_external_properties.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/db_external_properties.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/db_parameters.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/db_parameters.go index 5c2e4672bc9..ceb76a485ea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/db_parameters.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/db_parameters.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/dbos_config_instance.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/dbos_config_instance.go index eae1d053e7e..8c68739056d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/dbos_config_instance.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/dbos_config_instance.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_operations_insights_warehouse_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_operations_insights_warehouse_request_response.go index e6f2a9249d0..de59a60eed6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_operations_insights_warehouse_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/delete_operations_insights_warehouse_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/DeleteOperationsInsightsWarehouse.go.html to see an example of how to use DeleteOperationsInsightsWarehouseRequest. type DeleteOperationsInsightsWarehouseRequest struct { - // Unique Operations Insights Warehouse identifier + // Unique Ops Insights Warehouse identifier OperationsInsightsWarehouseId *string `mandatory:"true" contributesTo:"path" name:"operationsInsightsWarehouseId"` // Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/disk_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/disk_group.go index 47b1d6c33e8..2b1999091a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/disk_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/disk_group.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/disk_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/disk_group_details.go index 1dc64e1782e..e87987cada0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/disk_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/disk_group_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/disk_statistics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/disk_statistics.go index 467fd754934..9285972e55d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/disk_statistics.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/disk_statistics.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/download_operations_insights_warehouse_wallet_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/download_operations_insights_warehouse_wallet_details.go index 548e4d4c253..e2920e56aff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/download_operations_insights_warehouse_wallet_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/download_operations_insights_warehouse_wallet_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -20,7 +20,7 @@ import ( // DownloadOperationsInsightsWarehouseWalletDetails Download Wallet details. type DownloadOperationsInsightsWarehouseWalletDetails struct { - // User provided ADW wallet password for the Operations Insights Warehouse. + // User provided ADW wallet password for the Ops Insights Warehouse. OperationsInsightsWarehouseWalletPassword *string `mandatory:"true" json:"operationsInsightsWarehouseWalletPassword"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/download_operations_insights_warehouse_wallet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/download_operations_insights_warehouse_wallet_request_response.go index 9a4b4996c67..ab4c828c20f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/download_operations_insights_warehouse_wallet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/download_operations_insights_warehouse_wallet_request_response.go @@ -19,7 +19,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/DownloadOperationsInsightsWarehouseWallet.go.html to see an example of how to use DownloadOperationsInsightsWarehouseWalletRequest. type DownloadOperationsInsightsWarehouseWalletRequest struct { - // Unique Operations Insights Warehouse identifier + // Unique Ops Insights Warehouse identifier OperationsInsightsWarehouseId *string `mandatory:"true" contributesTo:"path" name:"operationsInsightsWarehouseId"` // The information to be updated. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_database_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_database_configuration_summary.go index a19b4e73be6..1c566105bc9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_database_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_database_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -33,7 +33,7 @@ type EmManagedExternalDatabaseConfigurationSummary struct { // The user-friendly name for the database. The name does not have to be unique. DatabaseDisplayName *string `mandatory:"true" json:"databaseDisplayName"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"true" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_database_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_database_insight.go index f6d50a4f6a3..507741194f1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_database_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_database_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -53,7 +53,7 @@ type EmManagedExternalDatabaseInsight struct { // OPSI Enterprise Manager Bridge OCID EnterpriseManagerBridgeId *string `mandatory:"true" json:"enterpriseManagerBridgeId"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"false" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_database_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_database_insight_summary.go index 8877fd7ef74..55b4cacfd8c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_database_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_database_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -51,7 +51,7 @@ type EmManagedExternalDatabaseInsightSummary struct { // The user-friendly name for the database. The name does not have to be unique. DatabaseDisplayName *string `mandatory:"false" json:"databaseDisplayName"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"false" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_exadata_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_exadata_insight.go index 09edf24c4f9..5baada5b13c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_exadata_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_exadata_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_exadata_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_exadata_insight_summary.go index 4035e992077..f3c445c4363 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_exadata_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_exadata_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_host_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_host_configuration_summary.go index ff2a01e9b95..44c443f4712 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_host_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_host_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_host_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_host_insight.go index 9d8ed5f3904..7a615d95993 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_host_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_host_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -59,7 +59,7 @@ type EmManagedExternalHostInsight struct { // The user-friendly name for the host. The name does not have to be unique. HostDisplayName *string `mandatory:"false" json:"hostDisplayName"` - // Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST. + // Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST. HostType *string `mandatory:"false" json:"hostType"` // Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_host_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_host_insight_summary.go index 95cccbdccf4..0f0e5ef2395 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_host_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/em_managed_external_host_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -48,7 +48,7 @@ type EmManagedExternalHostInsightSummary struct { // The user-friendly name for the host. The name does not have to be unique. HostDisplayName *string `mandatory:"false" json:"hostDisplayName"` - // Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST. + // Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST. HostType *string `mandatory:"false" json:"hostType"` // Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types. @@ -90,7 +90,7 @@ type EmManagedExternalHostInsightSummary struct { // Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. PlatformType EmManagedExternalHostInsightSummaryPlatformTypeEnum `mandatory:"false" json:"platformType,omitempty"` - // Indicates the status of a host insight in Operations Insights + // Indicates the status of a host insight in Ops Insights Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` // The current state of the host. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_autonomous_database_insight_advanced_features_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_autonomous_database_insight_advanced_features_details.go index de91a131192..bcb3e076ebd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_autonomous_database_insight_advanced_features_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_autonomous_database_insight_advanced_features_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_database_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_database_insight_details.go index 3a6e54d6921..68d36aee4ee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_database_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_database_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_em_managed_external_database_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_em_managed_external_database_insight_details.go index c9b7a84c041..fbea3d4e963 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_em_managed_external_database_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_em_managed_external_database_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_em_managed_external_exadata_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_em_managed_external_exadata_insight_details.go index c800ed08fc1..c11bc43752e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_em_managed_external_exadata_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_em_managed_external_exadata_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_em_managed_external_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_em_managed_external_host_insight_details.go index ad589f134e9..07258fb6b86 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_em_managed_external_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_em_managed_external_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_exadata_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_exadata_insight_details.go index 9609388f7df..49b6e2afbde 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_exadata_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_exadata_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_host_insight_details.go index d8dc8cfc8ec..01404048f99 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_host_insight_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_host_insight_request_response.go index 19eb2f177d9..f34a5bcd102 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_host_insight_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_host_insight_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/EnableHostInsight.go.html to see an example of how to use EnableHostInsightRequest. type EnableHostInsightRequest struct { - // Details for the host to be enabled in Operations Insights. + // Details for the host to be enabled in Ops Insights. EnableHostInsightDetails `contributesTo:"body"` // Unique host insight identifier diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_macs_managed_cloud_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_macs_managed_cloud_host_insight_details.go index 5e9e04b4821..b79cfe42174 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_macs_managed_cloud_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_macs_managed_cloud_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_macs_managed_external_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_macs_managed_external_host_insight_details.go index bee34e3c471..b1dc815d18e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_macs_managed_external_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_macs_managed_external_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_pe_comanaged_database_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_pe_comanaged_database_insight_details.go index 8b5cfe291d3..b1519571f52 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_pe_comanaged_database_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_pe_comanaged_database_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_pe_comanaged_exadata_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_pe_comanaged_exadata_insight_details.go index 4d0ba05377b..549b5f96b63 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_pe_comanaged_exadata_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enable_pe_comanaged_exadata_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridge.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridge.go index 5564f85486e..781349c0ee9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridge.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridge.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridge_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridge_collection.go index 19ad8265292..d68dc4180a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridge_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridge_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridge_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridge_summary.go index bf52a117896..370a0998044 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridge_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridge_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridges.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridges.go index 11bfebab4ae..5b5e31415b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridges.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/enterprise_manager_bridges.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -17,7 +17,7 @@ import ( "strings" ) -// EnterpriseManagerBridges Logical grouping used for Operations Insights Enterprise Manager Bridge operations. +// EnterpriseManagerBridges Logical grouping used for Ops Insights Enterprise Manager Bridge operations. type EnterpriseManagerBridges struct { // Enterprise Manager Bridge Object. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_configuration_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_configuration_collection.go index db446e2fe41..3d28916fe8d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_configuration_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_configuration_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_configuration_summary.go index 10dab91c7e1..f691096d3c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_database_machine_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_database_machine_configuration_summary.go index 7747bda03f1..c3a2f89c662 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_database_machine_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_database_machine_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_database_statistics_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_database_statistics_summary.go index 915a175510f..310f9fa830b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_database_statistics_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_database_statistics_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_details.go index 9902d6cb129..c2c586a685d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_diskgroup_statistics_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_diskgroup_statistics_summary.go index 7290391894d..5e86c63347e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_diskgroup_statistics_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_diskgroup_statistics_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_entity_source.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_entity_source.go index e0aeecba6f5..36c4a990c83 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_entity_source.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_entity_source.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_exacs_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_exacs_configuration_summary.go index 77fe2e72884..73c02c3ab9a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_exacs_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_exacs_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_host_statistics_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_host_statistics_summary.go index 0248a36fc88..d2dee510266 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_host_statistics_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_host_statistics_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight.go index 6f5df655c81..207ba8cde53 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_lifecycle_state.go index bdd17e59a7b..239a34b97fa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_lifecycle_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_lifecycle_state.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_capacity_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_capacity_trend_aggregation.go index f2c18875024..d4cb34b434d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_capacity_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_capacity_trend_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_capacity_trend_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_capacity_trend_summary.go index 1f6a12b7bc7..2955d19bfe1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_capacity_trend_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_capacity_trend_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go index 30fa63ab4f5..02c5617f031 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_forecast_trend_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_insight_utilization_item.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_insight_utilization_item.go index b1e88406661..d6d83051314 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_insight_utilization_item.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_insight_utilization_item.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_statistics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_statistics.go index 2d12eecc4bb..f66a422b489 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_statistics.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_statistics.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_statistics_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_statistics_aggregation.go index a22cca606ea..485814c0bfd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_statistics_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_resource_statistics_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_summary.go index a85664d00a6..32706b86be5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_summary_collection.go index bc891a2d00f..d26d060a7d8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_summary_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insight_summary_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insights.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insights.go index cc6d15663a6..bc663a24385 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insights.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insights.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insights_data_object.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insights_data_object.go index cd216429aa5..5756e46b621 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insights_data_object.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insights_data_object.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insights_data_object_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insights_data_object_summary.go index 10e42a2a815..d5941d4f9c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insights_data_object_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_insights_data_object_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_member_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_member_collection.go index 079ff3be302..c60de53e24e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_member_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_member_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_member_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_member_summary.go index 1958f50ee32..419c5626cb6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_member_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_member_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_rack_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_rack_type.go index 6dd7a2c58e8..ca87d6b1831 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_rack_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_rack_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_resource_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_resource_type.go index 796066f5317..199da448f24 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_resource_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_resource_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_storage_server_statistics_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_storage_server_statistics_summary.go index 4b50d846aed..581511473c2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_storage_server_statistics_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_storage_server_statistics_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_type.go index 0bafaa4e309..14ecb7a395d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/exadata_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_operations_insights_warehouse_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_operations_insights_warehouse_request_response.go index 8a0a4a41146..875a58c9b65 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_operations_insights_warehouse_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/get_operations_insights_warehouse_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/GetOperationsInsightsWarehouse.go.html to see an example of how to use GetOperationsInsightsWarehouseRequest. type GetOperationsInsightsWarehouseRequest struct { - // Unique Operations Insights Warehouse identifier + // Unique Ops Insights Warehouse identifier OperationsInsightsWarehouseId *string `mandatory:"true" contributesTo:"path" name:"operationsInsightsWarehouseId"` // Unique Oracle-assigned identifier for the request. If you need to contact diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/historical_data_item.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/historical_data_item.go index 749c5c5ce9f..3f93a9e4e13 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/historical_data_item.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/historical_data_item.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host.go index e5f4daed71d..c00c01577ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_collection.go index dfc7ac7d5dc..44961bb3c01 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_metric_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_metric_group.go index fb9eace077d..a5ac2f047f1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_metric_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_metric_group.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -86,6 +86,10 @@ func (m *hostconfigurationmetricgroup) UnmarshalPolymorphicJSON(data []byte) (in mm := HostCpuHardwareConfiguration{} err = json.Unmarshal(data, &mm) return mm, err + case "HOST_GPU_CONFIGURATION": + mm := HostGpuConfiguration{} + err = json.Unmarshal(data, &mm) + return mm, err case "HOST_HARDWARE_CONFIGURATION": mm := HostHardwareConfiguration{} err = json.Unmarshal(data, &mm) @@ -130,6 +134,7 @@ const ( HostConfigurationMetricGroupMetricNameNetworkConfiguration HostConfigurationMetricGroupMetricNameEnum = "HOST_NETWORK_CONFIGURATION" HostConfigurationMetricGroupMetricNameEntites HostConfigurationMetricGroupMetricNameEnum = "HOST_ENTITES" HostConfigurationMetricGroupMetricNameFilesystemConfiguration HostConfigurationMetricGroupMetricNameEnum = "HOST_FILESYSTEM_CONFIGURATION" + HostConfigurationMetricGroupMetricNameGpuConfiguration HostConfigurationMetricGroupMetricNameEnum = "HOST_GPU_CONFIGURATION" ) var mappingHostConfigurationMetricGroupMetricNameEnum = map[string]HostConfigurationMetricGroupMetricNameEnum{ @@ -141,6 +146,7 @@ var mappingHostConfigurationMetricGroupMetricNameEnum = map[string]HostConfigura "HOST_NETWORK_CONFIGURATION": HostConfigurationMetricGroupMetricNameNetworkConfiguration, "HOST_ENTITES": HostConfigurationMetricGroupMetricNameEntites, "HOST_FILESYSTEM_CONFIGURATION": HostConfigurationMetricGroupMetricNameFilesystemConfiguration, + "HOST_GPU_CONFIGURATION": HostConfigurationMetricGroupMetricNameGpuConfiguration, } var mappingHostConfigurationMetricGroupMetricNameEnumLowerCase = map[string]HostConfigurationMetricGroupMetricNameEnum{ @@ -152,6 +158,7 @@ var mappingHostConfigurationMetricGroupMetricNameEnumLowerCase = map[string]Host "host_network_configuration": HostConfigurationMetricGroupMetricNameNetworkConfiguration, "host_entites": HostConfigurationMetricGroupMetricNameEntites, "host_filesystem_configuration": HostConfigurationMetricGroupMetricNameFilesystemConfiguration, + "host_gpu_configuration": HostConfigurationMetricGroupMetricNameGpuConfiguration, } // GetHostConfigurationMetricGroupMetricNameEnumValues Enumerates the set of values for HostConfigurationMetricGroupMetricNameEnum @@ -174,6 +181,7 @@ func GetHostConfigurationMetricGroupMetricNameEnumStringValues() []string { "HOST_NETWORK_CONFIGURATION", "HOST_ENTITES", "HOST_FILESYSTEM_CONFIGURATION", + "HOST_GPU_CONFIGURATION", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_summary.go index a178f438c12..ac8af3001b2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_hardware_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_hardware_configuration.go index caba84ef5c2..0d2cad66c89 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_hardware_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_hardware_configuration.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_recommendations.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_recommendations.go index 5e7adc2291c..0b9c392cef8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_recommendations.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_recommendations.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -21,8 +21,17 @@ import ( // HostCpuRecommendations Contains CPU recommendation. type HostCpuRecommendations struct { - // Show if OPSI recommend to convert an instance to a burstable instance and show recommended cpu baseline if positive recommendation. + // Show if OPSI recommends to change the shape of an instance and show recommended shape based on CPU utilization. + Shape *string `mandatory:"false" json:"shape"` + + // Identify if an instance is abandoned. + IsAbandonedInstance *bool `mandatory:"false" json:"isAbandonedInstance"` + + // Show if OPSI recommends to convert an instance to a burstable instance and show recommended cpu baseline if positive recommendation. Burstable HostCpuRecommendationsBurstableEnum `mandatory:"false" json:"burstable,omitempty"` + + // Identify unused instances based on cpu, memory and network metrics. + UnusedInstance HostCpuRecommendationsUnusedInstanceEnum `mandatory:"false" json:"unusedInstance,omitempty"` } func (m HostCpuRecommendations) String() string { @@ -37,6 +46,9 @@ func (m HostCpuRecommendations) ValidateEnumValue() (bool, error) { if _, ok := GetMappingHostCpuRecommendationsBurstableEnum(string(m.Burstable)); !ok && m.Burstable != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Burstable: %s. Supported values are: %s.", m.Burstable, strings.Join(GetHostCpuRecommendationsBurstableEnumStringValues(), ","))) } + if _, ok := GetMappingHostCpuRecommendationsUnusedInstanceEnum(string(m.UnusedInstance)); !ok && m.UnusedInstance != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UnusedInstance: %s. Supported values are: %s.", m.UnusedInstance, strings.Join(GetHostCpuRecommendationsUnusedInstanceEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) @@ -107,3 +119,49 @@ func GetMappingHostCpuRecommendationsBurstableEnum(val string) (HostCpuRecommend enum, ok := mappingHostCpuRecommendationsBurstableEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// HostCpuRecommendationsUnusedInstanceEnum Enum with underlying type: string +type HostCpuRecommendationsUnusedInstanceEnum string + +// Set of constants representing the allowable values for HostCpuRecommendationsUnusedInstanceEnum +const ( + HostCpuRecommendationsUnusedInstanceInUse HostCpuRecommendationsUnusedInstanceEnum = "IN_USE" + HostCpuRecommendationsUnusedInstanceNotInUse HostCpuRecommendationsUnusedInstanceEnum = "NOT_IN_USE" + HostCpuRecommendationsUnusedInstanceIsNotDetermined HostCpuRecommendationsUnusedInstanceEnum = "IS_NOT_DETERMINED" +) + +var mappingHostCpuRecommendationsUnusedInstanceEnum = map[string]HostCpuRecommendationsUnusedInstanceEnum{ + "IN_USE": HostCpuRecommendationsUnusedInstanceInUse, + "NOT_IN_USE": HostCpuRecommendationsUnusedInstanceNotInUse, + "IS_NOT_DETERMINED": HostCpuRecommendationsUnusedInstanceIsNotDetermined, +} + +var mappingHostCpuRecommendationsUnusedInstanceEnumLowerCase = map[string]HostCpuRecommendationsUnusedInstanceEnum{ + "in_use": HostCpuRecommendationsUnusedInstanceInUse, + "not_in_use": HostCpuRecommendationsUnusedInstanceNotInUse, + "is_not_determined": HostCpuRecommendationsUnusedInstanceIsNotDetermined, +} + +// GetHostCpuRecommendationsUnusedInstanceEnumValues Enumerates the set of values for HostCpuRecommendationsUnusedInstanceEnum +func GetHostCpuRecommendationsUnusedInstanceEnumValues() []HostCpuRecommendationsUnusedInstanceEnum { + values := make([]HostCpuRecommendationsUnusedInstanceEnum, 0) + for _, v := range mappingHostCpuRecommendationsUnusedInstanceEnum { + values = append(values, v) + } + return values +} + +// GetHostCpuRecommendationsUnusedInstanceEnumStringValues Enumerates the set of values in String for HostCpuRecommendationsUnusedInstanceEnum +func GetHostCpuRecommendationsUnusedInstanceEnumStringValues() []string { + return []string{ + "IN_USE", + "NOT_IN_USE", + "IS_NOT_DETERMINED", + } +} + +// GetMappingHostCpuRecommendationsUnusedInstanceEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingHostCpuRecommendationsUnusedInstanceEnum(val string) (HostCpuRecommendationsUnusedInstanceEnum, bool) { + enum, ok := mappingHostCpuRecommendationsUnusedInstanceEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_statistics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_statistics.go index d0929b0b33c..7cf1ca3b17b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_statistics.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_statistics.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_usage.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_usage.go index 093ee9c9106..29bcfaebd62 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_usage.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_cpu_usage.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_details.go index 4cedfe1902a..7b659758d53 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_entities.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_entities.go index 5861288963b..0d7798ffbda 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_entities.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_entities.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_entity_source.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_entity_source.go index b248b36c9ac..4a86f60f790 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_entity_source.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_entity_source.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_filesystem_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_filesystem_configuration.go index 5d0aa4228c1..44711235fad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_filesystem_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_filesystem_configuration.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_filesystem_usage.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_filesystem_usage.go index 486d72a8842..db7a0d8e3e7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_filesystem_usage.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_filesystem_usage.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_gpu_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_gpu_configuration.go new file mode 100644 index 00000000000..1cb7af92d97 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_gpu_configuration.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Ops Insights API +// +// Use the Ops Insights API to perform data extraction operations to obtain database +// resource utilization, performance statistics, and reference information. For more information, +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// + +package opsi + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HostGpuConfiguration GPU configuration metrics +type HostGpuConfiguration struct { + + // Collection timestamp + // Example: `"2020-05-06T00:00:00.000Z"` + TimeCollected *common.SDKTime `mandatory:"true" json:"timeCollected"` + + // GPU Identifier + GpuId *int `mandatory:"true" json:"gpuId"` + + // GPU Product Name + ProductName *string `mandatory:"true" json:"productName"` + + // GPU Vendor + Vendor *string `mandatory:"true" json:"vendor"` + + // Bus Identifier + BusId *string `mandatory:"true" json:"busId"` + + // Bus Width + BusWidth *int `mandatory:"true" json:"busWidth"` + + // Power Capacity + TotalPower *float64 `mandatory:"true" json:"totalPower"` + + // Total Memory Allocated to GPU + TotalMemory *float64 `mandatory:"true" json:"totalMemory"` + + // Max Video Clock Speed + TotalVideoClockSpeed *float64 `mandatory:"true" json:"totalVideoClockSpeed"` + + // Max SM (Streaming Multiprocessor) Clock Speed + TotalSmClockSpeed *float64 `mandatory:"true" json:"totalSmClockSpeed"` + + // Max Graphics Clock Speed + TotalGraphicsClockSpeed *float64 `mandatory:"true" json:"totalGraphicsClockSpeed"` + + // Max Memory Clock Speed + TotalMemoryClockSpeed *float64 `mandatory:"true" json:"totalMemoryClockSpeed"` + + // CUDA library version + CudaVersion *string `mandatory:"true" json:"cudaVersion"` + + // GPU Driver version + DriverVersion *string `mandatory:"true" json:"driverVersion"` + + // GPU Capabilities + GpuCapabilities *string `mandatory:"false" json:"gpuCapabilities"` +} + +// GetTimeCollected returns TimeCollected +func (m HostGpuConfiguration) GetTimeCollected() *common.SDKTime { + return m.TimeCollected +} + +func (m HostGpuConfiguration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HostGpuConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m HostGpuConfiguration) MarshalJSON() (buff []byte, e error) { + type MarshalTypeHostGpuConfiguration HostGpuConfiguration + s := struct { + DiscriminatorParam string `json:"metricName"` + MarshalTypeHostGpuConfiguration + }{ + "HOST_GPU_CONFIGURATION", + (MarshalTypeHostGpuConfiguration)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_gpu_processes.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_gpu_processes.go new file mode 100644 index 00000000000..5df9cda31de --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_gpu_processes.go @@ -0,0 +1,77 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Ops Insights API +// +// Use the Ops Insights API to perform data extraction operations to obtain database +// resource utilization, performance statistics, and reference information. For more information, +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// + +package opsi + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HostGpuProcesses GPU processes metrics, processes using GPUs. +type HostGpuProcesses struct { + + // Collection timestamp + // Example: `"2020-05-06T00:00:00.000Z"` + TimeCollected *common.SDKTime `mandatory:"true" json:"timeCollected"` + + // GPU Identifier + GpuId *int `mandatory:"false" json:"gpuId"` + + // Process Identifier + Pid *int `mandatory:"false" json:"pid"` + + // Process Name (process using GPU) + ProcessName *string `mandatory:"false" json:"processName"` + + // Process elapsed time + ElapsedTime *float64 `mandatory:"false" json:"elapsedTime"` + + // Memory Used by Process in MBs + GpuMemoryUsage *float64 `mandatory:"false" json:"gpuMemoryUsage"` +} + +// GetTimeCollected returns TimeCollected +func (m HostGpuProcesses) GetTimeCollected() *common.SDKTime { + return m.TimeCollected +} + +func (m HostGpuProcesses) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HostGpuProcesses) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m HostGpuProcesses) MarshalJSON() (buff []byte, e error) { + type MarshalTypeHostGpuProcesses HostGpuProcesses + s := struct { + DiscriminatorParam string `json:"metricName"` + MarshalTypeHostGpuProcesses + }{ + "HOST_GPU_PROCESSES", + (MarshalTypeHostGpuProcesses)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_gpu_usage.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_gpu_usage.go new file mode 100644 index 00000000000..4b4cf31feb1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_gpu_usage.go @@ -0,0 +1,122 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Ops Insights API +// +// Use the Ops Insights API to perform data extraction operations to obtain database +// resource utilization, performance statistics, and reference information. For more information, +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// + +package opsi + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HostGpuUsage GPU performance metrics +type HostGpuUsage struct { + + // Collection timestamp + // Example: `"2020-05-06T00:00:00.000Z"` + TimeCollected *common.SDKTime `mandatory:"true" json:"timeCollected"` + + // GPU Identifier + GpuId *int `mandatory:"false" json:"gpuId"` + + // GPU Utilization Percent + Utilization *float64 `mandatory:"false" json:"utilization"` + + // GPU Memory Utilization Percent + MemoryUtilization *float64 `mandatory:"false" json:"memoryUtilization"` + + // GPU Power Draw in Watts + PowerDraw *float64 `mandatory:"false" json:"powerDraw"` + + // GPU Temperature in Celsius + Temperature *float64 `mandatory:"false" json:"temperature"` + + // GPU Fan Utilization + FanUtilization *float64 `mandatory:"false" json:"fanUtilization"` + + // GPU Graphics (Shader) Clock Speed + ClockSpeedGraphics *float64 `mandatory:"false" json:"clockSpeedGraphics"` + + // GPU SM (Streaming Multiprocessor) Clock Speed + ClockSpeedSm *float64 `mandatory:"false" json:"clockSpeedSm"` + + // GPU Video Clock Speed + ClockSpeedVideo *float64 `mandatory:"false" json:"clockSpeedVideo"` + + // GPU Memory Clock Speed + ClockSpeedMemory *float64 `mandatory:"false" json:"clockSpeedMemory"` + + // GPU Performance State + PerformanceState *float64 `mandatory:"false" json:"performanceState"` + + // GPU ECC Single Bit Errors + EccSingleBitErrors *int `mandatory:"false" json:"eccSingleBitErrors"` + + // GPU ECC Double Bit Errors + EccDoubleBitErrors *int `mandatory:"false" json:"eccDoubleBitErrors"` + + // Nothing running on CPU, clocks are idle + ClockEventIdle *int `mandatory:"false" json:"clockEventIdle"` + + // HW Thermal Slowdown (reducing the core clocks by a factor of 2 or more) is engaged. Temp too high + ClockEventHwThermalSlowDown *int `mandatory:"false" json:"clockEventHwThermalSlowDown"` + + // SW Power Scaling algorithm is reducing the clocks below requested clocks because the GPU is consuming too much power + ClockEventSwPowerCap *int `mandatory:"false" json:"clockEventSwPowerCap"` + + // GPU clocks are limited by applications clocks setting + ClockEventAppClockSetting *int `mandatory:"false" json:"clockEventAppClockSetting"` + + // HW Power Brake Slowdown (reducing the core clocks by a factor of 2 or more) is engaged + ClockEventHwPowerBreak *int `mandatory:"false" json:"clockEventHwPowerBreak"` + + // SW Thermal capping algorithm is reducing clocks below requested clocks because GPU temperature is higher than Max Operating Temp + ClockEventSwThermalSlowdown *int `mandatory:"false" json:"clockEventSwThermalSlowdown"` + + // HW Power Brake Slowdown (reducing the core clocks by a factor of 2 or more) is engaged + ClockEventSyncBoost *int `mandatory:"false" json:"clockEventSyncBoost"` +} + +// GetTimeCollected returns TimeCollected +func (m HostGpuUsage) GetTimeCollected() *common.SDKTime { + return m.TimeCollected +} + +func (m HostGpuUsage) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HostGpuUsage) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m HostGpuUsage) MarshalJSON() (buff []byte, e error) { + type MarshalTypeHostGpuUsage HostGpuUsage + s := struct { + DiscriminatorParam string `json:"metricName"` + MarshalTypeHostGpuUsage + }{ + "HOST_GPU_USAGE", + (MarshalTypeHostGpuUsage)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_hardware_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_hardware_configuration.go index 67ae3938642..01426d20b94 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_hardware_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_hardware_configuration.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_importable_agent_entity_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_importable_agent_entity_summary.go index c94e9cc1834..140d67c28b0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_importable_agent_entity_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_importable_agent_entity_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight.go index 9f78ad12731..f3cbefebea3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -50,7 +50,7 @@ type HostInsight interface { // The user-friendly name for the host. The name does not have to be unique. GetHostDisplayName() *string - // Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST. + // Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST. GetHostType() *string // Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_host_recommendations.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_host_recommendations.go index 7b6529c439d..3cde5c0d61a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_host_recommendations.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_host_recommendations.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -56,6 +56,18 @@ func (m *hostinsighthostrecommendations) UnmarshalPolymorphicJSON(data []byte) ( mm := HostCpuRecommendations{} err = json.Unmarshal(data, &mm) return mm, err + case "HOST_NETWORK_RECOMMENDATIONS": + mm := HostNetworkRecommendations{} + err = json.Unmarshal(data, &mm) + return mm, err + case "HOST_MEMORY_RECOMMENDATIONS": + mm := HostMemoryRecommendations{} + err = json.Unmarshal(data, &mm) + return mm, err + case "HOST_STORAGE_RECOMMENDATIONS": + mm := HostStorageRecommendations{} + err = json.Unmarshal(data, &mm) + return mm, err default: common.Logf("Recieved unsupported enum value for HostInsightHostRecommendations: %s.", m.MetricRecommendationName) return *m, nil @@ -83,15 +95,24 @@ type HostInsightHostRecommendationsMetricRecommendationNameEnum string // Set of constants representing the allowable values for HostInsightHostRecommendationsMetricRecommendationNameEnum const ( - HostInsightHostRecommendationsMetricRecommendationNameHostCpuRecommendations HostInsightHostRecommendationsMetricRecommendationNameEnum = "HOST_CPU_RECOMMENDATIONS" + HostInsightHostRecommendationsMetricRecommendationNameCpuRecommendations HostInsightHostRecommendationsMetricRecommendationNameEnum = "HOST_CPU_RECOMMENDATIONS" + HostInsightHostRecommendationsMetricRecommendationNameMemoryRecommendations HostInsightHostRecommendationsMetricRecommendationNameEnum = "HOST_MEMORY_RECOMMENDATIONS" + HostInsightHostRecommendationsMetricRecommendationNameNetworkRecommendations HostInsightHostRecommendationsMetricRecommendationNameEnum = "HOST_NETWORK_RECOMMENDATIONS" + HostInsightHostRecommendationsMetricRecommendationNameStorageRecommendations HostInsightHostRecommendationsMetricRecommendationNameEnum = "HOST_STORAGE_RECOMMENDATIONS" ) var mappingHostInsightHostRecommendationsMetricRecommendationNameEnum = map[string]HostInsightHostRecommendationsMetricRecommendationNameEnum{ - "HOST_CPU_RECOMMENDATIONS": HostInsightHostRecommendationsMetricRecommendationNameHostCpuRecommendations, + "HOST_CPU_RECOMMENDATIONS": HostInsightHostRecommendationsMetricRecommendationNameCpuRecommendations, + "HOST_MEMORY_RECOMMENDATIONS": HostInsightHostRecommendationsMetricRecommendationNameMemoryRecommendations, + "HOST_NETWORK_RECOMMENDATIONS": HostInsightHostRecommendationsMetricRecommendationNameNetworkRecommendations, + "HOST_STORAGE_RECOMMENDATIONS": HostInsightHostRecommendationsMetricRecommendationNameStorageRecommendations, } var mappingHostInsightHostRecommendationsMetricRecommendationNameEnumLowerCase = map[string]HostInsightHostRecommendationsMetricRecommendationNameEnum{ - "host_cpu_recommendations": HostInsightHostRecommendationsMetricRecommendationNameHostCpuRecommendations, + "host_cpu_recommendations": HostInsightHostRecommendationsMetricRecommendationNameCpuRecommendations, + "host_memory_recommendations": HostInsightHostRecommendationsMetricRecommendationNameMemoryRecommendations, + "host_network_recommendations": HostInsightHostRecommendationsMetricRecommendationNameNetworkRecommendations, + "host_storage_recommendations": HostInsightHostRecommendationsMetricRecommendationNameStorageRecommendations, } // GetHostInsightHostRecommendationsMetricRecommendationNameEnumValues Enumerates the set of values for HostInsightHostRecommendationsMetricRecommendationNameEnum @@ -107,6 +128,9 @@ func GetHostInsightHostRecommendationsMetricRecommendationNameEnumValues() []Hos func GetHostInsightHostRecommendationsMetricRecommendationNameEnumStringValues() []string { return []string{ "HOST_CPU_RECOMMENDATIONS", + "HOST_MEMORY_RECOMMENDATIONS", + "HOST_NETWORK_RECOMMENDATIONS", + "HOST_STORAGE_RECOMMENDATIONS", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_resource_statistics_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_resource_statistics_aggregation.go index 2c4ad90f86a..b4c89c494f4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_resource_statistics_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_resource_statistics_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_summary.go index 31d4130282c..7961e57cd19 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -33,7 +33,7 @@ type HostInsightSummary interface { // The user-friendly name for the host. The name does not have to be unique. GetHostDisplayName() *string - // Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST. + // Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST. GetHostType() *string // Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types. @@ -54,7 +54,7 @@ type HostInsightSummary interface { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OPSI private endpoint GetOpsiPrivateEndpointId() *string - // Indicates the status of a host insight in Operations Insights + // Indicates the status of a host insight in Ops Insights GetStatus() ResourceStatusEnum // The time the the host insight was first enabled. An RFC3339 formatted datetime string diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_summary_collection.go index ad9f4b2431b..0589302437e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_summary_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insight_summary_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insights.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insights.go index e69e13cd738..426995c7a9a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insights.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insights.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insights_data_object.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insights_data_object.go index e35e1659bc5..60b2a6474ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insights_data_object.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insights_data_object.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insights_data_object_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insights_data_object_summary.go index d507b5a386b..ec7dd55acf3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insights_data_object_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_insights_data_object_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_instance_map.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_instance_map.go index a3b15dc2407..90a85740255 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_instance_map.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_instance_map.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_configuration.go index 73e31bde9de..72bd03c2954 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_configuration.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_recommendations.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_recommendations.go new file mode 100644 index 00000000000..1c343e52f22 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_recommendations.go @@ -0,0 +1,111 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Ops Insights API +// +// Use the Ops Insights API to perform data extraction operations to obtain database +// resource utilization, performance statistics, and reference information. For more information, +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// + +package opsi + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HostMemoryRecommendations Contains memory recommendation. +type HostMemoryRecommendations struct { + + // Identify if an instance is abandoned. + IsAbandonedInstance *bool `mandatory:"false" json:"isAbandonedInstance"` + + // Show if OPSI recommends to change memory capacity based on Memory utilization and current shape. + MemoryOptimization *string `mandatory:"false" json:"memoryOptimization"` + + // Identify unused instances based on cpu, memory and network metrics. + UnusedInstance HostMemoryRecommendationsUnusedInstanceEnum `mandatory:"false" json:"unusedInstance,omitempty"` +} + +func (m HostMemoryRecommendations) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HostMemoryRecommendations) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingHostMemoryRecommendationsUnusedInstanceEnum(string(m.UnusedInstance)); !ok && m.UnusedInstance != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UnusedInstance: %s. Supported values are: %s.", m.UnusedInstance, strings.Join(GetHostMemoryRecommendationsUnusedInstanceEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m HostMemoryRecommendations) MarshalJSON() (buff []byte, e error) { + type MarshalTypeHostMemoryRecommendations HostMemoryRecommendations + s := struct { + DiscriminatorParam string `json:"metricRecommendationName"` + MarshalTypeHostMemoryRecommendations + }{ + "HOST_MEMORY_RECOMMENDATIONS", + (MarshalTypeHostMemoryRecommendations)(m), + } + + return json.Marshal(&s) +} + +// HostMemoryRecommendationsUnusedInstanceEnum Enum with underlying type: string +type HostMemoryRecommendationsUnusedInstanceEnum string + +// Set of constants representing the allowable values for HostMemoryRecommendationsUnusedInstanceEnum +const ( + HostMemoryRecommendationsUnusedInstanceInUse HostMemoryRecommendationsUnusedInstanceEnum = "IN_USE" + HostMemoryRecommendationsUnusedInstanceNotInUse HostMemoryRecommendationsUnusedInstanceEnum = "NOT_IN_USE" + HostMemoryRecommendationsUnusedInstanceIsNotDetermined HostMemoryRecommendationsUnusedInstanceEnum = "IS_NOT_DETERMINED" +) + +var mappingHostMemoryRecommendationsUnusedInstanceEnum = map[string]HostMemoryRecommendationsUnusedInstanceEnum{ + "IN_USE": HostMemoryRecommendationsUnusedInstanceInUse, + "NOT_IN_USE": HostMemoryRecommendationsUnusedInstanceNotInUse, + "IS_NOT_DETERMINED": HostMemoryRecommendationsUnusedInstanceIsNotDetermined, +} + +var mappingHostMemoryRecommendationsUnusedInstanceEnumLowerCase = map[string]HostMemoryRecommendationsUnusedInstanceEnum{ + "in_use": HostMemoryRecommendationsUnusedInstanceInUse, + "not_in_use": HostMemoryRecommendationsUnusedInstanceNotInUse, + "is_not_determined": HostMemoryRecommendationsUnusedInstanceIsNotDetermined, +} + +// GetHostMemoryRecommendationsUnusedInstanceEnumValues Enumerates the set of values for HostMemoryRecommendationsUnusedInstanceEnum +func GetHostMemoryRecommendationsUnusedInstanceEnumValues() []HostMemoryRecommendationsUnusedInstanceEnum { + values := make([]HostMemoryRecommendationsUnusedInstanceEnum, 0) + for _, v := range mappingHostMemoryRecommendationsUnusedInstanceEnum { + values = append(values, v) + } + return values +} + +// GetHostMemoryRecommendationsUnusedInstanceEnumStringValues Enumerates the set of values in String for HostMemoryRecommendationsUnusedInstanceEnum +func GetHostMemoryRecommendationsUnusedInstanceEnumStringValues() []string { + return []string{ + "IN_USE", + "NOT_IN_USE", + "IS_NOT_DETERMINED", + } +} + +// GetMappingHostMemoryRecommendationsUnusedInstanceEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingHostMemoryRecommendationsUnusedInstanceEnum(val string) (HostMemoryRecommendationsUnusedInstanceEnum, bool) { + enum, ok := mappingHostMemoryRecommendationsUnusedInstanceEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_statistics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_statistics.go index 7cf6e56d826..c2818dd5bb0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_statistics.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_statistics.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_usage.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_usage.go index 9d90fc32d92..46833baabd4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_usage.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_memory_usage.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_activity_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_activity_summary.go index f926e6c15d0..abd5aafc114 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_activity_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_activity_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_configuration.go index bfd22a1c9d3..037b57a1bb4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_configuration.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_recommendations.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_recommendations.go new file mode 100644 index 00000000000..8ae5a8f1285 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_recommendations.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Ops Insights API +// +// Use the Ops Insights API to perform data extraction operations to obtain database +// resource utilization, performance statistics, and reference information. For more information, +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// + +package opsi + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HostNetworkRecommendations Contains network recommendation. +type HostNetworkRecommendations struct { + + // Identify if an instance is abandoned. + IsAbandonedInstance *bool `mandatory:"false" json:"isAbandonedInstance"` + + // Identify unused instances based on cpu, memory and network metrics. + UnusedInstance HostNetworkRecommendationsUnusedInstanceEnum `mandatory:"false" json:"unusedInstance,omitempty"` +} + +func (m HostNetworkRecommendations) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HostNetworkRecommendations) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingHostNetworkRecommendationsUnusedInstanceEnum(string(m.UnusedInstance)); !ok && m.UnusedInstance != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UnusedInstance: %s. Supported values are: %s.", m.UnusedInstance, strings.Join(GetHostNetworkRecommendationsUnusedInstanceEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m HostNetworkRecommendations) MarshalJSON() (buff []byte, e error) { + type MarshalTypeHostNetworkRecommendations HostNetworkRecommendations + s := struct { + DiscriminatorParam string `json:"metricRecommendationName"` + MarshalTypeHostNetworkRecommendations + }{ + "HOST_NETWORK_RECOMMENDATIONS", + (MarshalTypeHostNetworkRecommendations)(m), + } + + return json.Marshal(&s) +} + +// HostNetworkRecommendationsUnusedInstanceEnum Enum with underlying type: string +type HostNetworkRecommendationsUnusedInstanceEnum string + +// Set of constants representing the allowable values for HostNetworkRecommendationsUnusedInstanceEnum +const ( + HostNetworkRecommendationsUnusedInstanceInUse HostNetworkRecommendationsUnusedInstanceEnum = "IN_USE" + HostNetworkRecommendationsUnusedInstanceNotInUse HostNetworkRecommendationsUnusedInstanceEnum = "NOT_IN_USE" + HostNetworkRecommendationsUnusedInstanceIsNotDetermined HostNetworkRecommendationsUnusedInstanceEnum = "IS_NOT_DETERMINED" +) + +var mappingHostNetworkRecommendationsUnusedInstanceEnum = map[string]HostNetworkRecommendationsUnusedInstanceEnum{ + "IN_USE": HostNetworkRecommendationsUnusedInstanceInUse, + "NOT_IN_USE": HostNetworkRecommendationsUnusedInstanceNotInUse, + "IS_NOT_DETERMINED": HostNetworkRecommendationsUnusedInstanceIsNotDetermined, +} + +var mappingHostNetworkRecommendationsUnusedInstanceEnumLowerCase = map[string]HostNetworkRecommendationsUnusedInstanceEnum{ + "in_use": HostNetworkRecommendationsUnusedInstanceInUse, + "not_in_use": HostNetworkRecommendationsUnusedInstanceNotInUse, + "is_not_determined": HostNetworkRecommendationsUnusedInstanceIsNotDetermined, +} + +// GetHostNetworkRecommendationsUnusedInstanceEnumValues Enumerates the set of values for HostNetworkRecommendationsUnusedInstanceEnum +func GetHostNetworkRecommendationsUnusedInstanceEnumValues() []HostNetworkRecommendationsUnusedInstanceEnum { + values := make([]HostNetworkRecommendationsUnusedInstanceEnum, 0) + for _, v := range mappingHostNetworkRecommendationsUnusedInstanceEnum { + values = append(values, v) + } + return values +} + +// GetHostNetworkRecommendationsUnusedInstanceEnumStringValues Enumerates the set of values in String for HostNetworkRecommendationsUnusedInstanceEnum +func GetHostNetworkRecommendationsUnusedInstanceEnumStringValues() []string { + return []string{ + "IN_USE", + "NOT_IN_USE", + "IS_NOT_DETERMINED", + } +} + +// GetMappingHostNetworkRecommendationsUnusedInstanceEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingHostNetworkRecommendationsUnusedInstanceEnum(val string) (HostNetworkRecommendationsUnusedInstanceEnum, bool) { + enum, ok := mappingHostNetworkRecommendationsUnusedInstanceEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_statistics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_statistics.go index 1e3be5abff3..a50a9f240c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_statistics.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_network_statistics.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_performance_metric_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_performance_metric_group.go index ac87c1f372f..a6ef3b1b8eb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_performance_metric_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_performance_metric_group.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -70,6 +70,14 @@ func (m *hostperformancemetricgroup) UnmarshalPolymorphicJSON(data []byte) (inte mm := HostCpuUsage{} err = json.Unmarshal(data, &mm) return mm, err + case "HOST_GPU_USAGE": + mm := HostGpuUsage{} + err = json.Unmarshal(data, &mm) + return mm, err + case "HOST_GPU_PROCESSES": + mm := HostGpuProcesses{} + err = json.Unmarshal(data, &mm) + return mm, err case "HOST_FILESYSTEM_USAGE": mm := HostFilesystemUsage{} err = json.Unmarshal(data, &mm) @@ -115,6 +123,8 @@ const ( HostPerformanceMetricGroupMetricNameNetworkActivitySummary HostPerformanceMetricGroupMetricNameEnum = "HOST_NETWORK_ACTIVITY_SUMMARY" HostPerformanceMetricGroupMetricNameTopProcesses HostPerformanceMetricGroupMetricNameEnum = "HOST_TOP_PROCESSES" HostPerformanceMetricGroupMetricNameFilesystemUsage HostPerformanceMetricGroupMetricNameEnum = "HOST_FILESYSTEM_USAGE" + HostPerformanceMetricGroupMetricNameGpuUsage HostPerformanceMetricGroupMetricNameEnum = "HOST_GPU_USAGE" + HostPerformanceMetricGroupMetricNameGpuProcesses HostPerformanceMetricGroupMetricNameEnum = "HOST_GPU_PROCESSES" ) var mappingHostPerformanceMetricGroupMetricNameEnum = map[string]HostPerformanceMetricGroupMetricNameEnum{ @@ -123,6 +133,8 @@ var mappingHostPerformanceMetricGroupMetricNameEnum = map[string]HostPerformance "HOST_NETWORK_ACTIVITY_SUMMARY": HostPerformanceMetricGroupMetricNameNetworkActivitySummary, "HOST_TOP_PROCESSES": HostPerformanceMetricGroupMetricNameTopProcesses, "HOST_FILESYSTEM_USAGE": HostPerformanceMetricGroupMetricNameFilesystemUsage, + "HOST_GPU_USAGE": HostPerformanceMetricGroupMetricNameGpuUsage, + "HOST_GPU_PROCESSES": HostPerformanceMetricGroupMetricNameGpuProcesses, } var mappingHostPerformanceMetricGroupMetricNameEnumLowerCase = map[string]HostPerformanceMetricGroupMetricNameEnum{ @@ -131,6 +143,8 @@ var mappingHostPerformanceMetricGroupMetricNameEnumLowerCase = map[string]HostPe "host_network_activity_summary": HostPerformanceMetricGroupMetricNameNetworkActivitySummary, "host_top_processes": HostPerformanceMetricGroupMetricNameTopProcesses, "host_filesystem_usage": HostPerformanceMetricGroupMetricNameFilesystemUsage, + "host_gpu_usage": HostPerformanceMetricGroupMetricNameGpuUsage, + "host_gpu_processes": HostPerformanceMetricGroupMetricNameGpuProcesses, } // GetHostPerformanceMetricGroupMetricNameEnumValues Enumerates the set of values for HostPerformanceMetricGroupMetricNameEnum @@ -150,6 +164,8 @@ func GetHostPerformanceMetricGroupMetricNameEnumStringValues() []string { "HOST_NETWORK_ACTIVITY_SUMMARY", "HOST_TOP_PROCESSES", "HOST_FILESYSTEM_USAGE", + "HOST_GPU_USAGE", + "HOST_GPU_PROCESSES", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_product.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_product.go index 9aa3ede6f69..d0188085f36 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_product.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_product.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_allocation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_allocation.go index ac8176d074a..fbb0e206f06 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_allocation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_allocation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_capacity_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_capacity_trend_aggregation.go index ebbe81dc519..b3474252bba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_capacity_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_capacity_trend_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_statistics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_statistics.go index 5b33fef23db..012651263ae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_statistics.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_resource_statistics.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_storage_recommendations.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_storage_recommendations.go new file mode 100644 index 00000000000..1480df7c759 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_storage_recommendations.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Ops Insights API +// +// Use the Ops Insights API to perform data extraction operations to obtain database +// resource utilization, performance statistics, and reference information. For more information, +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// + +package opsi + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HostStorageRecommendations Contains storage recommendation. +type HostStorageRecommendations struct { + + // Identify if an instance is abandoned. + IsAbandonedInstance *bool `mandatory:"false" json:"isAbandonedInstance"` + + // Identify unused instances based on cpu, memory and network metrics. + UnusedInstance HostStorageRecommendationsUnusedInstanceEnum `mandatory:"false" json:"unusedInstance,omitempty"` +} + +func (m HostStorageRecommendations) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HostStorageRecommendations) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingHostStorageRecommendationsUnusedInstanceEnum(string(m.UnusedInstance)); !ok && m.UnusedInstance != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UnusedInstance: %s. Supported values are: %s.", m.UnusedInstance, strings.Join(GetHostStorageRecommendationsUnusedInstanceEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m HostStorageRecommendations) MarshalJSON() (buff []byte, e error) { + type MarshalTypeHostStorageRecommendations HostStorageRecommendations + s := struct { + DiscriminatorParam string `json:"metricRecommendationName"` + MarshalTypeHostStorageRecommendations + }{ + "HOST_STORAGE_RECOMMENDATIONS", + (MarshalTypeHostStorageRecommendations)(m), + } + + return json.Marshal(&s) +} + +// HostStorageRecommendationsUnusedInstanceEnum Enum with underlying type: string +type HostStorageRecommendationsUnusedInstanceEnum string + +// Set of constants representing the allowable values for HostStorageRecommendationsUnusedInstanceEnum +const ( + HostStorageRecommendationsUnusedInstanceInUse HostStorageRecommendationsUnusedInstanceEnum = "IN_USE" + HostStorageRecommendationsUnusedInstanceNotInUse HostStorageRecommendationsUnusedInstanceEnum = "NOT_IN_USE" + HostStorageRecommendationsUnusedInstanceIsNotDetermined HostStorageRecommendationsUnusedInstanceEnum = "IS_NOT_DETERMINED" +) + +var mappingHostStorageRecommendationsUnusedInstanceEnum = map[string]HostStorageRecommendationsUnusedInstanceEnum{ + "IN_USE": HostStorageRecommendationsUnusedInstanceInUse, + "NOT_IN_USE": HostStorageRecommendationsUnusedInstanceNotInUse, + "IS_NOT_DETERMINED": HostStorageRecommendationsUnusedInstanceIsNotDetermined, +} + +var mappingHostStorageRecommendationsUnusedInstanceEnumLowerCase = map[string]HostStorageRecommendationsUnusedInstanceEnum{ + "in_use": HostStorageRecommendationsUnusedInstanceInUse, + "not_in_use": HostStorageRecommendationsUnusedInstanceNotInUse, + "is_not_determined": HostStorageRecommendationsUnusedInstanceIsNotDetermined, +} + +// GetHostStorageRecommendationsUnusedInstanceEnumValues Enumerates the set of values for HostStorageRecommendationsUnusedInstanceEnum +func GetHostStorageRecommendationsUnusedInstanceEnumValues() []HostStorageRecommendationsUnusedInstanceEnum { + values := make([]HostStorageRecommendationsUnusedInstanceEnum, 0) + for _, v := range mappingHostStorageRecommendationsUnusedInstanceEnum { + values = append(values, v) + } + return values +} + +// GetHostStorageRecommendationsUnusedInstanceEnumStringValues Enumerates the set of values in String for HostStorageRecommendationsUnusedInstanceEnum +func GetHostStorageRecommendationsUnusedInstanceEnumStringValues() []string { + return []string{ + "IN_USE", + "NOT_IN_USE", + "IS_NOT_DETERMINED", + } +} + +// GetMappingHostStorageRecommendationsUnusedInstanceEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingHostStorageRecommendationsUnusedInstanceEnum(val string) (HostStorageRecommendationsUnusedInstanceEnum, bool) { + enum, ok := mappingHostStorageRecommendationsUnusedInstanceEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_storage_statistics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_storage_statistics.go index e5ae1ec8f58..a1c68845de5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_storage_statistics.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_storage_statistics.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_top_processes.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_top_processes.go index e13b0227aeb..7bdd3159e6f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_top_processes.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/host_top_processes.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -55,6 +55,9 @@ type HostTopProcesses struct { // Number of processes running at the time of collection TotalProcesses *float32 `mandatory:"false" json:"totalProcesses"` + + // Container id if this process corresponds to a running container in the host + ContainerId *string `mandatory:"false" json:"containerId"` } // GetTimeCollected returns TimeCollected diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/hosted_entity_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/hosted_entity_collection.go index 86e85134a9c..a5d8e526c95 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/hosted_entity_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/hosted_entity_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/hosted_entity_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/hosted_entity_summary.go index eaf86863036..1b7cb93fb15 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/hosted_entity_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/hosted_entity_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_agent_entity_source.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_agent_entity_source.go index db080f9f4fa..93afd5cf138 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_agent_entity_source.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_agent_entity_source.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_agent_entity_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_agent_entity_summary.go index c1fb5206e12..c22b5f94069 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_agent_entity_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_agent_entity_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_agent_entity_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_agent_entity_summary_collection.go index c01fd8491c3..e4c01b5f8c4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_agent_entity_summary_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_agent_entity_summary_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_compute_entity_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_compute_entity_summary.go index a7200a0e51e..bc4cd7642a1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_compute_entity_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_compute_entity_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_compute_entity_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_compute_entity_summary_collection.go index 09b9b243440..82f3455c994 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_compute_entity_summary_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_compute_entity_summary_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_enterprise_manager_entity.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_enterprise_manager_entity.go index f5552995d90..89a1afe24b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_enterprise_manager_entity.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_enterprise_manager_entity.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -32,7 +32,7 @@ type ImportableEnterpriseManagerEntity struct { // Enterprise Manager Entity Unique Identifier EnterpriseManagerEntityIdentifier *string `mandatory:"true" json:"enterpriseManagerEntityIdentifier"` - // Operations Insights internal representation of the resource type. + // Ops Insights internal representation of the resource type. OpsiEntityType *string `mandatory:"false" json:"opsiEntityType"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_enterprise_manager_entity_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_enterprise_manager_entity_collection.go index 848f0ba8c81..3d7a4f5d094 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_enterprise_manager_entity_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/importable_enterprise_manager_entity_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/individual_opsi_data_object_details_in_query.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/individual_opsi_data_object_details_in_query.go index c0ab26ec8ae..d0376fdfd28 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/individual_opsi_data_object_details_in_query.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/individual_opsi_data_object_details_in_query.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_addm_reports_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_addm_reports_details.go index 3bb1a60e199..385bc69ecaf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_addm_reports_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_addm_reports_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_addm_reports_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_addm_reports_response_details.go index f967d85ae69..ce81d40dc7e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_addm_reports_response_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_addm_reports_response_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_database_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_database_configuration_details.go index 2ef20376258..d2dc39987b9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_database_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_database_configuration_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_database_configuration_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_database_configuration_response_details.go index beb40bac6a2..2d472f8369c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_database_configuration_response_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_database_configuration_response_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_configuration_details.go index a2f25c2e8c2..fa4fa81af06 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_configuration_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_configuration_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_configuration_response_details.go index a10a8b48ace..d6b86219ac7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_configuration_response_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_configuration_response_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_metrics_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_metrics_details.go index 79176326ef5..d4dc33f215e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_metrics_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_metrics_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_metrics_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_metrics_response_details.go index 6f2348c7d20..9f2230ef86c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_metrics_response_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_host_metrics_response_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go index 60bbb53c586..df0bf4aee3b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go index 0f2c32a4ba7..f0b42cc9405 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_my_sql_sql_text_response_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_bucket_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_bucket_details.go index 114ac04df37..63c5e7394c2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_bucket_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_bucket_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_bucket_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_bucket_response_details.go index e6bb9ecbe44..0a996ce324b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_bucket_response_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_bucket_response_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_plan_lines_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_plan_lines_details.go index 324df37dfca..1be660afc82 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_plan_lines_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_plan_lines_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_plan_lines_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_plan_lines_response_details.go index 0064c5fe932..320db297a65 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_plan_lines_response_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_plan_lines_response_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_stats_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_stats_details.go index 87ed4083495..c990c66c67a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_stats_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_stats_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_stats_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_stats_response_details.go index fc1befef281..c5ac113afac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_stats_response_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_stats_response_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_text_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_text_details.go index f3992fed2b1..58ac52da5b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_text_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_text_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_text_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_text_response_details.go index d7410c563c7..743fef6874f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_text_response_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ingest_sql_text_response_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/instance_metrics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/instance_metrics.go index c0862bfab56..664c430498c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/instance_metrics.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/instance_metrics.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/lifecycle_state.go index 1ecd6a80be3..19d48d12dd4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/lifecycle_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/lifecycle_state.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_host_configurations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_host_configurations_request_response.go index 3919a3805ab..b0eeb66a489 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_host_configurations_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_host_configurations_request_response.go @@ -96,6 +96,9 @@ type ListHostConfigurationsRequest struct { // Optional list of Exadata Insight VM cluster name. VmclusterName []string `contributesTo:"query" name:"vmclusterName" collectionFormat:"multi"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -144,6 +147,12 @@ func (request ListHostConfigurationsRequest) ValidateEnumValue() (bool, error) { if _, ok := GetMappingListHostConfigurationsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListHostConfigurationsSortByEnumStringValues(), ","))) } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_hosted_entities_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_hosted_entities_request_response.go index 48890682560..981cfe416ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_hosted_entities_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_hosted_entities_request_response.go @@ -81,6 +81,9 @@ type ListHostedEntitiesRequest struct { // Optional OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id) HostId *string `mandatory:"false" contributesTo:"query" name:"hostId"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -129,6 +132,12 @@ func (request ListHostedEntitiesRequest) ValidateEnumValue() (bool, error) { if _, ok := GetMappingListHostedEntitiesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListHostedEntitiesSortByEnumStringValues(), ","))) } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go index 2dfb8a18c14..cba494593fd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_news_reports_request_response.go @@ -21,7 +21,7 @@ type ListNewsReportsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - // Unique Operations Insights news report identifier + // Unique Ops Insights news report identifier NewsReportId *string `mandatory:"false" contributesTo:"query" name:"newsReportId"` // Resource Status diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_objects.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_objects.go index 3c77399efac..fc3aef5867b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_objects.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_objects.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_operations_insights_warehouses_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_operations_insights_warehouses_request_response.go index 8fa78e123e1..b035bd89e08 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_operations_insights_warehouses_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/list_operations_insights_warehouses_request_response.go @@ -24,7 +24,7 @@ type ListOperationsInsightsWarehousesRequest struct { // A filter to return only resources that match the entire display name. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - // Unique Operations Insights Warehouse identifier + // Unique Ops Insights Warehouse identifier Id *string `mandatory:"false" contributesTo:"query" name:"id"` // Lifecycle states diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_cloud_host_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_cloud_host_configuration_summary.go index 3857c5a7d11..766a8d81732 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_cloud_host_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_cloud_host_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_cloud_host_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_cloud_host_insight.go index 863dfe49686..2d53429900f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_cloud_host_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_cloud_host_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -50,7 +50,7 @@ type MacsManagedCloudHostInsight struct { // The user-friendly name for the host. The name does not have to be unique. HostDisplayName *string `mandatory:"false" json:"hostDisplayName"` - // Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST. + // Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST. HostType *string `mandatory:"false" json:"hostType"` // Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_cloud_host_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_cloud_host_insight_summary.go index 06ce7bdcb3e..3f98fc2c2b7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_cloud_host_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_cloud_host_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -39,7 +39,7 @@ type MacsManagedCloudHostInsightSummary struct { // The user-friendly name for the host. The name does not have to be unique. HostDisplayName *string `mandatory:"false" json:"hostDisplayName"` - // Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST. + // Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST. HostType *string `mandatory:"false" json:"hostType"` // Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types. @@ -75,7 +75,7 @@ type MacsManagedCloudHostInsightSummary struct { // Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. PlatformType MacsManagedCloudHostInsightSummaryPlatformTypeEnum `mandatory:"false" json:"platformType,omitempty"` - // Indicates the status of a host insight in Operations Insights + // Indicates the status of a host insight in Ops Insights Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` // The current state of the host. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_database_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_database_configuration_summary.go index 7c08a609a67..846b9ff92a7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_database_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_database_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -33,7 +33,7 @@ type MacsManagedExternalDatabaseConfigurationSummary struct { // The user-friendly name for the database. The name does not have to be unique. DatabaseDisplayName *string `mandatory:"true" json:"databaseDisplayName"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"true" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_database_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_database_insight.go index b6cbaf1a46a..992c2d0050b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_database_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_database_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -47,7 +47,7 @@ type MacsManagedExternalDatabaseInsight struct { // OCI database resource type DatabaseResourceType *string `mandatory:"true" json:"databaseResourceType"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"false" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_database_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_database_insight_summary.go index 9192a1effd3..b571a932006 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_database_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_database_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -36,7 +36,7 @@ type MacsManagedExternalDatabaseInsightSummary struct { // The user-friendly name for the database. The name does not have to be unique. DatabaseDisplayName *string `mandatory:"false" json:"databaseDisplayName"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"false" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_host_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_host_configuration_summary.go index 29116baaf74..fe3e67f738e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_host_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_host_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_host_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_host_insight.go index 13792e24bc5..f909f52e8e8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_host_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_host_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -47,7 +47,7 @@ type MacsManagedExternalHostInsight struct { // The user-friendly name for the host. The name does not have to be unique. HostDisplayName *string `mandatory:"false" json:"hostDisplayName"` - // Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST. + // Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST. HostType *string `mandatory:"false" json:"hostType"` // Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_host_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_host_insight_summary.go index 0c541de5927..6341cef2c00 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_host_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/macs_managed_external_host_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -36,7 +36,7 @@ type MacsManagedExternalHostInsightSummary struct { // The user-friendly name for the host. The name does not have to be unique. HostDisplayName *string `mandatory:"false" json:"hostDisplayName"` - // Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST. + // Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST. HostType *string `mandatory:"false" json:"hostType"` // Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types. @@ -72,7 +72,7 @@ type MacsManagedExternalHostInsightSummary struct { // Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. PlatformType MacsManagedExternalHostInsightSummaryPlatformTypeEnum `mandatory:"false" json:"platformType,omitempty"` - // Indicates the status of a host insight in Operations Insights + // Indicates the status of a host insight in Ops Insights Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` // The current state of the host. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go index f2cc58b0308..a3dd6ca2265 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/my_sql_sql_text.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/network_usage_trend.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/network_usage_trend.go index 43f2becad35..066584edee9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/network_usage_trend.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/network_usage_trend.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/network_usage_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/network_usage_trend_aggregation.go index f8a9d665ce4..b2b1c31c73d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/network_usage_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/network_usage_trend_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go index 20820763c18..773fc3f0b36 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go index 04d59fe4827..4abef6be400 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_content_types_resource.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go index 684b2bda864..56479dac549 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_frequency.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go index 53a0d4e2471..b8f81b8b784 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_locale.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go index 1cfcbaf16c8..6c9c7541e24 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -55,7 +55,7 @@ type NewsReport struct { // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` - // Indicates the status of a news report in Operations Insights. + // Indicates the status of a news report in Ops Insights. Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` // The time the the news report was first enabled. An RFC3339 formatted datetime string. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go index ceedcf20d7f..484cef84869 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go index 55ef78a37df..992245a13c5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_report_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -55,7 +55,7 @@ type NewsReportSummary struct { // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` - // Indicates the status of a news report in Operations Insights. + // Indicates the status of a news report in Ops Insights. Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` // The time the the news report was first enabled. An RFC3339 formatted datetime string. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go index c7c25911281..e006bca6cb5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_reports.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_sql_insights_content_types_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_sql_insights_content_types_resource.go index 108e76f682d..ce1525e0ed9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_sql_insights_content_types_resource.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/news_sql_insights_content_types_resource.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/object_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/object_summary.go index a8ce2c9f35c..2f9a9332550 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/object_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/object_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operation_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operation_status.go index 26c52219a49..5f2d310b845 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operation_status.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operation_status.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operation_type.go index 7b0eec7c6f0..384d8b4312a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operation_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operation_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint.go index 28c34dad634..b1a3fca7008 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -53,7 +53,7 @@ type OperationsInsightsPrivateEndpoint struct { // A message describing the status of the private endpoint connection of this resource. For example, it can be used to provide actionable information about the validity of the private endpoint connection. PrivateEndpointStatusDetails *string `mandatory:"false" json:"privateEndpointStatusDetails"` - // The flag is to identify if private endpoint is used for rac database or not + // The flag is to identify if private endpoint is used for rac database or not. This flag is deprecated and no longer is used. IsUsedForRacDbs *bool `mandatory:"false" json:"isUsedForRacDbs"` // The OCIDs of the network security groups that the private endpoint belongs to. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint_collection.go index 25b01cfcffe..8511fda5437 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint_lifecycle_state.go index cc1277b4672..9c05f713efd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint_lifecycle_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint_lifecycle_state.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint_summary.go index a87cf52f167..a7f6995b0fb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_private_endpoint_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -41,7 +41,7 @@ type OperationsInsightsPrivateEndpointSummary struct { // Private endpoint lifecycle states LifecycleState OperationsInsightsPrivateEndpointLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The flag to identify if private endpoint is used for rac database or not + // The flag to identify if private endpoint is used for rac database or not. This flag is deprecated and no longer is used. IsUsedForRacDbs *bool `mandatory:"false" json:"isUsedForRacDbs"` // The description of the private endpoint. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse.go index 11b2a218345..01f3c53379f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -26,7 +26,7 @@ type OperationsInsightsWarehouse struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // User-friedly name of Operations Insights Warehouse that does not have to be unique. + // User-friedly name of Ops Insights Warehouse that does not have to be unique. DisplayName *string `mandatory:"true" json:"displayName"` // Number of OCPUs allocated to OPSI Warehouse ADW. @@ -50,10 +50,10 @@ type OperationsInsightsWarehouse struct { // OCID of the dynamic group created for the warehouse DynamicGroupId *string `mandatory:"false" json:"dynamicGroupId"` - // Tenancy Identifier of Operations Insights service + // Tenancy Identifier of Ops Insights service OperationsInsightsTenancyId *string `mandatory:"false" json:"operationsInsightsTenancyId"` - // The time at which the ADW wallet was last rotated for the Operations Insights Warehouse. An RFC3339 formatted datetime string + // The time at which the ADW wallet was last rotated for the Ops Insights Warehouse. An RFC3339 formatted datetime string TimeLastWalletRotated *common.SDKTime `mandatory:"false" json:"timeLastWalletRotated"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_lifecycle_state.go index 345dfc7ecec..f1d9f2969fd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_lifecycle_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_lifecycle_state.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_summary.go index e8185f9a805..bae41c5c3c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -26,7 +26,7 @@ type OperationsInsightsWarehouseSummary struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // User-friedly name of Operations Insights Warehouse that does not have to be unique. + // User-friedly name of Ops Insights Warehouse that does not have to be unique. DisplayName *string `mandatory:"true" json:"displayName"` // Number of OCPUs allocated to OPSI Warehouse ADW. @@ -53,10 +53,10 @@ type OperationsInsightsWarehouseSummary struct { // OCID of the dynamic group created for the warehouse DynamicGroupId *string `mandatory:"false" json:"dynamicGroupId"` - // Tenancy Identifier of Operations Insights service + // Tenancy Identifier of Ops Insights service OperationsInsightsTenancyId *string `mandatory:"false" json:"operationsInsightsTenancyId"` - // The time at which the ADW wallet was last rotated for the Operations Insights Warehouse. An RFC3339 formatted datetime string + // The time at which the ADW wallet was last rotated for the Ops Insights Warehouse. An RFC3339 formatted datetime string TimeLastWalletRotated *common.SDKTime `mandatory:"false" json:"timeLastWalletRotated"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_summary_collection.go index 794f9226ef5..d0e73f1368d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_summary_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_summary_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user.go index 7e7b835c1f2..e193c2654a3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -29,7 +29,7 @@ type OperationsInsightsWarehouseUser struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // Username for schema which would have access to AWR Data, Enterprise Manager Data and Operations Insights OPSI Hub. + // Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. Name *string `mandatory:"true" json:"name"` // Indicate whether user has access to AWR data. @@ -41,7 +41,7 @@ type OperationsInsightsWarehouseUser struct { // Possible lifecycle states LifecycleState OperationsInsightsWarehouseUserLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // User provided connection password for the AWR Data, Enterprise Manager Data and Operations Insights OPSI Hub. + // User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. ConnectionPassword *string `mandatory:"false" json:"connectionPassword"` // Indicate whether user has access to EM data. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user_lifecycle_state.go index bfcf898287c..d624ed41a5d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user_lifecycle_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user_lifecycle_state.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user_summary.go index dcbd2e53d63..7d2d5d7f836 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -29,7 +29,7 @@ type OperationsInsightsWarehouseUserSummary struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // Username for schema which would have access to AWR Data, Enterprise Manager Data and Operations Insights OPSI Hub. + // Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. Name *string `mandatory:"true" json:"name"` // Indicate whether user has access to AWR data. @@ -41,7 +41,7 @@ type OperationsInsightsWarehouseUserSummary struct { // Possible lifecycle states LifecycleState OperationsInsightsWarehouseUserLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // User provided connection password for the AWR Data, Enterprise Manager Data and Operations Insights OPSI Hub. + // User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. ConnectionPassword *string `mandatory:"false" json:"connectionPassword"` // Indicate whether user has access to EM data. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user_summary_collection.go index d866af917e2..e7d5e6638c8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user_summary_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_user_summary_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_users.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_users.go index 2e0107022cc..14c2f496ff2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_users.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouse_users.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouses.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouses.go index 12134d2e61f..54a541d49cb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouses.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/operations_insights_warehouses.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -17,10 +17,10 @@ import ( "strings" ) -// OperationsInsightsWarehouses Logical grouping used for Operations Insights Warehouse operations. +// OperationsInsightsWarehouses Logical grouping used for Ops Insights Warehouse operations. type OperationsInsightsWarehouses struct { - // Operations Insights Warehouse Object. + // Ops Insights Warehouse Object. OperationsInsightsWarehouses *interface{} `mandatory:"false" json:"operationsInsightsWarehouses"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration.go index 6203bf78127..b4fd6c012f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_basic_configuration_item_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_basic_configuration_item_summary.go index d07d2b8e8b6..3a858260508 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_basic_configuration_item_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_basic_configuration_item_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -18,7 +18,7 @@ import ( "strings" ) -// OpsiConfigurationBasicConfigurationItemSummary Basic configuration item summary. Value and defaultValue fields will contain the custom value stored in the resource and default value from Operations Insights respectively. +// OpsiConfigurationBasicConfigurationItemSummary Basic configuration item summary. Value and defaultValue fields will contain the custom value stored in the resource and default value from Ops Insights respectively. type OpsiConfigurationBasicConfigurationItemSummary struct { // Name of configuration item. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_configuration_item_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_configuration_item_summary.go index de620f4a63f..9cfee3247c9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_configuration_item_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_configuration_item_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_lifecycle_state.go index 8572076a0d2..13af7eb1392 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_lifecycle_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_lifecycle_state.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_summary.go index 78cec7245a3..ee7e38b064a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_type.go index e40007b8595..865744a4249 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configuration_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configurations.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configurations.go index d34fae8e726..c36af95133e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configurations.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configurations.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configurations_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configurations_collection.go index af8faf86c33..54c413a4aa2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configurations_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_configurations_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object.go index 9ada8c7708d..3a809803752 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_details_in_query.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_details_in_query.go index 6d8fa6d633d..f8ad01ee667 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_details_in_query.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_details_in_query.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_details_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_details_target.go index 1469d3e5b8f..9663923e438 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_details_target.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_details_target.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_query_param.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_query_param.go index 55e93716fac..4cf1b7cb185 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_query_param.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_query_param.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_summary.go index bf3c9006e40..8eee7fe5b02 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_supported_query_param.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_supported_query_param.go index 1823ac1e101..21132b7853a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_supported_query_param.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_supported_query_param.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_type.go index 75040b2e8bc..25cf3b8ac18 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_type.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_type_opsi_data_object_details_in_query.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_type_opsi_data_object_details_in_query.go index a9c19b9c137..b6361670408 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_type_opsi_data_object_details_in_query.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_object_type_opsi_data_object_details_in_query.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_objects.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_objects.go index 21795d95385..cef7158bd1d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_objects.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_objects.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_objects_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_objects_collection.go index f64c8266d54..5b4637ace50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_objects_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_data_objects_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_operationsinsights_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_operationsinsights_client.go index cbf05275f04..1222ad04688 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_operationsinsights_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_operationsinsights_client.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -147,7 +147,7 @@ func (client OperationsInsightsClient) addExadataInsightMembers(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/AddExadataInsightMembers" err = common.PostProcessServiceError(err, "OperationsInsights", "AddExadataInsightMembers", apiReferenceLink) return response, err } @@ -210,7 +210,7 @@ func (client OperationsInsightsClient) changeAutonomousDatabaseInsightAdvancedFe defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ChangeAutonomousDatabaseInsightAdvancedFeatures" err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeAutonomousDatabaseInsightAdvancedFeatures", apiReferenceLink) return response, err } @@ -273,7 +273,7 @@ func (client OperationsInsightsClient) changeAwrHubSourceCompartment(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/ChangeAwrHubSourceCompartment" err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeAwrHubSourceCompartment", apiReferenceLink) return response, err } @@ -336,7 +336,7 @@ func (client OperationsInsightsClient) changeDatabaseInsightCompartment(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ChangeDatabaseInsightCompartment" err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeDatabaseInsightCompartment", apiReferenceLink) return response, err } @@ -394,7 +394,7 @@ func (client OperationsInsightsClient) changeEnterpriseManagerBridgeCompartment( defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/ChangeEnterpriseManagerBridgeCompartment" err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeEnterpriseManagerBridgeCompartment", apiReferenceLink) return response, err } @@ -457,7 +457,7 @@ func (client OperationsInsightsClient) changeExadataInsightCompartment(ctx conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/ChangeExadataInsightCompartment" err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeExadataInsightCompartment", apiReferenceLink) return response, err } @@ -520,7 +520,7 @@ func (client OperationsInsightsClient) changeHostInsightCompartment(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ChangeHostInsightCompartment" err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeHostInsightCompartment", apiReferenceLink) return response, err } @@ -583,7 +583,7 @@ func (client OperationsInsightsClient) changeNewsReportCompartment(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/ChangeNewsReportCompartment" err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeNewsReportCompartment", apiReferenceLink) return response, err } @@ -646,7 +646,7 @@ func (client OperationsInsightsClient) changeOperationsInsightsPrivateEndpointCo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/ChangeOperationsInsightsPrivateEndpointCompartment" err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeOperationsInsightsPrivateEndpointCompartment", apiReferenceLink) return response, err } @@ -709,7 +709,7 @@ func (client OperationsInsightsClient) changeOperationsInsightsWarehouseCompartm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/ChangeOperationsInsightsWarehouseCompartment" err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeOperationsInsightsWarehouseCompartment", apiReferenceLink) return response, err } @@ -772,7 +772,7 @@ func (client OperationsInsightsClient) changeOpsiConfigurationCompartment(ctx co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/ChangeOpsiConfigurationCompartment" err = common.PostProcessServiceError(err, "OperationsInsights", "ChangeOpsiConfigurationCompartment", apiReferenceLink) return response, err } @@ -835,7 +835,7 @@ func (client OperationsInsightsClient) changePeComanagedDatabaseInsight(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ChangePeComanagedDatabaseInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "ChangePeComanagedDatabaseInsight", apiReferenceLink) return response, err } @@ -899,7 +899,7 @@ func (client OperationsInsightsClient) createAwrHub(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/CreateAwrHub" err = common.PostProcessServiceError(err, "OperationsInsights", "CreateAwrHub", apiReferenceLink) return response, err } @@ -962,7 +962,7 @@ func (client OperationsInsightsClient) createAwrHubSource(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/CreateAwrHubSource" err = common.PostProcessServiceError(err, "OperationsInsights", "CreateAwrHubSource", apiReferenceLink) return response, err } @@ -1025,7 +1025,7 @@ func (client OperationsInsightsClient) createDatabaseInsight(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/CreateDatabaseInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "CreateDatabaseInsight", apiReferenceLink) return response, err } @@ -1088,7 +1088,7 @@ func (client OperationsInsightsClient) createEnterpriseManagerBridge(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/CreateEnterpriseManagerBridge" err = common.PostProcessServiceError(err, "OperationsInsights", "CreateEnterpriseManagerBridge", apiReferenceLink) return response, err } @@ -1151,7 +1151,7 @@ func (client OperationsInsightsClient) createExadataInsight(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/CreateExadataInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "CreateExadataInsight", apiReferenceLink) return response, err } @@ -1160,7 +1160,7 @@ func (client OperationsInsightsClient) createExadataInsight(ctx context.Context, return response, err } -// CreateHostInsight Create a Host Insight resource for a host in Operations Insights. The host will be enabled in Operations Insights. Host metric collection and analysis will be started. +// CreateHostInsight Create a Host Insight resource for a host in Ops Insights. The host will be enabled in Ops Insights. Host metric collection and analysis will be started. // // # See also // @@ -1214,7 +1214,7 @@ func (client OperationsInsightsClient) createHostInsight(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/CreateHostInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "CreateHostInsight", apiReferenceLink) return response, err } @@ -1223,7 +1223,7 @@ func (client OperationsInsightsClient) createHostInsight(ctx context.Context, re return response, err } -// CreateNewsReport Create a news report in Operations Insights. The report will be enabled in Operations Insights. Insights will be emailed as per selected frequency. +// CreateNewsReport Create a news report in Ops Insights. The report will be enabled in Ops Insights. Insights will be emailed as per selected frequency. // // # See also // @@ -1277,7 +1277,7 @@ func (client OperationsInsightsClient) createNewsReport(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/CreateNewsReport" err = common.PostProcessServiceError(err, "OperationsInsights", "CreateNewsReport", apiReferenceLink) return response, err } @@ -1286,7 +1286,7 @@ func (client OperationsInsightsClient) createNewsReport(ctx context.Context, req return response, err } -// CreateOperationsInsightsPrivateEndpoint Create a private endpoint resource for the tenant in Operations Insights. +// CreateOperationsInsightsPrivateEndpoint Create a private endpoint resource for the tenant in Ops Insights. // This resource will be created in customer compartment. // // # See also @@ -1341,7 +1341,7 @@ func (client OperationsInsightsClient) createOperationsInsightsPrivateEndpoint(c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/CreateOperationsInsightsPrivateEndpoint" err = common.PostProcessServiceError(err, "OperationsInsights", "CreateOperationsInsightsPrivateEndpoint", apiReferenceLink) return response, err } @@ -1350,7 +1350,7 @@ func (client OperationsInsightsClient) createOperationsInsightsPrivateEndpoint(c return response, err } -// CreateOperationsInsightsWarehouse Create a Operations Insights Warehouse resource for the tenant in Operations Insights. New ADW will be provisioned for this tenant. +// CreateOperationsInsightsWarehouse Create a Ops Insights Warehouse resource for the tenant in Ops Insights. New ADW will be provisioned for this tenant. // There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment. If the 'opsi-warehouse-type' // header is passed to the API, a warehouse resource without ADW or Schema provisioning is created. // @@ -1406,7 +1406,7 @@ func (client OperationsInsightsClient) createOperationsInsightsWarehouse(ctx con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/CreateOperationsInsightsWarehouse" err = common.PostProcessServiceError(err, "OperationsInsights", "CreateOperationsInsightsWarehouse", apiReferenceLink) return response, err } @@ -1470,7 +1470,7 @@ func (client OperationsInsightsClient) createOperationsInsightsWarehouseUser(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/CreateOperationsInsightsWarehouseUser" err = common.PostProcessServiceError(err, "OperationsInsights", "CreateOperationsInsightsWarehouseUser", apiReferenceLink) return response, err } @@ -1533,7 +1533,7 @@ func (client OperationsInsightsClient) createOpsiConfiguration(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/CreateOpsiConfiguration" err = common.PostProcessServiceError(err, "OperationsInsights", "CreateOpsiConfiguration", apiReferenceLink) return response, err } @@ -1591,7 +1591,7 @@ func (client OperationsInsightsClient) deleteAwrHub(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/DeleteAwrHub" err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteAwrHub", apiReferenceLink) return response, err } @@ -1649,7 +1649,7 @@ func (client OperationsInsightsClient) deleteAwrHubObject(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/DeleteAwrHubObject" err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteAwrHubObject", apiReferenceLink) return response, err } @@ -1707,7 +1707,7 @@ func (client OperationsInsightsClient) deleteAwrHubSource(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/DeleteAwrHubSource" err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteAwrHubSource", apiReferenceLink) return response, err } @@ -1765,7 +1765,7 @@ func (client OperationsInsightsClient) deleteDatabaseInsight(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/DeleteDatabaseInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteDatabaseInsight", apiReferenceLink) return response, err } @@ -1823,7 +1823,7 @@ func (client OperationsInsightsClient) deleteEnterpriseManagerBridge(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/DeleteEnterpriseManagerBridge" err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteEnterpriseManagerBridge", apiReferenceLink) return response, err } @@ -1881,7 +1881,7 @@ func (client OperationsInsightsClient) deleteExadataInsight(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/DeleteExadataInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteExadataInsight", apiReferenceLink) return response, err } @@ -1939,7 +1939,7 @@ func (client OperationsInsightsClient) deleteHostInsight(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/DeleteHostInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteHostInsight", apiReferenceLink) return response, err } @@ -1997,7 +1997,7 @@ func (client OperationsInsightsClient) deleteNewsReport(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/DeleteNewsReport" err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteNewsReport", apiReferenceLink) return response, err } @@ -2055,7 +2055,7 @@ func (client OperationsInsightsClient) deleteOperationsInsightsPrivateEndpoint(c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/DeleteOperationsInsightsPrivateEndpoint" err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteOperationsInsightsPrivateEndpoint", apiReferenceLink) return response, err } @@ -2116,7 +2116,7 @@ func (client OperationsInsightsClient) deleteOperationsInsightsWarehouse(ctx con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/DeleteOperationsInsightsWarehouse" err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteOperationsInsightsWarehouse", apiReferenceLink) return response, err } @@ -2174,7 +2174,7 @@ func (client OperationsInsightsClient) deleteOperationsInsightsWarehouseUser(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/DeleteOperationsInsightsWarehouseUser" err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteOperationsInsightsWarehouseUser", apiReferenceLink) return response, err } @@ -2232,7 +2232,7 @@ func (client OperationsInsightsClient) deleteOpsiConfiguration(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/DeleteOpsiConfiguration" err = common.PostProcessServiceError(err, "OperationsInsights", "DeleteOpsiConfiguration", apiReferenceLink) return response, err } @@ -2295,7 +2295,7 @@ func (client OperationsInsightsClient) disableAutonomousDatabaseInsightAdvancedF defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/DisableAutonomousDatabaseInsightAdvancedFeatures" err = common.PostProcessServiceError(err, "OperationsInsights", "DisableAutonomousDatabaseInsightAdvancedFeatures", apiReferenceLink) return response, err } @@ -2358,7 +2358,7 @@ func (client OperationsInsightsClient) disableAwrHubSource(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/DisableAwrHubSource" err = common.PostProcessServiceError(err, "OperationsInsights", "DisableAwrHubSource", apiReferenceLink) return response, err } @@ -2421,7 +2421,7 @@ func (client OperationsInsightsClient) disableDatabaseInsight(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/DisableDatabaseInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "DisableDatabaseInsight", apiReferenceLink) return response, err } @@ -2484,7 +2484,7 @@ func (client OperationsInsightsClient) disableExadataInsight(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/DisableExadataInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "DisableExadataInsight", apiReferenceLink) return response, err } @@ -2493,7 +2493,7 @@ func (client OperationsInsightsClient) disableExadataInsight(ctx context.Context return response, err } -// DisableHostInsight Disables a host in Operations Insights. Host metric collection and analysis will be stopped. +// DisableHostInsight Disables a host in Ops Insights. Host metric collection and analysis will be stopped. // // # See also // @@ -2547,7 +2547,7 @@ func (client OperationsInsightsClient) disableHostInsight(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/DisableHostInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "DisableHostInsight", apiReferenceLink) return response, err } @@ -2609,7 +2609,7 @@ func (client OperationsInsightsClient) downloadOperationsInsightsWarehouseWallet httpResponse, err = client.Call(ctx, &httpRequest) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/DownloadOperationsInsightsWarehouseWallet" err = common.PostProcessServiceError(err, "OperationsInsights", "DownloadOperationsInsightsWarehouseWallet", apiReferenceLink) return response, err } @@ -2672,7 +2672,7 @@ func (client OperationsInsightsClient) enableAutonomousDatabaseInsightAdvancedFe defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/EnableAutonomousDatabaseInsightAdvancedFeatures" err = common.PostProcessServiceError(err, "OperationsInsights", "EnableAutonomousDatabaseInsightAdvancedFeatures", apiReferenceLink) return response, err } @@ -2735,7 +2735,7 @@ func (client OperationsInsightsClient) enableAwrHubSource(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/EnableAwrHubSource" err = common.PostProcessServiceError(err, "OperationsInsights", "EnableAwrHubSource", apiReferenceLink) return response, err } @@ -2798,7 +2798,7 @@ func (client OperationsInsightsClient) enableDatabaseInsight(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/EnableDatabaseInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "EnableDatabaseInsight", apiReferenceLink) return response, err } @@ -2861,7 +2861,7 @@ func (client OperationsInsightsClient) enableExadataInsight(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/EnableExadataInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "EnableExadataInsight", apiReferenceLink) return response, err } @@ -2870,7 +2870,7 @@ func (client OperationsInsightsClient) enableExadataInsight(ctx context.Context, return response, err } -// EnableHostInsight Enables a host in Operations Insights. Host metric collection and analysis will be started. +// EnableHostInsight Enables a host in Ops Insights. Host metric collection and analysis will be started. // // # See also // @@ -2924,7 +2924,7 @@ func (client OperationsInsightsClient) enableHostInsight(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/EnableHostInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "EnableHostInsight", apiReferenceLink) return response, err } @@ -2982,7 +2982,7 @@ func (client OperationsInsightsClient) getAwrDatabaseReport(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/GetAwrDatabaseReport" err = common.PostProcessServiceError(err, "OperationsInsights", "GetAwrDatabaseReport", apiReferenceLink) return response, err } @@ -3040,7 +3040,7 @@ func (client OperationsInsightsClient) getAwrDatabaseSqlReport(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/GetAwrDatabaseSqlReport" err = common.PostProcessServiceError(err, "OperationsInsights", "GetAwrDatabaseSqlReport", apiReferenceLink) return response, err } @@ -3098,7 +3098,7 @@ func (client OperationsInsightsClient) getAwrHub(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/GetAwrHub" err = common.PostProcessServiceError(err, "OperationsInsights", "GetAwrHub", apiReferenceLink) return response, err } @@ -3155,7 +3155,7 @@ func (client OperationsInsightsClient) getAwrHubObject(ctx context.Context, requ httpResponse, err = client.Call(ctx, &httpRequest) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/GetAwrHubObject" err = common.PostProcessServiceError(err, "OperationsInsights", "GetAwrHubObject", apiReferenceLink) return response, err } @@ -3213,7 +3213,7 @@ func (client OperationsInsightsClient) getAwrHubSource(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/GetAwrHubSource" err = common.PostProcessServiceError(err, "OperationsInsights", "GetAwrHubSource", apiReferenceLink) return response, err } @@ -3272,7 +3272,7 @@ func (client OperationsInsightsClient) getAwrReport(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/GetAwrReport" err = common.PostProcessServiceError(err, "OperationsInsights", "GetAwrReport", apiReferenceLink) return response, err } @@ -3330,7 +3330,7 @@ func (client OperationsInsightsClient) getDatabaseInsight(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/GetDatabaseInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "GetDatabaseInsight", apiReferenceLink) return response, err } @@ -3388,7 +3388,7 @@ func (client OperationsInsightsClient) getEnterpriseManagerBridge(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/GetEnterpriseManagerBridge" err = common.PostProcessServiceError(err, "OperationsInsights", "GetEnterpriseManagerBridge", apiReferenceLink) return response, err } @@ -3446,7 +3446,7 @@ func (client OperationsInsightsClient) getExadataInsight(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/GetExadataInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "GetExadataInsight", apiReferenceLink) return response, err } @@ -3504,7 +3504,7 @@ func (client OperationsInsightsClient) getHostInsight(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/GetHostInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "GetHostInsight", apiReferenceLink) return response, err } @@ -3562,7 +3562,7 @@ func (client OperationsInsightsClient) getNewsReport(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/GetNewsReport" err = common.PostProcessServiceError(err, "OperationsInsights", "GetNewsReport", apiReferenceLink) return response, err } @@ -3620,7 +3620,7 @@ func (client OperationsInsightsClient) getOperationsInsightsPrivateEndpoint(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/GetOperationsInsightsPrivateEndpoint" err = common.PostProcessServiceError(err, "OperationsInsights", "GetOperationsInsightsPrivateEndpoint", apiReferenceLink) return response, err } @@ -3629,7 +3629,7 @@ func (client OperationsInsightsClient) getOperationsInsightsPrivateEndpoint(ctx return response, err } -// GetOperationsInsightsWarehouse Gets details of an Operations Insights Warehouse. +// GetOperationsInsightsWarehouse Gets details of an Ops Insights Warehouse. // There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment. // // # See also @@ -3679,7 +3679,7 @@ func (client OperationsInsightsClient) getOperationsInsightsWarehouse(ctx contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/GetOperationsInsightsWarehouse" err = common.PostProcessServiceError(err, "OperationsInsights", "GetOperationsInsightsWarehouse", apiReferenceLink) return response, err } @@ -3737,7 +3737,7 @@ func (client OperationsInsightsClient) getOperationsInsightsWarehouseUser(ctx co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/GetOperationsInsightsWarehouseUser" err = common.PostProcessServiceError(err, "OperationsInsights", "GetOperationsInsightsWarehouseUser", apiReferenceLink) return response, err } @@ -3797,7 +3797,7 @@ func (client OperationsInsightsClient) getOpsiConfiguration(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/GetOpsiConfiguration" err = common.PostProcessServiceError(err, "OperationsInsights", "GetOpsiConfiguration", apiReferenceLink) return response, err } @@ -3855,7 +3855,7 @@ func (client OperationsInsightsClient) getOpsiDataObject(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiDataObjects/GetOpsiDataObject" err = common.PostProcessServiceError(err, "OperationsInsights", "GetOpsiDataObject", apiReferenceLink) return response, err } @@ -3913,7 +3913,7 @@ func (client OperationsInsightsClient) getWorkRequest(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/WorkRequests/GetWorkRequest" err = common.PostProcessServiceError(err, "OperationsInsights", "GetWorkRequest", apiReferenceLink) return response, err } @@ -3971,7 +3971,7 @@ func (client OperationsInsightsClient) headAwrHubObject(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/HeadAwrHubObject" err = common.PostProcessServiceError(err, "OperationsInsights", "HeadAwrHubObject", apiReferenceLink) return response, err } @@ -4035,7 +4035,7 @@ func (client OperationsInsightsClient) ingestAddmReports(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestAddmReports" err = common.PostProcessServiceError(err, "OperationsInsights", "IngestAddmReports", apiReferenceLink) return response, err } @@ -4098,7 +4098,7 @@ func (client OperationsInsightsClient) ingestDatabaseConfiguration(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestDatabaseConfiguration" err = common.PostProcessServiceError(err, "OperationsInsights", "IngestDatabaseConfiguration", apiReferenceLink) return response, err } @@ -4161,7 +4161,7 @@ func (client OperationsInsightsClient) ingestHostConfiguration(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/IngestHostConfiguration" err = common.PostProcessServiceError(err, "OperationsInsights", "IngestHostConfiguration", apiReferenceLink) return response, err } @@ -4224,7 +4224,7 @@ func (client OperationsInsightsClient) ingestHostMetrics(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/IngestHostMetrics" err = common.PostProcessServiceError(err, "OperationsInsights", "IngestHostMetrics", apiReferenceLink) return response, err } @@ -4233,7 +4233,7 @@ func (client OperationsInsightsClient) ingestHostMetrics(ctx context.Context, re return response, err } -// IngestSqlBucket The sqlbucket endpoint takes in a JSON payload, persists it in Operations Insights ingest pipeline. +// IngestSqlBucket The sqlbucket endpoint takes in a JSON payload, persists it in Ops Insights ingest pipeline. // Either databaseId or id must be specified. // // # See also @@ -4288,7 +4288,7 @@ func (client OperationsInsightsClient) ingestSqlBucket(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestSqlBucket" err = common.PostProcessServiceError(err, "OperationsInsights", "IngestSqlBucket", apiReferenceLink) return response, err } @@ -4352,7 +4352,7 @@ func (client OperationsInsightsClient) ingestSqlPlanLines(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestSqlPlanLines" err = common.PostProcessServiceError(err, "OperationsInsights", "IngestSqlPlanLines", apiReferenceLink) return response, err } @@ -4361,7 +4361,7 @@ func (client OperationsInsightsClient) ingestSqlPlanLines(ctx context.Context, r return response, err } -// IngestSqlStats The SQL Stats endpoint takes in a JSON payload, persists it in Operations Insights ingest pipeline. +// IngestSqlStats The SQL Stats endpoint takes in a JSON payload, persists it in Ops Insights ingest pipeline. // Either databaseId or id must be specified. // // # See also @@ -4416,7 +4416,7 @@ func (client OperationsInsightsClient) ingestSqlStats(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestSqlStats" err = common.PostProcessServiceError(err, "OperationsInsights", "IngestSqlStats", apiReferenceLink) return response, err } @@ -4481,7 +4481,7 @@ func (client OperationsInsightsClient) ingestSqlText(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/IngestSqlText" err = common.PostProcessServiceError(err, "OperationsInsights", "IngestSqlText", apiReferenceLink) return response, err } @@ -4539,7 +4539,7 @@ func (client OperationsInsightsClient) listAddmDbFindingCategories(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbFindingCategories" err = common.PostProcessServiceError(err, "OperationsInsights", "ListAddmDbFindingCategories", apiReferenceLink) return response, err } @@ -4597,7 +4597,7 @@ func (client OperationsInsightsClient) listAddmDbFindingsTimeSeries(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbFindingsTimeSeries" err = common.PostProcessServiceError(err, "OperationsInsights", "ListAddmDbFindingsTimeSeries", apiReferenceLink) return response, err } @@ -4655,7 +4655,7 @@ func (client OperationsInsightsClient) listAddmDbParameterCategories(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbParameterCategories" err = common.PostProcessServiceError(err, "OperationsInsights", "ListAddmDbParameterCategories", apiReferenceLink) return response, err } @@ -4713,7 +4713,7 @@ func (client OperationsInsightsClient) listAddmDbRecommendationCategories(ctx co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbRecommendationCategories" err = common.PostProcessServiceError(err, "OperationsInsights", "ListAddmDbRecommendationCategories", apiReferenceLink) return response, err } @@ -4771,7 +4771,7 @@ func (client OperationsInsightsClient) listAddmDbRecommendationsTimeSeries(ctx c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbRecommendationsTimeSeries" err = common.PostProcessServiceError(err, "OperationsInsights", "ListAddmDbRecommendationsTimeSeries", apiReferenceLink) return response, err } @@ -4829,7 +4829,7 @@ func (client OperationsInsightsClient) listAddmDbs(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListAddmDbs" err = common.PostProcessServiceError(err, "OperationsInsights", "ListAddmDbs", apiReferenceLink) return response, err } @@ -4887,7 +4887,7 @@ func (client OperationsInsightsClient) listAwrDatabaseSnapshots(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/ListAwrDatabaseSnapshots" err = common.PostProcessServiceError(err, "OperationsInsights", "ListAwrDatabaseSnapshots", apiReferenceLink) return response, err } @@ -4945,7 +4945,7 @@ func (client OperationsInsightsClient) listAwrDatabases(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/ListAwrDatabases" err = common.PostProcessServiceError(err, "OperationsInsights", "ListAwrDatabases", apiReferenceLink) return response, err } @@ -5003,7 +5003,7 @@ func (client OperationsInsightsClient) listAwrHubObjects(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/ListAwrHubObjects" err = common.PostProcessServiceError(err, "OperationsInsights", "ListAwrHubObjects", apiReferenceLink) return response, err } @@ -5061,7 +5061,7 @@ func (client OperationsInsightsClient) listAwrHubSources(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/ListAwrHubSources" err = common.PostProcessServiceError(err, "OperationsInsights", "ListAwrHubSources", apiReferenceLink) return response, err } @@ -5119,7 +5119,7 @@ func (client OperationsInsightsClient) listAwrHubs(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/ListAwrHubs" err = common.PostProcessServiceError(err, "OperationsInsights", "ListAwrHubs", apiReferenceLink) return response, err } @@ -5178,7 +5178,7 @@ func (client OperationsInsightsClient) listAwrSnapshots(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/ListAwrSnapshots" err = common.PostProcessServiceError(err, "OperationsInsights", "ListAwrSnapshots", apiReferenceLink) return response, err } @@ -5237,7 +5237,7 @@ func (client OperationsInsightsClient) listDatabaseConfigurations(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListDatabaseConfigurations" err = common.PostProcessServiceError(err, "OperationsInsights", "ListDatabaseConfigurations", apiReferenceLink) return response, err } @@ -5296,7 +5296,7 @@ func (client OperationsInsightsClient) listDatabaseInsights(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListDatabaseInsights" err = common.PostProcessServiceError(err, "OperationsInsights", "ListDatabaseInsights", apiReferenceLink) return response, err } @@ -5305,7 +5305,7 @@ func (client OperationsInsightsClient) listDatabaseInsights(ctx context.Context, return response, err } -// ListEnterpriseManagerBridges Gets a list of Operations Insights Enterprise Manager bridges. Either compartmentId or id must be specified. +// ListEnterpriseManagerBridges Gets a list of Ops Insights Enterprise Manager bridges. Either compartmentId or id must be specified. // When both compartmentId and compartmentIdInSubtree are specified, a list of bridges in that compartment and in all sub-compartments will be returned. // // # See also @@ -5355,7 +5355,7 @@ func (client OperationsInsightsClient) listEnterpriseManagerBridges(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/ListEnterpriseManagerBridges" err = common.PostProcessServiceError(err, "OperationsInsights", "ListEnterpriseManagerBridges", apiReferenceLink) return response, err } @@ -5413,7 +5413,7 @@ func (client OperationsInsightsClient) listExadataConfigurations(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/ListExadataConfigurations" err = common.PostProcessServiceError(err, "OperationsInsights", "ListExadataConfigurations", apiReferenceLink) return response, err } @@ -5472,7 +5472,7 @@ func (client OperationsInsightsClient) listExadataInsights(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/ListExadataInsights" err = common.PostProcessServiceError(err, "OperationsInsights", "ListExadataInsights", apiReferenceLink) return response, err } @@ -5531,7 +5531,7 @@ func (client OperationsInsightsClient) listHostConfigurations(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListHostConfigurations" err = common.PostProcessServiceError(err, "OperationsInsights", "ListHostConfigurations", apiReferenceLink) return response, err } @@ -5590,7 +5590,7 @@ func (client OperationsInsightsClient) listHostInsights(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListHostInsights" err = common.PostProcessServiceError(err, "OperationsInsights", "ListHostInsights", apiReferenceLink) return response, err } @@ -5648,7 +5648,7 @@ func (client OperationsInsightsClient) listHostedEntities(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListHostedEntities" err = common.PostProcessServiceError(err, "OperationsInsights", "ListHostedEntities", apiReferenceLink) return response, err } @@ -5710,7 +5710,7 @@ func (client OperationsInsightsClient) listImportableAgentEntities(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListImportableAgentEntities" err = common.PostProcessServiceError(err, "OperationsInsights", "ListImportableAgentEntities", apiReferenceLink) return response, err } @@ -5774,7 +5774,7 @@ func (client OperationsInsightsClient) listImportableComputeEntities(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/ListImportableComputeEntities" err = common.PostProcessServiceError(err, "OperationsInsights", "ListImportableComputeEntities", apiReferenceLink) return response, err } @@ -5832,7 +5832,7 @@ func (client OperationsInsightsClient) listImportableEnterpriseManagerEntities(c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/ListImportableEnterpriseManagerEntities" err = common.PostProcessServiceError(err, "OperationsInsights", "ListImportableEnterpriseManagerEntities", apiReferenceLink) return response, err } @@ -5890,7 +5890,7 @@ func (client OperationsInsightsClient) listNewsReports(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReport/ListNewsReports" err = common.PostProcessServiceError(err, "OperationsInsights", "ListNewsReports", apiReferenceLink) return response, err } @@ -5948,7 +5948,7 @@ func (client OperationsInsightsClient) listOperationsInsightsPrivateEndpoints(ct defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/ListOperationsInsightsPrivateEndpoints" err = common.PostProcessServiceError(err, "OperationsInsights", "ListOperationsInsightsPrivateEndpoints", apiReferenceLink) return response, err } @@ -6006,7 +6006,7 @@ func (client OperationsInsightsClient) listOperationsInsightsWarehouseUsers(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/ListOperationsInsightsWarehouseUsers" err = common.PostProcessServiceError(err, "OperationsInsights", "ListOperationsInsightsWarehouseUsers", apiReferenceLink) return response, err } @@ -6015,7 +6015,7 @@ func (client OperationsInsightsClient) listOperationsInsightsWarehouseUsers(ctx return response, err } -// ListOperationsInsightsWarehouses Gets a list of Operations Insights warehouses. Either compartmentId or id must be specified. +// ListOperationsInsightsWarehouses Gets a list of Ops Insights warehouses. Either compartmentId or id must be specified. // There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment. // // # See also @@ -6065,7 +6065,7 @@ func (client OperationsInsightsClient) listOperationsInsightsWarehouses(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/ListOperationsInsightsWarehouses" err = common.PostProcessServiceError(err, "OperationsInsights", "ListOperationsInsightsWarehouses", apiReferenceLink) return response, err } @@ -6123,7 +6123,7 @@ func (client OperationsInsightsClient) listOpsiConfigurations(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/ListOpsiConfigurations" err = common.PostProcessServiceError(err, "OperationsInsights", "ListOpsiConfigurations", apiReferenceLink) return response, err } @@ -6181,7 +6181,7 @@ func (client OperationsInsightsClient) listOpsiDataObjects(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiDataObjects/ListOpsiDataObjects" err = common.PostProcessServiceError(err, "OperationsInsights", "ListOpsiDataObjects", apiReferenceLink) return response, err } @@ -6240,7 +6240,7 @@ func (client OperationsInsightsClient) listSqlPlans(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListSqlPlans" err = common.PostProcessServiceError(err, "OperationsInsights", "ListSqlPlans", apiReferenceLink) return response, err } @@ -6299,7 +6299,7 @@ func (client OperationsInsightsClient) listSqlSearches(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListSqlSearches" err = common.PostProcessServiceError(err, "OperationsInsights", "ListSqlSearches", apiReferenceLink) return response, err } @@ -6357,7 +6357,7 @@ func (client OperationsInsightsClient) listSqlTexts(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ListSqlTexts" err = common.PostProcessServiceError(err, "OperationsInsights", "ListSqlTexts", apiReferenceLink) return response, err } @@ -6415,7 +6415,7 @@ func (client OperationsInsightsClient) listWarehouseDataObjects(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiWarehouseDataObjects/ListWarehouseDataObjects" err = common.PostProcessServiceError(err, "OperationsInsights", "ListWarehouseDataObjects", apiReferenceLink) return response, err } @@ -6473,7 +6473,7 @@ func (client OperationsInsightsClient) listWorkRequestErrors(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/WorkRequests/ListWorkRequestErrors" err = common.PostProcessServiceError(err, "OperationsInsights", "ListWorkRequestErrors", apiReferenceLink) return response, err } @@ -6531,7 +6531,7 @@ func (client OperationsInsightsClient) listWorkRequestLogs(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/WorkRequests/ListWorkRequestLogs" err = common.PostProcessServiceError(err, "OperationsInsights", "ListWorkRequestLogs", apiReferenceLink) return response, err } @@ -6589,7 +6589,7 @@ func (client OperationsInsightsClient) listWorkRequests(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/WorkRequests/ListWorkRequests" err = common.PostProcessServiceError(err, "OperationsInsights", "ListWorkRequests", apiReferenceLink) return response, err } @@ -6657,7 +6657,7 @@ func (client OperationsInsightsClient) putAwrHubObject(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubObjects/PutAwrHubObject" err = common.PostProcessServiceError(err, "OperationsInsights", "PutAwrHubObject", apiReferenceLink) return response, err } @@ -6716,7 +6716,7 @@ func (client OperationsInsightsClient) queryOpsiDataObjectData(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiDataObjects/QueryOpsiDataObjectData" err = common.PostProcessServiceError(err, "OperationsInsights", "QueryOpsiDataObjectData", apiReferenceLink) return response, err } @@ -6775,7 +6775,7 @@ func (client OperationsInsightsClient) queryWarehouseDataObjectData(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiWarehouseDataObjects/QueryWarehouseDataObjectData" err = common.PostProcessServiceError(err, "OperationsInsights", "QueryWarehouseDataObjectData", apiReferenceLink) return response, err } @@ -6833,7 +6833,7 @@ func (client OperationsInsightsClient) rotateOperationsInsightsWarehouseWallet(c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/RotateOperationsInsightsWarehouseWallet" err = common.PostProcessServiceError(err, "OperationsInsights", "RotateOperationsInsightsWarehouseWallet", apiReferenceLink) return response, err } @@ -6891,7 +6891,7 @@ func (client OperationsInsightsClient) summarizeAddmDbFindings(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbFindings" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAddmDbFindings", apiReferenceLink) return response, err } @@ -6951,7 +6951,7 @@ func (client OperationsInsightsClient) summarizeAddmDbParameterChanges(ctx conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbParameterChanges" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAddmDbParameterChanges", apiReferenceLink) return response, err } @@ -7012,7 +7012,7 @@ func (client OperationsInsightsClient) summarizeAddmDbParameters(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbParameters" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAddmDbParameters", apiReferenceLink) return response, err } @@ -7070,7 +7070,7 @@ func (client OperationsInsightsClient) summarizeAddmDbRecommendations(ctx contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbRecommendations" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAddmDbRecommendations", apiReferenceLink) return response, err } @@ -7128,7 +7128,7 @@ func (client OperationsInsightsClient) summarizeAddmDbSchemaObjects(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbSchemaObjects" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAddmDbSchemaObjects", apiReferenceLink) return response, err } @@ -7186,7 +7186,7 @@ func (client OperationsInsightsClient) summarizeAddmDbSqlStatements(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeAddmDbSqlStatements" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAddmDbSqlStatements", apiReferenceLink) return response, err } @@ -7248,7 +7248,7 @@ func (client OperationsInsightsClient) summarizeAwrDatabaseCpuUsages(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseCpuUsages" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAwrDatabaseCpuUsages", apiReferenceLink) return response, err } @@ -7306,7 +7306,7 @@ func (client OperationsInsightsClient) summarizeAwrDatabaseMetrics(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseMetrics" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAwrDatabaseMetrics", apiReferenceLink) return response, err } @@ -7368,7 +7368,7 @@ func (client OperationsInsightsClient) summarizeAwrDatabaseParameterChanges(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseParameterChanges" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAwrDatabaseParameterChanges", apiReferenceLink) return response, err } @@ -7434,7 +7434,7 @@ func (client OperationsInsightsClient) summarizeAwrDatabaseParameters(ctx contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseParameters" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAwrDatabaseParameters", apiReferenceLink) return response, err } @@ -7492,7 +7492,7 @@ func (client OperationsInsightsClient) summarizeAwrDatabaseSnapshotRanges(ctx co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseSnapshotRanges" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAwrDatabaseSnapshotRanges", apiReferenceLink) return response, err } @@ -7550,7 +7550,7 @@ func (client OperationsInsightsClient) summarizeAwrDatabaseSysstats(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseSysstats" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAwrDatabaseSysstats", apiReferenceLink) return response, err } @@ -7608,7 +7608,7 @@ func (client OperationsInsightsClient) summarizeAwrDatabaseTopWaitEvents(ctx con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseTopWaitEvents" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAwrDatabaseTopWaitEvents", apiReferenceLink) return response, err } @@ -7666,7 +7666,7 @@ func (client OperationsInsightsClient) summarizeAwrDatabaseWaitEventBuckets(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseWaitEventBuckets" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAwrDatabaseWaitEventBuckets", apiReferenceLink) return response, err } @@ -7724,7 +7724,7 @@ func (client OperationsInsightsClient) summarizeAwrDatabaseWaitEvents(ctx contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrDatabaseWaitEvents" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAwrDatabaseWaitEvents", apiReferenceLink) return response, err } @@ -7782,7 +7782,7 @@ func (client OperationsInsightsClient) summarizeAwrSourcesSummaries(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/SummarizeAwrSourcesSummaries" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeAwrSourcesSummaries", apiReferenceLink) return response, err } @@ -7841,7 +7841,7 @@ func (client OperationsInsightsClient) summarizeConfigurationItems(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/SummarizeConfigurationItems" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeConfigurationItems", apiReferenceLink) return response, err } @@ -7901,7 +7901,7 @@ func (client OperationsInsightsClient) summarizeDatabaseInsightResourceCapacityT defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceCapacityTrend" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeDatabaseInsightResourceCapacityTrend", apiReferenceLink) return response, err } @@ -7960,7 +7960,7 @@ func (client OperationsInsightsClient) summarizeDatabaseInsightResourceForecastT defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceForecastTrend" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeDatabaseInsightResourceForecastTrend", apiReferenceLink) return response, err } @@ -8019,7 +8019,7 @@ func (client OperationsInsightsClient) summarizeDatabaseInsightResourceStatistic defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceStatistics" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeDatabaseInsightResourceStatistics", apiReferenceLink) return response, err } @@ -8080,7 +8080,7 @@ func (client OperationsInsightsClient) summarizeDatabaseInsightResourceUsage(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceUsage" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeDatabaseInsightResourceUsage", apiReferenceLink) return response, err } @@ -8140,7 +8140,7 @@ func (client OperationsInsightsClient) summarizeDatabaseInsightResourceUsageTren defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceUsageTrend" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeDatabaseInsightResourceUsageTrend", apiReferenceLink) return response, err } @@ -8199,7 +8199,7 @@ func (client OperationsInsightsClient) summarizeDatabaseInsightResourceUtilizati defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightResourceUtilizationInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeDatabaseInsightResourceUtilizationInsight", apiReferenceLink) return response, err } @@ -8259,7 +8259,7 @@ func (client OperationsInsightsClient) summarizeDatabaseInsightTablespaceUsageTr defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeDatabaseInsightTablespaceUsageTrend" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeDatabaseInsightTablespaceUsageTrend", apiReferenceLink) return response, err } @@ -8324,7 +8324,7 @@ func (client OperationsInsightsClient) summarizeExadataInsightResourceCapacityTr defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceCapacityTrend" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeExadataInsightResourceCapacityTrend", apiReferenceLink) return response, err } @@ -8386,7 +8386,7 @@ func (client OperationsInsightsClient) summarizeExadataInsightResourceCapacityTr defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceCapacityTrendAggregated" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeExadataInsightResourceCapacityTrendAggregated", apiReferenceLink) return response, err } @@ -8451,7 +8451,7 @@ func (client OperationsInsightsClient) summarizeExadataInsightResourceForecastTr defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceForecastTrend" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeExadataInsightResourceForecastTrend", apiReferenceLink) return response, err } @@ -8512,7 +8512,7 @@ func (client OperationsInsightsClient) summarizeExadataInsightResourceForecastTr defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceForecastTrendAggregated" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeExadataInsightResourceForecastTrendAggregated", apiReferenceLink) return response, err } @@ -8574,7 +8574,7 @@ func (client OperationsInsightsClient) summarizeExadataInsightResourceStatistics defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceStatistics" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeExadataInsightResourceStatistics", apiReferenceLink) return response, err } @@ -8637,7 +8637,7 @@ func (client OperationsInsightsClient) summarizeExadataInsightResourceUsage(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceUsage" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeExadataInsightResourceUsage", apiReferenceLink) return response, err } @@ -8700,7 +8700,7 @@ func (client OperationsInsightsClient) summarizeExadataInsightResourceUsageAggre defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceUsageAggregated" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeExadataInsightResourceUsageAggregated", apiReferenceLink) return response, err } @@ -8758,7 +8758,7 @@ func (client OperationsInsightsClient) summarizeExadataInsightResourceUtilizatio defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataInsightResourceUtilizationInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeExadataInsightResourceUtilizationInsight", apiReferenceLink) return response, err } @@ -8816,7 +8816,7 @@ func (client OperationsInsightsClient) summarizeExadataMembers(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/SummarizeExadataMembers" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeExadataMembers", apiReferenceLink) return response, err } @@ -8874,7 +8874,7 @@ func (client OperationsInsightsClient) summarizeHostInsightDiskStatistics(ctx co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightDiskStatistics" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightDiskStatistics", apiReferenceLink) return response, err } @@ -8932,7 +8932,7 @@ func (client OperationsInsightsClient) summarizeHostInsightHostRecommendation(ct defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightHostRecommendation" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightHostRecommendation", apiReferenceLink) return response, err } @@ -8990,7 +8990,7 @@ func (client OperationsInsightsClient) summarizeHostInsightNetworkUsageTrend(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightNetworkUsageTrend" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightNetworkUsageTrend", apiReferenceLink) return response, err } @@ -9050,7 +9050,7 @@ func (client OperationsInsightsClient) summarizeHostInsightResourceCapacityTrend defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceCapacityTrend" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightResourceCapacityTrend", apiReferenceLink) return response, err } @@ -9109,7 +9109,7 @@ func (client OperationsInsightsClient) summarizeHostInsightResourceForecastTrend defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceForecastTrend" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightResourceForecastTrend", apiReferenceLink) return response, err } @@ -9168,7 +9168,7 @@ func (client OperationsInsightsClient) summarizeHostInsightResourceStatistics(ct defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceStatistics" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightResourceStatistics", apiReferenceLink) return response, err } @@ -9229,7 +9229,7 @@ func (client OperationsInsightsClient) summarizeHostInsightResourceUsage(ctx con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceUsage" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightResourceUsage", apiReferenceLink) return response, err } @@ -9289,7 +9289,7 @@ func (client OperationsInsightsClient) summarizeHostInsightResourceUsageTrend(ct defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceUsageTrend" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightResourceUsageTrend", apiReferenceLink) return response, err } @@ -9348,7 +9348,7 @@ func (client OperationsInsightsClient) summarizeHostInsightResourceUtilizationIn defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightResourceUtilizationInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightResourceUtilizationInsight", apiReferenceLink) return response, err } @@ -9406,7 +9406,7 @@ func (client OperationsInsightsClient) summarizeHostInsightStorageUsageTrend(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightStorageUsageTrend" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightStorageUsageTrend", apiReferenceLink) return response, err } @@ -9466,7 +9466,7 @@ func (client OperationsInsightsClient) summarizeHostInsightTopProcessesUsage(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightTopProcessesUsage" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightTopProcessesUsage", apiReferenceLink) return response, err } @@ -9526,7 +9526,7 @@ func (client OperationsInsightsClient) summarizeHostInsightTopProcessesUsageTren defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/SummarizeHostInsightTopProcessesUsageTrend" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeHostInsightTopProcessesUsageTrend", apiReferenceLink) return response, err } @@ -9585,7 +9585,7 @@ func (client OperationsInsightsClient) summarizeOperationsInsightsWarehouseResou defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/SummarizeOperationsInsightsWarehouseResourceUsage" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeOperationsInsightsWarehouseResourceUsage", apiReferenceLink) return response, err } @@ -9644,7 +9644,7 @@ func (client OperationsInsightsClient) summarizeSqlInsights(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlInsights" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeSqlInsights", apiReferenceLink) return response, err } @@ -9703,7 +9703,7 @@ func (client OperationsInsightsClient) summarizeSqlPlanInsights(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlPlanInsights" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeSqlPlanInsights", apiReferenceLink) return response, err } @@ -9762,7 +9762,7 @@ func (client OperationsInsightsClient) summarizeSqlResponseTimeDistributions(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlResponseTimeDistributions" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeSqlResponseTimeDistributions", apiReferenceLink) return response, err } @@ -9821,7 +9821,7 @@ func (client OperationsInsightsClient) summarizeSqlStatistics(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlStatistics" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeSqlStatistics", apiReferenceLink) return response, err } @@ -9880,7 +9880,7 @@ func (client OperationsInsightsClient) summarizeSqlStatisticsTimeSeries(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlStatisticsTimeSeries" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeSqlStatisticsTimeSeries", apiReferenceLink) return response, err } @@ -9939,7 +9939,7 @@ func (client OperationsInsightsClient) summarizeSqlStatisticsTimeSeriesByPlan(ct defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/SummarizeSqlStatisticsTimeSeriesByPlan" err = common.PostProcessServiceError(err, "OperationsInsights", "SummarizeSqlStatisticsTimeSeriesByPlan", apiReferenceLink) return response, err } @@ -9997,7 +9997,7 @@ func (client OperationsInsightsClient) updateAwrHub(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubs/UpdateAwrHub" err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateAwrHub", apiReferenceLink) return response, err } @@ -10055,7 +10055,7 @@ func (client OperationsInsightsClient) updateAwrHubSource(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/AwrHubSources/UpdateAwrHubSource" err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateAwrHubSource", apiReferenceLink) return response, err } @@ -10113,7 +10113,7 @@ func (client OperationsInsightsClient) updateDatabaseInsight(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/UpdateDatabaseInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateDatabaseInsight", apiReferenceLink) return response, err } @@ -10171,7 +10171,7 @@ func (client OperationsInsightsClient) updateEnterpriseManagerBridge(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/EnterpriseManagerBridges/UpdateEnterpriseManagerBridge" err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateEnterpriseManagerBridge", apiReferenceLink) return response, err } @@ -10229,7 +10229,7 @@ func (client OperationsInsightsClient) updateExadataInsight(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/ExadataInsights/UpdateExadataInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateExadataInsight", apiReferenceLink) return response, err } @@ -10287,7 +10287,7 @@ func (client OperationsInsightsClient) updateHostInsight(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/HostInsights/UpdateHostInsight" err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateHostInsight", apiReferenceLink) return response, err } @@ -10345,7 +10345,7 @@ func (client OperationsInsightsClient) updateNewsReport(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/NewsReports/UpdateNewsReport" err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateNewsReport", apiReferenceLink) return response, err } @@ -10403,7 +10403,7 @@ func (client OperationsInsightsClient) updateOperationsInsightsPrivateEndpoint(c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsPrivateEndpoint/UpdateOperationsInsightsPrivateEndpoint" err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateOperationsInsightsPrivateEndpoint", apiReferenceLink) return response, err } @@ -10412,7 +10412,7 @@ func (client OperationsInsightsClient) updateOperationsInsightsPrivateEndpoint(c return response, err } -// UpdateOperationsInsightsWarehouse Updates the configuration of an Operations Insights Warehouse. +// UpdateOperationsInsightsWarehouse Updates the configuration of an Ops Insights Warehouse. // There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment. // // # See also @@ -10462,7 +10462,7 @@ func (client OperationsInsightsClient) updateOperationsInsightsWarehouse(ctx con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouses/UpdateOperationsInsightsWarehouse" err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateOperationsInsightsWarehouse", apiReferenceLink) return response, err } @@ -10520,7 +10520,7 @@ func (client OperationsInsightsClient) updateOperationsInsightsWarehouseUser(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OperationsInsightsWarehouseUsers/UpdateOperationsInsightsWarehouseUser" err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateOperationsInsightsWarehouseUser", apiReferenceLink) return response, err } @@ -10578,7 +10578,7 @@ func (client OperationsInsightsClient) updateOpsiConfiguration(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/OpsiConfigurations/UpdateOpsiConfiguration" err = common.PostProcessServiceError(err, "OperationsInsights", "UpdateOpsiConfiguration", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_ux_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_ux_configuration.go index 51798303c35..632b4c7c11f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_ux_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_ux_configuration.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_ux_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_ux_configuration_summary.go index 8f6eecd2942..b2d54827584 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_ux_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_ux_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_warehouse_data_objects.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_warehouse_data_objects.go index 3eeaa819c16..d6bdfbada2d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_warehouse_data_objects.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/opsi_warehouse_data_objects.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_connection_details.go index 35cad991aeb..b1b8c2de1ce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_connection_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_host_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_host_details.go index 8c564217837..44caeafb670 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_host_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_host_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_insight.go index 0f5cf71439f..0304f7897f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -47,7 +47,7 @@ type PeComanagedDatabaseInsight struct { // OCI database resource type DatabaseResourceType *string `mandatory:"true" json:"databaseResourceType"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"false" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_insight_summary.go index f3422de5e8e..fd5ae4cbc80 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_database_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -36,7 +36,7 @@ type PeComanagedDatabaseInsightSummary struct { // The user-friendly name for the database. The name does not have to be unique. DatabaseDisplayName *string `mandatory:"false" json:"databaseDisplayName"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"false" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_exadata_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_exadata_insight.go index 5ee87af0a5b..540840d0f99 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_exadata_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_exadata_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_exadata_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_exadata_insight_summary.go index 81f7ac3a36a..0941c03b16d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_exadata_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_exadata_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_host_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_host_configuration_summary.go index e7fb41cfd53..6cd9d3897ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_host_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_host_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_host_insight.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_host_insight.go index 1805d2f415f..bb76f58fea7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_host_insight.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_host_insight.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -47,7 +47,7 @@ type PeComanagedHostInsight struct { // The user-friendly name for the host. The name does not have to be unique. HostDisplayName *string `mandatory:"false" json:"hostDisplayName"` - // Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST. + // Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST. HostType *string `mandatory:"false" json:"hostType"` // Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_host_insight_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_host_insight_summary.go index bf46c313a5a..d67df45ceec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_host_insight_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_host_insight_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -33,7 +33,7 @@ type PeComanagedHostInsightSummary struct { // The user-friendly name for the host. The name does not have to be unique. HostDisplayName *string `mandatory:"false" json:"hostDisplayName"` - // Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST. + // Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST. HostType *string `mandatory:"false" json:"hostType"` // Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types. @@ -75,7 +75,7 @@ type PeComanagedHostInsightSummary struct { // Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. PlatformType PeComanagedHostInsightSummaryPlatformTypeEnum `mandatory:"false" json:"platformType,omitempty"` - // Indicates the status of a host insight in Operations Insights + // Indicates the status of a host insight in Ops Insights Status ResourceStatusEnum `mandatory:"false" json:"status,omitempty"` // The current state of the host. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_managed_external_database_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_managed_external_database_configuration_summary.go index 31aa27603d6..aa40957d280 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_managed_external_database_configuration_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/pe_comanaged_managed_external_database_configuration_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -33,7 +33,7 @@ type PeComanagedManagedExternalDatabaseConfigurationSummary struct { // The user-friendly name for the database. The name does not have to be unique. DatabaseDisplayName *string `mandatory:"true" json:"databaseDisplayName"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"true" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/projected_data_item.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/projected_data_item.go index 088e52b8b3b..38c6147bb1a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/projected_data_item.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/projected_data_item.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_json_result_set_rows_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_json_result_set_rows_collection.go index e1d01b660a5..9e5838e75e9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_json_result_set_rows_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_json_result_set_rows_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go index 7094ce979f2..c42e2afead7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_column_metadata.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_rows_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_rows_collection.go index 3a4b84601cc..b0706af82bf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_rows_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_data_object_result_set_rows_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_opsi_data_object_data_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_opsi_data_object_data_details.go index 067111f7a96..bf8aa09858b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_opsi_data_object_data_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_opsi_data_object_data_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_warehouse_data_object_data_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_warehouse_data_object_data_details.go index 440ca9b9c65..4a7c006fa09 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_warehouse_data_object_data_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/query_warehouse_data_object_data_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/related_object_type_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/related_object_type_details.go index 2c851a668ea..1026b8c6ef8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/related_object_type_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/related_object_type_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_capacity_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_capacity_trend_aggregation.go index 548d2b4438b..83a13fb6334 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_capacity_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_capacity_trend_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go index b079752f337..aa94beef194 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_filters.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -50,6 +50,9 @@ type ResourceFilters struct { // A flag to consider all resources within a given compartment and all sub-compartments. CompartmentIdInSubtree *bool `mandatory:"false" json:"compartmentIdInSubtree"` + + // Filter resources by status, multiple options could be chosen to show authorized resources even if those are disabled or deleted. + ResourceStatus []ResourceStatusEnum `mandatory:"false" json:"resourceStatus,omitempty"` } func (m ResourceFilters) String() string { @@ -62,6 +65,12 @@ func (m ResourceFilters) String() string { func (m ResourceFilters) ValidateEnumValue() (bool, error) { errMessage := []string{} + for _, val := range m.ResourceStatus { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ResourceStatus: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_insight_current_utilization.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_insight_current_utilization.go index ae46189140d..bd9f9760087 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_insight_current_utilization.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_insight_current_utilization.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_insight_projected_utilization.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_insight_projected_utilization.go index 342d73e5d74..124ea51a534 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_insight_projected_utilization.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_insight_projected_utilization.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_insight_projected_utilization_item.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_insight_projected_utilization_item.go index dd19328e64d..9b0c144d1cb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_insight_projected_utilization_item.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_insight_projected_utilization_item.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_statistics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_statistics.go index 075e1c5ee7d..be25f4dc0f2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_statistics.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_statistics.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_statistics_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_statistics_aggregation.go index eab8549cb53..46a48fed96d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_statistics_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_statistics_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_status.go index c1ff5f4af3b..3457fe9dc60 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_status.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_status.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_usage_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_usage_summary.go index 1d7e846e096..85412c164d6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_usage_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_usage_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_usage_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_usage_trend_aggregation.go index 6c5ca746783..470b0bd729a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_usage_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/resource_usage_trend_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/rotate_operations_insights_warehouse_wallet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/rotate_operations_insights_warehouse_wallet_request_response.go index 13a9b4877ac..4338b622952 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/rotate_operations_insights_warehouse_wallet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/rotate_operations_insights_warehouse_wallet_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/RotateOperationsInsightsWarehouseWallet.go.html to see an example of how to use RotateOperationsInsightsWarehouseWalletRequest. type RotateOperationsInsightsWarehouseWalletRequest struct { - // Unique Operations Insights Warehouse identifier + // Unique Ops Insights Warehouse identifier OperationsInsightsWarehouseId *string `mandatory:"true" contributesTo:"path" name:"operationsInsightsWarehouseId"` // Unique Oracle-assigned identifier for the request. If you need to contact diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/schema_object_type_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/schema_object_type_details.go index 1efbe5999bb..d426422047d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/schema_object_type_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/schema_object_type_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sort_order.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sort_order.go index ee192570385..25f9519281d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sort_order.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sort_order.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_bucket.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_bucket.go index 6b2495b444e..58086dac0ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_bucket.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_bucket.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -38,7 +38,7 @@ type SqlBucket struct { // Example: `1` Version *float32 `mandatory:"false" json:"version"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"false" json:"databaseType"` // Total number of executions diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_insight_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_insight_aggregation.go index 50153cc3bca..0df20a2b52c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_insight_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_insight_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_insight_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_insight_aggregation_collection.go index 5ba9207557c..117f23d0201 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_insight_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_insight_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_insight_thresholds.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_insight_thresholds.go index b984ff1fa15..e6e3dc183fe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_insight_thresholds.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_insight_thresholds.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_inventory.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_inventory.go index e19f52db610..a373334de50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_inventory.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_inventory.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_collection.go index 8a42207fc5e..3ab567d8bcd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_insight_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_insight_aggregation.go index 947d2538c7c..7da69deaa80 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_insight_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_insight_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_insight_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_insight_aggregation_collection.go index b81225b062d..40831ae6ec9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_insight_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_insight_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_insights.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_insights.go index f6d2e7abdc6..e95e075bdd6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_insights.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_insights.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_line.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_line.go index bc1800cd466..aaa9a7cebfc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_line.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_line.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_summary.go index 0c6679f9530..e299d2417f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_plan_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_response_time_distribution_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_response_time_distribution_aggregation.go index eca6a571e88..0b63e40ce08 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_response_time_distribution_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_response_time_distribution_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_response_time_distribution_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_response_time_distribution_aggregation_collection.go index 3dcf7d19678..5424811ee88 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_response_time_distribution_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_response_time_distribution_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_search_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_search_collection.go index 0be8506f252..c31e1a35fb2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_search_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_search_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_search_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_search_summary.go index 1b6d6e65b0f..8803defdec6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_search_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_search_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -35,7 +35,7 @@ type SqlSearchSummary struct { // The user-friendly name for the database. The name does not have to be unique. DatabaseDisplayName *string `mandatory:"true" json:"databaseDisplayName"` - // Operations Insights internal representation of the database type. + // Ops Insights internal representation of the database type. DatabaseType *string `mandatory:"true" json:"databaseType"` // The version of the database. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistic_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistic_aggregation.go index c10a5fe07e3..a208b73dd07 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistic_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistic_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistic_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistic_aggregation_collection.go index b77feb26c9f..72050849acd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistic_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistic_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics.go index 5260eb6e1a2..5916159d1ee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series.go index e84621fe394..d456fba6cf0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_aggregation.go index 9c8dd87a31f..e93c83b349f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_aggregation_collection.go index 624d67f75fa..9f8f5edd409 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_by_plan_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_by_plan_aggregation.go index 982a2d65a67..a65c4393301 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_by_plan_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_by_plan_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_by_plan_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_by_plan_aggregation_collection.go index a3a08d782f7..2eee8f875bb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_by_plan_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_statistics_time_series_by_plan_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_stats.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_stats.go index 89f1411e3fd..2322232bfad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_stats.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_stats.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_text.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_text.go index 66f9419c627..7cc23ecbb95 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_text.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_text.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_text_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_text_collection.go index f828bd24869..8e2d04b1b27 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_text_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_text_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_text_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_text_summary.go index 354abe79de6..3061bf5d231 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_text_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_text_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_type_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_type_details.go index 3bb285f4dc7..5acd89d49d3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_type_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/sql_type_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_server.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_server.go index 73e6f699622..ef38d86a53f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_server.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_server.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_server_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_server_details.go index d5b458cf534..078419131b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_server_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_server_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_tier.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_tier.go index a8e94ee7351..4932ca6dc69 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_tier.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_tier.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_usage_trend.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_usage_trend.go index 6adece1a1b4..b5a637d8e04 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_usage_trend.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_usage_trend.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_usage_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_usage_trend_aggregation.go index dfd835908c6..a4e257acb17 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_usage_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/storage_usage_trend_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_addm_db_parameters_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_addm_db_parameters_request_response.go index 080967e96b2..1ba9cce6e03 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_addm_db_parameters_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_addm_db_parameters_request_response.go @@ -204,13 +204,13 @@ type SummarizeAddmDbParametersIsChangedEnum string // Set of constants representing the allowable values for SummarizeAddmDbParametersIsChangedEnum const ( - SummarizeAddmDbParametersIsChangedTrue SummarizeAddmDbParametersIsChangedEnum = "true" - SummarizeAddmDbParametersIsChangedFalse SummarizeAddmDbParametersIsChangedEnum = "false" + SummarizeAddmDbParametersIsChangedTrue SummarizeAddmDbParametersIsChangedEnum = "TRUE" + SummarizeAddmDbParametersIsChangedFalse SummarizeAddmDbParametersIsChangedEnum = "FALSE" ) var mappingSummarizeAddmDbParametersIsChangedEnum = map[string]SummarizeAddmDbParametersIsChangedEnum{ - "true": SummarizeAddmDbParametersIsChangedTrue, - "false": SummarizeAddmDbParametersIsChangedFalse, + "TRUE": SummarizeAddmDbParametersIsChangedTrue, + "FALSE": SummarizeAddmDbParametersIsChangedFalse, } var mappingSummarizeAddmDbParametersIsChangedEnumLowerCase = map[string]SummarizeAddmDbParametersIsChangedEnum{ @@ -230,8 +230,8 @@ func GetSummarizeAddmDbParametersIsChangedEnumValues() []SummarizeAddmDbParamete // GetSummarizeAddmDbParametersIsChangedEnumStringValues Enumerates the set of values in String for SummarizeAddmDbParametersIsChangedEnum func GetSummarizeAddmDbParametersIsChangedEnumStringValues() []string { return []string{ - "true", - "false", + "TRUE", + "FALSE", } } @@ -246,13 +246,13 @@ type SummarizeAddmDbParametersIsDefaultEnum string // Set of constants representing the allowable values for SummarizeAddmDbParametersIsDefaultEnum const ( - SummarizeAddmDbParametersIsDefaultTrue SummarizeAddmDbParametersIsDefaultEnum = "true" - SummarizeAddmDbParametersIsDefaultFalse SummarizeAddmDbParametersIsDefaultEnum = "false" + SummarizeAddmDbParametersIsDefaultTrue SummarizeAddmDbParametersIsDefaultEnum = "TRUE" + SummarizeAddmDbParametersIsDefaultFalse SummarizeAddmDbParametersIsDefaultEnum = "FALSE" ) var mappingSummarizeAddmDbParametersIsDefaultEnum = map[string]SummarizeAddmDbParametersIsDefaultEnum{ - "true": SummarizeAddmDbParametersIsDefaultTrue, - "false": SummarizeAddmDbParametersIsDefaultFalse, + "TRUE": SummarizeAddmDbParametersIsDefaultTrue, + "FALSE": SummarizeAddmDbParametersIsDefaultFalse, } var mappingSummarizeAddmDbParametersIsDefaultEnumLowerCase = map[string]SummarizeAddmDbParametersIsDefaultEnum{ @@ -272,8 +272,8 @@ func GetSummarizeAddmDbParametersIsDefaultEnumValues() []SummarizeAddmDbParamete // GetSummarizeAddmDbParametersIsDefaultEnumStringValues Enumerates the set of values in String for SummarizeAddmDbParametersIsDefaultEnum func GetSummarizeAddmDbParametersIsDefaultEnumStringValues() []string { return []string{ - "true", - "false", + "TRUE", + "FALSE", } } @@ -288,13 +288,13 @@ type SummarizeAddmDbParametersHasRecommendationsEnum string // Set of constants representing the allowable values for SummarizeAddmDbParametersHasRecommendationsEnum const ( - SummarizeAddmDbParametersHasRecommendationsTrue SummarizeAddmDbParametersHasRecommendationsEnum = "true" - SummarizeAddmDbParametersHasRecommendationsFalse SummarizeAddmDbParametersHasRecommendationsEnum = "false" + SummarizeAddmDbParametersHasRecommendationsTrue SummarizeAddmDbParametersHasRecommendationsEnum = "TRUE" + SummarizeAddmDbParametersHasRecommendationsFalse SummarizeAddmDbParametersHasRecommendationsEnum = "FALSE" ) var mappingSummarizeAddmDbParametersHasRecommendationsEnum = map[string]SummarizeAddmDbParametersHasRecommendationsEnum{ - "true": SummarizeAddmDbParametersHasRecommendationsTrue, - "false": SummarizeAddmDbParametersHasRecommendationsFalse, + "TRUE": SummarizeAddmDbParametersHasRecommendationsTrue, + "FALSE": SummarizeAddmDbParametersHasRecommendationsFalse, } var mappingSummarizeAddmDbParametersHasRecommendationsEnumLowerCase = map[string]SummarizeAddmDbParametersHasRecommendationsEnum{ @@ -314,8 +314,8 @@ func GetSummarizeAddmDbParametersHasRecommendationsEnumValues() []SummarizeAddmD // GetSummarizeAddmDbParametersHasRecommendationsEnumStringValues Enumerates the set of values in String for SummarizeAddmDbParametersHasRecommendationsEnum func GetSummarizeAddmDbParametersHasRecommendationsEnumStringValues() []string { return []string{ - "true", - "false", + "TRUE", + "FALSE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_awr_sources_summaries_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_awr_sources_summaries_collection.go index d72686c49ce..5f677f7669b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_awr_sources_summaries_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_awr_sources_summaries_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_capacity_trend_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_capacity_trend_aggregation_collection.go index 143b5988e15..f55ea6d2104 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_capacity_trend_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_capacity_trend_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go index 7b8d7550da9..35c7e6c7d05 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_forecast_trend_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_statistics_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_statistics_aggregation_collection.go index 17ab5f4970a..e232ea83a98 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_statistics_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_statistics_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_usage_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_usage_aggregation.go index f7053324871..3864f8efc8e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_usage_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_usage_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_usage_trend_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_usage_trend_aggregation_collection.go index 87ed550c153..0ea28694cf2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_usage_trend_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_usage_trend_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_utilization_insight_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_utilization_insight_aggregation.go index 9d7b1fb8983..c193a4a9e5b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_utilization_insight_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_resource_utilization_insight_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_tablespace_usage_trend_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_tablespace_usage_trend_aggregation_collection.go index 747052e6851..c1ad9348bdb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_tablespace_usage_trend_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_database_insight_tablespace_usage_trend_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_capacity_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_capacity_trend_aggregation.go index 5108e4ea22f..eb9d75062fa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_capacity_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_capacity_trend_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_capacity_trend_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_capacity_trend_collection.go index fc12d8e5b32..4dd0f9c76f0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_capacity_trend_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_capacity_trend_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go index f7568cfc234..b2b079228f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_collection.go index 341e16f26cc..f9377958404 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_forecast_trend_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_statistics_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_statistics_aggregation_collection.go index 7db6b905bc6..0c485a72b1e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_statistics_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_statistics_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_usage_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_usage_aggregation.go index 54de97aa844..d6f85f418c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_usage_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_usage_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_usage_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_usage_collection.go index b2c456e9a38..d15abe303cf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_usage_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_usage_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_utilization_insight_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_utilization_insight_aggregation.go index 54437b14dde..4204dc11c24 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_utilization_insight_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_exadata_insight_resource_utilization_insight_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_disk_statistics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_disk_statistics_request_response.go index 79f3c84f8da..d4b63bebefc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_disk_statistics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_disk_statistics_request_response.go @@ -53,6 +53,9 @@ type SummarizeHostInsightDiskStatisticsRequest struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -92,6 +95,12 @@ func (request SummarizeHostInsightDiskStatisticsRequest) ValidateEnumValue() (bo if _, ok := GetMappingSummarizeHostInsightDiskStatisticsStatisticEnum(string(request.Statistic)); !ok && request.Statistic != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Statistic: %s. Supported values are: %s.", request.Statistic, strings.Join(GetSummarizeHostInsightDiskStatisticsStatisticEnumStringValues(), ","))) } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_host_recommendation_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_host_recommendation_aggregation.go index 86160d7fba4..c0692129e9b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_host_recommendation_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_host_recommendation_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_network_usage_trend_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_network_usage_trend_aggregation_collection.go index d711145ca10..299ce38193c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_network_usage_trend_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_network_usage_trend_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_network_usage_trend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_network_usage_trend_request_response.go index 6994ee9aa0c..35955b9041d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_network_usage_trend_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_network_usage_trend_request_response.go @@ -65,6 +65,9 @@ type SummarizeHostInsightNetworkUsageTrendRequest struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -104,6 +107,12 @@ func (request SummarizeHostInsightNetworkUsageTrendRequest) ValidateEnumValue() if _, ok := GetMappingSummarizeHostInsightNetworkUsageTrendStatisticEnum(string(request.Statistic)); !ok && request.Statistic != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Statistic: %s. Supported values are: %s.", request.Statistic, strings.Join(GetSummarizeHostInsightNetworkUsageTrendStatisticEnumStringValues(), ","))) } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_capacity_trend_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_capacity_trend_aggregation_collection.go index 496276b05a0..8e7d816cc6a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_capacity_trend_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_capacity_trend_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_capacity_trend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_capacity_trend_request_response.go index d993962a100..696d6a17c55 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_capacity_trend_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_capacity_trend_request_response.go @@ -122,6 +122,9 @@ type SummarizeHostInsightResourceCapacityTrendRequest struct { // Percent value in which a resource metric is considered low utilized. LowUtilizationThreshold *int `mandatory:"false" contributesTo:"query" name:"lowUtilizationThreshold"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -173,6 +176,12 @@ func (request SummarizeHostInsightResourceCapacityTrendRequest) ValidateEnumValu if _, ok := GetMappingSummarizeHostInsightResourceCapacityTrendSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetSummarizeHostInsightResourceCapacityTrendSortByEnumStringValues(), ","))) } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_forecast_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_forecast_trend_aggregation.go index c56908547e2..b0b63d3c9b0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_forecast_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_forecast_trend_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_forecast_trend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_forecast_trend_request_response.go index 32fe4b11191..47e54ee7ead 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_forecast_trend_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_forecast_trend_request_response.go @@ -142,6 +142,9 @@ type SummarizeHostInsightResourceForecastTrendRequest struct { // Name of the network interface. InterfaceName *string `mandatory:"false" contributesTo:"query" name:"interfaceName"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -193,6 +196,12 @@ func (request SummarizeHostInsightResourceForecastTrendRequest) ValidateEnumValu if _, ok := GetMappingSummarizeHostInsightResourceForecastTrendUtilizationLevelEnum(string(request.UtilizationLevel)); !ok && request.UtilizationLevel != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UtilizationLevel: %s. Supported values are: %s.", request.UtilizationLevel, strings.Join(GetSummarizeHostInsightResourceForecastTrendUtilizationLevelEnumStringValues(), ","))) } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_statistics_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_statistics_aggregation_collection.go index 73de4095164..caa6f38d914 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_statistics_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_statistics_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_statistics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_statistics_request_response.go index 96a0209978c..1741a61cc4c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_statistics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_statistics_request_response.go @@ -133,6 +133,9 @@ type SummarizeHostInsightResourceStatisticsRequest struct { // Percent value in which a resource metric is considered low utilized. LowUtilizationThreshold *int `mandatory:"false" contributesTo:"query" name:"lowUtilizationThreshold"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -181,6 +184,12 @@ func (request SummarizeHostInsightResourceStatisticsRequest) ValidateEnumValue() if _, ok := GetMappingSummarizeHostInsightResourceStatisticsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetSummarizeHostInsightResourceStatisticsSortByEnumStringValues(), ","))) } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_aggregation.go index 0e75250425b..bb57b45dcbb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_request_response.go index 1c1535db9ab..6d99171321c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_request_response.go @@ -106,6 +106,9 @@ type SummarizeHostInsightResourceUsageRequest struct { // Optional list of Exadata Insight VM cluster name. VmclusterName []string `contributesTo:"query" name:"vmclusterName" collectionFormat:"multi"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -148,6 +151,12 @@ func (request SummarizeHostInsightResourceUsageRequest) ValidateEnumValue() (boo } } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_trend_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_trend_aggregation_collection.go index 4cf43d7756b..5e8f12100a9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_trend_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_trend_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_trend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_trend_request_response.go index eea47810272..95c126b548c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_trend_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_usage_trend_request_response.go @@ -109,6 +109,9 @@ type SummarizeHostInsightResourceUsageTrendRequest struct { // Optional list of Exadata Insight VM cluster name. VmclusterName []string `contributesTo:"query" name:"vmclusterName" collectionFormat:"multi"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -157,6 +160,12 @@ func (request SummarizeHostInsightResourceUsageTrendRequest) ValidateEnumValue() if _, ok := GetMappingSummarizeHostInsightResourceUsageTrendSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetSummarizeHostInsightResourceUsageTrendSortByEnumStringValues(), ","))) } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_utilization_insight_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_utilization_insight_aggregation.go index d3674a2ec0a..fe757af4d4f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_utilization_insight_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_utilization_insight_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_utilization_insight_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_utilization_insight_request_response.go index 2fa58cd56f5..5e57f678978 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_utilization_insight_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_resource_utilization_insight_request_response.go @@ -112,6 +112,9 @@ type SummarizeHostInsightResourceUtilizationInsightRequest struct { // Percent value in which a resource metric is considered low utilized. LowUtilizationThreshold *int `mandatory:"false" contributesTo:"query" name:"lowUtilizationThreshold"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -154,6 +157,12 @@ func (request SummarizeHostInsightResourceUtilizationInsightRequest) ValidateEnu } } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_storage_usage_trend_aggregation_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_storage_usage_trend_aggregation_collection.go index f22b67c6003..8bb7481f2ca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_storage_usage_trend_aggregation_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_storage_usage_trend_aggregation_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_storage_usage_trend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_storage_usage_trend_request_response.go index 56b977e711a..51a4f67f818 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_storage_usage_trend_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_storage_usage_trend_request_response.go @@ -65,6 +65,9 @@ type SummarizeHostInsightStorageUsageTrendRequest struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -104,6 +107,12 @@ func (request SummarizeHostInsightStorageUsageTrendRequest) ValidateEnumValue() if _, ok := GetMappingSummarizeHostInsightStorageUsageTrendStatisticEnum(string(request.Statistic)); !ok && request.Statistic != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Statistic: %s. Supported values are: %s.", request.Statistic, strings.Join(GetSummarizeHostInsightStorageUsageTrendStatisticEnumStringValues(), ","))) } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_top_processes_usage_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_top_processes_usage_request_response.go index 123f7208963..35f96ebd7ad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_top_processes_usage_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_top_processes_usage_request_response.go @@ -77,6 +77,9 @@ type SummarizeHostInsightTopProcessesUsageRequest struct { // Choose the type of statistic metric data to be used for forecasting. Statistic SummarizeHostInsightTopProcessesUsageStatisticEnum `mandatory:"false" contributesTo:"query" name:"statistic" omitEmpty:"true"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -116,6 +119,12 @@ func (request SummarizeHostInsightTopProcessesUsageRequest) ValidateEnumValue() if _, ok := GetMappingSummarizeHostInsightTopProcessesUsageStatisticEnum(string(request.Statistic)); !ok && request.Statistic != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Statistic: %s. Supported values are: %s.", request.Statistic, strings.Join(GetSummarizeHostInsightTopProcessesUsageStatisticEnumStringValues(), ","))) } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_top_processes_usage_trend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_top_processes_usage_trend_request_response.go index d5715fec9d6..9bc06bf60a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_top_processes_usage_trend_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insight_top_processes_usage_trend_request_response.go @@ -76,6 +76,9 @@ type SummarizeHostInsightTopProcessesUsageTrendRequest struct { // Choose the type of statistic metric data to be used for forecasting. Statistic SummarizeHostInsightTopProcessesUsageTrendStatisticEnum `mandatory:"false" contributesTo:"query" name:"statistic" omitEmpty:"true"` + // Resource Status + Status []ResourceStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -115,6 +118,12 @@ func (request SummarizeHostInsightTopProcessesUsageTrendRequest) ValidateEnumVal if _, ok := GetMappingSummarizeHostInsightTopProcessesUsageTrendStatisticEnum(string(request.Statistic)); !ok && request.Statistic != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Statistic: %s. Supported values are: %s.", request.Statistic, strings.Join(GetSummarizeHostInsightTopProcessesUsageTrendStatisticEnumStringValues(), ","))) } + for _, val := range request.Status { + if _, ok := GetMappingResourceStatusEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", val, strings.Join(GetResourceStatusEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insights_disk_statistics_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insights_disk_statistics_collection.go index ad458120f8b..4bca4a9d89a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insights_disk_statistics_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insights_disk_statistics_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insights_top_processes_usage_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insights_top_processes_usage_collection.go index bfefbca641b..31c313edc28 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insights_top_processes_usage_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insights_top_processes_usage_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insights_top_processes_usage_trend_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insights_top_processes_usage_trend_collection.go index d39b65a9cd2..8aa1aedf3d8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insights_top_processes_usage_trend_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_host_insights_top_processes_usage_trend_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_operations_insights_warehouse_resource_usage_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_operations_insights_warehouse_resource_usage_aggregation.go index 61b58eb8e7d..e08ae51c76a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_operations_insights_warehouse_resource_usage_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_operations_insights_warehouse_resource_usage_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_operations_insights_warehouse_resource_usage_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_operations_insights_warehouse_resource_usage_request_response.go index 12e68227de0..ab57d0eb7d7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_operations_insights_warehouse_resource_usage_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summarize_operations_insights_warehouse_resource_usage_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/SummarizeOperationsInsightsWarehouseResourceUsage.go.html to see an example of how to use SummarizeOperationsInsightsWarehouseResourceUsageRequest. type SummarizeOperationsInsightsWarehouseResourceUsageRequest struct { - // Unique Operations Insights Warehouse identifier + // Unique Ops Insights Warehouse identifier OperationsInsightsWarehouseId *string `mandatory:"true" contributesTo:"path" name:"operationsInsightsWarehouseId"` // Unique Oracle-assigned identifier for the request. If you need to contact diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summary_statistics.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summary_statistics.go index 7c4707162ee..71afa0e2c11 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summary_statistics.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/summary_statistics.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/tablespace_usage_trend.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/tablespace_usage_trend.go index fa2d08e3f11..7684d2a237b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/tablespace_usage_trend.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/tablespace_usage_trend.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/tablespace_usage_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/tablespace_usage_trend_aggregation.go index 01179d535e8..06d5ce21dbf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/tablespace_usage_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/tablespace_usage_trend_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/top_processes_usage.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/top_processes_usage.go index 3f8bb5c2e63..63e0ef74496 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/top_processes_usage.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/top_processes_usage.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -43,6 +43,9 @@ type TopProcessesUsage struct { // Maximum number of processes running at time of collection. MaxProcessCount *int `mandatory:"true" json:"maxProcessCount"` + + // Container id if this process corresponds to a running container in the host. + ContainerId *string `mandatory:"false" json:"containerId"` } func (m TopProcessesUsage) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/top_processes_usage_trend.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/top_processes_usage_trend.go index e8457a4ca99..4529219ff55 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/top_processes_usage_trend.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/top_processes_usage_trend.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -40,6 +40,9 @@ type TopProcessesUsageTrend struct { // Maximum number of processes running at time of collection MaxProcessCount *int `mandatory:"true" json:"maxProcessCount"` + + // Container id if this process corresponds to a running container in the host. + ContainerId *string `mandatory:"false" json:"containerId"` } func (m TopProcessesUsageTrend) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/top_processes_usage_trend_aggregation.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/top_processes_usage_trend_aggregation.go index ffc6347fc8b..cf5dabef5cb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/top_processes_usage_trend_aggregation.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/top_processes_usage_trend_aggregation.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_autonomous_database_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_autonomous_database_insight_details.go index 4fc6c262b29..a88b15a65a5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_autonomous_database_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_autonomous_database_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_awr_hub_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_awr_hub_details.go index b328913549e..4944ada0126 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_awr_hub_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_awr_hub_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_awr_hub_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_awr_hub_source_details.go index 3e73188147c..0dfc1c24bbc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_awr_hub_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_awr_hub_source_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_basic_configuration_item_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_basic_configuration_item_details.go index b667b5c8b9b..358fa3456ff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_basic_configuration_item_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_basic_configuration_item_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_configuration_item_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_configuration_item_details.go index b4b046b2c14..7c0a75f86e1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_configuration_item_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_configuration_item_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_database_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_database_insight_details.go index 34cf2ff2690..ef2587fcd59 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_database_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_database_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_em_managed_external_database_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_em_managed_external_database_insight_details.go index 4b6aec8ed9b..add1e0d8a19 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_em_managed_external_database_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_em_managed_external_database_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_em_managed_external_exadata_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_em_managed_external_exadata_insight_details.go index a921456007d..ea634398d38 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_em_managed_external_exadata_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_em_managed_external_exadata_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_em_managed_external_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_em_managed_external_host_insight_details.go index 3e5d90eb3e0..9d5302fb687 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_em_managed_external_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_em_managed_external_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_enterprise_manager_bridge_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_enterprise_manager_bridge_details.go index bbd4bd53ef3..b05bede34c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_enterprise_manager_bridge_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_enterprise_manager_bridge_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_exadata_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_exadata_insight_details.go index a0d31e6caf0..913e0df8550 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_exadata_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_exadata_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_host_insight_details.go index 07dbce550d3..5591c79eb00 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_macs_managed_cloud_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_macs_managed_cloud_host_insight_details.go index 8c17208821e..6498a9f926e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_macs_managed_cloud_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_macs_managed_cloud_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_macs_managed_external_database_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_macs_managed_external_database_insight_details.go index 98346614627..1c1b2fc8a26 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_macs_managed_external_database_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_macs_managed_external_database_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_macs_managed_external_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_macs_managed_external_host_insight_details.go index 54451099ea4..499cbe77bd4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_macs_managed_external_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_macs_managed_external_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go index a77d18f1522..1ef8197cd97 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_news_report_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_private_endpoint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_private_endpoint_details.go index a9cb9628266..1574c39bab9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_private_endpoint_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_private_endpoint_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_warehouse_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_warehouse_details.go index 2b9ae727300..8710861050c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_warehouse_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_warehouse_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -20,7 +20,7 @@ import ( // UpdateOperationsInsightsWarehouseDetails The information to be updated. type UpdateOperationsInsightsWarehouseDetails struct { - // User-friedly name of Operations Insights Warehouse that does not have to be unique. + // User-friedly name of Ops Insights Warehouse that does not have to be unique. DisplayName *string `mandatory:"false" json:"displayName"` // Number of OCPUs allocated to OPSI Warehouse ADW. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_warehouse_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_warehouse_request_response.go index 344ce9b982b..0e4bb0ff198 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_warehouse_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_warehouse_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/opsi/UpdateOperationsInsightsWarehouse.go.html to see an example of how to use UpdateOperationsInsightsWarehouseRequest. type UpdateOperationsInsightsWarehouseRequest struct { - // Unique Operations Insights Warehouse identifier + // Unique Ops Insights Warehouse identifier OperationsInsightsWarehouseId *string `mandatory:"true" contributesTo:"path" name:"operationsInsightsWarehouseId"` // The configuration to be updated. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_warehouse_user_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_warehouse_user_details.go index 759d6e57669..2e2a3546fb7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_warehouse_user_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_operations_insights_warehouse_user_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -20,7 +20,7 @@ import ( // UpdateOperationsInsightsWarehouseUserDetails The information to be updated. type UpdateOperationsInsightsWarehouseUserDetails struct { - // User provided connection password for the AWR Data, Enterprise Manager Data and Operations Insights OPSI Hub. + // User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub. ConnectionPassword *string `mandatory:"false" json:"connectionPassword"` // Indicate whether user has access to AWR data. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_opsi_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_opsi_configuration_details.go index b392782b8f1..56f3cc15116 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_opsi_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_opsi_configuration_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_opsi_ux_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_opsi_ux_configuration_details.go index 778e951041a..a70d99b8253 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_opsi_ux_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_opsi_ux_configuration_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_pe_comanaged_database_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_pe_comanaged_database_insight_details.go index 6bd7b77bc4b..1173f5419f7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_pe_comanaged_database_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_pe_comanaged_database_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_pe_comanaged_exadata_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_pe_comanaged_exadata_insight_details.go index 78e7815fe7d..8ec6c1f577c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_pe_comanaged_exadata_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_pe_comanaged_exadata_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_pe_comanaged_host_insight_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_pe_comanaged_host_insight_details.go index f22c706f724..31a0e09d3ef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_pe_comanaged_host_insight_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/update_pe_comanaged_host_insight_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ux_configuration_items_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ux_configuration_items_collection.go index d23fe2d87b5..9cabb0a7fbf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ux_configuration_items_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/ux_configuration_items_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/vm_cluster_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/vm_cluster_summary.go index 328c1ba038a..ff28c389de8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/vm_cluster_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/vm_cluster_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_data_object_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_data_object_collection.go index 1e222125450..b0c32dee8fa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_data_object_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_data_object_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_data_object_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_data_object_details.go index 5b9071bb588..140cf8e8589 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_data_object_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_data_object_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_data_object_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_data_object_summary.go index 22528b1dde3..4ce5327b7b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_data_object_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_data_object_summary.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_table_data_object_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_table_data_object_details.go index d7e28ee9049..71d31071817 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_table_data_object_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_table_data_object_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_view_data_object_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_view_data_object_details.go index 3dd50212251..2ef46357a15 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_view_data_object_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/warehouse_view_data_object_details.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request.go index cfe70d28e24..caa88dc52ce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_collection.go index 9c267b5f4ca..50386459b6f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_error.go index f6183dc30e6..e33f61b94e6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_error.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_error.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_error_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_error_collection.go index 44b9c4774a9..4293988dc3a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_error_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_error_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_log_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_log_entry.go index 15d3510d29c..9098266917c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_log_entry.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_log_entry.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_log_entry_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_log_entry_collection.go index 88b5ebb451a..64ee16ac49f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_log_entry_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_log_entry_collection.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_resource.go index 92c036ed6e0..ba056011ccf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_resource.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_resource.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_resource_metadata_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_resource_metadata_key.go index 14a464310da..6ff82c2bd76 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_resource_metadata_key.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_request_resource_metadata_key.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_requests.go b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_requests.go index c44c73c65ad..5181caf58e3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_requests.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/opsi/work_requests.go @@ -2,11 +2,11 @@ // 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. // Code generated. DO NOT EDIT. -// Operations Insights API +// Ops Insights API // -// Use the Operations Insights API to perform data extraction operations to obtain database +// Use the Ops Insights API to perform data extraction operations to obtain database // resource utilization, performance statistics, and reference information. For more information, -// see About Oracle Cloud Infrastructure Operations Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). +// see About Oracle Cloud Infrastructure Ops Insights (https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). // package opsi @@ -17,7 +17,7 @@ import ( "strings" ) -// WorkRequests Logical grouping used for Operations Insights Work Request operations. +// WorkRequests Logical grouping used for Ops Insights Work Request operations. type WorkRequests struct { // OPSI Work Request Object. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/action_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/action_type.go new file mode 100644 index 00000000000..ca4fd407fd6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/action_type.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "strings" +) + +// ActionTypeEnum Enum with underlying type: string +type ActionTypeEnum string + +// Set of constants representing the allowable values for ActionTypeEnum +const ( + ActionTypeCreated ActionTypeEnum = "CREATED" + ActionTypeUpdated ActionTypeEnum = "UPDATED" + ActionTypeDeleted ActionTypeEnum = "DELETED" + ActionTypeInProgress ActionTypeEnum = "IN_PROGRESS" + ActionTypeRelated ActionTypeEnum = "RELATED" + ActionTypeFailed ActionTypeEnum = "FAILED" +) + +var mappingActionTypeEnum = map[string]ActionTypeEnum{ + "CREATED": ActionTypeCreated, + "UPDATED": ActionTypeUpdated, + "DELETED": ActionTypeDeleted, + "IN_PROGRESS": ActionTypeInProgress, + "RELATED": ActionTypeRelated, + "FAILED": ActionTypeFailed, +} + +var mappingActionTypeEnumLowerCase = map[string]ActionTypeEnum{ + "created": ActionTypeCreated, + "updated": ActionTypeUpdated, + "deleted": ActionTypeDeleted, + "in_progress": ActionTypeInProgress, + "related": ActionTypeRelated, + "failed": ActionTypeFailed, +} + +// GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum +func GetActionTypeEnumValues() []ActionTypeEnum { + values := make([]ActionTypeEnum, 0) + for _, v := range mappingActionTypeEnum { + values = append(values, v) + } + return values +} + +// GetActionTypeEnumStringValues Enumerates the set of values in String for ActionTypeEnum +func GetActionTypeEnumStringValues() []string { + return []string{ + "CREATED", + "UPDATED", + "DELETED", + "IN_PROGRESS", + "RELATED", + "FAILED", + } +} + +// GetMappingActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool) { + enum, ok := mappingActionTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/activate_schedule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/activate_schedule_request_response.go new file mode 100644 index 00000000000..f555337bc6d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/activate_schedule_request_response.go @@ -0,0 +1,109 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ActivateScheduleRequest wrapper for the ActivateSchedule operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/ActivateSchedule.go.html to see an example of how to use ActivateScheduleRequest. +type ActivateScheduleRequest struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. + ScheduleId *string `mandatory:"true" contributesTo:"path" name:"scheduleId"` + + // This is used 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // This is a token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of running 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 removed from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ActivateScheduleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ActivateScheduleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ActivateScheduleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ActivateScheduleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ActivateScheduleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ActivateScheduleResponse wrapper for the ActivateSchedule operation +type ActivateScheduleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Schedule instance + Schedule `presentIn:"body"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response ActivateScheduleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ActivateScheduleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/cancel_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/cancel_work_request_request_response.go new file mode 100644 index 00000000000..460993d9333 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/cancel_work_request_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CancelWorkRequestRequest wrapper for the CancelWorkRequest operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequestRequest. +type CancelWorkRequestRequest struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // This is used 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CancelWorkRequestRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CancelWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CancelWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CancelWorkRequestRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CancelWorkRequestRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CancelWorkRequestResponse wrapper for the CancelWorkRequest operation +type CancelWorkRequestResponse struct { + + // The underlying http response + RawResponse *http.Response + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CancelWorkRequestResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CancelWorkRequestResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/compartment_id_resource_filter.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/compartment_id_resource_filter.go new file mode 100644 index 00000000000..382ae56c03f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/compartment_id_resource_filter.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CompartmentIdResourceFilter This is a resource filter for filtering resource based on compartment OCID. +type CompartmentIdResourceFilter struct { + + // This is the compartment used for filtering. + Value *string `mandatory:"false" json:"value"` + + // This sets whether to include child compartments. + ShouldIncludeChildCompartments *bool `mandatory:"false" json:"shouldIncludeChildCompartments"` +} + +func (m CompartmentIdResourceFilter) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CompartmentIdResourceFilter) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m CompartmentIdResourceFilter) MarshalJSON() (buff []byte, e error) { + type MarshalTypeCompartmentIdResourceFilter CompartmentIdResourceFilter + s := struct { + DiscriminatorParam string `json:"attribute"` + MarshalTypeCompartmentIdResourceFilter + }{ + "COMPARTMENT_ID", + (MarshalTypeCompartmentIdResourceFilter)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/create_schedule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/create_schedule_details.go new file mode 100644 index 00000000000..e67d04a9d93 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/create_schedule_details.go @@ -0,0 +1,229 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateScheduleDetails This is the data to create a schedule. +type CreateScheduleDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // This is the action that will be executed by the schedule. + Action CreateScheduleDetailsActionEnum `mandatory:"true" json:"action"` + + // This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting + // or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field. + RecurrenceDetails *string `mandatory:"true" json:"recurrenceDetails"` + + // Type of recurrence of a schedule + RecurrenceType CreateScheduleDetailsRecurrenceTypeEnum `mandatory:"true" json:"recurrenceType"` + + // This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // This is the description of the schedule. + Description *string `mandatory:"false" json:"description"` + + // This is a list of resources filters. The schedule will be applied to resources matching all of them. + ResourceFilters []ResourceFilter `mandatory:"false" json:"resourceFilters"` + + // This is the list of resources to which the scheduled operation is applied. + Resources []Resource `mandatory:"false" json:"resources"` + + // This is the date and time the schedule starts, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339) + // Example: `2016-08-25T21:10:29.600Z` + TimeStarts *common.SDKTime `mandatory:"false" json:"timeStarts"` + + // This is the date and time the schedule ends, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339) + // Example: `2016-08-25T21:10:29.600Z` + TimeEnds *common.SDKTime `mandatory:"false" json:"timeEnds"` + + // These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // These are defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateScheduleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateScheduleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateScheduleDetailsActionEnum(string(m.Action)); !ok && m.Action != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Action: %s. Supported values are: %s.", m.Action, strings.Join(GetCreateScheduleDetailsActionEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateScheduleDetailsRecurrenceTypeEnum(string(m.RecurrenceType)); !ok && m.RecurrenceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecurrenceType: %s. Supported values are: %s.", m.RecurrenceType, strings.Join(GetCreateScheduleDetailsRecurrenceTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateScheduleDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + Description *string `json:"description"` + ResourceFilters []resourcefilter `json:"resourceFilters"` + Resources []Resource `json:"resources"` + TimeStarts *common.SDKTime `json:"timeStarts"` + TimeEnds *common.SDKTime `json:"timeEnds"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + CompartmentId *string `json:"compartmentId"` + Action CreateScheduleDetailsActionEnum `json:"action"` + RecurrenceDetails *string `json:"recurrenceDetails"` + RecurrenceType CreateScheduleDetailsRecurrenceTypeEnum `json:"recurrenceType"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.Description = model.Description + + m.ResourceFilters = make([]ResourceFilter, len(model.ResourceFilters)) + for i, n := range model.ResourceFilters { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ResourceFilters[i] = nn.(ResourceFilter) + } else { + m.ResourceFilters[i] = nil + } + } + m.Resources = make([]Resource, len(model.Resources)) + copy(m.Resources, model.Resources) + m.TimeStarts = model.TimeStarts + + m.TimeEnds = model.TimeEnds + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.CompartmentId = model.CompartmentId + + m.Action = model.Action + + m.RecurrenceDetails = model.RecurrenceDetails + + m.RecurrenceType = model.RecurrenceType + + return +} + +// CreateScheduleDetailsActionEnum Enum with underlying type: string +type CreateScheduleDetailsActionEnum string + +// Set of constants representing the allowable values for CreateScheduleDetailsActionEnum +const ( + CreateScheduleDetailsActionStartResource CreateScheduleDetailsActionEnum = "START_RESOURCE" + CreateScheduleDetailsActionStopResource CreateScheduleDetailsActionEnum = "STOP_RESOURCE" +) + +var mappingCreateScheduleDetailsActionEnum = map[string]CreateScheduleDetailsActionEnum{ + "START_RESOURCE": CreateScheduleDetailsActionStartResource, + "STOP_RESOURCE": CreateScheduleDetailsActionStopResource, +} + +var mappingCreateScheduleDetailsActionEnumLowerCase = map[string]CreateScheduleDetailsActionEnum{ + "start_resource": CreateScheduleDetailsActionStartResource, + "stop_resource": CreateScheduleDetailsActionStopResource, +} + +// GetCreateScheduleDetailsActionEnumValues Enumerates the set of values for CreateScheduleDetailsActionEnum +func GetCreateScheduleDetailsActionEnumValues() []CreateScheduleDetailsActionEnum { + values := make([]CreateScheduleDetailsActionEnum, 0) + for _, v := range mappingCreateScheduleDetailsActionEnum { + values = append(values, v) + } + return values +} + +// GetCreateScheduleDetailsActionEnumStringValues Enumerates the set of values in String for CreateScheduleDetailsActionEnum +func GetCreateScheduleDetailsActionEnumStringValues() []string { + return []string{ + "START_RESOURCE", + "STOP_RESOURCE", + } +} + +// GetMappingCreateScheduleDetailsActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateScheduleDetailsActionEnum(val string) (CreateScheduleDetailsActionEnum, bool) { + enum, ok := mappingCreateScheduleDetailsActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateScheduleDetailsRecurrenceTypeEnum Enum with underlying type: string +type CreateScheduleDetailsRecurrenceTypeEnum string + +// Set of constants representing the allowable values for CreateScheduleDetailsRecurrenceTypeEnum +const ( + CreateScheduleDetailsRecurrenceTypeCron CreateScheduleDetailsRecurrenceTypeEnum = "CRON" + CreateScheduleDetailsRecurrenceTypeIcal CreateScheduleDetailsRecurrenceTypeEnum = "ICAL" +) + +var mappingCreateScheduleDetailsRecurrenceTypeEnum = map[string]CreateScheduleDetailsRecurrenceTypeEnum{ + "CRON": CreateScheduleDetailsRecurrenceTypeCron, + "ICAL": CreateScheduleDetailsRecurrenceTypeIcal, +} + +var mappingCreateScheduleDetailsRecurrenceTypeEnumLowerCase = map[string]CreateScheduleDetailsRecurrenceTypeEnum{ + "cron": CreateScheduleDetailsRecurrenceTypeCron, + "ical": CreateScheduleDetailsRecurrenceTypeIcal, +} + +// GetCreateScheduleDetailsRecurrenceTypeEnumValues Enumerates the set of values for CreateScheduleDetailsRecurrenceTypeEnum +func GetCreateScheduleDetailsRecurrenceTypeEnumValues() []CreateScheduleDetailsRecurrenceTypeEnum { + values := make([]CreateScheduleDetailsRecurrenceTypeEnum, 0) + for _, v := range mappingCreateScheduleDetailsRecurrenceTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateScheduleDetailsRecurrenceTypeEnumStringValues Enumerates the set of values in String for CreateScheduleDetailsRecurrenceTypeEnum +func GetCreateScheduleDetailsRecurrenceTypeEnumStringValues() []string { + return []string{ + "CRON", + "ICAL", + } +} + +// GetMappingCreateScheduleDetailsRecurrenceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateScheduleDetailsRecurrenceTypeEnum(val string) (CreateScheduleDetailsRecurrenceTypeEnum, bool) { + enum, ok := mappingCreateScheduleDetailsRecurrenceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/create_schedule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/create_schedule_request_response.go new file mode 100644 index 00000000000..e36564bb600 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/create_schedule_request_response.go @@ -0,0 +1,113 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateScheduleRequest wrapper for the CreateSchedule operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/CreateSchedule.go.html to see an example of how to use CreateScheduleRequest. +type CreateScheduleRequest struct { + + // This API shows the details of the new schedule + CreateScheduleDetails `contributesTo:"body"` + + // This is a token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of running 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 removed from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateScheduleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateScheduleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateScheduleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateScheduleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateScheduleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateScheduleResponse wrapper for the CreateSchedule operation +type CreateScheduleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Schedule instance + Schedule `presentIn:"body"` + + // This is the URL for the created schedule. The schedule OCID is generated after this request is sent. + Location *string `presentIn:"header" name:"location"` + + // This is the same as location + ContentLocation *string `presentIn:"header" name:"content-location"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + // Use GetWorkRequest with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateScheduleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateScheduleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/deactivate_schedule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/deactivate_schedule_request_response.go new file mode 100644 index 00000000000..19561416c92 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/deactivate_schedule_request_response.go @@ -0,0 +1,109 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeactivateScheduleRequest wrapper for the DeactivateSchedule operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/DeactivateSchedule.go.html to see an example of how to use DeactivateScheduleRequest. +type DeactivateScheduleRequest struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. + ScheduleId *string `mandatory:"true" contributesTo:"path" name:"scheduleId"` + + // This is used 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // This is a token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of running 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 removed from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeactivateScheduleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeactivateScheduleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeactivateScheduleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeactivateScheduleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeactivateScheduleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeactivateScheduleResponse wrapper for the DeactivateSchedule operation +type DeactivateScheduleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Schedule instance + Schedule `presentIn:"body"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response DeactivateScheduleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeactivateScheduleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/defined_tag_filter_value.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/defined_tag_filter_value.go new file mode 100644 index 00000000000..7179903d8af --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/defined_tag_filter_value.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DefinedTagFilterValue This is a defined tag filter value. +type DefinedTagFilterValue struct { + + // This is the namespace of the defined tag. + Namespace *string `mandatory:"false" json:"namespace"` + + // This is the key of the defined tag. + TagKey *string `mandatory:"false" json:"tagKey"` + + // This is the value of the defined tag. + Value *string `mandatory:"false" json:"value"` +} + +func (m DefinedTagFilterValue) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DefinedTagFilterValue) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/defined_tags_resource_filter.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/defined_tags_resource_filter.go new file mode 100644 index 00000000000..773d9fff048 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/defined_tags_resource_filter.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DefinedTagsResourceFilter This is a resource filter for filtering resource based on a defined tag. +type DefinedTagsResourceFilter struct { + + // This is a defined tag filter value. + Value []DefinedTagFilterValue `mandatory:"false" json:"value"` +} + +func (m DefinedTagsResourceFilter) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DefinedTagsResourceFilter) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m DefinedTagsResourceFilter) MarshalJSON() (buff []byte, e error) { + type MarshalTypeDefinedTagsResourceFilter DefinedTagsResourceFilter + s := struct { + DiscriminatorParam string `json:"attribute"` + MarshalTypeDefinedTagsResourceFilter + }{ + "DEFINED_TAGS", + (MarshalTypeDefinedTagsResourceFilter)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/delete_schedule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/delete_schedule_request_response.go new file mode 100644 index 00000000000..11aea4022fe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/delete_schedule_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteScheduleRequest wrapper for the DeleteSchedule operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/DeleteSchedule.go.html to see an example of how to use DeleteScheduleRequest. +type DeleteScheduleRequest struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. + ScheduleId *string `mandatory:"true" contributesTo:"path" name:"scheduleId"` + + // This is used 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteScheduleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteScheduleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteScheduleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteScheduleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteScheduleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteScheduleResponse wrapper for the DeleteSchedule operation +type DeleteScheduleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteScheduleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteScheduleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/get_schedule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/get_schedule_request_response.go new file mode 100644 index 00000000000..08019d088d5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/get_schedule_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetScheduleRequest wrapper for the GetSchedule operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/GetSchedule.go.html to see an example of how to use GetScheduleRequest. +type GetScheduleRequest struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. + ScheduleId *string `mandatory:"true" contributesTo:"path" name:"scheduleId"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetScheduleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetScheduleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetScheduleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetScheduleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetScheduleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetScheduleResponse wrapper for the GetSchedule operation +type GetScheduleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Schedule instance + Schedule `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetScheduleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetScheduleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/get_work_request_request_response.go new file mode 100644 index 00000000000..d8a498b2ca7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/get_work_request_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetWorkRequestRequest wrapper for the GetWorkRequest operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest. +type GetWorkRequestRequest struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetWorkRequestRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetWorkRequestResponse wrapper for the GetWorkRequest operation +type GetWorkRequestResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The WorkRequest instance + WorkRequest `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // This is a decimal number representing the number of seconds the client should wait before polling this endpoint again. + RetryAfter *int `presentIn:"header" name:"retry-after"` +} + +func (response GetWorkRequestResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetWorkRequestResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/lifecycle_state_resource_filter.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/lifecycle_state_resource_filter.go new file mode 100644 index 00000000000..eb6c1ecb685 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/lifecycle_state_resource_filter.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LifecycleStateResourceFilter This is a resource filter for filtering resources based on their lifecycle state. +type LifecycleStateResourceFilter struct { + + // This is a collection of resource lifecycle state values. + Value []string `mandatory:"false" json:"value"` +} + +func (m LifecycleStateResourceFilter) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LifecycleStateResourceFilter) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m LifecycleStateResourceFilter) MarshalJSON() (buff []byte, e error) { + type MarshalTypeLifecycleStateResourceFilter LifecycleStateResourceFilter + s := struct { + DiscriminatorParam string `json:"attribute"` + MarshalTypeLifecycleStateResourceFilter + }{ + "LIFECYCLE_STATE", + (MarshalTypeLifecycleStateResourceFilter)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_resource_types_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_resource_types_request_response.go new file mode 100644 index 00000000000..cb8136fa9c0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_resource_types_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListResourceTypesRequest wrapper for the ListResourceTypes operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/ListResourceTypes.go.html to see an example of how to use ListResourceTypesRequest. +type ListResourceTypesRequest struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a + // paginated "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // This used for list pagination. The value of the opc-next-page response header from the previous + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListResourceTypesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListResourceTypesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListResourceTypesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListResourceTypesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListResourceTypesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListResourceTypesResponse wrapper for the ListResourceTypes operation +type ListResourceTypesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ResourceTypeCollection instances + ResourceTypeCollection `presentIn:"body"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // When this header appears in the list pagination response, there are additional results pages to view. For + // important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListResourceTypesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListResourceTypesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_schedules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_schedules_request_response.go new file mode 100644 index 00000000000..b3273dd0300 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_schedules_request_response.go @@ -0,0 +1,225 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListSchedulesRequest wrapper for the ListSchedules operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/ListSchedules.go.html to see an example of how to use ListSchedulesRequest. +type ListSchedulesRequest struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // This is a filter to return only resources that match the given lifecycle state. The + // state value is case-insensitive. + LifecycleState ScheduleLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // This is a filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. + ScheduleId *string `mandatory:"false" contributesTo:"query" name:"scheduleId"` + + // For list pagination. The maximum number of results per page, or items to return in a + // paginated "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // This used for list pagination. The value of the opc-next-page response header from the previous + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // This is the field to sort by. You can provide only one sort order. The default order for `timeCreated` + // is descending. The default order for `displayName` is ascending. + SortBy ListSchedulesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // This is the sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListSchedulesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListSchedulesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListSchedulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListSchedulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListSchedulesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListSchedulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingScheduleLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetScheduleLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListSchedulesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListSchedulesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListSchedulesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListSchedulesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListSchedulesResponse wrapper for the ListSchedules operation +type ListSchedulesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ScheduleCollection instances + ScheduleCollection `presentIn:"body"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // When this header appears in the list pagination response, there are additional results pages to view. For + // important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListSchedulesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListSchedulesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListSchedulesSortByEnum Enum with underlying type: string +type ListSchedulesSortByEnum string + +// Set of constants representing the allowable values for ListSchedulesSortByEnum +const ( + ListSchedulesSortByTimecreated ListSchedulesSortByEnum = "timeCreated" + ListSchedulesSortByDisplayname ListSchedulesSortByEnum = "displayName" + ListSchedulesSortByLifecyclestate ListSchedulesSortByEnum = "lifecycleState" + ListSchedulesSortByState ListSchedulesSortByEnum = "state" +) + +var mappingListSchedulesSortByEnum = map[string]ListSchedulesSortByEnum{ + "timeCreated": ListSchedulesSortByTimecreated, + "displayName": ListSchedulesSortByDisplayname, + "lifecycleState": ListSchedulesSortByLifecyclestate, + "state": ListSchedulesSortByState, +} + +var mappingListSchedulesSortByEnumLowerCase = map[string]ListSchedulesSortByEnum{ + "timecreated": ListSchedulesSortByTimecreated, + "displayname": ListSchedulesSortByDisplayname, + "lifecyclestate": ListSchedulesSortByLifecyclestate, + "state": ListSchedulesSortByState, +} + +// GetListSchedulesSortByEnumValues Enumerates the set of values for ListSchedulesSortByEnum +func GetListSchedulesSortByEnumValues() []ListSchedulesSortByEnum { + values := make([]ListSchedulesSortByEnum, 0) + for _, v := range mappingListSchedulesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListSchedulesSortByEnumStringValues Enumerates the set of values in String for ListSchedulesSortByEnum +func GetListSchedulesSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + "lifecycleState", + "state", + } +} + +// GetMappingListSchedulesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSchedulesSortByEnum(val string) (ListSchedulesSortByEnum, bool) { + enum, ok := mappingListSchedulesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListSchedulesSortOrderEnum Enum with underlying type: string +type ListSchedulesSortOrderEnum string + +// Set of constants representing the allowable values for ListSchedulesSortOrderEnum +const ( + ListSchedulesSortOrderAsc ListSchedulesSortOrderEnum = "ASC" + ListSchedulesSortOrderDesc ListSchedulesSortOrderEnum = "DESC" +) + +var mappingListSchedulesSortOrderEnum = map[string]ListSchedulesSortOrderEnum{ + "ASC": ListSchedulesSortOrderAsc, + "DESC": ListSchedulesSortOrderDesc, +} + +var mappingListSchedulesSortOrderEnumLowerCase = map[string]ListSchedulesSortOrderEnum{ + "asc": ListSchedulesSortOrderAsc, + "desc": ListSchedulesSortOrderDesc, +} + +// GetListSchedulesSortOrderEnumValues Enumerates the set of values for ListSchedulesSortOrderEnum +func GetListSchedulesSortOrderEnumValues() []ListSchedulesSortOrderEnum { + values := make([]ListSchedulesSortOrderEnum, 0) + for _, v := range mappingListSchedulesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListSchedulesSortOrderEnumStringValues Enumerates the set of values in String for ListSchedulesSortOrderEnum +func GetListSchedulesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListSchedulesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSchedulesSortOrderEnum(val string) (ListSchedulesSortOrderEnum, bool) { + enum, ok := mappingListSchedulesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_work_request_errors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_work_request_errors_request_response.go new file mode 100644 index 00000000000..241f687db97 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_work_request_errors_request_response.go @@ -0,0 +1,199 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrorsRequest. +type ListWorkRequestErrorsRequest struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // This used for list pagination. The value of the opc-next-page response header from the previous + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // For list pagination. The maximum number of results per page, or items to return in a + // paginated "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // This is the field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending. + SortBy ListWorkRequestErrorsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // This is the sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListWorkRequestErrorsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestErrorsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListWorkRequestErrorsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListWorkRequestErrorsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListWorkRequestErrorsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListWorkRequestErrorsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListWorkRequestErrorsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation +type ListWorkRequestErrorsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of WorkRequestErrorCollection instances + WorkRequestErrorCollection `presentIn:"body"` + + // When this header appears in the list pagination response, there are additional results pages to view. For + // important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListWorkRequestErrorsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListWorkRequestErrorsSortByEnum Enum with underlying type: string +type ListWorkRequestErrorsSortByEnum string + +// Set of constants representing the allowable values for ListWorkRequestErrorsSortByEnum +const ( + ListWorkRequestErrorsSortByTimestamp ListWorkRequestErrorsSortByEnum = "timestamp" +) + +var mappingListWorkRequestErrorsSortByEnum = map[string]ListWorkRequestErrorsSortByEnum{ + "timestamp": ListWorkRequestErrorsSortByTimestamp, +} + +var mappingListWorkRequestErrorsSortByEnumLowerCase = map[string]ListWorkRequestErrorsSortByEnum{ + "timestamp": ListWorkRequestErrorsSortByTimestamp, +} + +// GetListWorkRequestErrorsSortByEnumValues Enumerates the set of values for ListWorkRequestErrorsSortByEnum +func GetListWorkRequestErrorsSortByEnumValues() []ListWorkRequestErrorsSortByEnum { + values := make([]ListWorkRequestErrorsSortByEnum, 0) + for _, v := range mappingListWorkRequestErrorsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestErrorsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestErrorsSortByEnum +func GetListWorkRequestErrorsSortByEnumStringValues() []string { + return []string{ + "timestamp", + } +} + +// GetMappingListWorkRequestErrorsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestErrorsSortByEnum(val string) (ListWorkRequestErrorsSortByEnum, bool) { + enum, ok := mappingListWorkRequestErrorsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListWorkRequestErrorsSortOrderEnum Enum with underlying type: string +type ListWorkRequestErrorsSortOrderEnum string + +// Set of constants representing the allowable values for ListWorkRequestErrorsSortOrderEnum +const ( + ListWorkRequestErrorsSortOrderAsc ListWorkRequestErrorsSortOrderEnum = "ASC" + ListWorkRequestErrorsSortOrderDesc ListWorkRequestErrorsSortOrderEnum = "DESC" +) + +var mappingListWorkRequestErrorsSortOrderEnum = map[string]ListWorkRequestErrorsSortOrderEnum{ + "ASC": ListWorkRequestErrorsSortOrderAsc, + "DESC": ListWorkRequestErrorsSortOrderDesc, +} + +var mappingListWorkRequestErrorsSortOrderEnumLowerCase = map[string]ListWorkRequestErrorsSortOrderEnum{ + "asc": ListWorkRequestErrorsSortOrderAsc, + "desc": ListWorkRequestErrorsSortOrderDesc, +} + +// GetListWorkRequestErrorsSortOrderEnumValues Enumerates the set of values for ListWorkRequestErrorsSortOrderEnum +func GetListWorkRequestErrorsSortOrderEnumValues() []ListWorkRequestErrorsSortOrderEnum { + values := make([]ListWorkRequestErrorsSortOrderEnum, 0) + for _, v := range mappingListWorkRequestErrorsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestErrorsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestErrorsSortOrderEnum +func GetListWorkRequestErrorsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListWorkRequestErrorsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestErrorsSortOrderEnum(val string) (ListWorkRequestErrorsSortOrderEnum, bool) { + enum, ok := mappingListWorkRequestErrorsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_work_request_logs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_work_request_logs_request_response.go new file mode 100644 index 00000000000..c23ad2daa5f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_work_request_logs_request_response.go @@ -0,0 +1,199 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogsRequest. +type ListWorkRequestLogsRequest struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // This used for list pagination. The value of the opc-next-page response header from the previous + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // For list pagination. The maximum number of results per page, or items to return in a + // paginated "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // This is the field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending. + SortBy ListWorkRequestLogsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // This is the sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListWorkRequestLogsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestLogsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListWorkRequestLogsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListWorkRequestLogsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListWorkRequestLogsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListWorkRequestLogsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListWorkRequestLogsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation +type ListWorkRequestLogsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of WorkRequestLogEntryCollection instances + WorkRequestLogEntryCollection `presentIn:"body"` + + // When this header appears in the list pagination response, there are additional results pages to view. For + // important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListWorkRequestLogsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListWorkRequestLogsSortByEnum Enum with underlying type: string +type ListWorkRequestLogsSortByEnum string + +// Set of constants representing the allowable values for ListWorkRequestLogsSortByEnum +const ( + ListWorkRequestLogsSortByTimestamp ListWorkRequestLogsSortByEnum = "timestamp" +) + +var mappingListWorkRequestLogsSortByEnum = map[string]ListWorkRequestLogsSortByEnum{ + "timestamp": ListWorkRequestLogsSortByTimestamp, +} + +var mappingListWorkRequestLogsSortByEnumLowerCase = map[string]ListWorkRequestLogsSortByEnum{ + "timestamp": ListWorkRequestLogsSortByTimestamp, +} + +// GetListWorkRequestLogsSortByEnumValues Enumerates the set of values for ListWorkRequestLogsSortByEnum +func GetListWorkRequestLogsSortByEnumValues() []ListWorkRequestLogsSortByEnum { + values := make([]ListWorkRequestLogsSortByEnum, 0) + for _, v := range mappingListWorkRequestLogsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestLogsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestLogsSortByEnum +func GetListWorkRequestLogsSortByEnumStringValues() []string { + return []string{ + "timestamp", + } +} + +// GetMappingListWorkRequestLogsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestLogsSortByEnum(val string) (ListWorkRequestLogsSortByEnum, bool) { + enum, ok := mappingListWorkRequestLogsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListWorkRequestLogsSortOrderEnum Enum with underlying type: string +type ListWorkRequestLogsSortOrderEnum string + +// Set of constants representing the allowable values for ListWorkRequestLogsSortOrderEnum +const ( + ListWorkRequestLogsSortOrderAsc ListWorkRequestLogsSortOrderEnum = "ASC" + ListWorkRequestLogsSortOrderDesc ListWorkRequestLogsSortOrderEnum = "DESC" +) + +var mappingListWorkRequestLogsSortOrderEnum = map[string]ListWorkRequestLogsSortOrderEnum{ + "ASC": ListWorkRequestLogsSortOrderAsc, + "DESC": ListWorkRequestLogsSortOrderDesc, +} + +var mappingListWorkRequestLogsSortOrderEnumLowerCase = map[string]ListWorkRequestLogsSortOrderEnum{ + "asc": ListWorkRequestLogsSortOrderAsc, + "desc": ListWorkRequestLogsSortOrderDesc, +} + +// GetListWorkRequestLogsSortOrderEnumValues Enumerates the set of values for ListWorkRequestLogsSortOrderEnum +func GetListWorkRequestLogsSortOrderEnumValues() []ListWorkRequestLogsSortOrderEnum { + values := make([]ListWorkRequestLogsSortOrderEnum, 0) + for _, v := range mappingListWorkRequestLogsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestLogsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestLogsSortOrderEnum +func GetListWorkRequestLogsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListWorkRequestLogsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestLogsSortOrderEnum(val string) (ListWorkRequestLogsSortOrderEnum, bool) { + enum, ok := mappingListWorkRequestLogsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_work_requests_request_response.go new file mode 100644 index 00000000000..cabb0df3dd9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/list_work_requests_request_response.go @@ -0,0 +1,280 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestsRequest wrapper for the ListWorkRequests operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/ListWorkRequests.go.html to see an example of how to use ListWorkRequestsRequest. +type ListWorkRequestsRequest struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + WorkRequestId *string `mandatory:"false" contributesTo:"query" name:"workRequestId"` + + // This is a filter to return only the resources that match the given lifecycle state. + Status ListWorkRequestsStatusEnum `mandatory:"false" contributesTo:"query" name:"status" omitEmpty:"true"` + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request. + ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"` + + // This used for list pagination. The value of the opc-next-page response header from the previous + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // For list pagination. The maximum number of results per page, or items to return in a + // paginated "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // This is the sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListWorkRequestsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // This is the field to sort by. Only one sort order may be provided. Default order for `timeAccepted` is descending. + SortBy ListWorkRequestsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. + ScheduleId *string `mandatory:"false" contributesTo:"query" name:"scheduleId"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListWorkRequestsStatusEnum(string(request.Status)); !ok && request.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", request.Status, strings.Join(GetListWorkRequestsStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingListWorkRequestsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListWorkRequestsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListWorkRequestsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListWorkRequestsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListWorkRequestsResponse wrapper for the ListWorkRequests operation +type ListWorkRequestsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of WorkRequestSummaryCollection instances + WorkRequestSummaryCollection `presentIn:"body"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // When this header appears in the list pagination response, there are additional results pages to view. For + // important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListWorkRequestsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListWorkRequestsStatusEnum Enum with underlying type: string +type ListWorkRequestsStatusEnum string + +// Set of constants representing the allowable values for ListWorkRequestsStatusEnum +const ( + ListWorkRequestsStatusAccepted ListWorkRequestsStatusEnum = "ACCEPTED" + ListWorkRequestsStatusInProgress ListWorkRequestsStatusEnum = "IN_PROGRESS" + ListWorkRequestsStatusWaiting ListWorkRequestsStatusEnum = "WAITING" + ListWorkRequestsStatusNeedsAttention ListWorkRequestsStatusEnum = "NEEDS_ATTENTION" + ListWorkRequestsStatusFailed ListWorkRequestsStatusEnum = "FAILED" + ListWorkRequestsStatusSucceeded ListWorkRequestsStatusEnum = "SUCCEEDED" + ListWorkRequestsStatusCanceling ListWorkRequestsStatusEnum = "CANCELING" + ListWorkRequestsStatusCanceled ListWorkRequestsStatusEnum = "CANCELED" +) + +var mappingListWorkRequestsStatusEnum = map[string]ListWorkRequestsStatusEnum{ + "ACCEPTED": ListWorkRequestsStatusAccepted, + "IN_PROGRESS": ListWorkRequestsStatusInProgress, + "WAITING": ListWorkRequestsStatusWaiting, + "NEEDS_ATTENTION": ListWorkRequestsStatusNeedsAttention, + "FAILED": ListWorkRequestsStatusFailed, + "SUCCEEDED": ListWorkRequestsStatusSucceeded, + "CANCELING": ListWorkRequestsStatusCanceling, + "CANCELED": ListWorkRequestsStatusCanceled, +} + +var mappingListWorkRequestsStatusEnumLowerCase = map[string]ListWorkRequestsStatusEnum{ + "accepted": ListWorkRequestsStatusAccepted, + "in_progress": ListWorkRequestsStatusInProgress, + "waiting": ListWorkRequestsStatusWaiting, + "needs_attention": ListWorkRequestsStatusNeedsAttention, + "failed": ListWorkRequestsStatusFailed, + "succeeded": ListWorkRequestsStatusSucceeded, + "canceling": ListWorkRequestsStatusCanceling, + "canceled": ListWorkRequestsStatusCanceled, +} + +// GetListWorkRequestsStatusEnumValues Enumerates the set of values for ListWorkRequestsStatusEnum +func GetListWorkRequestsStatusEnumValues() []ListWorkRequestsStatusEnum { + values := make([]ListWorkRequestsStatusEnum, 0) + for _, v := range mappingListWorkRequestsStatusEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestsStatusEnumStringValues Enumerates the set of values in String for ListWorkRequestsStatusEnum +func GetListWorkRequestsStatusEnumStringValues() []string { + return []string{ + "ACCEPTED", + "IN_PROGRESS", + "WAITING", + "NEEDS_ATTENTION", + "FAILED", + "SUCCEEDED", + "CANCELING", + "CANCELED", + } +} + +// GetMappingListWorkRequestsStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestsStatusEnum(val string) (ListWorkRequestsStatusEnum, bool) { + enum, ok := mappingListWorkRequestsStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListWorkRequestsSortOrderEnum Enum with underlying type: string +type ListWorkRequestsSortOrderEnum string + +// Set of constants representing the allowable values for ListWorkRequestsSortOrderEnum +const ( + ListWorkRequestsSortOrderAsc ListWorkRequestsSortOrderEnum = "ASC" + ListWorkRequestsSortOrderDesc ListWorkRequestsSortOrderEnum = "DESC" +) + +var mappingListWorkRequestsSortOrderEnum = map[string]ListWorkRequestsSortOrderEnum{ + "ASC": ListWorkRequestsSortOrderAsc, + "DESC": ListWorkRequestsSortOrderDesc, +} + +var mappingListWorkRequestsSortOrderEnumLowerCase = map[string]ListWorkRequestsSortOrderEnum{ + "asc": ListWorkRequestsSortOrderAsc, + "desc": ListWorkRequestsSortOrderDesc, +} + +// GetListWorkRequestsSortOrderEnumValues Enumerates the set of values for ListWorkRequestsSortOrderEnum +func GetListWorkRequestsSortOrderEnumValues() []ListWorkRequestsSortOrderEnum { + values := make([]ListWorkRequestsSortOrderEnum, 0) + for _, v := range mappingListWorkRequestsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortOrderEnum +func GetListWorkRequestsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListWorkRequestsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestsSortOrderEnum(val string) (ListWorkRequestsSortOrderEnum, bool) { + enum, ok := mappingListWorkRequestsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListWorkRequestsSortByEnum Enum with underlying type: string +type ListWorkRequestsSortByEnum string + +// Set of constants representing the allowable values for ListWorkRequestsSortByEnum +const ( + ListWorkRequestsSortByTimeaccepted ListWorkRequestsSortByEnum = "timeAccepted" +) + +var mappingListWorkRequestsSortByEnum = map[string]ListWorkRequestsSortByEnum{ + "timeAccepted": ListWorkRequestsSortByTimeaccepted, +} + +var mappingListWorkRequestsSortByEnumLowerCase = map[string]ListWorkRequestsSortByEnum{ + "timeaccepted": ListWorkRequestsSortByTimeaccepted, +} + +// GetListWorkRequestsSortByEnumValues Enumerates the set of values for ListWorkRequestsSortByEnum +func GetListWorkRequestsSortByEnumValues() []ListWorkRequestsSortByEnum { + values := make([]ListWorkRequestsSortByEnum, 0) + for _, v := range mappingListWorkRequestsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortByEnum +func GetListWorkRequestsSortByEnumStringValues() []string { + return []string{ + "timeAccepted", + } +} + +// GetMappingListWorkRequestsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestsSortByEnum(val string) (ListWorkRequestsSortByEnum, bool) { + enum, ok := mappingListWorkRequestsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/operation_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/operation_status.go new file mode 100644 index 00000000000..579e4e69e59 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/operation_status.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "strings" +) + +// OperationStatusEnum Enum with underlying type: string +type OperationStatusEnum string + +// Set of constants representing the allowable values for OperationStatusEnum +const ( + OperationStatusAccepted OperationStatusEnum = "ACCEPTED" + OperationStatusInProgress OperationStatusEnum = "IN_PROGRESS" + OperationStatusWaiting OperationStatusEnum = "WAITING" + OperationStatusNeedsAttention OperationStatusEnum = "NEEDS_ATTENTION" + OperationStatusFailed OperationStatusEnum = "FAILED" + OperationStatusSucceeded OperationStatusEnum = "SUCCEEDED" + OperationStatusCanceling OperationStatusEnum = "CANCELING" + OperationStatusCanceled OperationStatusEnum = "CANCELED" +) + +var mappingOperationStatusEnum = map[string]OperationStatusEnum{ + "ACCEPTED": OperationStatusAccepted, + "IN_PROGRESS": OperationStatusInProgress, + "WAITING": OperationStatusWaiting, + "NEEDS_ATTENTION": OperationStatusNeedsAttention, + "FAILED": OperationStatusFailed, + "SUCCEEDED": OperationStatusSucceeded, + "CANCELING": OperationStatusCanceling, + "CANCELED": OperationStatusCanceled, +} + +var mappingOperationStatusEnumLowerCase = map[string]OperationStatusEnum{ + "accepted": OperationStatusAccepted, + "in_progress": OperationStatusInProgress, + "waiting": OperationStatusWaiting, + "needs_attention": OperationStatusNeedsAttention, + "failed": OperationStatusFailed, + "succeeded": OperationStatusSucceeded, + "canceling": OperationStatusCanceling, + "canceled": OperationStatusCanceled, +} + +// GetOperationStatusEnumValues Enumerates the set of values for OperationStatusEnum +func GetOperationStatusEnumValues() []OperationStatusEnum { + values := make([]OperationStatusEnum, 0) + for _, v := range mappingOperationStatusEnum { + values = append(values, v) + } + return values +} + +// GetOperationStatusEnumStringValues Enumerates the set of values in String for OperationStatusEnum +func GetOperationStatusEnumStringValues() []string { + return []string{ + "ACCEPTED", + "IN_PROGRESS", + "WAITING", + "NEEDS_ATTENTION", + "FAILED", + "SUCCEEDED", + "CANCELING", + "CANCELED", + } +} + +// GetMappingOperationStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOperationStatusEnum(val string) (OperationStatusEnum, bool) { + enum, ok := mappingOperationStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/operation_type.go new file mode 100644 index 00000000000..fc27dfdbebc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/operation_type.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "strings" +) + +// OperationTypeEnum Enum with underlying type: string +type OperationTypeEnum string + +// Set of constants representing the allowable values for OperationTypeEnum +const ( + OperationTypeStartResource OperationTypeEnum = "START_RESOURCE" + OperationTypeStopResource OperationTypeEnum = "STOP_RESOURCE" + OperationTypeChangeScheduleCompartment OperationTypeEnum = "CHANGE_SCHEDULE_COMPARTMENT" + OperationTypeCreateSchedule OperationTypeEnum = "CREATE_SCHEDULE" + OperationTypeUpdateSchedule OperationTypeEnum = "UPDATE_SCHEDULE" +) + +var mappingOperationTypeEnum = map[string]OperationTypeEnum{ + "START_RESOURCE": OperationTypeStartResource, + "STOP_RESOURCE": OperationTypeStopResource, + "CHANGE_SCHEDULE_COMPARTMENT": OperationTypeChangeScheduleCompartment, + "CREATE_SCHEDULE": OperationTypeCreateSchedule, + "UPDATE_SCHEDULE": OperationTypeUpdateSchedule, +} + +var mappingOperationTypeEnumLowerCase = map[string]OperationTypeEnum{ + "start_resource": OperationTypeStartResource, + "stop_resource": OperationTypeStopResource, + "change_schedule_compartment": OperationTypeChangeScheduleCompartment, + "create_schedule": OperationTypeCreateSchedule, + "update_schedule": OperationTypeUpdateSchedule, +} + +// GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum +func GetOperationTypeEnumValues() []OperationTypeEnum { + values := make([]OperationTypeEnum, 0) + for _, v := range mappingOperationTypeEnum { + values = append(values, v) + } + return values +} + +// GetOperationTypeEnumStringValues Enumerates the set of values in String for OperationTypeEnum +func GetOperationTypeEnumStringValues() []string { + return []string{ + "START_RESOURCE", + "STOP_RESOURCE", + "CHANGE_SCHEDULE_COMPARTMENT", + "CREATE_SCHEDULE", + "UPDATE_SCHEDULE", + } +} + +// GetMappingOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOperationTypeEnum(val string) (OperationTypeEnum, bool) { + enum, ok := mappingOperationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource.go new file mode 100644 index 00000000000..623468cbfa4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Resource This is the schedule resource entity. +type Resource struct { + + // This is the resource OCID. + Id *string `mandatory:"true" json:"id"` + + // This is additional information that helps to identity the resource for the schedule. + // { + // "id": "" + // "metadata": + // { + // "namespaceName": "sampleNamespace", + // "bucketName": "sampleBucket" + // } + // } + Metadata map[string]string `mandatory:"false" json:"metadata"` +} + +func (m Resource) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Resource) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource_filter.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource_filter.go new file mode 100644 index 00000000000..820b1b8436d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource_filter.go @@ -0,0 +1,147 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ResourceFilter This is a generic filter used to decide which resources that the schedule be applied to. +type ResourceFilter interface { +} + +type resourcefilter struct { + JsonData []byte + Attribute string `json:"attribute"` +} + +// UnmarshalJSON unmarshals json +func (m *resourcefilter) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerresourcefilter resourcefilter + s := struct { + Model Unmarshalerresourcefilter + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Attribute = s.Model.Attribute + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *resourcefilter) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Attribute { + case "TIME_CREATED": + mm := TimeCreatedResourceFilter{} + err = json.Unmarshal(data, &mm) + return mm, err + case "RESOURCE_TYPE": + mm := ResourceTypeResourceFilter{} + err = json.Unmarshal(data, &mm) + return mm, err + case "LIFECYCLE_STATE": + mm := LifecycleStateResourceFilter{} + err = json.Unmarshal(data, &mm) + return mm, err + case "COMPARTMENT_ID": + mm := CompartmentIdResourceFilter{} + err = json.Unmarshal(data, &mm) + return mm, err + case "DEFINED_TAGS": + mm := DefinedTagsResourceFilter{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for ResourceFilter: %s.", m.Attribute) + return *m, nil + } +} + +func (m resourcefilter) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m resourcefilter) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ResourceFilterAttributeEnum Enum with underlying type: string +type ResourceFilterAttributeEnum string + +// Set of constants representing the allowable values for ResourceFilterAttributeEnum +const ( + ResourceFilterAttributeCompartmentId ResourceFilterAttributeEnum = "COMPARTMENT_ID" + ResourceFilterAttributeResourceType ResourceFilterAttributeEnum = "RESOURCE_TYPE" + ResourceFilterAttributeDefinedTags ResourceFilterAttributeEnum = "DEFINED_TAGS" + ResourceFilterAttributeTimeCreated ResourceFilterAttributeEnum = "TIME_CREATED" + ResourceFilterAttributeLifecycleState ResourceFilterAttributeEnum = "LIFECYCLE_STATE" +) + +var mappingResourceFilterAttributeEnum = map[string]ResourceFilterAttributeEnum{ + "COMPARTMENT_ID": ResourceFilterAttributeCompartmentId, + "RESOURCE_TYPE": ResourceFilterAttributeResourceType, + "DEFINED_TAGS": ResourceFilterAttributeDefinedTags, + "TIME_CREATED": ResourceFilterAttributeTimeCreated, + "LIFECYCLE_STATE": ResourceFilterAttributeLifecycleState, +} + +var mappingResourceFilterAttributeEnumLowerCase = map[string]ResourceFilterAttributeEnum{ + "compartment_id": ResourceFilterAttributeCompartmentId, + "resource_type": ResourceFilterAttributeResourceType, + "defined_tags": ResourceFilterAttributeDefinedTags, + "time_created": ResourceFilterAttributeTimeCreated, + "lifecycle_state": ResourceFilterAttributeLifecycleState, +} + +// GetResourceFilterAttributeEnumValues Enumerates the set of values for ResourceFilterAttributeEnum +func GetResourceFilterAttributeEnumValues() []ResourceFilterAttributeEnum { + values := make([]ResourceFilterAttributeEnum, 0) + for _, v := range mappingResourceFilterAttributeEnum { + values = append(values, v) + } + return values +} + +// GetResourceFilterAttributeEnumStringValues Enumerates the set of values in String for ResourceFilterAttributeEnum +func GetResourceFilterAttributeEnumStringValues() []string { + return []string{ + "COMPARTMENT_ID", + "RESOURCE_TYPE", + "DEFINED_TAGS", + "TIME_CREATED", + "LIFECYCLE_STATE", + } +} + +// GetMappingResourceFilterAttributeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingResourceFilterAttributeEnum(val string) (ResourceFilterAttributeEnum, bool) { + enum, ok := mappingResourceFilterAttributeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource_type.go new file mode 100644 index 00000000000..8fef9130025 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource_type.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ResourceType This is a resource type supported by resource scheduler. +type ResourceType struct { + + // This is a resource type supported by resource scheduler. + Name *string `mandatory:"true" json:"name"` +} + +func (m ResourceType) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ResourceType) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource_type_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource_type_collection.go new file mode 100644 index 00000000000..c2ec018645d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource_type_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ResourceTypeCollection This is the collection of resource types supported by resource scheduler. +type ResourceTypeCollection struct { + + // This is the collection of resource types supported by resource scheduler. + Items []ResourceType `mandatory:"true" json:"items"` +} + +func (m ResourceTypeCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ResourceTypeCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource_type_resource_filter.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource_type_resource_filter.go new file mode 100644 index 00000000000..fbb85d5404c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resource_type_resource_filter.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ResourceTypeResourceFilter This is a resource filter for filtering resource based on resource type. +type ResourceTypeResourceFilter struct { + + // This is a collection of resource types. + Value []string `mandatory:"false" json:"value"` +} + +func (m ResourceTypeResourceFilter) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ResourceTypeResourceFilter) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m ResourceTypeResourceFilter) MarshalJSON() (buff []byte, e error) { + type MarshalTypeResourceTypeResourceFilter ResourceTypeResourceFilter + s := struct { + DiscriminatorParam string `json:"attribute"` + MarshalTypeResourceTypeResourceFilter + }{ + "RESOURCE_TYPE", + (MarshalTypeResourceTypeResourceFilter)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resourcescheduler_schedule_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resourcescheduler_schedule_client.go new file mode 100644 index 00000000000..7f3f9914e21 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/resourcescheduler_schedule_client.go @@ -0,0 +1,861 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// ScheduleClient a client for Schedule +type ScheduleClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewScheduleClientWithConfigurationProvider Creates a new default Schedule client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewScheduleClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ScheduleClient, err error) { + if enabled := common.CheckForEnabledServices("resourcescheduler"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newScheduleClientFromBaseClient(baseClient, provider) +} + +// NewScheduleClientWithOboToken Creates a new default Schedule client with the given configuration provider. +// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer +// +// as well as reading the region +func NewScheduleClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ScheduleClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newScheduleClientFromBaseClient(baseClient, configProvider) +} + +func newScheduleClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client ScheduleClient, err error) { + // Schedule service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("Schedule")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = ScheduleClient{BaseClient: baseClient} + client.BasePath = "20240430" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *ScheduleClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("resourcescheduler", "https://resource-scheduler.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *ScheduleClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *ScheduleClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// ActivateSchedule This API activates a schedule. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/ActivateSchedule.go.html to see an example of how to use ActivateSchedule API. +// A default retry strategy applies to this operation ActivateSchedule() +func (client ScheduleClient) ActivateSchedule(ctx context.Context, request ActivateScheduleRequest) (response ActivateScheduleResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.activateSchedule, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ActivateScheduleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ActivateScheduleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ActivateScheduleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ActivateScheduleResponse") + } + return +} + +// activateSchedule implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) activateSchedule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/schedules/{scheduleId}/actions/activateSchedule", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ActivateScheduleResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/ActivateSchedule" + err = common.PostProcessServiceError(err, "Schedule", "ActivateSchedule", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CancelWorkRequest This API cancels a work request. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequest API. +// A default retry strategy applies to this operation CancelWorkRequest() +func (client ScheduleClient) CancelWorkRequest(ctx context.Context, request CancelWorkRequestRequest) (response CancelWorkRequestResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.cancelWorkRequest, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CancelWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CancelWorkRequestResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CancelWorkRequestResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CancelWorkRequestResponse") + } + return +} + +// cancelWorkRequest implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) cancelWorkRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/workRequests/{workRequestId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CancelWorkRequestResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequest/CancelWorkRequest" + err = common.PostProcessServiceError(err, "Schedule", "CancelWorkRequest", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateSchedule Creates a Schedule +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/CreateSchedule.go.html to see an example of how to use CreateSchedule API. +// A default retry strategy applies to this operation CreateSchedule() +func (client ScheduleClient) CreateSchedule(ctx context.Context, request CreateScheduleRequest) (response CreateScheduleResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createSchedule, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateScheduleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateScheduleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateScheduleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateScheduleResponse") + } + return +} + +// createSchedule implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) createSchedule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/schedules", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateScheduleResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/CreateSchedule" + err = common.PostProcessServiceError(err, "Schedule", "CreateSchedule", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeactivateSchedule This API deactivates a schedule. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/DeactivateSchedule.go.html to see an example of how to use DeactivateSchedule API. +// A default retry strategy applies to this operation DeactivateSchedule() +func (client ScheduleClient) DeactivateSchedule(ctx context.Context, request DeactivateScheduleRequest) (response DeactivateScheduleResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.deactivateSchedule, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeactivateScheduleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeactivateScheduleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeactivateScheduleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeactivateScheduleResponse") + } + return +} + +// deactivateSchedule implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) deactivateSchedule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/schedules/{scheduleId}/actions/deactivateSchedule", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeactivateScheduleResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/DeactivateSchedule" + err = common.PostProcessServiceError(err, "Schedule", "DeactivateSchedule", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteSchedule This API deletes a schedule. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/DeleteSchedule.go.html to see an example of how to use DeleteSchedule API. +// A default retry strategy applies to this operation DeleteSchedule() +func (client ScheduleClient) DeleteSchedule(ctx context.Context, request DeleteScheduleRequest) (response DeleteScheduleResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteSchedule, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteScheduleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteScheduleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteScheduleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteScheduleResponse") + } + return +} + +// deleteSchedule implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) deleteSchedule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/schedules/{scheduleId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteScheduleResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/DeleteSchedule" + err = common.PostProcessServiceError(err, "Schedule", "DeleteSchedule", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetSchedule This API gets information about a schedule. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/GetSchedule.go.html to see an example of how to use GetSchedule API. +// A default retry strategy applies to this operation GetSchedule() +func (client ScheduleClient) GetSchedule(ctx context.Context, request GetScheduleRequest) (response GetScheduleResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getSchedule, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetScheduleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetScheduleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetScheduleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetScheduleResponse") + } + return +} + +// getSchedule implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) getSchedule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedules/{scheduleId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetScheduleResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/GetSchedule" + err = common.PostProcessServiceError(err, "Schedule", "GetSchedule", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetWorkRequest This API gets the details of a work request. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. +// A default retry strategy applies to this operation GetWorkRequest() +func (client ScheduleClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getWorkRequest, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetWorkRequestResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetWorkRequestResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetWorkRequestResponse") + } + return +} + +// getWorkRequest implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) getWorkRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetWorkRequestResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequest/GetWorkRequest" + err = common.PostProcessServiceError(err, "Schedule", "GetWorkRequest", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListResourceTypes This API gets a list of schedule resource types. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/ListResourceTypes.go.html to see an example of how to use ListResourceTypes API. +// A default retry strategy applies to this operation ListResourceTypes() +func (client ScheduleClient) ListResourceTypes(ctx context.Context, request ListResourceTypesRequest) (response ListResourceTypesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listResourceTypes, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListResourceTypesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListResourceTypesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListResourceTypesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListResourceTypesResponse") + } + return +} + +// listResourceTypes implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) listResourceTypes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedules/resourceTypes", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListResourceTypesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/ResourceTypeCollection/ListResourceTypes" + err = common.PostProcessServiceError(err, "Schedule", "ListResourceTypes", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListSchedules This API gets a list of schedules +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/ListSchedules.go.html to see an example of how to use ListSchedules API. +// A default retry strategy applies to this operation ListSchedules() +func (client ScheduleClient) ListSchedules(ctx context.Context, request ListSchedulesRequest) (response ListSchedulesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listSchedules, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListSchedulesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListSchedulesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListSchedulesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListSchedulesResponse") + } + return +} + +// listSchedules implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) listSchedules(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/schedules", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListSchedulesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/ListSchedules" + err = common.PostProcessServiceError(err, "Schedule", "ListSchedules", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequestErrors This API lists the errors for a work request. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. +// A default retry strategy applies to this operation ListWorkRequestErrors() +func (client ScheduleClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listWorkRequestErrors, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListWorkRequestErrorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListWorkRequestErrorsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListWorkRequestErrorsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestErrorsResponse") + } + return +} + +// listWorkRequestErrors implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) listWorkRequestErrors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/errors", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListWorkRequestErrorsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequestError/ListWorkRequestErrors" + err = common.PostProcessServiceError(err, "Schedule", "ListWorkRequestErrors", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequestLogs Lists the logs for a work request. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. +// A default retry strategy applies to this operation ListWorkRequestLogs() +func (client ScheduleClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listWorkRequestLogs, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListWorkRequestLogsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListWorkRequestLogsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListWorkRequestLogsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestLogsResponse") + } + return +} + +// listWorkRequestLogs implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) listWorkRequestLogs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/logs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListWorkRequestLogsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequestLogEntry/ListWorkRequestLogs" + err = common.PostProcessServiceError(err, "Schedule", "ListWorkRequestLogs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequests Lists the cloud scheduler work requests in a compartment. +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. +// A default retry strategy applies to this operation ListWorkRequests() +func (client ScheduleClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listWorkRequests, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListWorkRequestsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListWorkRequestsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListWorkRequestsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestsResponse") + } + return +} + +// listWorkRequests implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) listWorkRequests(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListWorkRequestsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/WorkRequest/ListWorkRequests" + err = common.PostProcessServiceError(err, "Schedule", "ListWorkRequests", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateSchedule The API updates a schedule +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/UpdateSchedule.go.html to see an example of how to use UpdateSchedule API. +// A default retry strategy applies to this operation UpdateSchedule() +func (client ScheduleClient) UpdateSchedule(ctx context.Context, request UpdateScheduleRequest) (response UpdateScheduleResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateSchedule, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateScheduleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateScheduleResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateScheduleResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateScheduleResponse") + } + return +} + +// updateSchedule implements the OCIOperation interface (enables retrying operations) +func (client ScheduleClient) updateSchedule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/schedules/{scheduleId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateScheduleResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/resource-scheduler/20240430/Schedule/UpdateSchedule" + err = common.PostProcessServiceError(err, "Schedule", "UpdateSchedule", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/schedule.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/schedule.go new file mode 100644 index 00000000000..0a7aa7a8dcc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/schedule.go @@ -0,0 +1,345 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Schedule A Schedule describes the date and time when an operation will be or has been applied to a set of resources. You must specify either +// the resources directly or provide a set of resource filters to select the resources. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, contact your +// administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm). +type Schedule struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"true" json:"displayName"` + + // This is the action that will be executed by the schedule. + Action ScheduleActionEnum `mandatory:"true" json:"action"` + + // This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting + // or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field. + RecurrenceDetails *string `mandatory:"true" json:"recurrenceDetails"` + + // Type of recurrence of a schedule + RecurrenceType ScheduleRecurrenceTypeEnum `mandatory:"true" json:"recurrenceType"` + + // This is the date and time the schedule was created, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // This is the current state of a schedule. + LifecycleState ScheduleLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"true" json:"freeformTags"` + + // These are defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` + + // This is the description of the schedule. + Description *string `mandatory:"false" json:"description"` + + // This is a list of resources filters. The schedule will be applied to resources matching all of them. + ResourceFilters []ResourceFilter `mandatory:"false" json:"resourceFilters"` + + // This is the list of resources to which the scheduled operation is applied. + Resources []Resource `mandatory:"false" json:"resources"` + + // This is the date and time the schedule starts, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339) + // Example: `2016-08-25T21:10:29.600Z` + TimeStarts *common.SDKTime `mandatory:"false" json:"timeStarts"` + + // This is the date and time the schedule ends, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339) + // Example: `2016-08-25T21:10:29.600Z` + TimeEnds *common.SDKTime `mandatory:"false" json:"timeEnds"` + + // This is the date and time the schedule was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // This is the date and time the schedule runs last time, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeLastRun *common.SDKTime `mandatory:"false" json:"timeLastRun"` + + // This is the date and time the schedule run the next time, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeNextRun *common.SDKTime `mandatory:"false" json:"timeNextRun"` + + // These are system tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m Schedule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Schedule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingScheduleActionEnum(string(m.Action)); !ok && m.Action != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Action: %s. Supported values are: %s.", m.Action, strings.Join(GetScheduleActionEnumStringValues(), ","))) + } + if _, ok := GetMappingScheduleRecurrenceTypeEnum(string(m.RecurrenceType)); !ok && m.RecurrenceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecurrenceType: %s. Supported values are: %s.", m.RecurrenceType, strings.Join(GetScheduleRecurrenceTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingScheduleLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetScheduleLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *Schedule) UnmarshalJSON(data []byte) (e error) { + model := struct { + Description *string `json:"description"` + ResourceFilters []resourcefilter `json:"resourceFilters"` + Resources []Resource `json:"resources"` + TimeStarts *common.SDKTime `json:"timeStarts"` + TimeEnds *common.SDKTime `json:"timeEnds"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + TimeLastRun *common.SDKTime `json:"timeLastRun"` + TimeNextRun *common.SDKTime `json:"timeNextRun"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + Id *string `json:"id"` + CompartmentId *string `json:"compartmentId"` + DisplayName *string `json:"displayName"` + Action ScheduleActionEnum `json:"action"` + RecurrenceDetails *string `json:"recurrenceDetails"` + RecurrenceType ScheduleRecurrenceTypeEnum `json:"recurrenceType"` + TimeCreated *common.SDKTime `json:"timeCreated"` + LifecycleState ScheduleLifecycleStateEnum `json:"lifecycleState"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Description = model.Description + + m.ResourceFilters = make([]ResourceFilter, len(model.ResourceFilters)) + for i, n := range model.ResourceFilters { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ResourceFilters[i] = nn.(ResourceFilter) + } else { + m.ResourceFilters[i] = nil + } + } + m.Resources = make([]Resource, len(model.Resources)) + copy(m.Resources, model.Resources) + m.TimeStarts = model.TimeStarts + + m.TimeEnds = model.TimeEnds + + m.TimeUpdated = model.TimeUpdated + + m.TimeLastRun = model.TimeLastRun + + m.TimeNextRun = model.TimeNextRun + + m.SystemTags = model.SystemTags + + m.Id = model.Id + + m.CompartmentId = model.CompartmentId + + m.DisplayName = model.DisplayName + + m.Action = model.Action + + m.RecurrenceDetails = model.RecurrenceDetails + + m.RecurrenceType = model.RecurrenceType + + m.TimeCreated = model.TimeCreated + + m.LifecycleState = model.LifecycleState + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + return +} + +// ScheduleActionEnum Enum with underlying type: string +type ScheduleActionEnum string + +// Set of constants representing the allowable values for ScheduleActionEnum +const ( + ScheduleActionStartResource ScheduleActionEnum = "START_RESOURCE" + ScheduleActionStopResource ScheduleActionEnum = "STOP_RESOURCE" +) + +var mappingScheduleActionEnum = map[string]ScheduleActionEnum{ + "START_RESOURCE": ScheduleActionStartResource, + "STOP_RESOURCE": ScheduleActionStopResource, +} + +var mappingScheduleActionEnumLowerCase = map[string]ScheduleActionEnum{ + "start_resource": ScheduleActionStartResource, + "stop_resource": ScheduleActionStopResource, +} + +// GetScheduleActionEnumValues Enumerates the set of values for ScheduleActionEnum +func GetScheduleActionEnumValues() []ScheduleActionEnum { + values := make([]ScheduleActionEnum, 0) + for _, v := range mappingScheduleActionEnum { + values = append(values, v) + } + return values +} + +// GetScheduleActionEnumStringValues Enumerates the set of values in String for ScheduleActionEnum +func GetScheduleActionEnumStringValues() []string { + return []string{ + "START_RESOURCE", + "STOP_RESOURCE", + } +} + +// GetMappingScheduleActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingScheduleActionEnum(val string) (ScheduleActionEnum, bool) { + enum, ok := mappingScheduleActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ScheduleRecurrenceTypeEnum Enum with underlying type: string +type ScheduleRecurrenceTypeEnum string + +// Set of constants representing the allowable values for ScheduleRecurrenceTypeEnum +const ( + ScheduleRecurrenceTypeCron ScheduleRecurrenceTypeEnum = "CRON" + ScheduleRecurrenceTypeIcal ScheduleRecurrenceTypeEnum = "ICAL" +) + +var mappingScheduleRecurrenceTypeEnum = map[string]ScheduleRecurrenceTypeEnum{ + "CRON": ScheduleRecurrenceTypeCron, + "ICAL": ScheduleRecurrenceTypeIcal, +} + +var mappingScheduleRecurrenceTypeEnumLowerCase = map[string]ScheduleRecurrenceTypeEnum{ + "cron": ScheduleRecurrenceTypeCron, + "ical": ScheduleRecurrenceTypeIcal, +} + +// GetScheduleRecurrenceTypeEnumValues Enumerates the set of values for ScheduleRecurrenceTypeEnum +func GetScheduleRecurrenceTypeEnumValues() []ScheduleRecurrenceTypeEnum { + values := make([]ScheduleRecurrenceTypeEnum, 0) + for _, v := range mappingScheduleRecurrenceTypeEnum { + values = append(values, v) + } + return values +} + +// GetScheduleRecurrenceTypeEnumStringValues Enumerates the set of values in String for ScheduleRecurrenceTypeEnum +func GetScheduleRecurrenceTypeEnumStringValues() []string { + return []string{ + "CRON", + "ICAL", + } +} + +// GetMappingScheduleRecurrenceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingScheduleRecurrenceTypeEnum(val string) (ScheduleRecurrenceTypeEnum, bool) { + enum, ok := mappingScheduleRecurrenceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ScheduleLifecycleStateEnum Enum with underlying type: string +type ScheduleLifecycleStateEnum string + +// Set of constants representing the allowable values for ScheduleLifecycleStateEnum +const ( + ScheduleLifecycleStateActive ScheduleLifecycleStateEnum = "ACTIVE" + ScheduleLifecycleStateInactive ScheduleLifecycleStateEnum = "INACTIVE" + ScheduleLifecycleStateCreating ScheduleLifecycleStateEnum = "CREATING" + ScheduleLifecycleStateUpdating ScheduleLifecycleStateEnum = "UPDATING" + ScheduleLifecycleStateDeleting ScheduleLifecycleStateEnum = "DELETING" + ScheduleLifecycleStateDeleted ScheduleLifecycleStateEnum = "DELETED" + ScheduleLifecycleStateFailed ScheduleLifecycleStateEnum = "FAILED" +) + +var mappingScheduleLifecycleStateEnum = map[string]ScheduleLifecycleStateEnum{ + "ACTIVE": ScheduleLifecycleStateActive, + "INACTIVE": ScheduleLifecycleStateInactive, + "CREATING": ScheduleLifecycleStateCreating, + "UPDATING": ScheduleLifecycleStateUpdating, + "DELETING": ScheduleLifecycleStateDeleting, + "DELETED": ScheduleLifecycleStateDeleted, + "FAILED": ScheduleLifecycleStateFailed, +} + +var mappingScheduleLifecycleStateEnumLowerCase = map[string]ScheduleLifecycleStateEnum{ + "active": ScheduleLifecycleStateActive, + "inactive": ScheduleLifecycleStateInactive, + "creating": ScheduleLifecycleStateCreating, + "updating": ScheduleLifecycleStateUpdating, + "deleting": ScheduleLifecycleStateDeleting, + "deleted": ScheduleLifecycleStateDeleted, + "failed": ScheduleLifecycleStateFailed, +} + +// GetScheduleLifecycleStateEnumValues Enumerates the set of values for ScheduleLifecycleStateEnum +func GetScheduleLifecycleStateEnumValues() []ScheduleLifecycleStateEnum { + values := make([]ScheduleLifecycleStateEnum, 0) + for _, v := range mappingScheduleLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetScheduleLifecycleStateEnumStringValues Enumerates the set of values in String for ScheduleLifecycleStateEnum +func GetScheduleLifecycleStateEnumStringValues() []string { + return []string{ + "ACTIVE", + "INACTIVE", + "CREATING", + "UPDATING", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingScheduleLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingScheduleLifecycleStateEnum(val string) (ScheduleLifecycleStateEnum, bool) { + enum, ok := mappingScheduleLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/schedule_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/schedule_collection.go new file mode 100644 index 00000000000..b511a59867d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/schedule_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ScheduleCollection This is the list of schedule items. +type ScheduleCollection struct { + + // This is the list of schedule items. + Items []ScheduleSummary `mandatory:"true" json:"items"` +} + +func (m ScheduleCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ScheduleCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/schedule_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/schedule_summary.go new file mode 100644 index 00000000000..5aa5905f3c7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/schedule_summary.go @@ -0,0 +1,288 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ScheduleSummary This is the summary information about a schedule. +type ScheduleSummary struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"true" json:"displayName"` + + // This is the action that will be executed by the schedule. + Action ScheduleSummaryActionEnum `mandatory:"true" json:"action"` + + // This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting + // or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field. + RecurrenceDetails *string `mandatory:"true" json:"recurrenceDetails"` + + // Type of recurrence of a schedule + RecurrenceType ScheduleSummaryRecurrenceTypeEnum `mandatory:"true" json:"recurrenceType"` + + // This is the current state of the schedule. + LifecycleState ScheduleLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // This is the description of the schedule. + Description *string `mandatory:"false" json:"description"` + + // This is a list of resources filters. The schedule will be applied to resources matching all of them. + ResourceFilters []ResourceFilter `mandatory:"false" json:"resourceFilters"` + + // This is the list of resources to which the scheduled operation is applied. + Resources []Resource `mandatory:"false" json:"resources"` + + // This is the date and time the schedule starts, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339) + // Example: `2016-08-25T21:10:29.600Z` + TimeStarts *common.SDKTime `mandatory:"false" json:"timeStarts"` + + // This is the date and time the schedule ends, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339) + // Example: `2016-08-25T21:10:29.600Z` + TimeEnds *common.SDKTime `mandatory:"false" json:"timeEnds"` + + // This is the date and time the schedule was created, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // This is the date and time the schedule was updated, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // This is the date and time the schedule runs last time, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeLastRun *common.SDKTime `mandatory:"false" json:"timeLastRun"` + + // This is the date and time the schedule run the next time, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeNextRun *common.SDKTime `mandatory:"false" json:"timeNextRun"` + + // This is the status of the last work request. + LastRunStatus OperationStatusEnum `mandatory:"false" json:"lastRunStatus,omitempty"` + + // These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // These are defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // These are system tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m ScheduleSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ScheduleSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingScheduleSummaryActionEnum(string(m.Action)); !ok && m.Action != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Action: %s. Supported values are: %s.", m.Action, strings.Join(GetScheduleSummaryActionEnumStringValues(), ","))) + } + if _, ok := GetMappingScheduleSummaryRecurrenceTypeEnum(string(m.RecurrenceType)); !ok && m.RecurrenceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecurrenceType: %s. Supported values are: %s.", m.RecurrenceType, strings.Join(GetScheduleSummaryRecurrenceTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingScheduleLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetScheduleLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingOperationStatusEnum(string(m.LastRunStatus)); !ok && m.LastRunStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LastRunStatus: %s. Supported values are: %s.", m.LastRunStatus, strings.Join(GetOperationStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *ScheduleSummary) UnmarshalJSON(data []byte) (e error) { + model := struct { + Description *string `json:"description"` + ResourceFilters []resourcefilter `json:"resourceFilters"` + Resources []Resource `json:"resources"` + TimeStarts *common.SDKTime `json:"timeStarts"` + TimeEnds *common.SDKTime `json:"timeEnds"` + TimeCreated *common.SDKTime `json:"timeCreated"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + TimeLastRun *common.SDKTime `json:"timeLastRun"` + TimeNextRun *common.SDKTime `json:"timeNextRun"` + LastRunStatus OperationStatusEnum `json:"lastRunStatus"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + Id *string `json:"id"` + CompartmentId *string `json:"compartmentId"` + DisplayName *string `json:"displayName"` + Action ScheduleSummaryActionEnum `json:"action"` + RecurrenceDetails *string `json:"recurrenceDetails"` + RecurrenceType ScheduleSummaryRecurrenceTypeEnum `json:"recurrenceType"` + LifecycleState ScheduleLifecycleStateEnum `json:"lifecycleState"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Description = model.Description + + m.ResourceFilters = make([]ResourceFilter, len(model.ResourceFilters)) + for i, n := range model.ResourceFilters { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ResourceFilters[i] = nn.(ResourceFilter) + } else { + m.ResourceFilters[i] = nil + } + } + m.Resources = make([]Resource, len(model.Resources)) + copy(m.Resources, model.Resources) + m.TimeStarts = model.TimeStarts + + m.TimeEnds = model.TimeEnds + + m.TimeCreated = model.TimeCreated + + m.TimeUpdated = model.TimeUpdated + + m.TimeLastRun = model.TimeLastRun + + m.TimeNextRun = model.TimeNextRun + + m.LastRunStatus = model.LastRunStatus + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.SystemTags = model.SystemTags + + m.Id = model.Id + + m.CompartmentId = model.CompartmentId + + m.DisplayName = model.DisplayName + + m.Action = model.Action + + m.RecurrenceDetails = model.RecurrenceDetails + + m.RecurrenceType = model.RecurrenceType + + m.LifecycleState = model.LifecycleState + + return +} + +// ScheduleSummaryActionEnum Enum with underlying type: string +type ScheduleSummaryActionEnum string + +// Set of constants representing the allowable values for ScheduleSummaryActionEnum +const ( + ScheduleSummaryActionStartResource ScheduleSummaryActionEnum = "START_RESOURCE" + ScheduleSummaryActionStopResource ScheduleSummaryActionEnum = "STOP_RESOURCE" +) + +var mappingScheduleSummaryActionEnum = map[string]ScheduleSummaryActionEnum{ + "START_RESOURCE": ScheduleSummaryActionStartResource, + "STOP_RESOURCE": ScheduleSummaryActionStopResource, +} + +var mappingScheduleSummaryActionEnumLowerCase = map[string]ScheduleSummaryActionEnum{ + "start_resource": ScheduleSummaryActionStartResource, + "stop_resource": ScheduleSummaryActionStopResource, +} + +// GetScheduleSummaryActionEnumValues Enumerates the set of values for ScheduleSummaryActionEnum +func GetScheduleSummaryActionEnumValues() []ScheduleSummaryActionEnum { + values := make([]ScheduleSummaryActionEnum, 0) + for _, v := range mappingScheduleSummaryActionEnum { + values = append(values, v) + } + return values +} + +// GetScheduleSummaryActionEnumStringValues Enumerates the set of values in String for ScheduleSummaryActionEnum +func GetScheduleSummaryActionEnumStringValues() []string { + return []string{ + "START_RESOURCE", + "STOP_RESOURCE", + } +} + +// GetMappingScheduleSummaryActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingScheduleSummaryActionEnum(val string) (ScheduleSummaryActionEnum, bool) { + enum, ok := mappingScheduleSummaryActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ScheduleSummaryRecurrenceTypeEnum Enum with underlying type: string +type ScheduleSummaryRecurrenceTypeEnum string + +// Set of constants representing the allowable values for ScheduleSummaryRecurrenceTypeEnum +const ( + ScheduleSummaryRecurrenceTypeCron ScheduleSummaryRecurrenceTypeEnum = "CRON" + ScheduleSummaryRecurrenceTypeIcal ScheduleSummaryRecurrenceTypeEnum = "ICAL" +) + +var mappingScheduleSummaryRecurrenceTypeEnum = map[string]ScheduleSummaryRecurrenceTypeEnum{ + "CRON": ScheduleSummaryRecurrenceTypeCron, + "ICAL": ScheduleSummaryRecurrenceTypeIcal, +} + +var mappingScheduleSummaryRecurrenceTypeEnumLowerCase = map[string]ScheduleSummaryRecurrenceTypeEnum{ + "cron": ScheduleSummaryRecurrenceTypeCron, + "ical": ScheduleSummaryRecurrenceTypeIcal, +} + +// GetScheduleSummaryRecurrenceTypeEnumValues Enumerates the set of values for ScheduleSummaryRecurrenceTypeEnum +func GetScheduleSummaryRecurrenceTypeEnumValues() []ScheduleSummaryRecurrenceTypeEnum { + values := make([]ScheduleSummaryRecurrenceTypeEnum, 0) + for _, v := range mappingScheduleSummaryRecurrenceTypeEnum { + values = append(values, v) + } + return values +} + +// GetScheduleSummaryRecurrenceTypeEnumStringValues Enumerates the set of values in String for ScheduleSummaryRecurrenceTypeEnum +func GetScheduleSummaryRecurrenceTypeEnumStringValues() []string { + return []string{ + "CRON", + "ICAL", + } +} + +// GetMappingScheduleSummaryRecurrenceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingScheduleSummaryRecurrenceTypeEnum(val string) (ScheduleSummaryRecurrenceTypeEnum, bool) { + enum, ok := mappingScheduleSummaryRecurrenceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/sort_order.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/sort_order.go new file mode 100644 index 00000000000..798299dd1f5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/sort_order.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "strings" +) + +// SortOrderEnum Enum with underlying type: string +type SortOrderEnum string + +// Set of constants representing the allowable values for SortOrderEnum +const ( + SortOrderAsc SortOrderEnum = "ASC" + SortOrderDesc SortOrderEnum = "DESC" +) + +var mappingSortOrderEnum = map[string]SortOrderEnum{ + "ASC": SortOrderAsc, + "DESC": SortOrderDesc, +} + +var mappingSortOrderEnumLowerCase = map[string]SortOrderEnum{ + "asc": SortOrderAsc, + "desc": SortOrderDesc, +} + +// GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum +func GetSortOrderEnumValues() []SortOrderEnum { + values := make([]SortOrderEnum, 0) + for _, v := range mappingSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum +func GetSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool) { + enum, ok := mappingSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/time_created_resource_filter.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/time_created_resource_filter.go new file mode 100644 index 00000000000..fe98851fb2e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/time_created_resource_filter.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TimeCreatedResourceFilter This is a resource filter for filtering resources based on their creation time. +type TimeCreatedResourceFilter struct { + + // This is the date and time as the value of the filter. + Value *string `mandatory:"false" json:"value"` + + // This is the condition for the filter in comparison to its creation time. + Condition TimeCreatedResourceFilterConditionEnum `mandatory:"false" json:"condition,omitempty"` +} + +func (m TimeCreatedResourceFilter) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TimeCreatedResourceFilter) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTimeCreatedResourceFilterConditionEnum(string(m.Condition)); !ok && m.Condition != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Condition: %s. Supported values are: %s.", m.Condition, strings.Join(GetTimeCreatedResourceFilterConditionEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m TimeCreatedResourceFilter) MarshalJSON() (buff []byte, e error) { + type MarshalTypeTimeCreatedResourceFilter TimeCreatedResourceFilter + s := struct { + DiscriminatorParam string `json:"attribute"` + MarshalTypeTimeCreatedResourceFilter + }{ + "TIME_CREATED", + (MarshalTypeTimeCreatedResourceFilter)(m), + } + + return json.Marshal(&s) +} + +// TimeCreatedResourceFilterConditionEnum Enum with underlying type: string +type TimeCreatedResourceFilterConditionEnum string + +// Set of constants representing the allowable values for TimeCreatedResourceFilterConditionEnum +const ( + TimeCreatedResourceFilterConditionEqual TimeCreatedResourceFilterConditionEnum = "EQUAL" + TimeCreatedResourceFilterConditionBefore TimeCreatedResourceFilterConditionEnum = "BEFORE" + TimeCreatedResourceFilterConditionAfter TimeCreatedResourceFilterConditionEnum = "AFTER" +) + +var mappingTimeCreatedResourceFilterConditionEnum = map[string]TimeCreatedResourceFilterConditionEnum{ + "EQUAL": TimeCreatedResourceFilterConditionEqual, + "BEFORE": TimeCreatedResourceFilterConditionBefore, + "AFTER": TimeCreatedResourceFilterConditionAfter, +} + +var mappingTimeCreatedResourceFilterConditionEnumLowerCase = map[string]TimeCreatedResourceFilterConditionEnum{ + "equal": TimeCreatedResourceFilterConditionEqual, + "before": TimeCreatedResourceFilterConditionBefore, + "after": TimeCreatedResourceFilterConditionAfter, +} + +// GetTimeCreatedResourceFilterConditionEnumValues Enumerates the set of values for TimeCreatedResourceFilterConditionEnum +func GetTimeCreatedResourceFilterConditionEnumValues() []TimeCreatedResourceFilterConditionEnum { + values := make([]TimeCreatedResourceFilterConditionEnum, 0) + for _, v := range mappingTimeCreatedResourceFilterConditionEnum { + values = append(values, v) + } + return values +} + +// GetTimeCreatedResourceFilterConditionEnumStringValues Enumerates the set of values in String for TimeCreatedResourceFilterConditionEnum +func GetTimeCreatedResourceFilterConditionEnumStringValues() []string { + return []string{ + "EQUAL", + "BEFORE", + "AFTER", + } +} + +// GetMappingTimeCreatedResourceFilterConditionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTimeCreatedResourceFilterConditionEnum(val string) (TimeCreatedResourceFilterConditionEnum, bool) { + enum, ok := mappingTimeCreatedResourceFilterConditionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/update_schedule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/update_schedule_details.go new file mode 100644 index 00000000000..44cc1f50f57 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/update_schedule_details.go @@ -0,0 +1,223 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateScheduleDetails This is the data to update a schedule. +type UpdateScheduleDetails struct { + + // This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // This is the description of the schedule. + Description *string `mandatory:"false" json:"description"` + + // This is the action that will be executed by the schedule. + Action UpdateScheduleDetailsActionEnum `mandatory:"false" json:"action,omitempty"` + + // This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting + // or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field. + RecurrenceDetails *string `mandatory:"false" json:"recurrenceDetails"` + + // Type of recurrence of a schedule + RecurrenceType UpdateScheduleDetailsRecurrenceTypeEnum `mandatory:"false" json:"recurrenceType,omitempty"` + + // This is a list of resources filters. The schedule will be applied to resources matching all of them. + ResourceFilters []ResourceFilter `mandatory:"false" json:"resourceFilters"` + + // This is the list of resources to which the scheduled operation is applied. + Resources []Resource `mandatory:"false" json:"resources"` + + // This is the date and time the schedule starts, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339) + // Example: `2016-08-25T21:10:29.600Z` + TimeStarts *common.SDKTime `mandatory:"false" json:"timeStarts"` + + // This is the date and time the schedule ends, in the format defined by RFC 3339 (https://tools.ietf.org/html/rfc3339) + // Example: `2016-08-25T21:10:29.600Z` + TimeEnds *common.SDKTime `mandatory:"false" json:"timeEnds"` + + // These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // These are defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateScheduleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateScheduleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateScheduleDetailsActionEnum(string(m.Action)); !ok && m.Action != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Action: %s. Supported values are: %s.", m.Action, strings.Join(GetUpdateScheduleDetailsActionEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateScheduleDetailsRecurrenceTypeEnum(string(m.RecurrenceType)); !ok && m.RecurrenceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecurrenceType: %s. Supported values are: %s.", m.RecurrenceType, strings.Join(GetUpdateScheduleDetailsRecurrenceTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *UpdateScheduleDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + Description *string `json:"description"` + Action UpdateScheduleDetailsActionEnum `json:"action"` + RecurrenceDetails *string `json:"recurrenceDetails"` + RecurrenceType UpdateScheduleDetailsRecurrenceTypeEnum `json:"recurrenceType"` + ResourceFilters []resourcefilter `json:"resourceFilters"` + Resources []Resource `json:"resources"` + TimeStarts *common.SDKTime `json:"timeStarts"` + TimeEnds *common.SDKTime `json:"timeEnds"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.Description = model.Description + + m.Action = model.Action + + m.RecurrenceDetails = model.RecurrenceDetails + + m.RecurrenceType = model.RecurrenceType + + m.ResourceFilters = make([]ResourceFilter, len(model.ResourceFilters)) + for i, n := range model.ResourceFilters { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ResourceFilters[i] = nn.(ResourceFilter) + } else { + m.ResourceFilters[i] = nil + } + } + m.Resources = make([]Resource, len(model.Resources)) + copy(m.Resources, model.Resources) + m.TimeStarts = model.TimeStarts + + m.TimeEnds = model.TimeEnds + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + return +} + +// UpdateScheduleDetailsActionEnum Enum with underlying type: string +type UpdateScheduleDetailsActionEnum string + +// Set of constants representing the allowable values for UpdateScheduleDetailsActionEnum +const ( + UpdateScheduleDetailsActionStartResource UpdateScheduleDetailsActionEnum = "START_RESOURCE" + UpdateScheduleDetailsActionStopResource UpdateScheduleDetailsActionEnum = "STOP_RESOURCE" +) + +var mappingUpdateScheduleDetailsActionEnum = map[string]UpdateScheduleDetailsActionEnum{ + "START_RESOURCE": UpdateScheduleDetailsActionStartResource, + "STOP_RESOURCE": UpdateScheduleDetailsActionStopResource, +} + +var mappingUpdateScheduleDetailsActionEnumLowerCase = map[string]UpdateScheduleDetailsActionEnum{ + "start_resource": UpdateScheduleDetailsActionStartResource, + "stop_resource": UpdateScheduleDetailsActionStopResource, +} + +// GetUpdateScheduleDetailsActionEnumValues Enumerates the set of values for UpdateScheduleDetailsActionEnum +func GetUpdateScheduleDetailsActionEnumValues() []UpdateScheduleDetailsActionEnum { + values := make([]UpdateScheduleDetailsActionEnum, 0) + for _, v := range mappingUpdateScheduleDetailsActionEnum { + values = append(values, v) + } + return values +} + +// GetUpdateScheduleDetailsActionEnumStringValues Enumerates the set of values in String for UpdateScheduleDetailsActionEnum +func GetUpdateScheduleDetailsActionEnumStringValues() []string { + return []string{ + "START_RESOURCE", + "STOP_RESOURCE", + } +} + +// GetMappingUpdateScheduleDetailsActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateScheduleDetailsActionEnum(val string) (UpdateScheduleDetailsActionEnum, bool) { + enum, ok := mappingUpdateScheduleDetailsActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateScheduleDetailsRecurrenceTypeEnum Enum with underlying type: string +type UpdateScheduleDetailsRecurrenceTypeEnum string + +// Set of constants representing the allowable values for UpdateScheduleDetailsRecurrenceTypeEnum +const ( + UpdateScheduleDetailsRecurrenceTypeCron UpdateScheduleDetailsRecurrenceTypeEnum = "CRON" + UpdateScheduleDetailsRecurrenceTypeIcal UpdateScheduleDetailsRecurrenceTypeEnum = "ICAL" +) + +var mappingUpdateScheduleDetailsRecurrenceTypeEnum = map[string]UpdateScheduleDetailsRecurrenceTypeEnum{ + "CRON": UpdateScheduleDetailsRecurrenceTypeCron, + "ICAL": UpdateScheduleDetailsRecurrenceTypeIcal, +} + +var mappingUpdateScheduleDetailsRecurrenceTypeEnumLowerCase = map[string]UpdateScheduleDetailsRecurrenceTypeEnum{ + "cron": UpdateScheduleDetailsRecurrenceTypeCron, + "ical": UpdateScheduleDetailsRecurrenceTypeIcal, +} + +// GetUpdateScheduleDetailsRecurrenceTypeEnumValues Enumerates the set of values for UpdateScheduleDetailsRecurrenceTypeEnum +func GetUpdateScheduleDetailsRecurrenceTypeEnumValues() []UpdateScheduleDetailsRecurrenceTypeEnum { + values := make([]UpdateScheduleDetailsRecurrenceTypeEnum, 0) + for _, v := range mappingUpdateScheduleDetailsRecurrenceTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateScheduleDetailsRecurrenceTypeEnumStringValues Enumerates the set of values in String for UpdateScheduleDetailsRecurrenceTypeEnum +func GetUpdateScheduleDetailsRecurrenceTypeEnumStringValues() []string { + return []string{ + "CRON", + "ICAL", + } +} + +// GetMappingUpdateScheduleDetailsRecurrenceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateScheduleDetailsRecurrenceTypeEnum(val string) (UpdateScheduleDetailsRecurrenceTypeEnum, bool) { + enum, ok := mappingUpdateScheduleDetailsRecurrenceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/update_schedule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/update_schedule_request_response.go new file mode 100644 index 00000000000..70a6f68b8a3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/update_schedule_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateScheduleRequest wrapper for the UpdateSchedule operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/resourcescheduler/UpdateSchedule.go.html to see an example of how to use UpdateScheduleRequest. +type UpdateScheduleRequest struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. + ScheduleId *string `mandatory:"true" contributesTo:"path" name:"scheduleId"` + + // The information about a schedule that will be updated. + UpdateScheduleDetails `contributesTo:"body"` + + // This is used 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. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + // The only valid characters for request IDs are letters, numbers, + // underscore, and dash. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateScheduleRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateScheduleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateScheduleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateScheduleRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateScheduleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateScheduleResponse wrapper for the UpdateSchedule operation +type UpdateScheduleResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + // Use GetWorkRequest with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // This is a unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateScheduleResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateScheduleResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request.go new file mode 100644 index 00000000000..d8c9c7b24a1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request.go @@ -0,0 +1,79 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequest This is an asynchronous work request. Work requests help you monitor long-running operations. When you start a long-running operation, +// the service creates a work request. A work request is an activity log that lets you track each step in the operation's +// progress. Each work request has an OCID that lets you interact with it programmatically and use it for automation. +type WorkRequest struct { + + // The asynchronous operation tracked by this work request. + OperationType OperationTypeEnum `mandatory:"true" json:"operationType"` + + // This is the status of the work request. + Status OperationStatusEnum `mandatory:"true" json:"status"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // This is the resources that are affected by the work request. + Resources []WorkRequestResource `mandatory:"true" json:"resources"` + + // Shows the progress of the operation tracked by the work request, as a percentage of the total work + // that must be performed. + PercentComplete *float32 `mandatory:"true" json:"percentComplete"` + + // This is the date and time the work request was created, in the format defined by + // RFC 3339 (https://tools.ietf.org/html/rfc3339). + TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` + + // This is the date and time the work request was started, in the format defined by + // RFC 3339 (https://tools.ietf.org/html/rfc3339). + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // This is the date and time the work request was finished, in the format defined by + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339). + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` + + // This is the date and time the work request was updated, in the format defined by + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339). + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` +} + +func (m WorkRequest) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetOperationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingOperationStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetOperationStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_error.go new file mode 100644 index 00000000000..7d3e2d9c904 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_error.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestError This is an error encountered while performing an operation that is tracked by a work request. +type WorkRequestError struct { + + // A machine-usable code for the error that occurred. For a list of error codes, see + // API Errors (https://docs.cloud.oracle.com/iaas/Content/API/References/apierrors.htm). + Code *string `mandatory:"true" json:"code"` + + // This is a human-readable error message. + Message *string `mandatory:"true" json:"message"` + + // This is the date and time the error occurred, in the format defined by + // RFC 3339 (https://tools.ietf.org/html/rfc3339). + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` +} + +func (m WorkRequestError) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestError) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_error_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_error_collection.go new file mode 100644 index 00000000000..a1cf0850041 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_error_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestErrorCollection This is a list of work request errors. Can contain both errors and other information, such as metadata. +type WorkRequestErrorCollection struct { + + // This is a list of work request errors. + Items []WorkRequestError `mandatory:"true" json:"items"` +} + +func (m WorkRequestErrorCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestErrorCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_log_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_log_entry.go new file mode 100644 index 00000000000..e0caa35a3ef --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_log_entry.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestLogEntry This is a log message from performing an operation that is tracked by a work request. +type WorkRequestLogEntry struct { + + // This is a human-readable log message. + Message *string `mandatory:"true" json:"message"` + + // This is the date and time the log message was written, in the format defined by + // RFC 3339 (https://tools.ietf.org/html/rfc3339). + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` +} + +func (m WorkRequestLogEntry) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_log_entry_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_log_entry_collection.go new file mode 100644 index 00000000000..15d776a6754 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_log_entry_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestLogEntryCollection This is a list of work request logs. Can contain both logs and other information, such as metadata. +type WorkRequestLogEntryCollection struct { + + // This is a list of work request log entries. + Items []WorkRequestLogEntry `mandatory:"true" json:"items"` +} + +func (m WorkRequestLogEntryCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestLogEntryCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_resource.go new file mode 100644 index 00000000000..67f98e146d0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_resource.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestResource This is a resource created or operated on by a work request. +type WorkRequestResource struct { + + // This is the resource type that the work request affects. + EntityType *string `mandatory:"true" json:"entityType"` + + // The way in which this resource is affected by the operation tracked in the work request. + // A resource being created, updated, or deleted remains in the IN_PROGRESS state until + // work is complete for that resource, at which point it transitions to CREATED, UPDATED, + // or DELETED, respectively. + ActionType ActionTypeEnum `mandatory:"true" json:"actionType"` + + // This is an OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource. + Identifier *string `mandatory:"true" json:"identifier"` + + // This is the URI path that you can use for a GET request to access the resource metadata. + EntityUri *string `mandatory:"false" json:"entityUri"` +} + +func (m WorkRequestResource) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestResource) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingActionTypeEnum(string(m.ActionType)); !ok && m.ActionType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ActionType: %s. Supported values are: %s.", m.ActionType, strings.Join(GetActionTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_summary.go new file mode 100644 index 00000000000..daef32fd99d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_summary.go @@ -0,0 +1,77 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestSummary This is the summary information about an asynchronous work request. +type WorkRequestSummary struct { + + // This is the status of the work request. + Status OperationStatusEnum `mandatory:"true" json:"status"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The resources that are affected by this work request. + Resources []WorkRequestResource `mandatory:"true" json:"resources"` + + // Shows the progress of the operation tracked by the work request, as a percentage of the total work + // that must be performed. + PercentComplete *float32 `mandatory:"true" json:"percentComplete"` + + // This is the date and time the work request was created, in the format defined by + // RFC 3339 (https://tools.ietf.org/html/rfc3339). + TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` + + // This is the asynchronous operation tracked by this work request. + OperationType OperationTypeEnum `mandatory:"false" json:"operationType,omitempty"` + + // This is the date and time the work request was started, in the format defined by + // RFC 3339 (https://tools.ietf.org/html/rfc3339). + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // This is the date and time the work request was finished, in the format defined by + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339). + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` + + // This is the date and time the work request was updated, in the format defined by + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339). + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` +} + +func (m WorkRequestSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOperationStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetOperationStatusEnumStringValues(), ","))) + } + + if _, ok := GetMappingOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetOperationTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_summary_collection.go new file mode 100644 index 00000000000..548079d7e3a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/resourcescheduler/work_request_summary_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 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. +// Code generated. DO NOT EDIT. + +// Resource Scheduler API +// +// Use the Resource scheduler API to manage schedules, to perform actions on a collection of resources. +// + +package resourcescheduler + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestSummaryCollection This is a list of work requests. Can contain both work requests and other information, such as metadata. +type WorkRequestSummaryCollection struct { + + // This is a list of work requests. + Items []WorkRequestSummary `mandatory:"true" json:"items"` +} + +func (m WorkRequestSummaryCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestSummaryCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/modules.txt b/vendor/modules.txt index a200d9c2b8e..9da87a3a0f3 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -225,7 +225,7 @@ github.com/mitchellh/reflectwalk # github.com/oklog/run v1.0.0 ## explicit github.com/oklog/run -# github.com/oracle/oci-go-sdk/v65 v65.68.0 +# github.com/oracle/oci-go-sdk/v65 v65.69.0 ## explicit; go 1.13 github.com/oracle/oci-go-sdk/v65/adm github.com/oracle/oci-go-sdk/v65/aianomalydetection @@ -329,6 +329,7 @@ github.com/oracle/oci-go-sdk/v65/queue github.com/oracle/oci-go-sdk/v65/recovery github.com/oracle/oci-go-sdk/v65/redis github.com/oracle/oci-go-sdk/v65/resourcemanager +github.com/oracle/oci-go-sdk/v65/resourcescheduler github.com/oracle/oci-go-sdk/v65/sch github.com/oracle/oci-go-sdk/v65/secrets github.com/oracle/oci-go-sdk/v65/servicecatalog diff --git a/website/docs/d/database_backups.html.markdown b/website/docs/d/database_backups.html.markdown index b0a94b9464a..100fdc6fb4b 100644 --- a/website/docs/d/database_backups.html.markdown +++ b/website/docs/d/database_backups.html.markdown @@ -21,6 +21,7 @@ data "oci_database_backups" "test_backups" { #Optional compartment_id = var.compartment_id database_id = oci_database_database.test_database.id + shape_family = var.backup_shape_family } ``` @@ -30,6 +31,7 @@ The following arguments are supported: * `compartment_id` - (Optional) The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * `database_id` - (Optional) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. +* `shape_family` - (Optional) If provided, filters the results to the set of database versions which are supported for the given shape family. ## Attributes Reference diff --git a/website/docs/d/database_db_node.html.markdown b/website/docs/d/database_db_node.html.markdown index 850e7102232..7b93ccecad9 100644 --- a/website/docs/d/database_db_node.html.markdown +++ b/website/docs/d/database_db_node.html.markdown @@ -59,6 +59,7 @@ The following attributes are exported: * `time_created` - The date and time that the database node was created. * `time_maintenance_window_end` - End date and time of maintenance window. * `time_maintenance_window_start` - Start date and time of maintenance window. +* `total_cpu_core_count` - The total number of CPU cores reserved on the Db node. * `vnic2id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. **Note:** Applies only to Exadata Cloud Service. diff --git a/website/docs/d/database_db_nodes.html.markdown b/website/docs/d/database_db_nodes.html.markdown index 452c6a0eb53..cb9fcfe1768 100644 --- a/website/docs/d/database_db_nodes.html.markdown +++ b/website/docs/d/database_db_nodes.html.markdown @@ -10,7 +10,7 @@ description: |- # Data Source: oci_database_db_nodes This data source provides the list of Db Nodes in Oracle Cloud Infrastructure Database service. -Lists the database nodes in the specified DB system and compartment. A database node is a server running database software. +Lists the database nodes in the specified compartment. A database node is a server running database software. In addition to the other required parameters, either '--db-system-id' or '--vm-cluster-id' also must be provided, depending on the service being accessed. ## Example Usage @@ -76,6 +76,7 @@ The following attributes are exported: * `time_created` - The date and time that the database node was created. * `time_maintenance_window_end` - End date and time of maintenance window. * `time_maintenance_window_start` - Start date and time of maintenance window. +* `total_cpu_core_count` - The total number of CPU cores reserved on the Db node. * `vnic2id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. **Note:** Applies only to Exadata Cloud Service. diff --git a/website/docs/d/database_exadb_vm_cluster.html.markdown b/website/docs/d/database_exadb_vm_cluster.html.markdown new file mode 100644 index 00000000000..fd617fd59fa --- /dev/null +++ b/website/docs/d/database_exadb_vm_cluster.html.markdown @@ -0,0 +1,102 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_exadb_vm_cluster" +sidebar_current: "docs-oci-datasource-database-exadb_vm_cluster" +description: |- + Provides details about a specific Exadb Vm Cluster in Oracle Cloud Infrastructure Database service +--- + +# Data Source: oci_database_exadb_vm_cluster +This data source provides details about a specific Exadb Vm Cluster resource in Oracle Cloud Infrastructure Database service. + +Gets information about the specified Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only. + + +## Example Usage + +```hcl +data "oci_database_exadb_vm_cluster" "test_exadb_vm_cluster" { + #Required + exadb_vm_cluster_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `exadb_vm_cluster_id` - (Required) The Exadata VM cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. + + +## Attributes Reference + +The following attributes are exported: + +* `availability_domain` - The name of the availability domain in which the Exadata VM cluster on Exascale Infrastructure is located. +* `backup_network_nsg_ids` - A list of the [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that the backup network of this DB system belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see [Security Rules](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). Applicable only to Exadata systems. +* `backup_subnet_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. +* `cluster_name` - The cluster name for Exadata VM cluster on Exascale Infrastructure. The cluster name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. +* `data_collection_options` - Indicates user preferences for the various diagnostic collection options for the VM cluster/Cloud VM cluster/VMBM DBCS. + * `is_diagnostics_events_enabled` - Indicates whether diagnostic collection is enabled for the VM cluster/Cloud VM cluster/VMBM DBCS. Enabling diagnostic collection allows you to receive Events service notifications for guest VM issues. Diagnostic collection also allows Oracle to provide enhanced service and proactive support for your Exadata system. You can enable diagnostic collection during VM cluster/Cloud VM cluster provisioning. You can also disable or enable it at any time using the `UpdateVmCluster` or `updateCloudVmCluster` API. + * `is_health_monitoring_enabled` - Indicates whether health monitoring is enabled for the VM cluster / Cloud VM cluster / VMBM DBCS. Enabling health monitoring allows Oracle to collect diagnostic data and share it with its operations and support personnel. You may also receive notifications for some events. Collecting health diagnostics enables Oracle to provide proactive support and enhanced service for your system. Optionally enable health monitoring while provisioning a system. You can also disable or enable health monitoring anytime using the `UpdateVmCluster`, `UpdateCloudVmCluster` or `updateDbsystem` API. + * `is_incident_logs_enabled` - Indicates whether incident logs and trace collection are enabled for the VM cluster / Cloud VM cluster / VMBM DBCS. Enabling incident logs collection allows Oracle to receive Events service notifications for guest VM issues, collect incident logs and traces, and use them to diagnose issues and resolve them. Optionally enable incident logs collection while provisioning a system. You can also disable or enable incident logs collection anytime using the `UpdateVmCluster`, `updateCloudVmCluster` or `updateDbsystem` API. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `display_name` - The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name does not need to be unique. +* `domain` - A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. Applies to Exadata Database Service on Exascale Infrastructure only. +* `exascale_db_storage_vault_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `gi_version` - A valid Oracle Grid Infrastructure (GI) software version. +* `grid_image_id` - Grid Setup will be done using this grid image id +* `grid_image_type` - The type of Grid Image +* `hostname` - The hostname for the Exadata VM cluster on Exascale Infrastructure. The hostname must begin with an alphabetic character, and can contain alphanumeric characters and hyphens (-). For Exadata systems, the maximum length of the hostname is 12 characters. + + The maximum length of the combined hostname and domain is 63 characters. + + **Note:** The hostname must be unique within the subnet. If it is not unique, then the Exadata VM cluster on Exascale Infrastructure will fail to provision. +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata VM cluster on Exascale Infrastructure. +* `iorm_config_cache` - The IORM settings of the Exadata DB system. + * `db_plans` - An array of IORM settings for all the database in the Exadata DB system. + * `db_name` - The database name. For the default `DbPlan`, the `dbName` is `default`. + * `flash_cache_limit` - The flash cache limit for this database. This value is internally configured based on the share value assigned to the database. + * `share` - The relative priority of this database. + * `lifecycle_details` - Additional information about the current `lifecycleState`. + * `objective` - The current value for the IORM objective. The default is `AUTO`. + * `state` - The current state of IORM configuration for the Exadata DB system. +* `last_update_history_entry_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last maintenance update history entry. This value is updated when a maintenance update starts. +* `license_model` - The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. The default is BRING_YOUR_OWN_LICENSE. +* `lifecycle_details` - Additional information about the current lifecycle state. +* `listener_port` - The port number configured for the listener on the Exadata VM cluster on Exascale Infrastructure. +* `node_config` - The configuration of each node in the Exadata VM cluster on Exascale Infrastructure. + * `enabled_ecpu_count_per_node` - The number of ECPUs to enable for each node. + * `memory_size_in_gbs_per_node` - The memory that you want to be allocated in GBs to each node. Memory is calculated based on 11 GB per VM core reserved. + * `total_ecpu_count_per_node` - The number of Total ECPUs for each node. + * `vm_file_system_storage_size_gbs_per_node` - The file system storage in GBs for each node. + * `snapshot_file_system_storage_size_gbs_per_node` - The file system storage in GBs for snapshot for each node. + * `total_file_system_storage_size_gbs_per_node` - Total file system storage in GBs for each node. +* `node_resource` - The list of node in the Exadata VM cluster on Exascale Infrastructure. + * `node_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the node. + * `node_hostname` - The host name for the node. + * `state` - The current state of the node. +* `nsg_ids` - The list of [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the network security groups (NSGs) to which this resource belongs. Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see [Security Rules](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). **NsgIds restrictions:** + * A network security group (NSG) is optional for Autonomous Databases with private access. The nsgIds list can be empty. +* `private_zone_id` - The private zone ID in which you want DNS records to be created. +* `scan_dns_name` - The FQDN of the DNS record for the SCAN IP addresses that are associated with the Exadata VM cluster on Exascale Infrastructure. +* `scan_dns_record_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DNS record for the SCAN IP addresses that are associated with the Exadata VM cluster on Exascale Infrastructure. +* `scan_ip_ids` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Single Client Access Name (SCAN) IP addresses associated with the Exadata VM cluster on Exascale Infrastructure. SCAN IP addresses are typically used for load balancing and are not assigned to any interface. Oracle Clusterware directs the requests to the appropriate nodes in the cluster. + + **Note:** For a single-node DB system, this list is empty. +* `scan_listener_port_tcp` - The TCP Single Client Access Name (SCAN) port. The default port is 1521. +* `scan_listener_port_tcp_ssl` - The Secured Communication (TCPS) protocol Single Client Access Name (SCAN) port. The default port is 2484. +* `shape` - The shape of the Exadata VM cluster on Exascale Infrastructure resource +* `ssh_public_keys` - The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster on Exascale Infrastructure. +* `state` - The current state of the Exadata VM cluster on Exascale Infrastructure. +* `subnet_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet associated with the Exadata VM cluster on Exascale Infrastructure. +* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `system_version` - Operating system version of the image. +* `time_created` - The date and time that the Exadata VM cluster on Exascale Infrastructure was created. +* `time_zone` - The time zone to use for the Exadata VM cluster on Exascale Infrastructure. For details, see [Time Zones](https://docs.cloud.oracle.com/iaas/Content/Database/References/timezones.htm). +* `vip_ids` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual IP (VIP) addresses associated with the Exadata VM cluster on Exascale Infrastructure. The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the Exadata Cloud Service instance to enable failover. If one node fails, then the VIP is reassigned to another active node in the cluster. +* `zone_id` - The OCID of the zone with which the Exadata VM cluster on Exascale Infrastructure is associated. + diff --git a/website/docs/d/database_exadb_vm_cluster_update.html.markdown b/website/docs/d/database_exadb_vm_cluster_update.html.markdown new file mode 100644 index 00000000000..111b0aa4dca --- /dev/null +++ b/website/docs/d/database_exadb_vm_cluster_update.html.markdown @@ -0,0 +1,47 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_exadb_vm_cluster_update" +sidebar_current: "docs-oci-datasource-database-exadb_vm_cluster_update" +description: |- + Provides details about a specific Exadb Vm Cluster Update in Oracle Cloud Infrastructure Database service +--- + +# Data Source: oci_database_exadb_vm_cluster_update +This data source provides details about a specific Exadb Vm Cluster Update resource in Oracle Cloud Infrastructure Database service. + +Gets information about a specified maintenance update package for a Exadata VM cluster on Exascale Infrastructure. + + +## Example Usage + +```hcl +data "oci_database_exadb_vm_cluster_update" "test_exadb_vm_cluster_update" { + #Required + exadb_vm_cluster_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id + update_id = oci_database_update.test_update.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `exadb_vm_cluster_id` - (Required) The Exadata VM cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. +* `update_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. + + +## Attributes Reference + +The following attributes are exported: + +* `available_actions` - The possible actions performed by the update operation on the infrastructure components. +* `description` - Details of the maintenance update package. +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. +* `last_action` - The previous update action performed. +* `lifecycle_details` - Descriptive text providing additional details about the lifecycle state. +* `state` - The current state of the maintenance update. Dependent on value of `lastAction`. +* `time_released` - The date and time the maintenance update was released. +* `update_type` - The type of cloud VM cluster maintenance update. +* `version` - The version of the maintenance update package. + diff --git a/website/docs/d/database_exadb_vm_cluster_update_history_entries.html.markdown b/website/docs/d/database_exadb_vm_cluster_update_history_entries.html.markdown new file mode 100644 index 00000000000..5611f0e97c6 --- /dev/null +++ b/website/docs/d/database_exadb_vm_cluster_update_history_entries.html.markdown @@ -0,0 +1,55 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_exadb_vm_cluster_update_history_entries" +sidebar_current: "docs-oci-datasource-database-exadb_vm_cluster_update_history_entries" +description: |- + Provides the list of Exadb Vm Cluster Update History Entries in Oracle Cloud Infrastructure Database service +--- + +# Data Source: oci_database_exadb_vm_cluster_update_history_entries +This data source provides the list of Exadb Vm Cluster Update History Entries in Oracle Cloud Infrastructure Database service. + +Gets the history of the maintenance update actions performed on the specified Exadata VM cluster on Exascale Infrastructure. + + +## Example Usage + +```hcl +data "oci_database_exadb_vm_cluster_update_history_entries" "test_exadb_vm_cluster_update_history_entries" { + #Required + exadb_vm_cluster_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id + + #Optional + update_type = var.exadb_vm_cluster_update_history_entry_update_type +} +``` + +## Argument Reference + +The following arguments are supported: + +* `exadb_vm_cluster_id` - (Required) The Exadata VM cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. +* `update_type` - (Optional) A filter to return only resources that match the given update type exactly. + + +## Attributes Reference + +The following attributes are exported: + +* `exadb_vm_cluster_update_history_entries` - The list of exadb_vm_cluster_update_history_entries. + +### ExadbVmClusterUpdateHistoryEntry Reference + +The following attributes are exported: + +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. +* `lifecycle_details` - Descriptive text providing additional details about the lifecycle state. +* `state` - The current lifecycle state of the maintenance update operation. +* `time_completed` - The date and time when the maintenance update action completed. +* `time_started` - The date and time when the maintenance update action started. +* `update_action` - The update action. +* `update_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. +* `update_type` - The type of cloud VM cluster maintenance update. +* `version` - The version of the maintenance update package. + diff --git a/website/docs/d/database_exadb_vm_cluster_update_history_entry.html.markdown b/website/docs/d/database_exadb_vm_cluster_update_history_entry.html.markdown new file mode 100644 index 00000000000..120cd42d754 --- /dev/null +++ b/website/docs/d/database_exadb_vm_cluster_update_history_entry.html.markdown @@ -0,0 +1,47 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_exadb_vm_cluster_update_history_entry" +sidebar_current: "docs-oci-datasource-database-exadb_vm_cluster_update_history_entry" +description: |- + Provides details about a specific Exadb Vm Cluster Update History Entry in Oracle Cloud Infrastructure Database service +--- + +# Data Source: oci_database_exadb_vm_cluster_update_history_entry +This data source provides details about a specific Exadb Vm Cluster Update History Entry resource in Oracle Cloud Infrastructure Database service. + +Gets the maintenance update history details for the specified update history entry. + + +## Example Usage + +```hcl +data "oci_database_exadb_vm_cluster_update_history_entry" "test_exadb_vm_cluster_update_history_entry" { + #Required + exadb_vm_cluster_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id + update_history_entry_id = oci_database_update_history_entry.test_update_history_entry.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `exadb_vm_cluster_id` - (Required) The Exadata VM cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. +* `update_history_entry_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. + + +## Attributes Reference + +The following attributes are exported: + +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update history entry. +* `lifecycle_details` - Descriptive text providing additional details about the lifecycle state. +* `state` - The current lifecycle state of the maintenance update operation. +* `time_completed` - The date and time when the maintenance update action completed. +* `time_started` - The date and time when the maintenance update action started. +* `update_action` - The update action. +* `update_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. +* `update_type` - The type of cloud VM cluster maintenance update. +* `version` - The version of the maintenance update package. + diff --git a/website/docs/d/database_exadb_vm_cluster_updates.html.markdown b/website/docs/d/database_exadb_vm_cluster_updates.html.markdown new file mode 100644 index 00000000000..b48dfae06a4 --- /dev/null +++ b/website/docs/d/database_exadb_vm_cluster_updates.html.markdown @@ -0,0 +1,57 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_exadb_vm_cluster_updates" +sidebar_current: "docs-oci-datasource-database-exadb_vm_cluster_updates" +description: |- + Provides the list of Exadb Vm Cluster Updates in Oracle Cloud Infrastructure Database service +--- + +# Data Source: oci_database_exadb_vm_cluster_updates +This data source provides the list of Exadb Vm Cluster Updates in Oracle Cloud Infrastructure Database service. + +Lists the maintenance updates that can be applied to the specified Exadata VM cluster on Exascale Infrastructure. + + +## Example Usage + +```hcl +data "oci_database_exadb_vm_cluster_updates" "test_exadb_vm_cluster_updates" { + #Required + exadb_vm_cluster_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id + + #Optional + update_type = var.exadb_vm_cluster_update_update_type + version = var.exadb_vm_cluster_update_version +} +``` + +## Argument Reference + +The following arguments are supported: + +* `exadb_vm_cluster_id` - (Required) The Exadata VM cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure. +* `update_type` - (Optional) A filter to return only resources that match the given update type exactly. +* `version` - (Optional) A filter to return only resources that match the given update version exactly. + + +## Attributes Reference + +The following attributes are exported: + +* `exadb_vm_cluster_updates` - The list of exadb_vm_cluster_updates. + +### ExadbVmClusterUpdate Reference + +The following attributes are exported: + +* `available_actions` - The possible actions performed by the update operation on the infrastructure components. +* `description` - Details of the maintenance update package. +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the maintenance update. +* `last_action` - The previous update action performed. +* `lifecycle_details` - Descriptive text providing additional details about the lifecycle state. +* `state` - The current state of the maintenance update. Dependent on value of `lastAction`. +* `time_released` - The date and time the maintenance update was released. +* `update_type` - The type of cloud VM cluster maintenance update. +* `version` - The version of the maintenance update package. + diff --git a/website/docs/d/database_exadb_vm_clusters.html.markdown b/website/docs/d/database_exadb_vm_clusters.html.markdown new file mode 100644 index 00000000000..97f2d3ef9d3 --- /dev/null +++ b/website/docs/d/database_exadb_vm_clusters.html.markdown @@ -0,0 +1,116 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_exadb_vm_clusters" +sidebar_current: "docs-oci-datasource-database-exadb_vm_clusters" +description: |- + Provides the list of Exadb Vm Clusters in Oracle Cloud Infrastructure Database service +--- + +# Data Source: oci_database_exadb_vm_clusters +This data source provides the list of Exadb Vm Clusters in Oracle Cloud Infrastructure Database service. + +Gets a list of the Exadata VM clusters on Exascale Infrastructure in the specified compartment. Applies to Exadata Database Service on Exascale Infrastructure only. + + +## Example Usage + +```hcl +data "oci_database_exadb_vm_clusters" "test_exadb_vm_clusters" { + #Required + compartment_id = var.compartment_id + + #Optional + display_name = var.exadb_vm_cluster_display_name + exascale_db_storage_vault_id = oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault.id + state = var.exadb_vm_cluster_state +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Required) The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +* `display_name` - (Optional) A filter to return only resources that match the entire display name given. The match is not case sensitive. +* `exascale_db_storage_vault_id` - (Optional) A filter to return only Exadata VM clusters on Exascale Infrastructure that match the given Exascale Database Storage Vault ID. +* `state` - (Optional) A filter to return only Exadata VM clusters on Exascale Infrastructure that match the given lifecycle state exactly. + + +## Attributes Reference + +The following attributes are exported: + +* `exadb_vm_clusters` - The list of exadb_vm_clusters. + +### ExadbVmCluster Reference + +The following attributes are exported: + +* `availability_domain` - The name of the availability domain in which the Exadata VM cluster on Exascale Infrastructure is located. +* `backup_network_nsg_ids` - A list of the [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that the backup network of this DB system belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see [Security Rules](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). Applicable only to Exadata systems. +* `backup_subnet_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. +* `cluster_name` - The cluster name for Exadata VM cluster on Exascale Infrastructure. The cluster name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. +* `data_collection_options` - Indicates user preferences for the various diagnostic collection options for the VM cluster/Cloud VM cluster/VMBM DBCS. + * `is_diagnostics_events_enabled` - Indicates whether diagnostic collection is enabled for the VM cluster/Cloud VM cluster/VMBM DBCS. Enabling diagnostic collection allows you to receive Events service notifications for guest VM issues. Diagnostic collection also allows Oracle to provide enhanced service and proactive support for your Exadata system. You can enable diagnostic collection during VM cluster/Cloud VM cluster provisioning. You can also disable or enable it at any time using the `UpdateVmCluster` or `updateCloudVmCluster` API. + * `is_health_monitoring_enabled` - Indicates whether health monitoring is enabled for the VM cluster / Cloud VM cluster / VMBM DBCS. Enabling health monitoring allows Oracle to collect diagnostic data and share it with its operations and support personnel. You may also receive notifications for some events. Collecting health diagnostics enables Oracle to provide proactive support and enhanced service for your system. Optionally enable health monitoring while provisioning a system. You can also disable or enable health monitoring anytime using the `UpdateVmCluster`, `UpdateCloudVmCluster` or `updateDbsystem` API. + * `is_incident_logs_enabled` - Indicates whether incident logs and trace collection are enabled for the VM cluster / Cloud VM cluster / VMBM DBCS. Enabling incident logs collection allows Oracle to receive Events service notifications for guest VM issues, collect incident logs and traces, and use them to diagnose issues and resolve them. Optionally enable incident logs collection while provisioning a system. You can also disable or enable incident logs collection anytime using the `UpdateVmCluster`, `updateCloudVmCluster` or `updateDbsystem` API. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `display_name` - The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name does not need to be unique. +* `domain` - A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. Applies to Exadata Database Service on Exascale Infrastructure only. +* `exascale_db_storage_vault_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `gi_version` - A valid Oracle Grid Infrastructure (GI) software version. +* `grid_image_id` - Grid Setup will be done using this grid image id +* `grid_image_type` - The type of Grid Image +* `hostname` - The hostname for the Exadata VM cluster on Exascale Infrastructure. The hostname must begin with an alphabetic character, and can contain alphanumeric characters and hyphens (-). For Exadata systems, the maximum length of the hostname is 12 characters. + + The maximum length of the combined hostname and domain is 63 characters. + + **Note:** The hostname must be unique within the subnet. If it is not unique, then the Exadata VM cluster on Exascale Infrastructure will fail to provision. +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata VM cluster on Exascale Infrastructure. +* `iorm_config_cache` - The IORM settings of the Exadata DB system. + * `db_plans` - An array of IORM settings for all the database in the Exadata DB system. + * `db_name` - The database name. For the default `DbPlan`, the `dbName` is `default`. + * `flash_cache_limit` - The flash cache limit for this database. This value is internally configured based on the share value assigned to the database. + * `share` - The relative priority of this database. + * `lifecycle_details` - Additional information about the current `lifecycleState`. + * `objective` - The current value for the IORM objective. The default is `AUTO`. + * `state` - The current state of IORM configuration for the Exadata DB system. +* `last_update_history_entry_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last maintenance update history entry. This value is updated when a maintenance update starts. +* `license_model` - The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. The default is BRING_YOUR_OWN_LICENSE. +* `lifecycle_details` - Additional information about the current lifecycle state. +* `listener_port` - The port number configured for the listener on the Exadata VM cluster on Exascale Infrastructure. +* `node_config` - The configuration of each node in the Exadata VM cluster on Exascale Infrastructure. + * `enabled_cpu_count_per_node` - The number of ECPU to enable for each node. + * `memory_size_in_gbs_per_node` - The memory that you want to be allocated in GBs to each node. Memory is calculated based on 11 GB per VM core reserved. + * `total_cpu_count_per_node` - The number of Total ECPU for each node. + * `vm_file_system_storage_size_gbs_per_node` - The file system storage in GBs for each node. + * `snapshot_file_system_storage_size_gbs_per_node` - The file system storage in GBs for snapshot for each node. + * `total_file_system_storage_size_gbs_per_node` - Total file system storage in GBs for each node. +* `node_resource` - The list of node in the Exadata VM cluster on Exascale Infrastructure. + * `node_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the node. + * `node_hostname` - The host name for the node. + * `state` - The current state of the node. +* `nsg_ids` - The list of [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the network security groups (NSGs) to which this resource belongs. Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see [Security Rules](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). **NsgIds restrictions:** + * A network security group (NSG) is optional for Autonomous Databases with private access. The nsgIds list can be empty. +* `private_zone_id` - The private zone ID in which you want DNS records to be created. +* `scan_dns_name` - The FQDN of the DNS record for the SCAN IP addresses that are associated with the Exadata VM cluster on Exascale Infrastructure. +* `scan_dns_record_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DNS record for the SCAN IP addresses that are associated with the Exadata VM cluster on Exascale Infrastructure. +* `scan_ip_ids` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Single Client Access Name (SCAN) IP addresses associated with the Exadata VM cluster on Exascale Infrastructure. SCAN IP addresses are typically used for load balancing and are not assigned to any interface. Oracle Clusterware directs the requests to the appropriate nodes in the cluster. + + **Note:** For a single-node DB system, this list is empty. +* `scan_listener_port_tcp` - The TCP Single Client Access Name (SCAN) port. The default port is 1521. +* `scan_listener_port_tcp_ssl` - The Secured Communication (TCPS) protocol Single Client Access Name (SCAN) port. The default port is 2484. +* `shape` - The shape of the Exadata VM cluster on Exascale Infrastructure resource +* `ssh_public_keys` - The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster on Exascale Infrastructure. +* `state` - The current state of the Exadata VM cluster on Exascale Infrastructure. +* `subnet_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet associated with the Exadata VM cluster on Exascale Infrastructure. +* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `system_version` - Operating system version of the image. +* `time_created` - The date and time that the Exadata VM cluster on Exascale Infrastructure was created. +* `time_zone` - The time zone to use for the Exadata VM cluster on Exascale Infrastructure. For details, see [Time Zones](https://docs.cloud.oracle.com/iaas/Content/Database/References/timezones.htm). +* `vip_ids` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual IP (VIP) addresses associated with the Exadata VM cluster on Exascale Infrastructure. The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the Exadata Cloud Service instance to enable failover. If one node fails, then the VIP is reassigned to another active node in the cluster. +* `zone_id` - The OCID of the zone with which the Exadata VM cluster on Exascale Infrastructure is associated. + diff --git a/website/docs/d/database_exascale_db_storage_vault.html.markdown b/website/docs/d/database_exascale_db_storage_vault.html.markdown new file mode 100644 index 00000000000..ef47fd6f9a2 --- /dev/null +++ b/website/docs/d/database_exascale_db_storage_vault.html.markdown @@ -0,0 +1,54 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_exascale_db_storage_vault" +sidebar_current: "docs-oci-datasource-database-exascale_db_storage_vault" +description: |- + Provides details about a specific Exascale Db Storage Vault in Oracle Cloud Infrastructure Database service +--- + +# Data Source: oci_database_exascale_db_storage_vault +This data source provides details about a specific Exascale Db Storage Vault resource in Oracle Cloud Infrastructure Database service. + +Gets information about the specified Exadata Database Storage Vaults in the specified compartment. + + +## Example Usage + +```hcl +data "oci_database_exascale_db_storage_vault" "test_exascale_db_storage_vault" { + #Required + exascale_db_storage_vault_id = oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `exascale_db_storage_vault_id` - (Required) The Exadata Database Storage Vault [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + + +## Attributes Reference + +The following attributes are exported: + +* `additional_flash_cache_in_percent` - The size of additional Flash Cache in percentage of High Capacity database storage. +* `availability_domain` - The name of the availability domain in which the Exadata Database Storage Vault is located. +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `description` - Exadata Database Storage Vault description. +* `display_name` - The user-friendly name for the Exadata Database Storage Vault. The name does not need to be unique. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `high_capacity_database_storage` - Exadata Database Storage Details + * `available_size_in_gbs` - Available Capacity + * `total_size_in_gbs` - Total Capacity +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. +* `lifecycle_details` - Additional information about the current lifecycle state. +* `state` - The current state of the Exadata Database Storage Vault. +* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `time_created` - The date and time that the Exadata Database Storage Vault was created. +* `time_zone` - The time zone that you want to use for the Exadata Database Storage Vault. For details, see [Time Zones](https://docs.cloud.oracle.com/iaas/Content/Database/References/timezones.htm). +* `vm_cluster_count` - The number of Exadata VM clusters used the Exadata Database Storage Vault. +* `vm_cluster_ids` - The List of Exadata VM cluster on Exascale Infrastructure [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) **Note:** If Exadata Database Storage Vault is not used for any Exadata VM cluster on Exascale Infrastructure, this list is empty. + diff --git a/website/docs/d/database_exascale_db_storage_vaults.html.markdown b/website/docs/d/database_exascale_db_storage_vaults.html.markdown new file mode 100644 index 00000000000..4e992d1d1b6 --- /dev/null +++ b/website/docs/d/database_exascale_db_storage_vaults.html.markdown @@ -0,0 +1,66 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_exascale_db_storage_vaults" +sidebar_current: "docs-oci-datasource-database-exascale_db_storage_vaults" +description: |- + Provides the list of Exascale Db Storage Vaults in Oracle Cloud Infrastructure Database service +--- + +# Data Source: oci_database_exascale_db_storage_vaults +This data source provides the list of Exascale Db Storage Vaults in Oracle Cloud Infrastructure Database service. + +Gets a list of the Exadata Database Storage Vaults in the specified compartment. + + +## Example Usage + +```hcl +data "oci_database_exascale_db_storage_vaults" "test_exascale_db_storage_vaults" { + #Required + compartment_id = var.compartment_id + + #Optional + display_name = var.exascale_db_storage_vault_display_name + state = var.exascale_db_storage_vault_state +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Required) The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +* `display_name` - (Optional) A filter to return only resources that match the entire display name given. The match is not case sensitive. +* `state` - (Optional) A filter to return only Exadata Database Storage Vaults that match the given lifecycle state exactly. + + +## Attributes Reference + +The following attributes are exported: + +* `exascale_db_storage_vaults` - The list of exascale_db_storage_vaults. + +### ExascaleDbStorageVault Reference + +The following attributes are exported: + +* `additional_flash_cache_in_percent` - The size of additional Flash Cache in percentage of High Capacity database storage. +* `availability_domain` - The name of the availability domain in which the Exadata Database Storage Vault is located. +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `description` - Exadata Database Storage Vault description. +* `display_name` - The user-friendly name for the Exadata Database Storage Vault. The name does not need to be unique. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `high_capacity_database_storage` - Exadata Database Storage Details + * `available_size_in_gbs` - Available Capacity + * `total_size_in_gbs` - Total Capacity +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. +* `lifecycle_details` - Additional information about the current lifecycle state. +* `state` - The current state of the Exadata Database Storage Vault. +* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `time_created` - The date and time that the Exadata Database Storage Vault was created. +* `time_zone` - The time zone that you want to use for the Exadata Database Storage Vault. For details, see [Time Zones](https://docs.cloud.oracle.com/iaas/Content/Database/References/timezones.htm). +* `vm_cluster_count` - The number of Exadata VM clusters used the Exadata Database Storage Vault. +* `vm_cluster_ids` - The List of Exadata VM cluster on Exascale Infrastructure [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) **Note:** If Exadata Database Storage Vault is not used for any Exadata VM cluster on Exascale Infrastructure, this list is empty. + diff --git a/website/docs/d/database_gi_version_minor_versions.html.markdown b/website/docs/d/database_gi_version_minor_versions.html.markdown new file mode 100644 index 00000000000..9645d739ba2 --- /dev/null +++ b/website/docs/d/database_gi_version_minor_versions.html.markdown @@ -0,0 +1,55 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_gi_version_minor_versions" +sidebar_current: "docs-oci-datasource-database-gi_version_minor_versions" +description: |- + Provides the list of Gi Version Minor Versions in Oracle Cloud Infrastructure Database service +--- + +# Data Source: oci_database_gi_version_minor_versions +This data source provides the list of Gi Version Minor Versions in Oracle Cloud Infrastructure Database service. + +Gets a list of supported Oracle Grid Infrastructure minor versions for the given major version and shape family. + +## Example Usage + +```hcl +data "oci_database_gi_version_minor_versions" "test_gi_version_minor_versions" { + #Required + version = var.gi_version_minor_version_version + + #Optional + availability_domain = var.gi_version_minor_version_availability_domain + compartment_id = var.compartment_id + is_gi_version_for_provisioning = var.gi_version_minor_version_is_gi_version_for_provisioning + shape = var.gi_version_minor_version_shape + shape_family = var.gi_version_minor_version_shape_family +} +``` + +## Argument Reference + +The following arguments are supported: + +* `availability_domain` - (Optional) The target availability domain. Only passed if the limit is AD-specific. +* `compartment_id` - (Optional) The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +* `is_gi_version_for_provisioning` - (Optional) If true, returns the Grid Infrastructure versions that can be used for provisioning a cluster +* `shape` - (Optional) If provided, filters the results for the given shape. +* `shape_family` - (Optional) If provided, filters the results to the set of database versions which are supported for the given shape family. +* `version` - (Required) The Oracle Grid Infrastructure major version. + + +## Attributes Reference + +The following attributes are exported: + +* `gi_minor_versions` - The list of gi_minor_versions. + +### GiVersionMinorVersion Reference + +The following attributes are exported: + +* `grid_image_id` - Grid Infrastructure Image Id +* `version` - A valid Oracle Grid Infrastructure (GI) software version. + diff --git a/website/docs/d/database_gi_versions.html.markdown b/website/docs/d/database_gi_versions.html.markdown index baa0a99c137..7267f89d3dd 100644 --- a/website/docs/d/database_gi_versions.html.markdown +++ b/website/docs/d/database_gi_versions.html.markdown @@ -10,7 +10,7 @@ description: |- # Data Source: oci_database_gi_versions This data source provides the list of Gi Versions in Oracle Cloud Infrastructure Database service. -Gets a list of supported GI versions for the Exadata Cloud@Customer VM cluster. +Gets a list of supported GI versions. ## Example Usage @@ -20,6 +20,7 @@ data "oci_database_gi_versions" "test_gi_versions" { compartment_id = var.compartment_id #Optional + availability_domain = var.gi_version_availability_domain shape = var.gi_version_shape } ``` @@ -28,6 +29,7 @@ data "oci_database_gi_versions" "test_gi_versions" { The following arguments are supported: +* `availability_domain` - (Optional) The target availability domain. Only passed if the limit is AD-specific. * `compartment_id` - (Required) The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * `shape` - (Optional) If provided, filters the results for the given shape. diff --git a/website/docs/d/database_migration_connection.html.markdown b/website/docs/d/database_migration_connection.html.markdown index eaa054d582c..ef12abf9eb2 100644 --- a/website/docs/d/database_migration_connection.html.markdown +++ b/website/docs/d/database_migration_connection.html.markdown @@ -4,6 +4,73 @@ layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_database_migration_connection" sidebar_current: "docs-oci-datasource-database_migration-connection" description: |- - Provides details about a specific Connection in Oracle Cloud Infrastructure Database Migration service +Provides details about a specific Connection in Oracle Cloud Infrastructure Database Migration service --- -### support for this data source has been removed from v6.0.0 \ No newline at end of file + +# Data Source: oci_database_migration_connection +This data source provides details about a specific Connection resource in Oracle Cloud Infrastructure Database Migration service. + +Display Database Connection details. + +Note: If you wish to use the DMS deprecated API version /20210929 it is necessary to pin the Terraform Provider version to v5.46.0. Newer Terraform provider versions will not support the DMS deprecated API version /20210929 + +## Example Usage + +```hcl +data "oci_database_migration_connection" "test_connection" { + #Required + connection_id = oci_database_migration_connection.test_connection.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `connection_id` - (Required) The OCID of the database connection. + + +## Attributes Reference + +The following attributes are exported: + +* `additional_attributes` - An array of name-value pair attribute entries. + * `name` - The name of the property entry. + * `value` - The value of the property entry. +* `compartment_id` - The OCID of the compartment. +* `connection_string` - Connect descriptor or Easy Connect Naming method used to connect to a database. +* `connection_type` - Defines the type of connection. For example, ORACLE. +* `database_id` - The OCID of the database being referenced. +* `database_name` - The name of the database being referenced. +* `db_system_id` - The OCID of the database system being referenced. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} +* `host` - The IP Address of the host. +* `id` - The OCID of the connection being referenced. +* `ingress_ips` - List of ingress IP addresses from where to connect to this connection's privateIp. + * `ingress_ip` - A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet. +* `key_id` - The OCID of the key used in cryptographic operations. +* `lifecycle_details` - The message describing the current state of the connection's lifecycle in detail. For example, can be used to provide actionable information for a connection in a Failed state. +* `nsg_ids` - An array of Network Security Group OCIDs used to define network access for Connections. +* `password` - The password (credential) used when creating or updating this resource. +* `port` - The port to be used for the connection. +* `private_endpoint_id` - The OCID of the resource being referenced. +* `replication_password` - The password (credential) used when creating or updating this resource. +* `replication_username` - The username (credential) used when creating or updating this resource. +* `secret_id` - The OCID of the resource being referenced. +* `security_protocol` - Security Protocol to be used for the connection. +* `ssh_host` - Name of the host the SSH key is valid for. +* `ssh_key` - Private SSH key string. +* `ssh_sudo_location` - Sudo location +* `ssh_user` - The username (credential) used when creating or updating this resource. +* `ssl_mode` - SSL mode to be used for the connection. +* `state` - The Connection's current lifecycle state. +* `subnet_id` - Oracle Cloud Infrastructure resource ID. +* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `technology_type` - The type of MySQL source or target connection. Example: OCI_MYSQL represents Oracle Cloud Infrastructure MySQL HeatWave Database Service +* `time_created` - The time when this resource was created. An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `time_updated` - The time when this resource was updated. An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `username` - The username (credential) used when creating or updating this resource. +* `vault_id` - Oracle Cloud Infrastructure resource ID. diff --git a/website/docs/d/database_migration_connections.html.markdown b/website/docs/d/database_migration_connections.html.markdown index a08e26343de..fe84abc9076 100644 --- a/website/docs/d/database_migration_connections.html.markdown +++ b/website/docs/d/database_migration_connections.html.markdown @@ -4,6 +4,91 @@ layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_database_migration_connections" sidebar_current: "docs-oci-datasource-database_migration-connections" description: |- - Provides the list of Connections in Oracle Cloud Infrastructure Database Migration service +Provides the list of Connections in Oracle Cloud Infrastructure Database Migration service --- -### support for this data source has been removed from v6.0.0 \ No newline at end of file + +# Data Source: oci_database_migration_connections +This data source provides the list of Connections in Oracle Cloud Infrastructure Database Migration service. + +List all Database Connections. + +Note: If you wish to use the DMS deprecated API version /20210929 it is necessary to pin the Terraform Provider version to v5.46.0. Newer Terraform provider versions will not support the DMS deprecated API version /20210929 + +## Example Usage + +```hcl +data "oci_database_migration_connections" "test_connections" { + #Required + compartment_id = var.compartment_id + + #Optional + connection_type = var.connection_connection_type + display_name = var.connection_display_name + source_connection_id = oci_database_migration_connection.test_connection.id + state = var.connection_state + technology_type = var.connection_technology_type +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Required) The ID of the compartment in which to list resources. +* `connection_type` - (Optional) The array of connection types. +* `display_name` - (Optional) A filter to return only resources that match the entire display name given. +* `source_connection_id` - (Optional) The OCID of the source database connection. +* `state` - (Optional) The current state of the Database Migration Deployment. +* `technology_type` - (Optional) The array of technology types. + + +## Attributes Reference + +The following attributes are exported: + +* `connection_collection` - The list of connection_collection. + +### Connection Reference + +The following attributes are exported: + +* `additional_attributes` - An array of name-value pair attribute entries. + * `name` - The name of the property entry. + * `value` - The value of the property entry. +* `compartment_id` - The OCID of the compartment. +* `connection_string` - Connect descriptor or Easy Connect Naming method used to connect to a database. +* `connection_type` - Defines the type of connection. For example, ORACLE. +* `database_id` - The OCID of the database being referenced. +* `database_name` - The name of the database being referenced. +* `db_system_id` - The OCID of the database system being referenced. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} +* `host` - The IP Address of the host. +* `id` - The OCID of the connection being referenced. +* `ingress_ips` - List of ingress IP addresses from where to connect to this connection's privateIp. + * `ingress_ip` - A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet. +* `key_id` - The OCID of the key used in cryptographic operations. +* `lifecycle_details` - The message describing the current state of the connection's lifecycle in detail. For example, can be used to provide actionable information for a connection in a Failed state. +* `nsg_ids` - An array of Network Security Group OCIDs used to define network access for Connections. +* `password` - The password (credential) used when creating or updating this resource. +* `port` - The port to be used for the connection. +* `private_endpoint_id` - The OCID of the resource being referenced. +* `replication_password` - The password (credential) used when creating or updating this resource. +* `replication_username` - The username (credential) used when creating or updating this resource. +* `secret_id` - The OCID of the resource being referenced. +* `security_protocol` - Security Protocol to be used for the connection. +* `ssh_host` - Name of the host the SSH key is valid for. +* `ssh_key` - Private SSH key string. +* `ssh_sudo_location` - Sudo location +* `ssh_user` - The username (credential) used when creating or updating this resource. +* `ssl_mode` - SSL mode to be used for the connection. +* `state` - The Connection's current lifecycle state. +* `subnet_id` - Oracle Cloud Infrastructure resource ID. +* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `technology_type` - The type of MySQL source or target connection. Example: OCI_MYSQL represents Oracle Cloud Infrastructure MySQL HeatWave Database Service +* `time_created` - The time when this resource was created. An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `time_updated` - The time when this resource was updated. An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `username` - The username (credential) used when creating or updating this resource. +* `vault_id` - Oracle Cloud Infrastructure resource ID. diff --git a/website/docs/d/database_migration_job.html.markdown b/website/docs/d/database_migration_job.html.markdown index 9d886c39378..c9877e43944 100644 --- a/website/docs/d/database_migration_job.html.markdown +++ b/website/docs/d/database_migration_job.html.markdown @@ -4,7 +4,7 @@ layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_database_migration_job" sidebar_current: "docs-oci-datasource-database_migration-job" description: |- - Provides details about a specific Job in Oracle Cloud Infrastructure Database Migration service +Provides details about a specific Job in Oracle Cloud Infrastructure Database Migration service --- # Data Source: oci_database_migration_job @@ -12,6 +12,8 @@ This data source provides details about a specific Job resource in Oracle Cloud Get a migration job. +Note: If you wish to use the DMS deprecated API version /20210929 it is necessary to pin the Terraform Provider version to v5.46.0. Newer Terraform provider versions will not support the DMS deprecated API version /20210929 + ## Example Usage ```hcl @@ -25,44 +27,43 @@ data "oci_database_migration_job" "test_job" { The following arguments are supported: -* `job_id` - (Required) The OCID of the job +* `job_id` - (Required) The OCID of the job ## Attributes Reference The following attributes are exported: -* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` -* `display_name` - Name of the job. -* `freeform_tags` - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` -* `id` - The OCID of the Migration Job. -* `lifecycle_details` - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. -* `migration_id` - The OCID of the Migration that this job belongs to. -* `progress` - Progress details of a Migration Job. - * `current_phase` - Current phase of the job. - * `current_status` - Current status of the job. - * `phases` - List of phase status for the job. - * `action` - The text describing the action required to fix the issue - * `duration_in_ms` - Duration of the phase in milliseconds - * `extract` - Summary of phase status results. - * `message` - Message in entry. - * `type` - Type of extract. - * `is_advisor_report_available` - True if a Pre-Migration Advisor report is available for this phase. False or null if no report is available. - * `issue` - The text describing the root cause of the reported issue - * `log_location` - Details to access log file in the specified Object Storage bucket, if any. - * `bucket` - Name of the bucket containing the log file. - * `namespace` - Object Storage namespace. - * `object` - Log object name. - * `name` - Phase name - * `progress` - Percent progress of job phase. - * `status` - Phase status -* `state` - The current state of the migration job. -* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` -* `time_created` - The time the Migration Job was created. An RFC3339 formatted datetime string -* `time_updated` - The time the Migration Job was last updated. An RFC3339 formatted datetime string -* `type` - The job type. -* `unsupported_objects` - Database objects not supported. - * `object` - Name of the object (regular expression is allowed) - * `owner` - Owner of the object (regular expression is allowed) +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `display_name` - Name of the job. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} +* `id` - The OCID of the Migration Job. +* `lifecycle_details` - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. +* `migration_id` - The OCID of the Migration that this job belongs to. +* `progress` - Progress details of a Migration Job. + * `current_phase` - Current phase of the job. + * `current_status` - Current status of the job. + * `phases` - List of phase status for the job. + * `action` - The text describing the action required to fix the issue + * `duration_in_ms` - Duration of the phase in milliseconds + * `extract` - Summary of phase status results. + * `message` - Message in entry. + * `type` - Type of extract. + * `is_advisor_report_available` - True if a Pre-Migration Advisor report is available for this phase. False or null if no report is available. + * `issue` - The text describing the root cause of the reported issue + * `log_location` - Details to access log file in the specified Object Storage bucket, if any. + * `bucket` - Name of the bucket containing the log file. + * `namespace` - Object Storage namespace. + * `object` - Log object name. + * `name` - Phase name + * `progress` - Percent progress of job phase. + * `status` - Phase status +* `state` - The current state of the migration job. +* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `time_created` - The time the Migration Job was created. An RFC3339 formatted datetime string +* `time_updated` - The time the Migration Job was last updated. An RFC3339 formatted datetime string +* `type` - The job type. +* `unsupported_objects` - Database objects not supported. + * `object` - Name of the object (regular expression is allowed) + * `owner` - Owner of the object (regular expression is allowed) * `type` - Type of unsupported object - diff --git a/website/docs/d/database_migration_job_advisor_report.html.markdown b/website/docs/d/database_migration_job_advisor_report.html.markdown index 029013747b7..2371cc4d409 100644 --- a/website/docs/d/database_migration_job_advisor_report.html.markdown +++ b/website/docs/d/database_migration_job_advisor_report.html.markdown @@ -4,7 +4,7 @@ layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_database_migration_job_advisor_report" sidebar_current: "docs-oci-datasource-database_migration-job_advisor_report" description: |- - Provides details about a specific Job Advisor Report in Oracle Cloud Infrastructure Database Migration service +Provides details about a specific Job Advisor Report in Oracle Cloud Infrastructure Database Migration service --- # Data Source: oci_database_migration_job_advisor_report @@ -12,6 +12,8 @@ This data source provides details about a specific Job Advisor Report resource i Get the Pre-Migration Advisor report details +Note: If you wish to use the DMS deprecated API version /20210929 it is necessary to pin the Terraform Provider version to v5.46.0. Newer Terraform provider versions will not support the DMS deprecated API version /20210929 + ## Example Usage @@ -26,22 +28,21 @@ data "oci_database_migration_job_advisor_report" "test_job_advisor_report" { The following arguments are supported: -* `job_id` - (Required) The OCID of the job +* `job_id` - (Required) The OCID of the job ## Attributes Reference The following attributes are exported: -* `number_of_fatal` - Number of Fatal results in the advisor report. -* `number_of_fatal_blockers` - Number of Fatal Blocker results in the advisor report. -* `number_of_informational_results` - Number of Informational results in the advisor report. -* `number_of_warnings` - Number of Warning results in the advisor report. -* `report_location_details` - Details to access Pre-Migration Advisor report. - * `location_in_source` - Path in the Source Registered Connection where the Pre-Migration advisor report can be accessed. - * `object_storage_details` - Details to access Pre-Migration Advisor report in the specified Object Storage bucket, if any. - * `bucket` - Name of the bucket containing the Pre-Migration Advisor report. - * `namespace` - Object Storage namespace. - * `object` - Pre-Migration Advisor report object name. -* `result` - Pre-Migration advisor result. - +* `number_of_fatal` - Number of Fatal results in the advisor report. +* `number_of_fatal_blockers` - Number of Fatal Blocker results in the advisor report. +* `number_of_informational_results` - Number of Informational results in the advisor report. +* `number_of_warnings` - Number of Warning results in the advisor report. +* `report_location_details` - Details to access Premigration Advisor report. + * `location_in_source` - File system path on the Source Database host where the Premigration Advisor report can be accessed. + * `object_storage_details` - Details to access Premigration Advisor report in the specified Object Storage bucket. + * `bucket` - Name of the bucket containing the Premigration Advisor report. + * `namespace` - Object Storage namespace. + * `object` - Premigration Advisor report object name. +* `result` - Premigration Advisor result. diff --git a/website/docs/d/database_migration_jobs.html.markdown b/website/docs/d/database_migration_jobs.html.markdown index e85f145cb16..b049439fd5a 100644 --- a/website/docs/d/database_migration_jobs.html.markdown +++ b/website/docs/d/database_migration_jobs.html.markdown @@ -4,7 +4,7 @@ layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_database_migration_jobs" sidebar_current: "docs-oci-datasource-database_migration-jobs" description: |- - Provides the list of Jobs in Oracle Cloud Infrastructure Database Migration service +Provides the list of Jobs in Oracle Cloud Infrastructure Database Migration service --- # Data Source: oci_database_migration_jobs @@ -13,6 +13,8 @@ This data source provides the list of Jobs in Oracle Cloud Infrastructure Databa List all the names of the Migration jobs associated to the specified migration site. +Note: If you wish to use the DMS deprecated API version /20210929 it is necessary to pin the Terraform Provider version to v5.46.0. Newer Terraform provider versions will not support the DMS deprecated API version /20210929 + ## Example Usage ```hcl @@ -30,9 +32,9 @@ data "oci_database_migration_jobs" "test_jobs" { The following arguments are supported: -* `display_name` - (Optional) A filter to return only resources that match the entire display name given. -* `migration_id` - (Required) The ID of the migration in which to list resources. -* `state` - (Optional) The lifecycle state of the Migration Job. +* `display_name` - (Optional) A filter to return only resources that match the entire display name given. +* `migration_id` - (Required) The ID of the migration in which to list resources. +* `state` - (Optional) The lifecycle state of the Migration Job. ## Attributes Reference @@ -45,37 +47,36 @@ The following attributes are exported: The following attributes are exported: -* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` -* `display_name` - Name of the job. -* `freeform_tags` - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` -* `id` - The OCID of the Migration Job. -* `lifecycle_details` - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. -* `migration_id` - The OCID of the Migration that this job belongs to. -* `progress` - Progress details of a Migration Job. - * `current_phase` - Current phase of the job. - * `current_status` - Current status of the job. - * `phases` - List of phase status for the job. - * `action` - The text describing the action required to fix the issue - * `duration_in_ms` - Duration of the phase in milliseconds - * `extract` - Summary of phase status results. - * `message` - Message in entry. - * `type` - Type of extract. - * `is_advisor_report_available` - True if a Pre-Migration Advisor report is available for this phase. False or null if no report is available. - * `issue` - The text describing the root cause of the reported issue - * `log_location` - Details to access log file in the specified Object Storage bucket, if any. - * `bucket` - Name of the bucket containing the log file. - * `namespace` - Object Storage namespace. - * `object` - Log object name. - * `name` - Phase name - * `progress` - Percent progress of job phase. - * `status` - Phase status -* `state` - The current state of the migration job. -* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` -* `time_created` - The time the Migration Job was created. An RFC3339 formatted datetime string -* `time_updated` - The time the Migration Job was last updated. An RFC3339 formatted datetime string -* `type` - The job type. -* `unsupported_objects` - Database objects not supported. - * `object` - Name of the object (regular expression is allowed) - * `owner` - Owner of the object (regular expression is allowed) +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `display_name` - Name of the job. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} +* `id` - The OCID of the Migration Job. +* `lifecycle_details` - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. +* `migration_id` - The OCID of the Migration that this job belongs to. +* `progress` - Progress details of a Migration Job. + * `current_phase` - Current phase of the job. + * `current_status` - Current status of the job. + * `phases` - List of phase status for the job. + * `action` - The text describing the action required to fix the issue + * `duration_in_ms` - Duration of the phase in milliseconds + * `extract` - Summary of phase status results. + * `message` - Message in entry. + * `type` - Type of extract. + * `is_advisor_report_available` - True if a Pre-Migration Advisor report is available for this phase. False or null if no report is available. + * `issue` - The text describing the root cause of the reported issue + * `log_location` - Details to access log file in the specified Object Storage bucket, if any. + * `bucket` - Name of the bucket containing the log file. + * `namespace` - Object Storage namespace. + * `object` - Log object name. + * `name` - Phase name + * `progress` - Percent progress of job phase. + * `status` - Phase status +* `state` - The current state of the migration job. +* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `time_created` - The time the Migration Job was created. An RFC3339 formatted datetime string +* `time_updated` - The time the Migration Job was last updated. An RFC3339 formatted datetime string +* `type` - The job type. +* `unsupported_objects` - Database objects not supported. + * `object` - Name of the object (regular expression is allowed) + * `owner` - Owner of the object (regular expression is allowed) * `type` - Type of unsupported object - diff --git a/website/docs/d/database_migration_migration.html.markdown b/website/docs/d/database_migration_migration.html.markdown index 92db32e7786..e75c03b1614 100644 --- a/website/docs/d/database_migration_migration.html.markdown +++ b/website/docs/d/database_migration_migration.html.markdown @@ -4,6 +4,128 @@ layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_database_migration_migration" sidebar_current: "docs-oci-datasource-database_migration-migration" description: |- - Provides details about a specific Migration in Oracle Cloud Infrastructure Database Migration service +Provides details about a specific Migration in Oracle Cloud Infrastructure Database Migration service --- -### support for this data source has been removed from v6.0.0 \ No newline at end of file + +# Data Source: oci_database_migration_migration +This data source provides details about a specific Migration resource in Oracle Cloud Infrastructure Database Migration service. + +Display Migration details. + +Note: If you wish to use the DMS deprecated API version /20210929 it is necessary to pin the Terraform Provider version to v5.46.0. Newer Terraform provider versions will not support the DMS deprecated API version /20210929 + +## Example Usage + +```hcl +data "oci_database_migration_migration" "test_migration" { + #Required + migration_id = oci_database_migration_migration.test_migration.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `migration_id` - (Required) The OCID of the migration + + +## Attributes Reference + +The following attributes are exported: + +* `advisor_settings` - Details about Oracle Advisor Settings. + * `is_ignore_errors` - True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is false. + * `is_skip_advisor` - True to skip the Pre-Migration Advisor execution. Default is false. +* `compartment_id` - The OCID of the resource being referenced. +* `data_transfer_medium_details` - Optional additional properties for data transfer. + * `access_key_id` - AWS access key credentials identifier Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * `name` - Name of database link from Oracle Cloud Infrastructure database to on-premise database. ODMS will create link, if the link does not already exist. + * `object_storage_bucket` - In lieu of a network database link, Oracle Cloud Infrastructure Object Storage bucket will be used to store Data Pump dump files for the migration. Additionally, it can be specified alongside a database link data transfer medium. + * `bucket` - Bucket name. + * `namespace` - Namespace name of the object store bucket. + * `region` - AWS region code where the S3 bucket is located. Region code should match the documented available regions: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions + * `secret_access_key` - AWS secret access key credentials Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * `shared_storage_mount_target_id` - OCID of the shared storage mount target + * `source` - Optional additional properties for dump transfer in source or target host. Default kind is CURL. + * `kind` - Type of dump transfer to use during migration in source or target host. Default kind is CURL + * `oci_home` - Path to the Oracle Cloud Infrastructure CLI installation in the node. + * `wallet_location` - Directory path to Oracle Cloud Infrastructure SSL wallet location on Db server node. + * `target` - Optional additional properties for dump transfer in source or target host. Default kind is CURL. + * `kind` - Type of dump transfer to use during migration in source or target host. Default kind is CURL + * `oci_home` - Path to the Oracle Cloud Infrastructure CLI installation in the node. + * `wallet_location` - Directory path to Oracle Cloud Infrastructure SSL wallet location on Db server node. + * `type` - Type of the data transfer medium to use. +* `database_combination` - The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `executing_job_id` - The OCID of the resource being referenced. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} +* `ggs_details` - Details for Oracle GoldenGate Deployment (Internally managed by the service, not required and will be ignored if provided). + * `acceptable_lag` - ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. + * `extract` - Parameters for Extract processes. + * `long_trans_duration` - Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running. If not specified, Extract will not generate a warning on long-running transactions. + * `performance_profile` - Extract performance. + * `ggs_deployment` - Details about Oracle GoldenGate GGS Deployment. + * `deployment_id` - The OCID of the resource being referenced. + * `ggs_admin_credentials_secret_id` - The OCID of the resource being referenced. + * `replicat` - Parameters for Replicat processes. + * `performance_profile` - Replicat performance. +* `hub_details` - Details for Oracle GoldenGate Marketplace Instance / Deployment (Currently not supported for MySQL migrations). + * `acceptable_lag` - ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. + * `compute_id` - The OCID of the resource being referenced. + * `extract` - Parameters for Extract processes. + * `long_trans_duration` - Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running. If not specified, Extract will not generate a warning on long-running transactions. + * `performance_profile` - Extract performance. + * `key_id` - The OCID of the resource being referenced. + * `replicat` - Parameters for Replicat processes. + * `performance_profile` - Replicat performance. + * `rest_admin_credentials` - Database Administrator Credentials details. + * `username` - Administrator username + * `url` - Endpoint URL. + * `vault_id` - The OCID of the resource being referenced. +* `id` - The OCID of the resource being referenced. +* `initial_load_settings` - Optional settings for Data Pump Export and Import jobs + * `compatibility` - Apply the specified requirements for compatibility with MySQL Database Service for all tables in the dump output, altering the dump files as necessary. + * `data_pump_parameters` - Optional parameters for Data Pump Export and Import. + * `estimate` - Estimate size of dumps that will be generated. + * `exclude_parameters` - Exclude paratemers for Export and Import. + * `export_parallelism_degree` - Maximum number of worker processes that can be used for a Data Pump Export job. + * `import_parallelism_degree` - Maximum number of worker processes that can be used for a Data Pump Import job. For an Autonomous Database, ODMS will automatically query its CPU core count and set this property. + * `is_cluster` - Set to false to force Data Pump worker process to run on one instance. + * `table_exists_action` - IMPORT: Specifies the action to be performed when data is loaded into a preexisting table. + * `export_directory_object` - Directory object details, used to define either import or export directory objects in Data Pump Settings. + * `name` - Name of directory object in database + * `path` - Absolute path of directory on database server + * `handle_grant_errors` - The action taken in the event of errors related to GRANT or REVOKE errors. + * `import_directory_object` - Directory object details, used to define either import or export directory objects in Data Pump Settings. + * `name` - Name of directory object in database + * `path` - Absolute path of directory on database server + * `is_consistent` - Enable (true) or disable (false) consistent data dumps by locking the instance for backup during the dump. + * `is_ignore_existing_objects` - Import the dump even if it contains objects that already exist in the target schema in the MySQL instance. + * `is_tz_utc` - Include a statement at the start of the dump to set the time zone to UTC. + * `job_mode` - Oracle Job Mode + * `metadata_remaps` - Defines remapping to be applied to objects as they are processed. + * `new_value` - Specifies the new value that oldValue should be translated into. + * `old_value` - Specifies the value which needs to be reset. + * `type` - Type of remap. Refer to [METADATA_REMAP Procedure ](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D) + * `primary_key_compatibility` - Primary key compatibility option + * `tablespace_details` - Migration tablespace settings. + * `block_size_in_kbs` - Size of Oracle database blocks in KB. + * `extend_size_in_mbs` - Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set to true. + * `is_auto_create` - Set this property to true to auto-create tablespaces in the target Database. Note: This is not applicable for Autonomous Database Serverless databases. + * `is_big_file` - Set this property to true to enable tablespace of the type big file. + * `remap_target` - Name of the tablespace on the target database to which the source database tablespace is to be remapped. + * `target_type` - Type of Database Base Migration Target. +* `lifecycle_details` - Additional status related to the execution and current state of the Migration. +* `source_container_database_connection_id` - The OCID of the resource being referenced. +* `source_database_connection_id` - The OCID of the resource being referenced. +* `state` - The current state of the Migration resource. +* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `target_database_connection_id` - The OCID of the resource being referenced. +* `time_created` - An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `time_last_migration` - An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `time_updated` - An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `type` - The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a migration. This method uses Oracle GoldenGate for replication. +* `wait_after` - You can optionally pause a migration after a job phase. This property allows you to optionally specify the phase after which you can pause the migration. diff --git a/website/docs/d/database_migration_migration_object_types.html.markdown b/website/docs/d/database_migration_migration_object_types.html.markdown index f6dc0458d61..188d9b13b99 100644 --- a/website/docs/d/database_migration_migration_object_types.html.markdown +++ b/website/docs/d/database_migration_migration_object_types.html.markdown @@ -4,7 +4,7 @@ layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_database_migration_migration_object_types" sidebar_current: "docs-oci-datasource-database_migration-migration_object_types" description: |- - Provides the list of Migration Object Types in Oracle Cloud Infrastructure Database Migration service +Provides the list of Migration Object Types in Oracle Cloud Infrastructure Database Migration service --- # Data Source: oci_database_migration_migration_object_types @@ -12,11 +12,15 @@ This data source provides the list of Migration Object Types in Oracle Cloud Inf Display sample object types to exclude or include for a Migration. +Note: If you wish to use the DMS deprecated API version /20210929 it is necessary to pin the Terraform Provider version to v5.46.0. Newer Terraform provider versions will not support the DMS deprecated API version /20210929 + ## Example Usage ```hcl data "oci_database_migration_migration_object_types" "test_migration_object_types" { + #Required + connection_type = var.migration_object_type_connection_type } ``` @@ -24,6 +28,7 @@ data "oci_database_migration_migration_object_types" "test_migration_object_type The following arguments are supported: +* `connection_type` - (Required) The connection type for migration objects. ## Attributes Reference @@ -36,6 +41,5 @@ The following attributes are exported: The following attributes are exported: -* `items` - Items in collection. - * `name` - Object type name - +* `items` - Items in collection. + * `name` - Object type name diff --git a/website/docs/d/database_migration_migrations.html.markdown b/website/docs/d/database_migration_migrations.html.markdown index 1dd1414e7ce..5fa46ae0ddf 100644 --- a/website/docs/d/database_migration_migrations.html.markdown +++ b/website/docs/d/database_migration_migrations.html.markdown @@ -4,6 +4,142 @@ layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_database_migration_migrations" sidebar_current: "docs-oci-datasource-database_migration-migrations" description: |- - Provides the list of Migrations in Oracle Cloud Infrastructure Database Migration service +Provides the list of Migrations in Oracle Cloud Infrastructure Database Migration service --- -### support for this data source has been removed from v6.0.0 \ No newline at end of file + +# Data Source: oci_database_migration_migrations +This data source provides the list of Migrations in Oracle Cloud Infrastructure Database Migration service. + +List all Migrations. + +Note: If you wish to use the DMS deprecated API version /20210929 it is necessary to pin the Terraform Provider version to v5.46.0. Newer Terraform provider versions will not support the DMS deprecated API version /20210929 + +## Example Usage + +```hcl +data "oci_database_migration_migrations" "test_migrations" { + #Required + compartment_id = var.compartment_id + + #Optional + display_name = var.migration_display_name + lifecycle_details = var.migration_lifecycle_details + state = var.migration_state +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Required) The ID of the compartment in which to list resources. +* `display_name` - (Optional) A filter to return only resources that match the entire display name given. +* `lifecycle_details` - (Optional) The lifecycle detailed status of the Migration. +* `state` - (Optional) The lifecycle state of the Migration. + + +## Attributes Reference + +The following attributes are exported: + +* `migration_collection` - The list of migration_collection. + +### Migration Reference + +The following attributes are exported: + +* `advisor_settings` - Details about Oracle Advisor Settings. + * `is_ignore_errors` - True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is false. + * `is_skip_advisor` - True to skip the Pre-Migration Advisor execution. Default is false. +* `compartment_id` - The OCID of the resource being referenced. +* `data_transfer_medium_details` - Optional additional properties for data transfer. + * `access_key_id` - AWS access key credentials identifier Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * `name` - Name of database link from Oracle Cloud Infrastructure database to on-premise database. ODMS will create link, if the link does not already exist. + * `object_storage_bucket` - In lieu of a network database link, Oracle Cloud Infrastructure Object Storage bucket will be used to store Data Pump dump files for the migration. Additionally, it can be specified alongside a database link data transfer medium. + * `bucket` - Bucket name. + * `namespace` - Namespace name of the object store bucket. + * `region` - AWS region code where the S3 bucket is located. Region code should match the documented available regions: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions + * `secret_access_key` - AWS secret access key credentials Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * `shared_storage_mount_target_id` - OCID of the shared storage mount target + * `source` - Optional additional properties for dump transfer in source or target host. Default kind is CURL. + * `kind` - Type of dump transfer to use during migration in source or target host. Default kind is CURL + * `oci_home` - Path to the Oracle Cloud Infrastructure CLI installation in the node. + * `wallet_location` - Directory path to Oracle Cloud Infrastructure SSL wallet location on Db server node. + * `target` - Optional additional properties for dump transfer in source or target host. Default kind is CURL. + * `kind` - Type of dump transfer to use during migration in source or target host. Default kind is CURL + * `oci_home` - Path to the Oracle Cloud Infrastructure CLI installation in the node. + * `wallet_location` - Directory path to Oracle Cloud Infrastructure SSL wallet location on Db server node. + * `type` - Type of the data transfer medium to use. +* `database_combination` - The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `executing_job_id` - The OCID of the resource being referenced. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} +* `ggs_details` - Optional settings for Oracle GoldenGate processes + * `acceptable_lag` - ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. + * `extract` - Parameters for Extract processes. + * `long_trans_duration` - Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running. If not specified, Extract will not generate a warning on long-running transactions. + * `performance_profile` - Extract performance. + * `ggs_deployment` - Details about Oracle GoldenGate GGS Deployment. + * `deployment_id` - The OCID of the resource being referenced. + * `ggs_admin_credentials_secret_id` - The OCID of the resource being referenced. + * `replicat` - Parameters for Replicat processes. + * `performance_profile` - Replicat performance. +* `hub_details` - Details about Oracle GoldenGate Microservices. + * `acceptable_lag` - ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. + * `compute_id` - The OCID of the resource being referenced. + * `extract` - Parameters for Extract processes. + * `long_trans_duration` - Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running. If not specified, Extract will not generate a warning on long-running transactions. + * `performance_profile` - Extract performance. + * `key_id` - The OCID of the resource being referenced. + * `replicat` - Parameters for Replicat processes. + * `performance_profile` - Replicat performance. + * `rest_admin_credentials` - Database Administrator Credentials details. + * `username` - Administrator username + * `url` - Endpoint URL. + * `vault_id` - The OCID of the resource being referenced. +* `id` - The OCID of the resource being referenced. +* `initial_load_settings` - Optional settings for Data Pump Export and Import jobs + * `compatibility` - Apply the specified requirements for compatibility with MySQL Database Service for all tables in the dump output, altering the dump files as necessary. + * `data_pump_parameters` - Optional parameters for Data Pump Export and Import. + * `estimate` - Estimate size of dumps that will be generated. + * `exclude_parameters` - Exclude paratemers for Export and Import. + * `export_parallelism_degree` - Maximum number of worker processes that can be used for a Data Pump Export job. + * `import_parallelism_degree` - Maximum number of worker processes that can be used for a Data Pump Import job. For an Autonomous Database, ODMS will automatically query its CPU core count and set this property. + * `is_cluster` - Set to false to force Data Pump worker process to run on one instance. + * `table_exists_action` - IMPORT: Specifies the action to be performed when data is loaded into a preexisting table. + * `export_directory_object` - Directory object details, used to define either import or export directory objects in Data Pump Settings. + * `name` - Name of directory object in database + * `path` - Absolute path of directory on database server + * `handle_grant_errors` - The action taken in the event of errors related to GRANT or REVOKE errors. + * `import_directory_object` - Directory object details, used to define either import or export directory objects in Data Pump Settings. + * `name` - Name of directory object in database + * `path` - Absolute path of directory on database server + * `is_consistent` - Enable (true) or disable (false) consistent data dumps by locking the instance for backup during the dump. + * `is_ignore_existing_objects` - Import the dump even if it contains objects that already exist in the target schema in the MySQL instance. + * `is_tz_utc` - Include a statement at the start of the dump to set the time zone to UTC. + * `job_mode` - Oracle Job Mode + * `metadata_remaps` - Defines remapping to be applied to objects as they are processed. + * `new_value` - Specifies the new value that oldValue should be translated into. + * `old_value` - Specifies the value which needs to be reset. + * `type` - Type of remap. Refer to [METADATA_REMAP Procedure ](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D) + * `primary_key_compatibility` - Primary key compatibility option + * `tablespace_details` - Migration tablespace settings. + * `block_size_in_kbs` - Size of Oracle database blocks in KB. + * `extend_size_in_mbs` - Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set to true. + * `is_auto_create` - Set this property to true to auto-create tablespaces in the target Database. Note: This is not applicable for Autonomous Database Serverless databases. + * `is_big_file` - Set this property to true to enable tablespace of the type big file. + * `remap_target` - Name of the tablespace on the target database to which the source database tablespace is to be remapped. + * `target_type` - Type of Database Base Migration Target. +* `lifecycle_details` - Additional status related to the execution and current state of the Migration. +* `source_container_database_connection_id` - The OCID of the resource being referenced. +* `source_database_connection_id` - The OCID of the resource being referenced. +* `state` - The current state of the Migration resource. +* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `target_database_connection_id` - The OCID of the resource being referenced. +* `time_created` - An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `time_last_migration` - An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `time_updated` - An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `type` - The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a migration. This method uses Oracle GoldenGate for replication. +* `wait_after` - You can optionally pause a migration after a job phase. This property allows you to optionally specify the phase after which you can pause the migration. diff --git a/website/docs/d/file_storage_file_systems.html.markdown b/website/docs/d/file_storage_file_systems.html.markdown index 52a9f97dd32..1cfae8be862 100644 --- a/website/docs/d/file_storage_file_systems.html.markdown +++ b/website/docs/d/file_storage_file_systems.html.markdown @@ -57,6 +57,8 @@ The following attributes are exported: The following attributes are exported: * `availability_domain` - The availability domain the file system is in. May be unset as a blank or NULL value. Example: `Uocm:PHX-AD-1` +* `clone_attach_status` - Specifies whether the file system is attached to its parent file system. +* `clone_count` - Specifies the total number of children of a file system. * `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the file system. * `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` * `display_name` - A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: `My file system` diff --git a/website/docs/d/file_storage_filesystem_snapshot_policies.html.markdown b/website/docs/d/file_storage_filesystem_snapshot_policies.html.markdown index 42c75fc6e96..378381cdbac 100644 --- a/website/docs/d/file_storage_filesystem_snapshot_policies.html.markdown +++ b/website/docs/d/file_storage_filesystem_snapshot_policies.html.markdown @@ -57,10 +57,10 @@ The following attributes are exported: * `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. * `policy_prefix` - The prefix to apply to all snapshots created by this policy. Example: `acme` * `schedules` - The list of associated snapshot schedules. A maximum of 10 schedules can be associated with a policy. - * `day_of_month` - The day of the month to create a scheduled snapshot. If the day does not exist for the month, snapshot creation will be skipped. Used for MONTHLY and YEARLY snapshot schedules. - * `day_of_week` - The day of the week to create a scheduled snapshot. Used for WEEKLY snapshot schedules. - * `hour_of_day` - The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot. If not set, a value will be chosen at creation time. - * `month` - The month to create a scheduled snapshot. Used only for YEARLY snapshot schedules. + * `day_of_month` - The day of the month to create a scheduled snapshot. If the day does not exist for the month, snapshot creation will be skipped. Used for MONTHLY and YEARLY snapshot schedules. If not set, the system chooses a value at creation time. + * `day_of_week` - The day of the week to create a scheduled snapshot. Used for WEEKLY snapshot schedules. If not set, the system chooses a value at creation time. + * `hour_of_day` - The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot. If not set, the system chooses a value at creation time. + * `month` - The month to create a scheduled snapshot. Used only for YEARLY snapshot schedules. If not set, the system chooses a value at creation time. * `period` - The frequency of scheduled snapshots. * `retention_duration_in_seconds` - The number of seconds to retain snapshots created with this schedule. Snapshot expiration time will not be set if this value is empty. * `schedule_prefix` - A name prefix to be applied to snapshots created by this schedule. Example: `compliance1` diff --git a/website/docs/d/file_storage_filesystem_snapshot_policy.html.markdown b/website/docs/d/file_storage_filesystem_snapshot_policy.html.markdown index b55ceeeaf16..ba86e4b80a6 100644 --- a/website/docs/d/file_storage_filesystem_snapshot_policy.html.markdown +++ b/website/docs/d/file_storage_filesystem_snapshot_policy.html.markdown @@ -40,10 +40,10 @@ The following attributes are exported: * `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. * `policy_prefix` - The prefix to apply to all snapshots created by this policy. Example: `acme` * `schedules` - The list of associated snapshot schedules. A maximum of 10 schedules can be associated with a policy. - * `day_of_month` - The day of the month to create a scheduled snapshot. If the day does not exist for the month, snapshot creation will be skipped. Used for MONTHLY and YEARLY snapshot schedules. - * `day_of_week` - The day of the week to create a scheduled snapshot. Used for WEEKLY snapshot schedules. - * `hour_of_day` - The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot. If not set, a value will be chosen at creation time. - * `month` - The month to create a scheduled snapshot. Used only for YEARLY snapshot schedules. + * `day_of_month` - The day of the month to create a scheduled snapshot. If the day does not exist for the month, snapshot creation will be skipped. Used for MONTHLY and YEARLY snapshot schedules. If not set, the system chooses a value at creation time. + * `day_of_week` - The day of the week to create a scheduled snapshot. Used for WEEKLY snapshot schedules. If not set, the system chooses a value at creation time. + * `hour_of_day` - The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot. If not set, the system chooses a value at creation time. + * `month` - The month to create a scheduled snapshot. Used only for YEARLY snapshot schedules. If not set, the system chooses a value at creation time. * `period` - The frequency of scheduled snapshots. * `retention_duration_in_seconds` - The number of seconds to retain snapshots created with this schedule. Snapshot expiration time will not be set if this value is empty. * `schedule_prefix` - A name prefix to be applied to snapshots created by this schedule. Example: `compliance1` diff --git a/website/docs/d/generative_ai_dedicated_ai_cluster.html.markdown b/website/docs/d/generative_ai_dedicated_ai_cluster.html.markdown index aac44fdd327..206d493c5ea 100644 --- a/website/docs/d/generative_ai_dedicated_ai_cluster.html.markdown +++ b/website/docs/d/generative_ai_dedicated_ai_cluster.html.markdown @@ -1,14 +1,14 @@ --- -subcategory: "Generative Ai" +subcategory: "Generative AI" layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_generative_ai_dedicated_ai_cluster" sidebar_current: "docs-oci-datasource-generative_ai-dedicated_ai_cluster" description: |- - Provides details about a specific Dedicated Ai Cluster in Oracle Cloud Infrastructure Generative Ai service + Provides details about a specific Dedicated Ai Cluster in Oracle Cloud Infrastructure Generative AI service --- # Data Source: oci_generative_ai_dedicated_ai_cluster -This data source provides details about a specific Dedicated Ai Cluster resource in Oracle Cloud Infrastructure Generative Ai service. +This data source provides details about a specific Dedicated Ai Cluster resource in Oracle Cloud Infrastructure Generative AI service. Gets information about a dedicated AI cluster. @@ -32,22 +32,4 @@ The following arguments are supported: The following attributes are exported: -* `capacity` - The total capacity for a dedicated AI cluster. - * `capacity_type` - The type of the dedicated AI cluster capacity. - * `total_endpoint_capacity` - The total number of endpoints that can be hosted on this dedicated AI cluster. - * `used_endpoint_capacity` - The number of endpoints hosted on this dedicated AI cluster. -* `compartment_id` - The compartment OCID to create the dedicated AI cluster in. -* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` -* `description` - An optional description of the dedicated AI cluster. -* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. -* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` -* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated AI cluster. -* `lifecycle_details` - A message describing the current state with detail that can provide actionable information. -* `state` - The current state of the dedicated AI cluster. -* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` -* `time_created` - The date and time the dedicated AI cluster was created, in the format defined by RFC 3339 -* `time_updated` - The date and time the dedicated AI cluster was updated, in the format defined by RFC 3339 -* `type` - The dedicated AI cluster type indicating whether this is a fine-tuning/training processor or hosting/inference processor. -* `unit_count` - The number of dedicated units in this AI cluster. -* `unit_shape` - The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. diff --git a/website/docs/d/generative_ai_dedicated_ai_clusters.html.markdown b/website/docs/d/generative_ai_dedicated_ai_clusters.html.markdown index 668bd2010bb..69dffcc3e25 100644 --- a/website/docs/d/generative_ai_dedicated_ai_clusters.html.markdown +++ b/website/docs/d/generative_ai_dedicated_ai_clusters.html.markdown @@ -1,14 +1,14 @@ --- -subcategory: "Generative Ai" +subcategory: "Generative AI" layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_generative_ai_dedicated_ai_clusters" sidebar_current: "docs-oci-datasource-generative_ai-dedicated_ai_clusters" description: |- - Provides the list of Dedicated Ai Clusters in Oracle Cloud Infrastructure Generative Ai service + Provides the list of Dedicated Ai Clusters in Oracle Cloud Infrastructure Generative AI service --- # Data Source: oci_generative_ai_dedicated_ai_clusters -This data source provides the list of Dedicated Ai Clusters in Oracle Cloud Infrastructure Generative Ai service. +This data source provides the list of Dedicated Ai Clusters in Oracle Cloud Infrastructure Generative AI service. Lists the dedicated AI clusters in a specific compartment. @@ -46,22 +46,4 @@ The following attributes are exported: The following attributes are exported: -* `capacity` - The total capacity for a dedicated AI cluster. - * `capacity_type` - The type of the dedicated AI cluster capacity. - * `total_endpoint_capacity` - The total number of endpoints that can be hosted on this dedicated AI cluster. - * `used_endpoint_capacity` - The number of endpoints hosted on this dedicated AI cluster. -* `compartment_id` - The compartment OCID to create the dedicated AI cluster in. -* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` -* `description` - An optional description of the dedicated AI cluster. -* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. -* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` -* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated AI cluster. -* `lifecycle_details` - A message describing the current state with detail that can provide actionable information. -* `state` - The current state of the dedicated AI cluster. -* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` -* `time_created` - The date and time the dedicated AI cluster was created, in the format defined by RFC 3339 -* `time_updated` - The date and time the dedicated AI cluster was updated, in the format defined by RFC 3339 -* `type` - The dedicated AI cluster type indicating whether this is a fine-tuning/training processor or hosting/inference processor. -* `unit_count` - The number of dedicated units in this AI cluster. -* `unit_shape` - The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. diff --git a/website/docs/d/generative_ai_endpoint.html.markdown b/website/docs/d/generative_ai_endpoint.html.markdown index 6dcbe441e60..752da530fc9 100644 --- a/website/docs/d/generative_ai_endpoint.html.markdown +++ b/website/docs/d/generative_ai_endpoint.html.markdown @@ -1,14 +1,14 @@ --- -subcategory: "Generative Ai" +subcategory: "Generative AI" layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_generative_ai_endpoint" sidebar_current: "docs-oci-datasource-generative_ai-endpoint" description: |- - Provides details about a specific Endpoint in Oracle Cloud Infrastructure Generative Ai service + Provides details about a specific Endpoint in Oracle Cloud Infrastructure Generative AI service --- # Data Source: oci_generative_ai_endpoint -This data source provides details about a specific Endpoint resource in Oracle Cloud Infrastructure Generative Ai service. +This data source provides details about a specific Endpoint resource in Oracle Cloud Infrastructure Generative AI service. Gets information about an endpoint. @@ -32,19 +32,10 @@ The following arguments are supported: The following attributes are exported: -* `compartment_id` - The compartment OCID to create the endpoint in. -* `content_moderation_config` - The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses. It's recommended to use content moderation. - * `is_enabled` - Whether to enable the content moderation feature. -* `dedicated_ai_cluster_id` - The OCID of the dedicated AI cluster on which the model will be deployed to. * `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` -* `description` - An optional description of the endpoint. -* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. -* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `id` - An OCID that uniquely identifies this endpoint resource. -* `lifecycle_details` - A message describing the current state of the endpoint in more detail that can provide actionable information. * `model_id` - The OCID of the model that's used to create this endpoint. * `state` - The current state of the endpoint. -* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` * `time_created` - The date and time that the endpoint was created in the format of an RFC3339 datetime string. * `time_updated` - The date and time that the endpoint was updated in the format of an RFC3339 datetime string. diff --git a/website/docs/d/generative_ai_endpoints.html.markdown b/website/docs/d/generative_ai_endpoints.html.markdown index d2fa8196ada..c8d34e27a91 100644 --- a/website/docs/d/generative_ai_endpoints.html.markdown +++ b/website/docs/d/generative_ai_endpoints.html.markdown @@ -1,14 +1,14 @@ --- -subcategory: "Generative Ai" +subcategory: "Generative AI" layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_generative_ai_endpoints" sidebar_current: "docs-oci-datasource-generative_ai-endpoints" description: |- - Provides the list of Endpoints in Oracle Cloud Infrastructure Generative Ai service + Provides the list of Endpoints in Oracle Cloud Infrastructure Generative AI service --- # Data Source: oci_generative_ai_endpoints -This data source provides the list of Endpoints in Oracle Cloud Infrastructure Generative Ai service. +This data source provides the list of Endpoints in Oracle Cloud Infrastructure Generative AI service. Lists the endpoints of a specific compartment. @@ -46,19 +46,10 @@ The following attributes are exported: The following attributes are exported: -* `compartment_id` - The compartment OCID to create the endpoint in. -* `content_moderation_config` - The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses. It's recommended to use content moderation. - * `is_enabled` - Whether to enable the content moderation feature. -* `dedicated_ai_cluster_id` - The OCID of the dedicated AI cluster on which the model will be deployed to. * `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` -* `description` - An optional description of the endpoint. -* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. -* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `id` - An OCID that uniquely identifies this endpoint resource. -* `lifecycle_details` - A message describing the current state of the endpoint in more detail that can provide actionable information. * `model_id` - The OCID of the model that's used to create this endpoint. * `state` - The current state of the endpoint. -* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` * `time_created` - The date and time that the endpoint was created in the format of an RFC3339 datetime string. * `time_updated` - The date and time that the endpoint was updated in the format of an RFC3339 datetime string. diff --git a/website/docs/d/generative_ai_model.html.markdown b/website/docs/d/generative_ai_model.html.markdown index 3c2e574e6fe..324ca36b913 100644 --- a/website/docs/d/generative_ai_model.html.markdown +++ b/website/docs/d/generative_ai_model.html.markdown @@ -1,14 +1,14 @@ --- -subcategory: "Generative Ai" +subcategory: "Generative AI" layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_generative_ai_model" sidebar_current: "docs-oci-datasource-generative_ai-model" description: |- - Provides details about a specific Model in Oracle Cloud Infrastructure Generative Ai service + Provides details about a specific Model in Oracle Cloud Infrastructure Generative AI service --- # Data Source: oci_generative_ai_model -This data source provides details about a specific Model resource in Oracle Cloud Infrastructure Generative Ai service. +This data source provides details about a specific Model resource in Oracle Cloud Infrastructure Generative AI service. Gets information about a custom model. @@ -32,46 +32,12 @@ The following arguments are supported: The following attributes are exported: -* `base_model_id` - The OCID of the base model that's used for fine-tuning. For pretrained models, the value is null. * `capabilities` - Describes what this model can be used for. * `compartment_id` - The compartment OCID for fine-tuned models. For pretrained models, this value is null. * `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` -* `description` - An optional description of the model. -* `display_name` - A user-friendly name. -* `fine_tune_details` - Details about fine-tuning a custom model. - * `dedicated_ai_cluster_id` - The OCID of the dedicated AI cluster this fine-tuning runs on. - * `training_config` - The fine-tuning method and hyperparameters used for fine-tuning a custom model. - * `early_stopping_patience` - Stop training if the loss metric does not improve beyond 'early_stopping_threshold' for this many times of evaluation. - * `early_stopping_threshold` - How much the loss must improve to prevent early stopping. - * `learning_rate` - The initial learning rate to be used during training - * `log_model_metrics_interval_in_steps` - Determines how frequently to log model metrics. - - Every step is logged for the first 20 steps and then follows this parameter for log frequency. Set to 0 to disable logging the model metrics. - * `num_of_last_layers` - The number of last layers to be fine-tuned. - * `total_training_epochs` - The maximum number of training epochs to run for. - * `training_batch_size` - The batch size used during training. - * `training_config_type` - The fine-tuning method for training a custom model. - * `training_dataset` - The dataset used to fine-tune the model. - - Only one dataset is allowed per custom model, which is split 90-10 for training and validating. You must provide the dataset in a JSON Lines (JSONL) file. Each line in the JSONL file must have the format: `{"prompt": "", "completion": ""}` - * `bucket` - The Object Storage bucket name. - * `dataset_type` - The type of the data asset. - * `namespace` - The Object Storage namespace. - * `object` - The Object Storage object name. -* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `id` - An ID that uniquely identifies a pretrained or fine-tuned model. -* `is_long_term_supported` - Whether a model is supported long-term. Only applicable to base models. -* `lifecycle_details` - A message describing the current state of the model in more detail that can provide actionable information. -* `model_metrics` - Model metrics during the creation of a new model. - * `final_accuracy` - Fine-tuned model accuracy. - * `final_loss` - Fine-tuned model loss. - * `model_metrics_type` - The type of the model metrics. Each type of model can expect a different set of model metrics. * `state` - The lifecycle state of the model. -* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` -* `time_created` - The date and time that the model was created in the format of an RFC3339 datetime string. * `time_deprecated` - Corresponds to the time when the custom model and its associated foundation model will be deprecated. -* `time_updated` - The date and time that the model was updated in the format of an RFC3339 datetime string. * `type` - The model type indicating whether this is a pretrained/base model or a custom/fine-tuned model. -* `vendor` - The provider of the base model. * `version` - The version of the model. diff --git a/website/docs/d/generative_ai_models.html.markdown b/website/docs/d/generative_ai_models.html.markdown index f6f7755daba..d28aeb19096 100644 --- a/website/docs/d/generative_ai_models.html.markdown +++ b/website/docs/d/generative_ai_models.html.markdown @@ -1,14 +1,14 @@ --- -subcategory: "Generative Ai" +subcategory: "Generative AI" layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_generative_ai_models" sidebar_current: "docs-oci-datasource-generative_ai-models" description: |- - Provides the list of Models in Oracle Cloud Infrastructure Generative Ai service + Provides the list of Models in Oracle Cloud Infrastructure Generative AI service --- # Data Source: oci_generative_ai_models -This data source provides the list of Models in Oracle Cloud Infrastructure Generative Ai service. +This data source provides the list of Models in Oracle Cloud Infrastructure Generative AI service. Lists the models in a specific compartment. Includes pretrained base models and fine-tuned custom models. @@ -50,46 +50,12 @@ The following attributes are exported: The following attributes are exported: -* `base_model_id` - The OCID of the base model that's used for fine-tuning. For pretrained models, the value is null. * `capabilities` - Describes what this model can be used for. * `compartment_id` - The compartment OCID for fine-tuned models. For pretrained models, this value is null. * `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` -* `description` - An optional description of the model. -* `display_name` - A user-friendly name. -* `fine_tune_details` - Details about fine-tuning a custom model. - * `dedicated_ai_cluster_id` - The OCID of the dedicated AI cluster this fine-tuning runs on. - * `training_config` - The fine-tuning method and hyperparameters used for fine-tuning a custom model. - * `early_stopping_patience` - Stop training if the loss metric does not improve beyond 'early_stopping_threshold' for this many times of evaluation. - * `early_stopping_threshold` - How much the loss must improve to prevent early stopping. - * `learning_rate` - The initial learning rate to be used during training - * `log_model_metrics_interval_in_steps` - Determines how frequently to log model metrics. - - Every step is logged for the first 20 steps and then follows this parameter for log frequency. Set to 0 to disable logging the model metrics. - * `num_of_last_layers` - The number of last layers to be fine-tuned. - * `total_training_epochs` - The maximum number of training epochs to run for. - * `training_batch_size` - The batch size used during training. - * `training_config_type` - The fine-tuning method for training a custom model. - * `training_dataset` - The dataset used to fine-tune the model. - - Only one dataset is allowed per custom model, which is split 90-10 for training and validating. You must provide the dataset in a JSON Lines (JSONL) file. Each line in the JSONL file must have the format: `{"prompt": "", "completion": ""}` - * `bucket` - The Object Storage bucket name. - * `dataset_type` - The type of the data asset. - * `namespace` - The Object Storage namespace. - * `object` - The Object Storage object name. -* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `id` - An ID that uniquely identifies a pretrained or fine-tuned model. -* `is_long_term_supported` - Whether a model is supported long-term. Only applicable to base models. -* `lifecycle_details` - A message describing the current state of the model in more detail that can provide actionable information. -* `model_metrics` - Model metrics during the creation of a new model. - * `final_accuracy` - Fine-tuned model accuracy. - * `final_loss` - Fine-tuned model loss. - * `model_metrics_type` - The type of the model metrics. Each type of model can expect a different set of model metrics. * `state` - The lifecycle state of the model. -* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` -* `time_created` - The date and time that the model was created in the format of an RFC3339 datetime string. * `time_deprecated` - Corresponds to the time when the custom model and its associated foundation model will be deprecated. -* `time_updated` - The date and time that the model was updated in the format of an RFC3339 datetime string. * `type` - The model type indicating whether this is a pretrained/base model or a custom/fine-tuned model. -* `vendor` - The provider of the base model. * `version` - The version of the model. diff --git a/website/docs/d/resource_scheduler_schedule.html.markdown b/website/docs/d/resource_scheduler_schedule.html.markdown new file mode 100644 index 00000000000..a1e89ef81bf --- /dev/null +++ b/website/docs/d/resource_scheduler_schedule.html.markdown @@ -0,0 +1,65 @@ +--- +subcategory: "Resource Scheduler" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_resource_scheduler_schedule" +sidebar_current: "docs-oci-datasource-resource_scheduler-schedule" +description: |- + Provides details about a specific Schedule in Oracle Cloud Infrastructure Resource Scheduler service +--- + +# Data Source: oci_resource_scheduler_schedule +This data source provides details about a specific Schedule resource in Oracle Cloud Infrastructure Resource Scheduler service. + +This API gets information about a schedule. + +## Example Usage + +```hcl +data "oci_resource_scheduler_schedule" "test_schedule" { + #Required + schedule_id = oci_resource_scheduler_schedule.test_schedule.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `schedule_id` - (Required) This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. + + +## Attributes Reference + +The following attributes are exported: + +* `action` - This is the action that will be executed by the schedule. +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created +* `defined_tags` - These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` +* `description` - This is the description of the schedule. +* `display_name` - This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. +* `freeform_tags` - These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule +* `recurrence_details` - This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field. +* `recurrence_type` - Type of recurrence of a schedule +* `resource_filters` - This is a list of resources filters. The schedule will be applied to resources matching all of them. + * `attribute` - This is the resource attribute on which the threshold is defined. + * `condition` - This is the condition for the filter in comparison to its creation time. + * `should_include_child_compartments` - This sets whether to include child compartments. + * `value` - This is a collection of resource lifecycle state values. + * `namespace` - This is the namespace of the defined tag. + * `tag_key` - This is the key of the defined tag. + * `value` - This is the value of the defined tag. +* `resources` - This is the list of resources to which the scheduled operation is applied. + * `id` - This is the resource OCID. + * `metadata` - This is additional information that helps to identity the resource for the schedule. + + { "id": "" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } } +* `state` - This is the current state of a schedule. +* `system_tags` - These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `time_created` - This is the date and time the schedule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` +* `time_ends` - This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` +* `time_last_run` - This is the date and time the schedule runs last time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` +* `time_next_run` - This is the date and time the schedule run the next time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` +* `time_starts` - This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` +* `time_updated` - This is the date and time the schedule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` + diff --git a/website/docs/d/resource_scheduler_schedules.html.markdown b/website/docs/d/resource_scheduler_schedules.html.markdown new file mode 100644 index 00000000000..49acc006507 --- /dev/null +++ b/website/docs/d/resource_scheduler_schedules.html.markdown @@ -0,0 +1,79 @@ +--- +subcategory: "Resource Scheduler" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_resource_scheduler_schedules" +sidebar_current: "docs-oci-datasource-resource_scheduler-schedules" +description: |- + Provides the list of Schedules in Oracle Cloud Infrastructure Resource Scheduler service +--- + +# Data Source: oci_resource_scheduler_schedules +This data source provides the list of Schedules in Oracle Cloud Infrastructure Resource Scheduler service. + +This API gets a list of schedules + + +## Example Usage + +```hcl +data "oci_resource_scheduler_schedules" "test_schedules" { + + #Optional + compartment_id = var.compartment_id + display_name = var.schedule_display_name + schedule_id = oci_resource_scheduler_schedule.test_schedule.id + state = var.schedule_state +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Optional) This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. +* `display_name` - (Optional) This is a filter to return only resources that match the given display name exactly. +* `schedule_id` - (Optional) This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. +* `state` - (Optional) This is a filter to return only resources that match the given lifecycle state. The state value is case-insensitive. + + +## Attributes Reference + +The following attributes are exported: + +* `schedule_collection` - The list of schedule_collection. + +### Schedule Reference + +The following attributes are exported: + +* `action` - This is the action that will be executed by the schedule. +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created +* `defined_tags` - These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` +* `description` - This is the description of the schedule. +* `display_name` - This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. +* `freeform_tags` - These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule +* `recurrence_details` - This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field. +* `recurrence_type` - Type of recurrence of a schedule +* `resource_filters` - This is a list of resources filters. The schedule will be applied to resources matching all of them. + * `attribute` - This is the resource attribute on which the threshold is defined. + * `condition` - This is the condition for the filter in comparison to its creation time. + * `should_include_child_compartments` - This sets whether to include child compartments. + * `value` - This is a collection of resource lifecycle state values. + * `namespace` - This is the namespace of the defined tag. + * `tag_key` - This is the key of the defined tag. + * `value` - This is the value of the defined tag. +* `resources` - This is the list of resources to which the scheduled operation is applied. + * `id` - This is the resource OCID. + * `metadata` - This is additional information that helps to identity the resource for the schedule. + + { "id": "" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } } +* `state` - This is the current state of a schedule. +* `system_tags` - These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `time_created` - This is the date and time the schedule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` +* `time_ends` - This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` +* `time_last_run` - This is the date and time the schedule runs last time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` +* `time_next_run` - This is the date and time the schedule run the next time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` +* `time_starts` - This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` +* `time_updated` - This is the date and time the schedule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` + diff --git a/website/docs/guides/resource_discovery.html.markdown b/website/docs/guides/resource_discovery.html.markdown index 68bad8928e2..023ddc797f5 100644 --- a/website/docs/guides/resource_discovery.html.markdown +++ b/website/docs/guides/resource_discovery.html.markdown @@ -208,6 +208,7 @@ Make sure the `output_path` is empty before running resource discovery * `queue` - Discovers queue resources within the specified compartment * `recovery` - Discovers recovery resources within the specified compartment * `redis` - Discovers redis resources within the specified compartment + * `resource_scheduler` - Discovers resource_scheduler resources within the specified compartment * `resourcemanager` - Discovers resourcemanager resources within the specified compartment * `sch` - Discovers sch resources within the specified compartment * `service_mesh` - Discovers service_mesh resources within the specified compartment @@ -639,6 +640,8 @@ database * oci\_database\_application\_vip * oci\_database\_oneoff\_patch * oci\_database\_db\_node\_console\_history +* oci\_database\_exascale\_db\_storage\_vault +* oci\_database\_exadb\_vm\_cluster database_migration @@ -1121,6 +1124,10 @@ redis * oci\_redis\_redis\_cluster +resource_scheduler + +* oci\_resource\_scheduler\_schedule + resourcemanager * oci\_resourcemanager\_private\_endpoint diff --git a/website/docs/r/database_db_node.html.markdown b/website/docs/r/database_db_node.html.markdown index 33f8f427f3e..209f9438b3d 100644 --- a/website/docs/r/database_db_node.html.markdown +++ b/website/docs/r/database_db_node.html.markdown @@ -69,6 +69,7 @@ The following attributes are exported: * `time_created` - The date and time that the database node was created. * `time_maintenance_window_end` - End date and time of maintenance window. * `time_maintenance_window_start` - Start date and time of maintenance window. +* `total_cpu_core_count` - The total number of CPU cores reserved on the Db node. * `vnic2id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. **Note:** Applies only to Exadata Cloud Service. diff --git a/website/docs/r/database_exadb_vm_cluster.html.markdown b/website/docs/r/database_exadb_vm_cluster.html.markdown new file mode 100644 index 00000000000..181905cc67c --- /dev/null +++ b/website/docs/r/database_exadb_vm_cluster.html.markdown @@ -0,0 +1,202 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_exadb_vm_cluster" +sidebar_current: "docs-oci-resource-database-exadb_vm_cluster" +description: |- + Provides the Exadb Vm Cluster resource in Oracle Cloud Infrastructure Database service +--- + +# oci_database_exadb_vm_cluster +This resource provides the Exadb Vm Cluster resource in Oracle Cloud Infrastructure Database service. + +Creates an Exadata VM cluster on Exascale Infrastructure + + +## Example Usage + +```hcl +resource "oci_database_exadb_vm_cluster" "test_exadb_vm_cluster" { + #Required + availability_domain = var.exadb_vm_cluster_availability_domain + backup_subnet_id = oci_core_subnet.test_subnet.id + compartment_id = var.compartment_id + display_name = var.exadb_vm_cluster_display_name + exascale_db_storage_vault_id = oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault.id + grid_image_id = oci_core_image.test_image.id + hostname = var.exadb_vm_cluster_hostname + shape = var.exadb_vm_cluster_shape + + node_config { + enabled_ecpu_per_node = var.exadb_vm_cluster_enabled_ecpu_per_node + total_ecpu_per_node = var.exadb_vm_cluster_total_ecpu_per_node + vm_file_system_storage_size_gbs_per_node = var.exadb_vm_cluster_vm_file_system_storage_size_in_gbs_per_node + } + + node_resource { + node_name = "node1" + } + + node_resource { + node_name = "node2" + } + + ssh_public_keys = var.exadb_vm_cluster_ssh_public_keys + subnet_id = oci_core_subnet.test_subnet.id + + #Optional + backup_network_nsg_ids = var.exadb_vm_cluster_backup_network_nsg_ids + cluster_name = var.exadb_vm_cluster_cluster_name + data_collection_options { + #Optional + is_diagnostics_events_enabled = var.exadb_vm_cluster_data_collection_options_is_diagnostics_events_enabled + is_health_monitoring_enabled = var.exadb_vm_cluster_data_collection_options_is_health_monitoring_enabled + is_incident_logs_enabled = var.exadb_vm_cluster_data_collection_options_is_incident_logs_enabled + } + defined_tags = var.exadb_vm_cluster_defined_tags + domain = var.exadb_vm_cluster_domain + freeform_tags = {"Department"= "Finance"} + license_model = var.exadb_vm_cluster_license_model + nsg_ids = var.exadb_vm_cluster_nsg_ids + private_zone_id = oci_dns_zone.test_zone.id + scan_listener_port_tcp = var.exadb_vm_cluster_scan_listener_port_tcp + scan_listener_port_tcp_ssl = var.exadb_vm_cluster_scan_listener_port_tcp_ssl + system_version = var.exadb_vm_cluster_system_version + time_zone = var.exadb_vm_cluster_time_zone +} +``` + +## Argument Reference + +The following arguments are supported: + +* `availability_domain` - (Required) The name of the availability domain in which the Exadata VM cluster on Exascale Infrastructure is located. +* `backup_network_nsg_ids` - (Optional) (Updatable) A list of the [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that the backup network of this DB system belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see [Security Rules](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). Applicable only to Exadata systems. +* `backup_subnet_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. +* `cluster_name` - (Optional) The cluster name for Exadata VM cluster on Exascale Infrastructure. The cluster name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. +* `compartment_id` - (Required) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. +* `data_collection_options` - (Optional) (Updatable) Indicates user preferences for the various diagnostic collection options for the VM cluster/Cloud VM cluster/VMBM DBCS. + * `is_diagnostics_events_enabled` - (Optional) (Updatable) Indicates whether diagnostic collection is enabled for the VM cluster/Cloud VM cluster/VMBM DBCS. Enabling diagnostic collection allows you to receive Events service notifications for guest VM issues. Diagnostic collection also allows Oracle to provide enhanced service and proactive support for your Exadata system. You can enable diagnostic collection during VM cluster/Cloud VM cluster provisioning. You can also disable or enable it at any time using the `UpdateVmCluster` or `updateCloudVmCluster` API. + * `is_health_monitoring_enabled` - (Optional) (Updatable) Indicates whether health monitoring is enabled for the VM cluster / Cloud VM cluster / VMBM DBCS. Enabling health monitoring allows Oracle to collect diagnostic data and share it with its operations and support personnel. You may also receive notifications for some events. Collecting health diagnostics enables Oracle to provide proactive support and enhanced service for your system. Optionally enable health monitoring while provisioning a system. You can also disable or enable health monitoring anytime using the `UpdateVmCluster`, `UpdateCloudVmCluster` or `updateDbsystem` API. + * `is_incident_logs_enabled` - (Optional) (Updatable) Indicates whether incident logs and trace collection are enabled for the VM cluster / Cloud VM cluster / VMBM DBCS. Enabling incident logs collection allows Oracle to receive Events service notifications for guest VM issues, collect incident logs and traces, and use them to diagnose issues and resolve them. Optionally enable incident logs collection while provisioning a system. You can also disable or enable incident logs collection anytime using the `UpdateVmCluster`, `updateCloudVmCluster` or `updateDbsystem` API. +* `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `display_name` - (Required) (Updatable) The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name does not need to be unique. +* `domain` - (Optional) A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. Applies to Exadata Database Service on Exascale Infrastructure only. +* `exascale_db_storage_vault_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. +* `freeform_tags` - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `grid_image_id` - (Required) (Updatable) Grid Setup will be done using this grid image id +* `hostname` - (Required) The hostname for the Exadata VM cluster on Exascale Infrastructure. The hostname must begin with an alphabetic character, and can contain alphanumeric characters and hyphens (-). For Exadata systems, the maximum length of the hostname is 12 characters. + + The maximum length of the combined hostname and domain is 63 characters. + + **Note:** The hostname must be unique within the subnet. If it is not unique, then the Exadata VM cluster on Exascale Infrastructure will fail to provision. +* `license_model` - (Optional) (Updatable) The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. The default is BRING_YOUR_OWN_LICENSE. +* `node_config` - (Required) (Updatable) The configuration of each node in the Exadata VM cluster on Exascale Infrastructure. + * `enabled_ecpu_count_per_node` - (Required) (Updatable) The number of ECPUs to enable for each node. + * `total_ecpu_count_per_node` - (Required) (Updatable) The number of Total ECPUs for each node. + * `vm_file_system_storage_size_gbs_per_node` - (Required) (Updatable) The file system storage in GBs for each node. +* `node_resource` - (Required) Each `node_resource` represents a node in the Exadata VM cluster on Exascale Infrastructure. + * `node_name` - User provided identifier for each node. `node_name` only exists in Terraform config and state and does not exist in server side. It serves as a placeholder for a node before the node is provisioned. `node_name` 1) must be unique among all nodes 2) must not be an empty string 3) must not contain any space. 4) `node_resource` block can be removed to trigger a remove-node operation but `node_name` can not be changed. +* `nsg_ids` - (Optional) (Updatable) The list of [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the network security groups (NSGs) to which this resource belongs. Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see [Security Rules](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). **NsgIds restrictions:** + * A network security group (NSG) is optional for Autonomous Databases with private access. The nsgIds list can be empty. +* `private_zone_id` - (Optional) The private zone ID in which you want DNS records to be created. +* `scan_listener_port_tcp` - (Optional) The TCP Single Client Access Name (SCAN) port. The default port is 1521. +* `scan_listener_port_tcp_ssl` - (Optional) The Secured Communication (TCPS) protocol Single Client Access Name (SCAN) port. The default port is 2484. +* `shape` - (Required) The shape of the Exadata VM cluster on Exascale Infrastructure resource +* `ssh_public_keys` - (Required) (Updatable) The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster on Exascale Infrastructure. +* `subnet_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet associated with the Exadata VM cluster on Exascale Infrastructure. +* `system_version` - (Optional) (Updatable) Operating system version of the image. +* `time_zone` - (Optional) The time zone to use for the Exadata VM cluster on Exascale Infrastructure. For details, see [Time Zones](https://docs.cloud.oracle.com/iaas/Content/Database/References/timezones.htm). + + +** IMPORTANT ** +Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + +## Attributes Reference + +The following attributes are exported: + +* `availability_domain` - The name of the availability domain in which the Exadata VM cluster on Exascale Infrastructure is located. +* `backup_network_nsg_ids` - A list of the [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that the backup network of this DB system belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see [Security Rules](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). Applicable only to Exadata systems. +* `backup_subnet_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup network subnet associated with the Exadata VM cluster on Exascale Infrastructure. +* `cluster_name` - The cluster name for Exadata VM cluster on Exascale Infrastructure. The cluster name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. +* `data_collection_options` - Indicates user preferences for the various diagnostic collection options for the VM cluster/Cloud VM cluster/VMBM DBCS. + * `is_diagnostics_events_enabled` - Indicates whether diagnostic collection is enabled for the VM cluster/Cloud VM cluster/VMBM DBCS. Enabling diagnostic collection allows you to receive Events service notifications for guest VM issues. Diagnostic collection also allows Oracle to provide enhanced service and proactive support for your Exadata system. You can enable diagnostic collection during VM cluster/Cloud VM cluster provisioning. You can also disable or enable it at any time using the `UpdateVmCluster` or `updateCloudVmCluster` API. + * `is_health_monitoring_enabled` - Indicates whether health monitoring is enabled for the VM cluster / Cloud VM cluster / VMBM DBCS. Enabling health monitoring allows Oracle to collect diagnostic data and share it with its operations and support personnel. You may also receive notifications for some events. Collecting health diagnostics enables Oracle to provide proactive support and enhanced service for your system. Optionally enable health monitoring while provisioning a system. You can also disable or enable health monitoring anytime using the `UpdateVmCluster`, `UpdateCloudVmCluster` or `updateDbsystem` API. + * `is_incident_logs_enabled` - Indicates whether incident logs and trace collection are enabled for the VM cluster / Cloud VM cluster / VMBM DBCS. Enabling incident logs collection allows Oracle to receive Events service notifications for guest VM issues, collect incident logs and traces, and use them to diagnose issues and resolve them. Optionally enable incident logs collection while provisioning a system. You can also disable or enable incident logs collection anytime using the `UpdateVmCluster`, `updateCloudVmCluster` or `updateDbsystem` API. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `display_name` - The user-friendly name for the Exadata VM cluster on Exascale Infrastructure. The name does not need to be unique. +* `domain` - A domain name used for the Exadata VM cluster on Exascale Infrastructure. If the Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the domain name for the subnet is used (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. Applies to Exadata Database Service on Exascale Infrastructure only. +* `exascale_db_storage_vault_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `gi_version` - A valid Oracle Grid Infrastructure (GI) software version. +* `grid_image_id` - Grid Setup will be done using this grid image id +* `grid_image_type` - The type of Grid Image +* `hostname` - The hostname for the Exadata VM cluster on Exascale Infrastructure. The hostname must begin with an alphabetic character, and can contain alphanumeric characters and hyphens (-). For Exadata systems, the maximum length of the hostname is 12 characters. + + The maximum length of the combined hostname and domain is 63 characters. + + **Note:** The hostname must be unique within the subnet. If it is not unique, then the Exadata VM cluster on Exascale Infrastructure will fail to provision. +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata VM cluster on Exascale Infrastructure. +* `iorm_config_cache` - The IORM settings of the Exadata DB system. + * `db_plans` - An array of IORM settings for all the database in the Exadata DB system. + * `db_name` - The database name. For the default `DbPlan`, the `dbName` is `default`. + * `flash_cache_limit` - The flash cache limit for this database. This value is internally configured based on the share value assigned to the database. + * `share` - The relative priority of this database. + * `lifecycle_details` - Additional information about the current `lifecycleState`. + * `objective` - The current value for the IORM objective. The default is `AUTO`. + * `state` - The current state of IORM configuration for the Exadata DB system. +* `last_update_history_entry_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the last maintenance update history entry. This value is updated when a maintenance update starts. +* `license_model` - The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. The default is BRING_YOUR_OWN_LICENSE. +* `lifecycle_details` - Additional information about the current lifecycle state. +* `listener_port` - The port number configured for the listener on the Exadata VM cluster on Exascale Infrastructure. +* `node_config` - The configuration of each node in the Exadata VM cluster on Exascale Infrastructure. + * `enabled_ecpu_count_per_node` - The number of ECPUs to enable for each node. + * `memory_size_in_gbs_per_node` - The memory that you want to be allocated in GBs to each node. Memory is calculated based on 11 GB per VM core reserved. + * `total_ecpu_count_per_node` - The number of Total ECPUs for each node. + * `vm_file_system_storage_size_gbs_per_node` - The file system storage in GBs for each node. + * `snapshot_file_system_storage_size_gbs_per_node` - The file system storage in GBs for snapshot for each node. + * `total_file_system_storage_size_gbs_per_node` - Total file system storage in GBs for each node. +* `node_resource` - Each `node_resource` represents a node in the Exadata VM cluster on Exascale Infrastructure. + * `node_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the node. + * `node_hostname` - The host name for the node. + * `node_name` - User provided identifier for each node. `node_name` only exists in Terraform config and state and does not exist in server side. It serves as a placeholder for a node before the node is provisioned. `node_name` 1) must be unique among all nodes 2) must not be an empty string 3) must not contain any space. 4) `node_resource` block can be removed to trigger a remove-node operation but `node_name` can not be changed. + * `state` - The current state of the node. +* `nsg_ids` - The list of [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the network security groups (NSGs) to which this resource belongs. Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see [Security Rules](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). **NsgIds restrictions:** + * A network security group (NSG) is optional for Autonomous Databases with private access. The nsgIds list can be empty. +* `private_zone_id` - The private zone id in which DNS records needs to be created. +* `scan_dns_name` - The FQDN of the DNS record for the SCAN IP addresses that are associated with the Exadata VM cluster on Exascale Infrastructure. +* `scan_dns_record_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DNS record for the SCAN IP addresses that are associated with the Exadata VM cluster on Exascale Infrastructure. +* `scan_ip_ids` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Single Client Access Name (SCAN) IP addresses associated with the Exadata VM cluster on Exascale Infrastructure. SCAN IP addresses are typically used for load balancing and are not assigned to any interface. Oracle Clusterware directs the requests to the appropriate nodes in the cluster. + + **Note:** For a single-node DB system, this list is empty. +* `scan_listener_port_tcp` - The TCP Single Client Access Name (SCAN) port. The default port is 1521. +* `scan_listener_port_tcp_ssl` - The Secured Communication (TCPS) protocol Single Client Access Name (SCAN) port. The default port is 2484. +* `shape` - The shape of the Exadata VM cluster on Exascale Infrastructure resource +* `ssh_public_keys` - The public key portion of one or more key pairs used for SSH access to the Exadata VM cluster on Exascale Infrastructure. +* `state` - The current state of the Exadata VM cluster on Exascale Infrastructure. +* `subnet_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet associated with the Exadata VM cluster on Exascale Infrastructure. +* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `system_version` - Operating system version of the image. +* `time_created` - The date and time that the Exadata VM cluster on Exascale Infrastructure was created. +* `time_zone` - The time zone to use for the Exadata VM cluster on Exascale Infrastructure. For details, see [Time Zones](https://docs.cloud.oracle.com/iaas/Content/Database/References/timezones.htm). +* `vip_ids` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual IP (VIP) addresses associated with the Exadata VM cluster on Exascale Infrastructure. The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the Exadata Cloud Service instance to enable failover. If one node fails, then the VIP is reassigned to another active node in the cluster. +* `zone_id` - The OCID of the zone with which the Exadata VM cluster on Exascale Infrastructure is associated. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://registry.terraform.io/providers/oracle/oci/latest/docs/guides/changing_timeouts) for certain operations: + * `create` - (Defaults to 20 minutes), when creating the Exadb Vm Cluster + * `update` - (Defaults to 20 minutes), when updating the Exadb Vm Cluster + * `delete` - (Defaults to 20 minutes), when destroying the Exadb Vm Cluster + + +## Import + +ExadbVmClusters can be imported using the `id`, e.g. + +``` +$ terraform import oci_database_exadb_vm_cluster.test_exadb_vm_cluster "id" +``` + diff --git a/website/docs/r/database_exascale_db_storage_vault.html.markdown b/website/docs/r/database_exascale_db_storage_vault.html.markdown new file mode 100644 index 00000000000..ba6ceb0d31a --- /dev/null +++ b/website/docs/r/database_exascale_db_storage_vault.html.markdown @@ -0,0 +1,95 @@ +--- +subcategory: "Database" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_database_exascale_db_storage_vault" +sidebar_current: "docs-oci-resource-database-exascale_db_storage_vault" +description: |- + Provides the Exascale Db Storage Vault resource in Oracle Cloud Infrastructure Database service +--- + +# oci_database_exascale_db_storage_vault +This resource provides the Exascale Db Storage Vault resource in Oracle Cloud Infrastructure Database service. + +Creates an Exadata Database Storage Vault + + +## Example Usage + +```hcl +resource "oci_database_exascale_db_storage_vault" "test_exascale_db_storage_vault" { + #Required + availability_domain = var.exascale_db_storage_vault_availability_domain + compartment_id = var.compartment_id + display_name = var.exascale_db_storage_vault_display_name + high_capacity_database_storage { + #Required + total_size_in_gbs = var.exascale_db_storage_vault_high_capacity_database_storage_total_size_in_gbs + } + + #Optional + additional_flash_cache_in_percent = var.exascale_db_storage_vault_additional_flash_cache_in_percent + defined_tags = var.exascale_db_storage_vault_defined_tags + description = var.exascale_db_storage_vault_description + freeform_tags = {"Department"= "Finance"} + time_zone = var.exascale_db_storage_vault_time_zone +} +``` + +## Argument Reference + +The following arguments are supported: + +* `additional_flash_cache_in_percent` - (Optional) (Updatable) The size of additional Flash Cache in percentage of High Capacity database storage. +* `availability_domain` - (Required) The name of the availability domain in which the Exadata Database Storage Vault is located. +* `compartment_id` - (Required) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. +* `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `description` - (Optional) (Updatable) Exadata Database Storage Vault description. +* `display_name` - (Required) (Updatable) The user-friendly name for the Exadata Database Storage Vault. The name does not need to be unique. +* `freeform_tags` - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `high_capacity_database_storage` - (Required) (Updatable) Create exadata Database Storage Details + * `total_size_in_gbs` - (Required) (Updatable) Total Capacity +* `time_zone` - (Optional) The time zone that you want to use for the Exadata Database Storage Vault. For details, see [Time Zones](https://docs.cloud.oracle.com/iaas/Content/Database/References/timezones.htm). + + +** IMPORTANT ** +Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + +## Attributes Reference + +The following attributes are exported: + +* `additional_flash_cache_in_percent` - The size of additional Flash Cache in percentage of High Capacity database storage. +* `availability_domain` - The name of the availability domain in which the Exadata Database Storage Vault is located. +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `description` - Exadata Database Storage Vault description. +* `display_name` - The user-friendly name for the Exadata Database Storage Vault. The name does not need to be unique. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `high_capacity_database_storage` - Exadata Database Storage Details + * `available_size_in_gbs` - Available Capacity + * `total_size_in_gbs` - Total Capacity +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. +* `lifecycle_details` - Additional information about the current lifecycle state. +* `state` - The current state of the Exadata Database Storage Vault. +* `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +* `time_created` - The date and time that the Exadata Database Storage Vault was created. +* `time_zone` - The time zone that you want to use for the Exadata Database Storage Vault. For details, see [Time Zones](https://docs.cloud.oracle.com/iaas/Content/Database/References/timezones.htm). +* `vm_cluster_count` - The number of Exadata VM clusters used the Exadata Database Storage Vault. +* `vm_cluster_ids` - The List of Exadata VM cluster on Exascale Infrastructure [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) **Note:** If Exadata Database Storage Vault is not used for any Exadata VM cluster on Exascale Infrastructure, this list is empty. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://registry.terraform.io/providers/oracle/oci/latest/docs/guides/changing_timeouts) for certain operations: + * `create` - (Defaults to 20 minutes), when creating the Exascale Db Storage Vault + * `update` - (Defaults to 20 minutes), when updating the Exascale Db Storage Vault + * `delete` - (Defaults to 20 minutes), when destroying the Exascale Db Storage Vault + + +## Import + +ExascaleDbStorageVaults can be imported using the `id`, e.g. + +``` +$ terraform import oci_database_exascale_db_storage_vault.test_exascale_db_storage_vault "id" +``` + diff --git a/website/docs/r/database_migration_connection.html.markdown b/website/docs/r/database_migration_connection.html.markdown index e422e2b533d..9277ebe8651 100644 --- a/website/docs/r/database_migration_connection.html.markdown +++ b/website/docs/r/database_migration_connection.html.markdown @@ -4,6 +4,166 @@ layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_database_migration_connection" sidebar_current: "docs-oci-resource-database_migration-connection" description: |- - Provides the Connection resource in Oracle Cloud Infrastructure Database Migration service +Provides the Connection resource in Oracle Cloud Infrastructure Database Migration service --- -### support for this resource has been removed from v6.0.0 \ No newline at end of file + +# oci_database_migration_connection +This resource provides the Connection resource in Oracle Cloud Infrastructure Database Migration service. + +Create a Database Connection resource that contains the details to connect to either a Source or Target Database +in the migration. + +Note: If you wish to use the DMS deprecated API version /20210929 it is necessary to pin the Terraform Provider version to v5.46.0. Newer Terraform provider versions will not support the DMS deprecated API version /20210929 + +## Example Usage + +```hcl +resource "oci_database_migration_connection" "test_connection" { + #Required + compartment_id = var.compartment_id + connection_type = var.connection_connection_type + display_name = var.connection_display_name + key_id = oci_kms_key.test_key.id + password = var.connection_password + technology_type = var.connection_technology_type + username = var.connection_username + vault_id = oci_kms_vault.test_vault.id + + #Optional + additional_attributes { + + #Optional + name = var.connection_additional_attributes_name + value = var.connection_additional_attributes_value + } + connection_string = var.connection_connection_string + database_id = oci_database_database.test_database.id + database_name = oci_database_database.test_database.name + db_system_id = oci_database_db_system.test_db_system.id + defined_tags = {"foo-namespace.bar-key"= "value"} + description = var.connection_description + freeform_tags = var.connection_freeform_tags + host = var.connection_host + nsg_ids = var.connection_nsg_ids + port = var.connection_port + replication_password = var.connection_replication_password + replication_username = var.connection_replication_username + security_protocol = var.connection_security_protocol + ssh_host = var.connection_ssh_host + ssh_key = var.connection_ssh_key + ssh_sudo_location = var.connection_ssh_sudo_location + ssh_user = var.connection_ssh_user + ssl_ca = var.connection_ssl_ca + ssl_cert = var.connection_ssl_cert + ssl_crl = var.connection_ssl_crl + ssl_key = var.connection_ssl_key + ssl_mode = var.connection_ssl_mode + subnet_id = oci_core_subnet.test_subnet.id + wallet = var.connection_wallet +} +``` + +## Argument Reference + +The following arguments are supported: + +* `additional_attributes` - (Applicable when connection_type=MYSQL) (Updatable) An array of name-value pair attribute entries. + * `name` - (Required when connection_type=MYSQL) (Updatable) The name of the property entry. + * `value` - (Required when connection_type=MYSQL) (Updatable) The value of the property entry. +* `compartment_id` - (Required) (Updatable) The OCID of the compartment. +* `connection_string` - (Applicable when connection_type=ORACLE) (Updatable) Connect descriptor or Easy Connect Naming method used to connect to a database. +* `connection_type` - (Required) (Updatable) Defines the type of connection. For example, ORACLE. +* `database_id` - (Applicable when connection_type=ORACLE) (Updatable) The OCID of the database being referenced. +* `database_name` - (Required when connection_type=MYSQL) (Updatable) The name of the database being referenced. +* `db_system_id` - (Applicable when connection_type=MYSQL) (Updatable) The OCID of the database system being referenced. +* `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - (Optional) (Updatable) A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `display_name` - (Required) (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `freeform_tags` - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} +* `host` - (Applicable when connection_type=MYSQL) (Updatable) The IP Address of the host. +* `key_id` - (Required) (Updatable) The OCID of the key used in cryptographic operations. +* `nsg_ids` - (Optional) (Updatable) An array of Network Security Group OCIDs used to define network access for Connections. +* `password` - (Required) (Updatable) The password (credential) used when creating or updating this resource. +* `port` - (Applicable when connection_type=MYSQL) (Updatable) The port to be used for the connection. +* `replication_password` - (Optional) (Updatable) The password (credential) used when creating or updating this resource. +* `replication_username` - (Optional) (Updatable) The username (credential) used when creating or updating this resource. +* `security_protocol` - (Required when connection_type=MYSQL) (Updatable) Security Type for MySQL. +* `ssh_host` - (Applicable when connection_type=ORACLE) (Updatable) Name of the host the SSH key is valid for. +* `ssh_key` - (Applicable when connection_type=ORACLE) (Updatable) Private SSH key string. +* `ssh_sudo_location` - (Applicable when connection_type=ORACLE) (Updatable) Sudo location +* `ssh_user` - (Applicable when connection_type=ORACLE) (Updatable) The username (credential) used when creating or updating this resource. +* `ssl_ca` - (Applicable when connection_type=MYSQL) (Updatable) Database Certificate - The base64 encoded content of mysql.pem file containing the server public key (for 1 and 2-way SSL). +* `ssl_cert` - (Applicable when connection_type=MYSQL) (Updatable) Client Certificate - The base64 encoded content of client-cert.pem file containing the client public key (for 2-way SSL). +* `ssl_crl` - (Applicable when connection_type=MYSQL) (Updatable) Certificates revoked by certificate authorities (CA). Server certificate must not be on this list (for 1 and 2-way SSL). Note: This is an optional and that too only applicable if TLS/MTLS option is selected. +* `ssl_key` - (Applicable when connection_type=MYSQL) (Updatable) Client Key - The client-key.pem containing the client private key (for 2-way SSL). +* `ssl_mode` - (Applicable when connection_type=MYSQL) (Updatable) SSL modes for MySQL. +* `subnet_id` - (Optional) (Updatable) Oracle Cloud Infrastructure resource ID. +* `technology_type` - (Required) The type of MySQL source or target connection. Example: OCI_MYSQL represents Oracle Cloud Infrastructure MySQL HeatWave Database Service +* `username` - (Required) (Updatable) The username (credential) used when creating or updating this resource. +* `vault_id` - (Required) (Updatable) Oracle Cloud Infrastructure resource ID. +* `wallet` - (Applicable when connection_type=ORACLE) (Updatable) The wallet contents used to make connections to a database. This attribute is expected to be base64 encoded. + + +** IMPORTANT ** +Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + +## Attributes Reference + +The following attributes are exported: + +* `additional_attributes` - An array of name-value pair attribute entries. + * `name` - The name of the property entry. + * `value` - The value of the property entry. +* `compartment_id` - The OCID of the compartment. +* `connection_string` - Connect descriptor or Easy Connect Naming method used to connect to a database. +* `connection_type` - Defines the type of connection. For example, ORACLE. +* `database_id` - The OCID of the database being referenced. +* `database_name` - The name of the database being referenced. +* `db_system_id` - The OCID of the database system being referenced. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} +* `host` - The IP Address of the host. +* `id` - The OCID of the connection being referenced. +* `ingress_ips` - List of ingress IP addresses from where to connect to this connection's privateIp. + * `ingress_ip` - A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet. +* `key_id` - The OCID of the key used in cryptographic operations. +* `lifecycle_details` - The message describing the current state of the connection's lifecycle in detail. For example, can be used to provide actionable information for a connection in a Failed state. +* `nsg_ids` - An array of Network Security Group OCIDs used to define network access for Connections. +* `password` - The password (credential) used when creating or updating this resource. +* `port` - The port to be used for the connection. +* `private_endpoint_id` - The OCID of the resource being referenced. +* `replication_password` - The password (credential) used when creating or updating this resource. +* `replication_username` - The username (credential) used when creating or updating this resource. +* `secret_id` - The OCID of the resource being referenced. +* `security_protocol` - Security Protocol to be used for the connection. +* `ssh_host` - Name of the host the SSH key is valid for. +* `ssh_key` - Private SSH key string. +* `ssh_sudo_location` - Sudo location +* `ssh_user` - The username (credential) used when creating or updating this resource. +* `ssl_mode` - SSL mode to be used for the connection. +* `state` - The Connection's current lifecycle state. +* `subnet_id` - Oracle Cloud Infrastructure resource ID. +* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `technology_type` - The type of MySQL source or target connection. Example: OCI_MYSQL represents Oracle Cloud Infrastructure MySQL HeatWave Database Service +* `time_created` - The time when this resource was created. An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `time_updated` - The time when this resource was updated. An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `username` - The username (credential) used when creating or updating this resource. +* `vault_id` - Oracle Cloud Infrastructure resource ID. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://registry.terraform.io/providers/oracle/oci/latest/docs/guides/changing_timeouts) for certain operations: +* `create` - (Defaults to 20 minutes), when creating the Connection +* `update` - (Defaults to 20 minutes), when updating the Connection +* `delete` - (Defaults to 20 minutes), when destroying the Connection + + +## Import + +Connections can be imported using the `id`, e.g. + +``` +$ terraform import oci_database_migration_connection.test_connection "id" +``` diff --git a/website/docs/r/database_migration_job.html.markdown b/website/docs/r/database_migration_job.html.markdown index ddefaa34942..0b51cc3f70e 100644 --- a/website/docs/r/database_migration_job.html.markdown +++ b/website/docs/r/database_migration_job.html.markdown @@ -4,7 +4,7 @@ layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_database_migration_job" sidebar_current: "docs-oci-resource-database_migration-job" description: |- - Provides the Job resource in Oracle Cloud Infrastructure Database Migration service +Provides the Job resource in Oracle Cloud Infrastructure Database Migration service --- # oci_database_migration_job @@ -12,6 +12,8 @@ This resource provides the Job resource in Oracle Cloud Infrastructure Database Update Migration Job resource details. +Note: If you wish to use the DMS deprecated API version /20210929 it is necessary to pin the Terraform Provider version to v5.46.0. Newer Terraform provider versions will not support the DMS deprecated API version /20210929 + ## Example Usage ```hcl @@ -22,7 +24,7 @@ resource "oci_database_migration_job" "test_job" { #Optional defined_tags = {"foo-namespace.bar-key"= "value"} display_name = var.job_display_name - freeform_tags = {"bar-key"= "value"} + freeform_tags = var.job_freeform_tags } ``` @@ -30,10 +32,10 @@ resource "oci_database_migration_job" "test_job" { The following arguments are supported: -* `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` -* `display_name` - (Optional) (Updatable) Name of the job. -* `freeform_tags` - (Optional) (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` -* `job_id` - (Required) The OCID of the job +* `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `display_name` - (Optional) (Updatable) Name of the job. +* `freeform_tags` - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} +* `job_id` - (Required) The OCID of the job ** IMPORTANT ** @@ -43,46 +45,46 @@ Any change to a property that does not support update will force the destruction The following attributes are exported: -* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` -* `display_name` - Name of the job. -* `freeform_tags` - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` -* `id` - The OCID of the Migration Job. -* `lifecycle_details` - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. -* `migration_id` - The OCID of the Migration that this job belongs to. -* `progress` - Progress details of a Migration Job. - * `current_phase` - Current phase of the job. - * `current_status` - Current status of the job. - * `phases` - List of phase status for the job. - * `action` - The text describing the action required to fix the issue - * `duration_in_ms` - Duration of the phase in milliseconds - * `extract` - Summary of phase status results. - * `message` - Message in entry. - * `type` - Type of extract. - * `is_advisor_report_available` - True if a Pre-Migration Advisor report is available for this phase. False or null if no report is available. - * `issue` - The text describing the root cause of the reported issue - * `log_location` - Details to access log file in the specified Object Storage bucket, if any. - * `bucket` - Name of the bucket containing the log file. - * `namespace` - Object Storage namespace. - * `object` - Log object name. - * `name` - Phase name - * `progress` - Percent progress of job phase. - * `status` - Phase status -* `state` - The current state of the migration job. -* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` -* `time_created` - The time the Migration Job was created. An RFC3339 formatted datetime string -* `time_updated` - The time the Migration Job was last updated. An RFC3339 formatted datetime string -* `type` - The job type. -* `unsupported_objects` - Database objects not supported. - * `object` - Name of the object (regular expression is allowed) - * `owner` - Owner of the object (regular expression is allowed) - * `type` - Type of unsupported object - +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `display_name` - Name of the job. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} +* `id` - The OCID of the Migration Job. +* `lifecycle_details` - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. +* `migration_id` - The OCID of the Migration that this job belongs to. +* `progress` - Progress details of a Migration Job. + * `current_phase` - Current phase of the job. + * `current_status` - Current status of the job. + * `phases` - List of phase status for the job. + * `action` - The text describing the action required to fix the issue + * `duration_in_ms` - Duration of the phase in milliseconds + * `extract` - Summary of phase status results. + * `message` - Message in entry. + * `type` - Type of extract. + * `is_advisor_report_available` - True if a Pre-Migration Advisor report is available for this phase. False or null if no report is available. + * `issue` - The text describing the root cause of the reported issue + * `log_location` - Details to access log file in the specified Object Storage bucket, if any. + * `bucket` - Name of the bucket containing the log file. + * `namespace` - Object Storage namespace. + * `object` - Log object name. + * `name` - Phase name + * `progress` - Percent progress of job phase. + * `status` - Phase status +* `state` - The current state of the migration job. +* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `time_created` - The time the Migration Job was created. An RFC3339 formatted datetime string +* `time_updated` - The time the Migration Job was last updated. An RFC3339 formatted datetime string +* `type` - The job type. +* `unsupported_objects` - Database objects not supported. + * `object` - Name of the object (regular expression is allowed) + * `owner` - Owner of the object (regular expression is allowed) + * `type` - Type of unsupported object + ## Timeouts The `timeouts` block allows you to specify [timeouts](https://registry.terraform.io/providers/oracle/oci/latest/docs/guides/changing_timeouts) for certain operations: - * `create` - (Defaults to 20 minutes), when creating the Job - * `update` - (Defaults to 20 minutes), when updating the Job - * `delete` - (Defaults to 20 minutes), when destroying the Job +* `create` - (Defaults to 20 minutes), when creating the Job +* `update` - (Defaults to 20 minutes), when updating the Job +* `delete` - (Defaults to 20 minutes), when destroying the Job ## Import @@ -92,4 +94,3 @@ Jobs can be imported using the `id`, e.g. ``` $ terraform import oci_database_migration_job.test_job "id" ``` - diff --git a/website/docs/r/database_migration_migration.html.markdown b/website/docs/r/database_migration_migration.html.markdown index efa2842d538..571cfaec32e 100644 --- a/website/docs/r/database_migration_migration.html.markdown +++ b/website/docs/r/database_migration_migration.html.markdown @@ -4,6 +4,411 @@ layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_database_migration_migration" sidebar_current: "docs-oci-resource-database_migration-migration" description: |- - Provides the Migration resource in Oracle Cloud Infrastructure Database Migration service +Provides the Migration resource in Oracle Cloud Infrastructure Database Migration service --- -### support for this resource has been removed from v6.0.0 \ No newline at end of file + +# oci_database_migration_migration +This resource provides the Migration resource in Oracle Cloud Infrastructure Database Migration service. + +Create a Migration resource that contains all the details to perform the +database migration operation, such as source and destination database +details, credentials, etc. + +Note: If you wish to use the DMS deprecated API version /20210929 it is necessary to pin the Terraform Provider version to v5.46.0. Newer Terraform provider versions will not support the DMS deprecated API version /20210929 + + +## Example Usage + +```hcl +resource "oci_database_migration_migration" "test_migration" { + #Required + compartment_id = var.compartment_id + database_combination = var.migration_database_combination + source_database_connection_id = oci_database_migration_connection.test_connection.id + target_database_connection_id = oci_database_migration_connection.test_connection.id + type = var.migration_type + + #Optional + advisor_settings { + + #Optional + is_ignore_errors = var.migration_advisor_settings_is_ignore_errors + is_skip_advisor = var.migration_advisor_settings_is_skip_advisor + } + bulk_include_exclude_data = var.migration_bulk_include_exclude_data + data_transfer_medium_details { + #Required + type = var.migration_data_transfer_medium_details_type + + #Optional + access_key_id = oci_kms_key.test_key.id + name = var.migration_data_transfer_medium_details_name + object_storage_bucket { + + #Optional + bucket = var.migration_data_transfer_medium_details_object_storage_bucket_bucket + namespace = var.migration_data_transfer_medium_details_object_storage_bucket_namespace + } + region = var.migration_data_transfer_medium_details_region + secret_access_key = var.migration_data_transfer_medium_details_secret_access_key + shared_storage_mount_target_id = oci_file_storage_mount_target.test_mount_target.id + source { + #Required + kind = var.migration_data_transfer_medium_details_source_kind + + #Optional + oci_home = var.migration_data_transfer_medium_details_source_oci_home + wallet_location = var.migration_data_transfer_medium_details_source_wallet_location + } + target { + #Required + kind = var.migration_data_transfer_medium_details_target_kind + + #Optional + oci_home = var.migration_data_transfer_medium_details_target_oci_home + wallet_location = var.migration_data_transfer_medium_details_target_wallet_location + } + } + defined_tags = {"foo-namespace.bar-key"= "value"} + description = var.migration_description + display_name = var.migration_display_name + exclude_objects { + #Required + object = var.migration_exclude_objects_object + + #Optional + is_omit_excluded_table_from_replication = var.migration_exclude_objects_is_omit_excluded_table_from_replication + owner = var.migration_exclude_objects_owner + schema = var.migration_exclude_objects_schema + type = var.migration_exclude_objects_type + } + freeform_tags = var.migration_freeform_tags + ggs_details { + + #Optional + acceptable_lag = var.migration_ggs_details_acceptable_lag + extract { + + #Optional + long_trans_duration = var.migration_ggs_details_extract_long_trans_duration + performance_profile = var.migration_ggs_details_extract_performance_profile + } + replicat { + + #Optional + performance_profile = var.migration_ggs_details_replicat_performance_profile + } + } + hub_details { + #Required + key_id = oci_kms_key.test_key.id + rest_admin_credentials { + #Required + password = var.migration_hub_details_rest_admin_credentials_password + username = var.migration_hub_details_rest_admin_credentials_username + } + url = var.migration_hub_details_url + vault_id = oci_kms_vault.test_vault.id + + #Optional + acceptable_lag = var.migration_hub_details_acceptable_lag + compute_id = oci_database_migration_compute.test_compute.id + extract { + + #Optional + long_trans_duration = var.migration_hub_details_extract_long_trans_duration + performance_profile = var.migration_hub_details_extract_performance_profile + } + replicat { + + #Optional + performance_profile = var.migration_hub_details_replicat_performance_profile + } + } + include_objects { + #Required + object = var.migration_include_objects_object + + #Optional + is_omit_excluded_table_from_replication = var.migration_include_objects_is_omit_excluded_table_from_replication + owner = var.migration_include_objects_owner + schema = var.migration_include_objects_schema + type = var.migration_include_objects_type + } + initial_load_settings { + #Required + job_mode = var.migration_initial_load_settings_job_mode + + #Optional + compatibility = var.migration_initial_load_settings_compatibility + data_pump_parameters { + + #Optional + estimate = var.migration_initial_load_settings_data_pump_parameters_estimate + exclude_parameters = var.migration_initial_load_settings_data_pump_parameters_exclude_parameters + export_parallelism_degree = var.migration_initial_load_settings_data_pump_parameters_export_parallelism_degree + import_parallelism_degree = var.migration_initial_load_settings_data_pump_parameters_import_parallelism_degree + is_cluster = var.migration_initial_load_settings_data_pump_parameters_is_cluster + table_exists_action = var.migration_initial_load_settings_data_pump_parameters_table_exists_action + } + export_directory_object { + + #Optional + name = var.migration_initial_load_settings_export_directory_object_name + path = var.migration_initial_load_settings_export_directory_object_path + } + handle_grant_errors = var.migration_initial_load_settings_handle_grant_errors + import_directory_object { + + #Optional + name = var.migration_initial_load_settings_import_directory_object_name + path = var.migration_initial_load_settings_import_directory_object_path + } + is_consistent = var.migration_initial_load_settings_is_consistent + is_ignore_existing_objects = var.migration_initial_load_settings_is_ignore_existing_objects + is_tz_utc = var.migration_initial_load_settings_is_tz_utc + metadata_remaps { + + #Optional + new_value = var.migration_initial_load_settings_metadata_remaps_new_value + old_value = var.migration_initial_load_settings_metadata_remaps_old_value + type = var.migration_initial_load_settings_metadata_remaps_type + } + primary_key_compatibility = var.migration_initial_load_settings_primary_key_compatibility + tablespace_details { + #Required + target_type = var.migration_initial_load_settings_tablespace_details_target_type + + #Optional + block_size_in_kbs = var.migration_initial_load_settings_tablespace_details_block_size_in_kbs + extend_size_in_mbs = var.migration_initial_load_settings_tablespace_details_extend_size_in_mbs + is_auto_create = var.migration_initial_load_settings_tablespace_details_is_auto_create + is_big_file = var.migration_initial_load_settings_tablespace_details_is_big_file + remap_target = var.migration_initial_load_settings_tablespace_details_remap_target + } + } + source_container_database_connection_id = oci_database_migration_connection.test_connection.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `advisor_settings` - (Optional) (Updatable) Optional Pre-Migration advisor settings. + * `is_ignore_errors` - (Optional) (Updatable) True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is false. + * `is_skip_advisor` - (Optional) (Updatable) True to skip the Pre-Migration Advisor execution. Default is false. +* `bulk_include_exclude_data` - (Optional) Specifies the database objects to be excluded from the migration in bulk. The definition accepts input in a CSV format, newline separated for each entry. More details can be found in the documentation. +* `compartment_id` - (Required) (Updatable) The OCID of the resource being referenced. +* `data_transfer_medium_details` - (Optional) (Updatable) Optional additional properties for data transfer. + * `access_key_id` - (Applicable when type=AWS_S3) (Updatable) AWS access key credentials identifier Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * `name` - (Applicable when type=AWS_S3 | DBLINK) (Updatable) Name of database link from Oracle Cloud Infrastructure database to on-premise database. ODMS will create link, if the link does not already exist. + * `object_storage_bucket` - (Optional) (Updatable) In lieu of a network database link, Oracle Cloud Infrastructure Object Storage bucket will be used to store Data Pump dump files for the migration. Additionally, it can be specified alongside a database link data transfer medium. + * `bucket` - (Required when type=AWS_S3 | DBLINK | NFS | OBJECT_STORAGE) (Updatable) Bucket name. + * `namespace` - (Required when type=AWS_S3 | DBLINK | NFS | OBJECT_STORAGE) (Updatable) Namespace name of the object store bucket. + * `region` - (Applicable when type=AWS_S3) (Updatable) AWS region code where the S3 bucket is located. Region code should match the documented available regions: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions + * `secret_access_key` - (Applicable when type=AWS_S3) (Updatable) AWS secret access key credentials Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * `shared_storage_mount_target_id` - (Applicable when type=NFS) (Updatable) OCID of the shared storage mount target + * `source` - (Applicable when type=NFS | OBJECT_STORAGE) (Updatable) Optional additional properties for dump transfer in source or target host. Default kind is CURL. + * `kind` - (Required) (Updatable) Type of dump transfer to use during migration in source or target host. Default kind is CURL + * `oci_home` - (Applicable when kind=OCI_CLI) (Updatable) Path to the Oracle Cloud Infrastructure CLI installation in the node. + * `wallet_location` - (Optional) (Updatable) Directory path to Oracle Cloud Infrastructure SSL wallet location on Db server node. + * `target` - (Applicable when type=NFS | OBJECT_STORAGE) (Updatable) Optional additional properties for dump transfer in source or target host. Default kind is CURL. + * `kind` - (Required) (Updatable) Type of dump transfer to use during migration in source or target host. Default kind is CURL + * `oci_home` - (Applicable when kind=OCI_CLI) (Updatable) Path to the Oracle Cloud Infrastructure CLI installation in the node. + * `wallet_location` - (Optional) (Updatable) Directory path to Oracle Cloud Infrastructure SSL wallet location on Db server node. + * `type` - (Required) (Updatable) Type of the data transfer medium to use. +* `database_combination` - (Required) (Updatable) The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases. +* `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - (Optional) (Updatable) A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `display_name` - (Optional) (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `exclude_objects` - (Optional) Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * `is_omit_excluded_table_from_replication` - (Applicable when database_combination=ORACLE) Whether an excluded table should be omitted from replication. Only valid for database objects that have are of type TABLE and object status EXCLUDE. + * `object` - (Required) Name of the object (regular expression is allowed) + * `owner` - (Required when database_combination=ORACLE) Owner of the object (regular expression is allowed) + * `schema` - (Required when database_combination=MYSQL) Schema of the object (regular expression is allowed) + * `type` - (Optional) Type of object to exclude. If not specified, matching owners and object names of type TABLE would be excluded. +* `freeform_tags` - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} +* `ggs_details` - (Optional) (Updatable) Optional settings for Oracle GoldenGate processes + * `acceptable_lag` - (Optional) (Updatable) ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. + * `extract` - (Applicable when database_combination=ORACLE) (Updatable) Parameters for GoldenGate Extract processes. + * `long_trans_duration` - (Applicable when database_combination=ORACLE) (Updatable) Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running. If not specified, Extract will not generate a warning on long-running transactions. + * `performance_profile` - (Applicable when database_combination=ORACLE) (Updatable) Extract performance. + * `replicat` - (Optional) (Updatable) Parameters for GoldenGate Replicat processes. + * `performance_profile` - (Optional) (Updatable) Replicat performance. +* `hub_details` - (Optional) (Updatable) Details about Oracle GoldenGate Microservices. + * `acceptable_lag` - (Optional) (Updatable) ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. + * `compute_id` - (Optional) (Updatable) The OCID of the resource being referenced. + * `extract` - (Optional) (Updatable) Parameters for GoldenGate Extract processes. + * `long_trans_duration` - (Optional) (Updatable) Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running. If not specified, Extract will not generate a warning on long-running transactions. + * `performance_profile` - (Optional) (Updatable) Extract performance. + * `key_id` - (Required) (Updatable) The OCID of the resource being referenced. + * `replicat` - (Optional) (Updatable) Parameters for GoldenGate Replicat processes. + * `performance_profile` - (Optional) (Updatable) Replicat performance. + * `rest_admin_credentials` - (Required) (Updatable) Database Administrator Credentials details. + * `password` - (Required) (Updatable) Administrator password + * `username` - (Required) (Updatable) Administrator username + * `url` - (Required) (Updatable) Endpoint URL. + * `vault_id` - (Required) (Updatable) The OCID of the resource being referenced. +* `include_objects` - (Optional) Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * `is_omit_excluded_table_from_replication` - (Applicable when database_combination=ORACLE) Whether an excluded table should be omitted from replication. Only valid for database objects that have are of type TABLE and object status EXCLUDE. + * `object` - (Required) Name of the object (regular expression is allowed) + * `owner` - (Required when database_combination=ORACLE) Owner of the object (regular expression is allowed) + * `schema` - (Required when database_combination=MYSQL) Schema of the object (regular expression is allowed) + * `type` - (Optional) Type of object to exclude. If not specified, matching owners and object names of type TABLE would be excluded. +* `initial_load_settings` - (Optional) (Updatable) Optional settings for Data Pump Export and Import jobs + * `compatibility` - (Applicable when database_combination=MYSQL) (Updatable) Apply the specified requirements for compatibility with MySQL Database Service for all tables in the dump output, altering the dump files as necessary. + * `data_pump_parameters` - (Applicable when database_combination=ORACLE) (Updatable) Optional parameters for Data Pump Export and Import. + * `estimate` - (Applicable when database_combination=ORACLE) (Updatable) Estimate size of dumps that will be generated. + * `exclude_parameters` - (Applicable when database_combination=ORACLE) (Updatable) Exclude paratemers for Export and Import. + * `export_parallelism_degree` - (Applicable when database_combination=ORACLE) (Updatable) Maximum number of worker processes that can be used for a Data Pump Export job. + * `import_parallelism_degree` - (Applicable when database_combination=ORACLE) (Updatable) Maximum number of worker processes that can be used for a Data Pump Import job. For an Autonomous Database, ODMS will automatically query its CPU core count and set this property. + * `is_cluster` - (Applicable when database_combination=ORACLE) (Updatable) Set to false to force Data Pump worker process to run on one instance. + * `table_exists_action` - (Applicable when database_combination=ORACLE) (Updatable) IMPORT: Specifies the action to be performed when data is loaded into a preexisting table. + * `export_directory_object` - (Applicable when database_combination=ORACLE) (Updatable) Directory object details, used to define either import or export directory objects in Data Pump Settings. Import directory is required for Non-Autonomous target connections. If specified for an autonomous target, it will show an error. Export directory will error if there are database link details specified. + * `name` - (Required when database_combination=ORACLE) (Updatable) Name of directory object in database + * `path` - (Applicable when database_combination=ORACLE) (Updatable) Absolute path of directory on database server + * `handle_grant_errors` - (Applicable when database_combination=MYSQL) (Updatable) The action taken in the event of errors related to GRANT or REVOKE errors. + * `import_directory_object` - (Applicable when database_combination=ORACLE) (Updatable) Directory object details, used to define either import or export directory objects in Data Pump Settings. Import directory is required for Non-Autonomous target connections. If specified for an autonomous target, it will show an error. Export directory will error if there are database link details specified. + * `name` - (Required when database_combination=ORACLE) (Updatable) Name of directory object in database + * `path` - (Applicable when database_combination=ORACLE) (Updatable) Absolute path of directory on database server + * `is_consistent` - (Applicable when database_combination=MYSQL) (Updatable) Enable (true) or disable (false) consistent data dumps by locking the instance for backup during the dump. + * `is_ignore_existing_objects` - (Applicable when database_combination=MYSQL) (Updatable) Import the dump even if it contains objects that already exist in the target schema in the MySQL instance. + * `is_tz_utc` - (Applicable when database_combination=MYSQL) (Updatable) Include a statement at the start of the dump to set the time zone to UTC. + * `job_mode` - (Required) (Updatable) Oracle Job Mode + * `metadata_remaps` - (Applicable when database_combination=ORACLE) (Updatable) Defines remapping to be applied to objects as they are processed. + * `new_value` - (Required when database_combination=ORACLE) (Updatable) Specifies the new value that oldValue should be translated into. + * `old_value` - (Required when database_combination=ORACLE) (Updatable) Specifies the value which needs to be reset. + * `type` - (Required when database_combination=ORACLE) (Updatable) Type of remap. Refer to [METADATA_REMAP Procedure ](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D) + * `primary_key_compatibility` - (Applicable when database_combination=MYSQL) (Updatable) Primary key compatibility option + * `tablespace_details` - (Applicable when database_combination=ORACLE) (Updatable) Migration tablespace settings. + * `block_size_in_kbs` - (Applicable when target_type=ADB_D_AUTOCREATE | NON_ADB_AUTOCREATE) (Updatable) Size of Oracle database blocks in KB. + * `extend_size_in_mbs` - (Applicable when target_type=ADB_D_AUTOCREATE | NON_ADB_AUTOCREATE) (Updatable) Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set to true. + * `is_auto_create` - (Applicable when target_type=ADB_D_AUTOCREATE | NON_ADB_AUTOCREATE) (Updatable) Set this property to true to auto-create tablespaces in the target Database. Note: This is not applicable for Autonomous Database Serverless databases. + * `is_big_file` - (Applicable when target_type=ADB_D_AUTOCREATE | NON_ADB_AUTOCREATE) (Updatable) Set this property to true to enable tablespace of the type big file. + * `remap_target` - (Applicable when target_type=ADB_D_REMAP | ADB_S_REMAP | NON_ADB_REMAP) (Updatable) Name of the tablespace on the target database to which the source database tablespace is to be remapped. + * `target_type` - (Required) (Updatable) Type of Database Base Migration Target. +* `source_container_database_connection_id` - (Applicable when database_combination=ORACLE) (Updatable) The OCID of the resource being referenced. +* `source_database_connection_id` - (Required) (Updatable) The OCID of the resource being referenced. +* `target_database_connection_id` - (Required) (Updatable) The OCID of the resource being referenced. +* `type` - (Required) (Updatable) The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a migration. This method uses Oracle GoldenGate for replication. + + +** IMPORTANT ** +Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + +## Attributes Reference + +The following attributes are exported: + +* `advisor_settings` - Details about Oracle Advisor Settings. + * `is_ignore_errors` - True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is false. + * `is_skip_advisor` - True to skip the Pre-Migration Advisor execution. Default is false. +* `compartment_id` - The OCID of the resource being referenced. +* `data_transfer_medium_details` - Optional additional properties for data transfer. + * `access_key_id` - AWS access key credentials identifier Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * `name` - Name of database link from Oracle Cloud Infrastructure database to on-premise database. ODMS will create link, if the link does not already exist. + * `object_storage_bucket` - In lieu of a network database link, Oracle Cloud Infrastructure Object Storage bucket will be used to store Data Pump dump files for the migration. Additionally, it can be specified alongside a database link data transfer medium. + * `bucket` - Bucket name. + * `namespace` - Namespace name of the object store bucket. + * `region` - AWS region code where the S3 bucket is located. Region code should match the documented available regions: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions + * `secret_access_key` - AWS secret access key credentials Details: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys + * `shared_storage_mount_target_id` - OCID of the shared storage mount target + * `source` - Optional additional properties for dump transfer in source or target host. Default kind is CURL. + * `kind` - Type of dump transfer to use during migration in source or target host. Default kind is CURL + * `oci_home` - Path to the Oracle Cloud Infrastructure CLI installation in the node. + * `wallet_location` - Directory path to Oracle Cloud Infrastructure SSL wallet location on Db server node. + * `target` - Optional additional properties for dump transfer in source or target host. Default kind is CURL. + * `kind` - Type of dump transfer to use during migration in source or target host. Default kind is CURL + * `oci_home` - Path to the Oracle Cloud Infrastructure CLI installation in the node. + * `wallet_location` - Directory path to Oracle Cloud Infrastructure SSL wallet location on Db server node. + * `type` - Type of the data transfer medium to use. +* `database_combination` - The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `executing_job_id` - The OCID of the resource being referenced. +* `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} +* `ggs_details` - Optional settings for Oracle GoldenGate processes + * `acceptable_lag` - ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. + * `extract` - Parameters for Extract processes. + * `long_trans_duration` - Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running. If not specified, Extract will not generate a warning on long-running transactions. + * `performance_profile` - Extract performance. + * `ggs_deployment` - Details about Oracle GoldenGate GGS Deployment. + * `deployment_id` - The OCID of the resource being referenced. + * `ggs_admin_credentials_secret_id` - The OCID of the resource being referenced. + * `replicat` - Parameters for Replicat processes. + * `performance_profile` - Replicat performance. +* `hub_details` - Details about Oracle GoldenGate Microservices. + * `acceptable_lag` - ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds. + * `compute_id` - The OCID of the resource being referenced. + * `extract` - Parameters for Extract processes. + * `long_trans_duration` - Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running. If not specified, Extract will not generate a warning on long-running transactions. + * `performance_profile` - Extract performance. + * `key_id` - The OCID of the resource being referenced. + * `replicat` - Parameters for Replicat processes. + * `performance_profile` - Replicat performance. + * `rest_admin_credentials` - Database Administrator Credentials details. + * `username` - Administrator username + * `url` - Endpoint URL. + * `vault_id` - The OCID of the resource being referenced. +* `id` - The OCID of the resource being referenced. +* `initial_load_settings` - Optional settings for Data Pump Export and Import jobs + * `compatibility` - Apply the specified requirements for compatibility with MySQL Database Service for all tables in the dump output, altering the dump files as necessary. + * `data_pump_parameters` - Optional parameters for Data Pump Export and Import. + * `estimate` - Estimate size of dumps that will be generated. + * `exclude_parameters` - Exclude paratemers for Export and Import. + * `export_parallelism_degree` - Maximum number of worker processes that can be used for a Data Pump Export job. + * `import_parallelism_degree` - Maximum number of worker processes that can be used for a Data Pump Import job. For an Autonomous Database, ODMS will automatically query its CPU core count and set this property. + * `is_cluster` - Set to false to force Data Pump worker process to run on one instance. + * `table_exists_action` - IMPORT: Specifies the action to be performed when data is loaded into a preexisting table. + * `export_directory_object` - Directory object details, used to define either import or export directory objects in Data Pump Settings. + * `name` - Name of directory object in database + * `path` - Absolute path of directory on database server + * `handle_grant_errors` - The action taken in the event of errors related to GRANT or REVOKE errors. + * `import_directory_object` - Directory object details, used to define either import or export directory objects in Data Pump Settings. + * `name` - Name of directory object in database + * `path` - Absolute path of directory on database server + * `is_consistent` - Enable (true) or disable (false) consistent data dumps by locking the instance for backup during the dump. + * `is_ignore_existing_objects` - Import the dump even if it contains objects that already exist in the target schema in the MySQL instance. + * `is_tz_utc` - Include a statement at the start of the dump to set the time zone to UTC. + * `job_mode` - Oracle Job Mode + * `metadata_remaps` - Defines remapping to be applied to objects as they are processed. + * `new_value` - Specifies the new value that oldValue should be translated into. + * `old_value` - Specifies the value which needs to be reset. + * `type` - Type of remap. Refer to [METADATA_REMAP Procedure ](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D) + * `primary_key_compatibility` - Primary key compatibility option + * `tablespace_details` - Migration tablespace settings. + * `block_size_in_kbs` - Size of Oracle database blocks in KB. + * `extend_size_in_mbs` - Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set to true. + * `is_auto_create` - Set this property to true to auto-create tablespaces in the target Database. Note: This is not applicable for Autonomous Database Serverless databases. + * `is_big_file` - Set this property to true to enable tablespace of the type big file. + * `remap_target` - Name of the tablespace on the target database to which the source database tablespace is to be remapped. + * `target_type` - Type of Database Base Migration Target. +* `lifecycle_details` - Additional status related to the execution and current state of the Migration. +* `source_container_database_connection_id` - The OCID of the resource being referenced. +* `source_database_connection_id` - The OCID of the resource being referenced. +* `state` - The current state of the Migration resource. +* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `target_database_connection_id` - The OCID of the resource being referenced. +* `time_created` - An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `time_last_migration` - An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `time_updated` - An RFC3339 formatted datetime string such as `2016-08-25T21:10:29.600Z`. +* `type` - The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a migration. This method uses Oracle GoldenGate for replication. +* `wait_after` - You can optionally pause a migration after a job phase. This property allows you to optionally specify the phase after which you can pause the migration. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://registry.terraform.io/providers/oracle/oci/latest/docs/guides/changing_timeouts) for certain operations: +* `create` - (Defaults to 20 minutes), when creating the Migration +* `update` - (Defaults to 20 minutes), when updating the Migration +* `delete` - (Defaults to 20 minutes), when destroying the Migration + + +## Import + +Migrations can be imported using the `id`, e.g. + +``` +$ terraform import oci_database_migration_migration.test_migration "id" +``` diff --git a/website/docs/r/database_pluggable_database.html.markdown b/website/docs/r/database_pluggable_database.html.markdown index 4c068fcf752..4c78720407d 100644 --- a/website/docs/r/database_pluggable_database.html.markdown +++ b/website/docs/r/database_pluggable_database.html.markdown @@ -36,6 +36,7 @@ resource "oci_database_pluggable_database" "test_pluggable_database" { #Optional dblink_user_password = var.pluggable_database_pdb_creation_type_details_dblink_user_password dblink_username = var.pluggable_database_pdb_creation_type_details_dblink_username + is_thin_clone = var.pluggable_database_pdb_creation_type_details_is_thin_clone refreshable_clone_details { #Optional @@ -58,12 +59,13 @@ The following arguments are supported: * `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). * `freeform_tags` - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `pdb_admin_password` - (Optional) A strong password for PDB Admin. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The special characters must be _, \#, or -. -* `pdb_creation_type_details` - (Optional) The Pluggable Database creation type. Use `LOCAL_CLONE_PDB` for creating a new PDB using Local Clone on Source Pluggable Database. This will Clone and starts a pluggable database (PDB) in the same database (CDB) as the source PDB. The source PDB must be in the `READ_WRITE` openMode to perform the clone operation. Use `REMOTE_CLONE_PDB` for creating a new PDB using Remote Clone on Source Pluggable Database. This will Clone a pluggable database (PDB) to a different database from the source PDB. The cloned PDB will be started upon completion of the clone operation. The source PDB must be in the `READ_WRITE` openMode when performing the clone. For Exadata Cloud@Customer instances, the source pluggable database (PDB) must be on the same Exadata Infrastructure as the target container database (CDB) to create a remote clone. +* `pdb_creation_type_details` - (Optional) The Pluggable Database creation type. Use `LOCAL_CLONE_PDB` for creating a new PDB using Local Clone on Source Pluggable Database. This will Clone and starts a pluggable database (PDB) in the same database (CDB) as the source PDB. The source PDB must be in the `READ_WRITE` openMode to perform the clone operation. isThinClone options are supported only for Exadata VM cluster on Exascale Infrastructure. Use `REMOTE_CLONE_PDB` for creating a new PDB using Remote Clone on Source Pluggable Database. This will Clone a pluggable database (PDB) to a different database from the source PDB. The cloned PDB will be started upon completion of the clone operation. The source PDB must be in the `READ_WRITE` openMode when performing the clone. For Exadata Cloud@Customer instances, the source pluggable database (PDB) must be on the same Exadata Infrastructure as the target container database (CDB) to create a remote clone. isThinClone options are supported only for Exadata VM cluster on Exascale Infrastructure. Use `RELOCATE_PDB` for relocating the Pluggable Database from Source CDB and creating it in target CDB. This will relocate a pluggable database (PDB) to a different database from the source PDB. The source PDB must be in the `READ_WRITE` openMode when performing the relocate. * `creation_type` - (Required) The Pluggable Database creation type. * `dblink_user_password` - (Applicable when creation_type=RELOCATE_PDB | REMOTE_CLONE_PDB) The DB link user password. * `dblink_username` - (Applicable when creation_type=RELOCATE_PDB | REMOTE_CLONE_PDB) The name of the DB link user. + * `is_thin_clone` - (Applicable when creation_type=LOCAL_CLONE_PDB | REMOTE_CLONE_PDB) True if Pluggable Database needs to be thin cloned and false if Pluggable Database needs to be thick cloned. * `refreshable_clone_details` - (Applicable when creation_type=REMOTE_CLONE_PDB) Parameters for creating Pluggable Database Refreshable Clone. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. * `is_refreshable_clone` - (Applicable when creation_type=REMOTE_CLONE_PDB) Indicates whether Pluggable Database is a refreshable clone. * `source_container_database_admin_password` - (Required when creation_type=RELOCATE_PDB | REMOTE_CLONE_PDB) The DB system administrator password of the source Container Database. diff --git a/website/docs/r/file_storage_export.html.markdown b/website/docs/r/file_storage_export.html.markdown index 1f1128e420d..efb35f4d8e5 100644 --- a/website/docs/r/file_storage_export.html.markdown +++ b/website/docs/r/file_storage_export.html.markdown @@ -45,9 +45,12 @@ resource "oci_file_storage_export" "test_export" { The following arguments are supported: -* `export_options` - (Optional) (Updatable) Export options for the new export. If left unspecified, defaults to: +* `export_options` - (Optional) (Updatable) Export options for the new export. For exports of mount targets with IPv4 address, if client options are left unspecified, client options would default to: + [ { "source" : "0.0.0.0/0", "requirePrivilegedSourcePort" : false, "access": "READ_WRITE", "identitySquash": "NONE", "anonymousUid": 65534, "anonymousGid": 65534, "isAnonymousAccessAllowed": false, "allowedAuth": ["SYS"] } ] + For exports of mount targets with IPv6 address, if client options are left unspecified, client options would be an empty array, i.e. export would not be visible to any clients. + **Note:** Mount targets do not have Internet-routable IP addresses. Therefore they will not be reachable from the Internet, even if an associated `ClientOptions` item has a source of `0.0.0.0/0`. **If set to the empty array then the export will not be visible to any clients.** diff --git a/website/docs/r/file_storage_file_system.html.markdown b/website/docs/r/file_storage_file_system.html.markdown index d6795d9a58e..19bf274622b 100644 --- a/website/docs/r/file_storage_file_system.html.markdown +++ b/website/docs/r/file_storage_file_system.html.markdown @@ -50,6 +50,7 @@ resource "oci_file_storage_file_system" "test_file_system" { compartment_id = var.compartment_id #Optional + clone_attach_status = var.file_system_clone_attach_status defined_tags = {"Operations.CostCenter"= "42"} display_name = var.file_system_display_name filesystem_snapshot_policy_id = oci_file_storage_filesystem_snapshot_policy.test_filesystem_snapshot_policy.id @@ -64,6 +65,7 @@ resource "oci_file_storage_file_system" "test_file_system" { The following arguments are supported: * `availability_domain` - (Required) The availability domain to create the file system in. Example: `Uocm:PHX-AD-1` +* `clone_attach_status` - (Optional) Specifies whether the clone file system is attached to its parent file system. If the value is set to 'DETACH', then the file system will be created, which is deep copied from the snapshot specified by sourceSnapshotId, else will remain attached to its parent. * `compartment_id` - (Required) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the file system in. * `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` * `display_name` - (Optional) (Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: `My file system` @@ -73,6 +75,7 @@ The following arguments are supported: * `freeform_tags` - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `kms_key_id` - (Optional) (Updatable) The OCID of KMS key used to encrypt the encryption keys associated with this file system. May be unset as a blank or deleted from the configuration to remove the KMS key. * `source_snapshot_id` - (Optional) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the snapshot used to create a cloned file system. See [Cloning a File System](https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). +* `detach_clone_trigger` - (Optional) (Updatable) An optional property when incremented triggers Detach Clone. Could be set to any integer value. ** IMPORTANT ** @@ -83,6 +86,8 @@ Any change to a property that does not support update will force the destruction The following attributes are exported: * `availability_domain` - The availability domain the file system is in. May be unset as a blank or NULL value. Example: `Uocm:PHX-AD-1` +* `clone_attach_status` - Specifies whether the file system is attached to its parent file system. +* `clone_count` - Specifies the total number of children of a file system. * `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the file system. * `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` * `display_name` - A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: `My file system` diff --git a/website/docs/r/file_storage_filesystem_snapshot_policy.html.markdown b/website/docs/r/file_storage_filesystem_snapshot_policy.html.markdown index 108dd805e2f..36d51787128 100644 --- a/website/docs/r/file_storage_filesystem_snapshot_policy.html.markdown +++ b/website/docs/r/file_storage_filesystem_snapshot_policy.html.markdown @@ -60,10 +60,10 @@ The following arguments are supported: * `schedules` - (Optional) (Updatable) The list of associated snapshot schedules. A maximum of 10 schedules can be associated with a policy. If using the CLI, provide the schedule as a list of JSON strings, with the list wrapped in quotation marks, i.e. ``` --schedules '[{"timeZone":"UTC","period":"DAILY","hourOfDay":18},{"timeZone":"UTC","period":"HOURLY"}]' ``` - * `day_of_month` - (Optional) (Updatable) The day of the month to create a scheduled snapshot. If the day does not exist for the month, snapshot creation will be skipped. Used for MONTHLY and YEARLY snapshot schedules. - * `day_of_week` - (Optional) (Updatable) The day of the week to create a scheduled snapshot. Used for WEEKLY snapshot schedules. - * `hour_of_day` - (Optional) (Updatable) The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot. If not set, a value will be chosen at creation time. - * `month` - (Optional) (Updatable) The month to create a scheduled snapshot. Used only for YEARLY snapshot schedules. + * `day_of_month` - (Optional) (Updatable) The day of the month to create a scheduled snapshot. If the day does not exist for the month, snapshot creation will be skipped. Used for MONTHLY and YEARLY snapshot schedules. If not set, the system chooses a value at creation time. + * `day_of_week` - (Optional) (Updatable) The day of the week to create a scheduled snapshot. Used for WEEKLY snapshot schedules. If not set, the system chooses a value at creation time. + * `hour_of_day` - (Optional) (Updatable) The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot. If not set, the system chooses a value at creation time. + * `month` - (Optional) (Updatable) The month to create a scheduled snapshot. Used only for YEARLY snapshot schedules. If not set, the system chooses a value at creation time. * `period` - (Required) (Updatable) The frequency of scheduled snapshots. * `retention_duration_in_seconds` - (Optional) (Updatable) The number of seconds to retain snapshots created with this schedule. Snapshot expiration time will not be set if this value is empty. * `schedule_prefix` - (Optional) (Updatable) A name prefix to be applied to snapshots created by this schedule. Example: `compliance1` @@ -87,10 +87,10 @@ The following attributes are exported: * `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. * `policy_prefix` - The prefix to apply to all snapshots created by this policy. Example: `acme` * `schedules` - The list of associated snapshot schedules. A maximum of 10 schedules can be associated with a policy. - * `day_of_month` - The day of the month to create a scheduled snapshot. If the day does not exist for the month, snapshot creation will be skipped. Used for MONTHLY and YEARLY snapshot schedules. - * `day_of_week` - The day of the week to create a scheduled snapshot. Used for WEEKLY snapshot schedules. - * `hour_of_day` - The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot. If not set, a value will be chosen at creation time. - * `month` - The month to create a scheduled snapshot. Used only for YEARLY snapshot schedules. + * `day_of_month` - The day of the month to create a scheduled snapshot. If the day does not exist for the month, snapshot creation will be skipped. Used for MONTHLY and YEARLY snapshot schedules. If not set, the system chooses a value at creation time. + * `day_of_week` - The day of the week to create a scheduled snapshot. Used for WEEKLY snapshot schedules. If not set, the system chooses a value at creation time. + * `hour_of_day` - The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot. If not set, the system chooses a value at creation time. + * `month` - The month to create a scheduled snapshot. Used only for YEARLY snapshot schedules. If not set, the system chooses a value at creation time. * `period` - The frequency of scheduled snapshots. * `retention_duration_in_seconds` - The number of seconds to retain snapshots created with this schedule. Snapshot expiration time will not be set if this value is empty. * `schedule_prefix` - A name prefix to be applied to snapshots created by this schedule. Example: `compliance1` diff --git a/website/docs/r/generative_ai_dedicated_ai_cluster.html.markdown b/website/docs/r/generative_ai_dedicated_ai_cluster.html.markdown index dc439ad3aa0..8626c4b58b4 100644 --- a/website/docs/r/generative_ai_dedicated_ai_cluster.html.markdown +++ b/website/docs/r/generative_ai_dedicated_ai_cluster.html.markdown @@ -1,14 +1,14 @@ --- -subcategory: "Generative Ai" +subcategory: "Generative AI" layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_generative_ai_dedicated_ai_cluster" sidebar_current: "docs-oci-resource-generative_ai-dedicated_ai_cluster" description: |- - Provides the Dedicated Ai Cluster resource in Oracle Cloud Infrastructure Generative Ai service + Provides the Dedicated Ai Cluster resource in Oracle Cloud Infrastructure Generative AI service --- # oci_generative_ai_dedicated_ai_cluster -This resource provides the Dedicated Ai Cluster resource in Oracle Cloud Infrastructure Generative Ai service. +This resource provides the Dedicated Ai Cluster resource in Oracle Cloud Infrastructure Generative AI service. Creates a dedicated AI cluster. @@ -49,9 +49,13 @@ The following arguments are supported: Allowed values are: * LARGE_COHERE + * LARGE_COHERE_V2 * SMALL_COHERE + * SMALL_COHERE_V2 * EMBED_COHERE - * LLAMA2_70 + * LLAMA2_70 + * LARGE_GENERIC + * LARGE_COHERE_V2_2 ** IMPORTANT ** @@ -72,6 +76,9 @@ The following attributes are exported: * `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated AI cluster. * `lifecycle_details` - A message describing the current state with detail that can provide actionable information. +* `previous_state` - Dedicated AI clusters are compute resources that you can use for fine-tuning custom models or for hosting endpoints for custom models. The clusters are dedicated to your models and not shared with users in other tenancies. + + To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives Oracle Cloud Infrastructure resource access to users. See [Getting Started with Policies](https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm) and [Getting Access to Generative AI Resouces](https://docs.cloud.oracle.com/iaas/Content/generative-ai/iam-policies.htm). * `state` - The current state of the dedicated AI cluster. * `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` * `time_created` - The date and time the dedicated AI cluster was created, in the format defined by RFC 3339 diff --git a/website/docs/r/generative_ai_endpoint.html.markdown b/website/docs/r/generative_ai_endpoint.html.markdown index 640151eebdd..28524389dba 100644 --- a/website/docs/r/generative_ai_endpoint.html.markdown +++ b/website/docs/r/generative_ai_endpoint.html.markdown @@ -1,14 +1,14 @@ --- -subcategory: "Generative Ai" +subcategory: "Generative AI" layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_generative_ai_endpoint" sidebar_current: "docs-oci-resource-generative_ai-endpoint" description: |- - Provides the Endpoint resource in Oracle Cloud Infrastructure Generative Ai service + Provides the Endpoint resource in Oracle Cloud Infrastructure Generative AI service --- # oci_generative_ai_endpoint -This resource provides the Endpoint resource in Oracle Cloud Infrastructure Generative Ai service. +This resource provides the Endpoint resource in Oracle Cloud Infrastructure Generative AI service. Creates an endpoint. @@ -69,6 +69,9 @@ The following attributes are exported: * `id` - An OCID that uniquely identifies this endpoint resource. * `lifecycle_details` - A message describing the current state of the endpoint in more detail that can provide actionable information. * `model_id` - The OCID of the model that's used to create this endpoint. +* `previous_state` - To host a custom model for inference, create an endpoint for that model on a dedicated AI cluster of type HOSTING. + + To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives Oracle Cloud Infrastructure resource access to users. See [Getting Started with Policies](https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm) and [Getting Access to Generative AI Resouces](https://docs.cloud.oracle.com/iaas/Content/generative-ai/iam-policies.htm). * `state` - The current state of the endpoint. * `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` * `time_created` - The date and time that the endpoint was created in the format of an RFC3339 datetime string. diff --git a/website/docs/r/generative_ai_model.html.markdown b/website/docs/r/generative_ai_model.html.markdown index a7ab98b23c5..e2a22ccebd9 100644 --- a/website/docs/r/generative_ai_model.html.markdown +++ b/website/docs/r/generative_ai_model.html.markdown @@ -1,14 +1,14 @@ --- -subcategory: "Generative Ai" +subcategory: "Generative AI" layout: "oci" page_title: "Oracle Cloud Infrastructure: oci_generative_ai_model" sidebar_current: "docs-oci-resource-generative_ai-model" description: |- - Provides the Model resource in Oracle Cloud Infrastructure Generative Ai service + Provides the Model resource in Oracle Cloud Infrastructure Generative AI service --- # oci_generative_ai_model -This resource provides the Model resource in Oracle Cloud Infrastructure Generative Ai service. +This resource provides the Model resource in Oracle Cloud Infrastructure Generative AI service. Creates a custom model by fine-tuning a base model with your own dataset. You can create a new custom models or create a new version of existing custom model.. @@ -43,6 +43,9 @@ resource "oci_generative_ai_model" "test_model" { early_stopping_threshold = var.model_fine_tune_details_training_config_early_stopping_threshold learning_rate = var.model_fine_tune_details_training_config_learning_rate log_model_metrics_interval_in_steps = var.model_fine_tune_details_training_config_log_model_metrics_interval_in_steps + lora_alpha = var.model_fine_tune_details_training_config_lora_alpha + lora_dropout = var.model_fine_tune_details_training_config_lora_dropout + lora_r = var.model_fine_tune_details_training_config_lora_r num_of_last_layers = var.model_fine_tune_details_training_config_num_of_last_layers total_training_epochs = var.model_fine_tune_details_training_config_total_training_epochs training_batch_size = var.model_fine_tune_details_training_config_training_batch_size @@ -77,13 +80,16 @@ The following arguments are supported: * `log_model_metrics_interval_in_steps` - (Optional) Determines how frequently to log model metrics. Every step is logged for the first 20 steps and then follows this parameter for log frequency. Set to 0 to disable logging the model metrics. + * `lora_alpha` - (Applicable when training_config_type=LORA_TRAINING_CONFIG) This parameter represents the scaling factor for the weight matrices in LoRA. + * `lora_dropout` - (Applicable when training_config_type=LORA_TRAINING_CONFIG) This parameter indicates the dropout probability for LoRA layers. + * `lora_r` - (Applicable when training_config_type=LORA_TRAINING_CONFIG) This parameter represents the LoRA rank of the update matrices. * `num_of_last_layers` - (Applicable when training_config_type=VANILLA_TRAINING_CONFIG) The number of last layers to be fine-tuned. * `total_training_epochs` - (Optional) The maximum number of training epochs to run for. * `training_batch_size` - (Optional) The batch size used during training. * `training_config_type` - (Required) The fine-tuning method for training a custom model. * `training_dataset` - (Required) The dataset used to fine-tune the model. - Only one dataset is allowed per custom model, which is split 90-10 for training and validating. You must provide the dataset in a JSON Lines (JSONL) file. Each line in the JSONL file must have the format: `{"prompt": "", "completion": ""}` + Only one dataset is allowed per custom model, which is split 80-20 for training and validating. You must provide the dataset in a JSON Lines (JSONL) file. Each line in the JSONL file must have the format: `{"prompt": "", "completion": ""}` * `bucket` - (Required) The Object Storage bucket name. * `dataset_type` - (Required) The type of the data asset. * `namespace` - (Required) The Object Storage namespace. @@ -115,13 +121,16 @@ The following attributes are exported: * `log_model_metrics_interval_in_steps` - Determines how frequently to log model metrics. Every step is logged for the first 20 steps and then follows this parameter for log frequency. Set to 0 to disable logging the model metrics. + * `lora_alpha` - This parameter represents the scaling factor for the weight matrices in LoRA. + * `lora_dropout` - This parameter indicates the dropout probability for LoRA layers. + * `lora_r` - This parameter represents the LoRA rank of the update matrices. * `num_of_last_layers` - The number of last layers to be fine-tuned. * `total_training_epochs` - The maximum number of training epochs to run for. * `training_batch_size` - The batch size used during training. * `training_config_type` - The fine-tuning method for training a custom model. * `training_dataset` - The dataset used to fine-tune the model. - Only one dataset is allowed per custom model, which is split 90-10 for training and validating. You must provide the dataset in a JSON Lines (JSONL) file. Each line in the JSONL file must have the format: `{"prompt": "", "completion": ""}` + Only one dataset is allowed per custom model, which is split 80-20 for training and validating. You must provide the dataset in a JSON Lines (JSONL) file. Each line in the JSONL file must have the format: `{"prompt": "", "completion": ""}` * `bucket` - The Object Storage bucket name. * `dataset_type` - The type of the data asset. * `namespace` - The Object Storage namespace. @@ -134,6 +143,9 @@ The following attributes are exported: * `final_accuracy` - Fine-tuned model accuracy. * `final_loss` - Fine-tuned model loss. * `model_metrics_type` - The type of the model metrics. Each type of model can expect a different set of model metrics. +* `previous_state` - You can create a custom model by using your dataset to fine-tune an out-of-the-box text generation base model. Have your dataset ready before you create a custom model. See [Training Data Requirements](https://docs.cloud.oracle.com/iaas/Content/generative-ai/training-data-requirements.htm). + + To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives Oracle Cloud Infrastructure resource access to users. See [Getting Started with Policies](https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm) and [Getting Access to Generative AI Resouces](https://docs.cloud.oracle.com/iaas/Content/generative-ai/iam-policies.htm). * `state` - The lifecycle state of the model. * `system_tags` - System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` * `time_created` - The date and time that the model was created in the format of an RFC3339 datetime string. diff --git a/website/docs/r/resource_scheduler_schedule.html.markdown b/website/docs/r/resource_scheduler_schedule.html.markdown new file mode 100644 index 00000000000..88c89cc8f8c --- /dev/null +++ b/website/docs/r/resource_scheduler_schedule.html.markdown @@ -0,0 +1,141 @@ +--- +subcategory: "Resource Scheduler" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_resource_scheduler_schedule" +sidebar_current: "docs-oci-resource-resource_scheduler-schedule" +description: |- + Provides the Schedule resource in Oracle Cloud Infrastructure Resource Scheduler service +--- + +# oci_resource_scheduler_schedule +This resource provides the Schedule resource in Oracle Cloud Infrastructure Resource Scheduler service. + +Creates a Schedule + + +## Example Usage + +```hcl +resource "oci_resource_scheduler_schedule" "test_schedule" { + #Required + action = var.schedule_action + compartment_id = var.compartment_id + recurrence_details = var.schedule_recurrence_details + recurrence_type = var.schedule_recurrence_type + + #Optional + defined_tags = {"Operations.CostCenter"= "42"} + description = var.schedule_description + display_name = var.schedule_display_name + freeform_tags = {"Department"= "Finance"} + resource_filters { + #Required + attribute = var.schedule_resource_filters_attribute + + #Optional + condition = var.schedule_resource_filters_condition + should_include_child_compartments = var.schedule_resource_filters_should_include_child_compartments + value { + + #Optional + namespace = var.schedule_resource_filters_value_namespace + tag_key = var.schedule_resource_filters_value_tag_key + value = var.schedule_resource_filters_value_value + } + } + resources { + #Required + id = var.schedule_resources_id + + #Optional + metadata = var.schedule_resources_metadata + } + time_ends = var.schedule_time_ends + time_starts = var.schedule_time_starts +} +``` + +## Argument Reference + +The following arguments are supported: + +* `action` - (Required) (Updatable) This is the action that will be executed by the schedule. +* `compartment_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created +* `defined_tags` - (Optional) (Updatable) These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` +* `description` - (Optional) (Updatable) This is the description of the schedule. +* `display_name` - (Optional) (Updatable) This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. +* `freeform_tags` - (Optional) (Updatable) These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `recurrence_details` - (Required) (Updatable) This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field. +* `recurrence_type` - (Required) (Updatable) Type of recurrence of a schedule +* `resource_filters` - (Optional) (Updatable) This is a list of resources filters. The schedule will be applied to resources matching all of them. + * `attribute` - (Required) (Updatable) This is the resource attribute on which the threshold is defined. + * `condition` - (Applicable when attribute=TIME_CREATED) (Updatable) This is the condition for the filter in comparison to its creation time. + * `should_include_child_compartments` - (Applicable when attribute=COMPARTMENT_ID) (Updatable) This sets whether to include child compartments. + * `value` - (Optional) (Updatable) This is a collection of resource lifecycle state values. + * `namespace` - (Applicable when attribute=DEFINED_TAGS) (Updatable) This is the namespace of the defined tag. + * `tag_key` - (Applicable when attribute=DEFINED_TAGS) (Updatable) This is the key of the defined tag. + * `value` - (Applicable when attribute=DEFINED_TAGS) (Updatable) This is the value of the defined tag. +* `resources` - (Optional) (Updatable) This is the list of resources to which the scheduled operation is applied. + * `id` - (Required) (Updatable) This is the resource OCID. + * `metadata` - (Optional) (Updatable) This is additional information that helps to identity the resource for the schedule. + + { "id": "" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } } +* `time_ends` - (Optional) (Updatable) This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` +* `time_starts` - (Optional) (Updatable) This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` +* `state` - (Optional) (Updatable) The target state for the Schedule. Could be set to `ACTIVE` or `INACTIVE`. + + +** IMPORTANT ** +Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + +## Attributes Reference + +The following attributes are exported: + +* `action` - This is the action that will be executed by the schedule. +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created +* `defined_tags` - These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` +* `description` - This is the description of the schedule. +* `display_name` - This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. +* `freeform_tags` - These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule +* `recurrence_details` - This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field. +* `recurrence_type` - Type of recurrence of a schedule +* `resource_filters` - This is a list of resources filters. The schedule will be applied to resources matching all of them. + * `attribute` - This is the resource attribute on which the threshold is defined. + * `condition` - This is the condition for the filter in comparison to its creation time. + * `should_include_child_compartments` - This sets whether to include child compartments. + * `value` - This is a collection of resource lifecycle state values. + * `namespace` - This is the namespace of the defined tag. + * `tag_key` - This is the key of the defined tag. + * `value` - This is the value of the defined tag. +* `resources` - This is the list of resources to which the scheduled operation is applied. + * `id` - This is the resource OCID. + * `metadata` - This is additional information that helps to identity the resource for the schedule. + + { "id": "" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } } +* `state` - This is the current state of a schedule. +* `system_tags` - These are system tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `time_created` - This is the date and time the schedule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` +* `time_ends` - This is the date and time the schedule ends, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` +* `time_last_run` - This is the date and time the schedule runs last time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` +* `time_next_run` - This is the date and time the schedule run the next time, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` +* `time_starts` - This is the date and time the schedule starts, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339) Example: `2016-08-25T21:10:29.600Z` +* `time_updated` - This is the date and time the schedule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://registry.terraform.io/providers/oracle/oci/latest/docs/guides/changing_timeouts) for certain operations: + * `create` - (Defaults to 20 minutes), when creating the Schedule + * `update` - (Defaults to 20 minutes), when updating the Schedule + * `delete` - (Defaults to 20 minutes), when destroying the Schedule + + +## Import + +Schedules can be imported using the `id`, e.g. + +``` +$ terraform import oci_resource_scheduler_schedule.test_schedule "id" +``` + diff --git a/website/oci.erb b/website/oci.erb index 60f3270e48f..1cd675a0c14 100644 --- a/website/oci.erb +++ b/website/oci.erb @@ -3112,6 +3112,9 @@
  • oci_database_autonomous_database_instance_wallet_management
  • +
  • + oci_database_autonomous_database_peers +
  • oci_database_autonomous_database_refreshable_clone
  • @@ -3307,6 +3310,30 @@
  • oci_database_exadata_iorm_config
  • +
  • + oci_database_exadb_vm_cluster +
  • +
  • + oci_database_exadb_vm_cluster_update +
  • +
  • + oci_database_exadb_vm_cluster_update_history_entries +
  • +
  • + oci_database_exadb_vm_cluster_update_history_entry +
  • +
  • + oci_database_exadb_vm_cluster_updates +
  • +
  • + oci_database_exadb_vm_clusters +
  • +
  • + oci_database_exascale_db_storage_vault +
  • +
  • + oci_database_exascale_db_storage_vaults +
  • oci_database_external_container_database
  • @@ -3334,6 +3361,9 @@
  • oci_database_flex_components
  • +
  • + oci_database_gi_version_minor_versions +
  • oci_database_gi_versions
  • @@ -3510,6 +3540,12 @@
  • oci_database_exadata_iorm_config
  • +
  • + oci_database_exadb_vm_cluster +
  • +
  • + oci_database_exascale_db_storage_vault +
  • oci_database_external_container_database
  • @@ -3955,15 +3991,6 @@ > Data Sources @@ -3999,16 +4026,13 @@ > Resources @@ -4784,7 +4808,7 @@ > - Generative Ai + Generative AI @@ -8134,6 +8161,30 @@ + > + Resource Scheduler + + > Secrets