diff --git a/CHANGELOG.md b/CHANGELOG.md index f5b4ae76803..e10a0b40493 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## 5.2.0 (June 21, 2023) + +### Added +- Support for ADB-S: Storage Allocation Enhancements +- validate function for pool state +- NSG Support for private Database Registrations/Private Endpoints. +- import dataset feature support +- Support for ARM Support for Runner Component +### Bug Fix +- Corrected outdated documentation for db_name field of the oci_database_autonomous_database resource. +- Fixed network-source/Domains/Polices resource discovery issue. + ## 5.1.0 (June 14, 2023) ### Added diff --git a/examples/dataflow/main.tf b/examples/dataflow/main.tf index 9b9d8ea9275..ddd65eeb03b 100644 --- a/examples/dataflow/main.tf +++ b/examples/dataflow/main.tf @@ -75,6 +75,18 @@ variable "invoke_run_display_name" { variable "statement_code" { } + +resource "oci_dataflow_pool" "test_pool" { + compartment_id = var.compartment_id + description = "description" + display_name = "pool_name" + freeform_tags = { + "Department" = "Finance" + } + configurations = [{shape: "VM.Standard2.1", shapeConfig: {ocpus: 1, memoryInGBs: 15}, min: 0, max: 1}] + schedules = [{dayOfWeek: "SUNDAY", startTime: 3}] +} + resource "oci_dataflow_application" "tf_application" { #Required compartment_id = var.compartment_id diff --git a/examples/functions/main.tf b/examples/functions/main.tf index 2b5279d8426..40c707ec417 100644 --- a/examples/functions/main.tf +++ b/examples/functions/main.tf @@ -76,6 +76,7 @@ resource "oci_functions_application" "test_application" { domain_id = var.application_trace_config.domain_id is_enabled = var.application_trace_config.is_enabled } + shape = var.application_shape } data "oci_functions_applications" "test_applications" { diff --git a/examples/functions/variables.tf b/examples/functions/variables.tf index 2851c027b90..ee982ac8b58 100644 --- a/examples/functions/variables.tf +++ b/examples/functions/variables.tf @@ -99,4 +99,8 @@ variable "pbf_listing_version_id" { } variable "pbf_trigger_name" { +} + +variable "application_shape" { + default = "GENERIC_X86" } \ No newline at end of file diff --git a/examples/zips/adm.zip b/examples/zips/adm.zip index b5806cb9df5..3fa7fac86d3 100644 Binary files a/examples/zips/adm.zip and b/examples/zips/adm.zip differ diff --git a/examples/zips/aiAnomalyDetection.zip b/examples/zips/aiAnomalyDetection.zip index 758fd5630ef..d95b37c827b 100644 Binary files a/examples/zips/aiAnomalyDetection.zip and b/examples/zips/aiAnomalyDetection.zip differ diff --git a/examples/zips/aiDocument.zip b/examples/zips/aiDocument.zip index 37af5902daf..1f9e0f217a4 100644 Binary files a/examples/zips/aiDocument.zip and b/examples/zips/aiDocument.zip differ diff --git a/examples/zips/aiVision.zip b/examples/zips/aiVision.zip index 3fc78c1d5e0..657d9caadd2 100644 Binary files a/examples/zips/aiVision.zip and b/examples/zips/aiVision.zip differ diff --git a/examples/zips/always_free.zip b/examples/zips/always_free.zip index ab7ba602b61..2fd188a9b66 100644 Binary files a/examples/zips/always_free.zip and b/examples/zips/always_free.zip differ diff --git a/examples/zips/analytics.zip b/examples/zips/analytics.zip index 657f9f4940e..6382c03c651 100644 Binary files a/examples/zips/analytics.zip and b/examples/zips/analytics.zip differ diff --git a/examples/zips/announcements_service.zip b/examples/zips/announcements_service.zip index c57818400da..c4118fcd6c2 100644 Binary files a/examples/zips/announcements_service.zip and b/examples/zips/announcements_service.zip differ diff --git a/examples/zips/api_gateway.zip b/examples/zips/api_gateway.zip index 6ecd9781f7e..0c28d17442d 100644 Binary files a/examples/zips/api_gateway.zip and b/examples/zips/api_gateway.zip differ diff --git a/examples/zips/apm.zip b/examples/zips/apm.zip index 6b422a9f578..021855ac223 100644 Binary files a/examples/zips/apm.zip and b/examples/zips/apm.zip differ diff --git a/examples/zips/appmgmt_control.zip b/examples/zips/appmgmt_control.zip index c4633dd9535..0ce94ad9ca8 100644 Binary files a/examples/zips/appmgmt_control.zip and b/examples/zips/appmgmt_control.zip differ diff --git a/examples/zips/artifacts.zip b/examples/zips/artifacts.zip index 6e7343309e0..11c75bf65d5 100644 Binary files a/examples/zips/artifacts.zip and b/examples/zips/artifacts.zip differ diff --git a/examples/zips/audit.zip b/examples/zips/audit.zip index 5123d5fb494..ec79d0a7723 100644 Binary files a/examples/zips/audit.zip and b/examples/zips/audit.zip differ diff --git a/examples/zips/autoscaling.zip b/examples/zips/autoscaling.zip index 02b51c48751..68172d0a27f 100644 Binary files a/examples/zips/autoscaling.zip and b/examples/zips/autoscaling.zip differ diff --git a/examples/zips/bastion.zip b/examples/zips/bastion.zip index 2d4ecd61323..f0e115c05aa 100644 Binary files a/examples/zips/bastion.zip and b/examples/zips/bastion.zip differ diff --git a/examples/zips/big_data_service.zip b/examples/zips/big_data_service.zip index cdcc723c8ef..147cb4ca141 100644 Binary files a/examples/zips/big_data_service.zip and b/examples/zips/big_data_service.zip differ diff --git a/examples/zips/blockchain.zip b/examples/zips/blockchain.zip index b224afe9502..f3a4a1dd03e 100644 Binary files a/examples/zips/blockchain.zip and b/examples/zips/blockchain.zip differ diff --git a/examples/zips/budget.zip b/examples/zips/budget.zip index 86ead7e04f0..f92d15e9af8 100644 Binary files a/examples/zips/budget.zip and b/examples/zips/budget.zip differ diff --git a/examples/zips/certificatesManagement.zip b/examples/zips/certificatesManagement.zip index c4eece03ece..32110cff407 100644 Binary files a/examples/zips/certificatesManagement.zip and b/examples/zips/certificatesManagement.zip differ diff --git a/examples/zips/cloudBridge.zip b/examples/zips/cloudBridge.zip index 1acbb2bf074..80d64fa5b88 100644 Binary files a/examples/zips/cloudBridge.zip and b/examples/zips/cloudBridge.zip differ diff --git a/examples/zips/cloudMigrations.zip b/examples/zips/cloudMigrations.zip index e00da0e4921..83bbbd0747c 100644 Binary files a/examples/zips/cloudMigrations.zip and b/examples/zips/cloudMigrations.zip differ diff --git a/examples/zips/cloudguard.zip b/examples/zips/cloudguard.zip index e5fbc12447c..74235e19e4e 100644 Binary files a/examples/zips/cloudguard.zip and b/examples/zips/cloudguard.zip differ diff --git a/examples/zips/compute.zip b/examples/zips/compute.zip index 27244f0838f..651d8348a38 100644 Binary files a/examples/zips/compute.zip and b/examples/zips/compute.zip differ diff --git a/examples/zips/computeinstanceagent.zip b/examples/zips/computeinstanceagent.zip index cbc0cc73590..ab1c61d7dcc 100644 Binary files a/examples/zips/computeinstanceagent.zip and b/examples/zips/computeinstanceagent.zip differ diff --git a/examples/zips/concepts.zip b/examples/zips/concepts.zip index 935d2e26372..36a2d31d9f1 100644 Binary files a/examples/zips/concepts.zip and b/examples/zips/concepts.zip differ diff --git a/examples/zips/container_engine.zip b/examples/zips/container_engine.zip index aa9aed9f3ad..a71c25ce91b 100644 Binary files a/examples/zips/container_engine.zip and b/examples/zips/container_engine.zip differ diff --git a/examples/zips/container_instances.zip b/examples/zips/container_instances.zip index 73a67cf74d3..939af82ef5d 100644 Binary files a/examples/zips/container_instances.zip and b/examples/zips/container_instances.zip differ diff --git a/examples/zips/database.zip b/examples/zips/database.zip index 58ec4281ec4..257d87dc466 100644 Binary files a/examples/zips/database.zip and b/examples/zips/database.zip differ diff --git a/examples/zips/databaseTools.zip b/examples/zips/databaseTools.zip index 8780b202eef..4119940b344 100644 Binary files a/examples/zips/databaseTools.zip and b/examples/zips/databaseTools.zip differ diff --git a/examples/zips/databasemanagement.zip b/examples/zips/databasemanagement.zip index 63d10646d7b..700dbf0bc00 100644 Binary files a/examples/zips/databasemanagement.zip and b/examples/zips/databasemanagement.zip differ diff --git a/examples/zips/databasemigration.zip b/examples/zips/databasemigration.zip index 31c2323fcd0..747b3058d3b 100644 Binary files a/examples/zips/databasemigration.zip and b/examples/zips/databasemigration.zip differ diff --git a/examples/zips/datacatalog.zip b/examples/zips/datacatalog.zip index 4da0cbae069..075135aa9eb 100644 Binary files a/examples/zips/datacatalog.zip and b/examples/zips/datacatalog.zip differ diff --git a/examples/zips/dataflow.zip b/examples/zips/dataflow.zip index 75dcc8192af..ec07076dd3e 100644 Binary files a/examples/zips/dataflow.zip and b/examples/zips/dataflow.zip differ diff --git a/examples/zips/dataintegration.zip b/examples/zips/dataintegration.zip index 08094441138..e7177834f81 100644 Binary files a/examples/zips/dataintegration.zip and b/examples/zips/dataintegration.zip differ diff --git a/examples/zips/datalabeling.zip b/examples/zips/datalabeling.zip index ff36f40a7fb..321b627df85 100644 Binary files a/examples/zips/datalabeling.zip and b/examples/zips/datalabeling.zip differ diff --git a/examples/zips/datasafe.zip b/examples/zips/datasafe.zip index fbedcf50ee7..c1039ad6810 100644 Binary files a/examples/zips/datasafe.zip and b/examples/zips/datasafe.zip differ diff --git a/examples/zips/datascience.zip b/examples/zips/datascience.zip index 8080dc076a3..0e79208af4d 100644 Binary files a/examples/zips/datascience.zip and b/examples/zips/datascience.zip differ diff --git a/examples/zips/devops.zip b/examples/zips/devops.zip index 88294b49f7e..7eb43534492 100644 Binary files a/examples/zips/devops.zip and b/examples/zips/devops.zip differ diff --git a/examples/zips/disaster_recovery.zip b/examples/zips/disaster_recovery.zip index ba5c20384f4..9466c1c08e5 100644 Binary files a/examples/zips/disaster_recovery.zip and b/examples/zips/disaster_recovery.zip differ diff --git a/examples/zips/dns.zip b/examples/zips/dns.zip index 5ba9c5958b4..802d5c90354 100644 Binary files a/examples/zips/dns.zip and b/examples/zips/dns.zip differ diff --git a/examples/zips/em_warehouse.zip b/examples/zips/em_warehouse.zip index 0dc84641299..011a6477d97 100644 Binary files a/examples/zips/em_warehouse.zip and b/examples/zips/em_warehouse.zip differ diff --git a/examples/zips/email.zip b/examples/zips/email.zip index 3012017d38b..a1c9803b4a5 100644 Binary files a/examples/zips/email.zip and b/examples/zips/email.zip differ diff --git a/examples/zips/events.zip b/examples/zips/events.zip index bf6814ffd46..3ed2be9d785 100644 Binary files a/examples/zips/events.zip and b/examples/zips/events.zip differ diff --git a/examples/zips/fast_connect.zip b/examples/zips/fast_connect.zip index c7c9deaf616..de49c707fce 100644 Binary files a/examples/zips/fast_connect.zip and b/examples/zips/fast_connect.zip differ diff --git a/examples/zips/functions.zip b/examples/zips/functions.zip index af57b094857..f5aedf9d1f6 100644 Binary files a/examples/zips/functions.zip and b/examples/zips/functions.zip differ diff --git a/examples/zips/fusionapps.zip b/examples/zips/fusionapps.zip index b5f0f8f3b36..c4c1b049aea 100644 Binary files a/examples/zips/fusionapps.zip and b/examples/zips/fusionapps.zip differ diff --git a/examples/zips/goldengate.zip b/examples/zips/goldengate.zip index dbadbf34e28..0442ae9dbba 100644 Binary files a/examples/zips/goldengate.zip and b/examples/zips/goldengate.zip differ diff --git a/examples/zips/health_checks.zip b/examples/zips/health_checks.zip index 30db453e329..536252ee2a5 100644 Binary files a/examples/zips/health_checks.zip and b/examples/zips/health_checks.zip differ diff --git a/examples/zips/id6.zip b/examples/zips/id6.zip index fcab05cad97..7beadaadc25 100644 Binary files a/examples/zips/id6.zip and b/examples/zips/id6.zip differ diff --git a/examples/zips/identity.zip b/examples/zips/identity.zip index d193f6ef196..46e2b28559c 100644 Binary files a/examples/zips/identity.zip and b/examples/zips/identity.zip differ diff --git a/examples/zips/identity_data_plane.zip b/examples/zips/identity_data_plane.zip index 03d8ace0acc..92a971760dc 100644 Binary files a/examples/zips/identity_data_plane.zip and b/examples/zips/identity_data_plane.zip differ diff --git a/examples/zips/identity_domains.zip b/examples/zips/identity_domains.zip index 2528d5f41e7..a31fb5d2d89 100644 Binary files a/examples/zips/identity_domains.zip and b/examples/zips/identity_domains.zip differ diff --git a/examples/zips/integration.zip b/examples/zips/integration.zip index 1bda807255d..c5f31fc0c84 100644 Binary files a/examples/zips/integration.zip and b/examples/zips/integration.zip differ diff --git a/examples/zips/jms.zip b/examples/zips/jms.zip index ed46a9c743d..ad592cc82ab 100644 Binary files a/examples/zips/jms.zip and b/examples/zips/jms.zip differ diff --git a/examples/zips/kms.zip b/examples/zips/kms.zip index 3f00c756d44..8c55da1ca58 100644 Binary files a/examples/zips/kms.zip and b/examples/zips/kms.zip differ diff --git a/examples/zips/license_manager.zip b/examples/zips/license_manager.zip index 67d8a45fd5a..f06b8ab01e4 100644 Binary files a/examples/zips/license_manager.zip and b/examples/zips/license_manager.zip differ diff --git a/examples/zips/limits.zip b/examples/zips/limits.zip index adae8bc2971..7507d9f70c0 100644 Binary files a/examples/zips/limits.zip and b/examples/zips/limits.zip differ diff --git a/examples/zips/load_balancer.zip b/examples/zips/load_balancer.zip index dbc14d46a4d..cbdb5371b6f 100644 Binary files a/examples/zips/load_balancer.zip and b/examples/zips/load_balancer.zip differ diff --git a/examples/zips/log_analytics.zip b/examples/zips/log_analytics.zip index a0e950579e4..35180bf112b 100644 Binary files a/examples/zips/log_analytics.zip and b/examples/zips/log_analytics.zip differ diff --git a/examples/zips/logging.zip b/examples/zips/logging.zip index be255ddb172..61648912aaf 100644 Binary files a/examples/zips/logging.zip and b/examples/zips/logging.zip differ diff --git a/examples/zips/management_agent.zip b/examples/zips/management_agent.zip index 2dc9947195a..76af25e8e17 100644 Binary files a/examples/zips/management_agent.zip and b/examples/zips/management_agent.zip differ diff --git a/examples/zips/management_dashboard.zip b/examples/zips/management_dashboard.zip index 29f87836237..52f5af9a7c8 100644 Binary files a/examples/zips/management_dashboard.zip and b/examples/zips/management_dashboard.zip differ diff --git a/examples/zips/marketplace.zip b/examples/zips/marketplace.zip index cfe918c0722..4ed525971bf 100644 Binary files a/examples/zips/marketplace.zip and b/examples/zips/marketplace.zip differ diff --git a/examples/zips/media_services.zip b/examples/zips/media_services.zip index b626b5b1d8b..248b525ec3d 100644 Binary files a/examples/zips/media_services.zip and b/examples/zips/media_services.zip differ diff --git a/examples/zips/metering_computation.zip b/examples/zips/metering_computation.zip index a2275401d5b..0a446e86206 100644 Binary files a/examples/zips/metering_computation.zip and b/examples/zips/metering_computation.zip differ diff --git a/examples/zips/monitoring.zip b/examples/zips/monitoring.zip index a419a00feae..8f015bfdcaf 100644 Binary files a/examples/zips/monitoring.zip and b/examples/zips/monitoring.zip differ diff --git a/examples/zips/mysql.zip b/examples/zips/mysql.zip index e08a39cdfad..8d7378de16b 100644 Binary files a/examples/zips/mysql.zip and b/examples/zips/mysql.zip differ diff --git a/examples/zips/network_firewall.zip b/examples/zips/network_firewall.zip index 19c520beb9c..a6da9e14077 100644 Binary files a/examples/zips/network_firewall.zip and b/examples/zips/network_firewall.zip differ diff --git a/examples/zips/network_load_balancer.zip b/examples/zips/network_load_balancer.zip index 13cd6abc51e..f49ea4f63a1 100644 Binary files a/examples/zips/network_load_balancer.zip and b/examples/zips/network_load_balancer.zip differ diff --git a/examples/zips/networking.zip b/examples/zips/networking.zip index 6587a3682a6..6b4b9166d32 100644 Binary files a/examples/zips/networking.zip and b/examples/zips/networking.zip differ diff --git a/examples/zips/nosql.zip b/examples/zips/nosql.zip index f1a54e3ba87..39fd0dd24b4 100644 Binary files a/examples/zips/nosql.zip and b/examples/zips/nosql.zip differ diff --git a/examples/zips/notifications.zip b/examples/zips/notifications.zip index 2f857fe5ebe..709a2c63179 100644 Binary files a/examples/zips/notifications.zip and b/examples/zips/notifications.zip differ diff --git a/examples/zips/object_storage.zip b/examples/zips/object_storage.zip index bafcb499ad9..1455cc7cdda 100644 Binary files a/examples/zips/object_storage.zip and b/examples/zips/object_storage.zip differ diff --git a/examples/zips/ocvp.zip b/examples/zips/ocvp.zip index 4e0189ce62f..ca9366c79b4 100644 Binary files a/examples/zips/ocvp.zip and b/examples/zips/ocvp.zip differ diff --git a/examples/zips/onesubscription.zip b/examples/zips/onesubscription.zip index e34dd928bfa..f3b75c2bc1a 100644 Binary files a/examples/zips/onesubscription.zip and b/examples/zips/onesubscription.zip differ diff --git a/examples/zips/opa.zip b/examples/zips/opa.zip index 2639021b87d..294d9fbf63c 100644 Binary files a/examples/zips/opa.zip and b/examples/zips/opa.zip differ diff --git a/examples/zips/opensearch.zip b/examples/zips/opensearch.zip index 180ddbe9900..ebc4249688c 100644 Binary files a/examples/zips/opensearch.zip and b/examples/zips/opensearch.zip differ diff --git a/examples/zips/operator_access_control.zip b/examples/zips/operator_access_control.zip index 97d802e50f7..b9733eb1a87 100644 Binary files a/examples/zips/operator_access_control.zip and b/examples/zips/operator_access_control.zip differ diff --git a/examples/zips/opsi.zip b/examples/zips/opsi.zip index c8b1d9177e4..3162cf268a6 100644 Binary files a/examples/zips/opsi.zip and b/examples/zips/opsi.zip differ diff --git a/examples/zips/optimizer.zip b/examples/zips/optimizer.zip index 84228cc806b..48a70a26b5e 100644 Binary files a/examples/zips/optimizer.zip and b/examples/zips/optimizer.zip differ diff --git a/examples/zips/oracle_cloud_vmware_solution.zip b/examples/zips/oracle_cloud_vmware_solution.zip index e39ecafecda..96cd208bb74 100644 Binary files a/examples/zips/oracle_cloud_vmware_solution.zip and b/examples/zips/oracle_cloud_vmware_solution.zip differ diff --git a/examples/zips/oracle_content_experience.zip b/examples/zips/oracle_content_experience.zip index f8daa9f9851..bc4c3b67768 100644 Binary files a/examples/zips/oracle_content_experience.zip and b/examples/zips/oracle_content_experience.zip differ diff --git a/examples/zips/oracle_digital_assistant.zip b/examples/zips/oracle_digital_assistant.zip index 1532ee715db..703077d5cc0 100644 Binary files a/examples/zips/oracle_digital_assistant.zip and b/examples/zips/oracle_digital_assistant.zip differ diff --git a/examples/zips/osmanagement.zip b/examples/zips/osmanagement.zip index 716a0f39c20..8ff6bced3b2 100644 Binary files a/examples/zips/osmanagement.zip and b/examples/zips/osmanagement.zip differ diff --git a/examples/zips/osp_gateway.zip b/examples/zips/osp_gateway.zip index ebbbd2f0870..e0fca1e8eec 100644 Binary files a/examples/zips/osp_gateway.zip and b/examples/zips/osp_gateway.zip differ diff --git a/examples/zips/osub_billing_schedule.zip b/examples/zips/osub_billing_schedule.zip index bd7b6019a43..a5a90ff5782 100644 Binary files a/examples/zips/osub_billing_schedule.zip and b/examples/zips/osub_billing_schedule.zip differ diff --git a/examples/zips/osub_organization_subscription.zip b/examples/zips/osub_organization_subscription.zip index 33749d62b3f..8d843f7a2ea 100644 Binary files a/examples/zips/osub_organization_subscription.zip and b/examples/zips/osub_organization_subscription.zip differ diff --git a/examples/zips/osub_subscription.zip b/examples/zips/osub_subscription.zip index a5e0a2f7046..51c9b036ab6 100644 Binary files a/examples/zips/osub_subscription.zip and b/examples/zips/osub_subscription.zip differ diff --git a/examples/zips/osub_usage.zip b/examples/zips/osub_usage.zip index ca9be6f2ac7..de2b790d017 100644 Binary files a/examples/zips/osub_usage.zip and b/examples/zips/osub_usage.zip differ diff --git a/examples/zips/pic.zip b/examples/zips/pic.zip index 2f913398aa5..914810c99f8 100644 Binary files a/examples/zips/pic.zip and b/examples/zips/pic.zip differ diff --git a/examples/zips/queue.zip b/examples/zips/queue.zip index 4a9b2e8c406..6d51dc2f7c8 100644 Binary files a/examples/zips/queue.zip and b/examples/zips/queue.zip differ diff --git a/examples/zips/recovery.zip b/examples/zips/recovery.zip index a9eb8b9d18f..3c6972872cb 100644 Binary files a/examples/zips/recovery.zip and b/examples/zips/recovery.zip differ diff --git a/examples/zips/resourcemanager.zip b/examples/zips/resourcemanager.zip index c2270f418ac..a663eae64b8 100644 Binary files a/examples/zips/resourcemanager.zip and b/examples/zips/resourcemanager.zip differ diff --git a/examples/zips/serviceManagerProxy.zip b/examples/zips/serviceManagerProxy.zip index 8f752208d8b..7f96926e725 100644 Binary files a/examples/zips/serviceManagerProxy.zip and b/examples/zips/serviceManagerProxy.zip differ diff --git a/examples/zips/service_catalog.zip b/examples/zips/service_catalog.zip index c71e04122fd..528695458c6 100644 Binary files a/examples/zips/service_catalog.zip and b/examples/zips/service_catalog.zip differ diff --git a/examples/zips/service_connector_hub.zip b/examples/zips/service_connector_hub.zip index 888c851e42e..398b0245474 100644 Binary files a/examples/zips/service_connector_hub.zip and b/examples/zips/service_connector_hub.zip differ diff --git a/examples/zips/service_mesh.zip b/examples/zips/service_mesh.zip index 7c997d222d9..7912361128e 100644 Binary files a/examples/zips/service_mesh.zip and b/examples/zips/service_mesh.zip differ diff --git a/examples/zips/stack_monitoring.zip b/examples/zips/stack_monitoring.zip index 60bc637811d..f71ee2c74ae 100644 Binary files a/examples/zips/stack_monitoring.zip and b/examples/zips/stack_monitoring.zip differ diff --git a/examples/zips/storage.zip b/examples/zips/storage.zip index 8eaffa2e19e..10495f4a4b3 100644 Binary files a/examples/zips/storage.zip and b/examples/zips/storage.zip differ diff --git a/examples/zips/streaming.zip b/examples/zips/streaming.zip index ec06a9e1d79..208f2cb0225 100644 Binary files a/examples/zips/streaming.zip and b/examples/zips/streaming.zip differ diff --git a/examples/zips/usage_proxy.zip b/examples/zips/usage_proxy.zip index 8235149c0cd..3de931603b7 100644 Binary files a/examples/zips/usage_proxy.zip and b/examples/zips/usage_proxy.zip differ diff --git a/examples/zips/vault_secret.zip b/examples/zips/vault_secret.zip index 3083ec6cbbd..87b25ab2076 100644 Binary files a/examples/zips/vault_secret.zip and b/examples/zips/vault_secret.zip differ diff --git a/examples/zips/vbs_inst.zip b/examples/zips/vbs_inst.zip index 5a2f4ad9b35..34162bf024d 100644 Binary files a/examples/zips/vbs_inst.zip and b/examples/zips/vbs_inst.zip differ diff --git a/examples/zips/visual_builder.zip b/examples/zips/visual_builder.zip index af79efcfaac..113c2ec8326 100644 Binary files a/examples/zips/visual_builder.zip and b/examples/zips/visual_builder.zip differ diff --git a/examples/zips/vn_monitoring.zip b/examples/zips/vn_monitoring.zip index 8984fb36f66..208608ee307 100644 Binary files a/examples/zips/vn_monitoring.zip and b/examples/zips/vn_monitoring.zip differ diff --git a/examples/zips/vulnerability_scanning_service.zip b/examples/zips/vulnerability_scanning_service.zip index 57e39ef821e..3997ee0882a 100644 Binary files a/examples/zips/vulnerability_scanning_service.zip and b/examples/zips/vulnerability_scanning_service.zip differ diff --git a/examples/zips/web_app_acceleration.zip b/examples/zips/web_app_acceleration.zip index 3c78cacb74f..eefbad0acc3 100644 Binary files a/examples/zips/web_app_acceleration.zip and b/examples/zips/web_app_acceleration.zip differ diff --git a/examples/zips/web_app_firewall.zip b/examples/zips/web_app_firewall.zip index 582bcae8380..1e46f48ed04 100644 Binary files a/examples/zips/web_app_firewall.zip and b/examples/zips/web_app_firewall.zip differ diff --git a/examples/zips/web_application_acceleration_and_security.zip b/examples/zips/web_application_acceleration_and_security.zip index f1d0d34a54d..65ca9c79b29 100644 Binary files a/examples/zips/web_application_acceleration_and_security.zip and b/examples/zips/web_application_acceleration_and_security.zip differ diff --git a/go.mod b/go.mod index ee7b4d951c3..1187a499e25 100644 --- a/go.mod +++ b/go.mod @@ -53,7 +53,7 @@ require ( github.com/mitchellh/mapstructure v1.1.2 // 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.41.0 + github.com/oracle/oci-go-sdk/v65 v65.41.1 github.com/pmezard/go-difflib v1.0.0 // indirect github.com/sony/gobreaker v0.5.0 // indirect github.com/ulikunitz/xz v0.5.8 // indirect diff --git a/go.sum b/go.sum index 7e091a78fe8..17c2f51adce 100644 --- a/go.sum +++ b/go.sum @@ -289,8 +289,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.41.0 h1:BTGVqeTo7gCp3ebVYxlm6ezhSLKl58E9hm3eTGN6M8M= -github.com/oracle/oci-go-sdk/v65 v65.41.0/go.mod h1:MXMLMzHnnd9wlpgadPkdlkZ9YrwQmCOmbX5kjVEJodw= +github.com/oracle/oci-go-sdk/v65 v65.41.1 h1:+lbosOyNiib3TGJDvLq1HwEAuFqkOjPJDIkyxM15WdQ= +github.com/oracle/oci-go-sdk/v65 v65.41.1/go.mod h1:MXMLMzHnnd9wlpgadPkdlkZ9YrwQmCOmbX5kjVEJodw= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/internal/acctest/test_helpers.go b/internal/acctest/test_helpers.go index c46c3f6eaee..c2228533291 100644 --- a/internal/acctest/test_helpers.go +++ b/internal/acctest/test_helpers.go @@ -641,6 +641,8 @@ func PreCheck(t *testing.T) { copy(envVarChecklist, requiredTestEnvVars) if getEnvSettingWithDefaultVar("use_obo_token", "false") != "false" { envVarChecklist = append(envVarChecklist, requiredOboTokenAuthEnvVars...) + } else if getEnvSettingWithBlankDefaultVar("auth") == "SecurityToken" { + envVarChecklist = append(envVarChecklist, requiredSecurityTokenAuthEnvVars...) } else { envVarChecklist = append(envVarChecklist, requiredKeyAuthEnvVars...) } @@ -656,6 +658,9 @@ func PreCheck(t *testing.T) { var requiredTestEnvVars = []string{"compartment_ocid", "compartment_id_for_create", "compartment_id_for_update", "tags_import_if_exists"} var requiredKeyAuthEnvVars = []string{"tenancy_ocid", "user_ocid", "fingerprint"} var requiredOboTokenAuthEnvVars = []string{"tenancy_ocid", "obo_token"} + +var requiredSecurityTokenAuthEnvVars = []string{"config_file_profile"} + var TestAccProvider *schema.Provider var TestAccProviders map[string]*schema.Provider @@ -719,6 +724,9 @@ func GetTestClients(data *schema.ResourceData) *tf_client.OracleClients { d.Set("private_key_path", getEnvSettingWithBlankDefaultVar("private_key_path")) d.Set("private_key_password", getEnvSettingWithBlankDefaultVar("private_key_password")) d.Set("private_key", getEnvSettingWithBlankDefaultVar("private_key")) + } else if auth = getEnvSettingWithBlankDefaultVar("auth"); auth == globalvar.AuthSecurityToken { + d.Set("auth", globalvar.AuthSecurityToken) + d.Set("config_file_profile", getEnvSettingWithDefaultVar("config_file_profile", globalvar.SecurityTokenProfileForTest)) } else { d.Set("auth", getEnvSettingWithDefaultVar("auth", auth)) } diff --git a/internal/acctest/test_helpers_test.go b/internal/acctest/test_helpers_test.go index 62aae477a9b..3811ba4a86a 100644 --- a/internal/acctest/test_helpers_test.go +++ b/internal/acctest/test_helpers_test.go @@ -820,6 +820,45 @@ func TestUnitGetTestClients(t *testing.T) { } } +func TestUnitGetTestClientsSecurityToken(t *testing.T) { + r := &schema.Resource{ + Schema: provider.SchemaMap(), + } + d := r.Data(nil) + os.Setenv("auth", globalvar.AuthSecurityToken) + getEnvSettingWithDefaultVar = func(key string, value string) string { + return value + } + getEnvSettingWithBlankDefaultVar = func(key string) string { + return "dummy_value" + } + tfProviderConfigVar = func(d *schema.ResourceData) (interface{}, error) { + return &tf_client.OracleClients{ + Configuration: map[string]string{"auth": "SecurityToken"}, + }, nil + } + type args struct { + data *schema.ResourceData + } + tests := []struct { + name string + args args + }{ + { + name: "Test positive case", + args: args{ + data: d, + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + client := GetTestClients(tt.args.data) + assert.NotEmpty(t, client) + }) + } +} + func TestUnitGetUpdatedRepresentationCopy(t *testing.T) { auditEventResourceRepresentation := map[string]interface{}{ "end_time": Representation{RepType: Required, Create: `create`}, diff --git a/internal/globalvar/constants.go b/internal/globalvar/constants.go index 107af87e10d..018f592ea71 100644 --- a/internal/globalvar/constants.go +++ b/internal/globalvar/constants.go @@ -81,5 +81,6 @@ const ( const ( DebugTestSteps = "DEBUG_TEST_STEPS" DebugTestStepsShowConfigOnly = "DEBUG_TEST_STEPS_SHOW_CONFIG_ONLY" + SecurityTokenProfileForTest = "terraform-federation-test" ) const TerraformDocumentLink = "https://registry.terraform.io/providers/oracle/oci/latest/docs/" diff --git a/internal/globalvar/version.go b/internal/globalvar/version.go index d4ebc13a603..1f12875ca5b 100644 --- a/internal/globalvar/version.go +++ b/internal/globalvar/version.go @@ -7,8 +7,8 @@ import ( "log" ) -const Version = "5.1.0" -const ReleaseDate = "2023-06-13" +const Version = "5.2.0" +const ReleaseDate = "2023-06-21" func PrintVersion() { log.Printf("[INFO] terraform-provider-oci %s\n", Version) diff --git a/internal/integrationtest/data_labeling_service_dataset_test.go b/internal/integrationtest/data_labeling_service_dataset_test.go index fd2a3b0f4b1..2b5d78132d8 100644 --- a/internal/integrationtest/data_labeling_service_dataset_test.go +++ b/internal/integrationtest/data_labeling_service_dataset_test.go @@ -79,6 +79,12 @@ var ( datasetLabelSetRepresentation = map[string]interface{}{ "items": acctest.RepresentationGroup{RepType: acctest.Required, Group: datasetLabelSetItemsRepresentation}, } + + datasetInitialImportDatasetConfigurationRepresentation = map[string]interface{}{ + "import_format": acctest.RepresentationGroup{RepType: acctest.Required, Group: datasetInitialImportDatasetConfigurationImportFormatRepresentation}, + "import_metadata_path": acctest.RepresentationGroup{RepType: acctest.Required, Group: datasetInitialImportDatasetConfigurationImportMetadataPathRepresentation}, + } + //datasetInitialRecordGenerationConfigurationRepresentation = map[string]interface{}{} datasetLabelSetItemsRepresentation = map[string]interface{}{ "name": acctest.Representation{RepType: acctest.Required, Create: `name`, Update: `name2`}, @@ -90,6 +96,15 @@ var ( "name": acctest.Representation{RepType: acctest.Required, Create: objectstorageBucket}, "namespace": acctest.Representation{RepType: acctest.Required, Create: objectstorageNamespace}, } + datasetInitialImportDatasetConfigurationImportFormatRepresentation = map[string]interface{}{ + "name": acctest.Representation{RepType: acctest.Required, Create: `JSONL_CONSOLIDATED`}, + } + datasetInitialImportDatasetConfigurationImportMetadataPathRepresentation = map[string]interface{}{ + "bucket": acctest.Representation{RepType: acctest.Required, Create: `bucket`}, + "namespace": acctest.Representation{RepType: acctest.Required, Create: `namespace`}, + "path": acctest.Representation{RepType: acctest.Required, Create: `path`}, + "source_type": acctest.Representation{RepType: acctest.Required, Create: `OBJECT_STORAGE`}, + } objectstorageNamespace = "${data.oci_objectstorage_namespace.test_namespace.namespace}" objectstorageBucket = "tf_dataset_objectstoragebucket" diff --git a/internal/integrationtest/database_migration_connection_test.go b/internal/integrationtest/database_migration_connection_test.go index 9aebbb6397f..b3ac89cc74c 100644 --- a/internal/integrationtest/database_migration_connection_test.go +++ b/internal/integrationtest/database_migration_connection_test.go @@ -10,9 +10,10 @@ import ( "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/resourcediscovery" "github.com/oracle/terraform-provider-oci/internal/tfresource" "github.com/oracle/terraform-provider-oci/internal/utils" @@ -26,6 +27,8 @@ import ( ) 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`}, } @@ -41,7 +44,7 @@ var ( "pdb_name": acctest.Representation{RepType: acctest.Required, Create: `pdbName`}, } - kmsKeyId = utils.GetEnvSettingWithBlankDefault("kms_key_ocid") + kmsKeyId = utils.GetEnvSettingWithBlankDefault("kms_key_id") KmsKeyIdVariableStr = fmt.Sprintf("\nvariable \"kms_key_id\" { default = \"%s\" }\n", kmsKeyId) DatabaseHomeConfig = ` @@ -56,8 +59,7 @@ var ( db_home_id = "${data.oci_database_db_homes.t.db_homes.0.id}" }` - ConnectionResourceConfigTarget = DatabaseMigrationConnectionResourceDependencies + - acctest.GenerateResourceFromRepresentationMap("oci_database_migration_connection", "test_connection", acctest.Optional, acctest.Update, connectionRepresentationTarget) + ConnectionResourceConfigTarget = acctest.GenerateResourceFromRepresentationMap("oci_database_migration_connection", "test_connection", acctest.Optional, acctest.Update, connectionRepresentationTarget) connectionSingularDataSourceRepresentationCon = map[string]interface{}{ "connection_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_migration_connection.test_connection.id}`}, @@ -79,11 +81,10 @@ var ( "database_type": acctest.Representation{RepType: acctest.Required, Create: `MANUAL`}, "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: connectionConnectDescriptorRepresentation}, - "database_id": acctest.Representation{RepType: acctest.Optional, Create: `${data.oci_database_databases.db.databases.0.id}`}, - "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`, Update: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}`}, - "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, + "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`}, @@ -95,12 +96,24 @@ var ( "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: `${oci_database_autonomous_database.test_autonomous_database.id}`}, + "database_id": acctest.Representation{RepType: acctest.Required, Create: `${var.database_id}`}, + "private_endpoint": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionPrivateEndpointRepresentation}, + "display_name": acctest.Representation{RepType: acctest.Required, Create: `TF_display_test_create`, 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`}, } connectionConnectDescriptorRepresentationMIG = map[string]interface{}{ - "connect_string": acctest.Representation{RepType: acctest.Required, Create: `(description=(address=(port=1521)(host=10.0.0.125))(connect_data=(service_name=pdb1120.exadbpriv.exadbvcn.oraclevcn.com)))`, Update: `(description=(address=(port=1521)(host=10.0.0.125))(connect_data=(service_name=pdb1120.exadbpriv.exadbvcn.oraclevcn.com)))`}, + "connect_string": acctest.Representation{RepType: acctest.Required, Create: `(description=(address=(port=1521)(host=10.0.0.42))(connect_data=(service_name=pdb.sub10311806420.vcntesttf.oraclevcn.com)))`, Update: `(description=(address=(port=1521)(host=10.0.0.42))(connect_data=(service_name=pdb.sub10311806420.vcntesttf.oraclevcn.com)))`}, } connectionRepresentationSource = map[string]interface{}{ "admin_credentials": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionAdminCredentialsRepresentation}, @@ -108,19 +121,19 @@ var ( "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: `${data.oci_database_databases.t.databases.0.id}`}, + "database_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.database_source}`}, "display_name": acctest.Representation{RepType: acctest.Required, Create: `TF_display_test_create_source`, Update: `TF_display_test_update_source`}, "ssh_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionSshDetailsRepresentation}, "private_endpoint": acctest.RepresentationGroup{RepType: acctest.Required, Group: connectionPrivateEndpointRepresentation}, } connectionAdminCredentialsRepresentation = map[string]interface{}{ - "password": acctest.Representation{RepType: acctest.Required, Create: `ORcl##4567890`, Update: `ORcl##4567890`}, + "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: `ORcl##4567890`}, + "password": acctest.Representation{RepType: acctest.Required, Create: `DMS-pswd-2023#-sjc`}, "username": acctest.Representation{RepType: acctest.Required, Create: `admin`}, } @@ -137,20 +150,21 @@ var ( } connectionConnectDescriptorRepresentation = map[string]interface{}{ - "connect_string": acctest.Representation{RepType: acctest.Optional, Create: `connectString`, Update: `connectString2`}, - "database_service_name": acctest.Representation{RepType: acctest.Optional, Create: `${oci_core_services.test_services.name}`}, - "host": acctest.Representation{RepType: acctest.Optional, Create: `host`, Update: `host2`}, - "port": acctest.Representation{RepType: acctest.Optional, Create: `10`, Update: `11`}, + "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: `${oci_core_subnet.test_subnet.id}`}, - "vcn_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_vcn.test_vcn.id}`}, + "subnet_id": acctest.Representation{RepType: acctest.Required, Create: `${var.subnet_id}`}, + "vcn_id": acctest.Representation{RepType: acctest.Required, Create: `${var.vcn_id}`}, } connectionSshDetailsRepresentation = map[string]interface{}{ - "host": acctest.Representation{RepType: acctest.Required, Create: `10.0.0.125`, Update: `10.0.0.125`}, - "sshkey": acctest.Representation{RepType: acctest.Required, Create: `ssh-rsa KKKLK3NzaC1yc2EAAAADAQABAAABAQC+UC9MFNA55NIVtKPIBCNw7++ACXhD0hx+Zyj25JfHykjz/QU3Q5FAU3DxDbVXyubgXfb/GJnrKRY8O4QDdvnZZRvQFFEOaApThAmCAM5MuFUIHdFvlqP+0W+ZQnmtDhwVe2NCfcmOrMuaPEgOKO3DOW6I/qOOdO691Xe2S9NgT9HhN0ZfFtEODVgvYulgXuCCXsJs+NUqcHAOxxFUmwkbPvYi0P0e2DT8JKeiOOC8VKUEgvVx+GKmqasm+Y6zHFW7vv3g2GstE1aRs3mttHRoC/JPM86PRyIxeWXEMzyG5wHqUu4XZpDbnWNxi6ugxnAGiL3CrIFdCgRNgHz5qS1l MustWin`, Update: `ssh-rsa KKKLK3NzaC1yc2EAAAADAQABAAABAQC+UC9MFNA55NIVtKPIBCNw7++ACXhD0hx+Zyj25JfHykjz/QU3Q5FAU3DxDbVXyubgXfb/GJnrKRY8O4QDdvnZZRvQFFEOaApThAmCAM5MuFUIHdFvlqP+0W+ZQnmtDhwVe2NCfcmOrMuaPEgOKO3DOW6I/qOOdO691Xe2S9NgT9HhN0ZfFtEODVgvYulgXuCCXsJs+NUqcHAOxxFUmwkbPvYi0P0e2DT8JKeiOOC8VKUEgvVx+GKmqasm+Y6zHFW7vv3g2GstE1aRs3mttHRoC/JPM86PRyIxeWXEMzyG5wHqUu4XZpDbnWNxi6ugxnAGiL3CrIFdCgRNgHz5qS1l MustWin`}, - "user": acctest.Representation{RepType: acctest.Required, Create: `opc`, Update: `opc`}, + "host": acctest.Representation{RepType: acctest.Required, Create: `10.0.0.220`, Update: `10.0.0.220`}, + "sshkey": acctest.Representation{RepType: acctest.Required, Create: `${var.ssh_key}`, Update: `${var.ssh_key}`}, + "user": acctest.Representation{RepType: acctest.Required, Create: `opc`, Update: `opc`}, + "sudo_location": acctest.Representation{RepType: acctest.Required, Create: `/usr/bin/sudo`, Update: `/usr/bin/sudo`}, } @@ -167,7 +181,7 @@ var ( SubnetData = ` data "oci_core_subnet" "test_subnet" { - subnet_id = "${oci_core_subnet.test_subnet.id}" + subnet_id = "${var.subnet_id}" }` SubnetDataDomainOutput = ` output "oci_core_subnet_test_subnetSource_subnet_domain_name" { @@ -202,27 +216,25 @@ var ( compartment_id = "${var.compartment_id}" db_system_id = "${oci_database_db_system.t.id}" }` - AutonomousDatabaseResourceDependenciesCON = //DefinedTagsDependencies + - acctest.GenerateDataSourceFromRepresentationMap("oci_database_autonomous_db_versions", "test_autonomous_db_versions", acctest.Required, acctest.Create, DatabaseDatabaseAutonomousDbVersionDataSourceRepresentation) + + 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 = //DefinedTagsDependencies + - acctest.GenerateDataSourceFromRepresentationMap("oci_database_autonomous_db_versions", "test_autonomous_db_versions_source", acctest.Required, acctest.Create, DatabaseDatabaseAutonomousDbVersionDataSourceRepresentation) + + 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: `${lower("${data.oci_identity_availability_domains.test_availability_domains.availability_domains.2.name}")}`}, + "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: `${oci_core_subnet.test_subnet.id}`}, + "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: `myDB`}, @@ -230,28 +242,6 @@ var ( "db_system_options": acctest.RepresentationGroup{RepType: acctest.Optional, Group: goldenGateDbSystemOption}, "private_ip": acctest.Representation{RepType: acctest.Required, Create: `10.0.0.125`}, } - - DatabaseMigrationConnectionResourceDependencies = acctest.GenerateDataSourceFromRepresentationMap("oci_core_services", "test_services", acctest.Required, acctest.Create, CoreCoreServiceDataSourceRepresentation) + - acctest.GenerateResourceFromRepresentationMap("oci_core_subnet", "test_subnet", acctest.Required, acctest.Create, CoreSubnetRepresentation) + - acctest.GenerateResourceFromRepresentationMap("oci_core_vcn", "test_vcn", acctest.Required, acctest.Create, CoreVcnRepresentation) + - acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_database", "test_autonomous_database", acctest.Required, acctest.Create, DatabaseAutonomousDatabaseRepresentation) + - AutonomousDatabaseResourceDependenciesCON + - KmsKeyIdVariableStr + - KmsVaultIdVariableStr - - ConnectionResourceDependenciesTargetCommon = acctest.GenerateDataSourceFromRepresentationMap("oci_core_services", "test_services", acctest.Required, acctest.Create, CoreCoreServiceDataSourceRepresentation) + - acctest.GenerateResourceFromRepresentationMap("oci_core_subnet", "test_subnet", acctest.Required, acctest.Create, CoreSubnetRepresentation) + - acctest.GenerateResourceFromRepresentationMap("oci_core_vcn", "test_vcn", acctest.Required, acctest.Create, CoreVcnRepresentation) + - SubnetData + - acctest.GenerateResourceFromRepresentationMap("oci_database_autonomous_database", "test_autonomous_database", acctest.Required, acctest.Create, DatabaseAutonomousDatabaseRepresentation) + - AutonomousDatabaseResourceDependenciesCON //+ - - ConnectionResourceDependenciesSource = acctest.GenerateResourceFromRepresentationMap("oci_database_db_system", "t", acctest.Optional, acctest.Create, goldenGateDbSystemRepresentationSOURCE) + - DatabaseData + - DatabaseHomeConfig + - KmsKeyIdVariableStr + - AvailabilityDomainConfig + - KmsVaultIdVariableStr ) // issue-routing-tag: database_migration/default @@ -264,8 +254,31 @@ func TestDatabaseMigrationConnectionResource_basic(t *testing.T) { compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) - compartmentIdU := utils.GetEnvSettingWithBlankDefault("compartment_id_for_update") + sshKeyId := utils.GetEnvSettingWithBlankDefault("ssh_key") + sshKeyIdStr := fmt.Sprintf("variable \"ssh_key\" { default = \"%s\" }\n", sshKeyId) + + databaseId := utils.GetEnvSettingWithBlankDefault("database_id") + databaseIdVariableStr := fmt.Sprintf("variable \"database_id\" { default = \"%s\" }\n", databaseId) + + kmsKeyId := utils.GetEnvSettingWithBlankDefault("kms_key_id") + KmsKeyIdVariableStr := fmt.Sprintf("\nvariable \"kms_key_id\" { default = \"%s\" }\n", kmsKeyId) + + kmsVaultId := utils.GetEnvSettingWithBlankDefault("kms_vault_id") + KmsVaultIdVariableStr := fmt.Sprintf("\nvariable \"kms_vault_id\" { default = \"%s\" }\n", kmsVaultId) + + vcnId := utils.GetEnvSettingWithBlankDefault("vcn_id") + vcnIdVariableStr := fmt.Sprintf("variable \"vcn_id\" { default = \"%s\" }\n", vcnId) + subnetId := utils.GetEnvSettingWithBlankDefault("subnet_id") + subnetStr := fmt.Sprintf("variable \"subnet_id\" { default = \"%s\" }\n", subnetId) + + databaseSourceId := utils.GetEnvSettingWithBlankDefault("database_source_id") + databaseSourceStr := fmt.Sprintf("variable \"database_source\" { default = \"%s\" }\n", databaseSourceId) + + nsgId := utils.GetEnvSettingWithBlankDefault("nsg_id") + nsgIdStr := fmt.Sprintf("variable \"nsg_id\" { default = \"%s\" }\n", nsgId) + + compartmentIdU := utils.GetEnvSettingWithBlankDefault("compartment_id_for_update") compartmentIdUVariableStr := fmt.Sprintf("variable \"compartment_id_for_update\" { default = \"%s\" }\n", compartmentIdU) resourceName := "oci_database_migration_connection.test_connection" @@ -274,13 +287,13 @@ func TestDatabaseMigrationConnectionResource_basic(t *testing.T) { 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+DatabaseMigrationConnectionResourceDependencies+ + acctest.SaveConfigContent(config+compartmentIdVariableStr+databaseIdVariableStr+KmsKeyIdVariableStr+KmsVaultIdVariableStr+vcnIdVariableStr+subnetStr+databaseSourceStr+nsgIdStr+ acctest.GenerateResourceFromRepresentationMap("oci_database_migration_connection", "test_connection", acctest.Optional, acctest.Create, connectionRepresentationTarget), "databasemigration", "connection", t) acctest.ResourceTest(t, testAccCheckDatabaseMigrationConnectionDestroy, []resource.TestStep{ // verify Create { - Config: config + compartmentIdVariableStr + DatabaseMigrationConnectionResourceDependencies + + Config: config + compartmentIdVariableStr + databaseIdVariableStr + KmsKeyIdVariableStr + KmsVaultIdVariableStr + vcnIdVariableStr + subnetStr + databaseSourceStr + nsgIdStr + acctest.GenerateResourceFromRepresentationMap("oci_database_migration_connection", "test_connection", acctest.Required, acctest.Create, connectionRepresentationTarget), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "admin_credentials.#", "1"), @@ -301,15 +314,15 @@ func TestDatabaseMigrationConnectionResource_basic(t *testing.T) { // delete before next Create { - Config: config + compartmentIdVariableStr + DatabaseMigrationConnectionResourceDependencies, + Config: config + compartmentIdVariableStr + databaseIdVariableStr + KmsKeyIdVariableStr + KmsVaultIdVariableStr + vcnIdVariableStr + subnetStr + sshKeyIdStr + databaseSourceStr + nsgIdStr, }, // verify Create with optionals { - Config: config + compartmentIdVariableStr + DatabaseMigrationConnectionResourceDependencies + + Config: config + compartmentIdVariableStr + databaseIdVariableStr + KmsKeyIdVariableStr + KmsVaultIdVariableStr + vcnIdVariableStr + subnetStr + sshKeyIdStr + databaseSourceStr + nsgIdStr + acctest.GenerateResourceFromRepresentationMap("oci_database_migration_connection", "test_connection", acctest.Optional, acctest.Create, connectionRepresentationTarget), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "admin_credentials.#", "1"), - resource.TestCheckResourceAttr(resourceName, "admin_credentials.0.password", "ORcl##4567890"), + resource.TestCheckResourceAttr(resourceName, "admin_credentials.0.password", "Cr3dential_23#"), resource.TestCheckResourceAttr(resourceName, "admin_credentials.0.username", "admin"), resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), resource.TestCheckResourceAttrSet(resourceName, "database_id"), @@ -335,14 +348,14 @@ func TestDatabaseMigrationConnectionResource_basic(t *testing.T) { }, // verify Update to the compartment (the compartment will be switched back in the next step) { - Config: config + compartmentIdVariableStr + compartmentIdUVariableStr + DatabaseMigrationConnectionResourceDependencies + + Config: config + compartmentIdVariableStr + compartmentIdUVariableStr + databaseIdVariableStr + KmsKeyIdVariableStr + KmsVaultIdVariableStr + vcnIdVariableStr + subnetStr + sshKeyIdStr + databaseSourceStr + nsgIdStr + acctest.GenerateResourceFromRepresentationMap("oci_database_migration_connection", "test_connection", acctest.Optional, acctest.Create, acctest.RepresentationCopyWithNewProperties(connectionRepresentationTarget, map[string]interface{}{ "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id_for_update}`}, })), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "admin_credentials.#", "1"), - resource.TestCheckResourceAttr(resourceName, "admin_credentials.0.password", "ORcl##4567890"), + resource.TestCheckResourceAttr(resourceName, "admin_credentials.0.password", "Cr3dential_23#"), resource.TestCheckResourceAttr(resourceName, "admin_credentials.0.username", "admin"), resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentIdU), resource.TestCheckResourceAttrSet(resourceName, "database_id"), @@ -367,11 +380,11 @@ func TestDatabaseMigrationConnectionResource_basic(t *testing.T) { // verify updates to updatable parameters { - Config: config + compartmentIdVariableStr + DatabaseMigrationConnectionResourceDependencies + + Config: config + compartmentIdVariableStr + databaseIdVariableStr + KmsKeyIdVariableStr + KmsVaultIdVariableStr + vcnIdVariableStr + subnetStr + sshKeyIdStr + databaseSourceStr + nsgIdStr + acctest.GenerateResourceFromRepresentationMap("oci_database_migration_connection", "test_connection", acctest.Optional, acctest.Update, connectionRepresentationTarget), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "admin_credentials.#", "1"), - resource.TestCheckResourceAttr(resourceName, "admin_credentials.0.password", "ORcl##4567890"), + resource.TestCheckResourceAttr(resourceName, "admin_credentials.0.password", "Cr3dential_23#"), resource.TestCheckResourceAttr(resourceName, "admin_credentials.0.username", "admin"), resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), resource.TestCheckResourceAttrSet(resourceName, "database_id"), @@ -397,7 +410,7 @@ func TestDatabaseMigrationConnectionResource_basic(t *testing.T) { { Config: config + acctest.GenerateDataSourceFromRepresentationMap("oci_database_migration_connections", "test_connections", acctest.Optional, acctest.Update, connectionDataSourceRepresentationCon) + - compartmentIdVariableStr + DatabaseMigrationConnectionResourceDependencies + + compartmentIdVariableStr + databaseIdVariableStr + KmsKeyIdVariableStr + KmsVaultIdVariableStr + vcnIdVariableStr + subnetStr + sshKeyIdStr + databaseSourceStr + nsgIdStr + acctest.GenerateResourceFromRepresentationMap("oci_database_migration_connection", "test_connection", acctest.Optional, acctest.Update, connectionRepresentationTarget), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), @@ -410,7 +423,7 @@ func TestDatabaseMigrationConnectionResource_basic(t *testing.T) { { Config: config + acctest.GenerateDataSourceFromRepresentationMap("oci_database_migration_connection", "test_connection", acctest.Required, acctest.Create, connectionSingularDataSourceRepresentationCon) + - compartmentIdVariableStr + ConnectionResourceConfigTarget, + compartmentIdVariableStr + databaseIdVariableStr + KmsKeyIdVariableStr + KmsVaultIdVariableStr + vcnIdVariableStr + subnetStr + sshKeyIdStr + databaseSourceStr + nsgIdStr + ConnectionResourceConfigTarget, Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttrSet(singularDatasourceName, "connection_id"), resource.TestCheckResourceAttr(singularDatasourceName, "admin_credentials.#", "1"), @@ -428,7 +441,7 @@ func TestDatabaseMigrationConnectionResource_basic(t *testing.T) { }, // verify resource import { - Config: config + DatacatalogConnectionRequiredOnlyResource, + Config: config + DatabaseMigrationConnectionRequiredOnlyResource, ImportState: true, ImportStateVerify: true, ImportStateVerifyIgnore: []string{ @@ -527,7 +540,6 @@ func getConnectionIds(compartment string) ([]string, error) { var resourceIds []string compartmentId := compartment databaseMigrationClient := acctest.GetTestClients(&schema.ResourceData{}).DatabaseMigrationClient() - listConnectionsRequest := oci_database_migration.ListConnectionsRequest{} listConnectionsRequest.CompartmentId = &compartmentId listConnectionsRequest.LifecycleState = oci_database_migration.ListConnectionsLifecycleStateActive diff --git a/internal/integrationtest/database_migration_migration_test.go b/internal/integrationtest/database_migration_migration_test.go index 95a20a760ed..c423a37a05f 100644 --- a/internal/integrationtest/database_migration_migration_test.go +++ b/internal/integrationtest/database_migration_migration_test.go @@ -91,7 +91,7 @@ var ( "object_storage_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: migrationDataTransferMediumDetailsObjectStorageDetailsRepresentation}, } migrationDatapumpSettingsRepresentation = map[string]interface{}{ - "export_directory_object": acctest.RepresentationGroup{RepType: acctest.Required, Group: migrationDatapumpSettingsExportDirectoryObjectRepresentation}, + "export_directory_object": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatabaseMigrationMigrationDatapumpSettingsExportDirectoryObjectRepresentation}, "metadata_remaps": acctest.RepresentationGroup{RepType: acctest.Required, Group: migrationDatapumpSettingsMetadataRemapsRepresentation}, } migrationExcludeObjectsRepresentation = map[string]interface{}{ @@ -138,7 +138,7 @@ var ( "is_cluster": acctest.Representation{RepType: acctest.Optional, Create: `false`, Update: `true`}, "table_exists_action": acctest.Representation{RepType: acctest.Optional, Create: `TRUNCATE`, Update: `REPLACE`}, } - migrationDatapumpSettingsExportDirectoryObjectRepresentation = map[string]interface{}{ + DatabaseMigrationMigrationDatapumpSettingsExportDirectoryObjectRepresentation = map[string]interface{}{ "name": acctest.Representation{RepType: acctest.Required, Create: `test_export_dir`, Update: `test_export_dir`}, "path": acctest.Representation{RepType: acctest.Required, Create: `/u01/app/oracle/product/19.0.0.0/dbhome_1/rdbms/log`, Update: `/u01/app/oracle/product/19.0.0.0/dbhome_1/rdbms/log`}, } @@ -206,6 +206,12 @@ func TestDatabaseMigrationMigrationResource_basic(t *testing.T) { compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + /*databaseId := utils.GetEnvSettingWithBlankDefault("database_id") + databaseIdVariableStr := fmt.Sprintf("variable \"database_id\" { default = \"%s\" }\n", databaseId)*/ + + /*sourceDbId := utils.GetEnvSettingWithBlankDefault("source_connection_container_id") + sourceDbIdStr := fmt.Sprintf("variable \"source_db_id\" { default = \"%s\" }\n", sourceDbId)*/ + compartmentIdU := utils.GetEnvSettingWithBlankDefault("compartment_id_for_update") compartmentIdUVariableStr := fmt.Sprintf("variable \"compartment_id_for_update\" { default = \"%s\" }\n", compartmentIdU) @@ -507,6 +513,7 @@ func TestDatabaseMigrationMigrationResource_basic(t *testing.T) { resource.TestCheckResourceAttr(singularDatasourceName, "golden_gate_details.0.hub.0.source_db_admin_credentials.#", "1"), resource.TestCheckResourceAttr(singularDatasourceName, "golden_gate_details.0.hub.0.source_db_admin_credentials.0.username", "ggadmin"), resource.TestCheckResourceAttr(singularDatasourceName, "golden_gate_details.0.hub.0.target_db_admin_credentials.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "golden_gate_details.0.hub.0.target_db_admin_credentials.0.username", "ggadmin"), resource.TestCheckResourceAttr(singularDatasourceName, "golden_gate_details.0.hub.0.url", "https://129.149.57.241"), resource.TestCheckResourceAttr(singularDatasourceName, "golden_gate_details.0.settings.#", "1"), diff --git a/internal/integrationtest/dataflow_application_test.go b/internal/integrationtest/dataflow_application_test.go index 2352ca2a37d..39212d5f787 100644 --- a/internal/integrationtest/dataflow_application_test.go +++ b/internal/integrationtest/dataflow_application_test.go @@ -70,6 +70,7 @@ var ( "metastore_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.metastore_id}`}, "parameters": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DataflowApplicationParametersRepresentation}, "private_endpoint_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_dataflow_private_endpoint.test_private_endpoint.id}`}, + "pool_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_dataflow_pool.test_pool.id}`}, "type": acctest.Representation{RepType: acctest.Optional, Create: `BATCH`}, "warehouse_bucket_uri": acctest.Representation{RepType: acctest.Optional, Create: `${var.dataflow_warehouse_bucket_uri}`}, "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreDefinedTagsChangesForDataFlowResource}, @@ -106,6 +107,7 @@ var ( DataFlowApplicationResourceDependencies = acctest.GenerateResourceFromRepresentationMap("oci_core_subnet", "test_subnet", acctest.Required, acctest.Create, CoreSubnetRepresentation) + acctest.GenerateResourceFromRepresentationMap("oci_core_vcn", "test_vcn", acctest.Required, acctest.Create, CoreVcnRepresentation) + + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_pool", "test_pool", acctest.Required, acctest.Create, DataflowPoolRepresentation) + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_private_endpoint", "test_private_endpoint", acctest.Required, acctest.Create, DataflowPrivateEndpointRepresentation) + DefinedTagsDependencies + acctest.GenerateResourceFromRepresentationMap("oci_logging_log", "test_log", acctest.Required, acctest.Create, DataflowApplicationLogRepresentation) + @@ -210,6 +212,7 @@ func TestDataflowApplicationResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "parameters.#", "1"), resource.TestCheckResourceAttr(resourceName, "parameters.0.name", "name"), resource.TestCheckResourceAttr(resourceName, "parameters.0.value", "value"), + resource.TestCheckResourceAttrSet(resourceName, "pool_id"), resource.TestCheckResourceAttrSet(resourceName, "private_endpoint_id"), resource.TestCheckResourceAttr(resourceName, "spark_version", "2.4"), resource.TestCheckResourceAttrSet(resourceName, "state"), @@ -266,6 +269,7 @@ func TestDataflowApplicationResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "parameters.#", "1"), resource.TestCheckResourceAttr(resourceName, "parameters.0.name", "name"), resource.TestCheckResourceAttr(resourceName, "parameters.0.value", "value"), + resource.TestCheckResourceAttrSet(resourceName, "pool_id"), resource.TestCheckResourceAttrSet(resourceName, "private_endpoint_id"), resource.TestCheckResourceAttr(resourceName, "spark_version", "2.4"), resource.TestCheckResourceAttrSet(resourceName, "state"), @@ -320,6 +324,7 @@ func TestDataflowApplicationResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "parameters.#", "1"), resource.TestCheckResourceAttr(resourceName, "parameters.0.name", "name2"), resource.TestCheckResourceAttr(resourceName, "parameters.0.value", "value2"), + resource.TestCheckResourceAttrSet(resourceName, "pool_id"), resource.TestCheckResourceAttrSet(resourceName, "private_endpoint_id"), resource.TestCheckResourceAttr(resourceName, "spark_version", "2.4.4"), resource.TestCheckResourceAttrSet(resourceName, "state"), @@ -357,6 +362,7 @@ func TestDataflowApplicationResource_basic(t *testing.T) { resource.TestCheckResourceAttr(datasourceName, "applications.0.language", "SCALA"), resource.TestCheckResourceAttrSet(datasourceName, "applications.0.owner_principal_id"), resource.TestCheckResourceAttrSet(datasourceName, "applications.0.owner_user_name"), + resource.TestCheckResourceAttrSet(datasourceName, "applications.0.pool_id"), resource.TestCheckResourceAttr(datasourceName, "applications.0.spark_version", "2.4.4"), resource.TestCheckResourceAttrSet(datasourceName, "applications.0.state"), resource.TestCheckResourceAttrSet(datasourceName, "applications.0.time_created"), diff --git a/internal/integrationtest/dataflow_invoke_run_test.go b/internal/integrationtest/dataflow_invoke_run_test.go index cefe72d70d8..1381fde6f51 100644 --- a/internal/integrationtest/dataflow_invoke_run_test.go +++ b/internal/integrationtest/dataflow_invoke_run_test.go @@ -64,6 +64,7 @@ var ( "type": acctest.Representation{RepType: acctest.Optional, Create: `BATCH`}, "warehouse_bucket_uri": acctest.Representation{RepType: acctest.Optional, Create: `${var.dataflow_warehouse_bucket_uri}`}, "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreDefinedTagsChangesForDataFlowResource}, + "pool_id": acctest.Representation{RepType: acctest.Optional, Create: ``}, } DataflowInvokeRunApplicationLogConfigRepresentation = map[string]interface{}{ "log_group_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_logging_log_group.test_log_group.id}`}, @@ -91,6 +92,7 @@ var ( acctest.GenerateResourceFromRepresentationMap("oci_logging_log", "test_log", acctest.Required, acctest.Create, DataflowApplicationLogRepresentation) + acctest.GenerateResourceFromRepresentationMap("oci_logging_log_group", "test_log_group", acctest.Required, acctest.Create, DataflowApplicationLogGroupRepresentation) + acctest.GenerateResourceFromRepresentationMap("oci_objectstorage_bucket", "test_bucket", acctest.Required, acctest.Create, ObjectStorageBucketRepresentation) + + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_pool", "test_pool", acctest.Optional, acctest.Create, DataflowPoolRepresentation) + acctest.GenerateDataSourceFromRepresentationMap("oci_objectstorage_namespace", "test_namespace", acctest.Required, acctest.Create, ObjectStorageObjectStorageNamespaceSingularDataSourceRepresentation) ) @@ -129,6 +131,9 @@ func TestDataflowInvokeRunResource_basic(t *testing.T) { acctest.ResourceTest(t, nil, []resource.TestStep{ // verify Create { + PreConfig: func() { + fmt.Println("step 1") + }, Config: config + compartmentIdVariableStr + fileUriVariableStr + archiveUriVariableStr + logsBucketUriVariableStr + warehouseBucketUriVariableStr + metastoreIdVariableStr + DataflowInvokeRunResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_invoke_run", "test_invoke_run", acctest.Required, acctest.Create, DataflowInvokeRunRepresentation), Check: acctest.ComposeAggregateTestCheckFuncWrapper( @@ -145,10 +150,16 @@ func TestDataflowInvokeRunResource_basic(t *testing.T) { // delete before next Create { + PreConfig: func() { + fmt.Println("step 2, in delete") + }, Config: config + compartmentIdVariableStr + fileUriVariableStr + archiveUriVariableStr + logsBucketUriVariableStr + warehouseBucketUriVariableStr + metastoreIdVariableStr + DataflowInvokeRunResourceDependencies, }, // verify Create with optionals { + PreConfig: func() { + fmt.Println("step 3, create with optionals") + }, Config: config + compartmentIdVariableStr + fileUriVariableStr + archiveUriVariableStr + logsBucketUriVariableStr + warehouseBucketUriVariableStr + metastoreIdVariableStr + DataflowInvokeRunResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_invoke_run", "test_invoke_run", acctest.Optional, acctest.Create, DataflowInvokeRunRepresentation), Check: acctest.ComposeAggregateTestCheckFuncWrapper( @@ -179,7 +190,6 @@ func TestDataflowInvokeRunResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "parameters.#", "1"), resource.TestCheckResourceAttr(resourceName, "parameters.0.name", "name"), resource.TestCheckResourceAttr(resourceName, "parameters.0.value", "value"), - resource.TestCheckResourceAttrSet(resourceName, "spark_version"), resource.TestCheckResourceAttrSet(resourceName, "state"), resource.TestCheckResourceAttrSet(resourceName, "time_created"), resource.TestCheckResourceAttrSet(resourceName, "time_updated"), @@ -236,7 +246,6 @@ func TestDataflowInvokeRunResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "parameters.#", "1"), resource.TestCheckResourceAttr(resourceName, "parameters.0.name", "name"), resource.TestCheckResourceAttr(resourceName, "parameters.0.value", "value"), - resource.TestCheckResourceAttrSet(resourceName, "spark_version"), resource.TestCheckResourceAttrSet(resourceName, "state"), resource.TestCheckResourceAttrSet(resourceName, "time_created"), resource.TestCheckResourceAttrSet(resourceName, "time_updated"), @@ -255,6 +264,9 @@ func TestDataflowInvokeRunResource_basic(t *testing.T) { // verify updates to updatable parameters { + PreConfig: func() { + fmt.Println("step 5 updatable params") + }, Config: config + compartmentIdVariableStr + fileUriVariableStr + archiveUriVariableStr + logsBucketUriVariableStr + warehouseBucketUriVariableStr + metastoreIdVariableStr + DataflowInvokeRunResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_invoke_run", "test_invoke_run", acctest.Optional, acctest.Update, DataflowInvokeRunRepresentation), Check: acctest.ComposeAggregateTestCheckFuncWrapper( @@ -284,7 +296,6 @@ func TestDataflowInvokeRunResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "parameters.#", "1"), resource.TestCheckResourceAttr(resourceName, "parameters.0.name", "name"), resource.TestCheckResourceAttr(resourceName, "parameters.0.value", "value"), - resource.TestCheckResourceAttrSet(resourceName, "spark_version"), resource.TestCheckResourceAttrSet(resourceName, "state"), resource.TestCheckResourceAttrSet(resourceName, "time_created"), resource.TestCheckResourceAttrSet(resourceName, "time_updated"), @@ -302,6 +313,9 @@ func TestDataflowInvokeRunResource_basic(t *testing.T) { }, // verify datasource { + PreConfig: func() { + fmt.Println("step 6, verify datasource") + }, Config: config + acctest.GenerateDataSourceFromRepresentationMap("oci_dataflow_invoke_runs", "test_invoke_runs", acctest.Optional, acctest.Update, DataflowDataflowInvokeRunDataSourceRepresentation) + compartmentIdVariableStr + fileUriVariableStr + archiveUriVariableStr + logsBucketUriVariableStr + warehouseBucketUriVariableStr + metastoreIdVariableStr + DataflowInvokeRunResourceDependencies + @@ -309,7 +323,6 @@ func TestDataflowInvokeRunResource_basic(t *testing.T) { Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttrSet(datasourceName, "application_id"), resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), - resource.TestCheckResourceAttr(datasourceName, "runs.#", "1"), resource.TestCheckResourceAttrSet(datasourceName, "runs.0.application_id"), resource.TestCheckResourceAttr(datasourceName, "runs.0.compartment_id", compartmentId), @@ -332,6 +345,30 @@ func TestDataflowInvokeRunResource_basic(t *testing.T) { }, // verify singular datasource { + + PreConfig: func() { + fmt.Println("step 7, singular datasource") + + acctest.WaitTillCondition(acctest.TestAccProvider, &resId, dataflowRunAvailableShouldWaitCondition, time.Duration(20*time.Minute), + dataFlowInvokeRunFetchOperation, "dataflow", false)() + client := acctest.TestAccProvider.Meta().(*tf_client.OracleClients).DataFlowClient() + run, _ := client.GetRun(context.Background(), oci_dataflow.GetRunRequest{ + RunId: &resId, + RequestMetadata: common.RequestMetadata{ + RetryPolicy: tfresource.GetRetryPolicy(true, "dataflow"), + }, + }) + + stopPoolRequest := oci_dataflow.StopPoolRequest{} + stopPoolRequest.PoolId = run.PoolId + stopPoolRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(true, "dataflow") + _, errorStopping := client.StopPool(context.Background(), stopPoolRequest) + if errorStopping != nil { + fmt.Printf("Error stopping Pool %s, It is possible that the resource is already stopped. Please verify manually \n", errorStopping) + } + acctest.WaitTillCondition(acctest.TestAccProvider, run.PoolId, DataflowPoolStopWaitCondition, time.Duration(10*time.Minute), + DataflowPoolSweepResponseFetchOperation, "dataflow", true)() + }, Config: config + acctest.GenerateDataSourceFromRepresentationMap("oci_dataflow_invoke_run", "test_invoke_run", acctest.Required, acctest.Create, DataflowDataflowInvokeRunSingularDataSourceRepresentation) + compartmentIdVariableStr + fileUriVariableStr + archiveUriVariableStr + logsBucketUriVariableStr + warehouseBucketUriVariableStr + metastoreIdVariableStr + DataflowInvokeRunResourceConfig, diff --git a/internal/integrationtest/dataflow_pool_test.go b/internal/integrationtest/dataflow_pool_test.go new file mode 100644 index 00000000000..1b09293cfb4 --- /dev/null +++ b/internal/integrationtest/dataflow_pool_test.go @@ -0,0 +1,447 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "context" + "fmt" + "testing" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" + "github.com/oracle/oci-go-sdk/v65/common" + oci_dataflow "github.com/oracle/oci-go-sdk/v65/dataflow" + + "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/tfresource" + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + DataflowPoolRequiredOnlyResource = DataflowPoolResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_pool", "test_pool", acctest.Required, acctest.Create, DataflowPoolRepresentation) + + DataflowPoolResourceConfig = DataflowPoolResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_pool", "test_pool", acctest.Optional, acctest.Update, DataflowPoolRepresentation) + + DataflowDataflowPoolSingularDataSourceRepresentation = map[string]interface{}{ + "pool_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_dataflow_pool.test_pool.id}`}, + } + + DataflowDataflowPoolDataSourceRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "display_name": acctest.Representation{RepType: acctest.Optional, Create: `myPool`, Update: `displayName2`}, + "display_name_starts_with": acctest.Representation{RepType: acctest.Optional, Create: `displayNameStartsWith`}, + //"owner_principal_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_dataflow_owner_principal.test_owner_principal.id}`}, + "state": acctest.Representation{RepType: acctest.Optional, Create: `SCHEDULED`}, + "filter": acctest.RepresentationGroup{RepType: acctest.Required, Group: DataflowPoolDataSourceFilterRepresentation}} + DataflowPoolDataSourceFilterRepresentation = map[string]interface{}{ + "name": acctest.Representation{RepType: acctest.Required, Create: `id`}, + "values": acctest.Representation{RepType: acctest.Required, Create: []string{`${oci_dataflow_pool.test_pool.id}`}}, + } + + DataflowPoolRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "configurations": acctest.RepresentationGroup{RepType: acctest.Required, Group: DataflowPoolConfigurationsRepresentation}, + "display_name": acctest.Representation{RepType: acctest.Required, Create: `myPool`, Update: `displayName2`}, + //"defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`, Update: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}`}, + "description": acctest.Representation{RepType: acctest.Optional, Create: `description`, Update: `description2`}, + //"freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, + "idle_timeout_in_minutes": acctest.Representation{RepType: acctest.Optional, Create: `10`, Update: `11`}, + "schedules": acctest.RepresentationGroup{RepType: acctest.Required, Group: DataflowPoolSchedulesRepresentation}, + //"state": acctest.Representation{RepType: acctest.Optional, Create: `INACTIVE`, Update: `ACTIVE`}, + } + DataflowPoolConfigurationsRepresentation = map[string]interface{}{ + "max": acctest.Representation{RepType: acctest.Required, Create: `3`, Update: `3`}, + "min": acctest.Representation{RepType: acctest.Optional, Create: `0`, Update: `0`}, + "shape": acctest.Representation{RepType: acctest.Required, Create: `VM.Standard2.1`, Update: `VM.Standard2.2`}, + //"shape_config": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DataflowPoolConfigurationsShapeConfigRepresentation}, + } + DataflowPoolSchedulesRepresentation = map[string]interface{}{ + "day_of_week": acctest.Representation{RepType: acctest.Required, Create: `SUNDAY`, Update: `MONDAY`}, + "start_time": acctest.Representation{RepType: acctest.Required, Create: `10`, Update: `11`}, + //"stop_time": acctest.Representation{RepType: acctest.Required, Create: `10`, Update: `11`}, + } + //DataflowPoolConfigurationsShapeConfigRepresentation = map[string]interface{}{ + // "memory_in_gbs": acctest.Representation{RepType: acctest.Optional, Create: `1.0`, Update: `1.1`}, + // "ocpus": acctest.Representation{RepType: acctest.Optional, Create: `1.0`, Update: `1.1`}, + //} + + DataflowPoolResourceDependencies = "" //DefinedTagsDependencies +) + +// issue-routing-tag: dataflow/default +func TestDataflowPoolResource_basic(t *testing.T) { + httpreplay.SetScenario("TestDataflowPoolResource_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_dataflow_pool.test_pool" + datasourceName := "data.oci_dataflow_pools.test_pools" + singularDatasourceName := "data.oci_dataflow_pool.test_pool" + + 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+DataflowPoolResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_pool", "test_pool", acctest.Optional, acctest.Create, DataflowPoolRepresentation), "dataflow", "pool", t) + + acctest.ResourceTest(t, testAccCheckDataflowPoolDestroy, []resource.TestStep{ + // verify Create + { + PreConfig: func() { + fmt.Println("step 1") + }, + Config: config + compartmentIdVariableStr + DataflowPoolResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_pool", "test_pool", acctest.Required, acctest.Create, DataflowPoolRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "configurations.#", "1"), + resource.TestCheckResourceAttr(resourceName, "display_name", "myPool"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + return err + }, + ), + }, + + // delete before next Create + { + PreConfig: func() { + fmt.Println("step 2") + }, + Config: config + compartmentIdVariableStr + DataflowPoolResourceDependencies, + }, + // verify Create with optionals + { + PreConfig: func() { + fmt.Println("step 3") + }, + Config: config + compartmentIdVariableStr + DataflowPoolResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_pool", "test_pool", acctest.Optional, acctest.Create, DataflowPoolRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "configurations.#", "1"), + resource.TestCheckResourceAttr(resourceName, "configurations.0.max", "3"), + resource.TestCheckResourceAttr(resourceName, "configurations.0.min", "0"), + resource.TestCheckResourceAttr(resourceName, "configurations.0.shape", "VM.Standard2.1"), + //resource.TestCheckResourceAttr(resourceName, "configurations.0.shape_config.0.memory_in_gbs", "16"), + //resource.TestCheckResourceAttr(resourceName, "configurations.0.shape_config.0.ocpus", "1"), + resource.TestCheckResourceAttr(resourceName, "description", "description"), + resource.TestCheckResourceAttr(resourceName, "display_name", "myPool"), + //resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "idle_timeout_in_minutes", "10"), + //resource.TestCheckResourceAttrSet(resourceName, "owner_principal_id"), + resource.TestCheckResourceAttr(resourceName, "schedules.#", "1"), + resource.TestCheckResourceAttr(resourceName, "schedules.0.day_of_week", "SUNDAY"), + resource.TestCheckResourceAttr(resourceName, "schedules.0.start_time", "10"), + resource.TestCheckResourceAttrSet(resourceName, "time_created"), + resource.TestCheckResourceAttrSet(resourceName, "time_updated"), + + 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) + { + PreConfig: func() { + fmt.Println("step 4") + }, + Config: config + compartmentIdVariableStr + compartmentIdUVariableStr + DataflowPoolResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_pool", "test_pool", acctest.Optional, acctest.Create, + acctest.RepresentationCopyWithNewProperties(DataflowPoolRepresentation, map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id_for_update}`}, + })), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentIdU), + resource.TestCheckResourceAttr(resourceName, "configurations.#", "1"), + resource.TestCheckResourceAttr(resourceName, "configurations.0.max", "3"), + resource.TestCheckResourceAttr(resourceName, "configurations.0.min", "0"), + resource.TestCheckResourceAttr(resourceName, "configurations.0.shape", "VM.Standard2.1"), + //resource.TestCheckResourceAttr(resourceName, "configurations.0.shape_config.0.memory_in_gbs", "16"), + //resource.TestCheckResourceAttr(resourceName, "configurations.0.shape_config.0.ocpus", "1"), + resource.TestCheckResourceAttr(resourceName, "description", "description"), + resource.TestCheckResourceAttr(resourceName, "display_name", "myPool"), + //resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "idle_timeout_in_minutes", "10"), + //resource.TestCheckResourceAttrSet(resourceName, "owner_principal_id"), + resource.TestCheckResourceAttr(resourceName, "schedules.#", "1"), + resource.TestCheckResourceAttr(resourceName, "schedules.0.day_of_week", "SUNDAY"), + resource.TestCheckResourceAttr(resourceName, "schedules.0.start_time", "10"), + resource.TestCheckResourceAttrSet(resourceName, "time_created"), + resource.TestCheckResourceAttrSet(resourceName, "time_updated"), + + 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 + { + PreConfig: func() { + fmt.Println("step 5") + }, + Config: config + compartmentIdVariableStr + DataflowPoolResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_pool", "test_pool", acctest.Optional, acctest.Update, DataflowPoolRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "configurations.#", "1"), + resource.TestCheckResourceAttr(resourceName, "configurations.0.max", "3"), + resource.TestCheckResourceAttr(resourceName, "configurations.0.min", "0"), + resource.TestCheckResourceAttr(resourceName, "configurations.0.shape", "VM.Standard2.2"), + //resource.TestCheckResourceAttr(resourceName, "configurations.0.shape_config.#", "1"), + //resource.TestCheckResourceAttr(resourceName, "configurations.0.shape_config.0.memory_in_gbs", 16), + //resource.TestCheckResourceAttr(resourceName, "configurations.0.shape_config.0.ocpus", 1), + resource.TestCheckResourceAttr(resourceName, "description", "description2"), + resource.TestCheckResourceAttr(resourceName, "display_name", "displayName2"), + //resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "idle_timeout_in_minutes", "11"), + //resource.TestCheckResourceAttrSet(resourceName, "owner_principal_id"), + resource.TestCheckResourceAttr(resourceName, "schedules.#", "1"), + resource.TestCheckResourceAttr(resourceName, "schedules.0.day_of_week", "MONDAY"), + resource.TestCheckResourceAttr(resourceName, "schedules.0.start_time", "11"), + resource.TestCheckResourceAttrSet(resourceName, "time_created"), + resource.TestCheckResourceAttrSet(resourceName, "time_updated"), + + 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 + { + PreConfig: func() { + fmt.Println("step 6") + }, + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_dataflow_pools", "test_pools", acctest.Optional, acctest.Update, DataflowDataflowPoolDataSourceRepresentation) + + compartmentIdVariableStr + DataflowPoolResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_dataflow_pool", "test_pool", acctest.Optional, acctest.Update, DataflowPoolRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(datasourceName, "display_name", "displayName2"), + resource.TestCheckResourceAttr(datasourceName, "display_name_starts_with", "displayNameStartsWith"), + //resource.TestCheckResourceAttrSet(datasourceName, "owner_principal_id"), + resource.TestCheckResourceAttr(datasourceName, "state", "SCHEDULED"), + + resource.TestCheckResourceAttr(datasourceName, "pool_collection.#", "1"), + resource.TestCheckResourceAttr(datasourceName, "pool_collection.0.items.#", "1"), + ), + }, + // verify singular datasource + { + PreConfig: func() { + fmt.Println("step 7") + }, + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_dataflow_pool", "test_pool", acctest.Required, acctest.Create, DataflowDataflowPoolSingularDataSourceRepresentation) + + compartmentIdVariableStr + DataflowPoolResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "pool_id"), + + resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(singularDatasourceName, "configurations.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "configurations.0.max", "3"), + resource.TestCheckResourceAttr(singularDatasourceName, "configurations.0.min", "0"), + resource.TestCheckResourceAttr(singularDatasourceName, "configurations.0.shape", "VM.Standard2.2"), + //resource.TestCheckResourceAttr(singularDatasourceName, "configurations.0.shape_config.#", "1"), + //resource.TestCheckResourceAttr(singularDatasourceName, "configurations.0.shape_config.0.memory_in_gbs", 16), + //resource.TestCheckResourceAttr(singularDatasourceName, "configurations.0.shape_config.0.ocpus", 1), + resource.TestCheckResourceAttr(singularDatasourceName, "description", "description2"), + resource.TestCheckResourceAttr(singularDatasourceName, "display_name", "displayName2"), + //resource.TestCheckResourceAttr(singularDatasourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttr(singularDatasourceName, "idle_timeout_in_minutes", "11"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "owner_user_name"), + resource.TestCheckResourceAttr(singularDatasourceName, "pool_metrics.#", "0"), + resource.TestCheckResourceAttr(singularDatasourceName, "schedules.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "schedules.0.day_of_week", "MONDAY"), + resource.TestCheckResourceAttr(singularDatasourceName, "schedules.0.start_time", "11"), + resource.TestCheckResourceAttr(singularDatasourceName, "state", "SCHEDULED"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_created"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_updated"), + ), + }, + // verify resource import + { + Config: config + DataflowPoolRequiredOnlyResource, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{}, + ResourceName: resourceName, + }, + }) +} + +func testAccCheckDataflowPoolDestroy(s *terraform.State) error { + noResourceFound := true + client := acctest.TestAccProvider.Meta().(*tf_client.OracleClients).DataFlowClient() + for _, rs := range s.RootModule().Resources { + if rs.Type == "oci_dataflow_pool" { + noResourceFound = false + request := oci_dataflow.GetPoolRequest{} + + tmp := rs.Primary.ID + request.PoolId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(true, "dataflow") + + response, err := client.GetPool(context.Background(), request) + + if err == nil { + deletedLifecycleStates := map[string]bool{ + string(oci_dataflow.PoolLifecycleStateDeleted): 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("DataflowPool") { + resource.AddTestSweepers("DataflowPool", &resource.Sweeper{ + Name: "DataflowPool", + Dependencies: acctest.DependencyGraph["pool"], + F: sweepDataflowPoolResource, + }) + } +} + +func sweepDataflowPoolResource(compartment string) error { + dataFlowClient := acctest.GetTestClients(&schema.ResourceData{}).DataFlowClient() + poolIds, err := getDataflowPoolIds(compartment) + if err != nil { + return err + } + for _, poolId := range poolIds { + if ok := acctest.SweeperDefaultResourceId[poolId]; !ok { + + stopPoolRequest := oci_dataflow.StopPoolRequest{} + stopPoolRequest.PoolId = &poolId + stopPoolRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(true, "dataflow") + _, errorStopping := dataFlowClient.StopPool(context.Background(), stopPoolRequest) + if errorStopping != nil { + fmt.Printf("Error stopping Pool %s %s, It is possible that the resource is already stopped. Please verify manually \n", poolId, errorStopping) + continue + } + acctest.WaitTillCondition(acctest.TestAccProvider, &poolId, DataflowPoolStopWaitCondition, time.Duration(3*time.Minute), + DataflowPoolSweepResponseFetchOperation, "dataflow", true) + + deletePoolRequest := oci_dataflow.DeletePoolRequest{} + deletePoolRequest.PoolId = &poolId + deletePoolRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(true, "dataflow") + _, error := dataFlowClient.DeletePool(context.Background(), deletePoolRequest) + if error != nil { + fmt.Printf("Error deleting Pool %s %s, It is possible that the resource is already deleted. Please verify manually \n", poolId, error) + continue + } + acctest.WaitTillCondition(acctest.TestAccProvider, &poolId, DataflowPoolSweepWaitCondition, time.Duration(3*time.Minute), + DataflowPoolSweepResponseFetchOperation, "dataflow", true) + } + } + return nil +} + +func getDataflowPoolIds(compartment string) ([]string, error) { + ids := acctest.GetResourceIdsToSweep(compartment, "PoolId") + if ids != nil { + return ids, nil + } + var resourceIds []string + compartmentId := compartment + dataFlowClient := acctest.GetTestClients(&schema.ResourceData{}).DataFlowClient() + + listPoolsRequest := oci_dataflow.ListPoolsRequest{} + listPoolsRequest.CompartmentId = &compartmentId + listPoolsRequest.LifecycleState = oci_dataflow.ListPoolsLifecycleStateActive + listPoolsResponse, err := dataFlowClient.ListPools(context.Background(), listPoolsRequest) + + if err != nil { + return resourceIds, fmt.Errorf("Error getting Pool list for compartment id : %s , %s \n", compartmentId, err) + } + for _, pool := range listPoolsResponse.Items { + id := *pool.Id + resourceIds = append(resourceIds, id) + acctest.AddResourceIdToSweeperResourceIdMap(compartmentId, "PoolId", id) + } + return resourceIds, nil +} + +func DataflowPoolSweepWaitCondition(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 poolResponse, ok := response.Response.(oci_dataflow.GetPoolResponse); ok { + return poolResponse.LifecycleState != oci_dataflow.PoolLifecycleStateDeleted + } + return false +} + +func DataflowPoolStopWaitCondition(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. + fmt.Println("waiting until pool is stopped") + if poolResponse, ok := response.Response.(oci_dataflow.GetPoolResponse); ok { + return poolResponse.LifecycleState != oci_dataflow.PoolLifecycleStateStopped + } + return false +} + +func DataflowPoolSweepResponseFetchOperation(client *tf_client.OracleClients, resourceId *string, retryPolicy *common.RetryPolicy) error { + _, err := client.DataFlowClient().GetPool(context.Background(), oci_dataflow.GetPoolRequest{ + PoolId: resourceId, + RequestMetadata: common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + return err +} diff --git a/internal/integrationtest/functions_application_test.go b/internal/integrationtest/functions_application_test.go index 9038092a04b..82bb0536cfb 100644 --- a/internal/integrationtest/functions_application_test.go +++ b/internal/integrationtest/functions_application_test.go @@ -58,6 +58,7 @@ var ( "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, "image_policy_config": acctest.RepresentationGroup{RepType: acctest.Optional, Group: FunctionsApplicationImagePolicyConfigRepresentation}, "network_security_group_ids": acctest.Representation{RepType: acctest.Optional, Create: []string{`${oci_core_network_security_group.test_network_security_group1.id}`}, Update: []string{`${oci_core_network_security_group.test_network_security_group2.id}`}}, + "shape": acctest.Representation{RepType: acctest.Optional, Create: `GENERIC_X86`}, "syslog_url": acctest.Representation{RepType: acctest.Optional, Create: `tcp://syslog.test:80`, Update: `tcp://syslog2.test:80`}, "trace_config": acctest.RepresentationGroup{RepType: acctest.Optional, Group: FunctionsApplicationTraceConfigRepresentation}, } @@ -139,6 +140,7 @@ func TestFunctionsApplicationResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "image_policy_config.0.is_policy_enabled", "false"), resource.TestCheckResourceAttr(resourceName, "image_policy_config.0.key_details.#", "1"), resource.TestCheckResourceAttrSet(resourceName, "image_policy_config.0.key_details.0.kms_key_id"), + resource.TestCheckResourceAttr(resourceName, "shape", "GENERIC_X86"), resource.TestCheckResourceAttr(resourceName, "subnet_ids.#", "1"), resource.TestCheckResourceAttr(resourceName, "syslog_url", "tcp://syslog.test:80"), resource.TestCheckResourceAttr(resourceName, "trace_config.#", "1"), @@ -174,6 +176,7 @@ func TestFunctionsApplicationResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "image_policy_config.0.is_policy_enabled", "false"), resource.TestCheckResourceAttr(resourceName, "image_policy_config.0.key_details.#", "1"), resource.TestCheckResourceAttrSet(resourceName, "image_policy_config.0.key_details.0.kms_key_id"), + resource.TestCheckResourceAttr(resourceName, "shape", "GENERIC_X86"), resource.TestCheckResourceAttr(resourceName, "subnet_ids.#", "1"), resource.TestCheckResourceAttr(resourceName, "syslog_url", "tcp://syslog.test:80"), resource.TestCheckResourceAttr(resourceName, "trace_config.#", "1"), @@ -204,6 +207,7 @@ func TestFunctionsApplicationResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "image_policy_config.0.is_policy_enabled", "true"), resource.TestCheckResourceAttr(resourceName, "image_policy_config.0.key_details.#", "1"), resource.TestCheckResourceAttrSet(resourceName, "image_policy_config.0.key_details.0.kms_key_id"), + resource.TestCheckResourceAttr(resourceName, "shape", "GENERIC_X86"), resource.TestCheckResourceAttr(resourceName, "subnet_ids.#", "1"), resource.TestCheckResourceAttr(resourceName, "syslog_url", "tcp://syslog2.test:80"), resource.TestCheckResourceAttr(resourceName, "trace_config.#", "1"), @@ -240,6 +244,7 @@ func TestFunctionsApplicationResource_basic(t *testing.T) { resource.TestCheckResourceAttr(datasourceName, "applications.0.image_policy_config.0.is_policy_enabled", "true"), resource.TestCheckResourceAttr(datasourceName, "applications.0.image_policy_config.0.key_details.#", "1"), resource.TestCheckResourceAttrSet(datasourceName, "applications.0.image_policy_config.0.key_details.0.kms_key_id"), + resource.TestCheckResourceAttr(datasourceName, "applications.0.shape", "GENERIC_X86"), resource.TestCheckResourceAttrSet(datasourceName, "applications.0.state"), resource.TestCheckResourceAttr(datasourceName, "applications.0.subnet_ids.#", "1"), resource.TestCheckResourceAttrSet(datasourceName, "applications.0.time_created"), @@ -265,6 +270,7 @@ func TestFunctionsApplicationResource_basic(t *testing.T) { resource.TestCheckResourceAttr(singularDatasourceName, "image_policy_config.#", "1"), resource.TestCheckResourceAttr(singularDatasourceName, "image_policy_config.0.is_policy_enabled", "true"), resource.TestCheckResourceAttr(singularDatasourceName, "image_policy_config.0.key_details.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "shape", "GENERIC_X86"), resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), resource.TestCheckResourceAttr(singularDatasourceName, "syslog_url", "tcp://syslog2.test:80"), resource.TestCheckResourceAttr(singularDatasourceName, "subnet_ids.#", "1"), diff --git a/internal/integrationtest/functions_function_test.go b/internal/integrationtest/functions_function_test.go index fd9f14da396..3e1d03a4aec 100644 --- a/internal/integrationtest/functions_function_test.go +++ b/internal/integrationtest/functions_function_test.go @@ -308,6 +308,7 @@ func TestFunctionsFunctionResource_basic(t *testing.T) { resource.TestCheckResourceAttr(datasourceName, "functions.0.provisioned_concurrency_config.#", "1"), resource.TestCheckResourceAttr(datasourceName, "functions.0.provisioned_concurrency_config.0.count", "0"), resource.TestCheckResourceAttr(datasourceName, "functions.0.provisioned_concurrency_config.0.strategy", "NONE"), + resource.TestCheckResourceAttr(datasourceName, "functions.0.shape", "GENERIC_X86"), resource.TestCheckResourceAttrSet(datasourceName, "functions.0.state"), resource.TestCheckResourceAttrSet(datasourceName, "functions.0.time_created"), resource.TestCheckResourceAttrSet(datasourceName, "functions.0.time_updated"), @@ -336,6 +337,7 @@ func TestFunctionsFunctionResource_basic(t *testing.T) { resource.TestCheckResourceAttr(singularDatasourceName, "provisioned_concurrency_config.#", "1"), resource.TestCheckResourceAttr(singularDatasourceName, "provisioned_concurrency_config.0.count", "0"), resource.TestCheckResourceAttr(singularDatasourceName, "provisioned_concurrency_config.0.strategy", "NONE"), + resource.TestCheckResourceAttr(singularDatasourceName, "shape", "GENERIC_X86"), resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), resource.TestCheckResourceAttrSet(singularDatasourceName, "time_created"), resource.TestCheckResourceAttrSet(singularDatasourceName, "time_updated"), diff --git a/internal/integrationtest/identity_domain_test.go b/internal/integrationtest/identity_domain_test.go index 9588e30bc10..6d09e125a75 100644 --- a/internal/integrationtest/identity_domain_test.go +++ b/internal/integrationtest/identity_domain_test.go @@ -65,12 +65,16 @@ var ( "state": acctest.Representation{RepType: acctest.Optional, Update: `INACTIVE`}, } + IdentityDomainReplicationToRegionRepresentation1 = map[string]interface{}{ + "domain_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_identity_domain.test_domain.id}`}, + "replica_region": acctest.Representation{RepType: acctest.Required, Create: `us-sanjose-1`}, + } + IdentityDomainResourceDependencies = DefinedTagsDependencies ) // issue-routing-tag: identity/default func TestIdentityDomainResource_basic(t *testing.T) { - t.Skip("Skip this test because henosis tenancy is needed") httpreplay.SetScenario("TestIdentityDomainResource_basic") defer httpreplay.SaveScenario() @@ -121,7 +125,8 @@ func TestIdentityDomainResource_basic(t *testing.T) { // verify Create with optionals { Config: config + compartmentIdVariableStr + IdentityDomainResourceDependencies + - acctest.GenerateResourceFromRepresentationMap("oci_identity_domain", "test_domain", acctest.Optional, acctest.Create, IdentityDomainRepresentation), + acctest.GenerateResourceFromRepresentationMap("oci_identity_domain", "test_domain", acctest.Optional, acctest.Create, IdentityDomainRepresentation) + + acctest.GenerateResourceFromRepresentationMap("oci_identity_domain_replication_to_region", "test_domain_replication_to_region", acctest.Optional, acctest.Create, IdentityDomainReplicationToRegionRepresentation1), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "admin_email", "adminEmail@test.com"), resource.TestCheckResourceAttr(resourceName, "admin_first_name", "adminFirstName"), @@ -180,6 +185,10 @@ func TestIdentityDomainResource_basic(t *testing.T) { resource.TestCheckResourceAttrSet(resourceName, "time_created"), resource.TestCheckResourceAttrSet(resourceName, "type"), resource.TestCheckResourceAttrSet(resourceName, "url"), + resource.TestCheckResourceAttrSet(resourceName, "replica_regions.0.regional_url"), + resource.TestCheckResourceAttrSet(resourceName, "replica_regions.0.url"), + resource.TestCheckResourceAttr(resourceName, "replica_regions.0.state", "REPLICATION_ENABLED"), + resource.TestCheckResourceAttr(resourceName, "replica_regions.0.region", "us-sanjose-1"), func(s *terraform.State) (err error) { resId2, err = acctest.FromInstanceState(s, resourceName, "id") @@ -214,6 +223,10 @@ func TestIdentityDomainResource_basic(t *testing.T) { resource.TestCheckResourceAttrSet(resourceName, "time_created"), resource.TestCheckResourceAttrSet(resourceName, "type"), resource.TestCheckResourceAttrSet(resourceName, "url"), + resource.TestCheckResourceAttrSet(resourceName, "replica_regions.0.regional_url"), + resource.TestCheckResourceAttrSet(resourceName, "replica_regions.0.url"), + resource.TestCheckResourceAttr(resourceName, "replica_regions.0.state", "REPLICATION_ENABLED"), + resource.TestCheckResourceAttr(resourceName, "replica_regions.0.region", "us-sanjose-1"), func(s *terraform.State) (err error) { resId2, err = acctest.FromInstanceState(s, resourceName, "id") @@ -254,6 +267,10 @@ func TestIdentityDomainResource_basic(t *testing.T) { resource.TestCheckResourceAttrSet(datasourceName, "domains.0.time_created"), resource.TestCheckResourceAttrSet(datasourceName, "domains.0.type"), resource.TestCheckResourceAttrSet(datasourceName, "domains.0.url"), + resource.TestCheckResourceAttrSet(datasourceName, "domains.0.replica_regions.0.regional_url"), + resource.TestCheckResourceAttrSet(datasourceName, "domains.0.replica_regions.0.url"), + resource.TestCheckResourceAttr(datasourceName, "domains.0.replica_regions.0.state", "REPLICATION_ENABLED"), + resource.TestCheckResourceAttr(datasourceName, "domains.0.replica_regions.0.region", "us-sanjose-1"), ), }, // verify singular datasource @@ -276,6 +293,10 @@ func TestIdentityDomainResource_basic(t *testing.T) { resource.TestCheckResourceAttrSet(singularDatasourceName, "time_created"), resource.TestCheckResourceAttrSet(singularDatasourceName, "type"), resource.TestCheckResourceAttrSet(singularDatasourceName, "url"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "replica_regions.0.regional_url"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "replica_regions.0.url"), + resource.TestCheckResourceAttr(singularDatasourceName, "replica_regions.0.state", "REPLICATION_ENABLED"), + resource.TestCheckResourceAttr(singularDatasourceName, "replica_regions.0.region", "us-sanjose-1"), ), }, // verify resource import diff --git a/internal/integrationtest/identity_network_source_test.go b/internal/integrationtest/identity_network_source_test.go index e553285deea..0c20f82c8c0 100644 --- a/internal/integrationtest/identity_network_source_test.go +++ b/internal/integrationtest/identity_network_source_test.go @@ -55,6 +55,7 @@ var ( "public_source_list": acctest.Representation{RepType: acctest.Optional, Create: []string{`128.2.13.5`}, Update: []string{`128.2.13.5`, `128.2.13.6`}}, "services": acctest.Representation{RepType: acctest.Optional, Create: []string{`none`}, Update: []string{`all`}}, "virtual_source_list": acctest.RepresentationGroup{RepType: acctest.Optional, Group: IdentityNetworkVirtualSourceListRepresentation}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: IdentityNetworkSourceIgnoreChangesRepresentation}, } IdentityNetworkVirtualSourceListRepresentation = map[string]interface{}{ @@ -62,7 +63,11 @@ var ( "ip_ranges": acctest.Representation{RepType: acctest.Required, Create: []string{`10.0.0.0/16`}}, } - IdentityNetworkSourceResourceDependencies = DefinedTagsDependencies // + VcnRequiredOnlyResource + IdentityNetworkSourceIgnoreChangesRepresentation = map[string]interface{}{ // This may vary depending on the tenancy settings + "ignore_changes": acctest.Representation{RepType: acctest.Required, Create: []string{`defined_tags`, `freeform_tags`}}, + } + + IdentityNetworkSourceResourceDependencies = DefinedTagsDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_vcn", "test_vcn", acctest.Required, acctest.Create, CoreVcnRepresentation) ) // issue-routing-tag: identity/default @@ -125,7 +130,7 @@ func TestIdentityNetworkSourceResource_basic(t *testing.T) { 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 { + if errExport := resourcediscovery.TestExportCompartmentWithResourceName(&resId, &tenancyId, resourceName); errExport != nil { return errExport } } @@ -178,6 +183,7 @@ func TestIdentityNetworkSourceResource_basic(t *testing.T) { resource.TestCheckResourceAttr(datasourceName, "network_sources.0.name", "corpnet"), resource.TestCheckResourceAttr(datasourceName, "network_sources.0.public_source_list.#", "2"), resource.TestCheckResourceAttr(datasourceName, "network_sources.0.services.#", "1"), + resource.TestCheckResourceAttrSet(datasourceName, "network_sources.0.state"), resource.TestCheckResourceAttrSet(datasourceName, "network_sources.0.time_created"), resource.TestCheckResourceAttr(datasourceName, "network_sources.0.virtual_source_list.#", "1"), ), diff --git a/internal/resourcediscovery/export_compartment_test.go b/internal/resourcediscovery/export_compartment_test.go index aa4b28da574..078cc85f375 100644 --- a/internal/resourcediscovery/export_compartment_test.go +++ b/internal/resourcediscovery/export_compartment_test.go @@ -2706,7 +2706,7 @@ func TestUnitGetDiscoverResourceWithGraphSteps(t *testing.T) { ctx.Services = []string{"identity"} result, err := getDiscoverResourceWithGraphSteps(ctx) assert.NoError(t, err) - assert.Equal(t, 0, len(result)) + assert.Equal(t, 1, len(result)) }) // With targetResource diff --git a/internal/service/data_labeling_service/data_labeling_service_dataset_data_source.go b/internal/service/data_labeling_service/data_labeling_service_dataset_data_source.go index f081dc50b90..d532b2ecd5a 100644 --- a/internal/service/data_labeling_service/data_labeling_service_dataset_data_source.go +++ b/internal/service/data_labeling_service/data_labeling_service_dataset_data_source.go @@ -66,6 +66,9 @@ func (s *DataLabelingServiceDatasetDataSourceCrud) SetData() error { s.D.SetId(*s.Res.Id) + s.D.Set("additional_properties", s.Res.AdditionalProperties) + s.D.Set("additional_properties", s.Res.AdditionalProperties) + if s.Res.AnnotationFormat != nil { s.D.Set("annotation_format", *s.Res.AnnotationFormat) } @@ -108,6 +111,12 @@ func (s *DataLabelingServiceDatasetDataSourceCrud) SetData() error { s.D.Set("freeform_tags", s.Res.FreeformTags) + if s.Res.InitialImportDatasetConfiguration != nil { + s.D.Set("initial_import_dataset_configuration", []interface{}{InitialImportDatasetConfigurationToMap(s.Res.InitialImportDatasetConfiguration)}) + } else { + s.D.Set("initial_import_dataset_configuration", nil) + } + if s.Res.InitialRecordGenerationConfiguration != nil { s.D.Set("initial_record_generation_configuration", []interface{}{InitialRecordGenerationConfigurationToMap(s.Res.InitialRecordGenerationConfiguration)}) } else { @@ -128,6 +137,8 @@ func (s *DataLabelingServiceDatasetDataSourceCrud) SetData() error { s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) } + s.D.Set("lifecycle_substate", s.Res.LifecycleSubstate) + s.D.Set("state", s.Res.LifecycleState) if s.Res.TimeCreated != nil { diff --git a/internal/service/data_labeling_service/data_labeling_service_dataset_resource.go b/internal/service/data_labeling_service/data_labeling_service_dataset_resource.go index e2de7d3e890..6fde6ccce4b 100644 --- a/internal/service/data_labeling_service/data_labeling_service_dataset_resource.go +++ b/internal/service/data_labeling_service/data_labeling_service_dataset_resource.go @@ -222,6 +222,90 @@ func DataLabelingServiceDatasetResource() *schema.Resource { Computed: true, Elem: schema.TypeString, }, + "initial_import_dataset_configuration": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "import_format": { + Type: schema.TypeList, + Required: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "name": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + "version": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "import_metadata_path": { + Type: schema.TypeList, + Required: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "bucket": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "namespace": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "path": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "source_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "OBJECT_STORAGE", + }, true), + }, + + // Optional + + // Computed + }, + }, + }, + + // Optional + + // Computed + }, + }, + }, "initial_record_generation_configuration": { Type: schema.TypeList, Optional: true, @@ -246,10 +330,19 @@ func DataLabelingServiceDatasetResource() *schema.Resource { }, // Computed + "additional_properties": { + Type: schema.TypeMap, + Computed: true, + Elem: schema.TypeString, + }, "lifecycle_details": { Type: schema.TypeString, Computed: true, }, + "lifecycle_substate": { + Type: schema.TypeString, + Computed: true, + }, "state": { Type: schema.TypeString, Computed: true, @@ -392,6 +485,17 @@ func (s *DataLabelingServiceDatasetResourceCrud) Create() error { request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) } + if initialImportDatasetConfiguration, ok := s.D.GetOkExists("initial_import_dataset_configuration"); ok { + if tmpList := initialImportDatasetConfiguration.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "initial_import_dataset_configuration", 0) + tmp, err := s.mapToInitialImportDatasetConfiguration(fieldKeyFormat) + if err != nil { + return err + } + request.InitialImportDatasetConfiguration = &tmp + } + } + if initialRecordGenerationConfiguration, ok := s.D.GetOkExists("initial_record_generation_configuration"); ok { if tmpList := initialRecordGenerationConfiguration.([]interface{}); len(tmpList) > 0 { fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "initial_record_generation_configuration", 0) @@ -568,6 +672,13 @@ func (s *DataLabelingServiceDatasetResourceCrud) Get() error { } func (s *DataLabelingServiceDatasetResourceCrud) Update() error { + + if _, ok := s.D.GetOkExists("importFormat"); ok && s.D.HasChange("importFormat") { + err := s.ImportPreAnnotatedData() + if err != nil { + return err + } + } if compartment, ok := s.D.GetOkExists("compartment_id"); ok && s.D.HasChange("compartment_id") { oldRaw, newRaw := s.D.GetChange("compartment_id") if newRaw != "" && oldRaw != "" { @@ -659,6 +770,9 @@ func (s *DataLabelingServiceDatasetResourceCrud) Delete() error { } func (s *DataLabelingServiceDatasetResourceCrud) SetData() error { + s.D.Set("additional_properties", s.Res.AdditionalProperties) + s.D.Set("additional_properties", s.Res.AdditionalProperties) + if s.Res.AnnotationFormat != nil { s.D.Set("annotation_format", *s.Res.AnnotationFormat) } @@ -701,6 +815,12 @@ func (s *DataLabelingServiceDatasetResourceCrud) SetData() error { s.D.Set("freeform_tags", s.Res.FreeformTags) + if s.Res.InitialImportDatasetConfiguration != nil { + s.D.Set("initial_import_dataset_configuration", []interface{}{InitialImportDatasetConfigurationToMap(s.Res.InitialImportDatasetConfiguration)}) + } else { + s.D.Set("initial_import_dataset_configuration", nil) + } + if s.Res.InitialRecordGenerationConfiguration != nil { s.D.Set("initial_record_generation_configuration", []interface{}{InitialRecordGenerationConfigurationToMap(s.Res.InitialRecordGenerationConfiguration)}) } else { @@ -721,6 +841,8 @@ func (s *DataLabelingServiceDatasetResourceCrud) SetData() error { s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) } + s.D.Set("lifecycle_substate", s.Res.LifecycleSubstate) + s.D.Set("state", s.Res.LifecycleState) if s.Res.TimeCreated != nil { @@ -734,6 +856,47 @@ func (s *DataLabelingServiceDatasetResourceCrud) SetData() error { return nil } +func (s *DataLabelingServiceDatasetResourceCrud) ImportPreAnnotatedData() error { + request := oci_data_labeling_service.ImportPreAnnotatedDataRequest{} + + idTmp := s.D.Id() + request.DatasetId = &idTmp + + if importFormat, ok := s.D.GetOkExists("import_format"); ok { + if tmpList := importFormat.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "import_format", 0) + tmp, err := s.mapToImportFormat(fieldKeyFormat) + if err != nil { + return err + } + request.ImportFormat = &tmp + } + } + + if importMetadataPath, ok := s.D.GetOkExists("import_metadata_path"); ok { + if tmpList := importMetadataPath.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "import_metadata_path", 0) + tmp, err := s.mapToImportMetadataPath(fieldKeyFormat) + if err != nil { + return err + } + request.ImportMetadataPath = tmp + } + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "data_labeling_service") + + _, err := s.Client.ImportPreAnnotatedData(context.Background(), request) + if err != nil { + return err + } + + if waitErr := tfresource.WaitForUpdatedState(s.D, s); waitErr != nil { + return waitErr + } + + return nil +} func (s *DataLabelingServiceDatasetResourceCrud) mapToDatasetFormatDetails(fieldKeyFormat string) (oci_data_labeling_service.DatasetFormatDetails, error) { var baseObject oci_data_labeling_service.DatasetFormatDetails //discriminator @@ -889,6 +1052,133 @@ func DatasetSummaryToMap(obj oci_data_labeling_service.DatasetSummary) map[strin return result } +func (s *DataLabelingServiceDatasetResourceCrud) mapToImportFormat(fieldKeyFormat string) (oci_data_labeling_service.ImportFormat, error) { + result := oci_data_labeling_service.ImportFormat{} + + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + result.Name = oci_data_labeling_service.ImportFormatNameEnum(name.(string)) + } + + if version, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "version")); ok { + result.Version = oci_data_labeling_service.ImportFormatVersionEnum(version.(string)) + } + + return result, nil +} + +func ImportFormatToMap(obj *oci_data_labeling_service.ImportFormat) map[string]interface{} { + result := map[string]interface{}{} + + result["name"] = string(obj.Name) + + result["version"] = string(obj.Version) + + return result +} + +func (s *DataLabelingServiceDatasetResourceCrud) mapToImportMetadataPath(fieldKeyFormat string) (oci_data_labeling_service.ImportMetadataPath, error) { + var baseObject oci_data_labeling_service.ImportMetadataPath + //discriminator + sourceTypeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "source_type")) + var sourceType string + if ok { + sourceType = sourceTypeRaw.(string) + } else { + sourceType = "" // default value + } + switch strings.ToLower(sourceType) { + case strings.ToLower("OBJECT_STORAGE"): + details := oci_data_labeling_service.ObjectStorageImportMetadataPath{} + if bucket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "bucket")); ok { + tmp := bucket.(string) + details.Bucket = &tmp + } + if namespace, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "namespace")); ok { + tmp := namespace.(string) + details.Namespace = &tmp + } + if path, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "path")); ok { + tmp := path.(string) + details.Path = &tmp + } + baseObject = details + default: + return nil, fmt.Errorf("unknown source_type '%v' was specified", sourceType) + } + return baseObject, nil +} + +func ImportMetadataPathToMap(obj *oci_data_labeling_service.ImportMetadataPath) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_data_labeling_service.ObjectStorageImportMetadataPath: + result["source_type"] = "OBJECT_STORAGE" + + if v.Bucket != nil { + result["bucket"] = string(*v.Bucket) + } + + if v.Namespace != nil { + result["namespace"] = string(*v.Namespace) + } + + if v.Path != nil { + result["path"] = string(*v.Path) + } + default: + log.Printf("[WARN] Received 'source_type' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DataLabelingServiceDatasetResourceCrud) mapToInitialImportDatasetConfiguration(fieldKeyFormat string) (oci_data_labeling_service.InitialImportDatasetConfiguration, error) { + result := oci_data_labeling_service.InitialImportDatasetConfiguration{} + + if importFormat, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_format")); ok { + if tmpList := importFormat.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "import_format"), 0) + tmp, err := s.mapToImportFormat(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert import_format, encountered error: %v", err) + } + result.ImportFormat = &tmp + } + } + + if importMetadataPath, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "import_metadata_path")); ok { + if tmpList := importMetadataPath.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "import_metadata_path"), 0) + tmp, err := s.mapToImportMetadataPath(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert import_metadata_path, encountered error: %v", err) + } + result.ImportMetadataPath = tmp + } + } + + return result, nil +} + +func InitialImportDatasetConfigurationToMap(obj *oci_data_labeling_service.InitialImportDatasetConfiguration) map[string]interface{} { + result := map[string]interface{}{} + + if obj.ImportFormat != nil { + result["import_format"] = []interface{}{ImportFormatToMap(obj.ImportFormat)} + } + + if obj.ImportMetadataPath != nil { + importMetadataPathArray := []interface{}{} + if importMetadataPathMap := ImportMetadataPathToMap(&obj.ImportMetadataPath); importMetadataPathMap != nil { + importMetadataPathArray = append(importMetadataPathArray, importMetadataPathMap) + } + result["import_metadata_path"] = importMetadataPathArray + } + + return result +} + func (s *DataLabelingServiceDatasetResourceCrud) mapToInitialRecordGenerationConfiguration(fieldKeyFormat string) (oci_data_labeling_service.InitialRecordGenerationConfiguration, error) { result := oci_data_labeling_service.InitialRecordGenerationConfiguration{} diff --git a/internal/service/database_migration/database_migration_connection_resource.go b/internal/service/database_migration/database_migration_connection_resource.go index 7b3bd4b09d3..95fd584ab6c 100644 --- a/internal/service/database_migration/database_migration_connection_resource.go +++ b/internal/service/database_migration/database_migration_connection_resource.go @@ -509,12 +509,6 @@ func connectionWorkRequestShouldRetryFunc(timeout time.Duration) func(response o 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 } } @@ -851,7 +845,8 @@ func (s *DatabaseMigrationConnectionResourceCrud) SetData() error { return nil } -func ConnectionSummaryToMapMig(obj oci_database_migration.ConnectionSummary) map[string]interface{} { +func ConnectionSummaryToMap(obj oci_database_migration.ConnectionSummary, datasource bool) map[string]interface{} { + result := map[string]interface{}{} if obj.CompartmentId != nil { @@ -1235,7 +1230,7 @@ func SshDetailsToMapPass(obj *oci_database_migration.SshDetails, resourceData *s 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 + result["sshkey"] = &tmp } } } 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 264bfe8623f..6cfc952fc63 100644 --- a/internal/service/database_migration/database_migration_connections_data_source.go +++ b/internal/service/database_migration/database_migration_connections_data_source.go @@ -117,7 +117,7 @@ func (s *DatabaseMigrationConnectionsDataSourceCrud) SetData() error { items := []interface{}{} for _, item := range s.Res.Items { - items = append(items, ConnectionSummaryToMapMig(item)) + items = append(items, ConnectionSummaryToMap(item, true)) } connection["items"] = items diff --git a/internal/service/database_migration/database_migration_migration_resource.go b/internal/service/database_migration/database_migration_migration_resource.go index 8f1b791c283..0cc6df7486d 100644 --- a/internal/service/database_migration/database_migration_migration_resource.go +++ b/internal/service/database_migration/database_migration_migration_resource.go @@ -1071,6 +1071,7 @@ func migrationWaitForWorkRequest(wId *string, entityType string, action oci_data retryPolicy.ShouldRetryOperation = migrationWorkRequestShouldRetryFunc(timeout) response := oci_database_migration.GetWorkRequestResponse{} + stateConf := &resource.StateChangeConf{ Pending: []string{ string(oci_database_migration.OperationStatusInProgress), @@ -1342,7 +1343,6 @@ func (s *DatabaseMigrationMigrationResourceCrud) Delete() error { // Wait until it finishes _, delWorkRequestErr := migrationWaitForWorkRequest(workId, "migration", oci_database_migration.WorkRequestResourceActionTypeDeleted, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries, s.Client) - return delWorkRequestErr } diff --git a/internal/service/dataflow/dataflow_application_data_source.go b/internal/service/dataflow/dataflow_application_data_source.go index 4ccd3004c6b..fb9bd3f1c19 100644 --- a/internal/service/dataflow/dataflow_application_data_source.go +++ b/internal/service/dataflow/dataflow_application_data_source.go @@ -167,6 +167,10 @@ func (s *DataflowApplicationDataSourceCrud) SetData() error { } s.D.Set("parameters", parameters) + if s.Res.PoolId != nil { + s.D.Set("pool_id", *s.Res.PoolId) + } + if s.Res.PrivateEndpointId != nil { s.D.Set("private_endpoint_id", *s.Res.PrivateEndpointId) } diff --git a/internal/service/dataflow/dataflow_application_resource.go b/internal/service/dataflow/dataflow_application_resource.go index 27c72193eed..d27386a615b 100644 --- a/internal/service/dataflow/dataflow_application_resource.go +++ b/internal/service/dataflow/dataflow_application_resource.go @@ -230,6 +230,11 @@ func DataflowApplicationResource() *schema.Resource { }, }, }, + "pool_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, "private_endpoint_id": { Type: schema.TypeString, Optional: true, @@ -500,6 +505,11 @@ func (s *DataflowApplicationResourceCrud) Create() error { } } + if poolId, ok := s.D.GetOkExists("pool_id"); ok { + tmp := poolId.(string) + request.PoolId = &tmp + } + if privateEndpointId, ok := s.D.GetOkExists("private_endpoint_id"); ok { tmp := privateEndpointId.(string) request.PrivateEndpointId = &tmp @@ -718,6 +728,11 @@ func (s *DataflowApplicationResourceCrud) Update() error { } } + if poolId, ok := s.D.GetOkExists("pool_id"); ok { + tmp := poolId.(string) + request.PoolId = &tmp + } + if privateEndpointId, ok := s.D.GetOkExists("private_endpoint_id"); ok { tmp := privateEndpointId.(string) request.PrivateEndpointId = &tmp @@ -857,6 +872,10 @@ func (s *DataflowApplicationResourceCrud) SetData() error { } s.D.Set("parameters", parameters) + if s.Res.PoolId != nil { + s.D.Set("pool_id", *s.Res.PoolId) + } + if s.Res.PrivateEndpointId != nil { s.D.Set("private_endpoint_id", *s.Res.PrivateEndpointId) } diff --git a/internal/service/dataflow/dataflow_applications_data_source.go b/internal/service/dataflow/dataflow_applications_data_source.go index 08eaaf14c69..52a3e0632e7 100644 --- a/internal/service/dataflow/dataflow_applications_data_source.go +++ b/internal/service/dataflow/dataflow_applications_data_source.go @@ -153,6 +153,10 @@ func (s *DataflowApplicationsDataSourceCrud) SetData() error { application["owner_user_name"] = *r.OwnerUserName } + if r.PoolId != nil { + application["pool_id"] = *r.PoolId + } + if r.SparkVersion != nil { application["spark_version"] = *r.SparkVersion } diff --git a/internal/service/dataflow/dataflow_export.go b/internal/service/dataflow/dataflow_export.go index 31df909dacf..504aeb69c85 100644 --- a/internal/service/dataflow/dataflow_export.go +++ b/internal/service/dataflow/dataflow_export.go @@ -47,9 +47,22 @@ var exportDataflowRunStatementHints = &tf_export.TerraformResourceHints{ }, } +var exportDataflowPoolHints = &tf_export.TerraformResourceHints{ + ResourceClass: "oci_dataflow_pool", + DatasourceClass: "oci_dataflow_pools", + DatasourceItemsAttr: "pool_collection", + IsDatasourceCollection: true, + ResourceAbbreviation: "pool", + RequireResourceRefresh: true, + DiscoverableLifecycleStates: []string{ + string(oci_dataflow.PoolLifecycleStateActive), + }, +} + var dataflowResourceGraph = tf_export.TerraformResourceGraph{ "oci_identity_compartment": { {TerraformResourceHints: exportDataflowApplicationHints}, {TerraformResourceHints: exportDataflowPrivateEndpointHints}, + {TerraformResourceHints: exportDataflowPoolHints}, }, } diff --git a/internal/service/dataflow/dataflow_invoke_run_data_source.go b/internal/service/dataflow/dataflow_invoke_run_data_source.go index c1fd8ef7ea1..1eeb1a2257e 100644 --- a/internal/service/dataflow/dataflow_invoke_run_data_source.go +++ b/internal/service/dataflow/dataflow_invoke_run_data_source.go @@ -183,6 +183,10 @@ func (s *DataflowInvokeRunDataSourceCrud) SetData() error { } s.D.Set("parameters", parameters) + if s.Res.PoolId != nil { + s.D.Set("pool_id", *s.Res.PoolId) + } + s.D.Set("private_endpoint_dns_zones", s.Res.PrivateEndpointDnsZones) if s.Res.PrivateEndpointId != nil { diff --git a/internal/service/dataflow/dataflow_invoke_run_resource.go b/internal/service/dataflow/dataflow_invoke_run_resource.go index d2a8cba4264..5acdf7a4f06 100644 --- a/internal/service/dataflow/dataflow_invoke_run_resource.go +++ b/internal/service/dataflow/dataflow_invoke_run_resource.go @@ -244,6 +244,12 @@ func DataflowInvokeRunResource() *schema.Resource { }, }, }, + "pool_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, "spark_version": { Type: schema.TypeString, Optional: true, @@ -602,6 +608,11 @@ func (s *DataflowInvokeRunResourceCrud) Create() error { } } + if poolId, ok := s.D.GetOkExists("pool_id"); ok { + tmp := poolId.(string) + request.PoolId = &tmp + } + if sparkVersion, ok := s.D.GetOkExists("spark_version"); ok { tmp := sparkVersion.(string) request.SparkVersion = &tmp @@ -645,6 +656,7 @@ func (s *DataflowInvokeRunResourceCrud) Get() error { } func (s *DataflowInvokeRunResourceCrud) Update() error { + fmt.Println("ML: in run update here is s.D", s.D) if compartment, ok := s.D.GetOkExists("compartment_id"); ok && s.D.HasChange("compartment_id") { oldRaw, newRaw := s.D.GetChange("compartment_id") if newRaw != "" && oldRaw != "" { @@ -668,27 +680,12 @@ func (s *DataflowInvokeRunResourceCrud) Update() error { request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) } - if idleTimeoutInMinutes, ok := s.D.GetOkExists("idle_timeout_in_minutes"); ok { - tmp := idleTimeoutInMinutes.(string) - tmpInt64, err := strconv.ParseInt(tmp, 10, 64) - if err != nil { - return fmt.Errorf("unable to convert idleTimeoutInMinutes string: %s to an int64 and encountered error: %v", tmp, err) - } - request.IdleTimeoutInMinutes = &tmpInt64 - } - - if maxDurationInMinutes, ok := s.D.GetOkExists("max_duration_in_minutes"); ok { - tmp := maxDurationInMinutes.(string) - tmpInt64, err := strconv.ParseInt(tmp, 10, 64) - if err != nil { - return fmt.Errorf("unable to convert maxDurationInMinutes string: %s to an int64 and encountered error: %v", tmp, err) - } - request.MaxDurationInMinutes = &tmpInt64 - } - if runId, ok := s.D.GetOkExists("run_id"); ok { tmp := runId.(string) request.RunId = &tmp + } else { + tmp := s.D.Id() + request.RunId = &tmp } request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "dataflow") @@ -846,6 +843,10 @@ func (s *DataflowInvokeRunResourceCrud) SetData() error { } s.D.Set("parameters", parameters) + if s.Res.PoolId != nil { + s.D.Set("pool_id", *s.Res.PoolId) + } + s.D.Set("private_endpoint_dns_zones", s.Res.PrivateEndpointDnsZones) if s.Res.PrivateEndpointId != nil { @@ -975,7 +976,6 @@ func (s *DataflowInvokeRunResourceCrud) mapToShapeConfig(fieldKeyFormat string) func (s *DataflowInvokeRunResourceCrud) updateCompartment(compartment interface{}) error { changeCompartmentRequest := oci_dataflow.ChangeRunCompartmentRequest{} - compartmentTmp := compartment.(string) changeCompartmentRequest.CompartmentId = &compartmentTmp diff --git a/internal/service/dataflow/dataflow_invoke_runs_data_source.go b/internal/service/dataflow/dataflow_invoke_runs_data_source.go index 1e08ea4712a..fc6b68e8ad4 100644 --- a/internal/service/dataflow/dataflow_invoke_runs_data_source.go +++ b/internal/service/dataflow/dataflow_invoke_runs_data_source.go @@ -41,6 +41,10 @@ func DataflowInvokeRunsDataSource() *schema.Resource { Type: schema.TypeString, Optional: true, }, + "pool_id": { + Type: schema.TypeString, + Optional: true, + }, "state": { Type: schema.TypeString, Optional: true, @@ -104,6 +108,11 @@ func (s *DataflowInvokeRunsDataSourceCrud) Get() error { request.OwnerPrincipalId = &tmp } + if poolId, ok := s.D.GetOkExists("pool_id"); ok { + tmp := poolId.(string) + request.PoolId = &tmp + } + if state, ok := s.D.GetOkExists("state"); ok { request.LifecycleState = oci_dataflow.ListRunsLifecycleStateEnum(state.(string)) } @@ -196,6 +205,10 @@ func (s *DataflowInvokeRunsDataSourceCrud) SetData() error { invokeRun["owner_user_name"] = *r.OwnerUserName } + if r.PoolId != nil { + invokeRun["pool_id"] = *r.PoolId + } + if r.RunDurationInMilliseconds != nil { invokeRun["run_duration_in_milliseconds"] = strconv.FormatInt(*r.RunDurationInMilliseconds, 10) } diff --git a/internal/service/dataflow/dataflow_pool_data_source.go b/internal/service/dataflow/dataflow_pool_data_source.go new file mode 100644 index 00000000000..dcbd8f5db74 --- /dev/null +++ b/internal/service/dataflow/dataflow_pool_data_source.go @@ -0,0 +1,133 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package dataflow + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_dataflow "github.com/oracle/oci-go-sdk/v65/dataflow" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DataflowPoolDataSource() *schema.Resource { + fieldMap := make(map[string]*schema.Schema) + fieldMap["pool_id"] = &schema.Schema{ + Type: schema.TypeString, + Required: true, + } + return tfresource.GetSingularDataSourceItemSchema(DataflowPoolResource(), fieldMap, readSingularDataflowPool) +} + +func readSingularDataflowPool(d *schema.ResourceData, m interface{}) error { + sync := &DataflowPoolDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DataFlowClient() + + return tfresource.ReadResource(sync) +} + +type DataflowPoolDataSourceCrud struct { + D *schema.ResourceData + Client *oci_dataflow.DataFlowClient + Res *oci_dataflow.GetPoolResponse +} + +func (s *DataflowPoolDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DataflowPoolDataSourceCrud) Get() error { + request := oci_dataflow.GetPoolRequest{} + + if poolId, ok := s.D.GetOkExists("pool_id"); ok { + tmp := poolId.(string) + request.PoolId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "dataflow") + + response, err := s.Client.GetPool(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *DataflowPoolDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(*s.Res.Id) + + if s.Res.CompartmentId != nil { + s.D.Set("compartment_id", *s.Res.CompartmentId) + } + + configurations := []interface{}{} + for _, item := range s.Res.Configurations { + configurations = append(configurations, PoolConfigToMap(item)) + } + s.D.Set("configurations", configurations) + + 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) + s.D.Set("freeform_tags", s.Res.FreeformTags) + + if s.Res.IdleTimeoutInMinutes != nil { + s.D.Set("idle_timeout_in_minutes", *s.Res.IdleTimeoutInMinutes) + } + + if s.Res.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) + } + + if s.Res.OwnerPrincipalId != nil { + s.D.Set("owner_principal_id", *s.Res.OwnerPrincipalId) + } + + if s.Res.OwnerUserName != nil { + s.D.Set("owner_user_name", *s.Res.OwnerUserName) + } + + if s.Res.PoolMetrics != nil { + s.D.Set("pool_metrics", []interface{}{PoolMetricsToMap(s.Res.PoolMetrics)}) + } else { + s.D.Set("pool_metrics", nil) + } + + schedules := []interface{}{} + for _, item := range s.Res.Schedules { + schedules = append(schedules, PoolScheduleToMap(item)) + } + s.D.Set("schedules", schedules) + + s.D.Set("state", s.Res.LifecycleState) + + 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()) + } + + return nil +} diff --git a/internal/service/dataflow/dataflow_pool_resource.go b/internal/service/dataflow/dataflow_pool_resource.go new file mode 100644 index 00000000000..78f03f60f29 --- /dev/null +++ b/internal/service/dataflow/dataflow_pool_resource.go @@ -0,0 +1,1036 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package dataflow + +import ( + "context" + "fmt" + "strconv" + "strings" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "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_dataflow "github.com/oracle/oci-go-sdk/v65/dataflow" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DataflowPoolResource() *schema.Resource { + return &schema.Resource{ + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Timeouts: tfresource.DefaultTimeout, + Create: createDataflowPool, + Read: readDataflowPool, + Update: updateDataflowPool, + Delete: deleteDataflowPool, + Schema: map[string]*schema.Schema{ + // Required + "compartment_id": { + Type: schema.TypeString, + Required: true, + }, + "configurations": { + Type: schema.TypeList, + Required: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "max": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "min": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "shape": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "shape_config": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "memory_in_gbs": { + Type: schema.TypeFloat, + Optional: true, + Computed: true, + }, + "ocpus": { + Type: schema.TypeFloat, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + + // Computed + }, + }, + }, + "display_name": { + 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, + }, + "freeform_tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + Elem: schema.TypeString, + }, + "idle_timeout_in_minutes": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "schedules": { + Type: schema.TypeList, + Optional: true, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + "day_of_week": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "start_time": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + "stop_time": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, + + // Computed + }, + }, + }, + "state": { + ValidateFunc: validation.StringInSlice([]string{ + string(oci_dataflow.PoolLifecycleStateAccepted), + string(oci_dataflow.PoolLifecycleStateScheduled), + string(oci_dataflow.PoolLifecycleStateCreating), + string(oci_dataflow.PoolLifecycleStateActive), + string(oci_dataflow.PoolLifecycleStateStopping), + string(oci_dataflow.PoolLifecycleStateStopped), + string(oci_dataflow.PoolLifecycleStateUpdating), + string(oci_dataflow.PoolLifecycleStateDeleting), + string(oci_dataflow.PoolLifecycleStateDeleted), + string(oci_dataflow.PoolLifecycleStateFailed), + }, true), + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + + // Computed + "lifecycle_details": { + Type: schema.TypeString, + Computed: true, + }, + "owner_principal_id": { + Type: schema.TypeString, + Computed: true, + }, + "owner_user_name": { + Type: schema.TypeString, + Computed: true, + }, + "pool_metrics": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "active_runs_count": { + Type: schema.TypeString, + Computed: true, + }, + "actively_used_node_count": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "logical_shape": { + Type: schema.TypeString, + Computed: true, + }, + "pool_count": { + Type: schema.TypeInt, + Computed: true, + }, + }, + }, + }, + "time_last_metrics_updated": { + Type: schema.TypeString, + Computed: true, + }, + "time_last_started": { + Type: schema.TypeString, + Computed: true, + }, + "time_last_stopped": { + Type: schema.TypeString, + Computed: true, + }, + "time_last_used": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + "time_created": { + Type: schema.TypeString, + Computed: true, + }, + "time_updated": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func createDataflowPool(d *schema.ResourceData, m interface{}) error { + sync := &DataflowPoolResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DataFlowClient() + var powerOff = false + if powerState, ok := sync.D.GetOkExists("state"); ok { + wantedPowerState := oci_dataflow.PoolLifecycleStateEnum(strings.ToUpper(powerState.(string))) + if wantedPowerState == oci_dataflow.PoolLifecycleStateDeleted { + powerOff = true + } + } + + if e := tfresource.CreateResource(d, sync); e != nil { + return e + } + + if powerOff { + if err := sync.StopPool(); err != nil { + return err + } + sync.D.Set("state", oci_dataflow.PoolLifecycleStateDeleted) + } + return nil + +} + +func readDataflowPool(d *schema.ResourceData, m interface{}) error { + sync := &DataflowPoolResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DataFlowClient() + + return tfresource.ReadResource(sync) +} + +func updateDataflowPool(d *schema.ResourceData, m interface{}) error { + sync := &DataflowPoolResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DataFlowClient() + + powerOn, powerOff := false, false + + if sync.D.HasChange("state") { + wantedState := strings.ToUpper(sync.D.Get("state").(string)) + if oci_dataflow.PoolLifecycleStateActive == oci_dataflow.PoolLifecycleStateEnum(wantedState) { + powerOn = true + } else if oci_dataflow.PoolLifecycleStateDeleted == oci_dataflow.PoolLifecycleStateEnum(wantedState) { + powerOff = true + } + } + + if powerOn { + if err := sync.StartPool(); err != nil { + return err + } + sync.D.Set("state", oci_dataflow.PoolLifecycleStateActive) + } + + if err := tfresource.UpdateResource(d, sync); err != nil { + return err + } + + if powerOff { + if err := sync.StopPool(); err != nil { + return err + } + sync.D.Set("state", oci_dataflow.PoolLifecycleStateDeleted) + } + + return nil +} + +func deleteDataflowPool(d *schema.ResourceData, m interface{}) error { + sync := &DataflowPoolResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DataFlowClient() + sync.DisableNotFoundRetries = true + + return tfresource.DeleteResource(d, sync) +} + +type DataflowPoolResourceCrud struct { + tfresource.BaseCrud + Client *oci_dataflow.DataFlowClient + Res *oci_dataflow.Pool + DisableNotFoundRetries bool +} + +func (s *DataflowPoolResourceCrud) ID() string { + return *s.Res.Id +} + +func (s *DataflowPoolResourceCrud) CreatedPending() []string { + return []string{ + string(oci_dataflow.PoolLifecycleStateCreating), + } +} + +func (s *DataflowPoolResourceCrud) CreatedTarget() []string { + return []string{ + string(oci_dataflow.PoolLifecycleStateActive), + string(oci_dataflow.PoolLifecycleStateScheduled), + string(oci_dataflow.PoolLifecycleStateAccepted), + } +} + +func (s *DataflowPoolResourceCrud) DeletedPending() []string { + return []string{ + string(oci_dataflow.PoolLifecycleStateDeleting), + string(oci_dataflow.PoolLifecycleStateStopping), + } +} + +func (s *DataflowPoolResourceCrud) DeletedTarget() []string { + return []string{ + string(oci_dataflow.PoolLifecycleStateDeleted), + } +} + +func (s *DataflowPoolResourceCrud) Create() error { + request := oci_dataflow.CreatePoolRequest{} + + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + request.CompartmentId = &tmp + } + + if configurations, ok := s.D.GetOkExists("configurations"); ok { + interfaces := configurations.([]interface{}) + tmp := make([]oci_dataflow.PoolConfig, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "configurations", stateDataIndex) + converted, err := s.mapToPoolConfig(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("configurations") { + request.Configurations = 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 idleTimeoutInMinutes, ok := s.D.GetOkExists("idle_timeout_in_minutes"); ok { + tmp := idleTimeoutInMinutes.(int) + request.IdleTimeoutInMinutes = &tmp + } + + if schedules, ok := s.D.GetOkExists("schedules"); ok { + interfaces := schedules.([]interface{}) + tmp := make([]oci_dataflow.PoolSchedule, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "schedules", stateDataIndex) + converted, err := s.mapToPoolSchedule(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("schedules") { + request.Schedules = tmp + } + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "dataflow") + + response, err := s.Client.CreatePool(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + if workId != nil { + fmt.Println("returning from create fn here is workId: ", workId) + return s.getPoolFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "dataflow"), oci_dataflow.WorkRequestResourceActionTypeCreated, s.D.Timeout(schema.TimeoutCreate)) + } else { + fmt.Println("returning from create fn here is workId is nill") + s.Res = &response.Pool + return nil + } + +} + +func (s *DataflowPoolResourceCrud) getPoolFromWorkRequest(workId *string, retryPolicy *oci_common.RetryPolicy, + actionTypeEnum oci_dataflow.WorkRequestResourceActionTypeEnum, timeout time.Duration) error { + + fmt.Println("about to call poolWaitForWorkRequest") + // Wait until it finishes + poolId, err := poolWaitForWorkRequest(workId, "dataflow", + actionTypeEnum, timeout, s.DisableNotFoundRetries, s.Client) + + if err != nil { + return err + } + s.D.SetId(*poolId) + + return s.Get() +} + +func poolWorkRequestShouldRetryFunc(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, "dataflow", startTime) { + return true + } + + // Only stop if the time Finished is set + if workRequestResponse, ok := response.Response.(oci_dataflow.GetWorkRequestResponse); ok { + return workRequestResponse.TimeFinished == nil + } + return false + } +} + +func poolWaitForWorkRequest(wId *string, entityType string, action oci_dataflow.WorkRequestResourceActionTypeEnum, + timeout time.Duration, disableFoundRetries bool, client *oci_dataflow.DataFlowClient) (*string, error) { + retryPolicy := tfresource.GetRetryPolicy(disableFoundRetries, "dataflow") + retryPolicy.ShouldRetryOperation = poolWorkRequestShouldRetryFunc(timeout) + + response := oci_dataflow.GetWorkRequestResponse{} + fmt.Println("Here is the response: ", response) + stateConf := &resource.StateChangeConf{ + Pending: []string{ + string(oci_dataflow.WorkRequestStatusInprogress), + string(oci_dataflow.WorkRequestStatusAccepted), + string(oci_dataflow.WorkRequestStatusCancelling), + }, + Target: []string{ + string(oci_dataflow.WorkRequestStatusSucceeded), + string(oci_dataflow.WorkRequestStatusFailed), + string(oci_dataflow.WorkRequestStatusCancelled), + }, + Refresh: func() (interface{}, string, error) { + var err error + response, err = client.GetWorkRequest(context.Background(), + oci_dataflow.GetWorkRequestRequest{ + WorkRequestId: wId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + fmt.Println("inner response: ", response) + wr := &response.WorkRequest + fmt.Println("inner response work request: ", wr) + return wr, string(wr.Status), err + }, + Timeout: timeout, + } + if _, e := stateConf.WaitForState(); e != nil { + return nil, e + } + + fmt.Println("Got out of the waititng loop") + var identifier *string + // The work request response contains an array of objects that finished the operation + for _, res := range response.Resources { + fmt.Println("looping through response resources", res) + if strings.Contains(strings.ToLower(*res.ResourceType), entityType) { + if res.ActionType == action { + identifier = res.ResourceId + 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_dataflow.WorkRequestStatusFailed || response.Status == oci_dataflow.WorkRequestStatusCancelled { + return nil, getErrorFromDataflowPoolWorkRequest(client, wId, retryPolicy, entityType, action) + } + + return identifier, nil +} + +func getErrorFromDataflowPoolWorkRequest(client *oci_dataflow.DataFlowClient, workId *string, retryPolicy *oci_common.RetryPolicy, entityType string, action oci_dataflow.WorkRequestResourceActionTypeEnum) error { + response, err := client.ListWorkRequestErrors(context.Background(), + oci_dataflow.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 *DataflowPoolResourceCrud) Get() error { + request := oci_dataflow.GetPoolRequest{} + + tmp := s.D.Id() + request.PoolId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "dataflow") + + response, err := s.Client.GetPool(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response.Pool + return nil +} + +func (s *DataflowPoolResourceCrud) 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_dataflow.UpdatePoolRequest{} + + if configurations, ok := s.D.GetOkExists("configurations"); ok { + interfaces := configurations.([]interface{}) + tmp := make([]oci_dataflow.PoolConfig, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "configurations", stateDataIndex) + converted, err := s.mapToPoolConfig(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("configurations") { + request.Configurations = 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 idleTimeoutInMinutes, ok := s.D.GetOkExists("idle_timeout_in_minutes"); ok { + tmp := idleTimeoutInMinutes.(int) + request.IdleTimeoutInMinutes = &tmp + } + + tmp := s.D.Id() + request.PoolId = &tmp + + if schedules, ok := s.D.GetOkExists("schedules"); ok { + interfaces := schedules.([]interface{}) + tmp := make([]oci_dataflow.PoolSchedule, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "schedules", stateDataIndex) + converted, err := s.mapToPoolSchedule(fieldKeyFormat) + if err != nil { + return err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange("schedules") { + request.Schedules = tmp + } + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "dataflow") + + response, err := s.Client.UpdatePool(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + if workId != nil { + fmt.Println("returning from update fn here is workId: ", workId) + return s.getPoolFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "dataflow"), oci_dataflow.WorkRequestResourceActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate)) + } else { + fmt.Println("returning from create fn here is workId is nill") + err := s.Get() + if err != nil { + return err + } + return nil + } +} + +func (s *DataflowPoolResourceCrud) Delete() error { + request := oci_dataflow.DeletePoolRequest{} + + tmp := s.D.Id() + request.PoolId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "dataflow") + + _, err := s.Client.DeletePool(context.Background(), request) + return err +} + +func (s *DataflowPoolResourceCrud) SetData() error { + fmt.Println("in setData, ", s.Res) + + if s.Res.CompartmentId != nil { + s.D.Set("compartment_id", *s.Res.CompartmentId) + } + + configurations := []interface{}{} + for _, item := range s.Res.Configurations { + configurations = append(configurations, PoolConfigToMap(item)) + } + s.D.Set("configurations", configurations) + + 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) + s.D.Set("freeform_tags", s.Res.FreeformTags) + + if s.Res.IdleTimeoutInMinutes != nil { + s.D.Set("idle_timeout_in_minutes", *s.Res.IdleTimeoutInMinutes) + } + + if s.Res.LifecycleDetails != nil { + s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) + } + + if s.Res.OwnerPrincipalId != nil { + s.D.Set("owner_principal_id", *s.Res.OwnerPrincipalId) + } + + if s.Res.OwnerUserName != nil { + s.D.Set("owner_user_name", *s.Res.OwnerUserName) + } + + if s.Res.PoolMetrics != nil { + s.D.Set("pool_metrics", []interface{}{PoolMetricsToMap(s.Res.PoolMetrics)}) + } else { + s.D.Set("pool_metrics", nil) + } + + schedules := []interface{}{} + for _, item := range s.Res.Schedules { + schedules = append(schedules, PoolScheduleToMap(item)) + } + s.D.Set("schedules", schedules) + + s.D.Set("state", s.Res.LifecycleState) + + 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()) + } + + return nil +} + +func (s *DataflowPoolResourceCrud) StartPool() error { + request := oci_dataflow.StartPoolRequest{} + + idTmp := s.D.Id() + request.PoolId = &idTmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "dataflow") + + _, err := s.Client.StartPool(context.Background(), request) + if err != nil { + return err + } + + retentionPolicyFunc := func() bool { return s.Res.LifecycleState == oci_dataflow.PoolLifecycleStateActive } + return tfresource.WaitForResourceCondition(s, retentionPolicyFunc, s.D.Timeout(schema.TimeoutUpdate)) +} + +func (s *DataflowPoolResourceCrud) StopPool() error { + fmt.Println("ML: in stop pool") + request := oci_dataflow.StopPoolRequest{} + + idTmp := s.D.Id() + request.PoolId = &idTmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "dataflow") + + _, err := s.Client.StopPool(context.Background(), request) + if err != nil { + return err + } + + retentionPolicyFunc := func() bool { return s.Res.LifecycleState == oci_dataflow.PoolLifecycleStateStopped } + return tfresource.WaitForResourceCondition(s, retentionPolicyFunc, s.D.Timeout(schema.TimeoutUpdate)) +} + +func NodeCountToMap(obj oci_dataflow.NodeCount) map[string]interface{} { + result := map[string]interface{}{} + + if obj.LogicalShape != nil { + result["logical_shape"] = string(*obj.LogicalShape) + } + + if obj.Count != nil { + result["pool_count"] = int(*obj.Count) + } + + return result +} + +func (s *DataflowPoolResourceCrud) mapToPoolConfig(fieldKeyFormat string) (oci_dataflow.PoolConfig, error) { + result := oci_dataflow.PoolConfig{} + + if max, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "max")); ok { + tmp := max.(int) + result.Max = &tmp + } + + if min, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "min")); ok { + tmp := min.(int) + result.Min = &tmp + } + + if shape, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shape")); ok { + tmp := shape.(string) + result.Shape = &tmp + } + + if shapeConfig, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shape_config")); ok { + if tmpList := shapeConfig.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "shape_config"), 0) + tmp, err := s.mapToShapeConfig(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert shape_config, encountered error: %v", err) + } + result.ShapeConfig = &tmp + } + } + + return result, nil +} + +func PoolConfigToMap(obj oci_dataflow.PoolConfig) map[string]interface{} { + result := map[string]interface{}{} + + if obj.Max != nil { + result["max"] = int(*obj.Max) + } + + if obj.Min != nil { + result["min"] = int(*obj.Min) + } + + if obj.Shape != nil { + result["shape"] = string(*obj.Shape) + } + + if obj.ShapeConfig != nil { + result["shape_config"] = []interface{}{PoolShapeConfigToMap(obj.ShapeConfig)} + } + + return result +} + +func PoolMetricsToMap(obj *oci_dataflow.PoolMetrics) map[string]interface{} { + result := map[string]interface{}{} + + if obj.ActiveRunsCount != nil { + result["active_runs_count"] = strconv.FormatInt(*obj.ActiveRunsCount, 10) + } + + activelyUsedNodeCount := []interface{}{} + for _, item := range obj.ActivelyUsedNodeCount { + activelyUsedNodeCount = append(activelyUsedNodeCount, NodeCountToMap(item)) + } + result["actively_used_node_count"] = activelyUsedNodeCount + + if obj.TimeLastMetricsUpdated != nil { + result["time_last_metrics_updated"] = obj.TimeLastMetricsUpdated.String() + } + + if obj.TimeLastStarted != nil { + result["time_last_started"] = obj.TimeLastStarted.String() + } + + if obj.TimeLastStopped != nil { + result["time_last_stopped"] = obj.TimeLastStopped.String() + } + + if obj.TimeLastUsed != nil { + result["time_last_used"] = obj.TimeLastUsed.String() + } + + return result +} + +func (s *DataflowPoolResourceCrud) mapToPoolSchedule(fieldKeyFormat string) (oci_dataflow.PoolSchedule, error) { + result := oci_dataflow.PoolSchedule{} + + if dayOfWeek, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "day_of_week")); ok { + result.DayOfWeek = oci_dataflow.DayOfWeekEnum(dayOfWeek.(string)) + } + + if startTime, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "start_time")); ok { + tmp := startTime.(int) + result.StartTime = &tmp + } + + if stopTime, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "stop_time")); ok { + tmp := stopTime.(int) + result.StopTime = &tmp + } + + return result, nil +} + +func PoolScheduleToMap(obj oci_dataflow.PoolSchedule) map[string]interface{} { + result := map[string]interface{}{} + + result["day_of_week"] = string(obj.DayOfWeek) + + if obj.StartTime != nil { + result["start_time"] = int(*obj.StartTime) + } + + if obj.StopTime != nil { + result["stop_time"] = int(*obj.StopTime) + } + + return result +} + +func PoolSummaryToMap(obj oci_dataflow.PoolSummary) map[string]interface{} { + result := map[string]interface{}{} + + 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) + } + + result["freeform_tags"] = obj.FreeformTags + result["freeform_tags"] = obj.FreeformTags + + if obj.Id != nil { + result["id"] = string(*obj.Id) + } + + if obj.OwnerPrincipalId != nil { + result["owner_principal_id"] = string(*obj.OwnerPrincipalId) + } + + if obj.OwnerUserName != nil { + result["owner_user_name"] = string(*obj.OwnerUserName) + } + + result["state"] = string(obj.LifecycleState) + + if obj.TimeCreated != nil { + result["time_created"] = obj.TimeCreated.String() + } + + if obj.TimeUpdated != nil { + result["time_updated"] = obj.TimeUpdated.String() + } + + return result +} + +func (s *DataflowPoolResourceCrud) mapToShapeConfig(fieldKeyFormat string) (oci_dataflow.ShapeConfig, error) { + result := oci_dataflow.ShapeConfig{} + + if memoryInGBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "memory_in_gbs")); ok { + tmp := float32(memoryInGBs.(float64)) + result.MemoryInGBs = &tmp + } + + if ocpus, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "ocpus")); ok { + tmp := float32(ocpus.(float64)) + result.Ocpus = &tmp + } + + return result, nil +} + +func PoolShapeConfigToMap(obj *oci_dataflow.ShapeConfig) map[string]interface{} { + result := map[string]interface{}{} + + if obj.MemoryInGBs != nil { + result["memory_in_gbs"] = float32(*obj.MemoryInGBs) + } + + if obj.Ocpus != nil { + result["ocpus"] = float32(*obj.Ocpus) + } + + return result +} + +func (s *DataflowPoolResourceCrud) updateCompartment(compartment interface{}) error { + changeCompartmentRequest := oci_dataflow.ChangePoolCompartmentRequest{} + + compartmentTmp := compartment.(string) + changeCompartmentRequest.CompartmentId = &compartmentTmp + + idTmp := s.D.Id() + changeCompartmentRequest.PoolId = &idTmp + + changeCompartmentRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "dataflow") + + _, err := s.Client.ChangePoolCompartment(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/dataflow/dataflow_pools_data_source.go b/internal/service/dataflow/dataflow_pools_data_source.go new file mode 100644 index 00000000000..068102fb4ef --- /dev/null +++ b/internal/service/dataflow/dataflow_pools_data_source.go @@ -0,0 +1,153 @@ +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package dataflow + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_dataflow "github.com/oracle/oci-go-sdk/v65/dataflow" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func DataflowPoolsDataSource() *schema.Resource { + return &schema.Resource{ + Read: readDataflowPools, + Schema: map[string]*schema.Schema{ + "filter": tfresource.DataSourceFiltersSchema(), + "compartment_id": { + Type: schema.TypeString, + Required: true, + }, + "display_name": { + Type: schema.TypeString, + Optional: true, + }, + "display_name_starts_with": { + Type: schema.TypeString, + Optional: true, + }, + "owner_principal_id": { + Type: schema.TypeString, + Optional: true, + }, + "state": { + Type: schema.TypeString, + Optional: true, + }, + "pool_collection": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + + "items": { + Type: schema.TypeList, + Computed: true, + Elem: tfresource.GetDataSourceItemSchema(DataflowPoolResource()), + }, + }, + }, + }, + }, + } +} + +func readDataflowPools(d *schema.ResourceData, m interface{}) error { + sync := &DataflowPoolsDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).DataFlowClient() + + return tfresource.ReadResource(sync) +} + +type DataflowPoolsDataSourceCrud struct { + D *schema.ResourceData + Client *oci_dataflow.DataFlowClient + Res *oci_dataflow.ListPoolsResponse +} + +func (s *DataflowPoolsDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *DataflowPoolsDataSourceCrud) Get() error { + request := oci_dataflow.ListPoolsRequest{} + + 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 displayNameStartsWith, ok := s.D.GetOkExists("display_name_starts_with"); ok { + tmp := displayNameStartsWith.(string) + request.DisplayNameStartsWith = &tmp + } + + if ownerPrincipalId, ok := s.D.GetOkExists("owner_principal_id"); ok { + tmp := ownerPrincipalId.(string) + request.OwnerPrincipalId = &tmp + } + + if state, ok := s.D.GetOkExists("state"); ok { + request.LifecycleState = oci_dataflow.ListPoolsLifecycleStateEnum(state.(string)) + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "dataflow") + + response, err := s.Client.ListPools(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + request.Page = s.Res.OpcNextPage + + for request.Page != nil { + listResponse, err := s.Client.ListPools(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 *DataflowPoolsDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(tfresource.GenerateDataSourceHashID("DataflowPoolsDataSource-", DataflowPoolsDataSource(), s.D)) + resources := []map[string]interface{}{} + pool := map[string]interface{}{} + + items := []interface{}{} + for _, item := range s.Res.Items { + items = append(items, PoolSummaryToMap(item)) + } + pool["items"] = items + + if f, fOk := s.D.GetOkExists("filter"); fOk { + items = tfresource.ApplyFiltersInCollection(f.(*schema.Set), items, DataflowPoolsDataSource().Schema["pool_collection"].Elem.(*schema.Resource).Schema) + pool["items"] = items + } + + resources = append(resources, pool) + if err := s.D.Set("pool_collection", resources); err != nil { + return err + } + + return nil +} diff --git a/internal/service/dataflow/register_datasource.go b/internal/service/dataflow/register_datasource.go index fa9586cb279..17147a0c719 100644 --- a/internal/service/dataflow/register_datasource.go +++ b/internal/service/dataflow/register_datasource.go @@ -10,6 +10,8 @@ func RegisterDatasource() { tfresource.RegisterDatasource("oci_dataflow_applications", DataflowApplicationsDataSource()) tfresource.RegisterDatasource("oci_dataflow_invoke_run", DataflowInvokeRunDataSource()) tfresource.RegisterDatasource("oci_dataflow_invoke_runs", DataflowInvokeRunsDataSource()) + tfresource.RegisterDatasource("oci_dataflow_pool", DataflowPoolDataSource()) + tfresource.RegisterDatasource("oci_dataflow_pools", DataflowPoolsDataSource()) tfresource.RegisterDatasource("oci_dataflow_private_endpoint", DataflowPrivateEndpointDataSource()) tfresource.RegisterDatasource("oci_dataflow_private_endpoints", DataflowPrivateEndpointsDataSource()) tfresource.RegisterDatasource("oci_dataflow_run_log", DataflowRunLogDataSource()) diff --git a/internal/service/dataflow/register_resource.go b/internal/service/dataflow/register_resource.go index e6ba5377fe7..70b46c7ffcc 100644 --- a/internal/service/dataflow/register_resource.go +++ b/internal/service/dataflow/register_resource.go @@ -8,6 +8,7 @@ import "github.com/oracle/terraform-provider-oci/internal/tfresource" func RegisterResource() { tfresource.RegisterResource("oci_dataflow_application", DataflowApplicationResource()) tfresource.RegisterResource("oci_dataflow_invoke_run", DataflowInvokeRunResource()) + tfresource.RegisterResource("oci_dataflow_pool", DataflowPoolResource()) tfresource.RegisterResource("oci_dataflow_private_endpoint", DataflowPrivateEndpointResource()) tfresource.RegisterResource("oci_dataflow_run_statement", DataflowRunStatementResource()) } diff --git a/internal/service/functions/functions_application_data_source.go b/internal/service/functions/functions_application_data_source.go index 8e4daaccd10..77d008dff00 100644 --- a/internal/service/functions/functions_application_data_source.go +++ b/internal/service/functions/functions_application_data_source.go @@ -90,6 +90,8 @@ func (s *FunctionsApplicationDataSourceCrud) SetData() error { s.D.Set("image_policy_config", nil) } + s.D.Set("shape", s.Res.Shape) + s.D.Set("state", s.Res.LifecycleState) s.D.Set("subnet_ids", s.Res.SubnetIds) diff --git a/internal/service/functions/functions_application_resource.go b/internal/service/functions/functions_application_resource.go index 2fdfd7654a8..b2390a8b04e 100644 --- a/internal/service/functions/functions_application_resource.go +++ b/internal/service/functions/functions_application_resource.go @@ -116,6 +116,12 @@ func FunctionsApplicationResource() *schema.Resource { Type: schema.TypeString, }, }, + "shape": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, "syslog_url": { Type: schema.TypeString, Optional: true, @@ -287,6 +293,10 @@ func (s *FunctionsApplicationResourceCrud) Create() error { } } + if shape, ok := s.D.GetOkExists("shape"); ok { + request.Shape = oci_functions.CreateApplicationDetailsShapeEnum(shape.(string)) + } + if subnetIds, ok := s.D.GetOkExists("subnet_ids"); ok { interfaces := subnetIds.([]interface{}) tmp := make([]string, len(interfaces)) @@ -468,6 +478,8 @@ func (s *FunctionsApplicationResourceCrud) SetData() error { } s.D.Set("network_security_group_ids", schema.NewSet(tfresource.LiteralTypeHashCodeForSets, networkSecurityGroupIds)) + s.D.Set("shape", s.Res.Shape) + s.D.Set("state", s.Res.LifecycleState) s.D.Set("subnet_ids", s.Res.SubnetIds) diff --git a/internal/service/functions/functions_applications_data_source.go b/internal/service/functions/functions_applications_data_source.go index 964bc7e2a75..4565643548c 100644 --- a/internal/service/functions/functions_applications_data_source.go +++ b/internal/service/functions/functions_applications_data_source.go @@ -141,6 +141,8 @@ func (s *FunctionsApplicationsDataSourceCrud) SetData() error { application["image_policy_config"] = nil } + application["shape"] = r.Shape + application["state"] = r.LifecycleState application["subnet_ids"] = r.SubnetIds diff --git a/internal/service/functions/functions_function_data_source.go b/internal/service/functions/functions_function_data_source.go index 19de329c414..11f82ad3879 100644 --- a/internal/service/functions/functions_function_data_source.go +++ b/internal/service/functions/functions_function_data_source.go @@ -113,6 +113,8 @@ func (s *FunctionsFunctionDataSourceCrud) SetData() error { s.D.Set("provisioned_concurrency_config", nil) } + s.D.Set("shape", s.Res.Shape) + if s.Res.SourceDetails != nil { sourceDetailsArray := []interface{}{} if sourceDetailsMap := FunctionSourceDetailsToMap(&s.Res.SourceDetails); sourceDetailsMap != nil { diff --git a/internal/service/functions/functions_function_resource.go b/internal/service/functions/functions_function_resource.go index 957ff7ca844..498d2dd60be 100644 --- a/internal/service/functions/functions_function_resource.go +++ b/internal/service/functions/functions_function_resource.go @@ -233,6 +233,10 @@ func FunctionsFunctionResource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "shape": { + Type: schema.TypeString, + Computed: true, + }, "state": { Type: schema.TypeString, Computed: true, @@ -590,6 +594,8 @@ func (s *FunctionsFunctionResourceCrud) SetData() error { s.D.Set("provisioned_concurrency_config", nil) } + s.D.Set("shape", s.Res.Shape) + if s.Res.SourceDetails != nil { sourceDetailsArray := []interface{}{} if sourceDetailsMap := FunctionSourceDetailsToMap(&s.Res.SourceDetails); sourceDetailsMap != nil { diff --git a/internal/service/functions/functions_functions_data_source.go b/internal/service/functions/functions_functions_data_source.go index 4710ae13c1a..1cbd3373ec9 100644 --- a/internal/service/functions/functions_functions_data_source.go +++ b/internal/service/functions/functions_functions_data_source.go @@ -164,6 +164,8 @@ func (s *FunctionsFunctionsDataSourceCrud) SetData() error { function["provisioned_concurrency_config"] = nil } + function["shape"] = r.Shape + if r.SourceDetails != nil { sourceDetailsArray := []interface{}{} if sourceDetailsMap := FunctionSourceDetailsToMap(&r.SourceDetails); sourceDetailsMap != nil { diff --git a/internal/service/identity/identity_domain_resource.go b/internal/service/identity/identity_domain_resource.go index e172f5ef904..d1b2e94212a 100644 --- a/internal/service/identity/identity_domain_resource.go +++ b/internal/service/identity/identity_domain_resource.go @@ -132,6 +132,10 @@ func IdentityDomainResource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "regional_url": { + Type: schema.TypeString, + Computed: true, + }, "state": { Type: schema.TypeString, Computed: true, @@ -674,6 +678,10 @@ func ReplicatedRegionDetailsToMap(obj oci_identity.ReplicatedRegionDetails) map[ result["region"] = string(*obj.Region) } + if obj.RegionalUrl != nil { + result["regional_url"] = string(*obj.RegionalUrl) + } + result["state"] = string(obj.State) if obj.Url != nil { diff --git a/internal/service/identity/identity_export.go b/internal/service/identity/identity_export.go index f54a6f89356..bced40e4a3d 100644 --- a/internal/service/identity/identity_export.go +++ b/internal/service/identity/identity_export.go @@ -29,6 +29,7 @@ func init() { exportIdentityTagHints.ProcessDiscoveredResourcesFn = processTagDefinitions tf_export.RegisterTenancyGraphs("identity", identityResourceGraph) tf_export.RegisterCompartmentGraphs("tagging", taggingResourceGraph) + tf_export.RegisterCompartmentGraphs("identity", identityCompartmentResourceGraph) tf_export.BuildAvailabilityResourceGraph("oci_identity_compartment", customAssociationIdentityCompartment) } @@ -509,6 +510,13 @@ var identityResourceGraph = tf_export.TerraformResourceGraph{ }, } +var identityCompartmentResourceGraph = tf_export.TerraformResourceGraph{ + "oci_identity_compartment": { + {TerraformResourceHints: exportIdentityPolicyHints}, + {TerraformResourceHints: exportIdentityDomainHints}, + }, +} + var taggingResourceGraph = tf_export.TerraformResourceGraph{ "oci_identity_compartment": { {TerraformResourceHints: exportIdentityTagDefaultHints}, diff --git a/internal/service/identity/identity_network_sources_data_source.go b/internal/service/identity/identity_network_sources_data_source.go index 480a00fdc3d..264648085bb 100644 --- a/internal/service/identity/identity_network_sources_data_source.go +++ b/internal/service/identity/identity_network_sources_data_source.go @@ -132,6 +132,8 @@ func (s *IdentityNetworkSourcesDataSourceCrud) SetData() error { networkSource["services"] = r.Services + networkSource["state"] = r.LifecycleState + if r.TimeCreated != nil { networkSource["time_created"] = r.TimeCreated.String() } 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 a63bfb1f0c6..f03d2857889 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 @@ -13,7 +13,7 @@ import ( const ( major = "65" minor = "41" - patch = "0" + patch = "1" tag = "" ) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/console_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/console_connection.go index 3e4c713f901..c0e9c0f0eeb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/console_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/console_connection.go @@ -35,6 +35,21 @@ type ConsoleConnection struct { // The current state of the console connection. LifecycleState ConsoleConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The SSH public key's fingerprint for the console connection service host. + ServiceHostKeyFingerprint *string `mandatory:"false" json:"serviceHostKeyFingerprint"` + + // 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"` + + // Information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` } func (m ConsoleConnection) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/console_connection_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/console_connection_summary.go index 216543a837a..c3d1db387b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/console_connection_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/console_connection_summary.go @@ -36,6 +36,21 @@ type ConsoleConnectionSummary struct { // The current state of the console connection. LifecycleState ConsoleConnectionSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The SSH public key's fingerprint for the console connection service host. + ServiceHostKeyFingerprint *string `mandatory:"false" json:"serviceHostKeyFingerprint"` + + // 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"` + + // Information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` } func (m ConsoleConnectionSummary) String() string { 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 afe24ad5ebb..5451ed6d91f 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 @@ -67,6 +67,7 @@ type CreateAutonomousDatabaseBase interface { GetDbWorkload() CreateAutonomousDatabaseBaseDbWorkloadEnum // The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. For Autonomous Databases on dedicated Exadata infrastructure, the maximum storage value is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + // A full Exadata service is allocated when the Autonomous Database size is set to the upper limit (384 TB). // **Note:** This parameter cannot be used with the `dataStorageSizeInGBs` parameter. GetDataStorageSizeInTBs() *int diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_clone_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_clone_details.go index d3041342fe7..af8f0b78f07 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_clone_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_clone_details.go @@ -54,6 +54,7 @@ type CreateAutonomousDatabaseCloneDetails struct { OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` // The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. For Autonomous Databases on dedicated Exadata infrastructure, the maximum storage value is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + // A full Exadata service is allocated when the Autonomous Database size is set to the upper limit (384 TB). // **Note:** This parameter cannot be used with the `dataStorageSizeInGBs` parameter. DataStorageSizeInTBs *int `mandatory:"false" json:"dataStorageSizeInTBs"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_details.go index ad75fbed4cb..586602f8c7a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_details.go @@ -51,6 +51,7 @@ type CreateAutonomousDatabaseDetails struct { OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` // The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. For Autonomous Databases on dedicated Exadata infrastructure, the maximum storage value is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + // A full Exadata service is allocated when the Autonomous Database size is set to the upper limit (384 TB). // **Note:** This parameter cannot be used with the `dataStorageSizeInGBs` parameter. DataStorageSizeInTBs *int `mandatory:"false" json:"dataStorageSizeInTBs"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_details.go index 93e469a8b14..cc1dcf230ad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_details.go @@ -54,6 +54,7 @@ type CreateAutonomousDatabaseFromBackupDetails struct { OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` // The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. For Autonomous Databases on dedicated Exadata infrastructure, the maximum storage value is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + // A full Exadata service is allocated when the Autonomous Database size is set to the upper limit (384 TB). // **Note:** This parameter cannot be used with the `dataStorageSizeInGBs` parameter. DataStorageSizeInTBs *int `mandatory:"false" json:"dataStorageSizeInTBs"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_timestamp_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_timestamp_details.go index 6e198f8b6e7..1ed141b6c66 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_timestamp_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_autonomous_database_from_backup_timestamp_details.go @@ -54,6 +54,7 @@ type CreateAutonomousDatabaseFromBackupTimestampDetails struct { OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` // The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. For Autonomous Databases on dedicated Exadata infrastructure, the maximum storage value is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + // A full Exadata service is allocated when the Autonomous Database size is set to the upper limit (384 TB). // **Note:** This parameter cannot be used with the `dataStorageSizeInGBs` parameter. DataStorageSizeInTBs *int `mandatory:"false" json:"dataStorageSizeInTBs"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_console_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_console_connection_details.go index e6e3cc6157f..69ef797e91b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_console_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_console_connection_details.go @@ -21,6 +21,15 @@ type CreateConsoleConnectionDetails struct { // The SSH public key used to authenticate the console connection. PublicKey *string `mandatory:"true" json:"publicKey"` + + // 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 CreateConsoleConnectionDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_console_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_console_connection_request_response.go index 728954516bb..096199146fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_console_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_console_connection_request_response.go @@ -92,6 +92,9 @@ type CreateConsoleConnectionResponse 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 `presentIn:"header" name:"opc-request-id"` + + // 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"` } func (response CreateConsoleConnectionResponse) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_autonomous_database_data_guard_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_autonomous_database_data_guard_details.go index 5597bce1960..a8853d2e310 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_autonomous_database_data_guard_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_autonomous_database_data_guard_details.go @@ -96,6 +96,7 @@ type CreateCrossRegionAutonomousDatabaseDataGuardDetails struct { OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` // The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. For Autonomous Databases on dedicated Exadata infrastructure, the maximum storage value is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + // A full Exadata service is allocated when the Autonomous Database size is set to the upper limit (384 TB). // **Note:** This parameter cannot be used with the `dataStorageSizeInGBs` parameter. DataStorageSizeInTBs *int `mandatory:"false" json:"dataStorageSizeInTBs"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_disaster_recovery_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_disaster_recovery_details.go index e78eca62c39..af4c5a281e5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_disaster_recovery_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_cross_region_disaster_recovery_details.go @@ -94,6 +94,7 @@ type CreateCrossRegionDisasterRecoveryDetails struct { OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` // The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. For Autonomous Databases on dedicated Exadata infrastructure, the maximum storage value is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + // A full Exadata service is allocated when the Autonomous Database size is set to the upper limit (384 TB). // **Note:** This parameter cannot be used with the `dataStorageSizeInGBs` parameter. DataStorageSizeInTBs *int `mandatory:"false" json:"dataStorageSizeInTBs"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_refreshable_autonomous_database_clone_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_refreshable_autonomous_database_clone_details.go index 278d910eb73..2976a28f2bb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/create_refreshable_autonomous_database_clone_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/create_refreshable_autonomous_database_clone_details.go @@ -54,6 +54,7 @@ type CreateRefreshableAutonomousDatabaseCloneDetails struct { OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` // The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. For Autonomous Databases on dedicated Exadata infrastructure, the maximum storage value is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + // A full Exadata service is allocated when the Autonomous Database size is set to the upper limit (384 TB). // **Note:** This parameter cannot be used with the `dataStorageSizeInGBs` parameter. DataStorageSizeInTBs *int `mandatory:"false" json:"dataStorageSizeInTBs"` 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 52eb3c4af81..42a9ab769af 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 @@ -16928,6 +16928,63 @@ func (client DatabaseClient) updateCloudVmClusterIormConfig(ctx context.Context, return response, err } +// UpdateConsoleConnection Updates the specified database node console connection. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/UpdateConsoleConnection.go.html to see an example of how to use UpdateConsoleConnection API. +func (client DatabaseClient) UpdateConsoleConnection(ctx context.Context, request UpdateConsoleConnectionRequest) (response UpdateConsoleConnectionResponse, 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.updateConsoleConnection, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateConsoleConnectionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateConsoleConnectionResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateConsoleConnectionResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateConsoleConnectionResponse") + } + return +} + +// updateConsoleConnection implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) updateConsoleConnection(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/dbNodes/{dbNodeId}/consoleConnections/{consoleConnectionId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateConsoleConnectionResponse + 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/ConsoleConnection/UpdateConsoleConnection" + err = common.PostProcessServiceError(err, "Database", "UpdateConsoleConnection", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateDataGuardAssociation Updates the Data Guard association the specified database. This API can be used to change the `protectionMode` and `transportType` of the Data Guard association. // // See also @@ -17156,6 +17213,63 @@ func (client DatabaseClient) updateDbHome(ctx context.Context, request common.OC return response, err } +// UpdateDbNode Updates the specified database node. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/UpdateDbNode.go.html to see an example of how to use UpdateDbNode API. +func (client DatabaseClient) UpdateDbNode(ctx context.Context, request UpdateDbNodeRequest) (response UpdateDbNodeResponse, 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.updateDbNode, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateDbNodeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateDbNodeResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateDbNodeResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateDbNodeResponse") + } + return +} + +// updateDbNode implements the OCIOperation interface (enables retrying operations) +func (client DatabaseClient) updateDbNode(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/dbNodes/{dbNodeId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateDbNodeResponse + 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/DbNode/UpdateDbNode" + err = common.PostProcessServiceError(err, "Database", "UpdateDbNode", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateDbSystem Updates the properties of the specified DB system. // **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. 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 28fa4edb965..c65589e110a 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 @@ -77,6 +77,18 @@ type DbNode struct { // Additional information about the planned maintenance. AdditionalDetails *string `mandatory:"false" json:"additionalDetails"` + // 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"` + + // Information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + // The number of CPU cores enabled on the Db node. CpuCoreCount *int `mandatory:"false" json:"cpuCoreCount"` 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 9581ca88a0f..492a2fbda13 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 @@ -79,6 +79,18 @@ type DbNodeSummary struct { // Additional information about the planned maintenance. AdditionalDetails *string `mandatory:"false" json:"additionalDetails"` + // 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"` + + // Information about the current lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + // The number of CPU cores enabled on the Db node. CpuCoreCount *int `mandatory:"false" json:"cpuCoreCount"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/delete_console_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/delete_console_connection_request_response.go index 48ea26b8ceb..b1c9f32408c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/delete_console_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/delete_console_connection_request_response.go @@ -84,6 +84,9 @@ type DeleteConsoleConnectionResponse 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 `presentIn:"header" name:"opc-request-id"` + + // 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"` } func (response DeleteConsoleConnectionResponse) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/update_autonomous_database_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_autonomous_database_details.go index 8b4be9d1151..0c5d8e052ef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/database/update_autonomous_database_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_autonomous_database_details.go @@ -44,6 +44,7 @@ type UpdateAutonomousDatabaseDetails struct { OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` // The size, in terabytes, of the data volume that will be created and attached to the database. For Autonomous Databases on dedicated Exadata infrastructure, the maximum storage value is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + // A full Exadata service is allocated when the Autonomous Database size is set to the upper limit (384 TB). // **Note:** This parameter cannot be used with the `dataStorageSizeInGBs` parameter. // This cannot be updated in parallel with any of the following: licenseModel, databaseEdition, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. DataStorageSizeInTBs *int `mandatory:"false" json:"dataStorageSizeInTBs"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/update_console_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_console_connection_details.go new file mode 100644 index 00000000000..5b39bbf2c52 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_console_connection_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// UpdateConsoleConnectionDetails The details for updating a Db node console connection. +type UpdateConsoleConnectionDetails struct { + + // 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 UpdateConsoleConnectionDetails) 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 UpdateConsoleConnectionDetails) 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_console_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_console_connection_request_response.go new file mode 100644 index 00000000000..e3bcb7a9df5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_console_connection_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// UpdateConsoleConnectionRequest wrapper for the UpdateConsoleConnection operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/UpdateConsoleConnection.go.html to see an example of how to use UpdateConsoleConnectionRequest. +type UpdateConsoleConnectionRequest struct { + + // The database node OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + DbNodeId *string `mandatory:"true" contributesTo:"path" name:"dbNodeId"` + + // The OCID of the console connection. + ConsoleConnectionId *string `mandatory:"true" contributesTo:"path" name:"consoleConnectionId"` + + // Request to update the specified database node console connection. + UpdateConsoleConnectionDetails `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 UpdateConsoleConnectionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateConsoleConnectionRequest) 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 UpdateConsoleConnectionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateConsoleConnectionRequest) 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 UpdateConsoleConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateConsoleConnectionResponse wrapper for the UpdateConsoleConnection operation +type UpdateConsoleConnectionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ConsoleConnection instance + ConsoleConnection `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 UpdateConsoleConnectionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateConsoleConnectionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/database/update_db_node_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_db_node_details.go new file mode 100644 index 00000000000..f3ebee39876 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_db_node_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// UpdateDbNodeDetails The details for updating a Db node. +type UpdateDbNodeDetails struct { + + // 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 UpdateDbNodeDetails) 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 UpdateDbNodeDetails) 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_db_node_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_db_node_request_response.go new file mode 100644 index 00000000000..b165a7b35c0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/database/update_db_node_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2023, 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" +) + +// UpdateDbNodeRequest wrapper for the UpdateDbNode operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/database/UpdateDbNode.go.html to see an example of how to use UpdateDbNodeRequest. +type UpdateDbNodeRequest struct { + + // The database node OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + DbNodeId *string `mandatory:"true" contributesTo:"path" name:"dbNodeId"` + + // Request to update the specified database node. + UpdateDbNodeDetails `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 UpdateDbNodeRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateDbNodeRequest) 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 UpdateDbNodeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateDbNodeRequest) 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 UpdateDbNodeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateDbNodeResponse wrapper for the UpdateDbNode operation +type UpdateDbNodeResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The DbNode instance + DbNode `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 UpdateDbNodeResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateDbNodeResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/application.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/application.go index d1ae65d96f3..6c41697234c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/application.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/application.go @@ -52,11 +52,11 @@ type Application struct { // The Spark version utilized to run the application. SparkVersion *string `mandatory:"true" json:"sparkVersion"` - // The date and time a application was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - // The date and time a application was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` @@ -126,6 +126,9 @@ type Application struct { // Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] Parameters []ApplicationParameter `mandatory:"false" json:"parameters"` + // The OCID of a pool. Unique Id to indentify a dataflow pool resource. + PoolId *string `mandatory:"false" json:"poolId"` + // The OCID of a private endpoint. PrivateEndpointId *string `mandatory:"false" json:"privateEndpointId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/application_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/application_summary.go index 06a9cf5f181..6efebaa7bb9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/application_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/application_summary.go @@ -48,11 +48,11 @@ type ApplicationSummary struct { // The Spark version utilized to run the application. SparkVersion *string `mandatory:"true" json:"sparkVersion"` - // The date and time a application was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - // The date and time a application was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` @@ -60,6 +60,9 @@ type ApplicationSummary struct { // `null` will be returned and the caller should refer to the ownerPrincipalId value instead. OwnerUserName *string `mandatory:"false" json:"ownerUserName"` + // The OCID of a pool. Unique Id to indentify a dataflow pool resource. + PoolId *string `mandatory:"false" json:"poolId"` + // The Spark application processing type. Type ApplicationTypeEnum `mandatory:"false" json:"type,omitempty"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/change_pool_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/change_pool_compartment_details.go new file mode 100644 index 00000000000..a719fabc105 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/change_pool_compartment_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Flow API +// +// Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. +// + +package dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangePoolCompartmentDetails The details required to change a pool compartment. +type ChangePoolCompartmentDetails struct { + + // The OCID of a compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangePoolCompartmentDetails) 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 ChangePoolCompartmentDetails) 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/dataflow/change_pool_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/change_pool_compartment_request_response.go new file mode 100644 index 00000000000..e018105dc99 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/change_pool_compartment_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2023, 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 dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangePoolCompartmentRequest wrapper for the ChangePoolCompartment operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/ChangePoolCompartment.go.html to see an example of how to use ChangePoolCompartmentRequest. +type ChangePoolCompartmentRequest struct { + + // The unique ID for a pool. + PoolId *string `mandatory:"true" contributesTo:"path" name:"poolId"` + + // Details for changing a pool's compartment. + ChangePoolCompartmentDetails `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"` + + // 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. If provided, the returned request ID will include this value. + // Otherwise, a random request ID will be generated by the service. + 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 ChangePoolCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangePoolCompartmentRequest) 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 ChangePoolCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangePoolCompartmentRequest) 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 ChangePoolCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangePoolCompartmentResponse wrapper for the ChangePoolCompartment operation +type ChangePoolCompartmentResponse 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 ChangePoolCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangePoolCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_application_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_application_details.go index 50ecef12801..db098d93e68 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_application_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_application_details.go @@ -105,6 +105,9 @@ type CreateApplicationDetails struct { // Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] Parameters []ApplicationParameter `mandatory:"false" json:"parameters"` + // The OCID of a pool. Unique Id to indentify a dataflow pool resource. + PoolId *string `mandatory:"false" json:"poolId"` + // The OCID of a private endpoint. PrivateEndpointId *string `mandatory:"false" json:"privateEndpointId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_pool_details.go new file mode 100644 index 00000000000..9a682d6fe57 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_pool_details.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Flow API +// +// Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. +// + +package dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreatePoolDetails The details required to create a pool. +type CreatePoolDetails struct { + + // The OCID of a compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. It does not have to be unique. Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // List of PoolConfig items. + Configurations []PoolConfig `mandatory:"true" json:"configurations"` + + // A user-friendly description. Avoid entering confidential information. + Description *string `mandatory:"false" json:"description"` + + // A list of schedules for pool to auto start and stop. + Schedules []PoolSchedule `mandatory:"false" json:"schedules"` + + // Optional timeout value in minutes used to auto stop Pools. A Pool will be auto stopped after inactivity for this amount of time period. + // If value not set, pool will not be auto stopped auto. + IdleTimeoutInMinutes *int `mandatory:"false" json:"idleTimeoutInMinutes"` + + // 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"` + + // 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 CreatePoolDetails) 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 CreatePoolDetails) 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/dataflow/create_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_pool_request_response.go new file mode 100644 index 00000000000..807ee64acdb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_pool_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2023, 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 dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreatePoolRequest wrapper for the CreatePool operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/CreatePool.go.html to see an example of how to use CreatePoolRequest. +type CreatePoolRequest struct { + + // The parameter required to create a pool. + CreatePoolDetails `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. If provided, the returned request ID will include this value. + // Otherwise, a random request ID will be generated by the service. + 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 CreatePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreatePoolRequest) 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 CreatePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreatePoolRequest) 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 CreatePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreatePoolResponse wrapper for the CreatePool operation +type CreatePoolResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Pool instance + Pool `presentIn:"body"` + + // For optimistic concurrency control. + // See ETags for Optimistic Concurrency Control (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + 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"` + + // Unique Oracle assigned identifier for a work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Provides information about the location of a newly created resource. + Location *string `presentIn:"header" name:"location"` +} + +func (response CreatePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreatePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_run_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_run_details.go index 65a934de405..76f4c0f82de 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_run_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/create_run_details.go @@ -123,6 +123,9 @@ type CreateRunDetails struct { // Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] Parameters []ApplicationParameter `mandatory:"false" json:"parameters"` + // The OCID of a pool. Unique Id to indentify a dataflow pool resource. + PoolId *string `mandatory:"false" json:"poolId"` + // The Spark version utilized to run the application. This value may be set if applicationId is not since the Spark version will be taken from the associated application. SparkVersion *string `mandatory:"false" json:"sparkVersion"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/dataflow_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/dataflow_client.go index d9d9041abb9..4665d39fffd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/dataflow_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/dataflow_client.go @@ -151,6 +151,72 @@ func (client DataFlowClient) changeApplicationCompartment(ctx context.Context, r return response, err } +// ChangePoolCompartment Moves a pool into a different compartment. When provided, If-Match is checked against ETag +// values of the resource. Associated resources, like historical metrics, will not be +// automatically moved. The pool must be in a terminal state (STOPPED, FAILED) in +// order for it to be moved to a different compartment +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/ChangePoolCompartment.go.html to see an example of how to use ChangePoolCompartment API. +// A default retry strategy applies to this operation ChangePoolCompartment() +func (client DataFlowClient) ChangePoolCompartment(ctx context.Context, request ChangePoolCompartmentRequest) (response ChangePoolCompartmentResponse, 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.changePoolCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangePoolCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangePoolCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangePoolCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangePoolCompartmentResponse") + } + return +} + +// changePoolCompartment implements the OCIOperation interface (enables retrying operations) +func (client DataFlowClient) changePoolCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/pools/{poolId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangePoolCompartmentResponse + 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/data-flow/20200129/Pool/ChangePoolCompartment" + err = common.PostProcessServiceError(err, "DataFlow", "ChangePoolCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ChangePrivateEndpointCompartment Moves a private endpoint into a different compartment. When provided, If-Match is checked against ETag values of the resource. // // See also @@ -335,6 +401,69 @@ func (client DataFlowClient) createApplication(ctx context.Context, request comm return response, err } +// CreatePool Create a pool to be used by dataflow runs or applications. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/CreatePool.go.html to see an example of how to use CreatePool API. +// A default retry strategy applies to this operation CreatePool() +func (client DataFlowClient) CreatePool(ctx context.Context, request CreatePoolRequest) (response CreatePoolResponse, 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.createPool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreatePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreatePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreatePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreatePoolResponse") + } + return +} + +// createPool implements the OCIOperation interface (enables retrying operations) +func (client DataFlowClient) createPool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/pools", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreatePoolResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "DataFlow", "CreatePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreatePrivateEndpoint Creates a private endpoint to be used by applications. // // See also @@ -573,6 +702,63 @@ func (client DataFlowClient) deleteApplication(ctx context.Context, request comm return response, err } +// DeletePool Deletes a pool using a `poolId`. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/DeletePool.go.html to see an example of how to use DeletePool API. +func (client DataFlowClient) DeletePool(ctx context.Context, request DeletePoolRequest) (response DeletePoolResponse, 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.deletePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeletePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeletePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeletePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeletePoolResponse") + } + return +} + +// deletePool implements the OCIOperation interface (enables retrying operations) +func (client DataFlowClient) deletePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/pools/{poolId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeletePoolResponse + 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/data-flow/20200129/Pool/DeletePool" + err = common.PostProcessServiceError(err, "DataFlow", "DeletePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DeletePrivateEndpoint Deletes a private endpoint using a `privateEndpointId`. // // See also @@ -804,6 +990,64 @@ func (client DataFlowClient) getApplication(ctx context.Context, request common. return response, err } +// GetPool Retrieves a pool using a `poolId`. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/GetPool.go.html to see an example of how to use GetPool API. +// A default retry strategy applies to this operation GetPool() +func (client DataFlowClient) GetPool(ctx context.Context, request GetPoolRequest) (response GetPoolResponse, 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.getPool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetPoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetPoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetPoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetPoolResponse") + } + return +} + +// getPool implements the OCIOperation interface (enables retrying operations) +func (client DataFlowClient) getPool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/pools/{poolId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetPoolResponse + 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/data-flow/20200129/Pool/GetPool" + err = common.PostProcessServiceError(err, "DataFlow", "GetPool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetPrivateEndpoint Retrieves an private endpoint using a `privateEndpointId`. // // See also @@ -1151,6 +1395,64 @@ func (client DataFlowClient) listApplications(ctx context.Context, request commo return response, err } +// ListPools Lists all pools in the specified compartment. The query must include compartmentId. The query may also include one other parameter. If the query does not include compartmentId, or includes compartmentId, but with two or more other parameters, an error is returned. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/ListPools.go.html to see an example of how to use ListPools API. +// A default retry strategy applies to this operation ListPools() +func (client DataFlowClient) ListPools(ctx context.Context, request ListPoolsRequest) (response ListPoolsResponse, 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.listPools, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListPoolsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListPoolsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListPoolsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListPoolsResponse") + } + return +} + +// listPools implements the OCIOperation interface (enables retrying operations) +func (client DataFlowClient) listPools(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/pools", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListPoolsResponse + 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/data-flow/20200129/Pool/ListPools" + err = common.PostProcessServiceError(err, "DataFlow", "ListPools", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListPrivateEndpoints Lists all private endpoints in the specified compartment. The query must include compartmentId. The query may also include one other parameter. If the query does not include compartmentId, or includes compartmentId, but with two or more other parameters, an error is returned. // // See also @@ -1557,6 +1859,132 @@ func (client DataFlowClient) listWorkRequests(ctx context.Context, request commo return response, err } +// StartPool Starts the dataflow pool for a given `poolId`. When provided, If-Match is checked against ETag values of the resource. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/StartPool.go.html to see an example of how to use StartPool API. +// A default retry strategy applies to this operation StartPool() +func (client DataFlowClient) StartPool(ctx context.Context, request StartPoolRequest) (response StartPoolResponse, 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.startPool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = StartPoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = StartPoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(StartPoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StartPoolResponse") + } + return +} + +// startPool implements the OCIOperation interface (enables retrying operations) +func (client DataFlowClient) startPool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/pools/{poolId}/actions/start", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response StartPoolResponse + 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/data-flow/20200129/Pool/StartPool" + err = common.PostProcessServiceError(err, "DataFlow", "StartPool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// StopPool Stops the dataflow pool for a given `poolId`. When provided, If-Match is checked against ETag values of the resource. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/StopPool.go.html to see an example of how to use StopPool API. +// A default retry strategy applies to this operation StopPool() +func (client DataFlowClient) StopPool(ctx context.Context, request StopPoolRequest) (response StopPoolResponse, 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.stopPool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = StopPoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = StopPoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(StopPoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StopPoolResponse") + } + return +} + +// stopPool implements the OCIOperation interface (enables retrying operations) +func (client DataFlowClient) stopPool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/pools/{poolId}/actions/stop", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response StopPoolResponse + 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/data-flow/20200129/Pool/StopPool" + err = common.PostProcessServiceError(err, "DataFlow", "StopPool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateApplication Updates an application using an `applicationId`. // // See also @@ -1614,6 +2042,65 @@ func (client DataFlowClient) updateApplication(ctx context.Context, request comm return response, err } +// UpdatePool Updates a pool using a `poolId`.If changes to a pool doesn't match +// a previously defined pool,then a 409 status code will be returned.This indicates +// that a conflict has been detected. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/UpdatePool.go.html to see an example of how to use UpdatePool API. +func (client DataFlowClient) UpdatePool(ctx context.Context, request UpdatePoolRequest) (response UpdatePoolResponse, 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.updatePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdatePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdatePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdatePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdatePoolResponse") + } + return +} + +// updatePool implements the OCIOperation interface (enables retrying operations) +func (client DataFlowClient) updatePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/pools/{poolId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdatePoolResponse + 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/data-flow/20200129/Pool/UpdatePool" + err = common.PostProcessServiceError(err, "DataFlow", "UpdatePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdatePrivateEndpoint Updates a private endpoint using a `privateEndpointId`. If changes to a private endpoint match // a previously defined private endpoint, then a 409 status code will be returned. This indicates // that a conflict has been detected. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/day_of_week.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/day_of_week.go new file mode 100644 index 00000000000..9ba2b2c9f19 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/day_of_week.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Flow API +// +// Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. +// + +package dataflow + +import ( + "strings" +) + +// DayOfWeekEnum Enum with underlying type: string +type DayOfWeekEnum string + +// Set of constants representing the allowable values for DayOfWeekEnum +const ( + DayOfWeekSunday DayOfWeekEnum = "SUNDAY" + DayOfWeekMonday DayOfWeekEnum = "MONDAY" + DayOfWeekTuesday DayOfWeekEnum = "TUESDAY" + DayOfWeekWednesday DayOfWeekEnum = "WEDNESDAY" + DayOfWeekThursday DayOfWeekEnum = "THURSDAY" + DayOfWeekFriday DayOfWeekEnum = "FRIDAY" + DayOfWeekSaturday DayOfWeekEnum = "SATURDAY" +) + +var mappingDayOfWeekEnum = map[string]DayOfWeekEnum{ + "SUNDAY": DayOfWeekSunday, + "MONDAY": DayOfWeekMonday, + "TUESDAY": DayOfWeekTuesday, + "WEDNESDAY": DayOfWeekWednesday, + "THURSDAY": DayOfWeekThursday, + "FRIDAY": DayOfWeekFriday, + "SATURDAY": DayOfWeekSaturday, +} + +var mappingDayOfWeekEnumLowerCase = map[string]DayOfWeekEnum{ + "sunday": DayOfWeekSunday, + "monday": DayOfWeekMonday, + "tuesday": DayOfWeekTuesday, + "wednesday": DayOfWeekWednesday, + "thursday": DayOfWeekThursday, + "friday": DayOfWeekFriday, + "saturday": DayOfWeekSaturday, +} + +// GetDayOfWeekEnumValues Enumerates the set of values for DayOfWeekEnum +func GetDayOfWeekEnumValues() []DayOfWeekEnum { + values := make([]DayOfWeekEnum, 0) + for _, v := range mappingDayOfWeekEnum { + values = append(values, v) + } + return values +} + +// GetDayOfWeekEnumStringValues Enumerates the set of values in String for DayOfWeekEnum +func GetDayOfWeekEnumStringValues() []string { + return []string{ + "SUNDAY", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + } +} + +// GetMappingDayOfWeekEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDayOfWeekEnum(val string) (DayOfWeekEnum, bool) { + enum, ok := mappingDayOfWeekEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/delete_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/delete_pool_request_response.go new file mode 100644 index 00000000000..e30050fdee5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/delete_pool_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2023, 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 dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeletePoolRequest wrapper for the DeletePool operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/DeletePool.go.html to see an example of how to use DeletePoolRequest. +type DeletePoolRequest struct { + + // The unique ID for a pool. + PoolId *string `mandatory:"true" contributesTo:"path" name:"poolId"` + + // Unique identifier for the request. If provided, the returned request ID will include this value. + // Otherwise, a random request ID will be generated by the service. + 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 DeletePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeletePoolRequest) 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 DeletePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeletePoolRequest) 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 DeletePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeletePoolResponse wrapper for the DeletePool operation +type DeletePoolResponse 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 DeletePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeletePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/get_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/get_pool_request_response.go new file mode 100644 index 00000000000..7a98b2f6426 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/get_pool_request_response.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2023, 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 dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetPoolRequest wrapper for the GetPool operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/GetPool.go.html to see an example of how to use GetPoolRequest. +type GetPoolRequest struct { + + // The unique ID for a pool. + PoolId *string `mandatory:"true" contributesTo:"path" name:"poolId"` + + // Unique identifier for the request. If provided, the returned request ID will include this value. + // Otherwise, a random request ID will be generated by the service. + 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 GetPoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetPoolRequest) 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 GetPoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetPoolRequest) 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 GetPoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetPoolResponse wrapper for the GetPool operation +type GetPoolResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Pool instance + Pool `presentIn:"body"` + + // For optimistic concurrency control. + // See ETags for Optimistic Concurrency Control (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + 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 GetPoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetPoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/list_pools_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/list_pools_request_response.go new file mode 100644 index 00000000000..36c6a94c899 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/list_pools_request_response.go @@ -0,0 +1,288 @@ +// Copyright (c) 2016, 2018, 2023, 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 dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPoolsRequest wrapper for the ListPools operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/ListPools.go.html to see an example of how to use ListPoolsRequest. +type ListPoolsRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Unique identifier for the request. If provided, the returned request ID will include this value. + // Otherwise, a random request ID will be generated by the service. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The maximum number of results to return in a paginated `List` call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call + // to sent back to server for getting the next page of results. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The LifecycleState of the pool. + LifecycleState ListPoolsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The field used to sort the results. Multiple fields are not supported. + SortBy ListPoolsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The ordering of results in ascending or descending order. + SortOrder ListPoolsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The query parameter for the Spark application name. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The OCID of the user who created the resource. + OwnerPrincipalId *string `mandatory:"false" contributesTo:"query" name:"ownerPrincipalId"` + + // The displayName prefix. + DisplayNameStartsWith *string `mandatory:"false" contributesTo:"query" name:"displayNameStartsWith"` + + // 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 ListPoolsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPoolsRequest) 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 ListPoolsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPoolsRequest) 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 ListPoolsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListPoolsLifecycleStateEnum(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(GetListPoolsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListPoolsSortByEnum(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(GetListPoolsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListPoolsSortOrderEnum(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(GetListPoolsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPoolsResponse wrapper for the ListPools operation +type ListPoolsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of PoolCollection instances + PoolCollection `presentIn:"body"` + + // Retrieves the previous page of results. + // When this header appears in the response, previous pages of results exist. + // See List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` + + // Retrieves the next page of results. When this header appears in the response, + // additional pages of results remain. See List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // 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 ListPoolsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPoolsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListPoolsLifecycleStateEnum Enum with underlying type: string +type ListPoolsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListPoolsLifecycleStateEnum +const ( + ListPoolsLifecycleStateAccepted ListPoolsLifecycleStateEnum = "ACCEPTED" + ListPoolsLifecycleStateScheduled ListPoolsLifecycleStateEnum = "SCHEDULED" + ListPoolsLifecycleStateCreating ListPoolsLifecycleStateEnum = "CREATING" + ListPoolsLifecycleStateActive ListPoolsLifecycleStateEnum = "ACTIVE" + ListPoolsLifecycleStateStopping ListPoolsLifecycleStateEnum = "STOPPING" + ListPoolsLifecycleStateStopped ListPoolsLifecycleStateEnum = "STOPPED" + ListPoolsLifecycleStateUpdating ListPoolsLifecycleStateEnum = "UPDATING" + ListPoolsLifecycleStateDeleting ListPoolsLifecycleStateEnum = "DELETING" + ListPoolsLifecycleStateDeleted ListPoolsLifecycleStateEnum = "DELETED" + ListPoolsLifecycleStateFailed ListPoolsLifecycleStateEnum = "FAILED" +) + +var mappingListPoolsLifecycleStateEnum = map[string]ListPoolsLifecycleStateEnum{ + "ACCEPTED": ListPoolsLifecycleStateAccepted, + "SCHEDULED": ListPoolsLifecycleStateScheduled, + "CREATING": ListPoolsLifecycleStateCreating, + "ACTIVE": ListPoolsLifecycleStateActive, + "STOPPING": ListPoolsLifecycleStateStopping, + "STOPPED": ListPoolsLifecycleStateStopped, + "UPDATING": ListPoolsLifecycleStateUpdating, + "DELETING": ListPoolsLifecycleStateDeleting, + "DELETED": ListPoolsLifecycleStateDeleted, + "FAILED": ListPoolsLifecycleStateFailed, +} + +var mappingListPoolsLifecycleStateEnumLowerCase = map[string]ListPoolsLifecycleStateEnum{ + "accepted": ListPoolsLifecycleStateAccepted, + "scheduled": ListPoolsLifecycleStateScheduled, + "creating": ListPoolsLifecycleStateCreating, + "active": ListPoolsLifecycleStateActive, + "stopping": ListPoolsLifecycleStateStopping, + "stopped": ListPoolsLifecycleStateStopped, + "updating": ListPoolsLifecycleStateUpdating, + "deleting": ListPoolsLifecycleStateDeleting, + "deleted": ListPoolsLifecycleStateDeleted, + "failed": ListPoolsLifecycleStateFailed, +} + +// GetListPoolsLifecycleStateEnumValues Enumerates the set of values for ListPoolsLifecycleStateEnum +func GetListPoolsLifecycleStateEnumValues() []ListPoolsLifecycleStateEnum { + values := make([]ListPoolsLifecycleStateEnum, 0) + for _, v := range mappingListPoolsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListPoolsLifecycleStateEnumStringValues Enumerates the set of values in String for ListPoolsLifecycleStateEnum +func GetListPoolsLifecycleStateEnumStringValues() []string { + return []string{ + "ACCEPTED", + "SCHEDULED", + "CREATING", + "ACTIVE", + "STOPPING", + "STOPPED", + "UPDATING", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingListPoolsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPoolsLifecycleStateEnum(val string) (ListPoolsLifecycleStateEnum, bool) { + enum, ok := mappingListPoolsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListPoolsSortByEnum Enum with underlying type: string +type ListPoolsSortByEnum string + +// Set of constants representing the allowable values for ListPoolsSortByEnum +const ( + ListPoolsSortByTimecreated ListPoolsSortByEnum = "timeCreated" +) + +var mappingListPoolsSortByEnum = map[string]ListPoolsSortByEnum{ + "timeCreated": ListPoolsSortByTimecreated, +} + +var mappingListPoolsSortByEnumLowerCase = map[string]ListPoolsSortByEnum{ + "timecreated": ListPoolsSortByTimecreated, +} + +// GetListPoolsSortByEnumValues Enumerates the set of values for ListPoolsSortByEnum +func GetListPoolsSortByEnumValues() []ListPoolsSortByEnum { + values := make([]ListPoolsSortByEnum, 0) + for _, v := range mappingListPoolsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListPoolsSortByEnumStringValues Enumerates the set of values in String for ListPoolsSortByEnum +func GetListPoolsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + } +} + +// GetMappingListPoolsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPoolsSortByEnum(val string) (ListPoolsSortByEnum, bool) { + enum, ok := mappingListPoolsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListPoolsSortOrderEnum Enum with underlying type: string +type ListPoolsSortOrderEnum string + +// Set of constants representing the allowable values for ListPoolsSortOrderEnum +const ( + ListPoolsSortOrderAsc ListPoolsSortOrderEnum = "ASC" + ListPoolsSortOrderDesc ListPoolsSortOrderEnum = "DESC" +) + +var mappingListPoolsSortOrderEnum = map[string]ListPoolsSortOrderEnum{ + "ASC": ListPoolsSortOrderAsc, + "DESC": ListPoolsSortOrderDesc, +} + +var mappingListPoolsSortOrderEnumLowerCase = map[string]ListPoolsSortOrderEnum{ + "asc": ListPoolsSortOrderAsc, + "desc": ListPoolsSortOrderDesc, +} + +// GetListPoolsSortOrderEnumValues Enumerates the set of values for ListPoolsSortOrderEnum +func GetListPoolsSortOrderEnumValues() []ListPoolsSortOrderEnum { + values := make([]ListPoolsSortOrderEnum, 0) + for _, v := range mappingListPoolsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListPoolsSortOrderEnumStringValues Enumerates the set of values in String for ListPoolsSortOrderEnum +func GetListPoolsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListPoolsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPoolsSortOrderEnum(val string) (ListPoolsSortOrderEnum, bool) { + enum, ok := mappingListPoolsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/list_runs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/list_runs_request_response.go index 9db13267a99..6ac3a53864c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/list_runs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/list_runs_request_response.go @@ -28,6 +28,9 @@ type ListRunsRequest struct { // The ID of the application. ApplicationId *string `mandatory:"false" contributesTo:"query" name:"applicationId"` + // The ID of the pool. + PoolId *string `mandatory:"false" contributesTo:"query" name:"poolId"` + // The OCID of the user who created the resource. OwnerPrincipalId *string `mandatory:"false" contributesTo:"query" name:"ownerPrincipalId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/node_count.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/node_count.go new file mode 100644 index 00000000000..3c47a2029e5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/node_count.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Flow API +// +// Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. +// + +package dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NodeCount An object with a logical shape and count of the number of nodes with that shape. +type NodeCount struct { + + // The compute shape of the nodes that the count is for. + LogicalShape *string `mandatory:"false" json:"logicalShape"` + + // The node count of this compute shape. + Count *int `mandatory:"false" json:"count"` +} + +func (m NodeCount) 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 NodeCount) 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/dataflow/pool.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool.go new file mode 100644 index 00000000000..284ee95a07a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Flow API +// +// Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. +// + +package dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Pool A Data Flow pool object. +type Pool struct { + + // The OCID of a compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // 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"` + + // A user-friendly name. It does not have to be unique. Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // 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"` + + // The OCID of a pool. Unique Id to indentify a dataflow pool resource. + Id *string `mandatory:"true" json:"id"` + + // The current state of this pool. + LifecycleState PoolLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID of the user who created the resource. + OwnerPrincipalId *string `mandatory:"true" json:"ownerPrincipalId"` + + // List of PoolConfig items. + Configurations []PoolConfig `mandatory:"true" json:"configurations"` + + // The date and time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2018-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the resource was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2018-04-03T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` + + // A user-friendly description. Avoid entering confidential information. + Description *string `mandatory:"false" json:"description"` + + // The detailed messages about the lifecycle state. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The username of the user who created the resource. If the username of the owner does not exist, + // `null` will be returned and the caller should refer to the ownerPrincipalId value instead. + OwnerUserName *string `mandatory:"false" json:"ownerUserName"` + + PoolMetrics *PoolMetrics `mandatory:"false" json:"poolMetrics"` + + // A list of schedules for pool to auto start and stop. + Schedules []PoolSchedule `mandatory:"false" json:"schedules"` + + // Optional timeout value in minutes used to auto stop Pools. A Pool will be auto stopped after inactivity for this amount of time period. + // If value not set, pool will not be auto stopped auto. + IdleTimeoutInMinutes *int `mandatory:"false" json:"idleTimeoutInMinutes"` +} + +func (m Pool) 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 Pool) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingPoolLifecycleStateEnum(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(GetPoolLifecycleStateEnumStringValues(), ","))) + } + + 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/dataflow/pool_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_collection.go new file mode 100644 index 00000000000..73c8a2047e1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Flow API +// +// Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. +// + +package dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PoolCollection The results of a query for a list of pools. It contains PoolSummary items. +type PoolCollection struct { + + // A list of pools. + Items []PoolSummary `mandatory:"true" json:"items"` +} + +func (m PoolCollection) 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 PoolCollection) 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/dataflow/pool_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_config.go new file mode 100644 index 00000000000..a12fca95dd4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_config.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Flow API +// +// Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. +// + +package dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PoolConfig An object containing the details about the compute shapes and number of compute instances to provison. +type PoolConfig struct { + + // The compute shape of the resources you would like to provision. + Shape *string `mandatory:"false" json:"shape"` + + ShapeConfig *ShapeConfig `mandatory:"false" json:"shapeConfig"` + + // Minimum number of compute instances in the pool for a given compute shape. + Min *int `mandatory:"false" json:"min"` + + // Maximum number of compute instances in the pool for a given compute shape. + Max *int `mandatory:"false" json:"max"` +} + +func (m PoolConfig) 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 PoolConfig) 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/dataflow/pool_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_lifecycle_state.go new file mode 100644 index 00000000000..558218ea297 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_lifecycle_state.go @@ -0,0 +1,88 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Flow API +// +// Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. +// + +package dataflow + +import ( + "strings" +) + +// PoolLifecycleStateEnum Enum with underlying type: string +type PoolLifecycleStateEnum string + +// Set of constants representing the allowable values for PoolLifecycleStateEnum +const ( + PoolLifecycleStateAccepted PoolLifecycleStateEnum = "ACCEPTED" + PoolLifecycleStateScheduled PoolLifecycleStateEnum = "SCHEDULED" + PoolLifecycleStateCreating PoolLifecycleStateEnum = "CREATING" + PoolLifecycleStateActive PoolLifecycleStateEnum = "ACTIVE" + PoolLifecycleStateStopping PoolLifecycleStateEnum = "STOPPING" + PoolLifecycleStateStopped PoolLifecycleStateEnum = "STOPPED" + PoolLifecycleStateUpdating PoolLifecycleStateEnum = "UPDATING" + PoolLifecycleStateDeleting PoolLifecycleStateEnum = "DELETING" + PoolLifecycleStateDeleted PoolLifecycleStateEnum = "DELETED" + PoolLifecycleStateFailed PoolLifecycleStateEnum = "FAILED" +) + +var mappingPoolLifecycleStateEnum = map[string]PoolLifecycleStateEnum{ + "ACCEPTED": PoolLifecycleStateAccepted, + "SCHEDULED": PoolLifecycleStateScheduled, + "CREATING": PoolLifecycleStateCreating, + "ACTIVE": PoolLifecycleStateActive, + "STOPPING": PoolLifecycleStateStopping, + "STOPPED": PoolLifecycleStateStopped, + "UPDATING": PoolLifecycleStateUpdating, + "DELETING": PoolLifecycleStateDeleting, + "DELETED": PoolLifecycleStateDeleted, + "FAILED": PoolLifecycleStateFailed, +} + +var mappingPoolLifecycleStateEnumLowerCase = map[string]PoolLifecycleStateEnum{ + "accepted": PoolLifecycleStateAccepted, + "scheduled": PoolLifecycleStateScheduled, + "creating": PoolLifecycleStateCreating, + "active": PoolLifecycleStateActive, + "stopping": PoolLifecycleStateStopping, + "stopped": PoolLifecycleStateStopped, + "updating": PoolLifecycleStateUpdating, + "deleting": PoolLifecycleStateDeleting, + "deleted": PoolLifecycleStateDeleted, + "failed": PoolLifecycleStateFailed, +} + +// GetPoolLifecycleStateEnumValues Enumerates the set of values for PoolLifecycleStateEnum +func GetPoolLifecycleStateEnumValues() []PoolLifecycleStateEnum { + values := make([]PoolLifecycleStateEnum, 0) + for _, v := range mappingPoolLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetPoolLifecycleStateEnumStringValues Enumerates the set of values in String for PoolLifecycleStateEnum +func GetPoolLifecycleStateEnumStringValues() []string { + return []string{ + "ACCEPTED", + "SCHEDULED", + "CREATING", + "ACTIVE", + "STOPPING", + "STOPPED", + "UPDATING", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingPoolLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPoolLifecycleStateEnum(val string) (PoolLifecycleStateEnum, bool) { + enum, ok := mappingPoolLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_metrics.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_metrics.go new file mode 100644 index 00000000000..a929f80527d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_metrics.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Flow API +// +// Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. +// + +package dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PoolMetrics A collection of metrics related to a particular pool. +type PoolMetrics struct { + + // The last time this pool was started. + TimeLastStarted *common.SDKTime `mandatory:"false" json:"timeLastStarted"` + + // The last time this pool was stopped. + TimeLastStopped *common.SDKTime `mandatory:"false" json:"timeLastStopped"` + + // The last time a run used this pool. + TimeLastUsed *common.SDKTime `mandatory:"false" json:"timeLastUsed"` + + // The last time the mertics were updated for this. + TimeLastMetricsUpdated *common.SDKTime `mandatory:"false" json:"timeLastMetricsUpdated"` + + // The number of runs that are currently running that are using this pool. + ActiveRunsCount *int64 `mandatory:"false" json:"activeRunsCount"` + + // A count of the nodes that are currently being used for each shape in this pool. + ActivelyUsedNodeCount []NodeCount `mandatory:"false" json:"activelyUsedNodeCount"` +} + +func (m PoolMetrics) 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 PoolMetrics) 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/dataflow/pool_schedule.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_schedule.go new file mode 100644 index 00000000000..9808fb502c8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_schedule.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Flow API +// +// Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. +// + +package dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PoolSchedule Definition of when pool auto start or stop for a given day of a week. +type PoolSchedule struct { + + // Day of the week SUN-SAT + DayOfWeek DayOfWeekEnum `mandatory:"false" json:"dayOfWeek,omitempty"` + + // Hour of the day to start or stop pool. + StartTime *int `mandatory:"false" json:"startTime"` + + // Hour of the day to stop the pool. + StopTime *int `mandatory:"false" json:"stopTime"` +} + +func (m PoolSchedule) 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 PoolSchedule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingDayOfWeekEnum(string(m.DayOfWeek)); !ok && m.DayOfWeek != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DayOfWeek: %s. Supported values are: %s.", m.DayOfWeek, strings.Join(GetDayOfWeekEnumStringValues(), ","))) + } + 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/dataflow/pool_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_summary.go new file mode 100644 index 00000000000..600425076b7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/pool_summary.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Flow API +// +// Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. +// + +package dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PoolSummary A pool object used in bulk listings. +type PoolSummary struct { + + // The OCID of a compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // 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"` + + // A user-friendly name. It does not have to be unique. Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // 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"` + + // The OCID of a pool. Unique Id to indentify a dataflow pool resource. + Id *string `mandatory:"true" json:"id"` + + // The current state of this pool. + LifecycleState PoolLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID of the user who created the resource. + OwnerPrincipalId *string `mandatory:"true" json:"ownerPrincipalId"` + + // The username of the user who created the resource. If the username of the owner does not exist, + // `null` will be returned and the caller should refer to the ownerPrincipalId value instead. + OwnerUserName *string `mandatory:"true" json:"ownerUserName"` + + // The date and time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2018-04-03T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the resource was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // Example: `2018-04-03T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` +} + +func (m PoolSummary) 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 PoolSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingPoolLifecycleStateEnum(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(GetPoolLifecycleStateEnumStringValues(), ","))) + } + + 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/dataflow/private_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/private_endpoint.go index acb8edcf5ab..d2f6dd1ff63 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/private_endpoint.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/private_endpoint.go @@ -49,11 +49,11 @@ type PrivateEndpoint struct { // The OCID of a subnet. SubnetId *string `mandatory:"true" json:"subnetId"` - // The date and time a application was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - // The date and time a application was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/private_endpoint_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/private_endpoint_summary.go index 1939d042e03..a8a728705ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/private_endpoint_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/private_endpoint_summary.go @@ -49,11 +49,11 @@ type PrivateEndpointSummary struct { // The OCID of a subnet. SubnetId *string `mandatory:"true" json:"subnetId"` - // The date and time a application was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - // The date and time a application was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/run.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/run.go index 8b4f0f8ba8d..3f5755d7de9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/run.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/run.go @@ -49,11 +49,11 @@ type Run struct { // The Spark version utilized to run the application. SparkVersion *string `mandatory:"true" json:"sparkVersion"` - // The date and time a application was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - // The date and time a application was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` @@ -139,6 +139,9 @@ type Run struct { // Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] Parameters []ApplicationParameter `mandatory:"false" json:"parameters"` + // The OCID of a pool. Unique Id to indentify a dataflow pool resource. + PoolId *string `mandatory:"false" json:"poolId"` + // An array of DNS zone names. // Example: `[ "app.examplecorp.com", "app.examplecorp2.com" ]` PrivateEndpointDnsZones []string `mandatory:"false" json:"privateEndpointDnsZones"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/run_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/run_summary.go index 3c2f0b49bb2..9a709efe913 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/run_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/run_summary.go @@ -42,11 +42,11 @@ type RunSummary struct { // The current state of this run. LifecycleState RunLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The date and time a application was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - // The date and time a application was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` @@ -73,6 +73,9 @@ type RunSummary struct { // `null` will be returned and the caller should refer to the ownerPrincipalId value instead. OwnerUserName *string `mandatory:"false" json:"ownerUserName"` + // The OCID of a pool. Unique Id to indentify a dataflow pool resource. + PoolId *string `mandatory:"false" json:"poolId"` + // The duration of the run in milliseconds. RunDurationInMilliseconds *int64 `mandatory:"false" json:"runDurationInMilliseconds"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/start_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/start_pool_request_response.go new file mode 100644 index 00000000000..3bbd6a5b22b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/start_pool_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2023, 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 dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StartPoolRequest wrapper for the StartPool operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/StartPool.go.html to see an example of how to use StartPoolRequest. +type StartPoolRequest struct { + + // The unique ID for a pool. + PoolId *string `mandatory:"true" contributesTo:"path" name:"poolId"` + + // 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"` + + // 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. If provided, the returned request ID will include this value. + // Otherwise, a random request ID will be generated by the service. + 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 StartPoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StartPoolRequest) 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 StartPoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StartPoolRequest) 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 StartPoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StartPoolResponse wrapper for the StartPool operation +type StartPoolResponse 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"` + + // Unique Oracle assigned identifier for a work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response StartPoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StartPoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/statement.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/statement.go index 1a165e425e2..28a73202245 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/statement.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/statement.go @@ -28,7 +28,7 @@ type Statement struct { // The current state of this statement. LifecycleState StatementLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The date and time a application was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/statement_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/statement_summary.go index e6b23eb883e..5a46f496232 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/statement_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/statement_summary.go @@ -24,7 +24,7 @@ type StatementSummary struct { // The current state of this statement. LifecycleState StatementLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The date and time a application was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. + // The date and time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2018-04-03T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/stop_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/stop_pool_request_response.go new file mode 100644 index 00000000000..c8f773d458a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/stop_pool_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2023, 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 dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StopPoolRequest wrapper for the StopPool operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/StopPool.go.html to see an example of how to use StopPoolRequest. +type StopPoolRequest struct { + + // The unique ID for a pool. + PoolId *string `mandatory:"true" contributesTo:"path" name:"poolId"` + + // 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"` + + // 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. If provided, the returned request ID will include this value. + // Otherwise, a random request ID will be generated by the service. + 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 StopPoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StopPoolRequest) 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 StopPoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StopPoolRequest) 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 StopPoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StopPoolResponse wrapper for the StopPool operation +type StopPoolResponse 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"` + + // Unique Oracle assigned identifier for a work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response StopPoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StopPoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/update_application_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/update_application_details.go index 5a6ef42d598..843c255e032 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/update_application_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/update_application_details.go @@ -102,6 +102,9 @@ type UpdateApplicationDetails struct { // Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] Parameters []ApplicationParameter `mandatory:"false" json:"parameters"` + // The OCID of a pool. Unique Id to indentify a dataflow pool resource. + PoolId *string `mandatory:"false" json:"poolId"` + // The OCID of a private endpoint. PrivateEndpointId *string `mandatory:"false" json:"privateEndpointId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/update_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/update_pool_details.go new file mode 100644 index 00000000000..f80434f25b5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/update_pool_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Flow API +// +// Use the Data Flow APIs to run any Apache Spark application at any scale without deploying or managing any infrastructure. +// + +package dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdatePoolDetails The details required to update a given pool with ```poolId```. +type UpdatePoolDetails struct { + + // A user-friendly name. It does not have to be unique. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A user-friendly description. Avoid entering confidential information. + Description *string `mandatory:"false" json:"description"` + + // List of PoolConfig items. + Configurations []PoolConfig `mandatory:"false" json:"configurations"` + + // A list of schedules for pool to auto start and stop. + Schedules []PoolSchedule `mandatory:"false" json:"schedules"` + + // Optional timeout value in minutes used to auto stop Pools. A Pool will be auto stopped after inactivity for this amount of time period. + // If value not set, pool will not be auto stopped auto. + IdleTimeoutInMinutes *int `mandatory:"false" json:"idleTimeoutInMinutes"` + + // 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"` + + // 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 UpdatePoolDetails) 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 UpdatePoolDetails) 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/dataflow/update_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/update_pool_request_response.go new file mode 100644 index 00000000000..5e1651b0ac8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/dataflow/update_pool_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2023, 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 dataflow + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdatePoolRequest wrapper for the UpdatePool operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/dataflow/UpdatePool.go.html to see an example of how to use UpdatePoolRequest. +type UpdatePoolRequest struct { + + // Details for updating a pool. + UpdatePoolDetails `contributesTo:"body"` + + // The unique ID for a pool. + PoolId *string `mandatory:"true" contributesTo:"path" name:"poolId"` + + // Unique identifier for the request. If provided, the returned request ID will include this value. + // Otherwise, a random request ID will be generated by the service. + 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 UpdatePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdatePoolRequest) 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 UpdatePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdatePoolRequest) 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 UpdatePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdatePoolResponse wrapper for the UpdatePool operation +type UpdatePoolResponse 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"` + + // Unique Oracle assigned identifier for a work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response UpdatePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdatePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/create_dataset_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/create_dataset_details.go index 69aec4bcee5..d8385272a7b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/create_dataset_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/create_dataset_details.go @@ -39,6 +39,8 @@ type CreateDatasetDetails struct { InitialRecordGenerationConfiguration *InitialRecordGenerationConfiguration `mandatory:"false" json:"initialRecordGenerationConfiguration"` + InitialImportDatasetConfiguration *InitialImportDatasetConfiguration `mandatory:"false" json:"initialImportDatasetConfiguration"` + // The labeling instructions for human labelers in rich text format LabelingInstructions *string `mandatory:"false" json:"labelingInstructions"` @@ -73,6 +75,7 @@ func (m *CreateDatasetDetails) UnmarshalJSON(data []byte) (e error) { DisplayName *string `json:"displayName"` Description *string `json:"description"` InitialRecordGenerationConfiguration *InitialRecordGenerationConfiguration `json:"initialRecordGenerationConfiguration"` + InitialImportDatasetConfiguration *InitialImportDatasetConfiguration `json:"initialImportDatasetConfiguration"` LabelingInstructions *string `json:"labelingInstructions"` FreeformTags map[string]string `json:"freeformTags"` DefinedTags map[string]map[string]interface{} `json:"definedTags"` @@ -94,6 +97,8 @@ func (m *CreateDatasetDetails) UnmarshalJSON(data []byte) (e error) { m.InitialRecordGenerationConfiguration = model.InitialRecordGenerationConfiguration + m.InitialImportDatasetConfiguration = model.InitialImportDatasetConfiguration + m.LabelingInstructions = model.LabelingInstructions m.FreeformTags = model.FreeformTags diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/datalabelingservice_datalabelingmanagement_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/datalabelingservice_datalabelingmanagement_client.go index da63c0206b4..100acc3f955 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/datalabelingservice_datalabelingmanagement_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/datalabelingservice_datalabelingmanagement_client.go @@ -509,6 +509,69 @@ func (client DataLabelingManagementClient) getWorkRequest(ctx context.Context, r return response, err } +// ImportPreAnnotatedData Imports records and annotations from dataset files into existing Dataset. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datalabelingservice/ImportPreAnnotatedData.go.html to see an example of how to use ImportPreAnnotatedData API. +// A default retry strategy applies to this operation ImportPreAnnotatedData() +func (client DataLabelingManagementClient) ImportPreAnnotatedData(ctx context.Context, request ImportPreAnnotatedDataRequest) (response ImportPreAnnotatedDataResponse, 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.importPreAnnotatedData, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ImportPreAnnotatedDataResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ImportPreAnnotatedDataResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ImportPreAnnotatedDataResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ImportPreAnnotatedDataResponse") + } + return +} + +// importPreAnnotatedData implements the OCIOperation interface (enables retrying operations) +func (client DataLabelingManagementClient) importPreAnnotatedData(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/datasets/{datasetId}/actions/importPreAnnotatedData", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ImportPreAnnotatedDataResponse + 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/datalabeling/20211001/Dataset/ImportPreAnnotatedData" + err = common.PostProcessServiceError(err, "DataLabelingManagement", "ImportPreAnnotatedData", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListAnnotationFormats These are a static list in a given region. // // See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/dataset.go b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/dataset.go index fc1755c5d5a..d5a4b3ad42e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/dataset.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/dataset.go @@ -59,8 +59,14 @@ type Dataset struct { // A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in FAILED or NEEDS_ATTENTION state. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + // The sub-state of the dataset. + // IMPORT_DATASET - The dataset is being imported. + LifecycleSubstate DatasetLifecycleSubstateEnum `mandatory:"false" json:"lifecycleSubstate,omitempty"` + InitialRecordGenerationConfiguration *InitialRecordGenerationConfiguration `mandatory:"false" json:"initialRecordGenerationConfiguration"` + InitialImportDatasetConfiguration *InitialImportDatasetConfiguration `mandatory:"false" json:"initialImportDatasetConfiguration"` + // The labeling instructions for human labelers in rich text format LabelingInstructions *string `mandatory:"false" json:"labelingInstructions"` @@ -75,6 +81,10 @@ type Dataset struct { // The usage of system tag keys. These predefined keys are scoped to namespaces. // For example: `{"orcl-cloud": {"free-tier-retained": "true"}}` SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. + // For example: `{"bar-key": "value"}` + AdditionalProperties map[string]string `mandatory:"false" json:"additionalProperties"` } func (m Dataset) String() string { @@ -90,6 +100,9 @@ func (m Dataset) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDatasetLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingDatasetLifecycleSubstateEnum(string(m.LifecycleSubstate)); !ok && m.LifecycleSubstate != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleSubstate: %s. Supported values are: %s.", m.LifecycleSubstate, strings.Join(GetDatasetLifecycleSubstateEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -102,11 +115,14 @@ func (m *Dataset) UnmarshalJSON(data []byte) (e error) { DisplayName *string `json:"displayName"` Description *string `json:"description"` LifecycleDetails *string `json:"lifecycleDetails"` + LifecycleSubstate DatasetLifecycleSubstateEnum `json:"lifecycleSubstate"` InitialRecordGenerationConfiguration *InitialRecordGenerationConfiguration `json:"initialRecordGenerationConfiguration"` + InitialImportDatasetConfiguration *InitialImportDatasetConfiguration `json:"initialImportDatasetConfiguration"` LabelingInstructions *string `json:"labelingInstructions"` FreeformTags map[string]string `json:"freeformTags"` DefinedTags map[string]map[string]interface{} `json:"definedTags"` SystemTags map[string]map[string]interface{} `json:"systemTags"` + AdditionalProperties map[string]string `json:"additionalProperties"` Id *string `json:"id"` CompartmentId *string `json:"compartmentId"` TimeCreated *common.SDKTime `json:"timeCreated"` @@ -129,8 +145,12 @@ func (m *Dataset) UnmarshalJSON(data []byte) (e error) { m.LifecycleDetails = model.LifecycleDetails + m.LifecycleSubstate = model.LifecycleSubstate + m.InitialRecordGenerationConfiguration = model.InitialRecordGenerationConfiguration + m.InitialImportDatasetConfiguration = model.InitialImportDatasetConfiguration + m.LabelingInstructions = model.LabelingInstructions m.FreeformTags = model.FreeformTags @@ -139,6 +159,8 @@ func (m *Dataset) UnmarshalJSON(data []byte) (e error) { m.SystemTags = model.SystemTags + m.AdditionalProperties = model.AdditionalProperties + m.Id = model.Id m.CompartmentId = model.CompartmentId @@ -237,3 +259,41 @@ func GetMappingDatasetLifecycleStateEnum(val string) (DatasetLifecycleStateEnum, enum, ok := mappingDatasetLifecycleStateEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// DatasetLifecycleSubstateEnum Enum with underlying type: string +type DatasetLifecycleSubstateEnum string + +// Set of constants representing the allowable values for DatasetLifecycleSubstateEnum +const ( + DatasetLifecycleSubstateImportDataset DatasetLifecycleSubstateEnum = "IMPORT_DATASET" +) + +var mappingDatasetLifecycleSubstateEnum = map[string]DatasetLifecycleSubstateEnum{ + "IMPORT_DATASET": DatasetLifecycleSubstateImportDataset, +} + +var mappingDatasetLifecycleSubstateEnumLowerCase = map[string]DatasetLifecycleSubstateEnum{ + "import_dataset": DatasetLifecycleSubstateImportDataset, +} + +// GetDatasetLifecycleSubstateEnumValues Enumerates the set of values for DatasetLifecycleSubstateEnum +func GetDatasetLifecycleSubstateEnumValues() []DatasetLifecycleSubstateEnum { + values := make([]DatasetLifecycleSubstateEnum, 0) + for _, v := range mappingDatasetLifecycleSubstateEnum { + values = append(values, v) + } + return values +} + +// GetDatasetLifecycleSubstateEnumStringValues Enumerates the set of values in String for DatasetLifecycleSubstateEnum +func GetDatasetLifecycleSubstateEnumStringValues() []string { + return []string{ + "IMPORT_DATASET", + } +} + +// GetMappingDatasetLifecycleSubstateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDatasetLifecycleSubstateEnum(val string) (DatasetLifecycleSubstateEnum, bool) { + enum, ok := mappingDatasetLifecycleSubstateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/import_format.go b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/import_format.go new file mode 100644 index 00000000000..8679189dd03 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/import_format.go @@ -0,0 +1,152 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Labeling Management API +// +// Use Data Labeling Management API to create, list, edit & delete datasets. +// + +package datalabelingservice + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImportFormat File format details used for importing dataset +type ImportFormat struct { + + // Name of import format + Name ImportFormatNameEnum `mandatory:"true" json:"name"` + + // Version of import format + Version ImportFormatVersionEnum `mandatory:"false" json:"version,omitempty"` +} + +func (m ImportFormat) 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 ImportFormat) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingImportFormatNameEnum(string(m.Name)); !ok && m.Name != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Name: %s. Supported values are: %s.", m.Name, strings.Join(GetImportFormatNameEnumStringValues(), ","))) + } + + if _, ok := GetMappingImportFormatVersionEnum(string(m.Version)); !ok && m.Version != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Version: %s. Supported values are: %s.", m.Version, strings.Join(GetImportFormatVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ImportFormatNameEnum Enum with underlying type: string +type ImportFormatNameEnum string + +// Set of constants representing the allowable values for ImportFormatNameEnum +const ( + ImportFormatNameJsonlConsolidated ImportFormatNameEnum = "JSONL_CONSOLIDATED" + ImportFormatNameJsonlCompactPlusContent ImportFormatNameEnum = "JSONL_COMPACT_PLUS_CONTENT" + ImportFormatNameConll ImportFormatNameEnum = "CONLL" + ImportFormatNameSpacy ImportFormatNameEnum = "SPACY" + ImportFormatNameCoco ImportFormatNameEnum = "COCO" + ImportFormatNameYolo ImportFormatNameEnum = "YOLO" + ImportFormatNamePascalVoc ImportFormatNameEnum = "PASCAL_VOC" +) + +var mappingImportFormatNameEnum = map[string]ImportFormatNameEnum{ + "JSONL_CONSOLIDATED": ImportFormatNameJsonlConsolidated, + "JSONL_COMPACT_PLUS_CONTENT": ImportFormatNameJsonlCompactPlusContent, + "CONLL": ImportFormatNameConll, + "SPACY": ImportFormatNameSpacy, + "COCO": ImportFormatNameCoco, + "YOLO": ImportFormatNameYolo, + "PASCAL_VOC": ImportFormatNamePascalVoc, +} + +var mappingImportFormatNameEnumLowerCase = map[string]ImportFormatNameEnum{ + "jsonl_consolidated": ImportFormatNameJsonlConsolidated, + "jsonl_compact_plus_content": ImportFormatNameJsonlCompactPlusContent, + "conll": ImportFormatNameConll, + "spacy": ImportFormatNameSpacy, + "coco": ImportFormatNameCoco, + "yolo": ImportFormatNameYolo, + "pascal_voc": ImportFormatNamePascalVoc, +} + +// GetImportFormatNameEnumValues Enumerates the set of values for ImportFormatNameEnum +func GetImportFormatNameEnumValues() []ImportFormatNameEnum { + values := make([]ImportFormatNameEnum, 0) + for _, v := range mappingImportFormatNameEnum { + values = append(values, v) + } + return values +} + +// GetImportFormatNameEnumStringValues Enumerates the set of values in String for ImportFormatNameEnum +func GetImportFormatNameEnumStringValues() []string { + return []string{ + "JSONL_CONSOLIDATED", + "JSONL_COMPACT_PLUS_CONTENT", + "CONLL", + "SPACY", + "COCO", + "YOLO", + "PASCAL_VOC", + } +} + +// GetMappingImportFormatNameEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingImportFormatNameEnum(val string) (ImportFormatNameEnum, bool) { + enum, ok := mappingImportFormatNameEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ImportFormatVersionEnum Enum with underlying type: string +type ImportFormatVersionEnum string + +// Set of constants representing the allowable values for ImportFormatVersionEnum +const ( + ImportFormatVersionV2003 ImportFormatVersionEnum = "V2003" + ImportFormatVersionV5 ImportFormatVersionEnum = "V5" +) + +var mappingImportFormatVersionEnum = map[string]ImportFormatVersionEnum{ + "V2003": ImportFormatVersionV2003, + "V5": ImportFormatVersionV5, +} + +var mappingImportFormatVersionEnumLowerCase = map[string]ImportFormatVersionEnum{ + "v2003": ImportFormatVersionV2003, + "v5": ImportFormatVersionV5, +} + +// GetImportFormatVersionEnumValues Enumerates the set of values for ImportFormatVersionEnum +func GetImportFormatVersionEnumValues() []ImportFormatVersionEnum { + values := make([]ImportFormatVersionEnum, 0) + for _, v := range mappingImportFormatVersionEnum { + values = append(values, v) + } + return values +} + +// GetImportFormatVersionEnumStringValues Enumerates the set of values in String for ImportFormatVersionEnum +func GetImportFormatVersionEnumStringValues() []string { + return []string{ + "V2003", + "V5", + } +} + +// GetMappingImportFormatVersionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingImportFormatVersionEnum(val string) (ImportFormatVersionEnum, bool) { + enum, ok := mappingImportFormatVersionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/import_metadata_path.go b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/import_metadata_path.go new file mode 100644 index 00000000000..2bac709700a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/import_metadata_path.go @@ -0,0 +1,115 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Labeling Management API +// +// Use Data Labeling Management API to create, list, edit & delete datasets. +// + +package datalabelingservice + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImportMetadataPath Object storage path for the metadata file +type ImportMetadataPath interface { +} + +type importmetadatapath struct { + JsonData []byte + SourceType string `json:"sourceType"` +} + +// UnmarshalJSON unmarshals json +func (m *importmetadatapath) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerimportmetadatapath importmetadatapath + s := struct { + Model Unmarshalerimportmetadatapath + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.SourceType = s.Model.SourceType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *importmetadatapath) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.SourceType { + case "OBJECT_STORAGE": + mm := ObjectStorageImportMetadataPath{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for ImportMetadataPath: %s.", m.SourceType) + return *m, nil + } +} + +func (m importmetadatapath) 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 importmetadatapath) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ImportMetadataPathSourceTypeEnum Enum with underlying type: string +type ImportMetadataPathSourceTypeEnum string + +// Set of constants representing the allowable values for ImportMetadataPathSourceTypeEnum +const ( + ImportMetadataPathSourceTypeObjectStorage ImportMetadataPathSourceTypeEnum = "OBJECT_STORAGE" +) + +var mappingImportMetadataPathSourceTypeEnum = map[string]ImportMetadataPathSourceTypeEnum{ + "OBJECT_STORAGE": ImportMetadataPathSourceTypeObjectStorage, +} + +var mappingImportMetadataPathSourceTypeEnumLowerCase = map[string]ImportMetadataPathSourceTypeEnum{ + "object_storage": ImportMetadataPathSourceTypeObjectStorage, +} + +// GetImportMetadataPathSourceTypeEnumValues Enumerates the set of values for ImportMetadataPathSourceTypeEnum +func GetImportMetadataPathSourceTypeEnumValues() []ImportMetadataPathSourceTypeEnum { + values := make([]ImportMetadataPathSourceTypeEnum, 0) + for _, v := range mappingImportMetadataPathSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetImportMetadataPathSourceTypeEnumStringValues Enumerates the set of values in String for ImportMetadataPathSourceTypeEnum +func GetImportMetadataPathSourceTypeEnumStringValues() []string { + return []string{ + "OBJECT_STORAGE", + } +} + +// GetMappingImportMetadataPathSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingImportMetadataPathSourceTypeEnum(val string) (ImportMetadataPathSourceTypeEnum, bool) { + enum, ok := mappingImportMetadataPathSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/import_pre_annotated_data_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/import_pre_annotated_data_details.go new file mode 100644 index 00000000000..70b60a5e4d2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/import_pre_annotated_data_details.go @@ -0,0 +1,67 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Labeling Management API +// +// Use Data Labeling Management API to create, list, edit & delete datasets. +// + +package datalabelingservice + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImportPreAnnotatedDataDetails Allows user to import dataset labels, records and annotations from dataset files +type ImportPreAnnotatedDataDetails struct { + ImportFormat *ImportFormat `mandatory:"false" json:"importFormat"` + + ImportMetadataPath ImportMetadataPath `mandatory:"false" json:"importMetadataPath"` +} + +func (m ImportPreAnnotatedDataDetails) 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 ImportPreAnnotatedDataDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *ImportPreAnnotatedDataDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + ImportFormat *ImportFormat `json:"importFormat"` + ImportMetadataPath importmetadatapath `json:"importMetadataPath"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.ImportFormat = model.ImportFormat + + nn, e = model.ImportMetadataPath.UnmarshalPolymorphicJSON(model.ImportMetadataPath.JsonData) + if e != nil { + return + } + if nn != nil { + m.ImportMetadataPath = nn.(ImportMetadataPath) + } else { + m.ImportMetadataPath = nil + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/import_pre_annotated_data_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/import_pre_annotated_data_request_response.go new file mode 100644 index 00000000000..46e2fcd318b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/import_pre_annotated_data_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2023, 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 datalabelingservice + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ImportPreAnnotatedDataRequest wrapper for the ImportPreAnnotatedData operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datalabelingservice/ImportPreAnnotatedData.go.html to see an example of how to use ImportPreAnnotatedDataRequest. +type ImportPreAnnotatedDataRequest struct { + + // Unique Dataset OCID + DatasetId *string `mandatory:"true" contributesTo:"path" name:"datasetId"` + + // Details for importing Dataset + ImportPreAnnotatedDataDetails `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"` + + // The client request ID for tracing. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + 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 ImportPreAnnotatedDataRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ImportPreAnnotatedDataRequest) 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 ImportPreAnnotatedDataRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ImportPreAnnotatedDataRequest) 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 ImportPreAnnotatedDataRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ImportPreAnnotatedDataResponse wrapper for the ImportPreAnnotatedData operation +type ImportPreAnnotatedDataResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query the status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // 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 ImportPreAnnotatedDataResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ImportPreAnnotatedDataResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/initial_import_dataset_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/initial_import_dataset_configuration.go new file mode 100644 index 00000000000..c89486ccd24 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/initial_import_dataset_configuration.go @@ -0,0 +1,67 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Labeling Management API +// +// Use Data Labeling Management API to create, list, edit & delete datasets. +// + +package datalabelingservice + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InitialImportDatasetConfiguration Initial import dataset configuration. Allows user to create dataset from existing dataset files. +type InitialImportDatasetConfiguration struct { + ImportFormat *ImportFormat `mandatory:"true" json:"importFormat"` + + ImportMetadataPath ImportMetadataPath `mandatory:"true" json:"importMetadataPath"` +} + +func (m InitialImportDatasetConfiguration) 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 InitialImportDatasetConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *InitialImportDatasetConfiguration) UnmarshalJSON(data []byte) (e error) { + model := struct { + ImportFormat *ImportFormat `json:"importFormat"` + ImportMetadataPath importmetadatapath `json:"importMetadataPath"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.ImportFormat = model.ImportFormat + + nn, e = model.ImportMetadataPath.UnmarshalPolymorphicJSON(model.ImportMetadataPath.JsonData) + if e != nil { + return + } + if nn != nil { + m.ImportMetadataPath = nn.(ImportMetadataPath) + } else { + m.ImportMetadataPath = nil + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/object_storage_import_metadata_path.go b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/object_storage_import_metadata_path.go new file mode 100644 index 00000000000..c936ba81240 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/object_storage_import_metadata_path.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2023, 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. + +// Data Labeling Management API +// +// Use Data Labeling Management API to create, list, edit & delete datasets. +// + +package datalabelingservice + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ObjectStorageImportMetadataPath Object Storage details for import metadata path. +type ObjectStorageImportMetadataPath struct { + + // Bucket namespace name + Namespace *string `mandatory:"true" json:"namespace"` + + // Bucket name + Bucket *string `mandatory:"true" json:"bucket"` + + // Path for the metadata file. + Path *string `mandatory:"true" json:"path"` +} + +func (m ObjectStorageImportMetadataPath) 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 ObjectStorageImportMetadataPath) 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 ObjectStorageImportMetadataPath) MarshalJSON() (buff []byte, e error) { + type MarshalTypeObjectStorageImportMetadataPath ObjectStorageImportMetadataPath + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeObjectStorageImportMetadataPath + }{ + "OBJECT_STORAGE", + (MarshalTypeObjectStorageImportMetadataPath)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/operation_type.go index 22427fdc0e7..f112a760136 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/operation_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datalabelingservice/operation_type.go @@ -26,6 +26,7 @@ const ( OperationTypeAddDatasetLabels OperationTypeEnum = "ADD_DATASET_LABELS" OperationTypeRemoveDatasetLabels OperationTypeEnum = "REMOVE_DATASET_LABELS" OperationTypeRenameDatasetLabels OperationTypeEnum = "RENAME_DATASET_LABELS" + OperationTypeImportDataset OperationTypeEnum = "IMPORT_DATASET" ) var mappingOperationTypeEnum = map[string]OperationTypeEnum{ @@ -37,6 +38,7 @@ var mappingOperationTypeEnum = map[string]OperationTypeEnum{ "ADD_DATASET_LABELS": OperationTypeAddDatasetLabels, "REMOVE_DATASET_LABELS": OperationTypeRemoveDatasetLabels, "RENAME_DATASET_LABELS": OperationTypeRenameDatasetLabels, + "IMPORT_DATASET": OperationTypeImportDataset, } var mappingOperationTypeEnumLowerCase = map[string]OperationTypeEnum{ @@ -48,6 +50,7 @@ var mappingOperationTypeEnumLowerCase = map[string]OperationTypeEnum{ "add_dataset_labels": OperationTypeAddDatasetLabels, "remove_dataset_labels": OperationTypeRemoveDatasetLabels, "rename_dataset_labels": OperationTypeRenameDatasetLabels, + "import_dataset": OperationTypeImportDataset, } // GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum @@ -70,6 +73,7 @@ func GetOperationTypeEnumStringValues() []string { "ADD_DATASET_LABELS", "REMOVE_DATASET_LABELS", "RENAME_DATASET_LABELS", + "IMPORT_DATASET", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/functions/application.go b/vendor/github.com/oracle/oci-go-sdk/v65/functions/application.go index bbbe98b008e..d81e427445c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/functions/application.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/functions/application.go @@ -39,6 +39,13 @@ type Application struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the subnets in which to run functions in the application. SubnetIds []string `mandatory:"false" json:"subnetIds"` + // Valid values are `GENERIC_X86`, `GENERIC_ARM` and `GENERIC_X86_ARM`. Default is `GENERIC_X86`. Setting this to `GENERIC_X86`, will run the functions in the application on X86 processor architecture. + // Setting this to `GENERIC_ARM`, will run the functions in the application on ARM processor architecture. + // When set to `GENERIC_X86_ARM`, functions in the application are run on either X86 or ARM processor architecture. + // Accepted values are: + // `GENERIC_X86`, `GENERIC_ARM`, `GENERIC_X86_ARM` + Shape ApplicationShapeEnum `mandatory:"false" json:"shape,omitempty"` + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the Network Security Groups to add the application to. NetworkSecurityGroupIds []string `mandatory:"false" json:"networkSecurityGroupIds"` @@ -85,6 +92,9 @@ func (m Application) ValidateEnumValue() (bool, error) { if _, ok := GetMappingApplicationLifecycleStateEnum(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(GetApplicationLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingApplicationShapeEnum(string(m.Shape)); !ok && m.Shape != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Shape: %s. Supported values are: %s.", m.Shape, strings.Join(GetApplicationShapeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -152,3 +162,49 @@ func GetMappingApplicationLifecycleStateEnum(val string) (ApplicationLifecycleSt enum, ok := mappingApplicationLifecycleStateEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// ApplicationShapeEnum Enum with underlying type: string +type ApplicationShapeEnum string + +// Set of constants representing the allowable values for ApplicationShapeEnum +const ( + ApplicationShapeX86 ApplicationShapeEnum = "GENERIC_X86" + ApplicationShapeArm ApplicationShapeEnum = "GENERIC_ARM" + ApplicationShapeX86Arm ApplicationShapeEnum = "GENERIC_X86_ARM" +) + +var mappingApplicationShapeEnum = map[string]ApplicationShapeEnum{ + "GENERIC_X86": ApplicationShapeX86, + "GENERIC_ARM": ApplicationShapeArm, + "GENERIC_X86_ARM": ApplicationShapeX86Arm, +} + +var mappingApplicationShapeEnumLowerCase = map[string]ApplicationShapeEnum{ + "generic_x86": ApplicationShapeX86, + "generic_arm": ApplicationShapeArm, + "generic_x86_arm": ApplicationShapeX86Arm, +} + +// GetApplicationShapeEnumValues Enumerates the set of values for ApplicationShapeEnum +func GetApplicationShapeEnumValues() []ApplicationShapeEnum { + values := make([]ApplicationShapeEnum, 0) + for _, v := range mappingApplicationShapeEnum { + values = append(values, v) + } + return values +} + +// GetApplicationShapeEnumStringValues Enumerates the set of values in String for ApplicationShapeEnum +func GetApplicationShapeEnumStringValues() []string { + return []string{ + "GENERIC_X86", + "GENERIC_ARM", + "GENERIC_X86_ARM", + } +} + +// GetMappingApplicationShapeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingApplicationShapeEnum(val string) (ApplicationShapeEnum, bool) { + enum, ok := mappingApplicationShapeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/functions/application_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/functions/application_summary.go index 9d89a41caa3..858eab37f42 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/functions/application_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/functions/application_summary.go @@ -33,6 +33,13 @@ type ApplicationSummary struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the subnets in which to run functions in the application. SubnetIds []string `mandatory:"false" json:"subnetIds"` + // Valid values are `GENERIC_X86`, `GENERIC_ARM` and `GENERIC_X86_ARM`. Default is `GENERIC_X86`. Setting this to `GENERIC_X86`, will run the functions in the application on X86 processor architecture. + // Setting this to `GENERIC_ARM`, will run the functions in the application on ARM processor architecture. + // When set to `GENERIC_X86_ARM`, functions in the application are run on either X86 or ARM processor architecture. + // Accepted values are: + // `GENERIC_X86`, `GENERIC_ARM`, `GENERIC_X86_ARM` + Shape ApplicationSummaryShapeEnum `mandatory:"false" json:"shape,omitempty"` + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the Network Security Groups to add the application to. NetworkSecurityGroupIds []string `mandatory:"false" json:"networkSecurityGroupIds"` @@ -73,8 +80,57 @@ func (m ApplicationSummary) ValidateEnumValue() (bool, error) { if _, ok := GetMappingApplicationLifecycleStateEnum(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(GetApplicationLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingApplicationSummaryShapeEnum(string(m.Shape)); !ok && m.Shape != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Shape: %s. Supported values are: %s.", m.Shape, strings.Join(GetApplicationSummaryShapeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } return false, nil } + +// ApplicationSummaryShapeEnum Enum with underlying type: string +type ApplicationSummaryShapeEnum string + +// Set of constants representing the allowable values for ApplicationSummaryShapeEnum +const ( + ApplicationSummaryShapeX86 ApplicationSummaryShapeEnum = "GENERIC_X86" + ApplicationSummaryShapeArm ApplicationSummaryShapeEnum = "GENERIC_ARM" + ApplicationSummaryShapeX86Arm ApplicationSummaryShapeEnum = "GENERIC_X86_ARM" +) + +var mappingApplicationSummaryShapeEnum = map[string]ApplicationSummaryShapeEnum{ + "GENERIC_X86": ApplicationSummaryShapeX86, + "GENERIC_ARM": ApplicationSummaryShapeArm, + "GENERIC_X86_ARM": ApplicationSummaryShapeX86Arm, +} + +var mappingApplicationSummaryShapeEnumLowerCase = map[string]ApplicationSummaryShapeEnum{ + "generic_x86": ApplicationSummaryShapeX86, + "generic_arm": ApplicationSummaryShapeArm, + "generic_x86_arm": ApplicationSummaryShapeX86Arm, +} + +// GetApplicationSummaryShapeEnumValues Enumerates the set of values for ApplicationSummaryShapeEnum +func GetApplicationSummaryShapeEnumValues() []ApplicationSummaryShapeEnum { + values := make([]ApplicationSummaryShapeEnum, 0) + for _, v := range mappingApplicationSummaryShapeEnum { + values = append(values, v) + } + return values +} + +// GetApplicationSummaryShapeEnumStringValues Enumerates the set of values in String for ApplicationSummaryShapeEnum +func GetApplicationSummaryShapeEnumStringValues() []string { + return []string{ + "GENERIC_X86", + "GENERIC_ARM", + "GENERIC_X86_ARM", + } +} + +// GetMappingApplicationSummaryShapeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingApplicationSummaryShapeEnum(val string) (ApplicationSummaryShapeEnum, bool) { + enum, ok := mappingApplicationSummaryShapeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/functions/constant_provisioned_concurrency_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/functions/constant_provisioned_concurrency_config.go index af7af820ee8..fc41079752f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/functions/constant_provisioned_concurrency_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/functions/constant_provisioned_concurrency_config.go @@ -18,6 +18,8 @@ import ( // ConstantProvisionedConcurrencyConfig Configuration specifying a constant amount of provisioned concurrency. type ConstantProvisionedConcurrencyConfig struct { + + // Configuration specifying a constant amount of provisioned concurrency. Count *int `mandatory:"true" json:"count"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/functions/create_application_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/functions/create_application_details.go index 7b61fc12e0d..729230797cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/functions/create_application_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/functions/create_application_details.go @@ -33,6 +33,13 @@ type CreateApplicationDetails struct { // The maximum size for all configuration keys and values is limited to 4KB. This is measured as the sum of octets necessary to represent each key and value in UTF-8. Config map[string]string `mandatory:"false" json:"config"` + // Valid values are `GENERIC_X86`, `GENERIC_ARM` and `GENERIC_X86_ARM`. Default is `GENERIC_X86`. Setting this to `GENERIC_X86`, will run the functions in the application on X86 processor architecture. + // Setting this to `GENERIC_ARM`, will run the functions in the application on ARM processor architecture. + // When set to `GENERIC_X86_ARM`, functions in the application are run on either X86 or ARM processor architecture. + // Accepted values are: + // `GENERIC_X86`, `GENERIC_ARM`, `GENERIC_X86_ARM` + Shape CreateApplicationDetailsShapeEnum `mandatory:"false" json:"shape,omitempty"` + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the Network Security Groups to add the application to. NetworkSecurityGroupIds []string `mandatory:"false" json:"networkSecurityGroupIds"` @@ -66,8 +73,57 @@ func (m CreateApplicationDetails) String() string { func (m CreateApplicationDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingCreateApplicationDetailsShapeEnum(string(m.Shape)); !ok && m.Shape != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Shape: %s. Supported values are: %s.", m.Shape, strings.Join(GetCreateApplicationDetailsShapeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } return false, nil } + +// CreateApplicationDetailsShapeEnum Enum with underlying type: string +type CreateApplicationDetailsShapeEnum string + +// Set of constants representing the allowable values for CreateApplicationDetailsShapeEnum +const ( + CreateApplicationDetailsShapeX86 CreateApplicationDetailsShapeEnum = "GENERIC_X86" + CreateApplicationDetailsShapeArm CreateApplicationDetailsShapeEnum = "GENERIC_ARM" + CreateApplicationDetailsShapeX86Arm CreateApplicationDetailsShapeEnum = "GENERIC_X86_ARM" +) + +var mappingCreateApplicationDetailsShapeEnum = map[string]CreateApplicationDetailsShapeEnum{ + "GENERIC_X86": CreateApplicationDetailsShapeX86, + "GENERIC_ARM": CreateApplicationDetailsShapeArm, + "GENERIC_X86_ARM": CreateApplicationDetailsShapeX86Arm, +} + +var mappingCreateApplicationDetailsShapeEnumLowerCase = map[string]CreateApplicationDetailsShapeEnum{ + "generic_x86": CreateApplicationDetailsShapeX86, + "generic_arm": CreateApplicationDetailsShapeArm, + "generic_x86_arm": CreateApplicationDetailsShapeX86Arm, +} + +// GetCreateApplicationDetailsShapeEnumValues Enumerates the set of values for CreateApplicationDetailsShapeEnum +func GetCreateApplicationDetailsShapeEnumValues() []CreateApplicationDetailsShapeEnum { + values := make([]CreateApplicationDetailsShapeEnum, 0) + for _, v := range mappingCreateApplicationDetailsShapeEnum { + values = append(values, v) + } + return values +} + +// GetCreateApplicationDetailsShapeEnumStringValues Enumerates the set of values in String for CreateApplicationDetailsShapeEnum +func GetCreateApplicationDetailsShapeEnumStringValues() []string { + return []string{ + "GENERIC_X86", + "GENERIC_ARM", + "GENERIC_X86_ARM", + } +} + +// GetMappingCreateApplicationDetailsShapeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateApplicationDetailsShapeEnum(val string) (CreateApplicationDetailsShapeEnum, bool) { + enum, ok := mappingCreateApplicationDetailsShapeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/functions/function.go b/vendor/github.com/oracle/oci-go-sdk/v65/functions/function.go index 94855e3a5a1..dc7c54597c4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/functions/function.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/functions/function.go @@ -46,6 +46,9 @@ type Function struct { SourceDetails FunctionSourceDetails `mandatory:"false" json:"sourceDetails"` + // The processor shape (`GENERIC_X86`/`GENERIC_ARM`) on which to run functions in the application, extracted from the image manifest. + Shape FunctionShapeEnum `mandatory:"false" json:"shape,omitempty"` + // Maximum usable memory for the function (MiB). MemoryInMBs *int64 `mandatory:"false" json:"memoryInMBs"` @@ -98,6 +101,9 @@ func (m Function) ValidateEnumValue() (bool, error) { if _, ok := GetMappingFunctionLifecycleStateEnum(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(GetFunctionLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingFunctionShapeEnum(string(m.Shape)); !ok && m.Shape != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Shape: %s. Supported values are: %s.", m.Shape, strings.Join(GetFunctionShapeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -114,6 +120,7 @@ func (m *Function) UnmarshalJSON(data []byte) (e error) { Image *string `json:"image"` ImageDigest *string `json:"imageDigest"` SourceDetails functionsourcedetails `json:"sourceDetails"` + Shape FunctionShapeEnum `json:"shape"` MemoryInMBs *int64 `json:"memoryInMBs"` Config map[string]string `json:"config"` TimeoutInSeconds *int `json:"timeoutInSeconds"` @@ -154,6 +161,8 @@ func (m *Function) UnmarshalJSON(data []byte) (e error) { m.SourceDetails = nil } + m.Shape = model.Shape + m.MemoryInMBs = model.MemoryInMBs m.Config = model.Config @@ -248,3 +257,49 @@ func GetMappingFunctionLifecycleStateEnum(val string) (FunctionLifecycleStateEnu enum, ok := mappingFunctionLifecycleStateEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// FunctionShapeEnum Enum with underlying type: string +type FunctionShapeEnum string + +// Set of constants representing the allowable values for FunctionShapeEnum +const ( + FunctionShapeX86 FunctionShapeEnum = "GENERIC_X86" + FunctionShapeArm FunctionShapeEnum = "GENERIC_ARM" + FunctionShapeX86Arm FunctionShapeEnum = "GENERIC_X86_ARM" +) + +var mappingFunctionShapeEnum = map[string]FunctionShapeEnum{ + "GENERIC_X86": FunctionShapeX86, + "GENERIC_ARM": FunctionShapeArm, + "GENERIC_X86_ARM": FunctionShapeX86Arm, +} + +var mappingFunctionShapeEnumLowerCase = map[string]FunctionShapeEnum{ + "generic_x86": FunctionShapeX86, + "generic_arm": FunctionShapeArm, + "generic_x86_arm": FunctionShapeX86Arm, +} + +// GetFunctionShapeEnumValues Enumerates the set of values for FunctionShapeEnum +func GetFunctionShapeEnumValues() []FunctionShapeEnum { + values := make([]FunctionShapeEnum, 0) + for _, v := range mappingFunctionShapeEnum { + values = append(values, v) + } + return values +} + +// GetFunctionShapeEnumStringValues Enumerates the set of values in String for FunctionShapeEnum +func GetFunctionShapeEnumStringValues() []string { + return []string{ + "GENERIC_X86", + "GENERIC_ARM", + "GENERIC_X86_ARM", + } +} + +// GetMappingFunctionShapeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFunctionShapeEnum(val string) (FunctionShapeEnum, bool) { + enum, ok := mappingFunctionShapeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/functions/function_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/functions/function_summary.go index 912ed145a5d..0535f88cb03 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/functions/function_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/functions/function_summary.go @@ -46,6 +46,9 @@ type FunctionSummary struct { SourceDetails FunctionSourceDetails `mandatory:"false" json:"sourceDetails"` + // The processor shape (`GENERIC_X86`/`GENERIC_ARM`) on which to run functions in the application, extracted from the image manifest. + Shape FunctionSummaryShapeEnum `mandatory:"false" json:"shape,omitempty"` + // Maximum usable memory for the function (MiB). MemoryInMBs *int64 `mandatory:"false" json:"memoryInMBs"` @@ -92,6 +95,9 @@ func (m FunctionSummary) ValidateEnumValue() (bool, error) { if _, ok := GetMappingFunctionLifecycleStateEnum(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(GetFunctionLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingFunctionSummaryShapeEnum(string(m.Shape)); !ok && m.Shape != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Shape: %s. Supported values are: %s.", m.Shape, strings.Join(GetFunctionSummaryShapeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -108,6 +114,7 @@ func (m *FunctionSummary) UnmarshalJSON(data []byte) (e error) { Image *string `json:"image"` ImageDigest *string `json:"imageDigest"` SourceDetails functionsourcedetails `json:"sourceDetails"` + Shape FunctionSummaryShapeEnum `json:"shape"` MemoryInMBs *int64 `json:"memoryInMBs"` TimeoutInSeconds *int `json:"timeoutInSeconds"` ProvisionedConcurrencyConfig functionprovisionedconcurrencyconfig `json:"provisionedConcurrencyConfig"` @@ -147,6 +154,8 @@ func (m *FunctionSummary) UnmarshalJSON(data []byte) (e error) { m.SourceDetails = nil } + m.Shape = model.Shape + m.MemoryInMBs = model.MemoryInMBs m.TimeoutInSeconds = model.TimeoutInSeconds @@ -177,3 +186,49 @@ func (m *FunctionSummary) UnmarshalJSON(data []byte) (e error) { return } + +// FunctionSummaryShapeEnum Enum with underlying type: string +type FunctionSummaryShapeEnum string + +// Set of constants representing the allowable values for FunctionSummaryShapeEnum +const ( + FunctionSummaryShapeX86 FunctionSummaryShapeEnum = "GENERIC_X86" + FunctionSummaryShapeArm FunctionSummaryShapeEnum = "GENERIC_ARM" + FunctionSummaryShapeX86Arm FunctionSummaryShapeEnum = "GENERIC_X86_ARM" +) + +var mappingFunctionSummaryShapeEnum = map[string]FunctionSummaryShapeEnum{ + "GENERIC_X86": FunctionSummaryShapeX86, + "GENERIC_ARM": FunctionSummaryShapeArm, + "GENERIC_X86_ARM": FunctionSummaryShapeX86Arm, +} + +var mappingFunctionSummaryShapeEnumLowerCase = map[string]FunctionSummaryShapeEnum{ + "generic_x86": FunctionSummaryShapeX86, + "generic_arm": FunctionSummaryShapeArm, + "generic_x86_arm": FunctionSummaryShapeX86Arm, +} + +// GetFunctionSummaryShapeEnumValues Enumerates the set of values for FunctionSummaryShapeEnum +func GetFunctionSummaryShapeEnumValues() []FunctionSummaryShapeEnum { + values := make([]FunctionSummaryShapeEnum, 0) + for _, v := range mappingFunctionSummaryShapeEnum { + values = append(values, v) + } + return values +} + +// GetFunctionSummaryShapeEnumStringValues Enumerates the set of values in String for FunctionSummaryShapeEnum +func GetFunctionSummaryShapeEnumStringValues() []string { + return []string{ + "GENERIC_X86", + "GENERIC_ARM", + "GENERIC_X86_ARM", + } +} + +// GetMappingFunctionSummaryShapeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFunctionSummaryShapeEnum(val string) (FunctionSummaryShapeEnum, bool) { + enum, ok := mappingFunctionSummaryShapeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_lock_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_lock_details.go index aef319ae9c7..fa6cdd0d6e7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_lock_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_lock_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_user_to_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_user_to_group_details.go index bef4292e56c..d4ebf9043cf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_user_to_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_user_to_group_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/allowed_domain_license_type_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/allowed_domain_license_type_summary.go index 669a1007c60..3acbe2c4b2f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/allowed_domain_license_type_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/allowed_domain_license_type_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/api_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/api_key.go index f98591827d8..b6a547aa489 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/api_key.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/api_key.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/auth_token.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/auth_token.go index 7322fd0bdea..524862d8aa7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/auth_token.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/auth_token.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/authentication_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/authentication_policy.go index ad9a9338f81..695784e342c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/authentication_policy.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/authentication_policy.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/availability_domain.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/availability_domain.go index 4365fddcab5..306b0bc4f96 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/availability_domain.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/availability_domain.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/base_tag_definition_validator.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/base_tag_definition_validator.go index 12eb34e6d6a..f95e94e0fdc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/base_tag_definition_validator.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/base_tag_definition_validator.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource.go index 17e5659868b..7d0ab043582 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type.go index 2e606203bf3..3b56caf1edb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type_collection.go index 42cd884ba7b..cb8f27da6e5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type_collection.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_details.go index ca20a5bac9e..165ed8b57c2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_details.go index 02dbc5e6e2f..78eefe3fc39 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_operation_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_operation_details.go index a54950d47da..e223f9fd588 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_operation_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_operation_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_resource.go index 366a359ce89..8a4dc1db811 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_resource.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_resource.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_details.go index 3f7da07f282..e3105ad5ef7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type.go index 0ae4418175d..5a5f4215c3b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type_collection.go index 2a22425c71d..7fd92fefdc1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type_collection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type_collection.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_details.go index 682e76dfd8f..ffbfa4f9609 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_details.go index 8c3567c46e1..8be119687ea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_license_type_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_license_type_details.go index 5a1318256cb..189e38e69d9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_license_type_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_license_type_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tag_namespace_compartment_detail.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tag_namespace_compartment_detail.go index 54de809cc11..547103000f5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tag_namespace_compartment_detail.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tag_namespace_compartment_detail.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tas_domain_license_type_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tas_domain_license_type_details.go index a0153f55007..70393697001 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tas_domain_license_type_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tas_domain_license_type_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/compartment.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/compartment.go index 1d96c775b35..15bbf10e8c4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/compartment.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/compartment.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_api_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_api_key_details.go index ffb239f2a7f..c2f8024c71f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_api_key_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_api_key_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_details.go index 8240da08ce3..c5b14962a05 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_details.go index a33d171d270..90ebf8296c4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_customer_secret_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_customer_secret_key_details.go index 8d4b2cdb58a..d62e535b3ae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_customer_secret_key_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_customer_secret_key_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_details.go index a0288495e0c..9c2038125f2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_details.go index 86088bbe215..b88b1d32bca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_details.go index b16958681f7..67e9d2b9707 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_details.go index 6dea4e921b4..c2067feb6c8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_details.go index 8961f0b5a2a..773f8bb5650 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_idp_group_mapping_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_idp_group_mapping_details.go index 9df6e1c8f6e..ad3ec258bad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_idp_group_mapping_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_idp_group_mapping_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_details.go index dae9148bd6c..3d921097c32 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_o_auth2_client_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_o_auth2_client_credential_details.go index 0a3561e1043..26b3488b396 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_o_auth2_client_credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_o_auth2_client_credential_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_details.go index f1c7a527e06..d762067f1c1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_details.go index 45fafba3181..2c874d71e19 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_saml2_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_saml2_identity_provider_details.go index 933a84f23f5..f0777103b13 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_saml2_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_saml2_identity_provider_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_details.go index 34b253657f8..ddaf5c8de27 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_details.go index d93c017d118..2c7da1e7abd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_details.go index 88ae858cc33..36401c08260 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_details.go index edf50cdffdb..70a263f6179 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_details.go index d3821f4d7a1..cb234431b88 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_details.go index 71b0a3ed92c..61c95d7711f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key.go index d00a08518f5..189939c1348 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key_summary.go index 31fb76678a2..ff3ca030140 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential.go index d8b21aa576f..675ddd35ea2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential_summary.go index aa69f7cf7d7..84e54822100 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/default_tag_definition_validator.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/default_tag_definition_validator.go index 582f26a7b62..6e9d5651376 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/default_tag_definition_validator.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/default_tag_definition_validator.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain.go index 554673afc88..429068700b8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication.go index 71ec19755f0..a08722bb260 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication_states.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication_states.go index 72685d1d174..c621645a1b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication_states.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication_states.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_summary.go index c2adc27d352..2088bc49be7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/dynamic_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/dynamic_group.go index 338e1a11a0a..7e60d8b5b70 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/dynamic_group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/dynamic_group.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/enable_replication_to_region_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/enable_replication_to_region_details.go index 5603abb9a72..793c4ce9c69 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/enable_replication_to_region_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/enable_replication_to_region_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/enum_tag_definition_validator.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/enum_tag_definition_validator.go index fd17817814c..944c6270ec4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/enum_tag_definition_validator.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/enum_tag_definition_validator.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/fault_domain.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/fault_domain.go index b8c99814817..4fe31419427 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/fault_domain.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/fault_domain.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/fully_qualified_scope.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/fully_qualified_scope.go index 69e119f3811..41e3a939b38 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/fully_qualified_scope.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/fully_qualified_scope.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/group.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/group.go index a5deb7c5cc2..578fa60c7d6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/group.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/group.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request.go index 9b68c2f3f2c..58e2186f4fd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_error_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_error_summary.go index ab626a5c846..ede72c7d7c2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_error_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_error_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_log_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_log_summary.go index 838d5b65f23..23564586369 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_log_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_log_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_resource.go index 392cff1a02e..86a47888679 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_resource.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_resource.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_summary.go index 809fcb25e0c..2cecea01d64 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_client.go index 1038f6a6b88..aff81399e75 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_client.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -547,7 +547,6 @@ func (client IdentityClient) bulkDeleteResources(ctx context.Context, request co // BulkDeleteTags Deletes the specified tag key definitions. This operation triggers a process that removes the // tags from all resources in your tenancy. The tag key definitions must be within the same tag namespace. // The following actions happen immediately: -// // * If the tag is a cost-tracking tag, the tag no longer counts against your // 10 cost-tracking tags limit, even if you do not disable the tag before running this operation. // * If the tag is used with dynamic groups, the rules that contain the tag are no longer @@ -3963,7 +3962,7 @@ func (client IdentityClient) generateTotpSeed(ctx context.Context, request commo return response, err } -// GetAuthenticationPolicy Gets the authentication policy for the given tenancy. You must specify your tenant’s OCID as the value for +// GetAuthenticationPolicy Gets the authentication policy for the given tenancy. You must specify your tenant's OCID as the value for // the compartment ID (remember that the tenancy is simply the root compartment). // // See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider.go index 5cedf37a9ec..bb8f4c56f56 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider_group_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider_group_summary.go index e96100b8f61..620dfb02455 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider_group_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider_group_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/idp_group_mapping.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/idp_group_mapping.go index 314e1c19510..04baf7402e4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/idp_group_mapping.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/idp_group_mapping.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/import_standard_tags_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/import_standard_tags_details.go index f0be0ec5da3..69987fe71b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/import_standard_tags_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/import_standard_tags_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device.go index e9755af1ed4..7f84785746e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device_summary.go index 0bb456de101..317b2091f18 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_token.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_token.go index 6ee38fd713c..418a9915620 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_token.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_token.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_details.go index 500e2d565f6..2590d9f7600 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_policy.go index 5617a45f0f3..2204424b0f1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_policy.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_policy.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources.go index c28137898ba..d79d2367b53 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -33,7 +33,7 @@ type NetworkSources struct { // The description you assign to the network source. Does not have to be unique, and it's changeable. Description *string `mandatory:"true" json:"description"` - // Date and time the group was created, in the format defined by RFC3339. + // Date and time the network source was created, in the format defined by RFC3339. // Example: `2016-08-25T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_summary.go index aca4af101bf..1979f0dd79b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -21,17 +21,25 @@ import ( type NetworkSourcesSummary struct { // The OCID of the network source. - Id *string `mandatory:"false" json:"id"` + Id *string `mandatory:"true" json:"id"` // The OCID of the tenancy (root compartment) containing the network source. - CompartmentId *string `mandatory:"false" json:"compartmentId"` + CompartmentId *string `mandatory:"true" json:"compartmentId"` // The name you assign to the network source during creation. The name must be unique across // the tenancy and cannot be changed. - Name *string `mandatory:"false" json:"name"` + Name *string `mandatory:"true" json:"name"` // The description you assign to the network source. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` + Description *string `mandatory:"true" json:"description"` + + // The network source object's current state. After creating a network source, make sure its `lifecycleState` changes from CREATING to + // ACTIVE before using it. + LifecycleState NetworkSourcesLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Date and time the network source was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // A list of allowed public IP addresses and CIDR ranges. PublicSourceList []string `mandatory:"false" json:"publicSourceList"` @@ -43,10 +51,6 @@ type NetworkSourcesSummary struct { // -- The services attribute has no effect and is reserved for use by Oracle. -- Services []string `mandatory:"false" json:"services"` - // Date and time the group was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - // 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"}` @@ -67,6 +71,9 @@ func (m NetworkSourcesSummary) String() string { // Not recommended for calling this function directly func (m NetworkSourcesSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingNetworkSourcesLifecycleStateEnum(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(GetNetworkSourcesLifecycleStateEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_virtual_source_list.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_virtual_source_list.go index 316c703cd48..9b5396fbef7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_virtual_source_list.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_virtual_source_list.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential.go index 95f30586738..31df174e3b7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential_summary.go index d04a2a5d7aa..9cb5f6d4ff7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/password_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/password_policy.go index 17b34d7ceb1..eb3e24aaac3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/password_policy.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/password_policy.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/policy.go index 8e3e79cfa11..cc4b8c73571 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/policy.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/policy.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/region.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/region.go index 0055f3a6540..acfe6650449 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/region.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/region.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/region_subscription.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/region_subscription.go index 2d667dd12a5..c3ed81fbe2b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/region_subscription.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/region_subscription.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_lock_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_lock_details.go index 1824dc67db1..884fe2f40bb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_lock_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_lock_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/replicated_region_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/replicated_region_details.go index ff69553c447..bda98e7a2a0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/replicated_region_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/replicated_region_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity @@ -26,6 +26,9 @@ type ReplicatedRegionDetails struct { // Region-agnostic identity domain URL. Url *string `mandatory:"false" json:"url"` + // Region-specific identity domain URL. + RegionalUrl *string `mandatory:"false" json:"regionalUrl"` + // The IDCS-replicated region state. State ReplicatedRegionDetailsStateEnum `mandatory:"false" json:"state,omitempty"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/resource_lock.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/resource_lock.go index b9e64424795..4c7a7b4698a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/resource_lock.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/resource_lock.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/saml2_identity_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/saml2_identity_provider.go index ee3acb43c75..782793c899b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/saml2_identity_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/saml2_identity_provider.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/scim_client_credentials.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/scim_client_credentials.go index b82d43d6e10..09fd5bd0ef3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/scim_client_credentials.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/scim_client_credentials.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential.go index 56e67f47aa7..c3c641a94bb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential_summary.go index d67877bbe5c..15a2681fc46 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_definition_template.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_definition_template.go index adb4934c721..1d964fe0081 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_definition_template.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_definition_template.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template.go index c98b34627cb..2600659d4c9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template_summary.go index dca1ef3aebc..f9ab31cc347 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/swift_password.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/swift_password.go index ac665c7915c..178f956d23e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/swift_password.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/swift_password.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag.go index fdc23536d91..b2b827551bb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default.go index fe4b48c7ca6..1fce7e6befb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default_summary.go index ced02c0d4b9..026ef8a2447 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace.go index 8ce9c00740d..e947d1a7be9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace_summary.go index 585172c3bb7..aff02986c54 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_summary.go index 078a6844659..92794747a35 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request.go index 4923fc9605e..40b0e9211d4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_error_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_error_summary.go index 730d579b05c..42a746bc2e4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_error_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_error_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_log_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_log_summary.go index bb74deda378..77992f9f40f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_log_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_log_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_summary.go index eff47404a5a..58338fea191 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tenancy.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tenancy.go index b05edaeec1b..d8ebe406300 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tenancy.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tenancy.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password.go index ac671e5fb7c..274522d2365 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password_information.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password_information.go index ef09f2d6cd9..8ac43998da9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password_information.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password_information.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_details.go index 066b2931366..39101c0a9ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_details.go index bedef178ada..43c84e89dd4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_details.go index a752ca475c1..6cdb0749df1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_customer_secret_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_customer_secret_key_details.go index ef1ebc1421a..4aae5d77ded 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_customer_secret_key_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_customer_secret_key_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_details.go index 2938f8eec20..f187c000b31 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_details.go index 8048814ff7f..12d7a0a4c93 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_details.go index 4029e59d8ed..4ec224800c7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_details.go index 8611cfae713..11ca938f84a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_idp_group_mapping_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_idp_group_mapping_details.go index a81bd5f0004..3c50ae9b231 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_idp_group_mapping_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_idp_group_mapping_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_details.go index 615b0e46716..399075bfd34 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_o_auth2_client_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_o_auth2_client_credential_details.go index a6a7d390772..3de9a014100 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_o_auth2_client_credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_o_auth2_client_credential_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_details.go index 9c84165d671..a8deb400c63 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_saml2_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_saml2_identity_provider_details.go index 42005d07c05..388d5947843 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_saml2_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_saml2_identity_provider_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_details.go index 1562a02c189..ae079c49cbb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_state_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_state_details.go index ed1a7dfd5f1..c2e299defe0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_state_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_state_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_details.go index bbc454f5102..72ffc322357 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_details.go index 2af7d9c533a..59f0cb9701b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_details.go index fe8b2070809..01d37f7d8ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_details.go index 6b761a08ec9..0fa1f0d34ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_details.go index 0d8f0ea6840..36b80a74765 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_details.go index 01f6fae653b..34007dd5923 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_details.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/user.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user.go index 9fa897b8087..0f6231b8db9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/user.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_capabilities.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_capabilities.go index 6b7bcf95d53..91db05ebb89 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_capabilities.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_capabilities.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_group_membership.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_group_membership.go index a2065785760..c42ad0ad13b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_group_membership.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_group_membership.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request.go index ec0db38a952..2b8ec0a79c8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_error.go index 599a4513ee1..3e2d848b815 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_error.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_error.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_log_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_log_entry.go index 49863ccf11e..b741bfaf4ad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_log_entry.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_log_entry.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_resource.go index 5c8151f6e56..d3d2c90da4b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_resource.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_resource.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_summary.go index 86dce06ff6a..23e60092831 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_summary.go @@ -4,7 +4,7 @@ // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, policies, and identity domains. +// Use the Identity and Access Management Service API to manage users, groups, identity domains, compartments, policies, tagging, and limits. For information about managing users, groups, compartments, and policies, see Identity and Access Management (without identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about tagging and service limits, see Tagging (https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm) and Service Limits (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/servicelimits.htm). For information about creating, modifying, and deleting identity domains, see Identity and Access Management (with identity domains) (https://docs.cloud.oracle.com/iaas/Content/Identity/home.htm). // package identity diff --git a/vendor/modules.txt b/vendor/modules.txt index 64ab8576bc9..13009ee4855 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -248,7 +248,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.41.0 +# github.com/oracle/oci-go-sdk/v65 v65.41.1 ## explicit; go 1.13 github.com/oracle/oci-go-sdk/v65/adm github.com/oracle/oci-go-sdk/v65/aianomalydetection diff --git a/website/docs/d/data_labeling_service_dataset.html.markdown b/website/docs/d/data_labeling_service_dataset.html.markdown index 9ae6a9dd858..e6bfe2e5b97 100644 --- a/website/docs/d/data_labeling_service_dataset.html.markdown +++ b/website/docs/d/data_labeling_service_dataset.html.markdown @@ -32,6 +32,7 @@ The following arguments are supported: The following attributes are exported: +* `additional_properties` - A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: `{"bar-key": "value"}` * `annotation_format` - The annotation format name required for labeling records. * `compartment_id` - The OCID of the compartment of the resource. * `dataset_format_details` - It specifies how to process the data. Supported formats include DOCUMENT, IMAGE, and TEXT. @@ -53,12 +54,22 @@ The following attributes are exported: * `display_name` - A user-friendly display name for the resource. * `freeform_tags` - A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: `{"bar-key": "value"}` * `id` - The OCID of the Dataset. +* `initial_import_dataset_configuration` - Initial import dataset configuration. Allows user to create dataset from existing dataset files. + * `import_format` - File format details used for importing dataset + * `name` - Name of import format + * `version` - Version of import format + * `import_metadata_path` - Object storage path for the metadata file + * `bucket` - Bucket name + * `namespace` - Bucket namespace name + * `path` - Path for the metadata file. + * `source_type` - The type of data source. OBJECT_STORAGE - The source details for an object storage bucket. * `initial_record_generation_configuration` - The initial generate records configuration. It generates records from the dataset's source. * `label_set` - An ordered collection of labels that are unique by name. * `items` - An ordered collection of labels that are unique by name. * `name` - An unique name for a label within its dataset. * `labeling_instructions` - The labeling instructions for human labelers in rich text format * `lifecycle_details` - A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in FAILED or NEEDS_ATTENTION state. +* `lifecycle_substate` - The sub-state of the dataset. IMPORT_DATASET - The dataset is being imported. * `state` - The state of a dataset. CREATING - The dataset is being created. It will transition to ACTIVE when it is ready for labeling. ACTIVE - The dataset is ready for labeling. UPDATING - The dataset is being updated. It and its related resources may be unavailable for other updates until it returns to ACTIVE. NEEDS_ATTENTION - A dataset updation operation has failed due to validation or other errors and needs attention. DELETING - The dataset and its related resources are being deleted. DELETED - The dataset has been deleted and is no longer available. FAILED - The dataset has failed due to validation or other errors. * `time_created` - The date and time the resource was created, in the timestamp format defined by RFC3339. * `time_updated` - The date and time the resource was last updated, in the timestamp format defined by RFC3339. diff --git a/website/docs/d/data_labeling_service_datasets.html.markdown b/website/docs/d/data_labeling_service_datasets.html.markdown index 2e5815d59d4..a879de0e2ff 100644 --- a/website/docs/d/data_labeling_service_datasets.html.markdown +++ b/website/docs/d/data_labeling_service_datasets.html.markdown @@ -49,6 +49,7 @@ The following attributes are exported: The following attributes are exported: +* `additional_properties` - A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: `{"bar-key": "value"}` * `annotation_format` - The annotation format name required for labeling records. * `compartment_id` - The OCID of the compartment of the resource. * `dataset_format_details` - It specifies how to process the data. Supported formats include DOCUMENT, IMAGE, and TEXT. @@ -70,12 +71,22 @@ The following attributes are exported: * `display_name` - A user-friendly display name for the resource. * `freeform_tags` - A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: `{"bar-key": "value"}` * `id` - The OCID of the Dataset. +* `initial_import_dataset_configuration` - Initial import dataset configuration. Allows user to create dataset from existing dataset files. + * `import_format` - File format details used for importing dataset + * `name` - Name of import format + * `version` - Version of import format + * `import_metadata_path` - Object storage path for the metadata file + * `bucket` - Bucket name + * `namespace` - Bucket namespace name + * `path` - Path for the metadata file. + * `source_type` - The type of data source. OBJECT_STORAGE - The source details for an object storage bucket. * `initial_record_generation_configuration` - The initial generate records configuration. It generates records from the dataset's source. * `label_set` - An ordered collection of labels that are unique by name. * `items` - An ordered collection of labels that are unique by name. * `name` - An unique name for a label within its dataset. * `labeling_instructions` - The labeling instructions for human labelers in rich text format * `lifecycle_details` - A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in FAILED or NEEDS_ATTENTION state. +* `lifecycle_substate` - The sub-state of the dataset. IMPORT_DATASET - The dataset is being imported. * `state` - The state of a dataset. CREATING - The dataset is being created. It will transition to ACTIVE when it is ready for labeling. ACTIVE - The dataset is ready for labeling. UPDATING - The dataset is being updated. It and its related resources may be unavailable for other updates until it returns to ACTIVE. NEEDS_ATTENTION - A dataset updation operation has failed due to validation or other errors and needs attention. DELETING - The dataset and its related resources are being deleted. DELETED - The dataset has been deleted and is no longer available. FAILED - The dataset has failed due to validation or other errors. * `time_created` - The date and time the resource was created, in the timestamp format defined by RFC3339. * `time_updated` - The date and time the resource was last updated, in the timestamp format defined by RFC3339. diff --git a/website/docs/d/dataflow_application.html.markdown b/website/docs/d/dataflow_application.html.markdown index fef5d49e57c..0a4627c6f2c 100644 --- a/website/docs/d/dataflow_application.html.markdown +++ b/website/docs/d/dataflow_application.html.markdown @@ -67,11 +67,12 @@ The following attributes are exported: * `parameters` - An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] * `name` - The name of the parameter. It must be a string of one or more word characters (a-z, A-Z, 0-9, _). Examples: "iterations", "input_file" * `value` - The value of the parameter. It must be a string of 0 or more characters of any kind. Examples: "" (empty string), "10", "mydata.xml", "${x}" +* `pool_id` - The OCID of a pool. Unique Id to indentify a dataflow pool resource. * `private_endpoint_id` - The OCID of a private endpoint. * `spark_version` - The Spark version utilized to run the application. * `state` - The current state of this application. -* `time_created` - The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` -* `time_updated` - The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_updated` - The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` * `type` - The Spark application processing type. * `warehouse_bucket_uri` - An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat. diff --git a/website/docs/d/dataflow_applications.html.markdown b/website/docs/d/dataflow_applications.html.markdown index 4884fc311b3..3d9ed19fd5b 100644 --- a/website/docs/d/dataflow_applications.html.markdown +++ b/website/docs/d/dataflow_applications.html.markdown @@ -83,11 +83,12 @@ The following attributes are exported: * `parameters` - An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] * `name` - The name of the parameter. It must be a string of one or more word characters (a-z, A-Z, 0-9, _). Examples: "iterations", "input_file" * `value` - The value of the parameter. It must be a string of 0 or more characters of any kind. Examples: "" (empty string), "10", "mydata.xml", "${x}" +* `pool_id` - The OCID of a pool. Unique Id to indentify a dataflow pool resource. * `private_endpoint_id` - The OCID of a private endpoint. * `spark_version` - The Spark version utilized to run the application. * `state` - The current state of this application. -* `time_created` - The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` -* `time_updated` - The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_updated` - The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` * `type` - The Spark application processing type. * `warehouse_bucket_uri` - An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat. diff --git a/website/docs/d/dataflow_invoke_run.html.markdown b/website/docs/d/dataflow_invoke_run.html.markdown index 15af7dbf58e..39a3b3b440d 100644 --- a/website/docs/d/dataflow_invoke_run.html.markdown +++ b/website/docs/d/dataflow_invoke_run.html.markdown @@ -71,6 +71,7 @@ The following attributes are exported: * `parameters` - An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] * `name` - The name of the parameter. It must be a string of one or more word characters (a-z, A-Z, 0-9, _). Examples: "iterations", "input_file" * `value` - The value of the parameter. It must be a string of 0 or more characters of any kind. Examples: "" (empty string), "10", "mydata.xml", "${x}" +* `pool_id` - The OCID of a pool. Unique Id to indentify a dataflow pool resource. * `private_endpoint_dns_zones` - An array of DNS zone names. Example: `[ "app.examplecorp.com", "app.examplecorp2.com" ]` * `private_endpoint_id` - The OCID of a private endpoint. * `private_endpoint_max_host_count` - The maximum number of hosts to be accessed through the private endpoint. This value is used to calculate the relevant CIDR block and should be a multiple of 256. If the value is not a multiple of 256, it is rounded up to the next multiple of 256. For example, 300 is rounded up to 512. @@ -79,8 +80,8 @@ The following attributes are exported: * `run_duration_in_milliseconds` - The duration of the run in milliseconds. * `spark_version` - The Spark version utilized to run the application. * `state` - The current state of this run. -* `time_created` - The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` -* `time_updated` - The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_updated` - The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` * `total_ocpu` - The total number of oCPU requested by the run. * `type` - The Spark application processing type. * `warehouse_bucket_uri` - An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat. diff --git a/website/docs/d/dataflow_invoke_runs.html.markdown b/website/docs/d/dataflow_invoke_runs.html.markdown index 06587548542..0e23bbed34b 100644 --- a/website/docs/d/dataflow_invoke_runs.html.markdown +++ b/website/docs/d/dataflow_invoke_runs.html.markdown @@ -25,6 +25,7 @@ data "oci_dataflow_invoke_runs" "test_invoke_runs" { display_name = var.invoke_run_display_name display_name_starts_with = var.invoke_run_display_name_starts_with owner_principal_id = oci_dataflow_owner_principal.test_owner_principal.id + pool_id = oci_dataflow_pool.test_pool.id state = var.invoke_run_state time_created_greater_than = var.invoke_run_time_created_greater_than } @@ -39,6 +40,7 @@ The following arguments are supported: * `display_name` - (Optional) The query parameter for the Spark application name. * `display_name_starts_with` - (Optional) The displayName prefix. * `owner_principal_id` - (Optional) The OCID of the user who created the resource. +* `pool_id` - (Optional) The ID of the pool. * `state` - (Optional) The LifecycleState of the run. * `time_created_greater_than` - (Optional) The epoch time that the resource was created. @@ -91,6 +93,7 @@ The following attributes are exported: * `parameters` - An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] * `name` - The name of the parameter. It must be a string of one or more word characters (a-z, A-Z, 0-9, _). Examples: "iterations", "input_file" * `value` - The value of the parameter. It must be a string of 0 or more characters of any kind. Examples: "" (empty string), "10", "mydata.xml", "${x}" +* `pool_id` - The OCID of a pool. Unique Id to indentify a dataflow pool resource. * `private_endpoint_dns_zones` - An array of DNS zone names. Example: `[ "app.examplecorp.com", "app.examplecorp2.com" ]` * `private_endpoint_id` - The OCID of a private endpoint. * `private_endpoint_max_host_count` - The maximum number of hosts to be accessed through the private endpoint. This value is used to calculate the relevant CIDR block and should be a multiple of 256. If the value is not a multiple of 256, it is rounded up to the next multiple of 256. For example, 300 is rounded up to 512. @@ -99,8 +102,8 @@ The following attributes are exported: * `run_duration_in_milliseconds` - The duration of the run in milliseconds. * `spark_version` - The Spark version utilized to run the application. * `state` - The current state of this run. -* `time_created` - The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` -* `time_updated` - The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_updated` - The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` * `total_ocpu` - The total number of oCPU requested by the run. * `type` - The Spark application processing type. * `warehouse_bucket_uri` - An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat. diff --git a/website/docs/d/dataflow_pool.html.markdown b/website/docs/d/dataflow_pool.html.markdown new file mode 100644 index 00000000000..587c969f797 --- /dev/null +++ b/website/docs/d/dataflow_pool.html.markdown @@ -0,0 +1,69 @@ +--- +subcategory: "Data Flow" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_dataflow_pool" +sidebar_current: "docs-oci-datasource-dataflow-pool" +description: |- + Provides details about a specific Pool in Oracle Cloud Infrastructure Data Flow service +--- + +# Data Source: oci_dataflow_pool +This data source provides details about a specific Pool resource in Oracle Cloud Infrastructure Data Flow service. + +Retrieves a pool using a `poolId`. + + +## Example Usage + +```hcl +data "oci_dataflow_pool" "test_pool" { + #Required + pool_id = oci_dataflow_pool.test_pool.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `pool_id` - (Required) The unique ID for a pool. + + +## Attributes Reference + +The following attributes are exported: + +* `compartment_id` - The OCID of a compartment. +* `configurations` - List of PoolConfig items. + * `max` - Maximum number of compute instances in the pool for a given compute shape. + * `min` - Minimum number of compute instances in the pool for a given compute shape. + * `shape` - The compute shape of the resources you would like to provision. + * `shape_config` - This is used to configure the shape of the driver or executor if a flexible shape is used. + * `memory_in_gbs` - The amount of memory used for the driver or executors. + * `ocpus` - The total number of OCPUs used for the driver or executors. See [here](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Shape/) for details. +* `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` - A user-friendly description. Avoid entering confidential information. +* `display_name` - A user-friendly name. It does not have to be unique. 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `id` - The OCID of a pool. Unique Id to indentify a dataflow pool resource. +* `idle_timeout_in_minutes` - Optional timeout value in minutes used to auto stop Pools. A Pool will be auto stopped after inactivity for this amount of time period. If value not set, pool will not be auto stopped auto. +* `lifecycle_details` - The detailed messages about the lifecycle state. +* `owner_principal_id` - The OCID of the user who created the resource. +* `owner_user_name` - The username of the user who created the resource. If the username of the owner does not exist, `null` will be returned and the caller should refer to the ownerPrincipalId value instead. +* `pool_metrics` - A collection of metrics related to a particular pool. + * `active_runs_count` - The number of runs that are currently running that are using this pool. + * `actively_used_node_count` - A count of the nodes that are currently being used for each shape in this pool. + * `logical_shape` - The compute shape of the nodes that the count is for. + * `pool_count` - The node count of this compute shape. + * `time_last_metrics_updated` - The last time the mertics were updated for this. + * `time_last_started` - The last time this pool was started. + * `time_last_stopped` - The last time this pool was stopped. + * `time_last_used` - The last time a run used this pool. +* `schedules` - A list of schedules for pool to auto start and stop. + * `day_of_week` - Day of the week SUN-SAT + * `start_time` - Hour of the day to start or stop pool. + * `stop_time` - Hour of the day to stop the pool. +* `state` - The current state of this pool. +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_updated` - The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` + diff --git a/website/docs/d/dataflow_pools.html.markdown b/website/docs/d/dataflow_pools.html.markdown new file mode 100644 index 00000000000..032a34ea91b --- /dev/null +++ b/website/docs/d/dataflow_pools.html.markdown @@ -0,0 +1,85 @@ +--- +subcategory: "Data Flow" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_dataflow_pools" +sidebar_current: "docs-oci-datasource-dataflow-pools" +description: |- + Provides the list of Pools in Oracle Cloud Infrastructure Data Flow service +--- + +# Data Source: oci_dataflow_pools +This data source provides the list of Pools in Oracle Cloud Infrastructure Data Flow service. + +Lists all pools in the specified compartment. The query must include compartmentId. The query may also include one other parameter. If the query does not include compartmentId, or includes compartmentId, but with two or more other parameters, an error is returned. + + +## Example Usage + +```hcl +data "oci_dataflow_pools" "test_pools" { + #Required + compartment_id = var.compartment_id + + #Optional + display_name = var.pool_display_name + display_name_starts_with = var.pool_display_name_starts_with + owner_principal_id = oci_dataflow_owner_principal.test_owner_principal.id + state = var.pool_state +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Required) The OCID of the compartment. +* `display_name` - (Optional) The query parameter for the Spark application name. +* `display_name_starts_with` - (Optional) The displayName prefix. +* `owner_principal_id` - (Optional) The OCID of the user who created the resource. +* `state` - (Optional) The LifecycleState of the pool. + + +## Attributes Reference + +The following attributes are exported: + +* `pool_collection` - The list of pool_collection. + +### Pool Reference + +The following attributes are exported: + +* `compartment_id` - The OCID of a compartment. +* `configurations` - List of PoolConfig items. + * `max` - Maximum number of compute instances in the pool for a given compute shape. + * `min` - Minimum number of compute instances in the pool for a given compute shape. + * `shape` - The compute shape of the resources you would like to provision. + * `shape_config` - This is used to configure the shape of the driver or executor if a flexible shape is used. + * `memory_in_gbs` - The amount of memory used for the driver or executors. + * `ocpus` - The total number of OCPUs used for the driver or executors. See [here](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Shape/) for details. +* `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` - A user-friendly description. Avoid entering confidential information. +* `display_name` - A user-friendly name. It does not have to be unique. 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `id` - The OCID of a pool. Unique Id to indentify a dataflow pool resource. +* `idle_timeout_in_minutes` - Optional timeout value in minutes used to auto stop Pools. A Pool will be auto stopped after inactivity for this amount of time period. If value not set, pool will not be auto stopped auto. +* `lifecycle_details` - The detailed messages about the lifecycle state. +* `owner_principal_id` - The OCID of the user who created the resource. +* `owner_user_name` - The username of the user who created the resource. If the username of the owner does not exist, `null` will be returned and the caller should refer to the ownerPrincipalId value instead. +* `pool_metrics` - A collection of metrics related to a particular pool. + * `active_runs_count` - The number of runs that are currently running that are using this pool. + * `actively_used_node_count` - A count of the nodes that are currently being used for each shape in this pool. + * `logical_shape` - The compute shape of the nodes that the count is for. + * `pool_count` - The node count of this compute shape. + * `time_last_metrics_updated` - The last time the mertics were updated for this. + * `time_last_started` - The last time this pool was started. + * `time_last_stopped` - The last time this pool was stopped. + * `time_last_used` - The last time a run used this pool. +* `schedules` - A list of schedules for pool to auto start and stop. + * `day_of_week` - Day of the week SUN-SAT + * `start_time` - Hour of the day to start or stop pool. + * `stop_time` - Hour of the day to stop the pool. +* `state` - The current state of this pool. +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_updated` - The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` + diff --git a/website/docs/d/dataflow_private_endpoint.html.markdown b/website/docs/d/dataflow_private_endpoint.html.markdown index b523a7db303..8b61aa76f66 100644 --- a/website/docs/d/dataflow_private_endpoint.html.markdown +++ b/website/docs/d/dataflow_private_endpoint.html.markdown @@ -50,6 +50,6 @@ The following attributes are exported: * `port` - The port number of the FQDN * `state` - The current state of this private endpoint. * `subnet_id` - The OCID of a subnet. -* `time_created` - The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` -* `time_updated` - The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_updated` - The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` diff --git a/website/docs/d/dataflow_private_endpoints.html.markdown b/website/docs/d/dataflow_private_endpoints.html.markdown index e005a414be3..166c1d85d03 100644 --- a/website/docs/d/dataflow_private_endpoints.html.markdown +++ b/website/docs/d/dataflow_private_endpoints.html.markdown @@ -66,6 +66,6 @@ The following attributes are exported: * `port` - The port number of the FQDN * `state` - The current state of this private endpoint. * `subnet_id` - The OCID of a subnet. -* `time_created` - The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` -* `time_updated` - The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_updated` - The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` diff --git a/website/docs/d/dataflow_run_statement.html.markdown b/website/docs/d/dataflow_run_statement.html.markdown index 03225815495..63c1ee7b167 100644 --- a/website/docs/d/dataflow_run_statement.html.markdown +++ b/website/docs/d/dataflow_run_statement.html.markdown @@ -49,5 +49,5 @@ The following attributes are exported: * `run_id` - The ID of a run. * `state` - The current state of this statement. * `time_completed` - The date and time a statement execution was completed, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2022-05-31T21:10:29.600Z` -* `time_created` - The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` diff --git a/website/docs/d/dataflow_run_statements.html.markdown b/website/docs/d/dataflow_run_statements.html.markdown index 16ff7f1e60a..42e4df5a1a4 100644 --- a/website/docs/d/dataflow_run_statements.html.markdown +++ b/website/docs/d/dataflow_run_statements.html.markdown @@ -57,5 +57,5 @@ The following attributes are exported: * `run_id` - The ID of a run. * `state` - The current state of this statement. * `time_completed` - The date and time a statement execution was completed, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2022-05-31T21:10:29.600Z` -* `time_created` - The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` diff --git a/website/docs/d/functions_application.html.markdown b/website/docs/d/functions_application.html.markdown index 60139708763..c8e05a51f5e 100644 --- a/website/docs/d/functions_application.html.markdown +++ b/website/docs/d/functions_application.html.markdown @@ -45,6 +45,7 @@ The following attributes are exported: * `key_details` - A list of KMS key details. * `kms_key_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the KMS key that will be used to verify the image signature. * `network_security_group_ids` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the Network Security Groups to add the application to. +* `shape` - Valid values are `GENERIC_X86`, `GENERIC_ARM` and `GENERIC_X86_ARM`. Default is `GENERIC_X86`. Setting this to `GENERIC_X86`, will run the functions in the application on X86 processor architecture. Setting this to `GENERIC_ARM`, will run the functions in the application on ARM processor architecture. When set to `GENERIC_X86_ARM`, functions in the application are run on either X86 or ARM processor architecture. Accepted values are: `GENERIC_X86`, `GENERIC_ARM`, `GENERIC_X86_ARM` * `state` - The current state of the application. * `subnet_ids` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the subnets in which to run functions in the application. * `syslog_url` - A syslog URL to which to send all function logs. Supports tcp, udp, and tcp+tls. The syslog URL must be reachable from all of the subnets configured for the application. Note: If you enable the Oracle Cloud Infrastructure Logging service for this application, the syslogUrl value is ignored. Function logs are sent to the Oracle Cloud Infrastructure Logging service, and not to the syslog URL. Example: `tcp://logserver.myserver:1234` diff --git a/website/docs/d/functions_applications.html.markdown b/website/docs/d/functions_applications.html.markdown index d79b43a0514..7efbbc74be8 100644 --- a/website/docs/d/functions_applications.html.markdown +++ b/website/docs/d/functions_applications.html.markdown @@ -55,10 +55,11 @@ 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 application. * `network_security_group_ids` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the Network Security Groups to add the application to. -* `image_policy_config` - Define the image signature verification policy for an application. +* `image_policy_config` - Define the image signature verification policy for an application. * `is_policy_enabled` - Define if image signature verification policy is enabled for the application. * `key_details` - A list of KMS key details. * `kms_key_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the KMS key that will be used to verify the image signature. +* `shape` - Valid values are `GENERIC_X86`, `GENERIC_ARM` and `GENERIC_X86_ARM`. Default is `GENERIC_X86`. Setting this to `GENERIC_X86`, will run the functions in the application on X86 processor architecture. Setting this to `GENERIC_ARM`, will run the functions in the application on ARM processor architecture. When set to `GENERIC_X86_ARM`, functions in the application are run on either X86 or ARM processor architecture. Accepted values are: `GENERIC_X86`, `GENERIC_ARM`, `GENERIC_X86_ARM` * `state` - The current state of the application. * `subnet_ids` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the subnets in which to run functions in the application. * `syslog_url` - A syslog URL to which to send all function logs. Supports tcp, udp, and tcp+tls. The syslog URL must be reachable from all of the subnets configured for the application. Note: If you enable the Oracle Cloud Infrastructure Logging service for this application, the syslogUrl value is ignored. Function logs are sent to the Oracle Cloud Infrastructure Logging service, and not to the syslog URL. Example: `tcp://logserver.myserver:1234` diff --git a/website/docs/d/functions_function.html.markdown b/website/docs/d/functions_function.html.markdown index eaa137be80a..511b9751524 100644 --- a/website/docs/d/functions_function.html.markdown +++ b/website/docs/d/functions_function.html.markdown @@ -45,9 +45,10 @@ The following attributes are exported: * `image_digest` - The image digest for the version of the image that will be pulled when invoking this function. If no value is specified, the digest currently associated with the image in the Oracle Cloud Infrastructure Registry will be used. Example: `sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7` * `invoke_endpoint` - The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached. * `memory_in_mbs` - Maximum usable memory for the function (MiB). -* `provisioned_concurrency_config` - Define the strategy for provisioned concurrency for the function. - * `count` - +* `provisioned_concurrency_config` - Define the strategy for provisioned concurrency for the function. + * `count` - Configuration specifying a constant amount of provisioned concurrency. * `strategy` - The strategy for provisioned concurrency to be used. +* `shape` - The processor shape (`GENERIC_X86`/`GENERIC_ARM`) on which to run functions in the application, extracted from the image manifest. * `source_details` - The source details for the Function. The function can be created from various sources. * `pbf_listing_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PbfListing this function is sourced from. * `source_type` - Type of the Function Source. Possible values: PRE_BUILT_FUNCTIONS. diff --git a/website/docs/d/functions_functions.html.markdown b/website/docs/d/functions_functions.html.markdown index 33b000c8470..a3ceceb97a8 100644 --- a/website/docs/d/functions_functions.html.markdown +++ b/website/docs/d/functions_functions.html.markdown @@ -59,9 +59,10 @@ The following attributes are exported: * `image_digest` - The image digest for the version of the image that will be pulled when invoking this function. If no value is specified, the digest currently associated with the image in the Oracle Cloud Infrastructure Registry will be used. Example: `sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7` * `invoke_endpoint` - The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached. * `memory_in_mbs` - Maximum usable memory for the function (MiB). -* `provisioned_concurrency_config` - Define the strategy for provisioned concurrency for the function. - * `count` - +* `provisioned_concurrency_config` - Define the strategy for provisioned concurrency for the function. + * `count` - Configuration specifying a constant amount of provisioned concurrency. * `strategy` - The strategy for provisioned concurrency to be used. +* `shape` - The processor shape (`GENERIC_X86`/`GENERIC_ARM`) on which to run functions in the application, extracted from the image manifest. * `source_details` - The source details for the Function. The function can be created from various sources. * `pbf_listing_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PbfListing this function is sourced from. * `source_type` - Type of the Function Source. Possible values: PRE_BUILT_FUNCTIONS. diff --git a/website/docs/d/identity_allowed_domain_license_types.html.markdown b/website/docs/d/identity_allowed_domain_license_types.html.markdown index d52a451cd18..9dc2e3854bb 100644 --- a/website/docs/d/identity_allowed_domain_license_types.html.markdown +++ b/website/docs/d/identity_allowed_domain_license_types.html.markdown @@ -10,12 +10,11 @@ description: |- # Data Source: oci_identity_allowed_domain_license_types This data source provides the list of Allowed Domain License Types in Oracle Cloud Infrastructure Identity service. -List the allowed domain license types supported by Oracle Cloud Infrastructure If {@code currentLicenseTypeName} provided, returns allowed license types a domain with the specified license type name can migrate to. -If {@code name} is provided, it filters and returns resources that match the given license type name. -Otherwise, returns all valid license types that are currently supported. +(For tenancies that support identity domains) Lists the license types for identity domains supported by Oracle Cloud Infrastructure. +(License types are also referred to as domain types.) -- If license type details are retrieved sucessfully, return 202 ACCEPTED. -- If any internal error occurs, return 500 INTERNAL SERVER ERROR. +If `currentLicenseTypeName` is provided, then the request returns license types that the identity domain with the specified license +type name can change to. Otherwise, the request returns all valid license types currently supported. ## Example Usage @@ -32,7 +31,7 @@ data "oci_identity_allowed_domain_license_types" "test_allowed_domain_license_ty The following arguments are supported: -* `current_license_type_name` - (Optional) The domain license type +* `current_license_type_name` - (Optional) The license type of the identity domain. ## Attributes Reference diff --git a/website/docs/d/identity_auth_tokens.html.markdown b/website/docs/d/identity_auth_tokens.html.markdown index 7d8ac785b78..44fb611f4f7 100644 --- a/website/docs/d/identity_auth_tokens.html.markdown +++ b/website/docs/d/identity_auth_tokens.html.markdown @@ -41,6 +41,8 @@ The following attributes are exported: The following attributes are exported: * `description` - The description you assign to the auth token. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `id` - The OCID of the auth token. * `inactive_state` - The detailed status of INACTIVE lifecycleState. * `state` - The token's current state. diff --git a/website/docs/d/identity_authentication_policy.html.markdown b/website/docs/d/identity_authentication_policy.html.markdown index d950d6c3526..2eb72418cac 100644 --- a/website/docs/d/identity_authentication_policy.html.markdown +++ b/website/docs/d/identity_authentication_policy.html.markdown @@ -10,7 +10,7 @@ description: |- # Data Source: oci_identity_authentication_policy This data source provides details about a specific Authentication Policy resource in Oracle Cloud Infrastructure Identity service. -Gets the authentication policy for the given tenancy. You must specify your tenant’s OCID as the value for +Gets the authentication policy for the given tenancy. You must specify your tenant's OCID as the value for the compartment ID (remember that the tenancy is simply the root compartment). @@ -35,7 +35,7 @@ The following arguments are supported: The following attributes are exported: * `compartment_id` - Compartment OCID. -* `network_policy` - Network policy, Consists of a list of Network Source ids. +* `network_policy` - Network policy, which consists of a list of network source IDs. * `network_source_ids` - Network Source ids * `password_policy` - Password policy, currently set for the given compartment. * `is_lowercase_characters_required` - At least one lower case character required. diff --git a/website/docs/d/identity_cost_tracking_tags.html.markdown b/website/docs/d/identity_cost_tracking_tags.html.markdown index 9ffc5ee3805..de9fb20b919 100644 --- a/website/docs/d/identity_cost_tracking_tags.html.markdown +++ b/website/docs/d/identity_cost_tracking_tags.html.markdown @@ -11,7 +11,7 @@ description: |- This data source provides the list of Cost Tracking Tags in Oracle Cloud Infrastructure Identity service. Lists all the tags enabled for cost-tracking in the specified tenancy. For information about -cost-tracking tags, see [Using Cost-tracking Tags](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm#costs). +cost-tracking tags, see [Using Cost-tracking Tags](https://docs.cloud.oracle.com/iaas/Content/Tagging/Tasks/usingcosttrackingtags.htm). ## Example Usage @@ -46,13 +46,13 @@ 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 of the tag definition. * `is_cost_tracking` - Indicates whether the tag is enabled for cost tracking. -* `is_retired` - Indicates whether the tag is retired. See [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm#Retiring). +* `is_retired` - Indicates whether the tag is retired. See [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/iaas/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). * `name` - The name assigned to the tag during creation. This is the tag key definition. The name must be unique within the tag namespace and cannot be changed. * `state` - The tag's current state. After creating a tag, make sure its `lifecycleState` is ACTIVE before using it. After retiring a tag, make sure its `lifecycleState` is INACTIVE before using it. If you delete a tag, you cannot delete another tag until the deleted tag's `lifecycleState` changes from DELETING to DELETED. * `tag_namespace_id` - The OCID of the namespace that contains the tag definition. * `tag_namespace_name` - The name of the tag namespace that contains the tag definition. * `time_created` - Date and time the tag was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` -* `validator` - Validates a definedTag value. Each validator performs validation steps in addition to the standard validation for definedTag values. For more information, see [Limits on Tags](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm#Limits). +* `validator` - Validates a definedTag value. Each validator performs validation steps in addition to the standard validation for definedTag values. For more information, see [Limits on Tags](https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm#limits). If you define a validator after a value has been set for a defined tag, then any updates that attempt to change the value must pass the additional validation defined by the current rule. Previously set values (even those that would fail the current validation) are not updated. You can still update other attributes to resources that contain a non-valid defined tag. diff --git a/website/docs/d/identity_db_credentials.html.markdown b/website/docs/d/identity_db_credentials.html.markdown index ba04f497b8b..ce492aa7c6a 100644 --- a/website/docs/d/identity_db_credentials.html.markdown +++ b/website/docs/d/identity_db_credentials.html.markdown @@ -46,6 +46,8 @@ The following attributes are exported: The following attributes are exported: * `description` - The description you assign to the DB credential. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `id` - The OCID of the DB credential. * `state` - The credential's current state. After creating a DB credential, make sure its `lifecycleState` changes from CREATING to ACTIVE before using it. * `time_created` - Date and time the `DbCredential` object was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` diff --git a/website/docs/d/identity_domain.html.markdown b/website/docs/d/identity_domain.html.markdown index 8c2d65cbc3c..4f5d47b8851 100644 --- a/website/docs/d/identity_domain.html.markdown +++ b/website/docs/d/identity_domain.html.markdown @@ -10,10 +10,7 @@ description: |- # Data Source: oci_identity_domain This data source provides details about a specific Domain resource in Oracle Cloud Infrastructure Identity service. -Get the specified domain's information. - -- If the domain doesn't exists, returns 404 NOT FOUND. -- If any internal error occurs, returns 500 INTERNAL SERVER ERROR. +(For tenancies that support identity domains) Gets the specified identity domain's information. ## Example Usage @@ -29,30 +26,31 @@ data "oci_identity_domain" "test_domain" { The following arguments are supported: -* `domain_id` - (Required) The OCID of the domain +* `domain_id` - (Required) The OCID of the identity domain. ## Attributes Reference The following attributes are exported: -* `compartment_id` - The OCID of the compartment containing the domain. +* `compartment_id` - The OCID of the compartment containing the identity domain. * `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` - The domain descripition -* `display_name` - The mutable display name of the domain +* `description` - The identity domain description. You can have an empty description. +* `display_name` - The mutable display name of the identity domain. * `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"}` -* `home_region` - The home region for the domain. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: `us-phoenix-1` -* `home_region_url` - Region specific domain URL. -* `id` - The OCID of the domain -* `is_hidden_on_login` - Indicates whether domain is hidden on login screen or not. -* `license_type` - The License type of Domain -* `lifecycle_details` - Any additional details about the current state of the Domain. -* `replica_regions` - The regions domain is replication to. +* `home_region` - The home region for the identity domain. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: `us-phoenix-1` +* `home_region_url` - Region-specific identity domain URL. +* `id` - The OCID of the identity domain. +* `is_hidden_on_login` - Indicates whether the identity domain is hidden on the sign-in screen or not. +* `license_type` - The license type of the identity domain. +* `lifecycle_details` - Any additional details about the current state of the identity domain. +* `replica_regions` - The regions where replicas of the identity domain exist. * `region` - A REPLICATION_ENABLED region, e.g. us-ashburn-1. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. - * `state` - The IDCS replicated region state - * `url` - Region agnostic domain URL. + * `regional_url` - Region-specific identity domain URL. + * `state` - The IDCS-replicated region state. + * `url` - Region-agnostic identity domain URL. * `state` - The current state. -* `time_created` - Date and time the domain was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` -* `type` - The type of the domain. -* `url` - Region agnostic domain URL. +* `time_created` - Date and time the identity domain was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` +* `type` - The type of the identity domain. +* `url` - Region-agnostic identity domain URL. diff --git a/website/docs/d/identity_domains.html.markdown b/website/docs/d/identity_domains.html.markdown index cda0487fcc3..2324c559567 100644 --- a/website/docs/d/identity_domains.html.markdown +++ b/website/docs/d/identity_domains.html.markdown @@ -10,8 +10,7 @@ description: |- # Data Source: oci_identity_domains This data source provides the list of Domains in Oracle Cloud Infrastructure Identity service. -List all domains that are homed or have a replica region in current region. -- If any internal error occurs, return 500 INTERNAL SERVER ERROR. +(For tenancies that support identity domains) Lists all identity domains within a tenancy. ## Example Usage @@ -38,14 +37,14 @@ data "oci_identity_domains" "test_domains" { The following arguments are supported: * `compartment_id` - (Required) The OCID of the compartment (remember that the tenancy is simply the root compartment). -* `display_name` - (Optional) The mutable display name of the domain -* `home_region_url` - (Optional) The region specific domain URL -* `is_hidden_on_login` - (Optional) Indicate if the domain is visible at login screen or not -* `license_type` - (Optional) The domain license type +* `display_name` - (Optional) The mutable display name of the identity domain. +* `home_region_url` - (Optional) The region-specific identity domain URL. +* `is_hidden_on_login` - (Optional) Indicates whether or not the identity domain is visible at the sign-in screen. +* `license_type` - (Optional) The license type of the identity domain. * `name` - (Optional) A filter to only return resources that match the given name exactly. -* `state` - (Optional) A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. -* `type` - (Optional) The domain type -* `url` - (Optional) The region agnostic domain URL +* `state` - (Optional) A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. +* `type` - (Optional) The identity domain type. +* `url` - (Optional) The region-agnostic identity domain URL. ## Attributes Reference @@ -58,23 +57,24 @@ The following attributes are exported: The following attributes are exported: -* `compartment_id` - The OCID of the compartment containing the domain. +* `compartment_id` - The OCID of the compartment containing the identity domain. * `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` - The domain descripition -* `display_name` - The mutable display name of the domain +* `description` - The identity domain description. You can have an empty description. +* `display_name` - The mutable display name of the identity domain. * `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"}` -* `home_region` - The home region for the domain. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: `us-phoenix-1` -* `home_region_url` - Region specific domain URL. -* `id` - The OCID of the domain -* `is_hidden_on_login` - Indicates whether domain is hidden on login screen or not. -* `license_type` - The License type of Domain -* `lifecycle_details` - Any additional details about the current state of the Domain. -* `replica_regions` - The regions domain is replication to. +* `home_region` - The home region for the identity domain. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: `us-phoenix-1` +* `home_region_url` - Region-specific identity domain URL. +* `id` - The OCID of the identity domain. +* `is_hidden_on_login` - Indicates whether the identity domain is hidden on the sign-in screen or not. +* `license_type` - The license type of the identity domain. +* `lifecycle_details` - Any additional details about the current state of the identity domain. +* `replica_regions` - The regions where replicas of the identity domain exist. * `region` - A REPLICATION_ENABLED region, e.g. us-ashburn-1. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. - * `state` - The IDCS replicated region state - * `url` - Region agnostic domain URL. + * `regional_url` - Region-specific identity domain URL. + * `state` - The IDCS-replicated region state. + * `url` - Region-agnostic identity domain URL. * `state` - The current state. -* `time_created` - Date and time the domain was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` -* `type` - The type of the domain. -* `url` - Region agnostic domain URL. +* `time_created` - Date and time the identity domain was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` +* `type` - The type of the identity domain. +* `url` - Region-agnostic identity domain URL. diff --git a/website/docs/d/identity_dynamic_groups.html.markdown b/website/docs/d/identity_dynamic_groups.html.markdown index 4a3dc8d5cf2..3d09de809bf 100644 --- a/website/docs/d/identity_dynamic_groups.html.markdown +++ b/website/docs/d/identity_dynamic_groups.html.markdown @@ -50,10 +50,12 @@ The following attributes are exported: * `compartment_id` - The OCID of the tenancy containing the group. * `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` - The description you assign to the group. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `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 of the group. * `inactive_state` - The detailed status of INACTIVE lifecycleState. -* `matching_rule` - A rule string that defines which instance certificates will be matched. For syntax, see [Managing Dynamic Groups](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingdynamicgroups.htm). +* `matching_rule` - A rule string that defines which instance certificates will be matched. For syntax, see [Managing Dynamic Groups](https://docs.cloud.oracle.com/iaas/Content/Identity/dynamicgroups/managingdynamicgroups.htm). * `name` - The name you assign to the group during creation. The name must be unique across all groups in the tenancy and cannot be changed. * `state` - The group's current state. * `time_created` - Date and time the group was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` diff --git a/website/docs/d/identity_fault_domains.html.markdown b/website/docs/d/identity_fault_domains.html.markdown index ca6917f3a35..4346e557c68 100644 --- a/website/docs/d/identity_fault_domains.html.markdown +++ b/website/docs/d/identity_fault_domains.html.markdown @@ -29,7 +29,7 @@ data "oci_identity_fault_domains" "test_fault_domains" { The following arguments are supported: -* `availability_domain` - (Required) The name of the availibilityDomain. +* `availability_domain` - (Required) The name of the availabilityDomain. * `compartment_id` - (Required) The OCID of the compartment (remember that the tenancy is simply the root compartment). diff --git a/website/docs/d/identity_group.html.markdown b/website/docs/d/identity_group.html.markdown index 0f463c61868..edf40e1d2ba 100644 --- a/website/docs/d/identity_group.html.markdown +++ b/website/docs/d/identity_group.html.markdown @@ -40,6 +40,8 @@ The following attributes are exported: * `compartment_id` - The OCID of the tenancy containing the group. * `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` - The description you assign to the group. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `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 of the group. * `inactive_state` - The detailed status of INACTIVE lifecycleState. diff --git a/website/docs/d/identity_groups.html.markdown b/website/docs/d/identity_groups.html.markdown index 00991817ffd..7f2950714d9 100644 --- a/website/docs/d/identity_groups.html.markdown +++ b/website/docs/d/identity_groups.html.markdown @@ -50,6 +50,8 @@ The following attributes are exported: * `compartment_id` - The OCID of the tenancy containing the group. * `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` - The description you assign to the group. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `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 of the group. * `inactive_state` - The detailed status of INACTIVE lifecycleState. diff --git a/website/docs/d/identity_iam_work_request.html.markdown b/website/docs/d/identity_iam_work_request.html.markdown index c3ee24098a2..b19ded5d96f 100644 --- a/website/docs/d/identity_iam_work_request.html.markdown +++ b/website/docs/d/identity_iam_work_request.html.markdown @@ -10,11 +10,7 @@ description: |- # Data Source: oci_identity_iam_work_request This data source provides details about a specific Iam Work Request resource in Oracle Cloud Infrastructure Identity service. -Gets details on a specified IAM work request. For asynchronous operations in Identity and Access Management service, opc-work-request-id header values contains -iam work request id that can be provided in this API to track the current status of the operation. - -- If workrequest exists, returns 202 ACCEPTED -- If workrequest does not exist, returns 404 NOT FOUND +Gets the details of a specified IAM work request. The workRequestID is returned in the opc-work-request-id header for any asynchronous operation in the Identity and Access Management service. ## Example Usage @@ -46,7 +42,7 @@ The following attributes are exported: * `entity_type` - The resource type the work request is affects. * `entity_uri` - The URI path that the user can do a GET on to access the resource metadata. * `identifier` - An OCID of the resource that the work request affects. -* `status` - Status of the work request +* `status` - The status of the work request. * `time_accepted` - Date and time the work was accepted, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` * `time_finished` - Date and time the work completed, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` * `time_started` - Date and time the work started, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` diff --git a/website/docs/d/identity_iam_work_request_errors.html.markdown b/website/docs/d/identity_iam_work_request_errors.html.markdown index 26084d16422..e64b6b2de84 100644 --- a/website/docs/d/identity_iam_work_request_errors.html.markdown +++ b/website/docs/d/identity_iam_work_request_errors.html.markdown @@ -10,11 +10,7 @@ description: |- # Data Source: oci_identity_iam_work_request_errors This data source provides the list of Iam Work Request Errors in Oracle Cloud Infrastructure Identity service. -Gets error details for a specified IAM work request. For asynchronous operations in Identity and Access Management service, opc-work-request-id header values contains -iam work request id that can be provided in this API to track the current status of the operation. - -- If workrequest exists, returns 202 ACCEPTED -- If workrequest does not exist, returns 404 NOT FOUND +Gets error details for a specified IAM work request. The workRequestID is returned in the opc-work-request-id header for any asynchronous operation in the Identity and Access Management service. ## Example Usage diff --git a/website/docs/d/identity_iam_work_request_logs.html.markdown b/website/docs/d/identity_iam_work_request_logs.html.markdown index fe4a2a57d1c..96b9cd779d1 100644 --- a/website/docs/d/identity_iam_work_request_logs.html.markdown +++ b/website/docs/d/identity_iam_work_request_logs.html.markdown @@ -10,11 +10,7 @@ description: |- # Data Source: oci_identity_iam_work_request_logs This data source provides the list of Iam Work Request Logs in Oracle Cloud Infrastructure Identity service. -Gets logs for a specified IAM work request. For asynchronous operations in Identity and Access Management service, opc-work-request-id header values contains -iam work request id that can be provided in this API to track the current status of the operation. - -- If workrequest exists, returns 202 ACCEPTED -- If workrequest does not exist, returns 404 NOT FOUND +Gets logs for a specified IAM work request. The workRequestID is returned in the opc-work-request-id header for any asynchronous operation in the Identity and Access Management service. ## Example Usage diff --git a/website/docs/d/identity_iam_work_requests.html.markdown b/website/docs/d/identity_iam_work_requests.html.markdown index 334b0208774..d7d8c84be4b 100644 --- a/website/docs/d/identity_iam_work_requests.html.markdown +++ b/website/docs/d/identity_iam_work_requests.html.markdown @@ -10,10 +10,7 @@ description: |- # Data Source: oci_identity_iam_work_requests This data source provides the list of Iam Work Requests in Oracle Cloud Infrastructure Identity service. -List the IAM work requests in compartment - -- If IAM workrequest details are retrieved sucessfully, return 202 ACCEPTED. -- If any internal error occurs, return 500 INTERNAL SERVER ERROR. +Lists the IAM work requests in compartment. The workRequestID is returned in the opc-work-request-id header for any asynchronous operation in the Identity and Access Management service. ## Example Usage @@ -55,7 +52,7 @@ The following attributes are exported: * `entity_type` - The resource type the work request is affects. * `entity_uri` - The URI path that the user can do a GET on to access the resource metadata. * `identifier` - An OCID of the resource that the work request affects. -* `status` - Status of the work request +* `status` - The status of the work request. * `time_accepted` - Date and time the work was accepted, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` * `time_finished` - Date and time the work completed, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` * `time_started` - Date and time the work started, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` diff --git a/website/docs/d/identity_network_source.html.markdown b/website/docs/d/identity_network_source.html.markdown index 4394eb7fd27..c09a66317a9 100644 --- a/website/docs/d/identity_network_source.html.markdown +++ b/website/docs/d/identity_network_source.html.markdown @@ -41,8 +41,8 @@ The following attributes are exported: * `inactive_state` - The detailed status of INACTIVE lifecycleState. * `name` - The name you assign to the network source during creation. The name must be unique across the tenancy and cannot be changed. * `public_source_list` - A list of allowed public IP addresses and CIDR ranges. -* `services` - A list of services allowed to make on-behalf-of requests. These requests can have different source IPs than those specified in the network source. Currently, only `all` and `none` are supported. The default is `all`. +* `services` - -- The services attribute has no effect and is reserved for use by Oracle. -- * `state` - The network source object's current state. After creating a network source, make sure its `lifecycleState` changes from CREATING to ACTIVE before using it. -* `time_created` - Date and time the group was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` +* `time_created` - Date and time the network source was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` * `virtual_source_list` - A list of allowed VCN OCID and IP range pairs. Example:`"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]` diff --git a/website/docs/d/identity_network_sources.html.markdown b/website/docs/d/identity_network_sources.html.markdown index edc4873d605..880b9599ed4 100644 --- a/website/docs/d/identity_network_sources.html.markdown +++ b/website/docs/d/identity_network_sources.html.markdown @@ -55,8 +55,8 @@ The following attributes are exported: * `inactive_state` - The detailed status of INACTIVE lifecycleState. * `name` - The name you assign to the network source during creation. The name must be unique across the tenancy and cannot be changed. * `public_source_list` - A list of allowed public IP addresses and CIDR ranges. -* `services` - A list of services allowed to make on-behalf-of requests. These requests can have different source IPs than those specified in the network source. Currently, only `all` and `none` are supported. The default is `all`. +* `services` - -- The services attribute has no effect and is reserved for use by Oracle. -- * `state` - The network source object's current state. After creating a network source, make sure its `lifecycleState` changes from CREATING to ACTIVE before using it. -* `time_created` - Date and time the group was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` +* `time_created` - Date and time the network source was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` * `virtual_source_list` - A list of allowed VCN OCID and IP range pairs. Example:`"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]` diff --git a/website/docs/d/identity_smtp_credentials.html.markdown b/website/docs/d/identity_smtp_credentials.html.markdown index 178c8060f6f..b237a7aed17 100644 --- a/website/docs/d/identity_smtp_credentials.html.markdown +++ b/website/docs/d/identity_smtp_credentials.html.markdown @@ -41,6 +41,8 @@ The following attributes are exported: The following attributes are exported: * `description` - The description you assign to the SMTP credential. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `id` - The OCID of the SMTP credential. * `inactive_state` - The detailed status of INACTIVE lifecycleState. * `state` - The credential's current state. diff --git a/website/docs/d/identity_tag.html.markdown b/website/docs/d/identity_tag.html.markdown index 0a4b85cf92d..7202d596163 100644 --- a/website/docs/d/identity_tag.html.markdown +++ b/website/docs/d/identity_tag.html.markdown @@ -39,12 +39,12 @@ 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 of the tag definition. * `is_cost_tracking` - Indicates whether the tag is enabled for cost tracking. -* `is_retired` - Indicates whether the tag is retired. See [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm#Retiring). +* `is_retired` - Indicates whether the tag is retired. See [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/iaas/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). * `name` - The name assigned to the tag during creation. This is the tag key definition. The name must be unique within the tag namespace and cannot be changed. * `state` - The tag's current state. After creating a tag, make sure its `lifecycleState` is ACTIVE before using it. After retiring a tag, make sure its `lifecycleState` is INACTIVE before using it. If you delete a tag, you cannot delete another tag until the deleted tag's `lifecycleState` changes from DELETING to DELETED. * `tag_namespace_id` - The OCID of the namespace that contains the tag definition. * `time_created` - Date and time the tag was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` -* `validator` - Validates a definedTag value. Each validator performs validation steps in addition to the standard validation for definedTag values. For more information, see [Limits on Tags](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm#Limits). +* `validator` - Validates a definedTag value. Each validator performs validation steps in addition to the standard validation for definedTag values. For more information, see [Limits on Tags](https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm#limits). If you define a validator after a value has been set for a defined tag, then any updates that attempt to change the value must pass the additional validation defined by the current rule. Previously set values (even those that would fail the current validation) are not updated. You can still update other attributes to resources that contain a non-valid defined tag. diff --git a/website/docs/d/identity_tag_namespaces.html.markdown b/website/docs/d/identity_tag_namespaces.html.markdown index fefa8d3190f..8fc61b24178 100644 --- a/website/docs/d/identity_tag_namespaces.html.markdown +++ b/website/docs/d/identity_tag_namespaces.html.markdown @@ -50,7 +50,7 @@ The following attributes are exported: * `description` - The description you assign to the tag namespace. * `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 of the tag namespace. -* `is_retired` - Whether the tag namespace is retired. For more information, see [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm#Retiring). +* `is_retired` - Whether the tag namespace is retired. For more information, see [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/iaas/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). * `name` - The name of the tag namespace. It must be unique across all tag namespaces in the tenancy and cannot be changed. * `state` - The tagnamespace's current state. After creating a tagnamespace, make sure its `lifecycleState` is ACTIVE before using it. After retiring a tagnamespace, make sure its `lifecycleState` is INACTIVE before using it. * `time_created` - Date and time the tag namespace was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` diff --git a/website/docs/d/identity_tags.html.markdown b/website/docs/d/identity_tags.html.markdown index 64824b8d39c..c40827f05c6 100644 --- a/website/docs/d/identity_tags.html.markdown +++ b/website/docs/d/identity_tags.html.markdown @@ -48,12 +48,12 @@ 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 of the tag definition. * `is_cost_tracking` - Indicates whether the tag is enabled for cost tracking. -* `is_retired` - Indicates whether the tag is retired. See [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm#Retiring). +* `is_retired` - Indicates whether the tag is retired. See [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/iaas/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). * `name` - The name assigned to the tag during creation. This is the tag key definition. The name must be unique within the tag namespace and cannot be changed. * `state` - The tag's current state. After creating a tag, make sure its `lifecycleState` is ACTIVE before using it. After retiring a tag, make sure its `lifecycleState` is INACTIVE before using it. If you delete a tag, you cannot delete another tag until the deleted tag's `lifecycleState` changes from DELETING to DELETED. * `tag_namespace_id` - The OCID of the namespace that contains the tag definition. * `time_created` - Date and time the tag was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` -* `validator` - Validates a definedTag value. Each validator performs validation steps in addition to the standard validation for definedTag values. For more information, see [Limits on Tags](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm#Limits). +* `validator` - Validates a definedTag value. Each validator performs validation steps in addition to the standard validation for definedTag values. For more information, see [Limits on Tags](https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm#limits). If you define a validator after a value has been set for a defined tag, then any updates that attempt to change the value must pass the additional validation defined by the current rule. Previously set values (even those that would fail the current validation) are not updated. You can still update other attributes to resources that contain a non-valid defined tag. diff --git a/website/docs/d/identity_user.html.markdown b/website/docs/d/identity_user.html.markdown index 5e669249376..1ebf48be5dc 100644 --- a/website/docs/d/identity_user.html.markdown +++ b/website/docs/d/identity_user.html.markdown @@ -44,7 +44,11 @@ The following attributes are exported: * `db_user_name` - DB username of the DB credential. Has to be unique across the tenancy. * `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` - The description you assign to the user. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `email` - The email address you assign to the user. The email address must be unique across all users in the tenancy. + + (For tenancies that support identity domains) The email address is required unless the requirement is disabled at the tenancy level. * `email_verified` - Whether the email address has been validated. * `external_identifier` - Identifier of the user in the identity provider * `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"}` diff --git a/website/docs/d/identity_users.html.markdown b/website/docs/d/identity_users.html.markdown index c9e1358632f..431b2c556e1 100644 --- a/website/docs/d/identity_users.html.markdown +++ b/website/docs/d/identity_users.html.markdown @@ -63,7 +63,11 @@ The following attributes are exported: * `db_user_name` - DB username of the DB credential. Has to be unique across the tenancy. * `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` - The description you assign to the user. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `email` - The email address you assign to the user. The email address must be unique across all users in the tenancy. + + (For tenancies that support identity domains) The email address is required unless the requirement is disabled at the tenancy level. * `email_verified` - Whether the email address has been validated. * `external_identifier` - Identifier of the user in the identity provider * `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"}` diff --git a/website/docs/guides/resource_discovery.html.markdown b/website/docs/guides/resource_discovery.html.markdown index 3410a1ec192..de021da61e5 100644 --- a/website/docs/guides/resource_discovery.html.markdown +++ b/website/docs/guides/resource_discovery.html.markdown @@ -611,6 +611,7 @@ dataflow * oci\_dataflow\_application * oci\_dataflow\_private\_endpoint * oci\_dataflow\_run\_statement +* oci\_dataflow\_pool dataintegration diff --git a/website/docs/r/data_labeling_service_dataset.html.markdown b/website/docs/r/data_labeling_service_dataset.html.markdown index d607e21beb2..e7336e6d3b9 100644 --- a/website/docs/r/data_labeling_service_dataset.html.markdown +++ b/website/docs/r/data_labeling_service_dataset.html.markdown @@ -61,6 +61,23 @@ resource "oci_data_labeling_service_dataset" "test_dataset" { description = var.dataset_description display_name = var.dataset_display_name freeform_tags = var.dataset_freeform_tags + initial_import_dataset_configuration { + #Required + import_format { + #Required + name = var.dataset_initial_import_dataset_configuration_import_format_name + + #Optional + version = var.dataset_initial_import_dataset_configuration_import_format_version + } + import_metadata_path { + #Required + bucket = var.dataset_initial_import_dataset_configuration_import_metadata_path_bucket + namespace = var.dataset_initial_import_dataset_configuration_import_metadata_path_namespace + path = var.dataset_initial_import_dataset_configuration_import_metadata_path_path + source_type = var.dataset_initial_import_dataset_configuration_import_metadata_path_source_type + } + } initial_record_generation_configuration { } labeling_instructions = var.dataset_labeling_instructions @@ -90,7 +107,16 @@ The following arguments are supported: * `defined_tags` - (Optional) (Updatable) The defined tags for this resource. Each key is predefined and scoped to a namespace. For example: `{"foo-namespace": {"bar-key": "value"}}` * `description` - (Optional) (Updatable) A user provided description of the dataset * `display_name` - (Optional) (Updatable) A user-friendly display name for the resource. -* `freeform_tags` - (Optional) (Updatable) A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: `{"bar-key": "value"}` +* `freeform_tags` - (Optional) (Updatable) A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: `{"bar-key": "value"}` +* `initial_import_dataset_configuration` - (Optional) Initial import dataset configuration. Allows user to create dataset from existing dataset files. + * `import_format` - (Required) File format details used for importing dataset + * `name` - (Required) Name of import format + * `version` - (Optional) Version of import format + * `import_metadata_path` - (Required) Object storage path for the metadata file + * `bucket` - (Required) Bucket name + * `namespace` - (Required) Bucket namespace name + * `path` - (Required) Path for the metadata file. + * `source_type` - (Required) The type of data source. OBJECT_STORAGE - The source details for an object storage bucket. * `initial_record_generation_configuration` - (Optional) The initial generate records configuration. It generates records from the dataset's source. * `label_set` - (Required) An ordered collection of labels that are unique by name. * `items` - (Optional) An ordered collection of labels that are unique by name. @@ -105,6 +131,7 @@ Any change to a property that does not support update will force the destruction The following attributes are exported: +* `additional_properties` - A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: `{"bar-key": "value"}` * `annotation_format` - The annotation format name required for labeling records. * `compartment_id` - The OCID of the compartment of the resource. * `dataset_format_details` - It specifies how to process the data. Supported formats include DOCUMENT, IMAGE, and TEXT. @@ -126,12 +153,22 @@ The following attributes are exported: * `display_name` - A user-friendly display name for the resource. * `freeform_tags` - A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example: `{"bar-key": "value"}` * `id` - The OCID of the Dataset. +* `initial_import_dataset_configuration` - Initial import dataset configuration. Allows user to create dataset from existing dataset files. + * `import_format` - File format details used for importing dataset + * `name` - Name of import format + * `version` - Version of import format + * `import_metadata_path` - Object storage path for the metadata file + * `bucket` - Bucket name + * `namespace` - Bucket namespace name + * `path` - Path for the metadata file. + * `source_type` - The type of data source. OBJECT_STORAGE - The source details for an object storage bucket. * `initial_record_generation_configuration` - The initial generate records configuration. It generates records from the dataset's source. * `label_set` - An ordered collection of labels that are unique by name. * `items` - An ordered collection of labels that are unique by name. * `name` - An unique name for a label within its dataset. * `labeling_instructions` - The labeling instructions for human labelers in rich text format * `lifecycle_details` - A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in FAILED or NEEDS_ATTENTION state. +* `lifecycle_substate` - The sub-state of the dataset. IMPORT_DATASET - The dataset is being imported. * `state` - The state of a dataset. CREATING - The dataset is being created. It will transition to ACTIVE when it is ready for labeling. ACTIVE - The dataset is ready for labeling. UPDATING - The dataset is being updated. It and its related resources may be unavailable for other updates until it returns to ACTIVE. NEEDS_ATTENTION - A dataset updation operation has failed due to validation or other errors and needs attention. DELETING - The dataset and its related resources are being deleted. DELETED - The dataset has been deleted and is no longer available. FAILED - The dataset has failed due to validation or other errors. * `time_created` - The date and time the resource was created, in the timestamp format defined by RFC3339. * `time_updated` - The date and time the resource was last updated, in the timestamp format defined by RFC3339. diff --git a/website/docs/r/database_autonomous_database.html.markdown b/website/docs/r/database_autonomous_database.html.markdown index 0029d259683..3c4d6413569 100644 --- a/website/docs/r/database_autonomous_database.html.markdown +++ b/website/docs/r/database_autonomous_database.html.markdown @@ -123,12 +123,12 @@ The following arguments are supported: **Notes** * This parameter is only supported for dedicated Exadata infrastructure. - * This parameter cannot be used with the `dataStorageSizeInTBs` parameter. -* `data_storage_size_in_tbs` - (Optional) (Updatable) The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. For Autonomous Databases on dedicated Exadata infrastructure, the maximum storage value is determined by the infrastructure shape. See [Characteristics of Infrastructure Shapes](https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + * This parameter cannot be used with the `dataStorageSizeInTBs` parameter. +* `data_storage_size_in_tbs` - (Optional) (Updatable) The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed. For Autonomous Databases on dedicated Exadata infrastructure, the maximum storage value is determined by the infrastructure shape. See [Characteristics of Infrastructure Shapes](https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. A full Exadata service is allocated when the Autonomous Database size is set to the upper limit (384 TB). **Note:** This parameter cannot be used with the `dataStorageSizeInGBs` parameter. This input is ignored for Always Free resources. * `database_edition` - (Optional) (Updatable) The Oracle Database Edition that applies to the Autonomous databases. -* `db_name` - (Required) (Updatable) The database name. The name must begin with an alphabetic character and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy. +* `db_name` - (Required) (Updatable) Specify the database name; it must consist of letters and numbers only. The maximum length is 30 characters. The same database name cannot be used for multiple Autonomous Databases in the same tenancy in the same region. * `db_version` - (Optional) (Updatable) A valid Oracle Database version for Autonomous Database.`db_workload` AJD and APEX are only supported for `db_version` `19c` and above. * `db_workload` - (Optional) (Updatable) The Autonomous Database workload type. The following values are valid: * OLTP - indicates an Autonomous Transaction Processing database @@ -198,6 +198,8 @@ The following arguments are supported: For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. + + This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. * `state` - (Optional) (Updatable) The current state of the Autonomous Database. Could be set to AVAILABLE or STOPPED * `subnet_id` - (Optional) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet the resource is associated with. @@ -218,6 +220,8 @@ The following arguments are supported: This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. To remove all whitelisted IPs, set the field to a list with an empty string `[""]`. + This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. To remove all whitelisted IPs, set the field to a list with an empty string `[""]`. + * `switchover_to` - (Optional) It is applicable only when `is_data_guard_enabled` is true. Could be set to `PRIMARY` or `STANDBY`. Default value is `PRIMARY`. * `switchover_to_remote_peer_id` - (Optional) (Updatable) It is applicable only when `dataguard_region_type` and `role` are set, and `is_dedicated` is false. It takes the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the remote peer to switchover to. * `rotate_key_trigger` - (Optional) (Updatable) An optional property when flipped triggers rotation of KMS key. It is only applicable on dedicated databases i.e. where `is_dedicated` is true. @@ -390,6 +394,8 @@ The following attributes are exported: * `refreshable_status` - The refresh status of the clone. REFRESHING indicates that the clone is currently being refreshed with data from the source Autonomous Database. * `remote_disaster_recovery_configuration` - Configurations of a Disaster Recovery. * `disaster_recovery_type` - Indicates the disaster recovery (DR) type of the Shared Autonomous Database. Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. + * `is_snapshot_standby` - Indicates if user wants to convert to a snapshot standby. For example, true would set a standby database to snapshot standby database. False would set a snapshot standby database back to regular standby database. + * `time_snapshot_standby_enabled_till` - Time and date stored as an RFC 3339 formatted timestamp string. For example, 2022-01-01T12:00:00.000Z would set a limit for the snapshot standby to be converted back to a cross-region standby database. * `role` - The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. * `scheduled_operations` - The list of scheduled operations. diff --git a/website/docs/r/database_db_home.html.markdown b/website/docs/r/database_db_home.html.markdown index 551dc273c17..d3f4c6dd50f 100644 --- a/website/docs/r/database_db_home.html.markdown +++ b/website/docs/r/database_db_home.html.markdown @@ -126,7 +126,9 @@ The following arguments are supported: * `database_software_image_id` - (Optional) The database software image [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) * `db_system_id` - (Required when source=DATABASE | DB_BACKUP | NONE) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. * `db_version` - (Applicable when source=NONE | VM_CLUSTER_NEW) A valid Oracle Database version. To get a list of supported versions, use the [ListDbVersions](https://docs.cloud.oracle.com/iaas/api/#/en/database/latest/DbVersionSummary/ListDbVersions) operation. -* `defined_tags` - (Optional Applicable when source=VM_CLUSTER_NEW) (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). + + This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, privateEndpointLabel, nsgIds, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. +* `defined_tags` - (Optional Applicable when source=VM_CLUSTER_NEW) (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` - (Optional) The user-provided name of the Database Home. * `is_desupported_version` - (Optional) If true, the customer acknowledges that the specified Oracle Database software is an older release that is not currently supported by OCI. * `kms_key_id` - (Optional) The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. diff --git a/website/docs/r/dataflow_application.html.markdown b/website/docs/r/dataflow_application.html.markdown index da084b9e3e2..e779bdb7d79 100644 --- a/website/docs/r/dataflow_application.html.markdown +++ b/website/docs/r/dataflow_application.html.markdown @@ -62,6 +62,7 @@ resource "oci_dataflow_application" "test_application" { name = var.application_parameters_name value = var.application_parameters_value } + pool_id = oci_dataflow_pool.test_pool.id private_endpoint_id = oci_dataflow_private_endpoint.test_private_endpoint.id type = var.application_type warehouse_bucket_uri = var.application_warehouse_bucket_uri @@ -103,6 +104,7 @@ The following arguments are supported: * `parameters` - (Optional) (Updatable) An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] * `name` - (Required) (Updatable) The name of the parameter. It must be a string of one or more word characters (a-z, A-Z, 0-9, _). Examples: "iterations", "input_file" * `value` - (Required) (Updatable) The value of the parameter. It must be a string of 0 or more characters of any kind. Examples: "" (empty string), "10", "mydata.xml", "${x}" +* `pool_id` - (Optional) (Updatable) The OCID of a pool. Unique Id to indentify a dataflow pool resource. * `private_endpoint_id` - (Optional) (Updatable) The OCID of a private endpoint. * `spark_version` - (Required) (Updatable) The Spark version utilized to run the application. * `type` - (Optional) The Spark application processing type. @@ -150,11 +152,12 @@ The following attributes are exported: * `parameters` - An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] * `name` - The name of the parameter. It must be a string of one or more word characters (a-z, A-Z, 0-9, _). Examples: "iterations", "input_file" * `value` - The value of the parameter. It must be a string of 0 or more characters of any kind. Examples: "" (empty string), "10", "mydata.xml", "${x}" +* `pool_id` - The OCID of a pool. Unique Id to indentify a dataflow pool resource. * `private_endpoint_id` - The OCID of a private endpoint. * `spark_version` - The Spark version utilized to run the application. * `state` - The current state of this application. -* `time_created` - The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` -* `time_updated` - The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_updated` - The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` * `type` - The Spark application processing type. * `warehouse_bucket_uri` - An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat. diff --git a/website/docs/r/dataflow_invoke_run.html.markdown b/website/docs/r/dataflow_invoke_run.html.markdown index c4789c6e149..65ec5a564bf 100644 --- a/website/docs/r/dataflow_invoke_run.html.markdown +++ b/website/docs/r/dataflow_invoke_run.html.markdown @@ -58,6 +58,7 @@ resource "oci_dataflow_invoke_run" "test_invoke_run" { name = var.invoke_run_parameters_name value = var.invoke_run_parameters_value } + pool_id = oci_dataflow_pool.test_pool.id spark_version = var.invoke_run_spark_version type = var.invoke_run_type warehouse_bucket_uri = var.invoke_run_warehouse_bucket_uri @@ -97,6 +98,7 @@ The following arguments are supported: * `parameters` - (Optional) An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] * `name` - (Required) The name of the parameter. It must be a string of one or more word characters (a-z, A-Z, 0-9, _). Examples: "iterations", "input_file" * `value` - (Required) The value of the parameter. It must be a string of 0 or more characters of any kind. Examples: "" (empty string), "10", "mydata.xml", "${x}" +* `pool_id` - (Optional) The OCID of a pool. Unique Id to indentify a dataflow pool resource. * `spark_version` - (Optional) The Spark version utilized to run the application. This value may be set if applicationId is not since the Spark version will be taken from the associated application. * `type` - (Optional) The Spark application processing type. * `warehouse_bucket_uri` - (Optional) An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat. @@ -147,6 +149,7 @@ The following attributes are exported: * `parameters` - An array of name/value pairs used to fill placeholders found in properties like `Application.arguments`. The name must be a string of one or more word characters (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. Example: [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ] * `name` - The name of the parameter. It must be a string of one or more word characters (a-z, A-Z, 0-9, _). Examples: "iterations", "input_file" * `value` - The value of the parameter. It must be a string of 0 or more characters of any kind. Examples: "" (empty string), "10", "mydata.xml", "${x}" +* `pool_id` - The OCID of a pool. Unique Id to indentify a dataflow pool resource. * `private_endpoint_dns_zones` - An array of DNS zone names. Example: `[ "app.examplecorp.com", "app.examplecorp2.com" ]` * `private_endpoint_id` - The OCID of a private endpoint. * `private_endpoint_max_host_count` - The maximum number of hosts to be accessed through the private endpoint. This value is used to calculate the relevant CIDR block and should be a multiple of 256. If the value is not a multiple of 256, it is rounded up to the next multiple of 256. For example, 300 is rounded up to 512. @@ -155,8 +158,8 @@ The following attributes are exported: * `run_duration_in_milliseconds` - The duration of the run in milliseconds. * `spark_version` - The Spark version utilized to run the application. * `state` - The current state of this run. -* `time_created` - The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` -* `time_updated` - The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_updated` - The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` * `total_ocpu` - The total number of oCPU requested by the run. * `type` - The Spark application processing type. * `warehouse_bucket_uri` - An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat. diff --git a/website/docs/r/dataflow_pool.html.markdown b/website/docs/r/dataflow_pool.html.markdown new file mode 100644 index 00000000000..dc44588efd6 --- /dev/null +++ b/website/docs/r/dataflow_pool.html.markdown @@ -0,0 +1,132 @@ +--- +subcategory: "Data Flow" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_dataflow_pool" +sidebar_current: "docs-oci-resource-dataflow-pool" +description: |- + Provides the Pool resource in Oracle Cloud Infrastructure Data Flow service +--- + +# oci_dataflow_pool +This resource provides the Pool resource in Oracle Cloud Infrastructure Data Flow service. + +Create a pool to be used by dataflow runs or applications. + + +## Example Usage + +```hcl +resource "oci_dataflow_pool" "test_pool" { + #Required + compartment_id = var.compartment_id + configurations { + + #Optional + max = var.pool_configurations_max + min = var.pool_configurations_min + shape = var.pool_configurations_shape + shape_config { + + #Optional + memory_in_gbs = var.pool_configurations_shape_config_memory_in_gbs + ocpus = var.pool_configurations_shape_config_ocpus + } + } + display_name = var.pool_display_name + + #Optional + defined_tags = {"Operations.CostCenter"= "42"} + description = var.pool_description + freeform_tags = {"Department"= "Finance"} + idle_timeout_in_minutes = var.pool_idle_timeout_in_minutes + schedules { + + #Optional + day_of_week = var.pool_schedules_day_of_week + start_time = var.pool_schedules_start_time + stop_time = var.pool_schedules_stop_time + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Required) (Updatable) The OCID of a compartment. +* `configurations` - (Required) (Updatable) List of PoolConfig items. + * `max` - (Optional) (Updatable) Maximum number of compute instances in the pool for a given compute shape. + * `min` - (Optional) (Updatable) Minimum number of compute instances in the pool for a given compute shape. + * `shape` - (Optional) (Updatable) The compute shape of the resources you would like to provision. + * `shape_config` - (Optional) (Updatable) This is used to configure the shape of the driver or executor if a flexible shape is used. + * `memory_in_gbs` - (Optional) (Updatable) The amount of memory used for the driver or executors. + * `ocpus` - (Optional) (Updatable) The total number of OCPUs used for the driver or executors. See [here](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Shape/) for details. +* `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"}` +* `description` - (Optional) (Updatable) A user-friendly description. Avoid entering confidential information. +* `display_name` - (Required) (Updatable) A user-friendly name. It does not have to be unique. 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `idle_timeout_in_minutes` - (Optional) (Updatable) Optional timeout value in minutes used to auto stop Pools. A Pool will be auto stopped after inactivity for this amount of time period. If value not set, pool will not be auto stopped auto. +* `schedules` - (Optional) (Updatable) A list of schedules for pool to auto start and stop. + * `day_of_week` - (Optional) (Updatable) Day of the week SUN-SAT + * `start_time` - (Optional) (Updatable) Hour of the day to start or stop pool. + * `stop_time` - (Optional) (Updatable) Hour of the day to stop the pool. +* `state` - (Optional) (Updatable) The target state for the Pool. Could be set to `ACTIVE` or `DELETED`. + + +** 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: + +* `compartment_id` - The OCID of a compartment. +* `configurations` - List of PoolConfig items. + * `max` - Maximum number of compute instances in the pool for a given compute shape. + * `min` - Minimum number of compute instances in the pool for a given compute shape. + * `shape` - The compute shape of the resources you would like to provision. + * `shape_config` - This is used to configure the shape of the driver or executor if a flexible shape is used. + * `memory_in_gbs` - The amount of memory used for the driver or executors. + * `ocpus` - The total number of OCPUs used for the driver or executors. See [here](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Shape/) for details. +* `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` - A user-friendly description. Avoid entering confidential information. +* `display_name` - A user-friendly name. It does not have to be unique. 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `id` - The OCID of a pool. Unique Id to indentify a dataflow pool resource. +* `idle_timeout_in_minutes` - Optional timeout value in minutes used to auto stop Pools. A Pool will be auto stopped after inactivity for this amount of time period. If value not set, pool will not be auto stopped auto. +* `lifecycle_details` - The detailed messages about the lifecycle state. +* `owner_principal_id` - The OCID of the user who created the resource. +* `owner_user_name` - The username of the user who created the resource. If the username of the owner does not exist, `null` will be returned and the caller should refer to the ownerPrincipalId value instead. +* `pool_metrics` - A collection of metrics related to a particular pool. + * `active_runs_count` - The number of runs that are currently running that are using this pool. + * `actively_used_node_count` - A count of the nodes that are currently being used for each shape in this pool. + * `logical_shape` - The compute shape of the nodes that the count is for. + * `pool_count` - The node count of this compute shape. + * `time_last_metrics_updated` - The last time the mertics were updated for this. + * `time_last_started` - The last time this pool was started. + * `time_last_stopped` - The last time this pool was stopped. + * `time_last_used` - The last time a run used this pool. +* `schedules` - A list of schedules for pool to auto start and stop. + * `day_of_week` - Day of the week SUN-SAT + * `start_time` - Hour of the day to start or stop pool. + * `stop_time` - Hour of the day to stop the pool. +* `state` - The current state of this pool. +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_updated` - The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21: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 Pool + * `update` - (Defaults to 20 minutes), when updating the Pool + * `delete` - (Defaults to 20 minutes), when destroying the Pool + + +## Import + +Pools can be imported using the `id`, e.g. + +``` +$ terraform import oci_dataflow_pool.test_pool "id" +``` + diff --git a/website/docs/r/dataflow_private_endpoint.html.markdown b/website/docs/r/dataflow_private_endpoint.html.markdown index a6a56d19a58..8c7aa971a79 100644 --- a/website/docs/r/dataflow_private_endpoint.html.markdown +++ b/website/docs/r/dataflow_private_endpoint.html.markdown @@ -80,8 +80,8 @@ The following attributes are exported: * `port` - The port number of the FQDN * `state` - The current state of this private endpoint. * `subnet_id` - The OCID of a subnet. -* `time_created` - The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` -* `time_updated` - The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_updated` - The date and time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` ## Timeouts diff --git a/website/docs/r/dataflow_run_statement.html.markdown b/website/docs/r/dataflow_run_statement.html.markdown index d5ff4c072a5..ee27ea3b3b6 100644 --- a/website/docs/r/dataflow_run_statement.html.markdown +++ b/website/docs/r/dataflow_run_statement.html.markdown @@ -52,7 +52,7 @@ The following attributes are exported: * `run_id` - The ID of a run. * `state` - The current state of this statement. * `time_completed` - The date and time a statement execution was completed, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2022-05-31T21:10:29.600Z` -* `time_created` - The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` +* `time_created` - The date and time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-04-03T21:10:29.600Z` ## Timeouts diff --git a/website/docs/r/functions_application.html.markdown b/website/docs/r/functions_application.html.markdown index 0dd05fb0362..68e8d19c496 100644 --- a/website/docs/r/functions_application.html.markdown +++ b/website/docs/r/functions_application.html.markdown @@ -38,6 +38,7 @@ resource "oci_functions_application" "test_application" { kms_key_id = oci_kms_key.test_key.id } } + shape = var.application_shape syslog_url = var.application_syslog_url trace_config { @@ -60,10 +61,11 @@ The following arguments are supported: * `display_name` - (Required) The display name of the application. The display name must be unique within the compartment containing the application. 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `network_security_group_ids` - (Optional) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the Network Security Groups to add the application to. -* `image_policy_config` - (Optional) (Updatable) Define the image signature verification policy for an application. +* `image_policy_config` - (Optional) (Updatable) Define the image signature verification policy for an application. * `is_policy_enabled` - (Required) (Updatable) Define if image signature verification policy is enabled for the application. * `key_details` - (Optional) (Updatable) A list of KMS key details. * `kms_key_id` - (Required) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the KMS key that will be used to verify the image signature. +* `shape` - (Optional) Valid values are `GENERIC_X86`, `GENERIC_ARM` and `GENERIC_X86_ARM`. Default is `GENERIC_X86`. Setting this to `GENERIC_X86`, will run the functions in the application on X86 processor architecture. Setting this to `GENERIC_ARM`, will run the functions in the application on ARM processor architecture. When set to `GENERIC_X86_ARM`, functions in the application are run on either X86 or ARM processor architecture. Accepted values are: `GENERIC_X86`, `GENERIC_ARM`, `GENERIC_X86_ARM` * `subnet_ids` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the subnets in which to run functions in the application. * `syslog_url` - (Optional) (Updatable) A syslog URL to which to send all function logs. Supports tcp, udp, and tcp+tls. The syslog URL must be reachable from all of the subnets configured for the application. Note: If you enable the Oracle Cloud Infrastructure Logging service for this application, the syslogUrl value is ignored. Function logs are sent to the Oracle Cloud Infrastructure Logging service, and not to the syslog URL. Example: `tcp://logserver.myserver:1234` * `trace_config` - (Optional) (Updatable) Define the tracing configuration for an application. @@ -87,10 +89,11 @@ 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 application. * `network_security_group_ids` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the Network Security Groups to add the application to. -* `image_policy_config` - Define the image signature verification policy for an application. +* `image_policy_config` - Define the image signature verification policy for an application. * `is_policy_enabled` - Define if image signature verification policy is enabled for the application. * `key_details` - A list of KMS key details. * `kms_key_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the KMS key that will be used to verify the image signature. +* `shape` - Valid values are `GENERIC_X86`, `GENERIC_ARM` and `GENERIC_X86_ARM`. Default is `GENERIC_X86`. Setting this to `GENERIC_X86`, will run the functions in the application on X86 processor architecture. Setting this to `GENERIC_ARM`, will run the functions in the application on ARM processor architecture. When set to `GENERIC_X86_ARM`, functions in the application are run on either X86 or ARM processor architecture. Accepted values are: `GENERIC_X86`, `GENERIC_ARM`, `GENERIC_X86_ARM` * `state` - The current state of the application. * `subnet_ids` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s of the subnets in which to run functions in the application. * `syslog_url` - A syslog URL to which to send all function logs. Supports tcp, udp, and tcp+tls. The syslog URL must be reachable from all of the subnets configured for the application. Note: If you enable the Oracle Cloud Infrastructure Logging service for this application, the syslogUrl value is ignored. Function logs are sent to the Oracle Cloud Infrastructure Logging service, and not to the syslog URL. Example: `tcp://logserver.myserver:1234` diff --git a/website/docs/r/functions_function.html.markdown b/website/docs/r/functions_function.html.markdown index 1f98641cc04..4fa0394752f 100644 --- a/website/docs/r/functions_function.html.markdown +++ b/website/docs/r/functions_function.html.markdown @@ -62,8 +62,8 @@ The following arguments are supported: * `image` - (Optional) (Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example: `phx.ocir.io/ten/functions/function:0.0.1` * `image_digest` - (Optional) (Updatable) The image digest for the version of the image that will be pulled when invoking this function. If no value is specified, the digest currently associated with the image in the Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example: `sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7` * `memory_in_mbs` - (Required) (Updatable) Maximum usable memory for the function (MiB). -* `provisioned_concurrency_config` - (Optional) (Updatable) Define the strategy for provisioned concurrency for the function. - * `count` - (Required when strategy=CONSTANT) (Updatable) +* `provisioned_concurrency_config` - (Optional) (Updatable) Define the strategy for provisioned concurrency for the function. + * `count` - (Required when strategy=CONSTANT) (Updatable) Configuration specifying a constant amount of provisioned concurrency. * `strategy` - (Required) (Updatable) The strategy for provisioned concurrency to be used. * `source_details` - (Optional) The source details for the Function. The function can be created from various sources. * `pbf_listing_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PbfListing this function is sourced from. @@ -93,9 +93,10 @@ The following attributes are exported: * `image_digest` - The image digest for the version of the image that will be pulled when invoking this function. If no value is specified, the digest currently associated with the image in the Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example: `sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7` * `invoke_endpoint` - The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached. * `memory_in_mbs` - Maximum usable memory for the function (MiB). -* `provisioned_concurrency_config` - Define the strategy for provisioned concurrency for the function. - * `count` - +* `provisioned_concurrency_config` - Define the strategy for provisioned concurrency for the function. + * `count` - Configuration specifying a constant amount of provisioned concurrency. * `strategy` - The strategy for provisioned concurrency to be used. +* `shape` - The processor shape (`GENERIC_X86`/`GENERIC_ARM`) on which to run functions in the application, extracted from the image manifest. * `source_details` - The source details for the Function. The function can be created from various sources. * `pbf_listing_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PbfListing this function is sourced from. * `source_type` - Type of the Function Source. Possible values: PRE_BUILT_FUNCTIONS. diff --git a/website/docs/r/identity_auth_token.html.markdown b/website/docs/r/identity_auth_token.html.markdown index 65f9c514b37..a0b684af46d 100644 --- a/website/docs/r/identity_auth_token.html.markdown +++ b/website/docs/r/identity_auth_token.html.markdown @@ -11,7 +11,7 @@ description: |- This resource provides the Auth Token resource in Oracle Cloud Infrastructure Identity service. Creates a new auth token for the specified user. For information about what auth tokens are for, see -[Managing User Credentials](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcredentials.htm). +[Managing User Credentials](https://docs.cloud.oracle.com/iaas/Content/Identity/access/managing-user-credentials.htm). You must specify a *description* for the auth token (although it can be an empty string). It does not have to be unique, and you can change it anytime with @@ -36,7 +36,9 @@ resource "oci_identity_auth_token" "test_auth_token" { The following arguments are supported: -* `description` - (Required) (Updatable) The description you assign to the auth token during creation. Does not have to be unique, and it's changeable. +* `description` - (Required) (Updatable) The description you assign to the auth token during creation. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `user_id` - (Required) The OCID of the user. @@ -48,6 +50,8 @@ Any change to a property that does not support update will force the destruction The following attributes are exported: * `description` - The description you assign to the auth token. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `id` - The OCID of the auth token. * `inactive_state` - The detailed status of INACTIVE lifecycleState. * `state` - The token's current state. diff --git a/website/docs/r/identity_authentication_policy.html.markdown b/website/docs/r/identity_authentication_policy.html.markdown index 8d7a097b41f..871e592ee53 100644 --- a/website/docs/r/identity_authentication_policy.html.markdown +++ b/website/docs/r/identity_authentication_policy.html.markdown @@ -10,7 +10,7 @@ description: |- # oci_identity_authentication_policy This resource provides the Authentication Policy resource in Oracle Cloud Infrastructure Identity service. -Updates authentication policy for the specified tenancy +Updates authentication policy for the specified tenancy. ## Example Usage @@ -44,7 +44,7 @@ resource "oci_identity_authentication_policy" "test_authentication_policy" { The following arguments are supported: * `compartment_id` - (Required) The OCID of the compartment. -* `network_policy` - (Optional) (Updatable) Network policy, Consists of a list of Network Source ids. +* `network_policy` - (Optional) (Updatable) Network policy, which consists of a list of network source IDs. * `network_source_ids` - (Optional) (Updatable) Network Source ids * `password_policy` - (Optional) (Updatable) Password policy, currently set for the given compartment. * `is_lowercase_characters_required` - (Optional) (Updatable) At least one lower case character required. @@ -63,7 +63,7 @@ Any change to a property that does not support update will force the destruction The following attributes are exported: * `compartment_id` - Compartment OCID. -* `network_policy` - Network policy, Consists of a list of Network Source ids. +* `network_policy` - Network policy, which consists of a list of network source IDs. * `network_source_ids` - Network Source ids * `password_policy` - Password policy, currently set for the given compartment. * `is_lowercase_characters_required` - At least one lower case character required. diff --git a/website/docs/r/identity_compartment.html.markdown b/website/docs/r/identity_compartment.html.markdown index 5af313630f7..fe88db81a1c 100644 --- a/website/docs/r/identity_compartment.html.markdown +++ b/website/docs/r/identity_compartment.html.markdown @@ -23,7 +23,7 @@ is simply the root compartment. For information about OCIDs, see You must also specify a *name* for the compartment, which must be unique across all compartments in your tenancy. You can use this name or the OCID when writing policies that apply to the compartment. For more information about policies, see -[How Policies Work](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policies.htm). +[How Policies Work](https://docs.cloud.oracle.com/iaas/Content/Identity/policieshow/how-policies-work.htm). You must also specify a *description* for the compartment (although it can be an empty string). It does not have to be unique, and you can change it anytime with diff --git a/website/docs/r/identity_customer_secret_key.html.markdown b/website/docs/r/identity_customer_secret_key.html.markdown index 0a128d50ae2..ca7d13c70d5 100644 --- a/website/docs/r/identity_customer_secret_key.html.markdown +++ b/website/docs/r/identity_customer_secret_key.html.markdown @@ -12,7 +12,7 @@ This resource provides the Customer Secret Key resource in Oracle Cloud Infrastr Creates a new secret key for the specified user. Secret keys are used for authentication with the Object Storage Service's Amazon S3 compatible API. The secret key consists of an Access Key/Secret Key pair. For information, see -[Managing User Credentials](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcredentials.htm). +[Managing User Credentials](https://docs.cloud.oracle.com/iaas/Content/Identity/access/managing-user-credentials.htm). You must specify a *description* for the secret key (although it can be an empty string). It does not have to be unique, and you can change it anytime with diff --git a/website/docs/r/identity_db_credential.html.markdown b/website/docs/r/identity_db_credential.html.markdown index 2973b9e41ef..017a1eb5627 100644 --- a/website/docs/r/identity_db_credential.html.markdown +++ b/website/docs/r/identity_db_credential.html.markdown @@ -28,7 +28,9 @@ resource "oci_identity_db_credential" "test_db_credential" { The following arguments are supported: -* `description` - (Required) The description you assign to the DB credentials during creation. +* `description` - (Required) The description you assign to the DB credentials during creation. + + (For tenancies that support identity domains) You can have an empty description. * `password` - (Required) The password for the DB credentials during creation. * `user_id` - (Required) The OCID of the user. @@ -41,6 +43,8 @@ Any change to a property that does not support update will force the destruction The following attributes are exported: * `description` - The description you assign to the DB credential. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `id` - The OCID of the DB credential. * `lifecycle_details` - The detailed status of INACTIVE lifecycleState. * `state` - The credential's current state. After creating a DB credential, make sure its `lifecycleState` changes from CREATING to ACTIVE before using it. diff --git a/website/docs/r/identity_domain.html.markdown b/website/docs/r/identity_domain.html.markdown index 28de72adc3d..447753c2792 100644 --- a/website/docs/r/identity_domain.html.markdown +++ b/website/docs/r/identity_domain.html.markdown @@ -10,22 +10,14 @@ description: |- # oci_identity_domain This resource provides the Domain resource in Oracle Cloud Infrastructure Identity service. -Creates a new domain in the tenancy with domain home in {@code homeRegion}. This is an asynchronous call - where, at start, -{@code lifecycleState} of this domain is set to CREATING and {@code lifecycleDetails} to UPDATING. On domain creation completion -this Domain's {@code lifecycleState} will be set to ACTIVE and {@code lifecycleDetails} to null. +(For tenancies that support identity domains) Creates a new identity domain in the tenancy with the identity domain home in `homeRegion`. +After you send your request, the temporary `lifecycleState` of this identity domain is set to CREATING and `lifecycleDetails` to UPDATING. +When creation of the identity domain completes, this identity domain's `lifecycleState` is set to ACTIVE and `lifecycleDetails` to null. -To track progress, HTTP GET on /iamWorkRequests/{iamWorkRequestsId} endpoint will provide -the async operation's status. +To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves +the operation's status. -After creating a `Domain`, make sure its `lifecycleState` changes from CREATING to ACTIVE -before using it. -If the domain's {@code displayName} already exists, returns 400 BAD REQUEST. -If any one of admin related fields are provided and one of the following 3 fields -- {@code adminEmail}, {@code adminLastName} and {@code adminUserName} - is not provided, -returns 400 BAD REQUEST. -- If {@code isNotificationBypassed} is NOT provided when admin information is provided, -returns 400 BAD REQUEST. -- If any internal error occurs, return 500 INTERNAL SERVER ERROR. +After creating an `identity domain`, first make sure its `lifecycleState` changes from CREATING to ACTIVE before you use it. ## Example Usage @@ -56,14 +48,14 @@ resource "oci_identity_domain" "test_domain" { The following arguments are supported: -* `admin_email` - (Optional) The admin email address -* `admin_first_name` - (Optional) The admin first name -* `admin_last_name` - (Optional) The admin last name -* `admin_user_name` - (Optional) The admin user name -* `compartment_id` - (Required) (Updatable) The OCID of the Compartment where domain is created +* `admin_email` - (Optional) The administrator's email address. +* `admin_first_name` - (Optional) The administrator's first name. +* `admin_last_name` - (Optional) The administrator's last name. +* `admin_user_name` - (Optional) The administrator's user name. +* `compartment_id` - (Required) (Updatable) The OCID of the compartment where the identity domain is created. * `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"}` -* `description` - (Required) (Updatable) Domain entity description -* `display_name` - (Required) (Updatable) The mutable display name of the domain. +* `description` - (Required) (Updatable) The identity domain description. You can have an empty description. +* `display_name` - (Required) (Updatable) The mutable display name of the identity domain. * `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"}` * `home_region` - (Required) The region's name. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: `us-phoenix-1` * `is_hidden_on_login` - (Optional) (Updatable) Indicates whether domain is hidden on login screen or not. @@ -79,25 +71,26 @@ Any change to a property that does not support update will force the destruction The following attributes are exported: -* `compartment_id` - The OCID of the compartment containing the domain. +* `compartment_id` - The OCID of the compartment containing the identity domain. * `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` - The domain descripition -* `display_name` - The mutable display name of the domain +* `description` - The identity domain description. You can have an empty description. +* `display_name` - The mutable display name of the identity domain. * `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"}` -* `home_region` - The home region for the domain. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: `us-phoenix-1` -* `home_region_url` - Region specific domain URL. -* `id` - The OCID of the domain -* `is_hidden_on_login` - Indicates whether domain is hidden on login screen or not. -* `license_type` - The License type of Domain -* `lifecycle_details` - Any additional details about the current state of the Domain. -* `replica_regions` - The regions domain is replication to. +* `home_region` - The home region for the identity domain. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: `us-phoenix-1` +* `home_region_url` - Region-specific identity domain URL. +* `id` - The OCID of the identity domain. +* `is_hidden_on_login` - Indicates whether the identity domain is hidden on the sign-in screen or not. +* `license_type` - The license type of the identity domain. +* `lifecycle_details` - Any additional details about the current state of the identity domain. +* `replica_regions` - The regions where replicas of the identity domain exist. * `region` - A REPLICATION_ENABLED region, e.g. us-ashburn-1. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. - * `state` - The IDCS replicated region state - * `url` - Region agnostic domain URL. + * `regional_url` - Region-specific identity domain URL. + * `state` - The IDCS-replicated region state. + * `url` - Region-agnostic identity domain URL. * `state` - The current state. -* `time_created` - Date and time the domain was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` -* `type` - The type of the domain. -* `url` - Region agnostic domain URL. +* `time_created` - Date and time the identity domain was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` +* `type` - The type of the identity domain. +* `url` - Region-agnostic identity domain URL. ## Timeouts diff --git a/website/docs/r/identity_domain_replication_to_region.html.markdown b/website/docs/r/identity_domain_replication_to_region.html.markdown index da51c472e3a..a8c7328ee1f 100644 --- a/website/docs/r/identity_domain_replication_to_region.html.markdown +++ b/website/docs/r/identity_domain_replication_to_region.html.markdown @@ -10,19 +10,16 @@ description: |- # oci_identity_domain_replication_to_region This resource provides the Domain Replication To Region resource in Oracle Cloud Infrastructure Identity service. -Replicate domain to a new region. This is an asynchronous call - where, at start, -{@code state} of this domain in replica region is set to ENABLING_REPLICATION. -On domain replication completion the {@code state} will be set to REPLICATION_ENABLED. +(For tenancies that support identity domains) Replicates the identity domain to a new region (provided that the region is the +tenancy home region or other region that the tenancy subscribes to). You can only replicate identity domains that are in an ACTIVE +`lifecycleState` and not currently updating or already replicating. You also can only trigger the replication of secondary identity domains. +The default identity domain is automatically replicated to all regions that the tenancy subscribes to. -To track progress, HTTP GET on /iamWorkRequests/{iamWorkRequestsId} endpoint will provide -the async operation's status. +After you send the request, the `state` of the identity domain in the replica region is set to ENABLING_REPLICATION. When the operation +completes, the `state` is set to REPLICATION_ENABLED. -If the replica region's {@code state} is already ENABLING_REPLICATION or REPLICATION_ENABLED, -returns 409 CONFLICT. -- If the domain doesn't exists, returns 404 NOT FOUND. -- If home region is same as replication region, return 400 BAD REQUEST. -- If Domain is not active or being updated, returns 400 BAD REQUEST. -- If any internal error occurs, return 500 INTERNAL SERVER ERROR. +To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves +the operation's status. ## Example Usage @@ -41,8 +38,8 @@ resource "oci_identity_domain_replication_to_region" "test_domain_replication_to The following arguments are supported: -* `domain_id` - (Required) The OCID of the domain -* `replica_region` - (Optional) A region for which domain replication is requested for. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: `us-phoenix-1` +* `domain_id` - (Required) The OCID of the identity domain. +* `replica_region` - (Optional) A region to which you want identity domain replication to occur. See [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm) for the full list of supported region names. Example: `us-phoenix-1` ** IMPORTANT ** diff --git a/website/docs/r/identity_dynamic_group.html.markdown b/website/docs/r/identity_dynamic_group.html.markdown index ce322c85b1c..d89294cd92b 100644 --- a/website/docs/r/identity_dynamic_group.html.markdown +++ b/website/docs/r/identity_dynamic_group.html.markdown @@ -21,7 +21,7 @@ reside within compartments inside the tenancy. For information about OCIDs, see You must also specify a *name* for the dynamic group, which must be unique across all dynamic groups in your tenancy, and cannot be changed. Note that this name has to be also unique across all groups in your tenancy. You can use this name or the OCID when writing policies that apply to the dynamic group. For more information -about policies, see [How Policies Work](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policies.htm). +about policies, see [How Policies Work](https://docs.cloud.oracle.com/iaas/Content/Identity/policieshow/how-policies-work.htm). You must also specify a *description* for the dynamic group (although it can be an empty string). It does not have to be unique, and you can change it anytime with [UpdateDynamicGroup](https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/DynamicGroup/UpdateDynamicGroup). @@ -50,8 +50,10 @@ The following arguments are supported: * `compartment_id` - (Required) The OCID of the tenancy containing the group. * `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"}` * `description` - (Required) (Updatable) The description you assign to the group during creation. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `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"}` -* `matching_rule` - (Required) (Updatable) The matching rule to dynamically match an instance certificate to this dynamic group. For rule syntax, see [Managing Dynamic Groups](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingdynamicgroups.htm). +* `matching_rule` - (Required) (Updatable) The matching rule to dynamically match an instance certificate to this dynamic group. For rule syntax, see [Managing Dynamic Groups](https://docs.cloud.oracle.com/iaas/Content/Identity/dynamicgroups/managingdynamicgroups.htm). * `name` - (Required) The name you assign to the group during creation. The name must be unique across all groups in the tenancy and cannot be changed. @@ -65,10 +67,12 @@ The following attributes are exported: * `compartment_id` - The OCID of the tenancy containing the group. * `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` - The description you assign to the group. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `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 of the group. * `inactive_state` - The detailed status of INACTIVE lifecycleState. -* `matching_rule` - A rule string that defines which instance certificates will be matched. For syntax, see [Managing Dynamic Groups](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingdynamicgroups.htm). +* `matching_rule` - A rule string that defines which instance certificates will be matched. For syntax, see [Managing Dynamic Groups](https://docs.cloud.oracle.com/iaas/Content/Identity/dynamicgroups/managingdynamicgroups.htm). * `name` - The name you assign to the group during creation. The name must be unique across all groups in the tenancy and cannot be changed. * `state` - The group's current state. * `time_created` - Date and time the group was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` diff --git a/website/docs/r/identity_group.html.markdown b/website/docs/r/identity_group.html.markdown index c2cbe336b03..c93c31c2a97 100644 --- a/website/docs/r/identity_group.html.markdown +++ b/website/docs/r/identity_group.html.markdown @@ -20,7 +20,7 @@ reside within compartments inside the tenancy. For information about OCIDs, see You must also specify a *name* for the group, which must be unique across all groups in your tenancy and cannot be changed. You can use this name or the OCID when writing policies that apply to the group. For more -information about policies, see [How Policies Work](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policies.htm). +information about policies, see [How Policies Work](https://docs.cloud.oracle.com/iaas/Content/Identity/policieshow/how-policies-work.htm). You must also specify a *description* for the group (although it can be an empty string). It does not have to be unique, and you can change it anytime with [UpdateGroup](https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/Group/UpdateGroup). @@ -51,6 +51,8 @@ The following arguments are supported: * `compartment_id` - (Required) The OCID of the tenancy containing the group. * `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"}` * `description` - (Required) (Updatable) The description you assign to the group during creation. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `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"}` * `name` - (Required) The name you assign to the group during creation. The name must be unique across all groups in the tenancy and cannot be changed. @@ -65,6 +67,8 @@ The following attributes are exported: * `compartment_id` - The OCID of the tenancy containing the group. * `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` - The description you assign to the group. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `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 of the group. * `inactive_state` - The detailed status of INACTIVE lifecycleState. diff --git a/website/docs/r/identity_network_source.html.markdown b/website/docs/r/identity_network_source.html.markdown index bc288edbd90..15561a5c765 100644 --- a/website/docs/r/identity_network_source.html.markdown +++ b/website/docs/r/identity_network_source.html.markdown @@ -21,7 +21,7 @@ reside within compartments inside the tenancy. For information about OCIDs, see You must also specify a *name* for the network source, which must be unique across all network sources in your tenancy, and cannot be changed. You can use this name or the OCID when writing policies that apply to the network source. For more information -about policies, see [How Policies Work](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policies.htm). +about policies, see [How Policies Work](https://docs.cloud.oracle.com/iaas/Content/Identity/policieshow/how-policies-work.htm). You must also specify a *description* for the network source (although it can be an empty string). It does not have to be unique, and you can change it anytime with [UpdateNetworkSource](https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/NetworkSource/UpdateNetworkSource). @@ -57,7 +57,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"}` * `name` - (Required) The name you assign to the network source during creation. The name must be unique across all groups in the tenancy and cannot be changed. * `public_source_list` - (Optional) (Updatable) A list of allowed public IP addresses and CIDR ranges. -* `services` - (Optional) (Updatable) A list of services allowed to make on-behalf-of requests. These requests can have different source IP addresses than those listed in the network source. Currently, only `all` and `none` are supported. The default is `all`. +* `services` - (Optional) (Updatable) -- The services attribute has no effect and is reserved for use by Oracle. -- * `virtual_source_list` - (Optional) (Updatable) A list of allowed VCN OCID and IP range pairs. Example:`"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]` @@ -76,9 +76,9 @@ The following attributes are exported: * `inactive_state` - The detailed status of INACTIVE lifecycleState. * `name` - The name you assign to the network source during creation. The name must be unique across the tenancy and cannot be changed. * `public_source_list` - A list of allowed public IP addresses and CIDR ranges. -* `services` - A list of services allowed to make on-behalf-of requests. These requests can have different source IPs than those specified in the network source. Currently, only `all` and `none` are supported. The default is `all`. +* `services` - -- The services attribute has no effect and is reserved for use by Oracle. -- * `state` - The network source object's current state. After creating a network source, make sure its `lifecycleState` changes from CREATING to ACTIVE before using it. -* `time_created` - Date and time the group was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` +* `time_created` - Date and time the network source was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` * `virtual_source_list` - A list of allowed VCN OCID and IP range pairs. Example:`"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]` ## Timeouts diff --git a/website/docs/r/identity_policy.html.markdown b/website/docs/r/identity_policy.html.markdown index fefd5c09896..570e7492edb 100644 --- a/website/docs/r/identity_policy.html.markdown +++ b/website/docs/r/identity_policy.html.markdown @@ -11,7 +11,7 @@ description: |- This resource provides the Policy resource in Oracle Cloud Infrastructure Identity service. Creates a new policy in the specified compartment (either the tenancy or another of your compartments). -If you're new to policies, see [Getting Started with Policies](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +If you're new to policies, see [Get Started with Policies](https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm). You must specify a *name* for the policy, which must be unique across all policies in your tenancy and cannot be changed. @@ -20,8 +20,8 @@ You must also specify a *description* for the policy (although it can be an empt have to be unique, and you can change it anytime with [UpdatePolicy](https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/Policy/UpdatePolicy). You must specify one or more policy statements in the statements array. For information about writing -policies, see [How Policies Work](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policies.htm) and -[Common Policies](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/commonpolicies.htm). +policies, see [How Policies Work](https://docs.cloud.oracle.com/iaas/Content/Identity/policieshow/how-policies-work.htm) and +[Common Policies](https://docs.cloud.oracle.com/iaas/Content/Identity/policiescommon/commonpolicies.htm). New policies take effect typically within 10 seconds. @@ -51,7 +51,7 @@ The following arguments are supported: * `description` - (Required) (Updatable) The description you assign to the policy during creation. Does not have to be unique, and it's changeable. * `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"}` * `name` - (Required) The name you assign to the policy during creation. The name must be unique across all policies in the tenancy and cannot be changed. -* `statements` - (Required) (Updatable) An array of policy statements written in the policy language. See [How Policies Work](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policies.htm) and [Common Policies](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/commonpolicies.htm). +* `statements` - (Required) (Updatable) An array of policy statements written in the policy language. See [How Policies Work](https://docs.cloud.oracle.com/iaas/Content/Identity/policieshow/how-policies-work.htm) and [Common Policies](https://docs.cloud.oracle.com/iaas/Content/Identity/policiescommon/commonpolicies.htm). * `version_date` - (Optional) (Updatable) The version of the policy. If null or set to an empty string, when a request comes in for authorization, the policy will be evaluated according to the current behavior of the services at that moment. If set to a particular date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. diff --git a/website/docs/r/identity_smtp_credential.html.markdown b/website/docs/r/identity_smtp_credential.html.markdown index 73b3ac5993e..14472fb9234 100644 --- a/website/docs/r/identity_smtp_credential.html.markdown +++ b/website/docs/r/identity_smtp_credential.html.markdown @@ -30,7 +30,9 @@ resource "oci_identity_smtp_credential" "test_smtp_credential" { The following arguments are supported: -* `description` - (Required) (Updatable) The description you assign to the SMTP credentials during creation. Does not have to be unique, and it's changeable. +* `description` - (Required) (Updatable) The description you assign to the SMTP credentials during creation. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `user_id` - (Required) The OCID of the user. @@ -42,6 +44,8 @@ Any change to a property that does not support update will force the destruction The following attributes are exported: * `description` - The description you assign to the SMTP credential. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `id` - The OCID of the SMTP credential. * `inactive_state` - The detailed status of INACTIVE lifecycleState. * `password` - The SMTP password. diff --git a/website/docs/r/identity_tag.html.markdown b/website/docs/r/identity_tag.html.markdown index 6c520d633a2..22f37fda5ea 100644 --- a/website/docs/r/identity_tag.html.markdown +++ b/website/docs/r/identity_tag.html.markdown @@ -66,7 +66,7 @@ The following arguments are supported: * `is_cost_tracking` - (Optional) (Updatable) Indicates whether the tag is enabled for cost tracking. * `name` - (Required) The name you assign to the tag during creation. This is the tag key definition. The name must be unique within the tag namespace and cannot be changed. * `tag_namespace_id` - (Required) The OCID of the tag namespace. -* `validator` - (Optional) (Updatable) Validates a definedTag value. Each validator performs validation steps in addition to the standard validation for definedTag values. For more information, see [Limits on Tags](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm#Limits). +* `validator` - (Optional) (Updatable) Validates a definedTag value. Each validator performs validation steps in addition to the standard validation for definedTag values. For more information, see [Limits on Tags](https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm#limits). If you define a validator after a value has been set for a defined tag, then any updates that attempt to change the value must pass the additional validation defined by the current rule. Previously set values (even those that would fail the current validation) are not updated. You can still update other attributes to resources that contain a non-valid defined tag. @@ -88,12 +88,12 @@ 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 of the tag definition. * `is_cost_tracking` - Indicates whether the tag is enabled for cost tracking. -* `is_retired` - Indicates whether the tag is retired. See [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm#Retiring). +* `is_retired` - Indicates whether the tag is retired. See [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/iaas/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). * `name` - The name assigned to the tag during creation. This is the tag key definition. The name must be unique within the tag namespace and cannot be changed. * `state` - The tag's current state. After creating a tag, make sure its `lifecycleState` is ACTIVE before using it. After retiring a tag, make sure its `lifecycleState` is INACTIVE before using it. If you delete a tag, you cannot delete another tag until the deleted tag's `lifecycleState` changes from DELETING to DELETED. * `tag_namespace_id` - The OCID of the namespace that contains the tag definition. * `time_created` - Date and time the tag was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` -* `validator` - Validates a definedTag value. Each validator performs validation steps in addition to the standard validation for definedTag values. For more information, see [Limits on Tags](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm#Limits). +* `validator` - Validates a definedTag value. Each validator performs validation steps in addition to the standard validation for definedTag values. For more information, see [Limits on Tags](https://docs.cloud.oracle.com/iaas/Content/Tagging/Concepts/taggingoverview.htm#limits). If you define a validator after a value has been set for a defined tag, then any updates that attempt to change the value must pass the additional validation defined by the current rule. Previously set values (even those that would fail the current validation) are not updated. You can still update other attributes to resources that contain a non-valid defined tag. diff --git a/website/docs/r/identity_tag_namespace.html.markdown b/website/docs/r/identity_tag_namespace.html.markdown index 646d42c8c24..d6929105655 100644 --- a/website/docs/r/identity_tag_namespace.html.markdown +++ b/website/docs/r/identity_tag_namespace.html.markdown @@ -65,7 +65,7 @@ The following attributes are exported: * `description` - The description you assign to the tag namespace. * `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 of the tag namespace. -* `is_retired` - Whether the tag namespace is retired. For more information, see [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/taggingoverview.htm#Retiring). +* `is_retired` - Whether the tag namespace is retired. For more information, see [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/iaas/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). * `name` - The name of the tag namespace. It must be unique across all tag namespaces in the tenancy and cannot be changed. * `state` - The tagnamespace's current state. After creating a tagnamespace, make sure its `lifecycleState` is ACTIVE before using it. After retiring a tagnamespace, make sure its `lifecycleState` is INACTIVE before using it. * `time_created` - Date and time the tag namespace was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` diff --git a/website/docs/r/identity_ui_password.html.markdown b/website/docs/r/identity_ui_password.html.markdown index ae540575fd6..f88bbfbf8e3 100644 --- a/website/docs/r/identity_ui_password.html.markdown +++ b/website/docs/r/identity_ui_password.html.markdown @@ -11,7 +11,7 @@ description: |- This resource provides the Ui Password resource in Oracle Cloud Infrastructure Identity service. Creates a new Console one-time password for the specified user. For more information about user -credentials, see [User Credentials](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/usercredentials.htm). +credentials, see [User Credentials](https://docs.cloud.oracle.com/iaas/Content/Identity/usercred/usercredentials.htm). Use this operation after creating a new user, or if a user forgets their password. The new one-time password is returned to you in the response, and you must securely deliver it to the user. They'll @@ -19,6 +19,10 @@ be prompted to change this password the next time they sign in to the Console. I it within 7 days, the password will expire and you'll need to create a new one-time password for the user. +(For tenancies that support identity domains) Resetting a user's password generates a reset password email +with a link that the user must follow to reset their password. If the user does not reset their password before the +link expires, you'll need to reset the user's password again. + **Note:** The user's Console login is the unique name you specified when you created the user (see [CreateUser](https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/User/CreateUser)). diff --git a/website/docs/r/identity_user.html.markdown b/website/docs/r/identity_user.html.markdown index 5ad79266ba7..e429b5d94c0 100644 --- a/website/docs/r/identity_user.html.markdown +++ b/website/docs/r/identity_user.html.markdown @@ -11,7 +11,7 @@ description: |- This resource provides the User resource in Oracle Cloud Infrastructure Identity service. Creates a new user in your tenancy. For conceptual information about users, your tenancy, and other -IAM Service components, see [Overview of the IAM Service](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). +IAM Service components, see [Overview of IAM](https://docs.cloud.oracle.com/iaas/Content/Identity/getstarted/identity-domains.htm). You must specify your tenancy's OCID as the compartment ID in the request object (remember that the tenancy is simply the root compartment). Notice that IAM resources (users, groups, compartments, and @@ -66,7 +66,11 @@ The following arguments are supported: * `compartment_id` - (Required) The OCID of the tenancy containing the user. * `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"}` * `description` - (Required) (Updatable) The description you assign to the user during creation. Does not have to be unique, and it's changeable. -* `email` - (Optional) (Updatable) The email you assign to the user. Has to be unique across the tenancy. + + (For tenancies that support identity domains) You can have an empty description. +* `email` - (Optional) (Updatable) The email you assign to the user during creation. The email must be unique across all users in the tenancy. + + (For tenancies that support identity domains) You must provide an email for each user. * `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"}` * `name` - (Required) The name you assign to the user during creation. This is the user's login for the Console. The name must be unique across all users in the tenancy and cannot be changed. @@ -90,7 +94,11 @@ The following attributes are exported: * `db_user_name` - DB username of the DB credential. Has to be unique across the tenancy. * `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` - The description you assign to the user. Does not have to be unique, and it's changeable. + + (For tenancies that support identity domains) You can have an empty description. * `email` - The email address you assign to the user. The email address must be unique across all users in the tenancy. + + (For tenancies that support identity domains) The email address is required unless the requirement is disabled at the tenancy level. * `email_verified` - Whether the email address has been validated. * `external_identifier` - Identifier of the user in the identity provider * `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"}` diff --git a/website/oci.erb b/website/oci.erb index 585c7c09207..93aa6e9de5d 100644 --- a/website/oci.erb +++ b/website/oci.erb @@ -1978,6 +1978,12 @@
  • oci_dataflow_invoke_runs
  • +
  • + oci_dataflow_pool +
  • +
  • + oci_dataflow_pools +
  • oci_dataflow_private_endpoint
  • @@ -2007,6 +2013,9 @@
  • oci_dataflow_invoke_run
  • +
  • + oci_dataflow_pool +
  • oci_dataflow_private_endpoint