diff --git a/CHANGELOG.md b/CHANGELOG.md index c7cc3b58e40..da91ef093b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +## 7.14.0 (August 13, 2025) + +### Added +- Support for scimQuery field for findingAnalytics API in data safe +- Support for ODSC - Distributed Training V2 (DTv2) +- Support for OCI Cache - Customer Managed Config Sets +- Support for AI Vision Service Stream Video Processing +- Support for GoldenGate Connections Release 8 +- Support for OL8 migration for Devops Build runner +- Support for fields computeClusterId and placementConstraintDetails in Instance Configuration Launch Details +- Max Parallel Chunks configurable via env +- Formatting changes in files + +### Bug Fix +- Fix using security_attributes in UpdateInstance and add tests +- remove usages of freeformTags and definedTags from ApplianceImageSummary +- EXACC update fix to send destionationDetails +- Resolved errors with VCN update requests for IPv6 CIDRs + ## 7.13.0 (August 6, 2025) ### Added diff --git a/examples/README.md b/examples/README.md index 9b82fca02c6..4d791e3ea99 100644 --- a/examples/README.md +++ b/examples/README.md @@ -19,6 +19,8 @@ This directory contains Terraform configuration files showing how to create spec [![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle/terraform-provider-oci/raw/master/examples/zips/announcements_service.zip) - api_gateway [![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle/terraform-provider-oci/raw/master/examples/zips/api_gateway.zip) +- api_platform + [![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle/terraform-provider-oci/raw/master/examples/zips/api_platform.zip) - apiaccesscontrol [![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle/terraform-provider-oci/raw/master/examples/zips/apiaccesscontrol.zip) - apm diff --git a/examples/api_platform/README.md b/examples/api_platform/README.md new file mode 100644 index 00000000000..19eb9e9ca68 --- /dev/null +++ b/examples/api_platform/README.md @@ -0,0 +1,6 @@ +# Overview +This is a Terraform configuration that creates the `api_platform` service on Oracle Cloud Infrastructure. + +The Terraform code is used to create a Resource Manager stack, that creates the required resources and configures the application on the created resources. +## Magic Button +[![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle/terraform-provider-oci/raw/master/examples/zips/api_platform.zip) \ No newline at end of file diff --git a/examples/api_platform/description.md b/examples/api_platform/description.md new file mode 100644 index 00000000000..e61f7ad8da2 --- /dev/null +++ b/examples/api_platform/description.md @@ -0,0 +1,4 @@ +# Overview +This is a Terraform configuration that creates the `api_platform` service on Oracle Cloud Infrastructure. + +The Terraform code is used to create a Resource Manager stack, that creates the required resources and configures the application on the created resources. \ No newline at end of file diff --git a/examples/datasafe/security_assessment_comparison/security_assessment_comparison.tf b/examples/datasafe/security_assessment_comparison/security_assessment_comparison.tf new file mode 100644 index 00000000000..b4fdff661d9 --- /dev/null +++ b/examples/datasafe/security_assessment_comparison/security_assessment_comparison.tf @@ -0,0 +1,43 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +variable "tenancy_ocid" { +} + +variable "user_ocid" { +} + +variable "fingerprint" { +} + +variable "private_key_path" { +} + +variable "region" { +} + +variable "compartment_ocid" { +} + +variable "data_safe_target_ocid" { +} +variable "security_assessment_ocid" { + +} +variable "comp_security_assessment_ocid" { + +} +provider "oci" { + version = "7.12.0" + tenancy_ocid = var.tenancy_ocid + user_ocid = var.user_ocid + fingerprint = var.fingerprint + private_key_path = var.private_key_path + region = var.region +} + +data "oci_data_safe_security_assessment_comparison" "test_security_assessment_comparison" { + #Required + comparison_security_assessment_id = var.comp_security_assessment_ocid + security_assessment_id = var.security_assessment_ocid +} \ No newline at end of file diff --git a/examples/datasafe/security_assessment_finding_analytics_scim_filter/security_assessment_finding_analytics_scim_filter.tf b/examples/datasafe/security_assessment_finding_analytics_scim_filter/security_assessment_finding_analytics_scim_filter.tf new file mode 100644 index 00000000000..cb93a29cf14 --- /dev/null +++ b/examples/datasafe/security_assessment_finding_analytics_scim_filter/security_assessment_finding_analytics_scim_filter.tf @@ -0,0 +1,32 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +variable "tenancy_ocid" {} +variable "user_ocid" {} +variable "fingerprint" {} +variable "private_key_path" {} +variable "region" {} +variable "compartment_ocid" {} +variable "security_assessment_ocid" {} +variable "data_safe_target_ocid" {} + +variable "scim_query" { + default = "severity eq \"HIGH\"" +} + +provider "oci" { + tenancy_ocid = var.tenancy_ocid + user_ocid = var.user_ocid + fingerprint = var.fingerprint + private_key_path = var.private_key_path + region = var.region +} + +data "oci_data_safe_security_assessment_finding_analytics" "test_security_assessment_finding_analytics" { + #Required + compartment_id = var.compartment_ocid + access_level = "ACCESSIBLE" + compartment_id_in_subtree = true + #Optional + scim_query = var.scim_query +} \ No newline at end of file diff --git a/examples/datascience/job/job.tf b/examples/datascience/job/job.tf index 39917e53519..13cfa72d182 100644 --- a/examples/datascience/job/job.tf +++ b/examples/datascience/job/job.tf @@ -64,25 +64,64 @@ resource "oci_datascience_job" "job" { artifact_content_length = 1380 artifact_content_disposition = "attachment; filename=job_artifact.py" delete_related_job_runs = true - # optional parameter - # opc_parent_rpt_url = "" + job_storage_mount_configuration_details_list { + destination_directory_name = "fss" + storage_type = "FILE_STORAGE" + destination_path = "/mnt" + export_id = "" + mount_target_id = "" - job_configuration_details { - job_type = "DEFAULT" - maximum_runtime_in_minutes = 30 } + # optional parameter + # opc_parent_rpt_url = "" - job_infrastructure_configuration_details { - job_infrastructure_type = "STANDALONE" - shape_name = "VM.Standard3.Flex" - block_storage_size_in_gbs = 100 - subnet_id = oci_core_subnet.tf_subnet.id - - # Optional - job_shape_config_details { - memory_in_gbs = 16 - ocpus = 2 + # job_configuration_details { + # job_type = "DEFAULT" + # maximum_runtime_in_minutes = 30 + # } + + # job_infrastructure_configuration_details { + # job_infrastructure_type = "STANDALONE" + # shape_name = "VM.Standard3.Flex" + # block_storage_size_in_gbs = 100 + # subnet_id = oci_core_subnet.tf_subnet.id + + # # Optional + # job_shape_config_details { + # memory_in_gbs = 16 + # ocpus = 2 + # } + # } + + # New Optional parameter for Multi Node + job_node_configuration_details { + job_node_type = "MULTI_NODE" + job_network_configuration { + job_network_type = "CUSTOM_NETWORK" + subnet_id= "" } + job_node_group_configuration_details_list { + name= "replica1" + job_configuration_details { + job_type= "DEFAULT" + command_line_arguments= "commandLineArguments" + } + job_infrastructure_configuration_details { + job_infrastructure_type = "MULTI_NODE" + shape_name = "VM.Standard3.Flex" + block_storage_size_in_gbs = 50 + subnet_id = "" + + # Optional + job_shape_config_details { + memory_in_gbs = 16 + ocpus = 3 + } + } + minimum_success_replicas=1 + replicas=1 + } + startup_order = "IN_ORDER" } job_environment_configuration_details { diff --git a/examples/datascience/pipeline/pipeline.tf b/examples/datascience/pipeline/pipeline.tf index 22ee5540205..87d07378a82 100644 --- a/examples/datascience/pipeline/pipeline.tf +++ b/examples/datascience/pipeline/pipeline.tf @@ -575,6 +575,21 @@ resource "oci_datascience_pipeline_run" "test_pipeline_run" { # # log_group_id = oci_logging_log_group.pipeline_run.id # # # log_id = oci_logging_log.test_log.id # # } +# New Optional parameter +# # infrastructure_configuration_override_details { +# #Required +# block_storage_size_in_gbs = var.pipeline_infrastructure_configuration_details_block_storage_size_in_gbs +# shape_name = "VM.Standard2.1" +# # optional for custom networking +# subnet_id = var.subnet_id +# #Optional ONLY required if the shape is a flex shape +# # shape_config_details { + +# # #Optional +# # memory_in_gbs = var.pipeline_infrastructure_configuration_details_shape_config_details_memory_in_gbs +# # ocpus = var.pipeline_infrastructure_configuration_details_shape_config_details_ocpus +# # } +# } # project_id = oci_datascience_project.pipeline.id # step_override_details { # #Required diff --git a/examples/goldengate/Connection/amazon-kinesis/main.tf b/examples/goldengate/Connection/amazon-kinesis/main.tf new file mode 100644 index 00000000000..1ee4d6d573a --- /dev/null +++ b/examples/goldengate/Connection/amazon-kinesis/main.tf @@ -0,0 +1,57 @@ +variable "tenancy_ocid" {} +variable "user_ocid" {} +variable "deployment_ocid" {} +variable "fingerprint" {} +variable "private_key_path" {} +variable "compartment_id" {} +variable "region" {} +variable "password_secret_id" {} + +variable "description" { + default = "Created as example for TERSI-4594 Connections R8" +} +variable "freeform_tags" { + default = { "bar-key" = "value" } +} +variable "connection_type" { + default = "AMAZON_KINESIS" +} +variable "display_name" { + default = "Amazon_Kinesis_TerraformTest" +} +variable "technology_type" { + default = "AMAZON_KINESIS" +} +variable "access_key_id" { + default = "access_key_id_access_key_id_access_key_id" +} +variable "secret_access_key" { + default = "access-key" +} +variable "does_use_secret_ids" { + default = true +} + + + +provider "oci" { + tenancy_ocid = var.tenancy_ocid + user_ocid = var.user_ocid + fingerprint = var.fingerprint + private_key_path = var.private_key_path + region = var.region +} +resource "oci_golden_gate_connection" "test_connection"{ + #Required + compartment_id = var.compartment_id + connection_type = var.connection_type + technology_type = var.technology_type + display_name = var.display_name + access_key_id = var.access_key_id + + #Optional + description = var.description + freeform_tags = var.freeform_tags + secret_access_key_secret_id = var.password_secret_id + does_use_secret_ids = var.does_use_secret_ids +} \ No newline at end of file diff --git a/examples/goldengate/Connection/azure-data-lake-storage/main.tf b/examples/goldengate/Connection/azure-data-lake-storage/main.tf new file mode 100644 index 00000000000..ab9b61edc1c --- /dev/null +++ b/examples/goldengate/Connection/azure-data-lake-storage/main.tf @@ -0,0 +1,60 @@ +variable "tenancy_ocid" {} +variable "user_ocid" {} +variable "deployment_ocid" {} +variable "fingerprint" {} +variable "private_key_path" {} +variable "compartment_id" {} +variable "region" {} +variable "password_secret_id" {} + +variable "description" { + default = "Created as example for TERSI-4594 Connections R8" +} +variable "freeform_tags" { + default = { "bar-key" = "value" } +} +variable "connection_type" { + default = "AZURE_DATA_LAKE_STORAGE" +} +variable "display_name" { + default = "Azure_Data_Lake_Storage_TerraformTest" +} +variable "technology_type" { + default = "AZURE_DATA_LAKE_STORAGE" +} +variable "account_name"{ + default = "testaccount" +} +variable "authentication_type" { + default = "SHARED_KEY" +} +variable "does_use_secret_ids" { + default = true +} + + + +provider "oci" { + tenancy_ocid = var.tenancy_ocid + user_ocid = var.user_ocid + fingerprint = var.fingerprint + private_key_path = var.private_key_path + region = var.region +} +resource "oci_golden_gate_connection" "test_connection"{ + #Required + compartment_id = var.compartment_id + connection_type = var.connection_type + technology_type = var.technology_type + display_name = var.display_name + account_name = var.account_name + authentication_type = var.authentication_type + + #Required for SHARED_KEY authentication_type + account_key_secret_id = var.password_secret_id + + #Optional + description = var.description + freeform_tags = var.freeform_tags + does_use_secret_ids = var.does_use_secret_ids +} \ No newline at end of file diff --git a/examples/goldengate/Connection/hdfs/main.tf b/examples/goldengate/Connection/hdfs/main.tf new file mode 100644 index 00000000000..0dd0ccac25e --- /dev/null +++ b/examples/goldengate/Connection/hdfs/main.tf @@ -0,0 +1,55 @@ +variable "tenancy_ocid" {} +variable "user_ocid" {} +variable "fingerprint" {} +variable "private_key_path" {} +variable "compartment_id" {} +variable "region" {} + +variable "description" { + default = "Created as example for TERSI-4594 Connections R8" +} +variable "freeform_tags" { + default = { "bar-key" = "value" } +} +variable "connection_type" { + default = "HDFS" +} +variable "display_name" { + default = "Hdfs_TerraformTest" +} +variable "technology_type" { + default = "HDFS" +} +variable "core_site_xml" { + default = "PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjw/eG1sLXN0eWxlc2hlZXQgdHlwZT0idGV4dC94c2wiIGhyZWY9ImNvbmZpZ3VyYXRpb24ueHNsIj8+Cgo8IS0tIFB1dCBzaXRlLXNwZWNpZmljIHByb3BlcnR5IG92ZXJyaWRlcyBpbiB0aGlzIGZpbGUuIC0tPgoKPGNvbmZpZ3VyYXRpb24+CiAgPCEtLSBmaWxlIHN5c3RlbSBwcm9wZXJ0aWVzIC0tPgogIDxwcm9wZXJ0eT4KICAgIDxuYW1lPmZzLmRlZmF1bHRGUzwvbmFtZT4KICAgIDx2YWx1ZT5oZGZzOi8vZm9vLmJhci5jb206ODAyMDwvdmFsdWU+CiAgICA8ZGVzY3JpcHRpb24+VGhlIG5hbWUgb2YgdGhlIGRlZmF1bHQgZmlsZSBzeXN0ZW0uICBFaXRoZXIgdGhlCiAgICAgIGxpdGVyYWwgc3RyaW5nICJsb2NhbCIgb3IgYSBob3N0OnBvcnQgZm9yIE5ERlMuCiAgICA8L2Rlc2NyaXB0aW9uPgogICAgPGZpbmFsPnRydWU8L2ZpbmFsPgogIDwvcHJvcGVydHk+CjwvY29uZmlndXJhdGlvbj4=" +} + + + +provider "oci" { + tenancy_ocid = var.tenancy_ocid + user_ocid = var.user_ocid + fingerprint = var.fingerprint + private_key_path = var.private_key_path + region = var.region +} +resource "oci_golden_gate_connection" "test_connection"{ + #Required + compartment_id = var.compartment_id + connection_type = var.connection_type + technology_type = var.technology_type + display_name = var.display_name + core_site_xml = var.core_site_xml + + #Optional + description = var.description + freeform_tags = var.freeform_tags +} + +data "oci_golden_gate_connection" "fetched_connection" { + connection_id = oci_golden_gate_connection.test_connection.id +} + +output "connection_display_name" { + value = data.oci_golden_gate_connection.fetched_connection.display_name +} diff --git a/examples/goldengate/Connection/s3/main.tf b/examples/goldengate/Connection/s3/main.tf new file mode 100644 index 00000000000..7dac17ac471 --- /dev/null +++ b/examples/goldengate/Connection/s3/main.tf @@ -0,0 +1,61 @@ +variable "tenancy_ocid" {} +variable "user_ocid" {} +variable "fingerprint" {} +variable "private_key_path" {} +variable "compartment_id" {} +variable "region" {} + +variable "description" { + default = "Created as example for TERSI-7228 Connections R7" +} +variable "freeform_tags" { + default = { "bar-key" = "value" } +} +variable "connection_type" { + default = "AMAZON_S3" +} +variable "display_name" { + default = "S3_TerraformTest" +} +variable "technology_type" { + default = "AMAZON_S3" +} + +variable "access_key_id" { + default = "AKIAIOSFODNN7EXAMPLE" +} + +variable "secret_access_key" { + default = "mySecret" +} + + +provider "oci" { + tenancy_ocid = var.tenancy_ocid + user_ocid = var.user_ocid + fingerprint = var.fingerprint + private_key_path = var.private_key_path + region = var.region +} +resource "oci_golden_gate_connection" "test_connection"{ + #Required + compartment_id = var.compartment_id + connection_type = var.connection_type + technology_type = var.technology_type + + display_name = var.display_name + access_key_id = var.access_key_id + secret_access_key = var.secret_access_key + + description = var.description + freeform_tags = var.freeform_tags + +} + +data "oci_golden_gate_connection" "fetched_connection" { + connection_id = oci_golden_gate_connection.test_connection.id +} + +output "connection_display_name" { + value = data.oci_golden_gate_connection.fetched_connection.display_name +} diff --git a/examples/redis/oci_cache_config_set/main.tf b/examples/redis/oci_cache_config_set/main.tf new file mode 100644 index 00000000000..b1b8960dec5 --- /dev/null +++ b/examples/redis/oci_cache_config_set/main.tf @@ -0,0 +1,182 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +variable "region" { + default = "us-phoenix-1" +} + +variable "compartment_id" {} + +variable "redis_cluster_display_name" { + type = string + default = "test-redis-cluster" +} + +variable "redis_cluster_freeform_tags" { + default = { "bar-key" = "value" } +} + +variable "redis_cluster_node_count" { + default = 5 +} + +variable "redis_cluster_node_memory_in_gbs" { + default = 2.0 +} + +variable "redis_cluster_software_version" { + default = "REDIS_7_0" +} + + +# OCI Cache ConfigSet vars +variable "oci_cache_config_set_display_name" { + type = string + default = "test-config-set" +} + +variable "oci_cache_config_set_software_version" { + type = string + default = "REDIS_7_0" +} + +variable "oci_cache_config_set_description" { + type = string + default = "Test Config Set created via Terraform" +} + +variable "oci_cache_config_set_config_key1" { + type = string + default = "maxmemory-policy" +} + +variable "oci_cache_config_set_config_value1" { + type = string + default = "allkeys-random" +} + +variable "oci_cache_config_set_config_key2" { + type = string + default = "notify-keyspace-events" +} + +variable "oci_cache_config_set_config_value2" { + type = string + default = "KEA" +} + +variable "oci_cache_config_set_freeform_tags" { + default = { "bar-key" = "value" } +} + +variable "oci_cache_config_set_state" { + default = "ACTIVE" +} + +provider "oci" { + auth = "SecurityToken" + config_file_profile = "DEFAULT" + region = var.region +} + + +resource "oci_core_vcn" "test_vcn" { + cidr_block = "10.0.0.0/16" + compartment_id = var.compartment_id +} + +resource "oci_core_security_list" "test_security_list" { + compartment_id = var.compartment_id + vcn_id = oci_core_vcn.test_vcn.id + display_name = "redis-security-list" + + // allow outbound udp traffic on a port range + egress_security_rules { + destination = "0.0.0.0/0" + protocol = "17" // udp + stateless = true + } + + // allow inbound ssh traffic from a specific port + ingress_security_rules { + protocol = "6" // tcp + source = "0.0.0.0/0" + stateless = false + } +} + +resource "oci_core_subnet" "test_subnet" { + cidr_block = "10.0.0.0/24" + compartment_id = var.compartment_id + vcn_id = oci_core_vcn.test_vcn.id + security_list_ids = [oci_core_security_list.test_security_list.id] +} + +resource "oci_redis_redis_cluster" "test_redis_cluster" { + #Required + compartment_id = var.compartment_id + display_name = var.redis_cluster_display_name + node_count = var.redis_cluster_node_count + node_memory_in_gbs = var.redis_cluster_node_memory_in_gbs + software_version = var.redis_cluster_software_version + subnet_id = oci_core_subnet.test_subnet.id + + #Optional + oci_cache_config_set_id = oci_redis_oci_cache_config_set.test_oci_cache_config_set_redis.id + freeform_tags = var.redis_cluster_freeform_tags +} + + +resource "oci_redis_oci_cache_config_set" "test_oci_cache_config_set_redis" { + #Required + compartment_id = var.compartment_id + configuration_details { + #Required + items { + #Required + config_key = var.oci_cache_config_set_config_key1 + config_value = var.oci_cache_config_set_config_value1 + } + items { + #Required + config_key = var.oci_cache_config_set_config_key2 + config_value = var.oci_cache_config_set_config_value2 + } + } + display_name = var.oci_cache_config_set_display_name + software_version = var.oci_cache_config_set_software_version + + #Optional + // TODO defined_tags = map(oci_identity_tag_namespace.tag-namespace1.name.oci_identity_tag.tag1.name, var.oci_cache_config_set_defined_tags_value) + description = var.oci_cache_config_set_description + freeform_tags = var.oci_cache_config_set_freeform_tags +} + +data "oci_redis_oci_cache_config_sets" "test_oci_cache_config_sets" { + #Optional + compartment_id = var.compartment_id + display_name = var.oci_cache_config_set_display_name + id = oci_redis_oci_cache_config_set.test_oci_cache_config_set_redis.id + software_version = var.oci_cache_config_set_software_version + state = var.oci_cache_config_set_state +} + +data "oci_redis_oci_cache_config_set" "test_oci_cache_config_set" { + oci_cache_config_set_id = oci_redis_oci_cache_config_set.test_oci_cache_config_set_redis.id +} + +resource "oci_redis_oci_cache_config_setlist_associated_oci_cache_cluster" "test_oci_cache_config_setlist_associated_oci_cache_cluster" { + #Required + oci_cache_config_set_id = oci_redis_oci_cache_config_set.test_oci_cache_config_set_redis.id +} + +data "oci_redis_oci_cache_default_config_sets" "test_oci_cache_default_config_sets" { + #Required + compartment_id = var.compartment_id +} + +data "oci_redis_oci_cache_default_config_set" "test_oci_cache_default_config_set" { + #Required + compartment_id = var.compartment_id + oci_cache_default_config_set_id = data.oci_redis_oci_cache_default_config_sets.test_oci_cache_default_config_sets.id +} diff --git a/examples/zips/adm.zip b/examples/zips/adm.zip index 77fa494e81b..bb26aa2301f 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 8bb4d42369a..b6699a4a4c5 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 a03d0715757..d27d58c049d 100644 Binary files a/examples/zips/aiDocument.zip and b/examples/zips/aiDocument.zip differ diff --git a/examples/zips/aiLanguage.zip b/examples/zips/aiLanguage.zip index 0a404db5cab..b0d00d81c6d 100644 Binary files a/examples/zips/aiLanguage.zip and b/examples/zips/aiLanguage.zip differ diff --git a/examples/zips/aiVision.zip b/examples/zips/aiVision.zip index 4ddd09f8645..c047099287f 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 5c3e469c3da..23196a01804 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 5965fa25a06..32f3f5b38f6 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 cfa60a7d017..b33747efa77 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 c4da597ddc8..d7eb57fa1ee 100644 Binary files a/examples/zips/api_gateway.zip and b/examples/zips/api_gateway.zip differ diff --git a/examples/zips/api_platform.zip b/examples/zips/api_platform.zip new file mode 100644 index 00000000000..d57480965f4 Binary files /dev/null and b/examples/zips/api_platform.zip differ diff --git a/examples/zips/apiaccesscontrol.zip b/examples/zips/apiaccesscontrol.zip index c5d6fae65a1..a5d8af63ea5 100644 Binary files a/examples/zips/apiaccesscontrol.zip and b/examples/zips/apiaccesscontrol.zip differ diff --git a/examples/zips/apm.zip b/examples/zips/apm.zip index 5484a1e3a50..396776ea56a 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 fba89af5d75..6ea13634bde 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 905299cc26b..04fb26b8ed7 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 0b8747e59b0..712008c8496 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 d92cdcac4d4..330b6fe5dba 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 a019864c2f6..d1415b86bf6 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 eaf8273c818..12bb3409076 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 abe3e53199a..727efc8a7a1 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 8cd5c1cf706..65f0f48b194 100644 Binary files a/examples/zips/budget.zip and b/examples/zips/budget.zip differ diff --git a/examples/zips/capacity_management.zip b/examples/zips/capacity_management.zip index 897093ca3f1..cc73418c6e4 100644 Binary files a/examples/zips/capacity_management.zip and b/examples/zips/capacity_management.zip differ diff --git a/examples/zips/certificatesManagement.zip b/examples/zips/certificatesManagement.zip index d0febc4c9e0..db7ad7238e5 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 7e401021384..0bca90f7d47 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 ddd10cd0103..f6230c3fd3c 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 223937414f9..e3894558f63 100644 Binary files a/examples/zips/cloudguard.zip and b/examples/zips/cloudguard.zip differ diff --git a/examples/zips/cluster_placement_groups.zip b/examples/zips/cluster_placement_groups.zip index 53a9e256802..7f05bd23f07 100644 Binary files a/examples/zips/cluster_placement_groups.zip and b/examples/zips/cluster_placement_groups.zip differ diff --git a/examples/zips/compute.zip b/examples/zips/compute.zip index 522479cd0f7..3ec7ae60aad 100644 Binary files a/examples/zips/compute.zip and b/examples/zips/compute.zip differ diff --git a/examples/zips/computecloudatcustomer.zip b/examples/zips/computecloudatcustomer.zip index 36ef0408639..0696f3c27ee 100644 Binary files a/examples/zips/computecloudatcustomer.zip and b/examples/zips/computecloudatcustomer.zip differ diff --git a/examples/zips/computeinstanceagent.zip b/examples/zips/computeinstanceagent.zip index 86bc75d5c9a..4d37badee55 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 5503ee69be9..fdb53bb016b 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 f8eb414d41c..ce34cb9cea3 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 754bcd3acc0..555db3c0e62 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 97287b79002..4eb4ecc9d26 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 04cd4508712..df33a90752a 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 7f8e2c58b83..2a6eaff192f 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 06e91a6b234..9b0531771ef 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 e86296c839f..bd1f4de199f 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 15fa48e0943..f7c6905caba 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 93f45e3525b..5a885980e57 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 62d88c43bd5..da2ebfcb9a6 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 c53e25d1fec..952bf736329 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 7dbb54e805a..33cf86d2573 100644 Binary files a/examples/zips/datascience.zip and b/examples/zips/datascience.zip differ diff --git a/examples/zips/dblm.zip b/examples/zips/dblm.zip index 925934c2517..0650961c0ef 100644 Binary files a/examples/zips/dblm.zip and b/examples/zips/dblm.zip differ diff --git a/examples/zips/dbmulticloud.zip b/examples/zips/dbmulticloud.zip index 6a23d5259e5..a27f33c4258 100644 Binary files a/examples/zips/dbmulticloud.zip and b/examples/zips/dbmulticloud.zip differ diff --git a/examples/zips/delegation_management.zip b/examples/zips/delegation_management.zip index e9aea6042a2..787fd2e851e 100644 Binary files a/examples/zips/delegation_management.zip and b/examples/zips/delegation_management.zip differ diff --git a/examples/zips/demand_signal.zip b/examples/zips/demand_signal.zip index f0ba4f466ae..f53344670a3 100644 Binary files a/examples/zips/demand_signal.zip and b/examples/zips/demand_signal.zip differ diff --git a/examples/zips/desktops.zip b/examples/zips/desktops.zip index 87c664b45e1..1e62cda796d 100644 Binary files a/examples/zips/desktops.zip and b/examples/zips/desktops.zip differ diff --git a/examples/zips/devops.zip b/examples/zips/devops.zip index b330249b54e..6acfc11bc4e 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 5a66db9ba81..4d207a08673 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 4613b07ad8b..fbdda90014b 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 d72ced8fd8e..362acb9fe9e 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 666c7328be0..07f811e0216 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 532f2f22f11..ec9e7b7f5a1 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 00d876e20e2..46b4a2d8b75 100644 Binary files a/examples/zips/fast_connect.zip and b/examples/zips/fast_connect.zip differ diff --git a/examples/zips/fleet_apps_management.zip b/examples/zips/fleet_apps_management.zip index 5aea06ad768..e7aa9f2808d 100644 Binary files a/examples/zips/fleet_apps_management.zip and b/examples/zips/fleet_apps_management.zip differ diff --git a/examples/zips/fleetsoftwareupdate.zip b/examples/zips/fleetsoftwareupdate.zip index ba27cbe709a..3e5c8ed3791 100644 Binary files a/examples/zips/fleetsoftwareupdate.zip and b/examples/zips/fleetsoftwareupdate.zip differ diff --git a/examples/zips/functions.zip b/examples/zips/functions.zip index 7b933b1ade7..7a19f4c4c48 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 192074c9e22..c2c96a47266 100644 Binary files a/examples/zips/fusionapps.zip and b/examples/zips/fusionapps.zip differ diff --git a/examples/zips/generative_ai.zip b/examples/zips/generative_ai.zip index 8b39abc760d..017c87f0008 100644 Binary files a/examples/zips/generative_ai.zip and b/examples/zips/generative_ai.zip differ diff --git a/examples/zips/generative_ai_agent.zip b/examples/zips/generative_ai_agent.zip index c33a4606ed6..6f5f7f2e836 100644 Binary files a/examples/zips/generative_ai_agent.zip and b/examples/zips/generative_ai_agent.zip differ diff --git a/examples/zips/globally_distributed_database.zip b/examples/zips/globally_distributed_database.zip index 9d97a47c517..868e1ecfc68 100644 Binary files a/examples/zips/globally_distributed_database.zip and b/examples/zips/globally_distributed_database.zip differ diff --git a/examples/zips/goldengate.zip b/examples/zips/goldengate.zip index 64522aa1236..a7e3f1be285 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 0d8da47a8c1..424cf98cda1 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 d7e10389507..9620f2b74ac 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 b8146fdc582..6fff40d7b7e 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 f0f3a69fc16..4ebef67b5b7 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 e6a99b1629a..3b3b3938846 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 dfe73982449..1c9ed6b6ced 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 7720f560ac4..da983729656 100644 Binary files a/examples/zips/jms.zip and b/examples/zips/jms.zip differ diff --git a/examples/zips/jms_java_downloads.zip b/examples/zips/jms_java_downloads.zip index 921bfab46da..b74a348a797 100644 Binary files a/examples/zips/jms_java_downloads.zip and b/examples/zips/jms_java_downloads.zip differ diff --git a/examples/zips/kms.zip b/examples/zips/kms.zip index 31b8d2e8734..dce92cb46ab 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 52ff228b12c..59a57a5db43 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 493f2b04034..c330f029d15 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 d059a5449c5..ecd410e116a 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 85af2f3866e..07b09a7f7df 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 77c6ff4774a..7bdfb293cfd 100644 Binary files a/examples/zips/logging.zip and b/examples/zips/logging.zip differ diff --git a/examples/zips/lustre_file_storage.zip b/examples/zips/lustre_file_storage.zip index c2e4863561f..4ca762e7e89 100644 Binary files a/examples/zips/lustre_file_storage.zip and b/examples/zips/lustre_file_storage.zip differ diff --git a/examples/zips/management_agent.zip b/examples/zips/management_agent.zip index 396d37a7d4b..fe3975b9903 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 17da74b884c..782cee033a1 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 d8e2c8dabb1..7d90645a97d 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 2252137af7f..534296df1d6 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 507d7482d43..9f180e6e94a 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 f9425aecfb9..622d4e21f12 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 6e25235e9fe..5e4a894e0b7 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 035118f5eb6..c5d2de2495d 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 aeed43d63b8..3d7dd2036be 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 221999a37ca..9b4dd7b3c43 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 e35d87d0269..b97e210f92d 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 8fc2c1286ad..5de1dac77ea 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 9256b28697f..e5feb7425fe 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 5e6f666f7a1..0ccee7295d1 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 bc4eb5c3c67..96c615dea0d 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 ff503add219..d2fe78f3970 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 c615a942f25..a3d24bd3ef2 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 823eb960588..8c224b8a5dc 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 60d1f3d9d33..f933818f3ba 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 3a05f04705a..d22463df7bf 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 a005e1b50a2..a4acd91c693 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 c71d25915ee..9d44521b7ae 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 68c74eeb8b5..7a1e7113f23 100644 Binary files a/examples/zips/oracle_digital_assistant.zip and b/examples/zips/oracle_digital_assistant.zip differ diff --git a/examples/zips/os_management_hub.zip b/examples/zips/os_management_hub.zip index 70e65970e28..8514c921ad7 100644 Binary files a/examples/zips/os_management_hub.zip and b/examples/zips/os_management_hub.zip differ diff --git a/examples/zips/osmanagement.zip b/examples/zips/osmanagement.zip index c7e788ba702..79d35202fe9 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 4b760b3855b..aa0439dbce8 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 45d23a98ae2..18d5e1be2cf 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 d2c2f7c7242..85fff59c408 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 0732277e7df..d4e9bdce0a3 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 ac48717374f..0e5d64ebd98 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 e32720dedbd..90a2d70caf6 100644 Binary files a/examples/zips/pic.zip and b/examples/zips/pic.zip differ diff --git a/examples/zips/psql.zip b/examples/zips/psql.zip index 020eb805c6a..e2dcb5b7d32 100644 Binary files a/examples/zips/psql.zip and b/examples/zips/psql.zip differ diff --git a/examples/zips/queue.zip b/examples/zips/queue.zip index 7f6145b8f1a..d41b5f4c086 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 526d8d35f5d..be43ed5e80e 100644 Binary files a/examples/zips/recovery.zip and b/examples/zips/recovery.zip differ diff --git a/examples/zips/redis.zip b/examples/zips/redis.zip index 8c18c06451e..c3fae9d9a60 100644 Binary files a/examples/zips/redis.zip and b/examples/zips/redis.zip differ diff --git a/examples/zips/resourcemanager.zip b/examples/zips/resourcemanager.zip index 90c73027f0b..3b7796af81f 100644 Binary files a/examples/zips/resourcemanager.zip and b/examples/zips/resourcemanager.zip differ diff --git a/examples/zips/resourcescheduler.zip b/examples/zips/resourcescheduler.zip index dab38e20c07..97f563edf45 100644 Binary files a/examples/zips/resourcescheduler.zip and b/examples/zips/resourcescheduler.zip differ diff --git a/examples/zips/security_attribute.zip b/examples/zips/security_attribute.zip index fa5b5ab5cc7..b896e6be96f 100644 Binary files a/examples/zips/security_attribute.zip and b/examples/zips/security_attribute.zip differ diff --git a/examples/zips/serviceManagerProxy.zip b/examples/zips/serviceManagerProxy.zip index 3a41dd25b30..e9a4d86148a 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 a15a30d3fe7..d4376419145 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 f9d4acd5792..e8f00f38e52 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 f378be50c72..fb106e6ad34 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 b2fb7ec0b2b..befb9d73bd8 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 159abd296dd..188412d3daa 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 c2176cac3b7..c5cab1c88ee 100644 Binary files a/examples/zips/streaming.zip and b/examples/zips/streaming.zip differ diff --git a/examples/zips/tenantmanagercontrolplane.zip b/examples/zips/tenantmanagercontrolplane.zip index d10d0d204c4..78c832b3d3b 100644 Binary files a/examples/zips/tenantmanagercontrolplane.zip and b/examples/zips/tenantmanagercontrolplane.zip differ diff --git a/examples/zips/usage_proxy.zip b/examples/zips/usage_proxy.zip index 75a050eef24..69ac3673e16 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 c6bf3fa8671..948ad140034 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 cfe040b2f46..d20fd04cf88 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 ab4980cf2a8..cda061514ef 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 1edf9019df9..a111441c3f2 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 3b1d13d52f6..0f93794650a 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 ea9f32bbdae..fece08f0863 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 f84d4068d2e..8d01fc6eb38 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 a6c964469f6..633e2061b94 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/examples/zips/wlms.zip b/examples/zips/wlms.zip index ca68593a70a..a8139f1ae9c 100644 Binary files a/examples/zips/wlms.zip and b/examples/zips/wlms.zip differ diff --git a/examples/zips/zpr.zip b/examples/zips/zpr.zip index e3bf09c02f6..93a058c1d72 100644 Binary files a/examples/zips/zpr.zip and b/examples/zips/zpr.zip differ diff --git a/go.mod b/go.mod index 2a96c523ba3..8ecb1527816 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/hashicorp/terraform-plugin-mux v0.18.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1 github.com/hashicorp/terraform-plugin-testing v1.9.0 - github.com/oracle/oci-go-sdk/v65 v65.97.1 + github.com/oracle/oci-go-sdk/v65 v65.98.0 github.com/stretchr/testify v1.9.0 golang.org/x/mod v0.24.0 gopkg.in/yaml.v2 v2.4.0 diff --git a/go.sum b/go.sum index bb87010b85a..b7f870950de 100644 --- a/go.sum +++ b/go.sum @@ -186,6 +186,8 @@ github.com/oracle/oci-go-sdk/v65 v65.97.0 h1:QyOOg/qCIY6vBSD+GHUfEQaJk9Wbl8a6VES github.com/oracle/oci-go-sdk/v65 v65.97.0/go.mod h1:u6XRPsw9tPziBh76K7GrrRXPa8P8W3BQeqJ6ZZt9VLA= github.com/oracle/oci-go-sdk/v65 v65.97.1 h1:tuYBKZWiFgHBxAot0vJGe934Kh1arRvW2QdMUnI/CJA= github.com/oracle/oci-go-sdk/v65 v65.97.1/go.mod h1:RGiXfpDDmRRlLtqlStTzeBjjdUNXyqm3KXKyLCm3A/Q= +github.com/oracle/oci-go-sdk/v65 v65.98.0 h1:ZKsy97KezSiYSN1Fml4hcwjpO+wq01rjBkPqIiUejVc= +github.com/oracle/oci-go-sdk/v65 v65.98.0/go.mod h1:RGiXfpDDmRRlLtqlStTzeBjjdUNXyqm3KXKyLCm3A/Q= github.com/pjbgf/sha1cd v0.3.2 h1:a9wb0bp1oC2TGwStyn0Umc/IGKQnEgF0vVaZ8QF8eo4= github.com/pjbgf/sha1cd v0.3.2/go.mod h1:zQWigSxVmsHEZow5qaLtPYxpcKMMQpa09ixqBxuCS6A= github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8= diff --git a/internal/client/redis_clients.go b/internal/client/redis_clients.go index 51f26f597f1..a5015ca02fb 100644 --- a/internal/client/redis_clients.go +++ b/internal/client/redis_clients.go @@ -10,11 +10,53 @@ import ( ) func init() { + RegisterOracleClient("oci_redis.OciCacheConfigSetClient", &OracleClient{InitClientFn: initRedisOciCacheConfigSetClient}) + RegisterOracleClient("oci_redis.OciCacheDefaultConfigSetClient", &OracleClient{InitClientFn: initRedisOciCacheDefaultConfigSetClient}) RegisterOracleClient("oci_redis.OciCacheUserClient", &OracleClient{InitClientFn: initRedisOciCacheUserClient}) RegisterOracleClient("oci_redis.RedisClusterClient", &OracleClient{InitClientFn: initRedisRedisClusterClient}) RegisterOracleClient("oci_redis.RedisIdentityClient", &OracleClient{InitClientFn: initRedisRedisIdentityClient}) } +func initRedisOciCacheConfigSetClient(configProvider oci_common.ConfigurationProvider, configureClient ConfigureClient, serviceClientOverrides ServiceClientOverrides) (interface{}, error) { + client, err := oci_redis.NewOciCacheConfigSetClientWithConfigurationProvider(configProvider) + if err != nil { + return nil, err + } + err = configureClient(&client.BaseClient) + if err != nil { + return nil, err + } + + if serviceClientOverrides.HostUrlOverride != "" { + client.Host = serviceClientOverrides.HostUrlOverride + } + return &client, nil +} + +func (m *OracleClients) OciCacheConfigSetClient() *oci_redis.OciCacheConfigSetClient { + return m.GetClient("oci_redis.OciCacheConfigSetClient").(*oci_redis.OciCacheConfigSetClient) +} + +func initRedisOciCacheDefaultConfigSetClient(configProvider oci_common.ConfigurationProvider, configureClient ConfigureClient, serviceClientOverrides ServiceClientOverrides) (interface{}, error) { + client, err := oci_redis.NewOciCacheDefaultConfigSetClientWithConfigurationProvider(configProvider) + if err != nil { + return nil, err + } + err = configureClient(&client.BaseClient) + if err != nil { + return nil, err + } + + if serviceClientOverrides.HostUrlOverride != "" { + client.Host = serviceClientOverrides.HostUrlOverride + } + return &client, nil +} + +func (m *OracleClients) OciCacheDefaultConfigSetClient() *oci_redis.OciCacheDefaultConfigSetClient { + return m.GetClient("oci_redis.OciCacheDefaultConfigSetClient").(*oci_redis.OciCacheDefaultConfigSetClient) +} + func initRedisOciCacheUserClient(configProvider oci_common.ConfigurationProvider, configureClient ConfigureClient, serviceClientOverrides ServiceClientOverrides) (interface{}, error) { client, err := oci_redis.NewOciCacheUserClientWithConfigurationProvider(configProvider) if err != nil { diff --git a/internal/globalvar/version.go b/internal/globalvar/version.go index c2961571521..8b76c175232 100644 --- a/internal/globalvar/version.go +++ b/internal/globalvar/version.go @@ -7,8 +7,8 @@ import ( "log" ) -const Version = "7.13.0" -const ReleaseDate = "2025-08-06" +const Version = "7.14.0" +const ReleaseDate = "2025-08-13" func PrintVersion() { log.Printf("[INFO] terraform-provider-oci %s\n", Version) diff --git a/internal/integrationtest/core_instance_configuration_test.go b/internal/integrationtest/core_instance_configuration_test.go index e81d68203a3..4a3d5950369 100644 --- a/internal/integrationtest/core_instance_configuration_test.go +++ b/internal/integrationtest/core_instance_configuration_test.go @@ -49,6 +49,7 @@ var ( "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, "instance_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsRepresentation}, "source": acctest.Representation{RepType: acctest.Optional, Create: `NONE`}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreDefinedTags}, } CoreInstanceConfigurationRepresentationWithOptions = map[string]interface{}{ @@ -58,6 +59,7 @@ var ( "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, "instance_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsWithOptionsRepresentation}, "source": acctest.Representation{RepType: acctest.Optional, Create: `NONE`}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreDefinedTags}, } CoreInstanceConfigurationRepresentationImageFilters = map[string]interface{}{ @@ -67,6 +69,7 @@ var ( "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, "instance_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsRepresentation}, "source": acctest.Representation{RepType: acctest.Optional, Create: `NONE`}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreDefinedTags}, } CoreInstanceConfigurationRepresentationIPv6 = map[string]interface{}{ @@ -76,6 +79,7 @@ var ( "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, "instance_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsRepresentationIpv6}, "source": acctest.Representation{RepType: acctest.Optional, Create: `NONE`}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreDefinedTags}, } CoreInstanceConfigurationFromInstanceRepresentation = map[string]interface{}{ @@ -85,6 +89,7 @@ var ( "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, "instance_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_core_instance.test_instance.id}`}, "source": acctest.Representation{RepType: acctest.Optional, Create: `INSTANCE`}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreDefinedTags}, } CoreInstanceConfigurationInstanceDetailsLaunchRepresentation = map[string]interface{}{ "instance_type": acctest.Representation{RepType: acctest.Required, Create: `compute`}, @@ -159,6 +164,7 @@ var ( CoreInstanceConfigurationInstanceDetailsLaunchDetailsRepresentation = map[string]interface{}{ "availability_domain": acctest.Representation{RepType: acctest.Optional, Create: `${data.oci_identity_availability_domains.test_availability_domains.availability_domains.0.name}`}, "compartment_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.compartment_id}`}, + "compute_cluster_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_core_compute_cluster.test_compute_cluster.id}`}, "create_vnic_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsLaunchDetailsCreateVnicDetailsRepresentation}, "availability_config": acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationAvailabilityConfigRepresentation}, "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")}`}, @@ -175,6 +181,7 @@ var ( "is_pv_encryption_in_transit_enabled": acctest.Representation{RepType: acctest.Optional, Create: `false`}, "dedicated_vm_host_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_core_dedicated_vm_host.test_dedicated_vm_host.id}`}, "launch_mode": acctest.Representation{RepType: acctest.Optional, Create: `NATIVE`}, + "placement_constraint_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsOptionsLaunchDetailsPlacementConstraintDetailsRepresentation}, "preferred_maintenance_action": acctest.Representation{RepType: acctest.Optional, Create: `LIVE_MIGRATE`}, "security_attributes": acctest.Representation{RepType: acctest.Optional, Create: map[string]any{"Oracle-DataSecurity-ZPR": map[string]any{"MaxEgressCount": map[string]string{"value": "42", "mode": "audit"}}}}, "shape_config": acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceShapeConfigRepresentation}, @@ -288,6 +295,10 @@ var ( "type": acctest.Representation{RepType: acctest.Required, Create: `WINDOWS`}, "license_type": acctest.Representation{RepType: acctest.Optional, Create: `OCI_PROVIDED`}, } + CoreInstanceConfigurationInstanceDetailsOptionsLaunchDetailsPlacementConstraintDetailsRepresentation = map[string]interface{}{ + "compute_host_group_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compute_host_group_id}`}, + "type": acctest.Representation{RepType: acctest.Required, Create: `HOST_GROUP`}, + } CoreInstanceConfigurationInstanceDetailsLaunchDetailsSourceDetailsRepresentation = map[string]interface{}{ "source_type": acctest.Representation{RepType: acctest.Required, Create: `image`}, "image_id": acctest.Representation{RepType: acctest.Required, Create: `${var.InstanceImageOCID[var.region]}`}, @@ -362,7 +373,8 @@ var ( "id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_core_boot_volume.test_boot_volume.id}`}, } - CoreInstanceConfigurationResourceDependenciesWithoutKms = acctest.GenerateResourceFromRepresentationMap("oci_core_boot_volume", "test_boot_volume", acctest.Required, acctest.Create, CoreBootVolumeRepresentation) + + CoreInstanceConfigurationResourceDependenciesWithoutKms = acctest.GenerateResourceFromRepresentationMap("oci_core_compute_cluster", "test_compute_cluster", acctest.Required, acctest.Create, CoreComputeClusterRepresentation) + + acctest.GenerateResourceFromRepresentationMap("oci_core_boot_volume", "test_boot_volume", acctest.Required, acctest.Create, CoreBootVolumeRepresentation) + 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_core_dedicated_vm_host", "test_dedicated_vm_host", acctest.Required, acctest.Create, CoreDedicatedVmHostRepresentation) + @@ -405,6 +417,9 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { compartmentIdU := utils.GetEnvSettingWithDefault("compartment_id_for_update", compartmentId) compartmentIdUVariableStr := fmt.Sprintf("variable \"compartment_id_for_update\" { default = \"%s\" }\n", compartmentIdU) + computeHostGroupId := utils.GetEnvSettingWithBlankDefault("compute_host_group_id") + computeHostGroupIdVariableStr := fmt.Sprintf("variable \"compute_host_group_id\" { default = \"%s\" }\n", computeHostGroupId) + resourceName := "oci_core_instance_configuration.test_instance_configuration" datasourceName := "data.oci_core_instance_configurations.test_instance_configurations" singularDatasourceName := "data.oci_core_instance_configuration.test_instance_configuration" @@ -416,7 +431,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { acctest.ResourceTest(t, testAccCheckCoreInstanceConfigurationDestroy, []resource.TestStep{ // verify Create { - Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, CoreInstanceConfigurationRepresentation), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), @@ -436,7 +451,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { }, // verify create regular instance configuration with imageFilter details { - Config: config + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.GetUpdatedRepresentationCopy("instance_details", acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsLaunchRepresentationWithFilterDetails}, CoreInstanceConfigurationRepresentationImageFilters)), Check: acctest.ComposeAggregateTestCheckFuncWrapper( @@ -483,7 +498,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { }, // verify Create from instance_id { - Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, CoreInstanceConfigurationFromInstanceRepresentation), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), @@ -505,7 +520,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { // verify Create with optionals launch_details for E3 flex micro shape { - Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + utils.FlexVmImageIdsVariable + + Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + utils.FlexVmImageIdsVariable + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.GetUpdatedRepresentationCopy("instance_details", acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsLaunchRepresentationForFlexShape}, CoreInstanceConfigurationRepresentation)), Check: acctest.ComposeAggregateTestCheckFuncWrapper( @@ -569,7 +584,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { // verify Create with optionals launch_details for E4 dense shape { - Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + imageIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + imageIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.GetUpdatedRepresentationCopy("instance_details", acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsLaunchRepresentationForDenseShape}, CoreInstanceConfigurationRepresentation)), Check: acctest.ComposeAggregateTestCheckFuncWrapper( @@ -620,7 +635,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { }, // verify Create with optionals launch_details { - Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.GetUpdatedRepresentationCopy("instance_details", acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsLaunchRepresentation}, CoreInstanceConfigurationRepresentation)), Check: acctest.ComposeAggregateTestCheckFuncWrapper( @@ -685,7 +700,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { // verify Update to the compartment (the compartment will be switched back in the next step) { - Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + compartmentIdUVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + compartmentIdUVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.RepresentationCopyWithNewProperties( acctest.GetUpdatedRepresentationCopy("instance_details", acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsLaunchRepresentation}, CoreInstanceConfigurationRepresentation), map[string]interface{}{"compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id_for_update}`}})), @@ -732,7 +747,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { }, // verify recreate with optionals block_volumes.create_details { - Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.GetUpdatedRepresentationCopy("instance_details", acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsBlockRepresentation}, CoreInstanceConfigurationRepresentation)), Check: acctest.ComposeAggregateTestCheckFuncWrapper( @@ -770,7 +785,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { }, // verify recreate with optionals block_volumes.create_details to block_volumes.attach_details { - Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.GetUpdatedRepresentationCopy("instance_details", acctest.RepresentationGroup{RepType: acctest.Optional, Group: acctest.GetUpdatedRepresentationCopy("block_volumes", acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsBlockVolumesAttachRepresentation}, CoreInstanceConfigurationInstanceDetailsBlockRepresentation)}, CoreInstanceConfigurationRepresentation)), Check: acctest.ComposeAggregateTestCheckFuncWrapper( @@ -801,7 +816,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { }, // verify recreate with optionals block_volumes.create_details to block_volumes.attach_details-paravirtualized { - Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.GetUpdatedRepresentationCopy("instance_details", acctest.RepresentationGroup{RepType: acctest.Optional, Group: acctest.GetUpdatedRepresentationCopy("block_volumes", acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsParavirtualizedBlockVolumeAttachRepresentation}, CoreInstanceConfigurationInstanceDetailsBlockRepresentation)}, @@ -839,7 +854,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { }, // verify Create with optionals secondary_vnics { - Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, CoreInstanceConfigurationRepresentation), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), @@ -871,7 +886,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { // verify updates to updatable parameters { - Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Update, CoreInstanceConfigurationRepresentation), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), @@ -906,7 +921,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { // verify datasource { Config: config + - vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + vaultIdVariableStr + kmsKeyIdVariableStr + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateDataSourceFromRepresentationMap("oci_core_instance_configurations", "test_instance_configurations", acctest.Optional, acctest.Update, CoreCoreInstanceConfigurationDataSourceRepresentation) + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Update, CoreInstanceConfigurationRepresentation), Check: acctest.ComposeAggregateTestCheckFuncWrapper( @@ -923,7 +938,7 @@ func TestCoreInstanceConfigurationResource_basic(t *testing.T) { // verify singular datasource { Config: config + - vaultIdVariableStr + kmsKeyIdVariableStr + acctest.GenerateDataSourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Required, acctest.Create, CoreCoreInstanceConfigurationSingularDataSourceRepresentation) + + vaultIdVariableStr + kmsKeyIdVariableStr + computeHostGroupIdVariableStr + acctest.GenerateDataSourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Required, acctest.Create, CoreCoreInstanceConfigurationSingularDataSourceRepresentation) + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependenciesWithoutKms + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.GetUpdatedRepresentationCopy("instance_details", acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsLaunchRepresentation}, CoreInstanceConfigurationRepresentation)), @@ -982,6 +997,9 @@ func TestCoreInstanceConfigurationResourceOptions_basic(t *testing.T) { compartmentIdU := utils.GetEnvSettingWithDefault("compartment_id_for_update", compartmentId) compartmentIdUVariableStr := fmt.Sprintf("variable \"compartment_id_for_update\" { default = \"%s\" }\n", compartmentIdU) + computeHostGroupId := utils.GetEnvSettingWithBlankDefault("compute_host_group_id") + computeHostGroupIdVariableStr := fmt.Sprintf("variable \"compute_host_group_id\" { default = \"%s\" }\n", computeHostGroupId) + resourceName := "oci_core_instance_configuration.test_instance_configuration" var resId, resId2 string @@ -991,7 +1009,7 @@ func TestCoreInstanceConfigurationResourceOptions_basic(t *testing.T) { acctest.ResourceTest(t, testAccCheckCoreInstanceConfigurationDestroy, []resource.TestStep{ // verify Create with optionals to test instance options { - Config: config + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, CoreInstanceConfigurationRepresentationWithOptions), Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), @@ -1004,6 +1022,7 @@ func TestCoreInstanceConfigurationResourceOptions_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.#", "1"), resource.TestCheckResourceAttrSet(resourceName, "instance_details.0.options.0.launch_details.0.availability_domain"), resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.compartment_id", compartmentId), + resource.TestCheckResourceAttrSet(resourceName, "instance_details.0.options.0.launch_details.0.compute_cluster_id"), resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.create_vnic_details.#", "1"), resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.create_vnic_details.0.assign_public_ip", "false"), resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.create_vnic_details.0.assign_private_dns_record", "true"), @@ -1014,6 +1033,9 @@ func TestCoreInstanceConfigurationResourceOptions_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.create_vnic_details.0.security_attributes.%", "1"), resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.create_vnic_details.0.skip_source_dest_check", "false"), resource.TestCheckResourceAttrSet(resourceName, "instance_details.0.options.0.launch_details.0.create_vnic_details.0.subnet_id"), + resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.placement_constraint_details.#", "1"), + resource.TestCheckResourceAttrSet(resourceName, "instance_details.0.options.0.launch_details.0.placement_constraint_details.0.compute_host_group_id"), + resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.placement_constraint_details.0.type", "HOST_GROUP"), resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.display_name", "backend-servers"), resource.TestCheckResourceAttrSet(resourceName, "time_created"), func(s *terraform.State) (err error) { @@ -1029,7 +1051,7 @@ func TestCoreInstanceConfigurationResourceOptions_basic(t *testing.T) { }, // verify Update to the compartment { - Config: config + compartmentIdVariableStr + compartmentIdUVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + compartmentIdVariableStr + compartmentIdUVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.RepresentationCopyWithNewProperties( acctest.GetUpdatedRepresentationCopy("instance_details", acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsWithOptionsRepresentation}, CoreInstanceConfigurationRepresentationWithOptions), map[string]interface{}{"compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id_for_update}`}})), @@ -1043,6 +1065,7 @@ func TestCoreInstanceConfigurationResourceOptions_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.#", "1"), resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.#", "1"), resource.TestCheckResourceAttrSet(resourceName, "instance_details.0.options.0.launch_details.0.availability_domain"), + resource.TestCheckResourceAttrSet(resourceName, "instance_details.0.options.0.launch_details.0.compute_cluster_id"), resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.compartment_id", compartmentId), resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.create_vnic_details.#", "1"), resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.create_vnic_details.0.assign_public_ip", "false"), @@ -1054,6 +1077,9 @@ func TestCoreInstanceConfigurationResourceOptions_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.create_vnic_details.0.security_attributes.%", "1"), resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.create_vnic_details.0.skip_source_dest_check", "false"), resource.TestCheckResourceAttrSet(resourceName, "instance_details.0.options.0.launch_details.0.create_vnic_details.0.subnet_id"), + resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.placement_constraint_details.#", "1"), + resource.TestCheckResourceAttrSet(resourceName, "instance_details.0.options.0.launch_details.0.placement_constraint_details.0.compute_host_group_id"), + resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.placement_constraint_details.0.type", "HOST_GROUP"), resource.TestCheckResourceAttr(resourceName, "instance_details.0.options.0.launch_details.0.display_name", "backend-servers"), resource.TestCheckResourceAttrSet(resourceName, "time_created"), @@ -1068,7 +1094,7 @@ func TestCoreInstanceConfigurationResourceOptions_basic(t *testing.T) { }, // verify recreate with optionals block_volumes.create_details { - Config: config + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.GetUpdatedRepresentationCopy("instance_details", acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsWithOptionsAndBlockVolumesRepresentation}, CoreInstanceConfigurationRepresentationWithOptions)), Check: acctest.ComposeAggregateTestCheckFuncWrapper( @@ -1106,7 +1132,7 @@ func TestCoreInstanceConfigurationResourceOptions_basic(t *testing.T) { }, // verify Create with imageFilter details for instance Options { - Config: config + compartmentIdVariableStr + CoreInstanceConfigurationResourceDependencies + + Config: config + compartmentIdVariableStr + computeHostGroupIdVariableStr + CoreInstanceConfigurationResourceDependencies + acctest.GenerateResourceFromRepresentationMap("oci_core_instance_configuration", "test_instance_configuration", acctest.Optional, acctest.Create, acctest.GetUpdatedRepresentationCopy("instance_details", acctest.RepresentationGroup{RepType: acctest.Optional, Group: CoreInstanceConfigurationInstanceDetailsWithOptionsAndFilterDetailsRepresentation}, CoreInstanceConfigurationRepresentationWithOptions)), Check: acctest.ComposeAggregateTestCheckFuncWrapper( diff --git a/internal/integrationtest/core_instance_resource_test.go b/internal/integrationtest/core_instance_resource_test.go index 4bc39fa7ae6..63b81ca7b95 100644 --- a/internal/integrationtest/core_instance_resource_test.go +++ b/internal/integrationtest/core_instance_resource_test.go @@ -2602,6 +2602,137 @@ func (s *ResourceCoreInstanceTestSuite) TestAccResourceCoreInstance_launchOption }) } +func TestResourceCoreInstance_UpdateSecurityAttributes(t *testing.T) { + httpreplay.SetScenario("TestAccResourceCoreInstance_securityAttributes") + defer httpreplay.SaveScenario() + + instanceName := "t" + instanceResourceKey := "oci_core_instance." + instanceName + + subnetConfig := acctest.GenerateResourceFromRepresentationMap("oci_core_subnet", "test_subnet", + acctest.Required, acctest.Create, acctest.RepresentationCopyWithNewProperties(CoreSubnetRepresentation, + map[string]interface{}{ + "dns_label": acctest.Representation{RepType: acctest.Required, Create: "dnslabel"}, + })) + vcnConfig := acctest.GenerateResourceFromRepresentationMap("oci_core_vcn", "test_vcn", + acctest.Required, acctest.Create, acctest.RepresentationCopyWithNewProperties(CoreVcnRepresentation, + map[string]interface{}{ + "dns_label": acctest.Representation{RepType: acctest.Required, Create: "dnslabel"}, + })) + AvailabilityDomainConfig := AvailabilityDomainConfig + imageConfig := utils.OciImageIdsVariable + instanceCreateConfig := acctest.GenerateResourceFromRepresentationMap("oci_core_instance", instanceName, + acctest.Required, acctest.Create, CoreInstanceRepresentation) + + securityAttributesInstanceConfig := acctest.GenerateResourceFromRepresentationMap("oci_core_instance", + instanceName, acctest.Required, acctest.Create, + acctest.RepresentationCopyWithNewProperties(CoreInstanceRepresentation, map[string]interface{}{ + "security_attributes": acctest.Representation{RepType: acctest.Required, Create: map[string]string{ + "oracle-zpr.sensitivity.value": "low", + "oracle-zpr.sensitivity.mode": "enforce", + }}, + })) + changedSecurityAttributesConfig := acctest.GenerateResourceFromRepresentationMap("oci_core_instance", + instanceName, acctest.Required, acctest.Create, + acctest.RepresentationCopyWithNewProperties(CoreInstanceRepresentation, map[string]interface{}{ + "security_attributes": acctest.Representation{RepType: acctest.Required, Create: map[string]string{ + "oracle-zpr.sensitivity.value": "medium", + "oracle-zpr.sensitivity.mode": "enforce", + }}, + })) + deletedSecurityAttributesConfig := acctest.GenerateResourceFromRepresentationMap("oci_core_instance", + instanceName, acctest.Required, acctest.Create, + acctest.RepresentationCopyWithNewProperties(CoreInstanceRepresentation, map[string]interface{}{ + "security_attributes": acctest.Representation{RepType: acctest.Required, Create: map[string]string{}}, + })) + securityAttributesTimeoutConfig := acctest.GenerateResourceFromRepresentationMap("oci_core_instance", + instanceName, acctest.Required, acctest.Create, + acctest.RepresentationCopyWithNewProperties(CoreInstanceRepresentation, map[string]interface{}{ + "security_attributes": acctest.Representation{RepType: acctest.Required, Create: map[string]string{ + "oracle-zpr.sensitivity.value": "low", + "oracle-zpr.sensitivity.mode": "enforce", + }}, + "timeouts": acctest.RepresentationGroup{RepType: acctest.Required, Group: map[string]interface{}{ + "update": acctest.Representation{RepType: acctest.Required, Create: "1s"}, + }}, + })) + + config := acctest.LegacyTestProviderConfig() + AvailabilityDomainConfig + imageConfig + subnetConfig + vcnConfig + + var instanceId string + resource.Test(t, resource.TestCase{ + Providers: map[string]*schema.Provider{ + "oci": acctest.TestAccProvider, + }, + CheckDestroy: testAccCheckCoreInstanceDestroy, + Steps: []resource.TestStep{ + { // Create an instance + Config: config + instanceCreateConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + func(s *terraform.State) (err error) { + instanceId, err = acctest.FromInstanceState(s, instanceResourceKey, "id") + return err + }, + ), + }, + { // Verify add security_attributes + Config: config + securityAttributesInstanceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(instanceResourceKey, "security_attributes.%", "2"), + resource.TestCheckResourceAttr(instanceResourceKey, "security_attributes.oracle-zpr.sensitivity.value", "low"), + resource.TestCheckResourceAttr(instanceResourceKey, "security_attributes.oracle-zpr.sensitivity.mode", "enforce"), + func(ts *terraform.State) (err error) { + newId, err := acctest.FromInstanceState(ts, instanceResourceKey, "id") + if newId != instanceId { + return fmt.Errorf("expected same instance ocid, got different") + } + return err + }, + ), + }, + { // Verify change security_attributes + Config: config + changedSecurityAttributesConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(instanceResourceKey, "security_attributes.%", "2"), + resource.TestCheckResourceAttr(instanceResourceKey, "security_attributes.oracle-zpr.sensitivity.value", "medium"), + resource.TestCheckResourceAttr(instanceResourceKey, "security_attributes.oracle-zpr.sensitivity.mode", "enforce"), + func(ts *terraform.State) (err error) { + newId, err := acctest.FromInstanceState(ts, instanceResourceKey, "id") + if newId != instanceId { + return fmt.Errorf("expected same instance ocid, got different") + } + return err + }, + ), + }, + { // Verify remove security_attributes + Config: config + deletedSecurityAttributesConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(instanceResourceKey, "security_attributes.%", "0"), + func(ts *terraform.State) (err error) { + newId, err := acctest.FromInstanceState(ts, instanceResourceKey, "id") + if newId != instanceId { + return fmt.Errorf("expected same instance ocid, got different") + } + return err + }, + ), + }, + { // Verify update timeout + Config: config + securityAttributesTimeoutConfig, + Check: func(ts *terraform.State) (err error) { + newId, err := acctest.FromInstanceState(ts, instanceResourceKey, "id") + if newId != instanceId { + return fmt.Errorf("expected same instance ocid, got different") + } + return err + }, + ExpectError: regexp.MustCompile("Timed out waiting for configuration to reach specified condition"), + }, + }, + }) +} + // issue-routing-tag: core/computeSharedOwnershipVmAndBm func TestAccResourceCoreInstance_nvmeVMShape(t *testing.T) { httpreplay.SetScenario("TestAccResourceCoreInstance_nvmeVMShape") diff --git a/internal/integrationtest/core_instance_test.go b/internal/integrationtest/core_instance_test.go index f9eb3be6308..3d4b58637d7 100644 --- a/internal/integrationtest/core_instance_test.go +++ b/internal/integrationtest/core_instance_test.go @@ -338,7 +338,7 @@ var ( "type": acctest.Representation{RepType: acctest.Required, Create: `bootVolume`}, } CoreInstanceSourceDetailsRepresentation = map[string]interface{}{ - "source_id": acctest.Representation{RepType: acctest.Required, Create: `${var.InstanceImageOCID[var.region]`}, + "source_id": acctest.Representation{RepType: acctest.Required, Create: `${var.InstanceImageOCID[var.region]}`}, "source_type": acctest.Representation{RepType: acctest.Required, Create: `image`, Update: `image`}, "boot_volume_size_in_gbs": acctest.Representation{RepType: acctest.Optional, Create: `60`, Update: `70`}, "boot_volume_vpus_per_gb": acctest.Representation{RepType: acctest.Optional, Create: `10`}, diff --git a/internal/integrationtest/core_vcn_resource_test.go b/internal/integrationtest/core_vcn_resource_test.go index b8627f6edf0..167301be54e 100644 --- a/internal/integrationtest/core_vcn_resource_test.go +++ b/internal/integrationtest/core_vcn_resource_test.go @@ -217,6 +217,131 @@ func (s *ResourceCoreVirtualNetworkTestSuite) TestAccResourceCoreVirtualNetwork_ }) } +func (s *ResourceCoreVirtualNetworkTestSuite) TestAccResourceCoreVirtualNetwork_ipv6() { + var resId string + resource.Test(s.T(), resource.TestCase{ + Providers: s.Providers, + Steps: []resource.TestStep{ + // test Create non ipv6enabled vcn + { + Config: s.Config + ` + resource "oci_core_virtual_network" "t" { + cidr_block = "10.0.0.0/16" + compartment_id = "${var.compartment_id}" + }`, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(s.ResourceName, "default_route_table_id"), + resource.TestCheckResourceAttrSet(s.ResourceName, "default_security_list_id"), + resource.TestCheckResourceAttrSet(s.ResourceName, "display_name"), + resource.TestCheckResourceAttrSet(s.ResourceName, "id"), + resource.TestCheckResourceAttr(s.ResourceName, "cidr_block", "10.0.0.0/16"), + resource.TestCheckResourceAttr(s.ResourceName, "state", string(core.VcnLifecycleStateAvailable)), + resource.TestCheckResourceAttr(s.ResourceName, "is_ipv6enabled", "false"), + resource.TestCheckNoResourceAttr(s.ResourceName, "dns_label"), + resource.TestCheckNoResourceAttr(s.ResourceName, "vcn_domain_name"), + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, "oci_core_virtual_network.t", "id") + return err + }, + ), + }, + // test Update with ULA prefix + { + Config: s.Config + ` + resource "oci_core_virtual_network" "t" { + cidr_block = "10.0.0.0/16" + compartment_id = "${var.compartment_id}" + is_ipv6enabled = true + is_oracle_gua_allocation_enabled = false + ipv6private_cidr_blocks = ["fc00::/48"] + }`, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(s.ResourceName, "default_route_table_id"), + resource.TestCheckResourceAttrSet(s.ResourceName, "default_security_list_id"), + resource.TestCheckResourceAttrSet(s.ResourceName, "display_name"), + resource.TestCheckResourceAttrSet(s.ResourceName, "id"), + resource.TestCheckResourceAttr(s.ResourceName, "cidr_block", "10.0.0.0/16"), + resource.TestCheckResourceAttr(s.ResourceName, "state", string(core.VcnLifecycleStateAvailable)), + resource.TestCheckResourceAttr(s.ResourceName, "ipv6private_cidr_blocks.#", "1"), + resource.TestCheckResourceAttr(s.ResourceName, "is_ipv6enabled", "true"), + resource.TestCheckResourceAttr(s.ResourceName, "ipv6cidr_blocks.#", "0"), + resource.TestCheckNoResourceAttr(s.ResourceName, "dns_label"), + resource.TestCheckNoResourceAttr(s.ResourceName, "vcn_domain_name"), + func(s *terraform.State) (err error) { + resId2, err := acctest.FromInstanceState(s, "oci_core_virtual_network.t", "id") + if resId != resId2 { + return fmt.Errorf("expected same vcn ocid, got different") + } + return err + }, + ), + }, + // Step add GUA cidr + { + Config: s.Config + ` + resource "oci_core_virtual_network" "t" { + cidr_block = "10.0.0.0/16" + compartment_id = "${var.compartment_id}" + is_ipv6enabled = true + is_oracle_gua_allocation_enabled = true + ipv6private_cidr_blocks = ["fc00::/48"] + }`, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(s.ResourceName, "default_route_table_id"), + resource.TestCheckResourceAttrSet(s.ResourceName, "default_security_list_id"), + resource.TestCheckResourceAttrSet(s.ResourceName, "display_name"), + resource.TestCheckResourceAttrSet(s.ResourceName, "id"), + resource.TestCheckResourceAttr(s.ResourceName, "cidr_block", "10.0.0.0/16"), + resource.TestCheckResourceAttr(s.ResourceName, "state", string(core.VcnLifecycleStateAvailable)), + resource.TestCheckResourceAttr(s.ResourceName, "ipv6private_cidr_blocks.#", "1"), + resource.TestCheckResourceAttr(s.ResourceName, "ipv6cidr_blocks.#", "1"), + resource.TestCheckResourceAttr(s.ResourceName, "is_ipv6enabled", "true"), + resource.TestCheckNoResourceAttr(s.ResourceName, "dns_label"), + resource.TestCheckNoResourceAttr(s.ResourceName, "vcn_domain_name"), + func(s *terraform.State) (err error) { + resId2, err := acctest.FromInstanceState(s, "oci_core_virtual_network.t", "id") + if resId != resId2 { + return fmt.Errorf("expected same vcn ocid, got different") + } + return err + }, + ), + }, + // Step remove ULA cidr + { + Config: s.Config + ` + resource "oci_core_virtual_network" "t" { + cidr_block = "10.0.0.0/16" + compartment_id = "${var.compartment_id}" + is_ipv6enabled = true + is_oracle_gua_allocation_enabled = true + ipv6private_cidr_blocks = [] + }`, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(s.ResourceName, "default_route_table_id"), + resource.TestCheckResourceAttrSet(s.ResourceName, "default_security_list_id"), + resource.TestCheckResourceAttrSet(s.ResourceName, "display_name"), + resource.TestCheckResourceAttrSet(s.ResourceName, "id"), + resource.TestCheckResourceAttr(s.ResourceName, "cidr_block", "10.0.0.0/16"), + resource.TestCheckResourceAttr(s.ResourceName, "state", string(core.VcnLifecycleStateAvailable)), + resource.TestCheckResourceAttr(s.ResourceName, "ipv6private_cidr_blocks.#", "0"), + resource.TestCheckResourceAttr(s.ResourceName, "ipv6cidr_blocks.#", "1"), + resource.TestCheckResourceAttr(s.ResourceName, "is_ipv6enabled", "true"), + resource.TestCheckNoResourceAttr(s.ResourceName, "dns_label"), + resource.TestCheckNoResourceAttr(s.ResourceName, "vcn_domain_name"), + func(s *terraform.State) (err error) { + resId2, err := acctest.FromInstanceState(s, "oci_core_virtual_network.t", "id") + if resId != resId2 { + return fmt.Errorf("expected same vcn ocid, got different") + } + return err + }, + ), + }, + }, + }) +} + // issue-routing-tag: core/virtualNetwork func TestResourceCoreVirtualNetworkTestSuite(t *testing.T) { httpreplay.SetScenario("TestResourceCoreVirtualNetworkTestSuite") diff --git a/internal/integrationtest/data_safe_security_assessment_finding_analytic_test.go b/internal/integrationtest/data_safe_security_assessment_finding_analytic_test.go index 67f19519a14..cf6222efef8 100644 --- a/internal/integrationtest/data_safe_security_assessment_finding_analytic_test.go +++ b/internal/integrationtest/data_safe_security_assessment_finding_analytic_test.go @@ -27,6 +27,18 @@ var ( "top_finding_status": acctest.Representation{RepType: acctest.Optional, Create: `RISK`}, } + DataSafeSecurityAssessmentFindingAnalyticScimDataSourceRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "access_level": acctest.Representation{RepType: acctest.Optional, Create: `RESTRICTED`}, + "compartment_id_in_subtree": acctest.Representation{RepType: acctest.Optional, Create: `false`}, + "finding_key": acctest.Representation{RepType: acctest.Optional, Create: `findingKey`}, + "scim_query": acctest.Representation{RepType: acctest.Optional, Create: `severity eq \"EVALUATE\"`}, + "group_by": acctest.Representation{RepType: acctest.Optional, Create: `findingKeyAndTopFindingStatus`}, + "is_top_finding": acctest.Representation{RepType: acctest.Optional, Create: `false`}, + "severity": acctest.Representation{RepType: acctest.Optional, Create: `HIGH`}, + "top_finding_status": acctest.Representation{RepType: acctest.Optional, Create: `RISK`}, + } + DataSafeSecurityAssessmentFindingAnalyticResourceConfig = "" ) @@ -55,5 +67,16 @@ func TestDataSafeSecurityAssessmentFindingAnalyticResource_basic(t *testing.T) { resource.TestCheckResourceAttrSet(datasourceName, "finding_analytics_collection.0.items.#"), ), }, + + // verify scim datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_data_safe_security_assessment_finding_analytics", "test_security_assessment_finding_analytics", acctest.Required, acctest.Create, DataSafeSecurityAssessmentFindingAnalyticScimDataSourceRepresentation) + + compartmentIdVariableStr + DataSafeSecurityAssessmentFindingAnalyticResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(datasourceName, "finding_analytics_collection.#"), + resource.TestCheckResourceAttrSet(datasourceName, "finding_analytics_collection.0.items.#"), + ), + }, }) } diff --git a/internal/integrationtest/data_safe_security_assessment_finding_test.go b/internal/integrationtest/data_safe_security_assessment_finding_test.go index dc2f867dffa..d797cd2830e 100644 --- a/internal/integrationtest/data_safe_security_assessment_finding_test.go +++ b/internal/integrationtest/data_safe_security_assessment_finding_test.go @@ -63,6 +63,7 @@ func TestDataSafeSecurityAssessmentFindingResource_basic(t *testing.T) { acctest.SaveConfigContent("", "", "", t) acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify datasource { Config: config + diff --git a/internal/integrationtest/database_database_test.go b/internal/integrationtest/database_database_test.go index 2bc2d1b0525..53e80afb24c 100644 --- a/internal/integrationtest/database_database_test.go +++ b/internal/integrationtest/database_database_test.go @@ -188,7 +188,7 @@ var ( "cloud_exadata_infrastructure_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_cloud_exadata_infrastructure.test_cloud_exadata_infrastructure_2.id}`}, })) + acctest.GenerateResourceFromRepresentationMap("oci_database_db_home", "test_db_home_2", acctest.Required, acctest.Create, acctest.RepresentationCopyWithNewProperties(DatabaseDbHomeRepresentationBase3, map[string]interface{}{ - "db_version": acctest.Representation{RepType: acctest.Required, Create: `19.24.0.0`}, + "db_version": acctest.Representation{RepType: acctest.Required, Create: `19.28.0.0`}, "source": acctest.Representation{RepType: acctest.Optional, Create: `NONE`}, "display_name": acctest.Representation{RepType: acctest.Optional, Create: `createdDbHomeNone2`}, })) @@ -220,7 +220,7 @@ var ( "database": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseDatabaseRepresentation}, "db_home_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_db_home.test_db_home.id}`}, "source": acctest.Representation{RepType: acctest.Required, Create: `NONE`}, - "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.24.0.0`}, + "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.28.0.0`}, "key_store_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_database_key_store.test_key_store.id}`}, "kms_key_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.kms_key_id}`}, "kms_key_rotation": acctest.Representation{RepType: acctest.Optional, Update: `1`}, @@ -231,7 +231,7 @@ var ( "database": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseDatabaseRepresentation2}, "db_home_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_db_home.test_db_home.id}`, Update: `${oci_database_db_home.test_db_home_dbrs.id}`}, "source": acctest.Representation{RepType: acctest.Required, Create: `NONE`}, - "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.24.0.0`}, + "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.28.0.0`}, "kms_key_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.kms_key_id}`}, "kms_key_rotation": acctest.Representation{RepType: acctest.Optional, Update: `1`}, "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseIgnoreDefinedTagsRepresentation}, @@ -241,7 +241,7 @@ var ( "database": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseUpdateRepresentation}, "db_home_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_db_home.test_db_home.id}`}, "source": acctest.Representation{RepType: acctest.Required, Create: `NONE`}, - "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.24.0.0`}, + "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.28.0.0`}, "kms_key_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.kms_key_id}`}, //"kms_key_rotation": acctest.Representation{RepType: acctest.Optional, Update: `1`}, "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseIgnoreDefinedTagsRepresentation}, @@ -251,7 +251,7 @@ var ( "database": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseUpdateToObjectStorageRepresentation}, "db_home_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_db_home.test_db_home.id}`}, "source": acctest.Representation{RepType: acctest.Required, Create: `NONE`}, - "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.24.0.0`}, + "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.28.0.0`}, "kms_key_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.kms_key_id}`}, //"kms_key_rotation": acctest.Representation{RepType: acctest.Optional, Update: `1`}, "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseIgnoreDefinedTagsRepresentation}, @@ -384,7 +384,7 @@ var ( //"database": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseMultipleStandbyDb1Representation}, "db_home_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_db_home.test_db_home.id}`}, "source": acctest.Representation{RepType: acctest.Required, Create: `NONE`}, - "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.24.0.0`}, + "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.28.0.0`}, "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseIgnoreDefinedTagsRepresentation}, } @@ -392,7 +392,7 @@ var ( //"database": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseMultipleStandbyDb2Representation}, "db_home_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_database_db_home.test_db_home_2.id}`}, "source": acctest.Representation{RepType: acctest.Required, Create: `DATAGUARD`}, - "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.24.0.0`}, + "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.28.0.0`}, "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseIgnoreDefinedTagsRepresentation}, } @@ -422,7 +422,7 @@ var ( dbHomeHsmRepresentation = map[string]interface{}{ "database": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseHsmDatabaseRepresentation}, - "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.27.0.0`}, + "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.28.0.0`}, "display_name": acctest.Representation{RepType: acctest.Optional, Create: `dbHomeHsm`}, "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")}`}, "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, @@ -434,7 +434,7 @@ var ( dbHomeNoHsmRepresentation = map[string]interface{}{ "database": acctest.RepresentationGroup{RepType: acctest.Required, Group: databaseNoHsmDatabaseRepresentation}, - "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.27.0.0`}, + "db_version": acctest.Representation{RepType: acctest.Optional, Create: `19.28.0.0`}, "display_name": acctest.Representation{RepType: acctest.Optional, Create: `dbHomeHsm`}, "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")}`}, "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, @@ -445,7 +445,7 @@ var ( } ignoreDifferenceDbVersion = map[string]interface{}{ - "ignore_changes": acctest.Representation{RepType: acctest.Required, Create: []string{`db_version`}}, + "ignore_changes": acctest.Representation{RepType: acctest.Required, Create: []string{`db_version`, `defined_tags`, `database[0].defined_tags`}}, } databaseHsmDatabaseRepresentation = acctest.RepresentationCopyWithNewProperties(databaseNoHsmDatabaseRepresentation, map[string]interface{}{ @@ -493,7 +493,7 @@ var ( databaseDatabaseNoHsmRepresentation2 = map[string]interface{}{ "admin_password": acctest.Representation{RepType: acctest.Required, Create: `BEstrO0ng_#11`}, - "db_name": acctest.Representation{RepType: acctest.Required, Create: `myHsmDb2`}, + "db_name": acctest.Representation{RepType: acctest.Required, Create: `myHsmDb2`, Update: `myHsmDb5`}, "character_set": acctest.Representation{RepType: acctest.Optional, Create: `AL32UTF8`}, "db_unique_name": acctest.Representation{RepType: acctest.Optional, Create: `myHsmDb_47`}, "db_workload": acctest.Representation{RepType: acctest.Optional, Create: `OLTP`}, @@ -609,13 +609,13 @@ var ( } dbHomeRepresentationSourceNone2 = acctest.RepresentationCopyWithNewProperties(DatabaseDbHomeRepresentationBase2, map[string]interface{}{ - "db_version": acctest.Representation{RepType: acctest.Required, Create: `19.24.0.0`}, + "db_version": acctest.Representation{RepType: acctest.Required, Create: `19.28.0.0`}, "source": acctest.Representation{RepType: acctest.Optional, Create: `NONE`}, "display_name": acctest.Representation{RepType: acctest.Optional, Create: `createdDbHomeNone`}, }) dbHomeDbrsRepresentation = acctest.RepresentationCopyWithNewProperties(dbHomeRepresentationSourceNone2, map[string]interface{}{ - "db_version": acctest.Representation{RepType: acctest.Required, Create: `19.24.0.0`}, + "db_version": acctest.Representation{RepType: acctest.Required, Create: `19.28.0.0`}, }) DatabaseDatabaseResourceDependencies = ExaBaseDependencies + DefinedTagsDependencies + AvailabilityDomainConfig + KeyResourceDependencyConfig + @@ -766,7 +766,7 @@ func TestDatabaseDatabaseResource_basic(t *testing.T) { resource.TestCheckResourceAttrSet(resourceName, "db_home_id"), resource.TestCheckResourceAttrSet(resourceName, "db_name"), resource.TestCheckResourceAttrSet(resourceName, "db_unique_name"), - resource.TestCheckResourceAttr(resourceName, "db_version", "19.24.0.0"), + resource.TestCheckResourceAttr(resourceName, "db_version", "19.28.0.0"), resource.TestCheckResourceAttrSet(resourceName, "id"), //resource.TestCheckResourceAttrSet(resourceName, "kms_key_id"), resource.TestCheckResourceAttr(resourceName, "source", "NONE"), @@ -810,7 +810,7 @@ func TestDatabaseDatabaseResource_basic(t *testing.T) { resource.TestCheckResourceAttrSet(resourceName, "db_home_id"), resource.TestCheckResourceAttrSet(resourceName, "db_name"), resource.TestCheckResourceAttrSet(resourceName, "db_unique_name"), - resource.TestCheckResourceAttr(resourceName, "db_version", "19.24.0.0"), + resource.TestCheckResourceAttr(resourceName, "db_version", "19.28.0.0"), resource.TestCheckResourceAttrSet(resourceName, "id"), //resource.TestCheckResourceAttrSet(resourceName, "kms_key_id"), resource.TestCheckResourceAttr(resourceName, "source", "NONE"), @@ -947,7 +947,7 @@ func TestDatabaseDatabaseResource_update(t *testing.T) { resource.TestCheckResourceAttrSet(resourceName, "db_home_id"), resource.TestCheckResourceAttrSet(resourceName, "db_name"), resource.TestCheckResourceAttrSet(resourceName, "db_unique_name"), - resource.TestCheckResourceAttr(resourceName, "db_version", "19.24.0.0"), + resource.TestCheckResourceAttr(resourceName, "db_version", "19.28.0.0"), resource.TestCheckResourceAttrSet(resourceName, "id"), resource.TestCheckResourceAttr(resourceName, "source", "NONE"), resource.TestCheckResourceAttrSet(resourceName, "state"), @@ -990,7 +990,7 @@ func TestDatabaseDatabaseResource_update(t *testing.T) { resource.TestCheckResourceAttrSet(resourceName, "db_home_id"), resource.TestCheckResourceAttrSet(resourceName, "db_name"), resource.TestCheckResourceAttrSet(resourceName, "db_unique_name"), - resource.TestCheckResourceAttr(resourceName, "db_version", "19.24.0.0"), + resource.TestCheckResourceAttr(resourceName, "db_version", "19.28.0.0"), resource.TestCheckResourceAttrSet(resourceName, "kms_key_id"), resource.TestCheckResourceAttr(resourceName, "source", "NONE"), resource.TestCheckResourceAttrSet(resourceName, "state"), @@ -1026,7 +1026,7 @@ func TestDatabaseDatabaseResource_update(t *testing.T) { resource.TestCheckResourceAttrSet(resourceName, "db_home_id"), resource.TestCheckResourceAttrSet(resourceName, "db_name"), resource.TestCheckResourceAttrSet(resourceName, "db_unique_name"), - resource.TestCheckResourceAttr(resourceName, "db_version", "19.24.0.0"), + resource.TestCheckResourceAttr(resourceName, "db_version", "19.28.0.0"), resource.TestCheckResourceAttrSet(resourceName, "kms_key_id"), resource.TestCheckResourceAttr(resourceName, "source", "NONE"), resource.TestCheckResourceAttrSet(resourceName, "state"), @@ -1291,6 +1291,26 @@ func TestExaccDatabaseBackupDestination_basic(t *testing.T) { resource.TestCheckResourceAttr(dbHomeResourceName, "database.0.db_name", "myHsmDb"), ), }, + // Update EXACC database + { + Config: config + compartmentIdVariableStr + DatabaseExaccHsmDbHomeResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_database_backup_destination", "test_zdlra_backup_destination", acctest.Optional, acctest.Update, DatabaseBackupDestinationRepresentation) + + acctest.GenerateResourceFromRepresentationMap("oci_database_db_home", "test_hsm_db_home", acctest.Optional, acctest.Update, dbHomeHsmRepresentation) + + acctest.GenerateResourceFromRepresentationMap("oci_database_database", "test_database", acctest.Optional, acctest.Update, DatabaseDatabaseZdlraRepresenation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(databaseResourceName, "database.#", "1"), + resource.TestCheckResourceAttr(databaseResourceName, "database.0.admin_password", "BEstrO0ng_#11"), + resource.TestCheckResourceAttr(databaseResourceName, "database.0.db_name", "myHsmDb5"), + resource.TestCheckResourceAttrSet(databaseResourceName, "db_home_id"), + resource.TestCheckResourceAttr(databaseResourceName, "source", "NONE"), + resource.TestCheckResourceAttr(databaseResourceName, "database.0.db_backup_config.#", "1"), + resource.TestCheckResourceAttr(databaseResourceName, "database.0.db_backup_config.0.auto_backup_enabled", "true"), + resource.TestCheckResourceAttr(databaseResourceName, "database.0.db_backup_config.0.backup_destination_details.#", "1"), + resource.TestCheckResourceAttrSet(databaseResourceName, "database.0.db_backup_config.0.backup_destination_details.0.id"), + resource.TestCheckResourceAttr(databaseResourceName, "database.0.db_backup_config.0.backup_destination_details.0.type", "RECOVERY_APPLIANCE"), + resource.TestCheckResourceAttr(dbHomeResourceName, "database.0.db_name", "myHsmDb"), + ), + }, // verify resource import { Config: config + DatabaseRequiredOnlyResource, diff --git a/internal/integrationtest/datascience_job_run_test.go b/internal/integrationtest/datascience_job_run_test.go index 0ec5b3da7f1..9fd5d05494a 100644 --- a/internal/integrationtest/datascience_job_run_test.go +++ b/internal/integrationtest/datascience_job_run_test.go @@ -51,16 +51,17 @@ var ( "values": acctest.Representation{RepType: acctest.Required, Create: []string{`${oci_datascience_job_run.test_job_run.id}`}}, } + // MULTI NODE JOB RUN DatascienceJobRunRepresentation = map[string]interface{}{ "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, "job_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_datascience_job.test_job.id}`}, "project_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_datascience_project.test_project.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`}, "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, - "asynchronous": acctest.Representation{RepType: acctest.Required, Create: `false`}, - "job_configuration_override_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobRunJobConfigurationOverrideDetailsRepresentation}, - "job_environment_configuration_override_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobEnvironmentConfigurationOverrideDetailsRepresentation}, + "job_configuration_override_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobConfigurationOverrideDetailsRepresentation}, + "job_environment_configuration_override_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobEnvironmentConfigurationOverrideDetailsRepresentation}, + "job_infrastructure_configuration_override_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunEmptyJobInfrastructureConfigurationOverrideDetailsRepresentation}, + "job_node_configuration_override_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobNodeConfigurationOverrideDetailsRepresentation}, "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreJobRunDefinedTagsChangesRepresentation}, } DatascienceJobRunJobConfigurationOverrideDetailsRepresentation = map[string]interface{}{ @@ -68,6 +69,7 @@ var ( "command_line_arguments": acctest.Representation{RepType: acctest.Optional, Create: `commandLineArguments`}, "environment_variables": acctest.Representation{RepType: acctest.Required, Create: map[string]string{"environmentVariables": "environmentVariables"}}, "maximum_runtime_in_minutes": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "startup_probe_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobConfigurationOverrideDetailsStartupProbeDetailsRepresentation}, } DatascienceJobRunJobEnvironmentConfigurationOverrideDetailsRepresentation = map[string]interface{}{ "image": acctest.Representation{RepType: acctest.Required, Create: `iad.ocir.io/ociodscdev/byod_hello_wrld:1.0`}, @@ -77,12 +79,90 @@ var ( "image_digest": acctest.Representation{RepType: acctest.Optional, Create: ``}, "image_signature_id": acctest.Representation{RepType: acctest.Optional, Create: ``}, } + DatascienceJobRunEmptyJobInfrastructureConfigurationOverrideDetailsRepresentation = map[string]interface{}{ + "job_infrastructure_type": acctest.Representation{RepType: acctest.Required, Create: `EMPTY`}, + } + DatascienceJobRunJobInfrastructureConfigurationOverrideDetailsRepresentation = map[string]interface{}{ + "job_infrastructure_type": acctest.Representation{RepType: acctest.Required, Create: `MULTI_NODE`}, + "block_storage_size_in_gbs": acctest.Representation{RepType: acctest.Optional, Create: `50`}, + "job_shape_config_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobInfrastructureConfigurationOverrideDetailsJobShapeConfigDetailsRepresentation}, + "shape_name": acctest.Representation{RepType: acctest.Optional, Create: `VM.Standard.E4.Flex`}, + "subnet_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_core_subnet.test_subnet.id}`}, + } + DatascienceJobRunJobLogConfigurationOverrideDetailsRepresentation = map[string]interface{}{ + "enable_auto_log_creation": acctest.Representation{RepType: acctest.Optional, Create: `false`}, + "enable_logging": acctest.Representation{RepType: acctest.Optional, Create: `false`}, + "log_group_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_logging_log_group.test_log_group.id}`}, + "log_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_logging_log.test_log.id}`}, + } ignoreJobRunDefinedTagsChangesRepresentation = map[string]interface{}{ "ignore_changes": acctest.Representation{RepType: acctest.Required, Create: []string{`defined_tags`}}, } + DatascienceJobRunJobNodeConfigurationOverrideDetailsRepresentation = map[string]interface{}{ + "job_node_type": acctest.Representation{RepType: acctest.Required, Create: `MULTI_NODE`}, + "job_network_configuration": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobNodeConfigurationOverrideDetailsJobNetworkConfigurationRepresentation}, + "job_node_group_configuration_details_list": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobNodeConfigurationDetailsRepresentation}, + "maximum_runtime_in_minutes": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "startup_order": acctest.Representation{RepType: acctest.Optional, Create: `IN_ORDER`}, + } + DatascienceJobRunJobConfigurationOverrideDetailsStartupProbeDetailsRepresentation = map[string]interface{}{ + "command": acctest.Representation{RepType: acctest.Required, Create: []string{`command`}}, + "job_probe_check_type": acctest.Representation{RepType: acctest.Required, Create: `EXEC`}, + "failure_threshold": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "initial_delay_in_seconds": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "period_in_seconds": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + } + DatascienceJobRunJobInfrastructureConfigurationOverrideDetailsJobShapeConfigDetailsRepresentation = map[string]interface{}{ + "memory_in_gbs": acctest.Representation{RepType: acctest.Optional, Create: `16.0`}, + "ocpus": acctest.Representation{RepType: acctest.Optional, Create: `3.0`}, + } + DatascienceJobRunJobNodeConfigurationOverrideDetailsJobNetworkConfigurationRepresentation = map[string]interface{}{ + "job_network_type": acctest.Representation{RepType: acctest.Required, Create: `CUSTOM_NETWORK`}, + "subnet_id": acctest.Representation{RepType: acctest.Required, Create: `subnet_id`}, + } + DatascienceJobRunJobNodeConfigurationDetailsRepresentation = map[string]interface{}{ + "name": acctest.Representation{RepType: acctest.Required, Create: `name`}, + "job_configuration_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsRepresentation}, + // "job_environment_configuration_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobEnvironmentConfigurationDetailsRepresentation}, + "job_infrastructure_configuration_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsRepresentation}, + "minimum_success_replicas": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "replicas": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + } + DatascienceJobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsRepresentation = map[string]interface{}{ + "job_type": acctest.Representation{RepType: acctest.Required, Create: `DEFAULT`}, + "command_line_arguments": acctest.Representation{RepType: acctest.Optional, Create: `commandLineArguments`}, + "environment_variables": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"environmentVariables": "environmentVariables"}, Update: map[string]string{"environmentVariables2": "environmentVariables2"}}, + "maximum_runtime_in_minutes": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + // "startup_probe_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsStartupProbeDetailsRepresentation}, + } + DatascienceJobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobEnvironmentConfigurationDetailsRepresentation = map[string]interface{}{ + "image": acctest.Representation{RepType: acctest.Required, Create: `image`}, + "job_environment_type": acctest.Representation{RepType: acctest.Required, Create: `OCIR_CONTAINER`}, + "cmd": acctest.Representation{RepType: acctest.Optional, Create: []string{`cmd`}}, + "entrypoint": acctest.Representation{RepType: acctest.Optional, Create: []string{`entrypoint`}}, + "image_digest": acctest.Representation{RepType: acctest.Optional, Create: `imageDigest`}, + "image_signature_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_datascience_image_signature.test_image_signature.id}`}, + } + DatascienceJobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsRepresentation = map[string]interface{}{ + "job_infrastructure_type": acctest.Representation{RepType: acctest.Required, Create: `STANDALONE`}, + "block_storage_size_in_gbs": acctest.Representation{RepType: acctest.Optional, Create: `50`}, + "job_shape_config_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsJobShapeConfigDetailsRepresentation}, + "shape_name": acctest.Representation{RepType: acctest.Optional, Create: `VM.Standard.E4.Flex`}, + // "subnet_id": acctest.Representation{RepType: acctest.Optional, Create: ``}, + } + DatascienceJobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsStartupProbeDetailsRepresentation = map[string]interface{}{ + "command": acctest.Representation{RepType: acctest.Required, Create: []string{`command`}}, + "job_probe_check_type": acctest.Representation{RepType: acctest.Required, Create: `EXEC`}, + "failure_threshold": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "initial_delay_in_seconds": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "period_in_seconds": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + } + DatascienceJobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsJobShapeConfigDetailsRepresentation = map[string]interface{}{ + "memory_in_gbs": acctest.Representation{RepType: acctest.Optional, Create: `16.0`}, + "ocpus": acctest.Representation{RepType: acctest.Optional, Create: `3.0`}, + } - DatascienceJobRunResourceDependencies = acctest.GenerateDataSourceFromRepresentationMap("oci_core_shapes", "test_shapes", acctest.Required, acctest.Create, CoreCoreShapeDataSourceRepresentation) + - acctest.GenerateResourceFromRepresentationMap("oci_datascience_job", "test_job", acctest.Required, acctest.Create, mlJobWithArtifactNoLogging) + + DatascienceJobRunResourceDependencies = acctest.GenerateResourceFromRepresentationMap("oci_datascience_job", "test_job", acctest.Required, acctest.Create, DatascienceJobRepresentation) + acctest.GenerateResourceFromRepresentationMap("oci_datascience_project", "test_project", acctest.Required, acctest.Create, DatascienceDatascienceJobShapeDataSourceRepresentation) + DefinedTagsDependencies ) @@ -145,7 +225,8 @@ func TestDatascienceJobRunResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "display_name", "displayName"), resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(resourceName, "id"), - resource.TestCheckResourceAttr(resourceName, "job_configuration_override_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_configuration_override_details.#", "0"), + resource.TestCheckResourceAttr(resourceName, "job_infrastructure_configuration_override_details.#", "0"), resource.TestCheckResourceAttr(resourceName, "job_configuration_override_details.0.command_line_arguments", "commandLineArguments"), resource.TestCheckResourceAttr(resourceName, "job_configuration_override_details.0.environment_variables.%", "1"), resource.TestCheckResourceAttr(resourceName, "job_configuration_override_details.0.job_type", "DEFAULT"), @@ -157,6 +238,11 @@ func TestDatascienceJobRunResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "job_environment_configuration_override_details.0.image_digest", ""), resource.TestCheckResourceAttr(resourceName, "job_environment_configuration_override_details.0.image_signature_id", ""), resource.TestCheckResourceAttr(resourceName, "job_environment_configuration_override_details.0.job_environment_type", "OCIR_CONTAINER"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.block_storage_size_in_gbs", "50"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.job_infrastructure_type", "MULTI_NODE"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.job_shape_config_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.job_shape_config_details.0.memory_in_gbs", "16"), resource.TestCheckResourceAttrSet(resourceName, "job_id"), resource.TestCheckResourceAttr(resourceName, "job_infrastructure_configuration_details.#", "1"), resource.TestCheckResourceAttr(resourceName, "job_log_configuration_override_details.#", "0"), @@ -186,11 +272,7 @@ func TestDatascienceJobRunResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "display_name", "displayName2"), resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(resourceName, "id"), - resource.TestCheckResourceAttr(resourceName, "job_configuration_override_details.#", "1"), - resource.TestCheckResourceAttr(resourceName, "job_configuration_override_details.0.command_line_arguments", "commandLineArguments"), - resource.TestCheckResourceAttr(resourceName, "job_configuration_override_details.0.environment_variables.%", "1"), - resource.TestCheckResourceAttr(resourceName, "job_configuration_override_details.0.job_type", "DEFAULT"), - resource.TestCheckResourceAttr(resourceName, "job_configuration_override_details.0.maximum_runtime_in_minutes", "10"), + resource.TestCheckResourceAttr(resourceName, "job_configuration_override_details.#", "0"), resource.TestCheckResourceAttr(resourceName, "job_environment_configuration_override_details.#", "1"), resource.TestCheckResourceAttr(resourceName, "job_environment_configuration_override_details.0.cmd.#", ""), resource.TestCheckResourceAttr(resourceName, "job_environment_configuration_override_details.0.entrypoint.#", ""), @@ -256,14 +338,10 @@ func TestDatascienceJobRunResource_basic(t *testing.T) { resource.TestCheckResourceAttr(singularDatasourceName, "display_name", "displayName2"), resource.TestCheckResourceAttr(singularDatasourceName, "freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), - resource.TestCheckResourceAttr(singularDatasourceName, "job_configuration_override_details.#", "1"), - resource.TestCheckResourceAttr(singularDatasourceName, "job_configuration_override_details.0.command_line_arguments", "commandLineArguments"), - resource.TestCheckResourceAttr(singularDatasourceName, "job_configuration_override_details.0.environment_variables.%", "1"), - resource.TestCheckResourceAttr(singularDatasourceName, "job_configuration_override_details.0.job_type", "DEFAULT"), - resource.TestCheckResourceAttr(singularDatasourceName, "job_configuration_override_details.0.maximum_runtime_in_minutes", "10"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_configuration_override_details.#", "0"), resource.TestCheckResourceAttr(singularDatasourceName, "job_infrastructure_configuration_details.#", "1"), resource.TestCheckResourceAttr(singularDatasourceName, "job_log_configuration_override_details.#", "0"), - resource.TestCheckResourceAttr(singularDatasourceName, "job_environment_configuration_override_details.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_environment_configuration_override_details.#", "0"), resource.TestCheckResourceAttr(singularDatasourceName, "job_environment_configuration_override_details.0.cmd.#", ""), resource.TestCheckResourceAttr(singularDatasourceName, "job_environment_configuration_override_details.0.entrypoint.#", ""), resource.TestCheckResourceAttr(singularDatasourceName, "job_environment_configuration_override_details.0.image", "iad.ocir.io/ociodscdev/byod_hello_wrld:1.0"), diff --git a/internal/integrationtest/datascience_job_test.go b/internal/integrationtest/datascience_job_test.go index 4bc5c1f4bd4..1da6d1b6249 100644 --- a/internal/integrationtest/datascience_job_test.go +++ b/internal/integrationtest/datascience_job_test.go @@ -51,29 +51,36 @@ var ( "name": acctest.Representation{RepType: acctest.Required, Create: `id`}, "values": acctest.Representation{RepType: acctest.Required, Create: []string{`${oci_datascience_job.test_job.id}`}}, } - + // creating MULTI NODE job to test DatascienceJobRepresentation = map[string]interface{}{ - "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, - "job_configuration_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobJobConfigurationDetailsRepresentation}, - "job_infrastructure_configuration_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobJobInfrastructureConfigurationDetailsRepresentation}, - "job_environment_configuration_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobJobEnvironmentConfigurationDetailsRepresentation}, + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + // for multi node this will be empty + // "job_configuration_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobEmptyJobConfigurationDetailsRepresentation}, + // "job_infrastructure_configuration_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobEmptyJobInfrastructureConfigurationDetailsRepresentation}, "job_storage_mount_configuration_details_list": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobStorageMountConfigurationDetailsListRepresentation}, - "project_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_datascience_project.test_project.id}`}, - "job_artifact": acctest.Representation{RepType: acctest.Optional, Create: `../../examples/datascience/job-artifact.py`}, - "artifact_content_length": acctest.Representation{RepType: acctest.Optional, Create: `1380`}, // wc -c job-artifact.py - "artifact_content_disposition": acctest.Representation{RepType: acctest.Optional, Create: `attachment; filename=job-artifact.py`}, - "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`}, - "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, - "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, - "delete_related_job_runs": acctest.Representation{RepType: acctest.Optional, Create: `false`, Update: `true`}, - "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreMlJobDefinedTagsChangesRepresentation}, + "project_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_datascience_project.test_project.id}`}, + "job_artifact": acctest.Representation{RepType: acctest.Required, Create: `../../examples/datascience/job-artifact.py`}, + "artifact_content_length": acctest.Representation{RepType: acctest.Required, Create: `1380`}, // wc -c job-artifact.py + "artifact_content_disposition": acctest.Representation{RepType: acctest.Required, Create: `attachment; filename=job-artifact.py`}, + "job_node_configuration_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobJobNodeConfigurationDetailsRepresentation}, + "job_storage_mount_configuration_details_list": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobStorageMountConfigurationDetailsListRepresentation}, + "description": acctest.Representation{RepType: acctest.Optional, Create: `description`, Update: `description2`}, + "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, + "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}}, + "delete_related_job_runs": acctest.Representation{RepType: acctest.Required, Create: `true`}, + } + ignoreMlJobDefinedTagsChangesRepresentation = map[string]interface{}{ + "ignore_changes": acctest.Representation{RepType: acctest.Required, Create: []string{`defined_tags`, `job_infrastructure_configuration_details`}}, + } + DatascienceJobEmptyJobConfigurationDetailsRepresentation = map[string]interface{}{ + "job_type": acctest.Representation{RepType: acctest.Required, Create: `EMPTY`}, } DatascienceJobJobConfigurationDetailsRepresentation = map[string]interface{}{ "job_type": acctest.Representation{RepType: acctest.Required, Create: `DEFAULT`}, "command_line_arguments": acctest.Representation{RepType: acctest.Optional, Create: `commandLineArguments`}, "environment_variables": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"environmentVariables": ""}}, "maximum_runtime_in_minutes": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "startup_probe_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobJobConfigurationDetailsStartupProbeDetailsRepresentation}, } DatascienceJobJobInfrastructureConfigurationDetailsRepresentation = map[string]interface{}{ "block_storage_size_in_gbs": acctest.Representation{RepType: acctest.Required, Create: `50`, Update: `100`}, @@ -85,10 +92,36 @@ var ( DatascienceJobJobEnvironmentConfigurationDetailsRepresentation = map[string]interface{}{ "image": acctest.Representation{RepType: acctest.Required, Create: `iad.ocir.io/ociodscdev/byod_hello_wrld:1.0`}, "job_environment_type": acctest.Representation{RepType: acctest.Required, Create: `OCIR_CONTAINER`}, - "cmd": acctest.Representation{RepType: acctest.Optional, Create: []string{}}, - "entrypoint": acctest.Representation{RepType: acctest.Optional, Create: []string{}}, - "image_digest": acctest.Representation{RepType: acctest.Optional, Create: ``}, - "image_signature_id": acctest.Representation{RepType: acctest.Optional, Create: ``}, + "cmd": acctest.Representation{RepType: acctest.Optional, Create: []string{`cmd`}}, + "entrypoint": acctest.Representation{RepType: acctest.Optional, Create: []string{`entrypoint`}}, + "image_digest": acctest.Representation{RepType: acctest.Optional, Create: `imageDigest`}, + "image_signature_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_datascience_image_signature.test_image_signature.id}`}, + } + DatascienceJobEmptyJobInfrastructureConfigurationDetailsRepresentation = map[string]interface{}{ + "job_infrastructure_type": acctest.Representation{RepType: acctest.Required, Create: `EMPTY`}, + } + DatascienceJobJobInfrastructureConfigurationDetailsRepresentation = map[string]interface{}{ + "job_infrastructure_type": acctest.Representation{RepType: acctest.Required, Create: `MULTI_NODE`}, + "block_storage_size_in_gbs": acctest.Representation{RepType: acctest.Required, Create: `50`}, + "job_shape_config_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsRepresentation}, + "shape_name": acctest.Representation{RepType: acctest.Required, Create: `VM.Standard.E4.Flex`}, + "subnet_id": acctest.Representation{RepType: acctest.Optional, Create: `subnet_id`}, + } + DatascienceMultiNodeJobJobInfrastructureConfigurationDetailsRepresentation = map[string]interface{}{ + "job_infrastructure_type": acctest.Representation{RepType: acctest.Required, Create: `MULTI_NODE`}, + "block_storage_size_in_gbs": acctest.Representation{RepType: acctest.Required, Create: `50`}, + "job_shape_config_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsRepresentation}, + "shape_name": acctest.Representation{RepType: acctest.Required, Create: `VM.Standard.E4.Flex`}, + "cmd": acctest.Representation{RepType: acctest.Optional, Create: []string{}}, + "entrypoint": acctest.Representation{RepType: acctest.Optional, Create: []string{}}, + "image_digest": acctest.Representation{RepType: acctest.Optional, Create: ``}, + "image_signature_id": acctest.Representation{RepType: acctest.Optional, Create: ``}, + } + DatascienceJobJobLogConfigurationDetailsRepresentation = map[string]interface{}{ + "enable_auto_log_creation": acctest.Representation{RepType: acctest.Optional, Create: `false`}, + "enable_logging": acctest.Representation{RepType: acctest.Optional, Create: `false`}, + "log_group_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_logging_log_group.test_log_group.id}`}, + "log_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_logging_log.test_log.id}`}, } DatascienceJobStorageMountConfigurationDetailsListRepresentation = map[string]interface{}{ "destination_directory_name": acctest.Representation{RepType: acctest.Required, Create: `oss`, Update: `oss1`}, @@ -107,24 +140,72 @@ var ( "ocpus": acctest.Representation{RepType: acctest.Required, Create: `2.0`, Update: `4.0`}, "memory_in_gbs": acctest.Representation{RepType: acctest.Required, Create: `14.0`, Update: `28.0`}, } - - // easier to work with from JobRuns - mlJobWithArtifactNoLogging = map[string]interface{}{ - "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, - "job_configuration_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobJobConfigurationDetailsRepresentation}, - "job_infrastructure_configuration_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobJobInfrastructureConfigurationDetailsRepresentation}, - "project_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_datascience_project.test_project.id}`}, - "job_artifact": acctest.Representation{RepType: acctest.Required, Create: `../../examples/datascience/job-artifact.py`}, - "artifact_content_length": acctest.Representation{RepType: acctest.Required, Create: `1380`}, // wc -c job-artifact.py - "artifact_content_disposition": acctest.Representation{RepType: acctest.Required, Create: `attachment; filename=job-artifact.py`}, - "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreMlJobDefinedTagsChangesRepresentation}, + DatascienceJobJobNodeConfigurationDetailsRepresentation = map[string]interface{}{ + "job_node_type": acctest.Representation{RepType: acctest.Required, Create: `MULTI_NODE`}, + "job_network_configuration": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobJobNodeConfigurationDetailsJobNetworkConfigurationRepresentation}, + "job_node_group_configuration_details_list": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobJobNodeConfigurationDetailsJobNodeGroupConfigurationDetailsListRepresentation}, + "maximum_runtime_in_minutes": acctest.Representation{RepType: acctest.Required, Create: `10`}, + "startup_order": acctest.Representation{RepType: acctest.Required, Create: `IN_ORDER`}, + } + DatascienceJobJobConfigurationDetailsStartupProbeDetailsRepresentation = map[string]interface{}{ + "command": acctest.Representation{RepType: acctest.Required, Create: []string{`command`}}, + "job_probe_check_type": acctest.Representation{RepType: acctest.Required, Create: `EXEC`}, + "failure_threshold": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "initial_delay_in_seconds": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "period_in_seconds": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + } + DatascienceJobJobInfrastructureConfigurationDetailsJobShapeConfigDetailsRepresentation = map[string]interface{}{ + "memory_in_gbs": acctest.Representation{RepType: acctest.Required, Create: `16.0`}, + "ocpus": acctest.Representation{RepType: acctest.Required, Create: `3.0`}, + } + DatascienceJobJobNodeConfigurationDetailsJobNetworkConfigurationRepresentation = map[string]interface{}{ + "job_network_type": acctest.Representation{RepType: acctest.Required, Create: `CUSTOM_NETWORK`}, + "subnet_id": acctest.Representation{RepType: acctest.Required, Create: `subnet_id`}, + } + DatascienceJobJobNodeConfigurationDetailsJobNodeGroupConfigurationDetailsListRepresentation = map[string]interface{}{ + "name": acctest.Representation{RepType: acctest.Required, Create: `replica1`}, + "job_configuration_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceJobJobNodeConfigurationDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsRepresentation}, + // "job_environment_configuration_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobJobNodeConfigurationDetailsJobNodeGroupConfigurationDetailsListJobEnvironmentConfigurationDetailsRepresentation}, + "job_infrastructure_configuration_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatascienceMultiNodeJobJobInfrastructureConfigurationDetailsRepresentation}, + "minimum_success_replicas": acctest.Representation{RepType: acctest.Optional, Create: `1`}, + "replicas": acctest.Representation{RepType: acctest.Required, Create: `1`}, + } + DatascienceJobJobNodeConfigurationDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsRepresentation = map[string]interface{}{ + "job_type": acctest.Representation{RepType: acctest.Required, Create: `DEFAULT`}, + "command_line_arguments": acctest.Representation{RepType: acctest.Optional, Create: `commandLineArguments`}, + "environment_variables": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"environmentVariables": "environmentVariables"}}, + // "maximum_runtime_in_minutes": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "startup_probe_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobJobNodeConfigurationDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsStartupProbeDetailsRepresentation}, + } + DatascienceJobJobNodeConfigurationDetailsJobNodeGroupConfigurationDetailsListJobEnvironmentConfigurationDetailsRepresentation = map[string]interface{}{ + "image": acctest.Representation{RepType: acctest.Required, Create: `image`}, + "job_environment_type": acctest.Representation{RepType: acctest.Required, Create: `OCIR_CONTAINER`}, + "cmd": acctest.Representation{RepType: acctest.Optional, Create: []string{`cmd`}}, + "entrypoint": acctest.Representation{RepType: acctest.Optional, Create: []string{`entrypoint`}}, + "image_digest": acctest.Representation{RepType: acctest.Optional, Create: `imageDigest`}, + "image_signature_id": acctest.Representation{RepType: acctest.Optional, Create: `imageSignatureId`}, + } + DatascienceJobJobNodeConfigurationDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsRepresentation = map[string]interface{}{ + "job_infrastructure_type": acctest.Representation{RepType: acctest.Required, Create: `STANDALONE`}, + "block_storage_size_in_gbs": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "job_shape_config_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatascienceJobJobNodeConfigurationDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsJobShapeConfigDetailsRepresentation}, + "shape_name": acctest.Representation{RepType: acctest.Optional, Create: `VM.Standard.E4.Flex`}, + "subnet_id": acctest.Representation{RepType: acctest.Optional, Create: `subnet_id`}, + } + DatascienceJobJobNodeConfigurationDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsStartupProbeDetailsRepresentation = map[string]interface{}{ + "command": acctest.Representation{RepType: acctest.Required, Create: []string{`11`}}, + "job_probe_check_type": acctest.Representation{RepType: acctest.Required, Create: `EXEC`}, + "failure_threshold": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "initial_delay_in_seconds": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + "period_in_seconds": acctest.Representation{RepType: acctest.Optional, Create: `10`}, + } + DatascienceJobJobNodeConfigurationDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsJobShapeConfigDetailsRepresentation = map[string]interface{}{ + "memory_in_gbs": acctest.Representation{RepType: acctest.Optional, Create: `16.0`}, + "ocpus": acctest.Representation{RepType: acctest.Optional, Create: `3.0`}, } - DatascienceJobResourceDependencies = 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.GenerateDataSourceFromRepresentationMap("oci_core_shapes", "test_shapes", acctest.Required, acctest.Create, CoreCoreShapeDataSourceRepresentation) + - acctest.GenerateResourceFromRepresentationMap("oci_datascience_project", "test_project", acctest.Required, acctest.Create, DatascienceProjectRepresentation) + - DefinedTagsDependencies + DatascienceJobResourceDependencies = acctest.GenerateResourceFromRepresentationMap("oci_datascience_project", "test_project", acctest.Required, acctest.Create, DatascienceProjectRepresentation) + // DefinedTagsDependencies ) // issue-routing-tag: datascience/default @@ -164,10 +245,8 @@ func TestDatascienceJobResource_basic(t *testing.T) { Check: acctest.ComposeAggregateTestCheckFuncWrapper( resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), resource.TestCheckResourceAttr(resourceName, "job_configuration_details.#", "1"), - resource.TestCheckResourceAttr(resourceName, "job_configuration_details.0.job_type", "DEFAULT"), + resource.TestCheckResourceAttr(resourceName, "job_configuration_details.0.job_type", "EMPTY"), resource.TestCheckResourceAttr(resourceName, "job_infrastructure_configuration_details.#", "1"), - resource.TestCheckResourceAttr(resourceName, "job_infrastructure_configuration_details.0.block_storage_size_in_gbs", "50"), - resource.TestCheckResourceAttrSet(resourceName, "job_infrastructure_configuration_details.0.shape_name"), resource.TestCheckResourceAttrSet(resourceName, "project_id"), func(s *terraform.State) (err error) { @@ -214,6 +293,41 @@ func TestDatascienceJobResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "job_storage_mount_configuration_details_list.0.destination_directory_name", "oss"), resource.TestCheckResourceAttr(resourceName, "job_storage_mount_configuration_details_list.0.destination_path", "/mnt"), resource.TestCheckResourceAttr(resourceName, "job_storage_mount_configuration_details_list.0.storage_type", "OBJECT_STORAGE"), + resource.TestCheckResourceAttr(resourceName, "job_configuration_details.0.job_type", "EMPTY"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_network_configuration.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_network_configuration.0.job_network_type", "CUSTOM_NETWORK"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_configuration_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.command_line_arguments", "commandLineArguments"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.environment_variables.%", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.job_type", "DEFAULT"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.startup_probe_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.startup_probe_details.0.command.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.startup_probe_details.0.failure_threshold", "10"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.startup_probe_details.0.initial_delay_in_seconds", "10"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.startup_probe_details.0.job_probe_check_type", "EXEC"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.startup_probe_details.0.period_in_seconds", "10"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_environment_configuration_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_environment_configuration_details.0.cmd.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_environment_configuration_details.0.entrypoint.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_environment_configuration_details.0.image", "image"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_environment_configuration_details.0.image_digest", "imageDigest"), + resource.TestCheckResourceAttrSet(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_environment_configuration_details.0.image_signature_id"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.block_storage_size_in_gbs", "50"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.job_infrastructure_type", "MULTI_NODE"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.job_shape_config_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.job_shape_config_details.0.memory_in_gbs", "16"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.job_shape_config_details.0.ocpus", "3"), + resource.TestCheckResourceAttrSet(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.shape_name"), + resource.TestCheckResourceAttrSet(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.subnet_id"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.minimum_success_replicas", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.name", "replica1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_group_configuration_details_list.0.replicas", "1"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.job_node_type", "MULTI_NODE"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.maximum_runtime_in_minutes", "10"), + resource.TestCheckResourceAttr(resourceName, "job_node_configuration_details.0.startup_order", "IN_ORDER"), resource.TestCheckResourceAttrSet(resourceName, "project_id"), resource.TestCheckResourceAttrSet(resourceName, "state"), resource.TestCheckResourceAttrSet(resourceName, "time_created"), @@ -245,6 +359,7 @@ func TestDatascienceJobResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(resourceName, "id"), resource.TestCheckResourceAttr(resourceName, "job_configuration_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "job_configuration_details.0.job_type", "EMPTY"), resource.TestCheckResourceAttr(resourceName, "job_configuration_details.0.command_line_arguments", "commandLineArguments"), resource.TestCheckResourceAttr(resourceName, "job_configuration_details.0.environment_variables.%", "1"), resource.TestCheckResourceAttr(resourceName, "job_configuration_details.0.job_type", "DEFAULT"), @@ -280,7 +395,6 @@ func TestDatascienceJobResource_basic(t *testing.T) { }, ), }, - // verify updates to updatable parameters { Config: config + compartmentIdVariableStr + DatascienceJobResourceDependencies + @@ -291,6 +405,7 @@ func TestDatascienceJobResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "description", "description2"), resource.TestCheckResourceAttr(resourceName, "display_name", "displayName2"), resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttr(resourceName, "job_configuration_details.0.job_type", "EMPTY"), resource.TestCheckResourceAttrSet(resourceName, "id"), resource.TestCheckResourceAttr(resourceName, "job_configuration_details.#", "1"), resource.TestCheckResourceAttr(resourceName, "job_configuration_details.0.command_line_arguments", "commandLineArguments"), @@ -386,6 +501,28 @@ func TestDatascienceJobResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "job_storage_mount_configuration_details_list.#", "1"), resource.TestCheckResourceAttr(resourceName, "job_storage_mount_configuration_details_list.0.destination_directory_name", "oss1"), resource.TestCheckResourceAttr(resourceName, "job_storage_mount_configuration_details_list.0.destination_path", "/mnt"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_configuration_details.0.job_type", "EMPTY"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_network_configuration.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_network_configuration.0.job_network_type", "CUSTOM_NETWORK"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_configuration_details.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.command_line_arguments", "commandLineArguments"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.environment_variables.%", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.job_type", "DEFAULT"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.maximum_runtime_in_minutes", "10"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_configuration_details.0.startup_probe_details.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_environment_configuration_details.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_environment_configuration_details.0.cmd.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_environment_configuration_details.0.entrypoint.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.block_storage_size_in_gbs", "50"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.job_infrastructure_type", "MULTI_NODE"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.job_shape_config_details.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.job_shape_config_details.0.memory_in_gbs", "16"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.job_infrastructure_configuration_details.0.job_shape_config_details.0.ocpus", "3"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.minimum_success_replicas", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.name", "replica1"), + resource.TestCheckResourceAttr(singularDatasourceName, "job_node_configuration_override_details.0.job_node_group_configuration_details_list.0.replicas", "1"), resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), resource.TestCheckResourceAttrSet(singularDatasourceName, "time_created"), ), diff --git a/internal/integrationtest/datascience_pipeline_run_test.go b/internal/integrationtest/datascience_pipeline_run_test.go index a8e9c1a7ddd..fb4c1e47197 100644 --- a/internal/integrationtest/datascience_pipeline_run_test.go +++ b/internal/integrationtest/datascience_pipeline_run_test.go @@ -50,15 +50,16 @@ var ( // change projectId to optional after creating the new branches pipelineRunRepresentation = map[string]interface{}{ - "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, - "pipeline_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_datascience_pipeline.test_pipeline.id}`}, - "project_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_datascience_project.test_project.id}`}, - "configuration_override_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: pipelineRunConfigurationOverrideDetailsRepresentation}, - "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, - "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, - "delete_related_job_runs": acctest.Representation{RepType: acctest.Required, Create: `true`, Update: `true`}, - "log_configuration_override_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: pipelineRunLogConfigurationOverrideDetailsRepresentation}, - "step_override_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: pipelineRunStepOverrideDetailsRepresentation}, + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "pipeline_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_datascience_pipeline.test_pipeline.id}`}, + "project_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_datascience_project.test_project.id}`}, + "configuration_override_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: pipelineRunConfigurationOverrideDetailsRepresentation}, + "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, + "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, + "delete_related_job_runs": acctest.Representation{RepType: acctest.Required, Create: `true`, Update: `true`}, + "infrastructure_configuration_override_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatasciencePipelineRunInfrastructureConfigurationOverrideDetailsRepresentation}, + "log_configuration_override_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: pipelineRunLogConfigurationOverrideDetailsRepresentation}, + "step_override_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: pipelineRunStepOverrideDetailsRepresentation}, } pipelineRunContainerRepresentation = map[string]interface{}{ @@ -91,6 +92,12 @@ var ( "environment_variables": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"environmentVariablesOverriden": "environmentVariablesOverriden"}}, "maximum_runtime_in_minutes": acctest.Representation{RepType: acctest.Optional, Create: `10`}, } + DatasciencePipelineRunInfrastructureConfigurationOverrideDetailsRepresentation = map[string]interface{}{ + "block_storage_size_in_gbs": acctest.Representation{RepType: acctest.Required, Create: `10`}, + "shape_name": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_shape.test_shape.name}`}, + "shape_config_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatasciencePipelineRunInfrastructureConfigurationOverrideDetailsShapeConfigDetailsRepresentation}, + "subnet_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_core_subnet.test_subnet.id}`}, + } pipelineRunDataflowConfigurationOverrideDetailsRepresentation = map[string]interface{}{ "type": acctest.Representation{RepType: acctest.Required, Create: `DEFAULT`}, "maximum_runtime_in_minutes": acctest.Representation{RepType: acctest.Optional, Create: `60`}, @@ -106,6 +113,17 @@ var ( "step_name": acctest.Representation{RepType: acctest.Required, Create: `stepName`}, //"step_container_configuration_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatasciencePipelineRunStepOverrideDetailsContainerConfigurationDetailsRepresentation}, } + DatasciencePipelineRunStepOverrideDetailsRepresentation = map[string]interface{}{ + "step_configuration_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: pipelineRunStepOverrideDetailsStepConfigurationDetailsRepresentation}, + "step_name": acctest.Representation{RepType: acctest.Required, Create: `stepName`}, + "step_container_configuration_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: pipelineRunStepOverrideDetailsStepConfigurationDetailsRepresentation}, + "step_dataflow_configuration_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatasciencePipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsRepresentation}, + "step_infrastructure_configuration_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatasciencePipelineRunStepOverrideDetailsStepInfrastructureConfigurationDetailsRepresentation}, + } + DatasciencePipelineRunInfrastructureConfigurationOverrideDetailsShapeConfigDetailsRepresentation = map[string]interface{}{ + "memory_in_gbs": acctest.Representation{RepType: acctest.Optional, Create: `1.0`}, + "ocpus": acctest.Representation{RepType: acctest.Optional, Create: `1.0`}, + } pipelineRunStepOverrideDetailsContainerRepresentation = map[string]interface{}{ "step_configuration_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: pipelineRunStepOverrideDetailsStepConfigurationDetailsRepresentation}, "step_name": acctest.Representation{RepType: acctest.Required, Create: `stepNameContainer`}, @@ -142,6 +160,12 @@ var ( "num_executors": acctest.Representation{RepType: acctest.Optional, Create: `1`}, "warehouse_bucket_uri": acctest.Representation{RepType: acctest.Optional, Create: `oci://xuejuzha-test@idtlxnfdweil/`}, } + DatasciencePipelineRunStepOverrideDetailsStepInfrastructureConfigurationDetailsRepresentation = map[string]interface{}{ + "block_storage_size_in_gbs": acctest.Representation{RepType: acctest.Required, Create: `10`}, + "shape_name": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_shape.test_shape.name}`}, + "shape_config_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatasciencePipelineRunStepOverrideDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsRepresentation}, + "subnet_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_core_subnet.test_subnet.id}`}, + } DatasciencePipelineRunStepOverrideDetailsStepDataflowConfigurationDetailsDriverShapeConfigDetailsRepresentation = map[string]interface{}{ "memory_in_gbs": acctest.Representation{RepType: acctest.Optional, Create: `8.0`}, "ocpus": acctest.Representation{RepType: acctest.Optional, Create: `1.0`}, @@ -150,6 +174,10 @@ var ( "memory_in_gbs": acctest.Representation{RepType: acctest.Optional, Create: `8.0`}, "ocpus": acctest.Representation{RepType: acctest.Optional, Create: `1.0`}, } + DatasciencePipelineRunStepOverrideDetailsStepInfrastructureConfigurationDetailsShapeConfigDetailsRepresentation = map[string]interface{}{ + "memory_in_gbs": acctest.Representation{RepType: acctest.Optional, Create: `1.0`}, + "ocpus": acctest.Representation{RepType: acctest.Optional, Create: `1.0`}, + } // DatasciencePipelineRunResourceDependencies = acctest.GenerateDataSourceFromRepresentationMap("oci_core_shapes", "test_shapes", acctest.Required, acctest.Create, CoreShapeDataSourceRepresentation) + // acctest.GenerateResourceFromRepresentationMap("oci_core_subnet", "test_subnet", acctest.Required, acctest.Create, CoreSubnetRepresentation) + @@ -302,6 +330,13 @@ func TestDatasciencePipelineRunResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "display_name", "displayName"), resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.0.block_storage_size_in_gbs", "10"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.0.shape_config_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.0.shape_config_details.0.memory_in_gbs", "1.0"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.0.shape_config_details.0.ocpus", "1.0"), + resource.TestCheckResourceAttrSet(resourceName, "infrastructure_configuration_override_details.0.shape_name"), + resource.TestCheckResourceAttrSet(resourceName, "infrastructure_configuration_override_details.0.subnet_id"), resource.TestCheckResourceAttr(resourceName, "log_configuration_override_details.#", "1"), resource.TestCheckResourceAttr(resourceName, "log_configuration_override_details.0.enable_auto_log_creation", "false"), resource.TestCheckResourceAttr(resourceName, "log_configuration_override_details.0.enable_logging", "true"), @@ -350,6 +385,13 @@ func TestDatasciencePipelineRunResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "display_name", "displayName"), resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.0.block_storage_size_in_gbs", "10"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.0.shape_config_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.0.shape_config_details.0.memory_in_gbs", "1.0"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.0.shape_config_details.0.ocpus", "1.0"), + resource.TestCheckResourceAttrSet(resourceName, "infrastructure_configuration_override_details.0.shape_name"), + resource.TestCheckResourceAttrSet(resourceName, "infrastructure_configuration_override_details.0.subnet_id"), resource.TestCheckResourceAttr(resourceName, "log_configuration_override_details.#", "1"), resource.TestCheckResourceAttr(resourceName, "log_configuration_override_details.0.enable_auto_log_creation", "false"), resource.TestCheckResourceAttr(resourceName, "log_configuration_override_details.0.enable_logging", "true"), @@ -363,36 +405,13 @@ func TestDatasciencePipelineRunResource_basic(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "step_override_details.0.step_configuration_details.0.command_line_arguments", "commandLineArgumentsOverriden"), resource.TestCheckResourceAttr(resourceName, "step_override_details.0.step_configuration_details.0.environment_variables.%", "1"), resource.TestCheckResourceAttr(resourceName, "step_override_details.0.step_configuration_details.0.maximum_runtime_in_minutes", "10"), - resource.TestCheckResourceAttr(resourceName, "step_override_details.0.step_name", "stepName"), - resource.TestCheckResourceAttr(resourceName, "step_runs.#", "1"), - resource.TestCheckResourceAttr(resourceName, "system_tags.#", "0"), - resource.TestCheckResourceAttrSet(resourceName, "time_accepted"), - - 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 - }, - ), - }, - - // Step 6 - verify updates to updatable parameters - { - Config: config + compartmentIdVariableStr + PipelineRunResourceDependencies + - acctest.GenerateResourceFromRepresentationMap("oci_datascience_pipeline_run", "test_pipeline_run", acctest.Optional, acctest.Update, pipelineRunRepresentation), - Check: acctest.ComposeAggregateTestCheckFuncWrapper( - resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), - resource.TestCheckResourceAttr(resourceName, "configuration_override_details.#", "1"), - resource.TestCheckResourceAttr(resourceName, "configuration_override_details.0.command_line_arguments", "commandLineArgumentsOverriden"), - resource.TestCheckResourceAttr(resourceName, "configuration_override_details.0.environment_variables.%", "1"), - resource.TestCheckResourceAttr(resourceName, "configuration_override_details.0.maximum_runtime_in_minutes", "10"), - resource.TestCheckResourceAttr(resourceName, "configuration_override_details.0.type", "DEFAULT"), - resource.TestCheckResourceAttrSet(resourceName, "created_by"), - resource.TestCheckResourceAttr(resourceName, "display_name", "displayName2"), - resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), - resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.0.block_storage_size_in_gbs", "10"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.0.shape_config_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.0.shape_config_details.0.memory_in_gbs", "1.0"), + resource.TestCheckResourceAttr(resourceName, "infrastructure_configuration_override_details.0.shape_config_details.0.ocpus", "1.0"), + resource.TestCheckResourceAttrSet(resourceName, "infrastructure_configuration_override_details.0.shape_name"), + resource.TestCheckResourceAttrSet(resourceName, "infrastructure_configuration_override_details.0.subnet_id"), resource.TestCheckResourceAttr(resourceName, "log_configuration_override_details.#", "1"), resource.TestCheckResourceAttr(resourceName, "log_configuration_override_details.0.enable_auto_log_creation", "false"), resource.TestCheckResourceAttr(resourceName, "log_configuration_override_details.0.enable_logging", "true"), @@ -465,6 +484,11 @@ func TestDatasciencePipelineRunResource_basic(t *testing.T) { resource.TestCheckResourceAttr(singularDatasourceName, "display_name", "displayName2"), resource.TestCheckResourceAttr(singularDatasourceName, "freeform_tags.%", "1"), resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttr(singularDatasourceName, "infrastructure_configuration_override_details.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "infrastructure_configuration_override_details.0.block_storage_size_in_gbs", "10"), + resource.TestCheckResourceAttr(singularDatasourceName, "infrastructure_configuration_override_details.0.shape_config_details.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "infrastructure_configuration_override_details.0.shape_config_details.0.memory_in_gbs", "1.0"), + resource.TestCheckResourceAttr(singularDatasourceName, "infrastructure_configuration_override_details.0.shape_config_details.0.ocpus", "1.0"), resource.TestCheckResourceAttr(singularDatasourceName, "log_configuration_override_details.#", "1"), resource.TestCheckResourceAttr(singularDatasourceName, "log_configuration_override_details.0.enable_auto_log_creation", "false"), resource.TestCheckResourceAttr(singularDatasourceName, "log_configuration_override_details.0.enable_logging", "true"), diff --git a/internal/integrationtest/devops_build_pipeline_code_repository_build_stage_test.go b/internal/integrationtest/devops_build_pipeline_code_repository_build_stage_test.go index 20856216b52..d065ceaf3e0 100644 --- a/internal/integrationtest/devops_build_pipeline_code_repository_build_stage_test.go +++ b/internal/integrationtest/devops_build_pipeline_code_repository_build_stage_test.go @@ -276,3 +276,55 @@ func TestDevopsBuildPipelineBuildStageCodeRepoResource_basic(t *testing.T) { }, }) } + +func cloneMap(original map[string]interface{}) map[string]interface{} { + cloned := make(map[string]interface{}) + for k, v := range original { + switch val := v.(type) { + case map[string]interface{}: + cloned[k] = cloneMap(val) + case acctest.Representation: + cloned[k] = val + case acctest.RepresentationGroup: + cloned[k] = val + default: + cloned[k] = v + } + } + return cloned +} + +func TestDevopsBuildPipelineBuildStageCodeRepoResource_withOL8(t *testing.T) { + httpreplay.SetScenario("TestDevopsBuildPipelineBuildStageCodeRepoResource_withOL8") + defer httpreplay.SaveScenario() + + provider := acctest.TestAccProvider + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + resourceName := "oci_devops_build_pipeline_stage.test_build_pipeline_stage" + + // Clone representation and override the image + ol8Representation := cloneMap(buildPipelineBuildStageCodeRepoRepresentation) + ol8Representation["image"] = acctest.Representation{RepType: acctest.Required, Create: "OL8_X86_64_STANDARD_10"} + + resource.Test(t, resource.TestCase{ + PreCheck: func() { acctest.TestAccPreCheck(t) }, + Providers: map[string]*schema.Provider{ + "oci": provider, + }, + CheckDestroy: testAccCheckDevopsBuildPipelineStageDestroy, + Steps: []resource.TestStep{ + { + Config: config + compartmentIdVariableStr + BuildPipelineBuildStageCodeRepoResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_devops_build_pipeline_stage", "test_build_pipeline_stage", acctest.Required, acctest.Create, ol8Representation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "build_pipeline_stage_type", "BUILD"), + resource.TestCheckResourceAttr(resourceName, "image", "OL8_X86_64_STANDARD_10"), + ), + }, + }, + }) +} diff --git a/internal/integrationtest/golden_gate_connection_test.go b/internal/integrationtest/golden_gate_connection_test.go index b6b9f3953ee..d5892c39d22 100644 --- a/internal/integrationtest/golden_gate_connection_test.go +++ b/internal/integrationtest/golden_gate_connection_test.go @@ -141,6 +141,8 @@ var ( "display_name": acctest.Representation{RepType: acctest.Required, Create: `TF-connection-refresh-test`}, "description": acctest.Representation{RepType: acctest.Required, Create: `description`}, "trigger_refresh": acctest.Representation{RepType: acctest.Required, Create: `true`}, + "key_id": acctest.Representation{RepType: acctest.Required}, + "vault_id": acctest.Representation{RepType: acctest.Required}, }, ) @@ -171,6 +173,8 @@ var ( "routing_method": acctest.Representation{RepType: acctest.Optional, Create: `SHARED_DEPLOYMENT_ENDPOINT`, Update: `DEDICATED_ENDPOINT`}, "access_key_id": acctest.Representation{RepType: acctest.Required, Create: `AKIAIOSFODNN7EXAMPLE`, Update: `AKIAIOSFODNN7UPDATED`}, "secret_access_key": acctest.Representation{RepType: acctest.Required, Create: `mysecret`}, + "endpoint": acctest.Representation{RepType: acctest.Required, Create: `https://kinesis.us-east-1.amazonaws.com`, Update: `https://kinesis.us-west-1.amazonaws.com`}, + "region": acctest.Representation{RepType: acctest.Required, Create: `us-east-1`, Update: `us-west-1`}, }, }, @@ -191,12 +195,13 @@ var ( // Azure DataLake {connectionType: oci_golden_gate.ConnectionTypeAzureDataLakeStorage, technologyType: oci_golden_gate.TechnologyTypeAzureDataLakeStorage, representation: map[string]interface{}{ - "authentication_type": acctest.Representation{RepType: acctest.Required, Create: string(oci_golden_gate.AzureDataLakeStorageConnectionAuthenticationTypeAzureActiveDirectory)}, - "account_name": acctest.Representation{RepType: acctest.Required, Create: `myAccount`, Update: `updatedAccount`}, - "endpoint": acctest.Representation{RepType: acctest.Required, Create: `https://whatever.com`, Update: `https://exactly.com`}, - "azure_tenant_id": acctest.Representation{RepType: acctest.Required, Create: `14593954-d337-4a61-a364-9f758c64f97f`}, - "client_id": acctest.Representation{RepType: acctest.Required, Create: `06ecaabf-8b80-4ec8-a0ec-20cbf463703d`}, - "client_secret": acctest.Representation{RepType: acctest.Required, Create: `dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1`}, + "authentication_type": acctest.Representation{RepType: acctest.Required, Create: string(oci_golden_gate.AzureDataLakeStorageConnectionAuthenticationTypeAzureActiveDirectory)}, + "account_name": acctest.Representation{RepType: acctest.Required, Create: `myAccount`, Update: `updatedAccount`}, + "endpoint": acctest.Representation{RepType: acctest.Required, Create: `https://whatever.com`, Update: `https://exactly.com`}, + "azure_tenant_id": acctest.Representation{RepType: acctest.Required, Create: `14593954-d337-4a61-a364-9f758c64f97f`}, + "client_id": acctest.Representation{RepType: acctest.Required, Create: `06ecaabf-8b80-4ec8-a0ec-20cbf463703d`}, + "client_secret": acctest.Representation{RepType: acctest.Required, Create: `dO29Q~F5-VwnA.lZdd11xFF_t5NAXCaGwDl9NbT1`}, + "azure_authority_host": acctest.Representation{RepType: acctest.Required, Create: `https://login.microsoftonline.com`, Update: `https://login2.microsoftonline.com`}, }, }, @@ -262,6 +267,8 @@ var ( "username": acctest.Representation{RepType: acctest.Required, Create: `admin`, Update: `new_admin`}, "security_protocol": acctest.Representation{RepType: acctest.Required, Create: string(oci_golden_gate.Db2ConnectionSecurityProtocolPlain)}, "password_secret_id": acctest.Representation{RepType: acctest.Required, Create: `${var.password_secret_id}`, Update: `${var.new_password_secret_id}`}, + "key_id": acctest.Representation{RepType: acctest.Required}, + "vault_id": acctest.Representation{RepType: acctest.Required}, "does_use_secret_ids": acctest.Representation{RepType: acctest.Required, Create: `true`}, }, }, diff --git a/internal/integrationtest/redis_oci_cache_config_set_test.go b/internal/integrationtest/redis_oci_cache_config_set_test.go new file mode 100644 index 00000000000..596e9f1a565 --- /dev/null +++ b/internal/integrationtest/redis_oci_cache_config_set_test.go @@ -0,0 +1,377 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "context" + "fmt" + "strconv" + "testing" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/terraform" + "github.com/oracle/oci-go-sdk/v65/common" + oci_redis "github.com/oracle/oci-go-sdk/v65/redis" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + tf_client "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/resourcediscovery" + "github.com/oracle/terraform-provider-oci/internal/tfresource" + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + RedisOciCacheConfigSetRequiredOnlyResource = RedisOciCacheConfigSetResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_redis_oci_cache_config_set", "test_oci_cache_config_set", acctest.Required, acctest.Create, RedisOciCacheConfigSetRepresentation) + + RedisOciCacheConfigSetResourceConfig = RedisOciCacheConfigSetResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_redis_oci_cache_config_set", "test_oci_cache_config_set", acctest.Optional, acctest.Update, RedisOciCacheConfigSetRepresentation) + + RedisOciCacheConfigSetSingularDataSourceRepresentation = map[string]interface{}{ + "oci_cache_config_set_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_redis_oci_cache_config_set.test_oci_cache_config_set.id}`}, + } + + RedisOciCacheConfigSetDataSourceRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.compartment_id}`}, + "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, + "id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_redis_oci_cache_config_set.test_oci_cache_config_set.id}`}, + "software_version": acctest.Representation{RepType: acctest.Optional, Create: `REDIS_7_0`}, + "state": acctest.Representation{RepType: acctest.Optional, Create: `ACTIVE`}, + "filter": acctest.RepresentationGroup{RepType: acctest.Required, Group: RedisOciCacheConfigSetDataSourceFilterRepresentation}} + RedisOciCacheConfigSetDataSourceFilterRepresentation = map[string]interface{}{ + "name": acctest.Representation{RepType: acctest.Required, Create: `id`}, + "values": acctest.Representation{RepType: acctest.Required, Create: []string{`${oci_redis_oci_cache_config_set.test_oci_cache_config_set.id}`}}, + } + + RedisOciCacheConfigSetRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "configuration_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: RedisOciCacheConfigSetConfigurationDetailsRepresentation}, + "display_name": acctest.Representation{RepType: acctest.Required, Create: `displayName`, Update: `displayName2`}, + "software_version": acctest.Representation{RepType: acctest.Required, Create: `REDIS_7_0`}, + "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.Required, Create: `description`, Update: `description2`}, + "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"bar-key": "value"}, Update: map[string]string{"Department": "Accounting"}}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreRedisTagsChangesRepresentation}, + } + RedisOciCacheConfigSetConfigurationDetailsRepresentation = map[string]interface{}{ + "items": acctest.RepresentationGroup{RepType: acctest.Required, Group: RedisOciCacheConfigSetConfigurationDetailsItemsRepresentation}, + } + RedisOciCacheConfigSetConfigurationDetailsItemsRepresentation = map[string]interface{}{ + "config_key": acctest.Representation{RepType: acctest.Required, Create: `notify-keyspace-events`}, + "config_value": acctest.Representation{RepType: acctest.Required, Create: `KEA`}, + } + + RedisOciCacheConfigSetResourceDependencies = DefinedTagsDependencies +) + +// issue-routing-tag: redis/default +func TestRedisOciCacheConfigSetResource_basic(t *testing.T) { + httpreplay.SetScenario("TestRedisOciCacheConfigSetResource_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_redis_oci_cache_config_set.test_oci_cache_config_set" + datasourceName := "data.oci_redis_oci_cache_config_sets.test_oci_cache_config_sets" + singularDatasourceName := "data.oci_redis_oci_cache_config_set.test_oci_cache_config_set" + + 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+RedisOciCacheConfigSetResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_redis_oci_cache_config_set", "test_oci_cache_config_set", acctest.Optional, acctest.Create, RedisOciCacheConfigSetRepresentation), "redis", "ociCacheConfigSet", t) + + acctest.ResourceTest(t, testAccCheckRedisOciCacheConfigSetDestroy, []resource.TestStep{ + // verify Create + { + Config: config + compartmentIdVariableStr + RedisOciCacheConfigSetResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_redis_oci_cache_config_set", "test_oci_cache_config_set", acctest.Required, acctest.Create, RedisOciCacheConfigSetRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "configuration_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "description", "description"), + resource.TestCheckResourceAttr(resourceName, "configuration_details.0.items.#", "1"), + resource.TestCheckResourceAttr(resourceName, "configuration_details.0.items.0.config_key", "notify-keyspace-events"), + resource.TestCheckResourceAttr(resourceName, "configuration_details.0.items.0.config_value", "KEA"), + resource.TestCheckResourceAttr(resourceName, "display_name", "displayName"), + resource.TestCheckResourceAttr(resourceName, "software_version", "REDIS_7_0"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + return err + }, + ), + }, + + // delete before next Create + { + Config: config + compartmentIdVariableStr + RedisOciCacheConfigSetResourceDependencies, + }, + // verify Create with optionals + { + Config: config + compartmentIdVariableStr + RedisOciCacheConfigSetResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_redis_oci_cache_config_set", "test_oci_cache_config_set", acctest.Optional, acctest.Create, RedisOciCacheConfigSetRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "configuration_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "configuration_details.0.items.#", "1"), + resource.TestCheckResourceAttr(resourceName, "configuration_details.0.items.0.config_key", "notify-keyspace-events"), + resource.TestCheckResourceAttr(resourceName, "configuration_details.0.items.0.config_value", "KEA"), + resource.TestCheckResourceAttr(resourceName, "description", "description"), + resource.TestCheckResourceAttr(resourceName, "display_name", "displayName"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "software_version", "REDIS_7_0"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + + func(s *terraform.State) (err error) { + resId, err = acctest.FromInstanceState(s, resourceName, "id") + if isEnableExportCompartment, _ := strconv.ParseBool(utils.GetEnvSettingWithDefault("enable_export_compartment", "true")); isEnableExportCompartment { + if errExport := resourcediscovery.TestExportCompartmentWithResourceName(&resId, &compartmentId, resourceName); errExport != nil { + return errExport + } + } + return err + }, + ), + }, + + // verify Update to the compartment (the compartment will be switched back in the next step) + { + Config: config + compartmentIdVariableStr + compartmentIdUVariableStr + RedisOciCacheConfigSetResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_redis_oci_cache_config_set", "test_oci_cache_config_set", acctest.Optional, acctest.Create, + acctest.RepresentationCopyWithNewProperties(RedisOciCacheConfigSetRepresentation, 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, "configuration_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "configuration_details.0.items.#", "1"), + resource.TestCheckResourceAttr(resourceName, "configuration_details.0.items.0.config_key", "notify-keyspace-events"), + resource.TestCheckResourceAttr(resourceName, "configuration_details.0.items.0.config_value", "KEA"), + resource.TestCheckResourceAttr(resourceName, "description", "description"), + resource.TestCheckResourceAttr(resourceName, "display_name", "displayName"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "software_version", "REDIS_7_0"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + + func(s *terraform.State) (err error) { + resId2, err = acctest.FromInstanceState(s, resourceName, "id") + if resId != resId2 { + return fmt.Errorf("resource recreated when it was supposed to be updated") + } + return err + }, + ), + }, + + // verify updates to updatable parameters + { + Config: config + compartmentIdVariableStr + RedisOciCacheConfigSetResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_redis_oci_cache_config_set", "test_oci_cache_config_set", acctest.Optional, acctest.Update, RedisOciCacheConfigSetRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(resourceName, "configuration_details.#", "1"), + resource.TestCheckResourceAttr(resourceName, "configuration_details.0.items.#", "1"), + resource.TestCheckResourceAttr(resourceName, "configuration_details.0.items.0.config_key", "notify-keyspace-events"), + resource.TestCheckResourceAttr(resourceName, "configuration_details.0.items.0.config_value", "KEA"), + resource.TestCheckResourceAttr(resourceName, "description", "description2"), + resource.TestCheckResourceAttr(resourceName, "display_name", "displayName2"), + resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(resourceName, "id"), + resource.TestCheckResourceAttr(resourceName, "software_version", "REDIS_7_0"), + resource.TestCheckResourceAttrSet(resourceName, "state"), + + func(s *terraform.State) (err error) { + resId2, err = acctest.FromInstanceState(s, resourceName, "id") + if resId != resId2 { + return fmt.Errorf("Resource recreated when it was supposed to be updated.") + } + return err + }, + ), + }, + // verify datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_redis_oci_cache_config_sets", "test_oci_cache_config_sets", acctest.Optional, acctest.Update, RedisOciCacheConfigSetDataSourceRepresentation) + + compartmentIdVariableStr + RedisOciCacheConfigSetResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_redis_oci_cache_config_set", "test_oci_cache_config_set", acctest.Optional, acctest.Update, RedisOciCacheConfigSetRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(datasourceName, "display_name", "displayName2"), + resource.TestCheckResourceAttrSet(datasourceName, "id"), + resource.TestCheckResourceAttr(datasourceName, "software_version", "REDIS_7_0"), + resource.TestCheckResourceAttr(datasourceName, "state", "ACTIVE"), + + resource.TestCheckResourceAttr(datasourceName, "oci_cache_config_set_collection.#", "1"), + resource.TestCheckResourceAttr(datasourceName, "oci_cache_config_set_collection.0.items.#", "1"), + ), + }, + // verify singular datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_redis_oci_cache_config_set", "test_oci_cache_config_set", acctest.Required, acctest.Create, RedisOciCacheConfigSetSingularDataSourceRepresentation) + + compartmentIdVariableStr + RedisOciCacheConfigSetResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(singularDatasourceName, "oci_cache_config_set_id"), + + resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(singularDatasourceName, "configuration_details.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "configuration_details.0.items.#", "1"), + resource.TestCheckResourceAttr(singularDatasourceName, "configuration_details.0.items.0.config_key", "notify-keyspace-events"), + resource.TestCheckResourceAttr(singularDatasourceName, "configuration_details.0.items.0.config_value", "KEA"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "default_config_set_id"), + resource.TestCheckResourceAttr(singularDatasourceName, "description", "description2"), + resource.TestCheckResourceAttr(singularDatasourceName, "display_name", "displayName2"), + resource.TestCheckResourceAttr(singularDatasourceName, "freeform_tags.%", "1"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttr(singularDatasourceName, "software_version", "REDIS_7_0"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_created"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_updated"), + ), + }, + // verify resource import + { + Config: config + RedisOciCacheConfigSetRequiredOnlyResource, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{}, + ResourceName: resourceName, + }, + }) +} + +func testAccCheckRedisOciCacheConfigSetDestroy(s *terraform.State) error { + noResourceFound := true + client := acctest.TestAccProvider.Meta().(*tf_client.OracleClients).OciCacheConfigSetClient() + for _, rs := range s.RootModule().Resources { + if rs.Type == "oci_redis_oci_cache_config_set" { + noResourceFound = false + request := oci_redis.GetOciCacheConfigSetRequest{} + + tmp := rs.Primary.ID + request.OciCacheConfigSetId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(true, "redis") + + response, err := client.GetOciCacheConfigSet(context.Background(), request) + + if err == nil { + deletedLifecycleStates := map[string]bool{ + string(oci_redis.OciCacheConfigSetLifecycleStateDeleted): 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("RedisOciCacheConfigSet") { + resource.AddTestSweepers("RedisOciCacheConfigSet", &resource.Sweeper{ + Name: "RedisOciCacheConfigSet", + Dependencies: acctest.DependencyGraph["ociCacheConfigSet"], + F: sweepRedisOciCacheConfigSetResource, + }) + } +} + +func sweepRedisOciCacheConfigSetResource(compartment string) error { + ociCacheConfigSetClient := acctest.GetTestClients(&schema.ResourceData{}).OciCacheConfigSetClient() + ociCacheConfigSetIds, err := getRedisOciCacheConfigSetIds(compartment) + if err != nil { + return err + } + for _, ociCacheConfigSetId := range ociCacheConfigSetIds { + if ok := acctest.SweeperDefaultResourceId[ociCacheConfigSetId]; !ok { + deleteOciCacheConfigSetRequest := oci_redis.DeleteOciCacheConfigSetRequest{} + + deleteOciCacheConfigSetRequest.OciCacheConfigSetId = &ociCacheConfigSetId + + deleteOciCacheConfigSetRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(true, "redis") + _, error := ociCacheConfigSetClient.DeleteOciCacheConfigSet(context.Background(), deleteOciCacheConfigSetRequest) + if error != nil { + fmt.Printf("Error deleting OciCacheConfigSet %s %s, It is possible that the resource is already deleted. Please verify manually \n", ociCacheConfigSetId, error) + continue + } + acctest.WaitTillCondition(acctest.TestAccProvider, &ociCacheConfigSetId, RedisOciCacheConfigSetSweepWaitCondition, time.Duration(3*time.Minute), + RedisOciCacheConfigSetSweepResponseFetchOperation, "redis", true) + } + } + return nil +} + +func getRedisOciCacheConfigSetIds(compartment string) ([]string, error) { + ids := acctest.GetResourceIdsToSweep(compartment, "OciCacheConfigSetId") + if ids != nil { + return ids, nil + } + var resourceIds []string + compartmentId := compartment + ociCacheConfigSetClient := acctest.GetTestClients(&schema.ResourceData{}).OciCacheConfigSetClient() + + listOciCacheConfigSetsRequest := oci_redis.ListOciCacheConfigSetsRequest{} + listOciCacheConfigSetsRequest.CompartmentId = &compartmentId + listOciCacheConfigSetsRequest.LifecycleState = oci_redis.OciCacheConfigSetLifecycleStateActive + listOciCacheConfigSetsResponse, err := ociCacheConfigSetClient.ListOciCacheConfigSets(context.Background(), listOciCacheConfigSetsRequest) + + if err != nil { + return resourceIds, fmt.Errorf("Error getting OciCacheConfigSet list for compartment id : %s , %s \n", compartmentId, err) + } + for _, ociCacheConfigSet := range listOciCacheConfigSetsResponse.Items { + id := *ociCacheConfigSet.Id + resourceIds = append(resourceIds, id) + acctest.AddResourceIdToSweeperResourceIdMap(compartmentId, "OciCacheConfigSetId", id) + acctest.SweeperDefaultResourceId[*ociCacheConfigSet.DefaultConfigSetId] = true + + } + return resourceIds, nil +} + +func RedisOciCacheConfigSetSweepWaitCondition(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 ociCacheConfigSetResponse, ok := response.Response.(oci_redis.GetOciCacheConfigSetResponse); ok { + return ociCacheConfigSetResponse.LifecycleState != oci_redis.OciCacheConfigSetLifecycleStateDeleted + } + return false +} + +func RedisOciCacheConfigSetSweepResponseFetchOperation(client *tf_client.OracleClients, resourceId *string, retryPolicy *common.RetryPolicy) error { + _, err := client.OciCacheConfigSetClient().GetOciCacheConfigSet(context.Background(), oci_redis.GetOciCacheConfigSetRequest{ + OciCacheConfigSetId: resourceId, + RequestMetadata: common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + return err +} diff --git a/internal/integrationtest/redis_oci_cache_config_setlist_associated_oci_cache_cluster_test.go b/internal/integrationtest/redis_oci_cache_config_setlist_associated_oci_cache_cluster_test.go new file mode 100644 index 00000000000..ca0a505053a --- /dev/null +++ b/internal/integrationtest/redis_oci_cache_config_setlist_associated_oci_cache_cluster_test.go @@ -0,0 +1,58 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + RedisOciCacheConfigSetlistAssociatedOciCacheClusterDataSourceRepresentation = map[string]interface{}{ + "filter": acctest.RepresentationGroup{RepType: acctest.Required, Group: RedisOciCacheConfigSetlistAssociatedOciCacheClusterDataSourceFilterRepresentation}} + RedisOciCacheConfigSetlistAssociatedOciCacheClusterDataSourceFilterRepresentation = map[string]interface{}{ + "name": acctest.Representation{RepType: acctest.Required, Create: `id`}, + "values": acctest.Representation{RepType: acctest.Required, Create: []string{`${oci_redis_oci_cache_config_setlist_associated_oci_cache_cluster.test_oci_cache_config_setlist_associated_oci_cache_cluster.id}`}}, + } + + RedisOciCacheConfigSetlistAssociatedOciCacheClusterRepresentation = map[string]interface{}{ + "oci_cache_config_set_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_redis_oci_cache_config_set.test_oci_cache_config_set.id}`}, + } + + RedisOciCacheConfigSetlistAssociatedOciCacheClusterResourceDependencies = acctest.GenerateResourceFromRepresentationMap("oci_redis_oci_cache_config_set", "test_oci_cache_config_set", acctest.Required, acctest.Create, RedisOciCacheConfigSetRepresentation) +) + +// issue-routing-tag: redis/default +func TestRedisOciCacheConfigSetlistAssociatedOciCacheClusterResource_basic(t *testing.T) { + httpreplay.SetScenario("TestRedisOciCacheConfigSetlistAssociatedOciCacheClusterResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + resourceName := "oci_redis_oci_cache_config_setlist_associated_oci_cache_cluster.test_oci_cache_config_setlist_associated_oci_cache_cluster" + // Save TF content to Create resource with only required properties. This has to be exactly the same as the config part in the create step in the test. + acctest.SaveConfigContent(config+compartmentIdVariableStr+RedisOciCacheConfigSetlistAssociatedOciCacheClusterResourceDependencies+ + acctest.GenerateResourceFromRepresentationMap("oci_redis_oci_cache_config_setlist_associated_oci_cache_cluster", "test_oci_cache_config_setlist_associated_oci_cache_cluster", acctest.Required, acctest.Create, RedisOciCacheConfigSetlistAssociatedOciCacheClusterRepresentation), "redis", "ociCacheConfigSetlistAssociatedOciCacheCluster", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify Create + { + Config: config + compartmentIdVariableStr + RedisOciCacheConfigSetlistAssociatedOciCacheClusterResourceDependencies + + acctest.GenerateResourceFromRepresentationMap("oci_redis_oci_cache_config_setlist_associated_oci_cache_cluster", "test_oci_cache_config_setlist_associated_oci_cache_cluster", acctest.Required, acctest.Create, RedisOciCacheConfigSetlistAssociatedOciCacheClusterRepresentation), + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttrSet(resourceName, "oci_cache_config_set_id"), + ), + }, + }) +} diff --git a/internal/integrationtest/redis_oci_cache_default_config_set_test.go b/internal/integrationtest/redis_oci_cache_default_config_set_test.go new file mode 100644 index 00000000000..1b63b45e017 --- /dev/null +++ b/internal/integrationtest/redis_oci_cache_default_config_set_test.go @@ -0,0 +1,90 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package integrationtest + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + + "github.com/oracle/terraform-provider-oci/httpreplay" + "github.com/oracle/terraform-provider-oci/internal/acctest" + + "github.com/oracle/terraform-provider-oci/internal/utils" +) + +var ( + RedisOciCacheDefaultConfigSetSingularDataSourceRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "oci_cache_default_config_set_id": acctest.Representation{RepType: acctest.Required, Create: `${var.default_config_set_id}`}, + } + + RedisOciCacheDefaultConfigSetDataSourceRepresentation = map[string]interface{}{ + "compartment_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.compartment_id}`}, + "display_name": acctest.Representation{RepType: acctest.Optional, Create: `default-redis_7_0-v1`}, + "id": acctest.Representation{RepType: acctest.Optional, Create: `${var.default_config_set_id}`}, + "software_version": acctest.Representation{RepType: acctest.Optional, Create: `REDIS_7_0`}, + "state": acctest.Representation{RepType: acctest.Optional, Create: `ACTIVE`}, + "filter": acctest.RepresentationGroup{RepType: acctest.Required, Group: RedisOciCacheDefaultConfigSetDataSourceFilterRepresentation}} + RedisOciCacheDefaultConfigSetDataSourceFilterRepresentation = map[string]interface{}{ + "name": acctest.Representation{RepType: acctest.Required, Create: `items.id`}, + "values": acctest.Representation{RepType: acctest.Required, Create: []string{`${var.default_config_set_id}`}}, + } + RedisOciCacheDefaultConfigSetResourceConfig = "" +) + +// issue-routing-tag: redis/default +func TestRedisOciCacheDefaultConfigSetResource_basic(t *testing.T) { + httpreplay.SetScenario("TestRedisOciCacheDefaultConfigSetResource_basic") + defer httpreplay.SaveScenario() + + config := acctest.ProviderTestConfig() + + compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid") + compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId) + + datasourceName := "data.oci_redis_oci_cache_default_config_sets.test_oci_cache_default_config_sets" + singularDatasourceName := "data.oci_redis_oci_cache_default_config_set.test_oci_cache_default_config_set" + defaultConfigSetId := utils.GetEnvSettingWithBlankDefault("default_config_set_id") + defaultConfigSetIdVariableStr := fmt.Sprintf("variable \"default_config_set_id\" { default = \"%s\" }\n", defaultConfigSetId) + + acctest.SaveConfigContent("", "", "", t) + + acctest.ResourceTest(t, nil, []resource.TestStep{ + // verify datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_redis_oci_cache_default_config_sets", "test_oci_cache_default_config_sets", acctest.Optional, acctest.Create, RedisOciCacheDefaultConfigSetDataSourceRepresentation) + + compartmentIdVariableStr + defaultConfigSetIdVariableStr + RedisOciCacheDefaultConfigSetResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttr(datasourceName, "display_name", "default-redis_7_0-v1"), + resource.TestCheckResourceAttrSet(datasourceName, "id"), + resource.TestCheckResourceAttr(datasourceName, "software_version", "REDIS_7_0"), + resource.TestCheckResourceAttr(datasourceName, "state", "ACTIVE"), + + resource.TestCheckResourceAttrSet(datasourceName, "oci_cache_default_config_set_collection.#"), + ), + }, + // verify singular datasource + { + Config: config + + acctest.GenerateDataSourceFromRepresentationMap("oci_redis_oci_cache_default_config_set", "test_oci_cache_default_config_set", acctest.Required, acctest.Create, RedisOciCacheDefaultConfigSetSingularDataSourceRepresentation) + + compartmentIdVariableStr + defaultConfigSetIdVariableStr + RedisOciCacheDefaultConfigSetResourceConfig, + Check: acctest.ComposeAggregateTestCheckFuncWrapper( + resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId), + resource.TestCheckResourceAttrSet(singularDatasourceName, "oci_cache_default_config_set_id"), + + resource.TestCheckResourceAttr(singularDatasourceName, "default_configuration_details.#", "1"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "description"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "display_name"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "id"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "software_version"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "state"), + resource.TestCheckResourceAttrSet(singularDatasourceName, "time_created"), + ), + }, + }) +} diff --git a/internal/integrationtest/redis_redis_cluster_test.go b/internal/integrationtest/redis_redis_cluster_test.go index 056965c082e..bd34f7144ad 100644 --- a/internal/integrationtest/redis_redis_cluster_test.go +++ b/internal/integrationtest/redis_redis_cluster_test.go @@ -1,4 +1,3 @@ -// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. // Licensed under the Mozilla Public License v2 package integrationtest @@ -48,32 +47,34 @@ var ( } RedisRedisClusterRepresentation = map[string]interface{}{ - "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, - "display_name": acctest.Representation{RepType: acctest.Required, Create: `displayNameNonSharded`, Update: `displayNameNonSharded2`}, - "node_count": acctest.Representation{RepType: acctest.Required, Create: `3`, Update: `5`}, - "node_memory_in_gbs": acctest.Representation{RepType: acctest.Required, Create: `2`, Update: `3`}, - "software_version": acctest.Representation{RepType: acctest.Required, Create: `REDIS_7_0`, Update: `VALKEY_7_2`}, - "subnet_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_subnet.test_subnet.id}`}, - "cluster_mode": acctest.Representation{RepType: acctest.Optional, Create: `NONSHARDED`}, - "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")}`}, - "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.Optional, Create: []string{`${oci_core_network_security_group.test_network_security_group.id}`}}, - "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreRedisTagsChangesRepresentation}, + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "display_name": acctest.Representation{RepType: acctest.Required, Create: `displayNameNonSharded`, Update: `displayNameNonSharded2`}, + "node_count": acctest.Representation{RepType: acctest.Required, Create: `3`, Update: `5`}, + "node_memory_in_gbs": acctest.Representation{RepType: acctest.Required, Create: `2`, Update: `3`}, + "software_version": acctest.Representation{RepType: acctest.Required, Create: `REDIS_7_0`, Update: `VALKEY_7_2`}, + "subnet_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_subnet.test_subnet.id}`}, + "cluster_mode": acctest.Representation{RepType: acctest.Optional, Create: `NONSHARDED`}, + "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")}`}, + "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.Optional, Create: []string{`${oci_core_network_security_group.test_network_security_group.id}`}}, + "oci_cache_config_set_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_redis_oci_cache_config_set.test_oci_cache_config_set.id}`}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreRedisTagsChangesRepresentation}, } RedisRedisShardedClusterRepresentation = map[string]interface{}{ - "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, - "display_name": acctest.Representation{RepType: acctest.Required, Create: `displayNameSharded`, Update: `displayNameSharded2`}, - "node_count": acctest.Representation{RepType: acctest.Required, Create: `2`, Update: `3`}, - "node_memory_in_gbs": acctest.Representation{RepType: acctest.Required, Create: `2`, Update: `3`}, - "shard_count": acctest.Representation{RepType: acctest.Required, Create: `3`, Update: `5`}, - "software_version": acctest.Representation{RepType: acctest.Required, Create: `V7_0_5`}, - "subnet_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_subnet.test_subnet.id}`}, - "cluster_mode": acctest.Representation{RepType: acctest.Required, Create: `SHARDED`}, - "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")}`}, - "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.Optional, Create: []string{`${oci_core_network_security_group.test_network_security_group.id}`}}, - "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreRedisTagsChangesRepresentation}, + "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, + "display_name": acctest.Representation{RepType: acctest.Required, Create: `displayNameSharded`, Update: `displayNameSharded2`}, + "node_count": acctest.Representation{RepType: acctest.Required, Create: `2`, Update: `3`}, + "node_memory_in_gbs": acctest.Representation{RepType: acctest.Required, Create: `2`, Update: `3`}, + "shard_count": acctest.Representation{RepType: acctest.Required, Create: `3`, Update: `5`}, + "software_version": acctest.Representation{RepType: acctest.Required, Create: `REDIS_7_0`}, + "subnet_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_subnet.test_subnet.id}`}, + "cluster_mode": acctest.Representation{RepType: acctest.Required, Create: `SHARDED`}, + "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")}`}, + "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.Optional, Create: []string{`${oci_core_network_security_group.test_network_security_group.id}`}}, + "oci_cache_config_set_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_redis_oci_cache_config_set.test_oci_cache_config_set.id}`}, + "lifecycle": acctest.RepresentationGroup{RepType: acctest.Required, Group: ignoreRedisTagsChangesRepresentation}, } ignoreRedisTagsChangesRepresentation = map[string]interface{}{ @@ -82,6 +83,7 @@ var ( RedisRedisClusterResourceDependencies = acctest.GenerateResourceFromRepresentationMap("oci_core_network_security_group", "test_network_security_group", acctest.Required, acctest.Create, CoreNetworkSecurityGroupRepresentation) + acctest.GenerateResourceFromRepresentationMap("oci_core_vcn", "test_vcn", acctest.Required, acctest.Create, CoreVcnRepresentation) + + acctest.GenerateResourceFromRepresentationMap("oci_redis_oci_cache_config_set", "test_oci_cache_config_set", acctest.Required, acctest.Create, RedisOciCacheConfigSetRepresentation) + acctest.GenerateResourceFromRepresentationMap("oci_core_security_list", "redis_security_list", acctest.Required, acctest.Create, acctest.RepresentationCopyWithNewProperties(CoreSecurityListRepresentation, map[string]interface{}{ "display_name": acctest.Representation{RepType: acctest.Required, Create: `redis-security-list`}, @@ -253,7 +255,7 @@ func TestRedisRedisClusterResource_basic(t *testing.T) { resource.TestCheckResourceAttr(shardedResourceName, "node_memory_in_gbs", "2"), resource.TestCheckResourceAttr(shardedResourceName, "nsg_ids.#", "1"), resource.TestCheckResourceAttr(shardedResourceName, "shard_count", "3"), - resource.TestCheckResourceAttr(shardedResourceName, "software_version", "V7_0_5"), + resource.TestCheckResourceAttr(shardedResourceName, "software_version", "REDIS_7_0"), resource.TestCheckResourceAttrSet(shardedResourceName, "subnet_id"), func(s *terraform.State) (err error) { @@ -286,7 +288,7 @@ func TestRedisRedisClusterResource_basic(t *testing.T) { resource.TestCheckResourceAttr(shardedResourceName, "node_memory_in_gbs", "2"), resource.TestCheckResourceAttr(shardedResourceName, "nsg_ids.#", "1"), resource.TestCheckResourceAttr(shardedResourceName, "shard_count", "3"), - resource.TestCheckResourceAttr(shardedResourceName, "software_version", "V7_0_5"), + resource.TestCheckResourceAttr(shardedResourceName, "software_version", "REDIS_7_0"), resource.TestCheckResourceAttrSet(shardedResourceName, "subnet_id"), func(s *terraform.State) (err error) { @@ -314,7 +316,7 @@ func TestRedisRedisClusterResource_basic(t *testing.T) { resource.TestCheckResourceAttr(shardedResourceName, "node_memory_in_gbs", "3"), resource.TestCheckResourceAttr(shardedResourceName, "nsg_ids.#", "1"), resource.TestCheckResourceAttr(shardedResourceName, "shard_count", "5"), - resource.TestCheckResourceAttr(shardedResourceName, "software_version", "V7_0_5"), + resource.TestCheckResourceAttr(shardedResourceName, "software_version", "REDIS_7_0"), resource.TestCheckResourceAttrSet(shardedResourceName, "subnet_id"), func(s *terraform.State) (err error) { diff --git a/internal/service/cloud_bridge/cloud_bridge_appliance_images_data_source.go b/internal/service/cloud_bridge/cloud_bridge_appliance_images_data_source.go index 15c8035c7d8..42204faf204 100644 --- a/internal/service/cloud_bridge/cloud_bridge_appliance_images_data_source.go +++ b/internal/service/cloud_bridge/cloud_bridge_appliance_images_data_source.go @@ -194,10 +194,6 @@ func ApplianceImageSummaryToMap(obj oci_cloud_bridge.ApplianceImageSummary) map[ result["checksum"] = string(*obj.Checksum) } - if obj.DefinedTags != nil { - result["defined_tags"] = tfresource.DefinedTagsToMap(obj.DefinedTags) - } - if obj.DisplayName != nil { result["display_name"] = string(*obj.DisplayName) } @@ -214,8 +210,6 @@ func ApplianceImageSummaryToMap(obj oci_cloud_bridge.ApplianceImageSummary) map[ result["format"] = string(*obj.Format) } - result["freeform_tags"] = obj.FreeformTags - if obj.Id != nil { result["id"] = string(*obj.Id) } diff --git a/internal/service/core/core_instance_configuration_resource.go b/internal/service/core/core_instance_configuration_resource.go index aadd278a997..70bf160e608 100644 --- a/internal/service/core/core_instance_configuration_resource.go +++ b/internal/service/core/core_instance_configuration_resource.go @@ -480,6 +480,12 @@ func CoreInstanceConfigurationResource() *schema.Resource { Computed: true, ForceNew: true, }, + "compute_cluster_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, "create_vnic_details": { Type: schema.TypeList, Optional: true, @@ -773,6 +779,37 @@ func CoreInstanceConfigurationResource() *schema.Resource { ForceNew: true, Elem: schema.TypeString, }, + "placement_constraint_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "compute_host_group_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "HOST_GROUP", + }, true), + }, + + // Optional + + // Computed + }, + }, + }, "platform_config": { Type: schema.TypeList, Optional: true, @@ -1508,6 +1545,12 @@ func CoreInstanceConfigurationResource() *schema.Resource { Optional: true, Computed: true, }, + "compute_cluster_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, "create_vnic_details": { Type: schema.TypeList, Optional: true, @@ -1802,6 +1845,37 @@ func CoreInstanceConfigurationResource() *schema.Resource { ForceNew: true, Elem: schema.TypeString, }, + "placement_constraint_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "compute_host_group_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "HOST_GROUP", + }, true), + }, + + // Optional + + // Computed + }, + }, + }, "platform_config": { Type: schema.TypeList, Optional: true, @@ -3844,6 +3918,11 @@ func (s *CoreInstanceConfigurationResourceCrud) mapToInstanceConfigurationLaunch result.CompartmentId = &tmp } + if computeClusterId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compute_cluster_id")); ok { + tmp := computeClusterId.(string) + result.ComputeClusterId = &tmp + } + if createVnicDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "create_vnic_details")); ok { if tmpList := createVnicDetails.([]interface{}); len(tmpList) > 0 { fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "create_vnic_details"), 0) @@ -3947,6 +4026,17 @@ func (s *CoreInstanceConfigurationResourceCrud) mapToInstanceConfigurationLaunch result.Metadata = tfresource.ObjectMapToStringMap(metadata.(map[string]interface{})) } + if placementConstraintDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "placement_constraint_details")); ok { + if tmpList := placementConstraintDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "placement_constraint_details"), 0) + tmp, err := s.mapToInstanceConfigurationPlacementConstraintDetails(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert placement_constraint_details, encountered error: %v", err) + } + result.PlacementConstraintDetails = tmp + } + } + if platformConfig, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "platform_config")); ok { if tmpList := platformConfig.([]interface{}); len(tmpList) > 0 { fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "platform_config"), 0) @@ -4034,6 +4124,10 @@ func InstanceConfigurationLaunchInstanceDetailsToMap(obj *oci_core.InstanceConfi result["compartment_id"] = string(*obj.CompartmentId) } + if obj.ComputeClusterId != nil { + result["compute_cluster_id"] = string(*obj.ComputeClusterId) + } + if obj.CreateVnicDetails != nil { result["create_vnic_details"] = []interface{}{InstanceConfigurationCreateVnicDetailsToMap(obj.CreateVnicDetails, datasource)} } @@ -4084,6 +4178,14 @@ func InstanceConfigurationLaunchInstanceDetailsToMap(obj *oci_core.InstanceConfi result["metadata"] = obj.Metadata + if obj.PlacementConstraintDetails != nil { + placementConstraintDetailsArray := []interface{}{} + if placementConstraintDetailsMap := InstanceConfigurationPlacementConstraintDetailsToMap(&obj.PlacementConstraintDetails); placementConstraintDetailsMap != nil { + placementConstraintDetailsArray = append(placementConstraintDetailsArray, placementConstraintDetailsMap) + } + result["placement_constraint_details"] = placementConstraintDetailsArray + } + if obj.PlatformConfig != nil { platformConfigArray := []interface{}{} if platformConfigMap := InstanceConfigurationLaunchInstancePlatformConfigToMap(&obj.PlatformConfig); platformConfigMap != nil { @@ -4913,6 +5015,47 @@ func InstanceConfigurationLaunchOptionsToMap(obj *oci_core.InstanceConfiguration return result } +func (s *CoreInstanceConfigurationResourceCrud) mapToInstanceConfigurationPlacementConstraintDetails(fieldKeyFormat string) (oci_core.InstanceConfigurationPlacementConstraintDetails, error) { + var baseObject oci_core.InstanceConfigurationPlacementConstraintDetails + //discriminator + typeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")) + var type_ string + if ok { + type_ = typeRaw.(string) + } else { + type_ = "" // default value + } + switch strings.ToLower(type_) { + case strings.ToLower("HOST_GROUP"): + details := oci_core.InstanceConfigurationHostGroupPlacementConstraintDetails{} + if computeHostGroupId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "compute_host_group_id")); ok { + tmp := computeHostGroupId.(string) + details.ComputeHostGroupId = &tmp + } + baseObject = details + default: + return nil, fmt.Errorf("unknown type '%v' was specified", type_) + } + return baseObject, nil +} + +func InstanceConfigurationPlacementConstraintDetailsToMap(obj *oci_core.InstanceConfigurationPlacementConstraintDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_core.InstanceConfigurationHostGroupPlacementConstraintDetails: + result["type"] = "HOST_GROUP" + + if v.ComputeHostGroupId != nil { + result["compute_host_group_id"] = string(*v.ComputeHostGroupId) + } + default: + log.Printf("[WARN] Received 'type' of unknown type %v", *obj) + return nil + } + + return result +} + func (s *CoreInstanceConfigurationResourceCrud) mapToInstanceConfigurationVolumeSourceDetails(fieldKeyFormat string) (oci_core.InstanceConfigurationVolumeSourceDetails, error) { var baseObject oci_core.InstanceConfigurationVolumeSourceDetails //discriminator diff --git a/internal/service/core/core_instance_resource.go b/internal/service/core/core_instance_resource.go index a4372abb3e4..9798bc062a4 100644 --- a/internal/service/core/core_instance_resource.go +++ b/internal/service/core/core_instance_resource.go @@ -1620,12 +1620,36 @@ func (s *CoreInstanceResourceCrud) Update() error { return err } + s.Res = &response.Instance + if securityAttributes, ok := s.D.GetOkExists("security_attributes"); ok { - request.SecurityAttributes = tfresource.MapToSecurityAttributes(securityAttributes.(map[string]interface{})) + if s.D.HasChange("security_attributes") { + securityAttributesRequest := oci_core.UpdateInstanceRequest{} + tmp := s.D.Id() + securityAttributesRequest.InstanceId = &tmp + securityAttributesRequest.SecurityAttributes = tfresource.MapToSecurityAttributes(securityAttributes.(map[string]interface{})) + securityAttributesResponse, err := s.Client.UpdateInstance(context.Background(), securityAttributesRequest) + securityAttributeErrorMsgTemplate := `[ERROR] Failed to update Security Attributes: %q (Instance ID: "%v"` + if err != nil { + log.Printf(securityAttributeErrorMsgTemplate+`, desired Security Attributes: %q)`, err, s.Res.Id, securityAttributes) + return err + } + s.Res = &securityAttributesResponse.Instance + areSecurityAttributesStable := func() bool { + return s.Res != nil && + s.Res.SecurityAttributesState == oci_core.InstanceSecurityAttributesStateStable + } + if !areSecurityAttributesStable() { + log.Printf(`[DEBUG] Waiting for securityAttributesState to become [%s]`, oci_core.InstanceSecurityAttributesStateStable) + err := tfresource.WaitForResourceCondition(s, areSecurityAttributesStable, s.D.Timeout(schema.TimeoutUpdate)) + if err != nil { + log.Printf(securityAttributeErrorMsgTemplate+`, timed out waiting for Security Attributes to update)`, err, s.Res.Id) + return err + } + } + } } - s.Res = &response.Instance - // Check for changes in the create_vnic_details sub resource and separately Update the vnic _, ok := s.D.GetOkExists("create_vnic_details") if !s.D.HasChange("create_vnic_details") || !ok { diff --git a/internal/service/core/core_instances_data_source.go b/internal/service/core/core_instances_data_source.go index f9fdc8273dc..1f26c89a0d9 100644 --- a/internal/service/core/core_instances_data_source.go +++ b/internal/service/core/core_instances_data_source.go @@ -162,10 +162,6 @@ func (s *CoreInstancesDataSourceCrud) SetData() error { instance["cluster_placement_group_id"] = *r.ClusterPlacementGroupId } - if r.ComputeHostGroupId != nil { - instance["compute_host_group_id"] = *r.ComputeHostGroupId - } - if r.DedicatedVmHostId != nil { instance["dedicated_vm_host_id"] = *r.DedicatedVmHostId } diff --git a/internal/service/core/core_vcn_resource.go b/internal/service/core/core_vcn_resource.go index c5da838b113..0f48d8f6edb 100644 --- a/internal/service/core/core_vcn_resource.go +++ b/internal/service/core/core_vcn_resource.go @@ -37,19 +37,16 @@ func CoreVcnResource() *schema.Resource { Type: schema.TypeList, Optional: true, Computed: true, - // ForceNew: true, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ // Required "byoipv6range_id": { Type: schema.TypeString, Required: true, - ForceNew: true, }, "ipv6cidr_block": { Type: schema.TypeString, Required: true, - ForceNew: true, }, // Optional @@ -367,37 +364,40 @@ func (s *CoreVcnResourceCrud) Update() error { } } - if _, ok := s.D.GetOkExists("is_ipv6enabled"); ok && s.D.HasChange("is_ipv6enabled") { - enableIPv6Request := oci_core.AddIpv6VcnCidrRequest{} - tmp := s.D.Id() - enableIPv6Request.VcnId = &tmp - enableIPv6Request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "core") - - _, err := s.Client.AddIpv6VcnCidr(context.Background(), enableIPv6Request) - if err != nil { - return err - } - } - - if byoipv6CidrDetails, ok := s.D.GetOkExists("byoipv6Cidr_details"); ok && s.D.HasChange("byoipv6Cidr_details") { - err := s.addByoIpv6CidrBlocks(byoipv6CidrDetails) - if err != nil { - return err + // GUA + isIpv6enabled, isIpv6enabledExists := s.D.GetOkExists("is_ipv6enabled") + isOracleGuaEnabled, guaOk := s.D.GetOkExists("is_oracle_gua_allocation_enabled") + isOracleGuaEnabled = !guaOk || isOracleGuaEnabled.(bool) + if isIpv6enabledExists && isIpv6enabled.(bool) { + if isOracleGuaEnabled.(bool) && (s.D.HasChange("is_ipv6enabled") || s.D.HasChange("is_oracle_gua_allocation_enabled")) { + enableIPv6Request := oci_core.AddIpv6VcnCidrRequest{} + addVcnIpv6CidrDetails := oci_core.AddVcnIpv6CidrDetails{} + tmp := s.D.Id() + enableIPv6Request.VcnId = &tmp + enableIPv6Request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "core") + isOracleGuaAllocationEnabled := true + addVcnIpv6CidrDetails.IsOracleGuaAllocationEnabled = &isOracleGuaAllocationEnabled + enableIPv6Request.AddVcnIpv6CidrDetails = addVcnIpv6CidrDetails + _, err := s.Client.AddIpv6VcnCidr(context.Background(), enableIPv6Request) + if err != nil { + return err + } } } - if _, ok := s.D.GetOkExists("ipv6private_cidr_blocks"); ok && s.D.HasChange("ipv6private_cidr_blocks") { - oldRaw, newRaw := s.D.GetChange("ipv6private_cidr_blocks") + if _, ok := s.D.GetOkExists("byoipv6cidr_details"); ok && s.D.HasChange("byoipv6cidr_details") { + oldRaw, newRaw := s.D.GetChange("byoipv6cidr_details") if newRaw != "" && oldRaw != "" { - err := s.updateIpv6CidrBlocks(oldRaw, newRaw) + err := s.updateByoIpv6CidrBlocks(oldRaw, newRaw) if err != nil { return err } } } - if _, ok := s.D.GetOkExists("byoipv6cidr_blocks"); ok && s.D.HasChange("byoipv6cidr_blocks") { - oldRaw, newRaw := s.D.GetChange("byoipv6cidr_blocks") + // ULA + if _, ok := s.D.GetOkExists("ipv6private_cidr_blocks"); ok && s.D.HasChange("ipv6private_cidr_blocks") { + oldRaw, newRaw := s.D.GetChange("ipv6private_cidr_blocks") if newRaw != "" && oldRaw != "" { err := s.updateIpv6CidrBlocks(oldRaw, newRaw) if err != nil { @@ -406,21 +406,6 @@ func (s *CoreVcnResourceCrud) Update() error { } } - if enableOracleGuaAllocation, ok := s.D.GetOkExists("is_oracle_gua_allocation_enabled"); ok && s.D.HasChange("is_oracle_gua_allocation_enabled") { - enableIPv6Request := oci_core.AddIpv6VcnCidrRequest{} - addVcnIpv6CidrDetails := oci_core.AddVcnIpv6CidrDetails{} - tmp := s.D.Id() - enableIPv6Request.VcnId = &tmp - enableIPv6Request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "core") - isOracleGuaAllocationEnabled := enableOracleGuaAllocation.(bool) - addVcnIpv6CidrDetails.IsOracleGuaAllocationEnabled = &isOracleGuaAllocationEnabled - enableIPv6Request.AddVcnIpv6CidrDetails = addVcnIpv6CidrDetails - _, err := s.Client.AddIpv6VcnCidr(context.Background(), enableIPv6Request) - if err != nil { - return err - } - } - request := oci_core.UpdateVcnRequest{} if _, ok := s.D.GetOkExists("cidr_blocks"); ok && s.D.HasChange("cidr_blocks") { @@ -469,23 +454,66 @@ func (s *CoreVcnResourceCrud) Update() error { return nil } -func (s *CoreVcnResourceCrud) addByoIpv6CidrBlocks(byoipv6CidrDetails interface{}) error { - request := oci_core.AddIpv6VcnCidrRequest{} - addVcnIpv6CidrDetails := oci_core.AddVcnIpv6CidrDetails{} - fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "byoipv6cidr_details", byoipv6CidrDetails) - converted, err := s.mapToByoipv6CidrDetails(fieldKeyFormat) - if err != nil { - return err +func (s *CoreVcnResourceCrud) updateByoIpv6CidrBlocks(oldRaw interface{}, newRaw interface{}) error { + interfaces := oldRaw.([]interface{}) + oldByoipCidrDetails := make([]oci_core.Byoipv6CidrDetails, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "byoipv6cidr_details", stateDataIndex) + oldByoipv6rangeIdRaw, _ := s.D.GetChange(fmt.Sprintf(fieldKeyFormat, "byoipv6range_id")) + oldIpv6cidrBlockRaw, _ := s.D.GetChange(fmt.Sprintf(fieldKeyFormat, "ipv6cidr_block")) + result := oci_core.Byoipv6CidrDetails{} + oldByoipv6rangeId := oldByoipv6rangeIdRaw.(string) + oldIpv6cidrBlock := oldIpv6cidrBlockRaw.(string) + result.Byoipv6RangeId = &oldByoipv6rangeId + result.Ipv6CidrBlock = &oldIpv6cidrBlock + oldByoipCidrDetails[i] = result + } + interfaces = newRaw.([]interface{}) + newByoipCidrDetails := make([]oci_core.Byoipv6CidrDetails, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "byoipv6cidr_details", stateDataIndex) + converted, err := s.mapToByoipv6CidrDetails(fieldKeyFormat) + if err != nil { + return err + } + newByoipCidrDetails[i] = converted } - addVcnIpv6CidrDetails.Byoipv6CidrDetail = &converted - idTmp := s.D.Id() - request.VcnId = &idTmp - request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "core") - request.AddVcnIpv6CidrDetails = addVcnIpv6CidrDetails - _, err = s.Client.AddIpv6VcnCidr(context.Background(), request) - if err != nil { - return err + canEdit, operation, byoipv6CidrDetails := oneEditAwayByoipv6(oldByoipCidrDetails, newByoipCidrDetails) + if !canEdit { + return fmt.Errorf("only one add/remove is allowed at once, new byoipv6_cidr_block must be added at the end of list") + } + if operation == "modify" { + return fmt.Errorf("Modification not allowed, only add / destroy") + } + + if operation == "add" { + addIpv6VcnCidrRequest := oci_core.AddIpv6VcnCidrRequest{} + addVcnIpv6CidrDetails := oci_core.AddVcnIpv6CidrDetails{} + idTmp := s.D.Id() + addIpv6VcnCidrRequest.VcnId = &idTmp + addIpv6VcnCidrRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "core") + addVcnIpv6CidrDetails.Byoipv6CidrDetail = &byoipv6CidrDetails + addIpv6VcnCidrRequest.AddVcnIpv6CidrDetails = addVcnIpv6CidrDetails + _, err := s.Client.AddIpv6VcnCidr(context.Background(), addIpv6VcnCidrRequest) + if err != nil { + return err + } + } + if operation == "remove" { + removeIpv6VcnCidrRequest := oci_core.RemoveIpv6VcnCidrRequest{} + removeVcnIpv6CidrDetails := oci_core.RemoveVcnIpv6CidrDetails{} + idTmp := s.D.Id() + removeIpv6VcnCidrRequest.VcnId = &idTmp + removeIpv6VcnCidrRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "core") + removeVcnIpv6CidrDetails.Ipv6CidrBlock = byoipv6CidrDetails.Ipv6CidrBlock + removeIpv6VcnCidrRequest.RemoveVcnIpv6CidrDetails = removeVcnIpv6CidrDetails + _, err := s.Client.RemoveIpv6VcnCidr(context.Background(), removeIpv6VcnCidrRequest) + if err != nil { + return err + } } return nil } @@ -597,7 +625,9 @@ func (s *CoreVcnResourceCrud) SetData() error { s.D.Set("security_attributes", tfresource.SecurityAttributesToMap(s.Res.SecurityAttributes)) - if (s.Res.Ipv6CidrBlocks != nil && len(s.Res.Ipv6CidrBlocks) > 0) || (s.Res.Ipv6PrivateCidrBlocks != nil && len(s.Res.Ipv6PrivateCidrBlocks) > 0) { + if (s.Res.Ipv6CidrBlocks != nil && len(s.Res.Ipv6CidrBlocks) > 0) || + (s.Res.Ipv6PrivateCidrBlocks != nil && len(s.Res.Ipv6PrivateCidrBlocks) > 0) || + (s.Res.Byoipv6CidrBlocks != nil && len(s.Res.Byoipv6CidrBlocks) > 0) { s.D.Set("is_ipv6enabled", true) } else { s.D.Set("is_ipv6enabled", false) @@ -628,7 +658,6 @@ func (s *CoreVcnResourceCrud) mapToByoipv6CidrDetails(fieldKeyFormat string) (oc tmp := ipv6CidrBlock.(string) result.Ipv6CidrBlock = &tmp } - return result, nil } @@ -761,3 +790,47 @@ func oneEditAway(oldBlocks []string, newBlocks []string) (bool, string, string, } return true, "remove", oldBlocks[len(oldBlocks)-1], "" } + +func oneEditAwayByoipv6(oldBlocks []oci_core.Byoipv6CidrDetails, newBlocks []oci_core.Byoipv6CidrDetails) (bool, string, oci_core.Byoipv6CidrDetails) { + if Abs(len(newBlocks)-len(oldBlocks)) > 1 { + return false, "", oci_core.Byoipv6CidrDetails{} + } + if len(newBlocks) == len(oldBlocks) { + for i := 0; i < len(oldBlocks); i++ { + if !compareByoipv6CidrDetails(oldBlocks[i], newBlocks[i]) { + for j := i + 1; j < len(oldBlocks); j++ { + if !compareByoipv6CidrDetails(oldBlocks[j], newBlocks[j]) { + return false, "", oci_core.Byoipv6CidrDetails{} + } + } + return true, "modify", newBlocks[i] + } + } + } + if len(newBlocks) > len(oldBlocks) { + for i := 0; i < len(oldBlocks); i++ { + if !compareByoipv6CidrDetails(oldBlocks[i], newBlocks[i]) { + return false, "", oci_core.Byoipv6CidrDetails{} + } + } + return true, "add", newBlocks[len(newBlocks)-1] + } + for i := 0; i < len(newBlocks); i++ { + if !compareByoipv6CidrDetails(oldBlocks[i], newBlocks[i]) { + for j := i + 1; j < len(newBlocks); j++ { + if !compareByoipv6CidrDetails(oldBlocks[j], newBlocks[j-1]) { + return false, "", oci_core.Byoipv6CidrDetails{} + } + } + return true, "remove", oldBlocks[i] + } + } + return true, "remove", oldBlocks[len(oldBlocks)-1] +} + +func compareByoipv6CidrDetails(left oci_core.Byoipv6CidrDetails, right oci_core.Byoipv6CidrDetails) bool { + if *left.Byoipv6RangeId == *right.Byoipv6RangeId && *left.Ipv6CidrBlock == *right.Ipv6CidrBlock { + return true + } + return false +} diff --git a/internal/service/data_safe/data_safe_on_prem_connectors_data_source.go b/internal/service/data_safe/data_safe_on_prem_connectors_data_source.go index 8d3becbd5a5..b94d31dd540 100644 --- a/internal/service/data_safe/data_safe_on_prem_connectors_data_source.go +++ b/internal/service/data_safe/data_safe_on_prem_connectors_data_source.go @@ -96,8 +96,8 @@ func (s *DataSafeOnPremConnectorsDataSourceCrud) Get() error { request.OnPremConnectorId = &tmp } - if onPremConnectorLifecycleState, ok := s.D.GetOkExists("on_prem_connector_lifecycle_state"); ok { - request.OnPremConnectorLifecycleState = oci_data_safe.ListOnPremConnectorsOnPremConnectorLifecycleStateEnum(onPremConnectorLifecycleState.(string)) + if v, ok := s.D.GetOkExists("lifecycle_state"); ok { + request.LifecycleState = oci_data_safe.ListOnPremConnectorsLifecycleStateEnum(v.(string)) } request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "data_safe") diff --git a/internal/service/data_safe/data_safe_security_assessment_comparison_data_source.go b/internal/service/data_safe/data_safe_security_assessment_comparison_data_source.go index 1ecda0b3d4a..bd5baf186e3 100644 --- a/internal/service/data_safe/data_safe_security_assessment_comparison_data_source.go +++ b/internal/service/data_safe/data_safe_security_assessment_comparison_data_source.go @@ -128,6 +128,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -237,6 +241,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -384,6 +392,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -493,6 +505,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -648,6 +664,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -757,6 +777,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -904,6 +928,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -1013,6 +1041,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -1160,6 +1192,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -1269,6 +1305,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -1416,6 +1456,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -1525,6 +1569,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -1672,6 +1720,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -1781,6 +1833,10 @@ func DataSafeSecurityAssessmentComparisonDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -2028,6 +2084,10 @@ func ReferencesToMap(obj *oci_data_safe.References) map[string]interface{} { result["obp"] = string(*obj.Obp) } + if obj.Orp != nil { + result["orp"] = string(*obj.Orp) + } + if obj.Stig != nil { result["stig"] = string(*obj.Stig) } diff --git a/internal/service/data_safe/data_safe_security_assessment_finding_analytics_data_source.go b/internal/service/data_safe/data_safe_security_assessment_finding_analytics_data_source.go index ae4b7525cea..1ef5173c33b 100644 --- a/internal/service/data_safe/data_safe_security_assessment_finding_analytics_data_source.go +++ b/internal/service/data_safe/data_safe_security_assessment_finding_analytics_data_source.go @@ -19,6 +19,10 @@ func DataSafeSecurityAssessmentFindingAnalyticsDataSource() *schema.Resource { Read: readDataSafeSecurityAssessmentFindingAnalytics, Schema: map[string]*schema.Schema{ "filter": tfresource.DataSourceFiltersSchema(), + "scim_query": { + Type: schema.TypeString, + Optional: true, + }, "access_level": { Type: schema.TypeString, Optional: true, @@ -166,6 +170,11 @@ func (s *DataSafeSecurityAssessmentFindingAnalyticsDataSourceCrud) Get() error { request.FindingKey = &tmp } + if scimQuery, ok := s.D.GetOkExists("scim_query"); ok { + tmp := scimQuery.(string) + request.ScimQuery = &tmp + } + if groupBy, ok := s.D.GetOkExists("group_by"); ok { request.GroupBy = oci_data_safe.ListFindingAnalyticsGroupByEnum(groupBy.(string)) } diff --git a/internal/service/data_safe/data_safe_security_assessment_findings_data_source.go b/internal/service/data_safe/data_safe_security_assessment_findings_data_source.go index d2c6ad86d4d..20013d2346e 100644 --- a/internal/service/data_safe/data_safe_security_assessment_findings_data_source.go +++ b/internal/service/data_safe/data_safe_security_assessment_findings_data_source.go @@ -86,6 +86,10 @@ func DataSafeSecurityAssessmentFindingsDataSource() *schema.Resource { Type: schema.TypeString, }, }, + "doclink": { + Type: schema.TypeString, + Computed: true, + }, "has_target_db_risk_level_changed": { Type: schema.TypeBool, Computed: true, @@ -140,6 +144,10 @@ func DataSafeSecurityAssessmentFindingsDataSource() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "orp": { + Type: schema.TypeString, + Computed: true, + }, "stig": { Type: schema.TypeString, Computed: true, @@ -310,6 +318,10 @@ func (s *DataSafeSecurityAssessmentFindingsDataSourceCrud) SetData() error { securityAssessmentFinding["details"] = nil } + if r.Doclink != nil { + securityAssessmentFinding["doclink"] = *r.Doclink + } + if r.HasTargetDbRiskLevelChanged != nil { securityAssessmentFinding["has_target_db_risk_level_changed"] = *r.HasTargetDbRiskLevelChanged } @@ -403,6 +415,10 @@ func FindingsReferencesToMap(obj *oci_data_safe.References) map[string]interface result["obp"] = string(*obj.Obp) } + if obj.Orp != nil { + result["orp"] = string(*obj.Orp) + } + if obj.Stig != nil { result["stig"] = string(*obj.Stig) } diff --git a/internal/service/database/database_database_resource.go b/internal/service/database/database_database_resource.go index 0816d962d0b..3eb5d4d0932 100644 --- a/internal/service/database/database_database_resource.go +++ b/internal/service/database/database_database_resource.go @@ -1128,39 +1128,29 @@ func (s *DatabaseDatabaseResourceCrud) mapToBackupDestinationDetails(fieldKeyFor func (s *DatabaseDatabaseResourceCrud) mapToUpdateBackupDestinationDetails(fieldKeyFormat string) (oci_database.BackupDestinationDetails, error) { result := oci_database.BackupDestinationDetails{} - if dbrsPolicyId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "dbrs_policy_id")); ok && s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "dbrs_policy_id")) { - tmp := dbrsPolicyId.(string) - result.DbrsPolicyId = &tmp - } - - if id, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "id")); ok && s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "id")) { - tmp := id.(string) - result.Id = &tmp - } - - typeKey := fmt.Sprintf(fieldKeyFormat, "type") - - if type_, ok := s.D.GetOkExists(typeKey); ok { - if s.D.HasChange(typeKey) { - // Field changed, use the new value - result.Type = oci_database.BackupDestinationDetailsTypeEnum(type_.(string)) - } else { - // Field not changed, get old value to preserve it - _, oldVal := s.D.GetChange(typeKey) - result.Type = oci_database.BackupDestinationDetailsTypeEnum(oldVal.(string)) + fields := map[string]func(string){ + "dbrs_policy_id": func(val string) { tmp := val; result.DbrsPolicyId = &tmp }, + "id": func(val string) { tmp := val; result.Id = &tmp }, + "type": func(val string) { result.Type = oci_database.BackupDestinationDetailsTypeEnum(val) }, + "vpc_password": func(val string) { tmp := val; result.VpcPassword = &tmp }, + "vpc_user": func(val string) { tmp := val; result.VpcUser = &tmp }, + } + + for fieldName, setter := range fields { + key := fmt.Sprintf(fieldKeyFormat, fieldName) + if val, ok := s.D.GetOkExists(key); ok { + if s.D.HasChange(key) { + setter(val.(string)) + } else { + _, oldVal := s.D.GetChange(key) + oldValStr := oldVal.(string) + if oldValStr != "" { + setter(oldValStr) + } + } } } - if vpcPassword, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "vpc_password")); ok && s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "vpc_password")) { - tmp := vpcPassword.(string) - result.VpcPassword = &tmp - } - - if vpcUser, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "vpc_user")); ok && s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "vpc_user")) { - tmp := vpcUser.(string) - result.VpcUser = &tmp - } - return result, nil } diff --git a/internal/service/datascience/datascience_job_data_source.go b/internal/service/datascience/datascience_job_data_source.go index 0bd55007349..3c25b23339e 100644 --- a/internal/service/datascience/datascience_job_data_source.go +++ b/internal/service/datascience/datascience_job_data_source.go @@ -124,6 +124,16 @@ func (s *DatascienceJobDataSourceCrud) SetData() error { s.D.Set("job_log_configuration_details", nil) } + if s.Res.JobNodeConfigurationDetails != nil { + jobNodeConfigurationDetailsArray := []interface{}{} + if jobNodeConfigurationDetailsMap := JobNodeConfigurationDetailsToMap(&s.Res.JobNodeConfigurationDetails); jobNodeConfigurationDetailsMap != nil { + jobNodeConfigurationDetailsArray = append(jobNodeConfigurationDetailsArray, jobNodeConfigurationDetailsMap) + } + s.D.Set("job_node_configuration_details", jobNodeConfigurationDetailsArray) + } else { + s.D.Set("job_node_configuration_details", nil) + } + jobStorageMountConfigurationDetailsList := []interface{}{} for _, item := range s.Res.JobStorageMountConfigurationDetailsList { jobStorageMountConfigurationDetailsList = append(jobStorageMountConfigurationDetailsList, StorageMountConfigurationDetailsToMap(item)) diff --git a/internal/service/datascience/datascience_job_resource.go b/internal/service/datascience/datascience_job_resource.go index 2ea49535de0..940d1943080 100644 --- a/internal/service/datascience/datascience_job_resource.go +++ b/internal/service/datascience/datascience_job_resource.go @@ -39,9 +39,61 @@ func DatascienceJobResource() *schema.Resource { Type: schema.TypeString, Required: true, }, + "project_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + "job_artifact": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + }, + "artifact_content_length": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + ValidateFunc: tfresource.ValidateInt64TypeString, + DiffSuppressFunc: tfresource.Int64StringDiffSuppressFunction, + }, + "artifact_content_disposition": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + }, + "defined_tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + DiffSuppressFunc: tfresource.DefinedTagsDiffSuppressFunction, + Elem: schema.TypeString, + }, + "delete_related_job_runs": { + Type: schema.TypeBool, + Optional: true, + Default: false, + }, + "description": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "display_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, + "freeform_tags": { + Type: schema.TypeMap, + Optional: true, + Elem: schema.TypeString, + }, "job_configuration_details": { Type: schema.TypeList, - Required: true, + Optional: true, + Computed: true, ForceNew: true, MaxItems: 1, MinItems: 1, @@ -55,6 +107,7 @@ func DatascienceJobResource() *schema.Resource { DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, ValidateFunc: validation.StringInSlice([]string{ "DEFAULT", + "EMPTY", }, true), }, @@ -80,38 +133,143 @@ func DatascienceJobResource() *schema.Resource { ValidateFunc: tfresource.ValidateInt64TypeString, DiffSuppressFunc: tfresource.Int64StringDiffSuppressFunction, }, + "startup_probe_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "command": { + Type: schema.TypeList, + Required: true, + ForceNew: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "job_probe_check_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "EXEC", + }, true), + }, + + // Optional + "failure_threshold": { + Type: schema.TypeInt, + Optional: true, + ForceNew: true, + }, + "initial_delay_in_seconds": { + Type: schema.TypeInt, + Optional: true, + ForceNew: true, + }, + "period_in_seconds": { + Type: schema.TypeInt, + Optional: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, // Computed }, }, }, - "job_infrastructure_configuration_details": { + "job_environment_configuration_details": { Type: schema.TypeList, - Required: true, + Optional: true, + ForceNew: true, MaxItems: 1, MinItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ // Required - "block_storage_size_in_gbs": { - Type: schema.TypeInt, + "image": { + Type: schema.TypeString, Required: true, + ForceNew: true, }, + "job_environment_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "OCIR_CONTAINER", + }, true), + }, + + // Optional + "cmd": { + Type: schema.TypeList, + Optional: true, + ForceNew: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "entrypoint": { + Type: schema.TypeList, + Optional: true, + ForceNew: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "image_digest": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + }, + "image_signature_id": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "job_infrastructure_configuration_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required "job_infrastructure_type": { Type: schema.TypeString, Required: true, DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, ValidateFunc: validation.StringInSlice([]string{ + "EMPTY", "ME_STANDALONE", + "MULTI_NODE", "STANDALONE", }, true), }, - "shape_name": { - Type: schema.TypeString, - Required: true, - }, // Optional + "block_storage_size_in_gbs": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + }, "job_shape_config_details": { Type: schema.TypeList, Optional: true, @@ -143,6 +301,11 @@ func DatascienceJobResource() *schema.Resource { }, }, }, + "shape_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, "subnet_id": { Type: schema.TypeString, Optional: true, @@ -153,59 +316,7 @@ func DatascienceJobResource() *schema.Resource { }, }, }, - "project_id": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - }, - - // Optional - "job_artifact": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - }, - "artifact_content_length": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - ValidateFunc: tfresource.ValidateInt64TypeString, - DiffSuppressFunc: tfresource.Int64StringDiffSuppressFunction, - }, - "artifact_content_disposition": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - }, - "defined_tags": { - Type: schema.TypeMap, - Optional: true, - Computed: true, - DiffSuppressFunc: tfresource.DefinedTagsDiffSuppressFunction, - Elem: schema.TypeString, - }, - "delete_related_job_runs": { - Type: schema.TypeBool, - Optional: true, - Default: false, - }, - "description": { - Type: schema.TypeString, - Optional: true, - Computed: true, - }, - "display_name": { - Type: schema.TypeString, - Optional: true, - Computed: true, - }, - "freeform_tags": { - Type: schema.TypeMap, - Optional: true, - Computed: true, - Elem: schema.TypeString, - }, - "job_environment_configuration_details": { + "job_log_configuration_details": { Type: schema.TypeList, Optional: true, Computed: true, @@ -215,47 +326,27 @@ func DatascienceJobResource() *schema.Resource { Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ // Required - "image": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - }, - "job_environment_type": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, - ValidateFunc: validation.StringInSlice([]string{ - "OCIR_CONTAINER", - }, true), - }, // Optional - "cmd": { - Type: schema.TypeList, + "enable_auto_log_creation": { + Type: schema.TypeBool, Optional: true, Computed: true, ForceNew: true, - Elem: &schema.Schema{ - Type: schema.TypeString, - }, }, - "entrypoint": { - Type: schema.TypeList, + "enable_logging": { + Type: schema.TypeBool, Optional: true, Computed: true, ForceNew: true, - Elem: &schema.Schema{ - Type: schema.TypeString, - }, }, - "image_digest": { + "log_group_id": { Type: schema.TypeString, Optional: true, Computed: true, ForceNew: true, }, - "image_signature_id": { + "log_id": { Type: schema.TypeString, Optional: true, Computed: true, @@ -266,7 +357,7 @@ func DatascienceJobResource() *schema.Resource { }, }, }, - "job_log_configuration_details": { + "job_node_configuration_details": { Type: schema.TypeList, Optional: true, Computed: true, @@ -276,27 +367,328 @@ func DatascienceJobResource() *schema.Resource { Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ // Required + "job_node_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "MULTI_NODE", + }, true), + }, // Optional - "enable_auto_log_creation": { - Type: schema.TypeBool, - Optional: true, - Computed: true, - ForceNew: true, - }, - "enable_logging": { - Type: schema.TypeBool, + "job_network_configuration": { + Type: schema.TypeList, Optional: true, Computed: true, ForceNew: true, - }, - "log_group_id": { - Type: schema.TypeString, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "job_network_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "CUSTOM_NETWORK", + "DEFAULT_NETWORK", + }, true), + }, + + // Optional + "subnet_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "job_node_group_configuration_details_list": { + Type: schema.TypeList, Optional: true, Computed: true, ForceNew: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "name": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + "job_configuration_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "job_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "DEFAULT", + "EMPTY", + }, true), + }, + + // Optional + "command_line_arguments": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "environment_variables": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + ForceNew: true, + Elem: schema.TypeString, + }, + "maximum_runtime_in_minutes": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + ValidateFunc: tfresource.ValidateInt64TypeString, + DiffSuppressFunc: tfresource.Int64StringDiffSuppressFunction, + }, + "startup_probe_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "command": { + Type: schema.TypeList, + Required: true, + ForceNew: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "job_probe_check_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "EXEC", + }, true), + }, + + // Optional + "failure_threshold": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + "initial_delay_in_seconds": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + "period_in_seconds": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + + // Computed + }, + }, + }, + "job_environment_configuration_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "image": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "job_environment_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "OCIR_CONTAINER", + }, true), + }, + + // Optional + "cmd": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "entrypoint": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "image_digest": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "image_signature_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "job_infrastructure_configuration_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "job_infrastructure_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "EMPTY", + "ME_STANDALONE", + "MULTI_NODE", + "STANDALONE", + }, true), + }, + + // Optional + "block_storage_size_in_gbs": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + "job_shape_config_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: 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, + ForceNew: true, + }, + "ocpus": { + Type: schema.TypeFloat, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "shape_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "subnet_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "minimum_success_replicas": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + "replicas": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, }, - "log_id": { + "maximum_runtime_in_minutes": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + ValidateFunc: tfresource.ValidateInt64TypeString, + DiffSuppressFunc: tfresource.Int64StringDiffSuppressFunction, + }, + "startup_order": { Type: schema.TypeString, Optional: true, Computed: true, @@ -557,6 +949,17 @@ func (s *DatascienceJobResourceCrud) Create() error { } } + if jobNodeConfigurationDetails, ok := s.D.GetOkExists("job_node_configuration_details"); ok { + if tmpList := jobNodeConfigurationDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "job_node_configuration_details", 0) + tmp, err := s.mapToJobNodeConfigurationDetails(fieldKeyFormat) + if err != nil { + return err + } + request.JobNodeConfigurationDetails = tmp + } + } + if jobStorageMountConfigurationDetailsList, ok := s.D.GetOkExists("job_storage_mount_configuration_details_list"); ok { interfaces := jobStorageMountConfigurationDetailsList.([]interface{}) tmp := make([]oci_datascience.StorageMountConfigurationDetails, len(interfaces)) @@ -660,7 +1063,15 @@ func (s *DatascienceJobResourceCrud) Update() error { if err != nil { return err } - request.JobInfrastructureConfigurationDetails = tmp + if _, ok := tmp.(oci_datascience.EmptyJobInfrastructureConfigurationDetails); ok { + // temp is of type EmptyJobInfrastructureConfigurationDetails + fmt.Println("The jobInfrastructureType is EMPTY dont set") + } else { + // temp is NOT of type EmptyJobInfrastructureConfigurationDetails + fmt.Println("temp is NOT of type EmptyJobInfrastructureConfigurationDetails") + request.JobInfrastructureConfigurationDetails = tmp + } + // request.JobInfrastructureConfigurationDetails = tmp } } @@ -768,6 +1179,16 @@ func (s *DatascienceJobResourceCrud) SetData() error { s.D.Set("job_log_configuration_details", nil) } + if s.Res.JobNodeConfigurationDetails != nil { + jobNodeConfigurationDetailsArray := []interface{}{} + if jobNodeConfigurationDetailsMap := JobNodeConfigurationDetailsToMap(&s.Res.JobNodeConfigurationDetails); jobNodeConfigurationDetailsMap != nil { + jobNodeConfigurationDetailsArray = append(jobNodeConfigurationDetailsArray, jobNodeConfigurationDetailsMap) + } + s.D.Set("job_node_configuration_details", jobNodeConfigurationDetailsArray) + } else { + s.D.Set("job_node_configuration_details", nil) + } + jobStorageMountConfigurationDetailsList := []interface{}{} for _, item := range s.Res.JobStorageMountConfigurationDetailsList { jobStorageMountConfigurationDetailsList = append(jobStorageMountConfigurationDetailsList, StorageMountConfigurationDetailsToMap(item)) @@ -819,6 +1240,19 @@ func (s *DatascienceJobResourceCrud) mapToJobConfigurationDetails(fieldKeyFormat } details.MaximumRuntimeInMinutes = &tmpInt64 } + if startupProbeDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "startup_probe_details")); ok { + if tmpList := startupProbeDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "startup_probe_details"), 0) + tmp, err := s.mapToJobProbeDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert startup_probe_details, encountered error: %v", err) + } + details.StartupProbeDetails = tmp + } + } + baseObject = details + case strings.ToLower("EMPTY"): + details := oci_datascience.EmptyJobConfigurationDetails{} baseObject = details default: return nil, fmt.Errorf("unknown job_type '%v' was specified", jobType) @@ -841,6 +1275,16 @@ func JobConfigurationDetailsToMap(obj *oci_datascience.JobConfigurationDetails) if v.MaximumRuntimeInMinutes != nil { result["maximum_runtime_in_minutes"] = strconv.FormatInt(*v.MaximumRuntimeInMinutes, 10) } + + if v.StartupProbeDetails != nil { + startupProbeDetailsArray := []interface{}{} + if startupProbeDetailsMap := JobProbeDetailsToMap(&v.StartupProbeDetails); startupProbeDetailsMap != nil { + startupProbeDetailsArray = append(startupProbeDetailsArray, startupProbeDetailsMap) + } + result["startup_probe_details"] = startupProbeDetailsArray + } + case oci_datascience.EmptyJobConfigurationDetails: + result["job_type"] = "EMPTY" default: log.Printf("[WARN] Received 'job_type' of unknown type %v", *obj) return nil @@ -945,6 +1389,9 @@ func (s *DatascienceJobResourceCrud) mapToJobInfrastructureConfigurationDetails( jobInfrastructureType = "" // default value } switch strings.ToLower(jobInfrastructureType) { + case strings.ToLower("EMPTY"): + details := oci_datascience.EmptyJobInfrastructureConfigurationDetails{} + baseObject = details case strings.ToLower("ME_STANDALONE"): details := oci_datascience.ManagedEgressStandaloneJobInfrastructureConfigurationDetails{} if blockStorageSizeInGBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_storage_size_in_gbs")); ok { @@ -966,6 +1413,27 @@ func (s *DatascienceJobResourceCrud) mapToJobInfrastructureConfigurationDetails( details.ShapeName = &tmp } baseObject = details + case strings.ToLower("MULTI_NODE"): + details := oci_datascience.MultiNodeJobInfrastructureConfigurationDetails{} + if blockStorageSizeInGBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_storage_size_in_gbs")); ok { + tmp := blockStorageSizeInGBs.(int) + details.BlockStorageSizeInGBs = &tmp + } + if jobShapeConfigDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_shape_config_details")); ok { + if tmpList := jobShapeConfigDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_shape_config_details"), 0) + tmp, err := s.mapToJobShapeConfigDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert job_shape_config_details, encountered error: %v", err) + } + details.JobShapeConfigDetails = &tmp + } + } + if shapeName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shape_name")); ok { + tmp := shapeName.(string) + details.ShapeName = &tmp + } + baseObject = details case strings.ToLower("STANDALONE"): details := oci_datascience.StandaloneJobInfrastructureConfigurationDetails{} if blockStorageSizeInGBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_storage_size_in_gbs")); ok { @@ -1000,6 +1468,8 @@ func (s *DatascienceJobResourceCrud) mapToJobInfrastructureConfigurationDetails( func JobInfrastructureConfigurationDetailsToMap(obj *oci_datascience.JobInfrastructureConfigurationDetails) map[string]interface{} { result := map[string]interface{}{} switch v := (*obj).(type) { + case oci_datascience.EmptyJobInfrastructureConfigurationDetails: + result["job_infrastructure_type"] = "EMPTY" case oci_datascience.ManagedEgressStandaloneJobInfrastructureConfigurationDetails: result["job_infrastructure_type"] = "ME_STANDALONE" @@ -1011,6 +1481,20 @@ func JobInfrastructureConfigurationDetailsToMap(obj *oci_datascience.JobInfrastr result["job_shape_config_details"] = []interface{}{JobShapeConfigDetailsToMap(v.JobShapeConfigDetails)} } + if v.ShapeName != nil { + result["shape_name"] = string(*v.ShapeName) + } + case oci_datascience.MultiNodeJobInfrastructureConfigurationDetails: + result["job_infrastructure_type"] = "MULTI_NODE" + + if v.BlockStorageSizeInGBs != nil { + result["block_storage_size_in_gbs"] = int(*v.BlockStorageSizeInGBs) + } + + if v.JobShapeConfigDetails != nil { + result["job_shape_config_details"] = []interface{}{JobShapeConfigDetailsToMap(v.JobShapeConfigDetails)} + } + if v.ShapeName != nil { result["shape_name"] = string(*v.ShapeName) } @@ -1088,6 +1572,311 @@ func JobLogConfigurationDetailsToMap(obj *oci_datascience.JobLogConfigurationDet return result } +func (s *DatascienceJobResourceCrud) mapToJobNetworkConfiguration(fieldKeyFormat string) (oci_datascience.JobNetworkConfiguration, error) { + var baseObject oci_datascience.JobNetworkConfiguration + //discriminator + jobNetworkTypeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_network_type")) + var jobNetworkType string + if ok { + jobNetworkType = jobNetworkTypeRaw.(string) + } else { + jobNetworkType = "" // default value + } + switch strings.ToLower(jobNetworkType) { + case strings.ToLower("CUSTOM_NETWORK"): + details := oci_datascience.JobCustomNetworkConfiguration{} + if subnetId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "subnet_id")); ok { + tmp := subnetId.(string) + details.SubnetId = &tmp + } + baseObject = details + case strings.ToLower("DEFAULT_NETWORK"): + details := oci_datascience.JobDefaultNetworkConfiguration{} + baseObject = details + default: + return nil, fmt.Errorf("unknown job_network_type '%v' was specified", jobNetworkType) + } + return baseObject, nil +} + +func JobNetworkConfigurationToMap(obj *oci_datascience.JobNetworkConfiguration) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_datascience.JobCustomNetworkConfiguration: + result["job_network_type"] = "CUSTOM_NETWORK" + + if v.SubnetId != nil { + result["subnet_id"] = string(*v.SubnetId) + } + case oci_datascience.JobDefaultNetworkConfiguration: + result["job_network_type"] = "DEFAULT_NETWORK" + default: + log.Printf("[WARN] Received 'job_network_type' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DatascienceJobResourceCrud) mapToJobNodeConfigurationDetails(fieldKeyFormat string) (oci_datascience.JobNodeConfigurationDetails, error) { + var baseObject oci_datascience.JobNodeConfigurationDetails + //discriminator + jobNodeTypeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_node_type")) + var jobNodeType string + if ok { + jobNodeType = jobNodeTypeRaw.(string) + } else { + jobNodeType = "" // default value + } + switch strings.ToLower(jobNodeType) { + case strings.ToLower("MULTI_NODE"): + details := oci_datascience.MultiNodeJobNodeConfigurationDetails{} + if jobNetworkConfiguration, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_network_configuration")); ok { + if tmpList := jobNetworkConfiguration.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_network_configuration"), 0) + tmp, err := s.mapToJobNetworkConfiguration(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert job_network_configuration, encountered error: %v", err) + } + details.JobNetworkConfiguration = tmp + } + } + if jobNodeGroupConfigurationDetailsList, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_node_group_configuration_details_list")); ok { + interfaces := jobNodeGroupConfigurationDetailsList.([]interface{}) + tmp := make([]oci_datascience.JobNodeGroupConfigurationDetails, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_node_group_configuration_details_list"), stateDataIndex) + converted, err := s.mapToJobNodeGroupConfigurationDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "job_node_group_configuration_details_list")) { + details.JobNodeGroupConfigurationDetailsList = tmp + } + } + if maximumRuntimeInMinutes, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "maximum_runtime_in_minutes")); ok { + tmp := maximumRuntimeInMinutes.(string) + tmpInt64, err := strconv.ParseInt(tmp, 10, 64) + if err != nil { + return details, fmt.Errorf("unable to convert maximumRuntimeInMinutes string: %s to an int64 and encountered error: %v", tmp, err) + } + details.MaximumRuntimeInMinutes = &tmpInt64 + } + if startupOrder, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "startup_order")); ok { + details.StartupOrder = oci_datascience.MultiNodeJobNodeConfigurationDetailsStartupOrderEnum(startupOrder.(string)) + } + baseObject = details + default: + return nil, fmt.Errorf("unknown job_node_type '%v' was specified", jobNodeType) + } + return baseObject, nil +} + +func JobNodeConfigurationDetailsToMap(obj *oci_datascience.JobNodeConfigurationDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_datascience.MultiNodeJobNodeConfigurationDetails: + result["job_node_type"] = "MULTI_NODE" + + if v.JobNetworkConfiguration != nil { + jobNetworkConfigurationArray := []interface{}{} + if jobNetworkConfigurationMap := JobNetworkConfigurationToMap(&v.JobNetworkConfiguration); jobNetworkConfigurationMap != nil { + jobNetworkConfigurationArray = append(jobNetworkConfigurationArray, jobNetworkConfigurationMap) + } + result["job_network_configuration"] = jobNetworkConfigurationArray + } + + jobNodeGroupConfigurationDetailsList := []interface{}{} + for _, item := range v.JobNodeGroupConfigurationDetailsList { + jobNodeGroupConfigurationDetailsList = append(jobNodeGroupConfigurationDetailsList, JobNodeGroupConfigurationDetailsToMap(item)) + } + result["job_node_group_configuration_details_list"] = jobNodeGroupConfigurationDetailsList + + if v.MaximumRuntimeInMinutes != nil { + result["maximum_runtime_in_minutes"] = strconv.FormatInt(*v.MaximumRuntimeInMinutes, 10) + } + + result["startup_order"] = string(v.StartupOrder) + default: + log.Printf("[WARN] Received 'job_node_type' of unknown type %v", *obj) + return nil + } + + return result +} + +func (s *DatascienceJobResourceCrud) mapToJobNodeGroupConfigurationDetails(fieldKeyFormat string) (oci_datascience.JobNodeGroupConfigurationDetails, error) { + result := oci_datascience.JobNodeGroupConfigurationDetails{} + + if jobConfigurationDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_configuration_details")); ok { + if tmpList := jobConfigurationDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_configuration_details"), 0) + tmp, err := s.mapToJobConfigurationDetails(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert job_configuration_details, encountered error: %v", err) + } + result.JobConfigurationDetails = tmp + } + } + + if jobEnvironmentConfigurationDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_environment_configuration_details")); ok { + if tmpList := jobEnvironmentConfigurationDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_environment_configuration_details"), 0) + tmp, err := s.mapToJobEnvironmentConfigurationDetails(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert job_environment_configuration_details, encountered error: %v", err) + } + result.JobEnvironmentConfigurationDetails = tmp + } + } + + if jobInfrastructureConfigurationDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_infrastructure_configuration_details")); ok { + if tmpList := jobInfrastructureConfigurationDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_infrastructure_configuration_details"), 0) + tmp, err := s.mapToJobInfrastructureConfigurationDetails(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert job_infrastructure_configuration_details, encountered error: %v", err) + } + result.JobInfrastructureConfigurationDetails = tmp + } + } + + if minimumSuccessReplicas, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "minimum_success_replicas")); ok { + tmp := minimumSuccessReplicas.(int) + result.MinimumSuccessReplicas = &tmp + } + + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + tmp := name.(string) + result.Name = &tmp + } + + if replicas, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicas")); ok { + tmp := replicas.(int) + result.Replicas = &tmp + } + + return result, nil +} + +func JobNodeGroupConfigurationDetailsToMap(obj oci_datascience.JobNodeGroupConfigurationDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.JobConfigurationDetails != nil { + jobConfigurationDetailsArray := []interface{}{} + if jobConfigurationDetailsMap := JobConfigurationDetailsToMap(&obj.JobConfigurationDetails); jobConfigurationDetailsMap != nil { + jobConfigurationDetailsArray = append(jobConfigurationDetailsArray, jobConfigurationDetailsMap) + } + result["job_configuration_details"] = jobConfigurationDetailsArray + } + + if obj.JobEnvironmentConfigurationDetails != nil { + jobEnvironmentConfigurationDetailsArray := []interface{}{} + if jobEnvironmentConfigurationDetailsMap := JobEnvironmentConfigurationDetailsToMap(&obj.JobEnvironmentConfigurationDetails); jobEnvironmentConfigurationDetailsMap != nil { + jobEnvironmentConfigurationDetailsArray = append(jobEnvironmentConfigurationDetailsArray, jobEnvironmentConfigurationDetailsMap) + } + result["job_environment_configuration_details"] = jobEnvironmentConfigurationDetailsArray + } else { + result["job_environment_configuration_details"] = nil + } + + if obj.JobInfrastructureConfigurationDetails != nil { + jobInfrastructureConfigurationDetailsArray := []interface{}{} + if jobInfrastructureConfigurationDetailsMap := JobInfrastructureConfigurationDetailsToMap(&obj.JobInfrastructureConfigurationDetails); jobInfrastructureConfigurationDetailsMap != nil { + jobInfrastructureConfigurationDetailsArray = append(jobInfrastructureConfigurationDetailsArray, jobInfrastructureConfigurationDetailsMap) + } + result["job_infrastructure_configuration_details"] = jobInfrastructureConfigurationDetailsArray + } + + if obj.MinimumSuccessReplicas != nil { + result["minimum_success_replicas"] = int(*obj.MinimumSuccessReplicas) + } + + if obj.Name != nil { + result["name"] = string(*obj.Name) + } + + if obj.Replicas != nil { + result["replicas"] = int(*obj.Replicas) + } + + return result +} + +func (s *DatascienceJobResourceCrud) mapToJobProbeDetails(fieldKeyFormat string) (oci_datascience.JobProbeDetails, error) { + var baseObject oci_datascience.JobProbeDetails + //discriminator + jobProbeCheckTypeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_probe_check_type")) + var jobProbeCheckType string + if ok { + jobProbeCheckType = jobProbeCheckTypeRaw.(string) + } else { + jobProbeCheckType = "" // default value + } + switch strings.ToLower(jobProbeCheckType) { + case strings.ToLower("EXEC"): + details := oci_datascience.JobExecProbeDetails{} + if command, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "command")); ok { + interfaces := command.([]interface{}) + tmp := make([]string, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = interfaces[i].(string) + } + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "command")) { + details.Command = tmp + } + } + if failureThreshold, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "failure_threshold")); ok { + tmp := failureThreshold.(int) + details.FailureThreshold = &tmp + } + if initialDelayInSeconds, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "initial_delay_in_seconds")); ok { + tmp := initialDelayInSeconds.(int) + details.InitialDelayInSeconds = &tmp + } + if periodInSeconds, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "period_in_seconds")); ok { + tmp := periodInSeconds.(int) + details.PeriodInSeconds = &tmp + } + baseObject = details + default: + return nil, fmt.Errorf("unknown job_probe_check_type '%v' was specified", jobProbeCheckType) + } + return baseObject, nil +} + +func JobProbeDetailsToMap(obj *oci_datascience.JobProbeDetails) map[string]interface{} { + result := map[string]interface{}{} + switch v := (*obj).(type) { + case oci_datascience.JobExecProbeDetails: + result["job_probe_check_type"] = "EXEC" + + result["command"] = v.Command + + if v.FailureThreshold != nil { + result["failure_threshold"] = int(*v.FailureThreshold) + } + + if v.InitialDelayInSeconds != nil { + result["initial_delay_in_seconds"] = int(*v.InitialDelayInSeconds) + } + + if v.PeriodInSeconds != nil { + result["period_in_seconds"] = int(*v.PeriodInSeconds) + } + default: + log.Printf("[WARN] Received 'job_probe_check_type' of unknown type %v", *obj) + return nil + } + + return result +} + func (s *DatascienceJobResourceCrud) mapToJobShapeConfigDetails(fieldKeyFormat string) (oci_datascience.JobShapeConfigDetails, error) { result := oci_datascience.JobShapeConfigDetails{} diff --git a/internal/service/datascience/datascience_job_run_data_source.go b/internal/service/datascience/datascience_job_run_data_source.go index fab8c47c11b..9bb436fedb3 100644 --- a/internal/service/datascience/datascience_job_run_data_source.go +++ b/internal/service/datascience/datascience_job_run_data_source.go @@ -118,12 +118,32 @@ func (s *DatascienceJobRunDataSourceCrud) SetData() error { s.D.Set("job_infrastructure_configuration_details", nil) } + if s.Res.JobInfrastructureConfigurationOverrideDetails != nil { + jobInfrastructureConfigurationOverrideDetailsArray := []interface{}{} + if jobInfrastructureConfigurationOverrideDetailsMap := JobInfrastructureConfigurationDetailsToMap(&s.Res.JobInfrastructureConfigurationOverrideDetails); jobInfrastructureConfigurationOverrideDetailsMap != nil { + jobInfrastructureConfigurationOverrideDetailsArray = append(jobInfrastructureConfigurationOverrideDetailsArray, jobInfrastructureConfigurationOverrideDetailsMap) + } + s.D.Set("job_infrastructure_configuration_override_details", jobInfrastructureConfigurationOverrideDetailsArray) + } else { + s.D.Set("job_infrastructure_configuration_override_details", nil) + } + if s.Res.JobLogConfigurationOverrideDetails != nil { s.D.Set("job_log_configuration_override_details", []interface{}{JobLogConfigurationDetailsToMap(s.Res.JobLogConfigurationOverrideDetails)}) } else { s.D.Set("job_log_configuration_override_details", nil) } + if s.Res.JobNodeConfigurationOverrideDetails != nil { + jobNodeConfigurationOverrideDetailsArray := []interface{}{} + if jobNodeConfigurationOverrideDetailsMap := JobNodeConfigurationDetailsToMap(&s.Res.JobNodeConfigurationOverrideDetails); jobNodeConfigurationOverrideDetailsMap != nil { + jobNodeConfigurationOverrideDetailsArray = append(jobNodeConfigurationOverrideDetailsArray, jobNodeConfigurationOverrideDetailsMap) + } + s.D.Set("job_node_configuration_override_details", jobNodeConfigurationOverrideDetailsArray) + } else { + s.D.Set("job_node_configuration_override_details", nil) + } + jobStorageMountConfigurationDetailsList := []interface{}{} for _, item := range s.Res.JobStorageMountConfigurationDetailsList { jobStorageMountConfigurationDetailsList = append(jobStorageMountConfigurationDetailsList, StorageMountConfigurationDetailsToMap(item)) @@ -140,6 +160,12 @@ func (s *DatascienceJobRunDataSourceCrud) SetData() error { s.D.Set("log_details", nil) } + nodeGroupDetailsList := []interface{}{} + for _, item := range s.Res.NodeGroupDetailsList { + nodeGroupDetailsList = append(nodeGroupDetailsList, NodeGroupDetailsToMap(item)) + } + s.D.Set("node_group_details_list", nodeGroupDetailsList) + if s.Res.ProjectId != nil { s.D.Set("project_id", *s.Res.ProjectId) } diff --git a/internal/service/datascience/datascience_job_run_resource.go b/internal/service/datascience/datascience_job_run_resource.go index 47efecf9029..c0872497834 100644 --- a/internal/service/datascience/datascience_job_run_resource.go +++ b/internal/service/datascience/datascience_job_run_resource.go @@ -8,6 +8,7 @@ import ( "fmt" "strconv" "strings" + "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" @@ -19,15 +20,23 @@ import ( ) func DatascienceJobRunResource() *schema.Resource { + var ( + TwentyMinutes = 20 * time.Minute + OneHour = 60 * time.Minute + ) return &schema.Resource{ Importer: &schema.ResourceImporter{ State: schema.ImportStatePassthrough, }, - Timeouts: tfresource.DefaultTimeout, - Create: createDatascienceJobRun, - Read: readDatascienceJobRun, - Update: updateDatascienceJobRun, - Delete: deleteDatascienceJobRun, + Timeouts: &schema.ResourceTimeout{ + Create: &OneHour, + Update: &TwentyMinutes, + Delete: &OneHour, + }, + Create: createDatascienceJobRun, + Read: readDatascienceJobRun, + Update: updateDatascienceJobRun, + Delete: deleteDatascienceJobRun, Schema: map[string]*schema.Schema{ // Required "compartment_id": { @@ -87,6 +96,7 @@ func DatascienceJobRunResource() *schema.Resource { DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, ValidateFunc: validation.StringInSlice([]string{ "DEFAULT", + "EMPTY", }, true), }, @@ -112,6 +122,58 @@ func DatascienceJobRunResource() *schema.Resource { ValidateFunc: tfresource.ValidateInt64TypeString, DiffSuppressFunc: tfresource.Int64StringDiffSuppressFunction, }, + "startup_probe_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "command": { + Type: schema.TypeList, + Required: true, + ForceNew: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "job_probe_check_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "EXEC", + }, true), + }, + + // Optional + "failure_threshold": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + "initial_delay_in_seconds": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + "period_in_seconds": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, // Computed }, @@ -178,6 +240,82 @@ func DatascienceJobRunResource() *schema.Resource { }, }, }, + "job_infrastructure_configuration_override_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "job_infrastructure_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "EMPTY", + "ME_STANDALONE", + "MULTI_NODE", + "STANDALONE", + }, true), + }, + + // Optional + "block_storage_size_in_gbs": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + "job_shape_config_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: 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, + ForceNew: true, + }, + "ocpus": { + Type: schema.TypeFloat, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "shape_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "subnet_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, "job_log_configuration_override_details": { Type: schema.TypeList, Optional: true, @@ -219,6 +357,348 @@ func DatascienceJobRunResource() *schema.Resource { }, }, }, + "job_node_configuration_override_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "job_node_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "MULTI_NODE", + }, true), + }, + + // Optional + "job_network_configuration": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "job_network_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "CUSTOM_NETWORK", + "DEFAULT_NETWORK", + }, true), + }, + + // Optional + "subnet_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "job_node_group_configuration_details_list": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "name": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + "job_configuration_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "job_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "DEFAULT", + "EMPTY", + }, true), + }, + + // Optional + "command_line_arguments": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "environment_variables": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + ForceNew: true, + Elem: schema.TypeString, + }, + "maximum_runtime_in_minutes": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + ValidateFunc: tfresource.ValidateInt64TypeString, + DiffSuppressFunc: tfresource.Int64StringDiffSuppressFunction, + }, + "startup_probe_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "command": { + Type: schema.TypeList, + Required: true, + ForceNew: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "job_probe_check_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "EXEC", + }, true), + }, + + // Optional + "failure_threshold": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + "initial_delay_in_seconds": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + "period_in_seconds": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + + // Computed + }, + }, + }, + "job_environment_configuration_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "image": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "job_environment_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "OCIR_CONTAINER", + }, true), + }, + + // Optional + "cmd": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "entrypoint": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "image_digest": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "image_signature_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "job_infrastructure_configuration_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "job_infrastructure_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: tfresource.EqualIgnoreCaseSuppressDiff, + ValidateFunc: validation.StringInSlice([]string{ + "EMPTY", + "ME_STANDALONE", + "MULTI_NODE", + "STANDALONE", + }, true), + }, + + // Optional + "block_storage_size_in_gbs": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + "job_shape_config_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: 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, + ForceNew: true, + }, + "ocpus": { + Type: schema.TypeFloat, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "shape_name": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "subnet_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "minimum_success_replicas": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + "replicas": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "maximum_runtime_in_minutes": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + ValidateFunc: tfresource.ValidateInt64TypeString, + DiffSuppressFunc: tfresource.Int64StringDiffSuppressFunction, + }, + "startup_order": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, "opc_parent_rpt_url": { Type: schema.TypeString, Optional: true, @@ -353,6 +833,31 @@ func DatascienceJobRunResource() *schema.Resource { }, }, }, + "node_group_details_list": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "lifecycle_details": { + Type: schema.TypeString, + Computed: true, + }, + "name": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, "state": { Type: schema.TypeString, Computed: true, @@ -434,16 +939,16 @@ func (s *DatascienceJobRunResourceCrud) CreatedPending() []string { } func (s *DatascienceJobRunResourceCrud) CreatedTarget() []string { - invokeAsynchronously := true - if async, ok := s.D.GetOkExists("asynchronous"); ok { - invokeAsynchronously = async.(bool) - } + // invokeAsynchronously := true + // if async, ok := s.D.GetOkExists("asynchronous"); ok { + // invokeAsynchronously = async.(bool) + // } - if invokeAsynchronously { - return []string{ - string(oci_datascience.JobRunLifecycleStateAccepted), - } - } + // if invokeAsynchronously { + // return []string{ + // string(oci_datascience.JobRunLifecycleStateAccepted), + // } + // } return []string{ string(oci_datascience.JobRunLifecycleStateSucceeded), @@ -515,6 +1020,17 @@ func (s *DatascienceJobRunResourceCrud) Create() error { request.JobId = &tmp } + if jobInfrastructureConfigurationOverrideDetails, ok := s.D.GetOkExists("job_infrastructure_configuration_override_details"); ok { + if tmpList := jobInfrastructureConfigurationOverrideDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "job_infrastructure_configuration_override_details", 0) + tmp, err := s.mapToJobInfrastructureConfigurationDetails(fieldKeyFormat) + if err != nil { + return err + } + request.JobInfrastructureConfigurationOverrideDetails = tmp + } + } + if jobLogConfigurationOverrideDetails, ok := s.D.GetOkExists("job_log_configuration_override_details"); ok { if tmpList := jobLogConfigurationOverrideDetails.([]interface{}); len(tmpList) > 0 { fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "job_log_configuration_override_details", 0) @@ -526,6 +1042,17 @@ func (s *DatascienceJobRunResourceCrud) Create() error { } } + if jobNodeConfigurationOverrideDetails, ok := s.D.GetOkExists("job_node_configuration_override_details"); ok { + if tmpList := jobNodeConfigurationOverrideDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "job_node_configuration_override_details", 0) + tmp, err := s.mapToJobNodeConfigurationDetails(fieldKeyFormat) + if err != nil { + return err + } + request.JobNodeConfigurationOverrideDetails = tmp + } + } + if opcParentRptUrl, ok := s.D.GetOkExists("opc_parent_rpt_url"); ok { tmp := opcParentRptUrl.(string) request.OpcParentRptUrl = &tmp @@ -672,12 +1199,32 @@ func (s *DatascienceJobRunResourceCrud) SetData() error { s.D.Set("job_infrastructure_configuration_details", nil) } + if s.Res.JobInfrastructureConfigurationOverrideDetails != nil { + jobInfrastructureConfigurationOverrideDetailsArray := []interface{}{} + if jobInfrastructureConfigurationOverrideDetailsMap := JobInfrastructureConfigurationDetailsToMap(&s.Res.JobInfrastructureConfigurationOverrideDetails); jobInfrastructureConfigurationOverrideDetailsMap != nil { + jobInfrastructureConfigurationOverrideDetailsArray = append(jobInfrastructureConfigurationOverrideDetailsArray, jobInfrastructureConfigurationOverrideDetailsMap) + } + s.D.Set("job_infrastructure_configuration_override_details", jobInfrastructureConfigurationOverrideDetailsArray) + } else { + s.D.Set("job_infrastructure_configuration_override_details", nil) + } + if s.Res.JobLogConfigurationOverrideDetails != nil { s.D.Set("job_log_configuration_override_details", []interface{}{JobLogConfigurationDetailsToMap(s.Res.JobLogConfigurationOverrideDetails)}) } else { s.D.Set("job_log_configuration_override_details", nil) } + if s.Res.JobNodeConfigurationOverrideDetails != nil { + jobNodeConfigurationOverrideDetailsArray := []interface{}{} + if jobNodeConfigurationOverrideDetailsMap := JobNodeConfigurationDetailsToMap(&s.Res.JobNodeConfigurationOverrideDetails); jobNodeConfigurationOverrideDetailsMap != nil { + jobNodeConfigurationOverrideDetailsArray = append(jobNodeConfigurationOverrideDetailsArray, jobNodeConfigurationOverrideDetailsMap) + } + s.D.Set("job_node_configuration_override_details", jobNodeConfigurationOverrideDetailsArray) + } else { + s.D.Set("job_node_configuration_override_details", nil) + } + jobStorageMountConfigurationDetailsList := []interface{}{} for _, item := range s.Res.JobStorageMountConfigurationDetailsList { jobStorageMountConfigurationDetailsList = append(jobStorageMountConfigurationDetailsList, StorageMountConfigurationDetailsToMap(item)) @@ -694,6 +1241,12 @@ func (s *DatascienceJobRunResourceCrud) SetData() error { s.D.Set("log_details", nil) } + nodeGroupDetailsList := []interface{}{} + for _, item := range s.Res.NodeGroupDetailsList { + nodeGroupDetailsList = append(nodeGroupDetailsList, NodeGroupDetailsToMap(item)) + } + s.D.Set("node_group_details_list", nodeGroupDetailsList) + if s.Res.ProjectId != nil { s.D.Set("project_id", *s.Res.ProjectId) } @@ -743,6 +1296,19 @@ func (s *DatascienceJobRunResourceCrud) mapToJobConfigurationDetails(fieldKeyFor } details.MaximumRuntimeInMinutes = &tmpInt64 } + if startupProbeDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "startup_probe_details")); ok { + if tmpList := startupProbeDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "startup_probe_details"), 0) + tmp, err := s.mapToJobProbeDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert startup_probe_details, encountered error: %v", err) + } + details.StartupProbeDetails = tmp + } + } + baseObject = details + case strings.ToLower("EMPTY"): + details := oci_datascience.EmptyJobConfigurationDetails{} baseObject = details default: return nil, fmt.Errorf("unknown job_type '%v' was specified", jobType) @@ -806,6 +1372,93 @@ func (s *DatascienceJobRunResourceCrud) mapToJobEnvironmentConfigurationDetails( return baseObject, nil } +func (s *DatascienceJobRunResourceCrud) mapToJobInfrastructureConfigurationDetails(fieldKeyFormat string) (oci_datascience.JobInfrastructureConfigurationDetails, error) { + var baseObject oci_datascience.JobInfrastructureConfigurationDetails + //discriminator + jobInfrastructureTypeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_infrastructure_type")) + var jobInfrastructureType string + if ok { + jobInfrastructureType = jobInfrastructureTypeRaw.(string) + } else { + jobInfrastructureType = "" // default value + } + switch strings.ToLower(jobInfrastructureType) { + case strings.ToLower("EMPTY"): + details := oci_datascience.EmptyJobInfrastructureConfigurationDetails{} + baseObject = details + case strings.ToLower("ME_STANDALONE"): + details := oci_datascience.ManagedEgressStandaloneJobInfrastructureConfigurationDetails{} + if blockStorageSizeInGBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_storage_size_in_gbs")); ok { + tmp := blockStorageSizeInGBs.(int) + details.BlockStorageSizeInGBs = &tmp + } + if jobShapeConfigDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_shape_config_details")); ok { + if tmpList := jobShapeConfigDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_shape_config_details"), 0) + tmp, err := s.mapToJobShapeConfigDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert job_shape_config_details, encountered error: %v", err) + } + details.JobShapeConfigDetails = &tmp + } + } + if shapeName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shape_name")); ok { + tmp := shapeName.(string) + details.ShapeName = &tmp + } + baseObject = details + case strings.ToLower("MULTI_NODE"): + details := oci_datascience.MultiNodeJobInfrastructureConfigurationDetails{} + if blockStorageSizeInGBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_storage_size_in_gbs")); ok { + tmp := blockStorageSizeInGBs.(int) + details.BlockStorageSizeInGBs = &tmp + } + if jobShapeConfigDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_shape_config_details")); ok { + if tmpList := jobShapeConfigDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_shape_config_details"), 0) + tmp, err := s.mapToJobShapeConfigDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert job_shape_config_details, encountered error: %v", err) + } + details.JobShapeConfigDetails = &tmp + } + } + if shapeName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shape_name")); ok { + tmp := shapeName.(string) + details.ShapeName = &tmp + } + baseObject = details + case strings.ToLower("STANDALONE"): + details := oci_datascience.StandaloneJobInfrastructureConfigurationDetails{} + if blockStorageSizeInGBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_storage_size_in_gbs")); ok { + tmp := blockStorageSizeInGBs.(int) + details.BlockStorageSizeInGBs = &tmp + } + if jobShapeConfigDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_shape_config_details")); ok { + if tmpList := jobShapeConfigDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_shape_config_details"), 0) + tmp, err := s.mapToJobShapeConfigDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert job_shape_config_details, encountered error: %v", err) + } + details.JobShapeConfigDetails = &tmp + } + } + if shapeName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shape_name")); ok { + tmp := shapeName.(string) + details.ShapeName = &tmp + } + if subnetId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "subnet_id")); ok { + tmp := subnetId.(string) + details.SubnetId = &tmp + } + baseObject = details + default: + return nil, fmt.Errorf("unknown job_infrastructure_type '%v' was specified", jobInfrastructureType) + } + return baseObject, nil +} + func (s *DatascienceJobRunResourceCrud) mapToJobLogConfigurationDetails(fieldKeyFormat string) (oci_datascience.JobLogConfigurationDetails, error) { result := oci_datascience.JobLogConfigurationDetails{} @@ -832,6 +1485,188 @@ func (s *DatascienceJobRunResourceCrud) mapToJobLogConfigurationDetails(fieldKey return result, nil } +func (s *DatascienceJobRunResourceCrud) mapToJobNetworkConfiguration(fieldKeyFormat string) (oci_datascience.JobNetworkConfiguration, error) { + var baseObject oci_datascience.JobNetworkConfiguration + //discriminator + jobNetworkTypeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_network_type")) + var jobNetworkType string + if ok { + jobNetworkType = jobNetworkTypeRaw.(string) + } else { + jobNetworkType = "" // default value + } + switch strings.ToLower(jobNetworkType) { + case strings.ToLower("CUSTOM_NETWORK"): + details := oci_datascience.JobCustomNetworkConfiguration{} + if subnetId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "subnet_id")); ok { + tmp := subnetId.(string) + details.SubnetId = &tmp + } + baseObject = details + case strings.ToLower("DEFAULT_NETWORK"): + details := oci_datascience.JobDefaultNetworkConfiguration{} + baseObject = details + default: + return nil, fmt.Errorf("unknown job_network_type '%v' was specified", jobNetworkType) + } + return baseObject, nil +} + +func (s *DatascienceJobRunResourceCrud) mapToJobNodeConfigurationDetails(fieldKeyFormat string) (oci_datascience.JobNodeConfigurationDetails, error) { + var baseObject oci_datascience.JobNodeConfigurationDetails + //discriminator + jobNodeTypeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_node_type")) + var jobNodeType string + if ok { + jobNodeType = jobNodeTypeRaw.(string) + } else { + jobNodeType = "" // default value + } + switch strings.ToLower(jobNodeType) { + case strings.ToLower("MULTI_NODE"): + details := oci_datascience.MultiNodeJobNodeConfigurationDetails{} + if jobNetworkConfiguration, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_network_configuration")); ok { + if tmpList := jobNetworkConfiguration.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_network_configuration"), 0) + tmp, err := s.mapToJobNetworkConfiguration(fieldKeyFormatNextLevel) + if err != nil { + return details, fmt.Errorf("unable to convert job_network_configuration, encountered error: %v", err) + } + details.JobNetworkConfiguration = tmp + } + } + if jobNodeGroupConfigurationDetailsList, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_node_group_configuration_details_list")); ok { + interfaces := jobNodeGroupConfigurationDetailsList.([]interface{}) + tmp := make([]oci_datascience.JobNodeGroupConfigurationDetails, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_node_group_configuration_details_list"), stateDataIndex) + converted, err := s.mapToJobNodeGroupConfigurationDetails(fieldKeyFormatNextLevel) + if err != nil { + return details, err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "job_node_group_configuration_details_list")) { + details.JobNodeGroupConfigurationDetailsList = tmp + } + } + if maximumRuntimeInMinutes, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "maximum_runtime_in_minutes")); ok { + tmp := maximumRuntimeInMinutes.(string) + tmpInt64, err := strconv.ParseInt(tmp, 10, 64) + if err != nil { + return details, fmt.Errorf("unable to convert maximumRuntimeInMinutes string: %s to an int64 and encountered error: %v", tmp, err) + } + details.MaximumRuntimeInMinutes = &tmpInt64 + } + if startupOrder, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "startup_order")); ok { + details.StartupOrder = oci_datascience.MultiNodeJobNodeConfigurationDetailsStartupOrderEnum(startupOrder.(string)) + } + baseObject = details + default: + return nil, fmt.Errorf("unknown job_node_type '%v' was specified", jobNodeType) + } + return baseObject, nil +} + +func (s *DatascienceJobRunResourceCrud) mapToJobNodeGroupConfigurationDetails(fieldKeyFormat string) (oci_datascience.JobNodeGroupConfigurationDetails, error) { + result := oci_datascience.JobNodeGroupConfigurationDetails{} + + if jobConfigurationDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_configuration_details")); ok { + if tmpList := jobConfigurationDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_configuration_details"), 0) + tmp, err := s.mapToJobConfigurationDetails(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert job_configuration_details, encountered error: %v", err) + } + result.JobConfigurationDetails = tmp + } + } + + if jobEnvironmentConfigurationDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_environment_configuration_details")); ok { + if tmpList := jobEnvironmentConfigurationDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_environment_configuration_details"), 0) + tmp, err := s.mapToJobEnvironmentConfigurationDetails(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert job_environment_configuration_details, encountered error: %v", err) + } + result.JobEnvironmentConfigurationDetails = tmp + } + } + + if jobInfrastructureConfigurationDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_infrastructure_configuration_details")); ok { + if tmpList := jobInfrastructureConfigurationDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "job_infrastructure_configuration_details"), 0) + tmp, err := s.mapToJobInfrastructureConfigurationDetails(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert job_infrastructure_configuration_details, encountered error: %v", err) + } + result.JobInfrastructureConfigurationDetails = tmp + } + } + + if minimumSuccessReplicas, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "minimum_success_replicas")); ok { + tmp := minimumSuccessReplicas.(int) + result.MinimumSuccessReplicas = &tmp + } + + if name, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "name")); ok { + tmp := name.(string) + result.Name = &tmp + } + + if replicas, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "replicas")); ok { + tmp := replicas.(int) + result.Replicas = &tmp + } + + return result, nil +} + +func (s *DatascienceJobRunResourceCrud) mapToJobProbeDetails(fieldKeyFormat string) (oci_datascience.JobProbeDetails, error) { + var baseObject oci_datascience.JobProbeDetails + //discriminator + jobProbeCheckTypeRaw, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "job_probe_check_type")) + var jobProbeCheckType string + if ok { + jobProbeCheckType = jobProbeCheckTypeRaw.(string) + } else { + jobProbeCheckType = "" // default value + } + switch strings.ToLower(jobProbeCheckType) { + case strings.ToLower("EXEC"): + details := oci_datascience.JobExecProbeDetails{} + if command, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "command")); ok { + interfaces := command.([]interface{}) + tmp := make([]string, len(interfaces)) + for i := range interfaces { + if interfaces[i] != nil { + tmp[i] = interfaces[i].(string) + } + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "command")) { + details.Command = tmp + } + } + if failureThreshold, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "failure_threshold")); ok { + tmp := failureThreshold.(int) + details.FailureThreshold = &tmp + } + if initialDelayInSeconds, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "initial_delay_in_seconds")); ok { + tmp := initialDelayInSeconds.(int) + details.InitialDelayInSeconds = &tmp + } + if periodInSeconds, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "period_in_seconds")); ok { + tmp := periodInSeconds.(int) + details.PeriodInSeconds = &tmp + } + baseObject = details + default: + return nil, fmt.Errorf("unknown job_probe_check_type '%v' was specified", jobProbeCheckType) + } + return baseObject, nil +} + func JobRunLogDetailsToMap(obj *oci_datascience.JobRunLogDetails) map[string]interface{} { result := map[string]interface{}{} @@ -854,18 +1689,34 @@ func (s *DatascienceJobRunResourceCrud) mapToJobShapeConfigDetails(fieldKeyForma } if memoryInGBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "memory_in_gbs")); ok { - tmp := memoryInGBs.(float32) + tmp := float32(memoryInGBs.(float64)) result.MemoryInGBs = &tmp } if ocpus, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "ocpus")); ok { - tmp := ocpus.(float32) + tmp := float32(ocpus.(float64)) result.Ocpus = &tmp } return result, nil } +func NodeGroupDetailsToMap(obj oci_datascience.NodeGroupDetails) map[string]interface{} { + result := map[string]interface{}{} + + if obj.LifecycleDetails != nil { + result["lifecycle_details"] = string(*obj.LifecycleDetails) + } + + if obj.Name != nil { + result["name"] = string(*obj.Name) + } + + result["state"] = string(obj.LifecycleState) + + return result +} + func (s *DatascienceJobRunResourceCrud) updateCompartment(compartment interface{}) error { changeCompartmentRequest := oci_datascience.ChangeJobRunCompartmentRequest{} diff --git a/internal/service/datascience/datascience_pipeline_run_data_source.go b/internal/service/datascience/datascience_pipeline_run_data_source.go index a9bfec01e7f..a04c80cfc87 100644 --- a/internal/service/datascience/datascience_pipeline_run_data_source.go +++ b/internal/service/datascience/datascience_pipeline_run_data_source.go @@ -103,6 +103,12 @@ func (s *DatasciencePipelineRunDataSourceCrud) SetData() error { s.D.Set("freeform_tags", s.Res.FreeformTags) + if s.Res.InfrastructureConfigurationOverrideDetails != nil { + s.D.Set("infrastructure_configuration_override_details", []interface{}{PipelineInfrastructureConfigurationDetailsToMap(s.Res.InfrastructureConfigurationOverrideDetails)}) + } else { + s.D.Set("infrastructure_configuration_override_details", nil) + } + if s.Res.LifecycleDetails != nil { s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) } diff --git a/internal/service/datascience/datascience_pipeline_run_resource.go b/internal/service/datascience/datascience_pipeline_run_resource.go index e5fe8333235..6079c4efd48 100644 --- a/internal/service/datascience/datascience_pipeline_run_resource.go +++ b/internal/service/datascience/datascience_pipeline_run_resource.go @@ -111,6 +111,68 @@ func DatasciencePipelineRunResource() *schema.Resource { Computed: true, Elem: schema.TypeString, }, + "infrastructure_configuration_override_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "block_storage_size_in_gbs": { + Type: schema.TypeInt, + Required: true, + ForceNew: true, + }, + "shape_name": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + "shape_config_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: 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, + ForceNew: true, + }, + "ocpus": { + Type: schema.TypeFloat, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "subnet_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, "delete_related_job_runs": { Type: schema.TypeBool, Optional: true, @@ -398,6 +460,68 @@ func DatasciencePipelineRunResource() *schema.Resource { }, }, }, + "step_infrastructure_configuration_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "block_storage_size_in_gbs": { + Type: schema.TypeInt, + Required: true, + ForceNew: true, + }, + "shape_name": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + "shape_config_details": { + Type: schema.TypeList, + Optional: true, + Computed: true, + ForceNew: 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, + ForceNew: true, + }, + "ocpus": { + Type: schema.TypeFloat, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, + "subnet_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + + // Computed + }, + }, + }, // Computed }, @@ -656,6 +780,17 @@ func (s *DatasciencePipelineRunResourceCrud) Create() error { request.FreeformTags = tfresource.ObjectMapToStringMap(freeformTags.(map[string]interface{})) } + if infrastructureConfigurationOverrideDetails, ok := s.D.GetOkExists("infrastructure_configuration_override_details"); ok { + if tmpList := infrastructureConfigurationOverrideDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "infrastructure_configuration_override_details", 0) + tmp, err := s.mapToPipelineInfrastructureConfigurationDetails(fieldKeyFormat) + if err != nil { + return err + } + request.InfrastructureConfigurationOverrideDetails = &tmp + } + } + if logConfigurationOverrideDetails, ok := s.D.GetOkExists("log_configuration_override_details"); ok { if tmpList := logConfigurationOverrideDetails.([]interface{}); len(tmpList) > 0 { fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "log_configuration_override_details", 0) @@ -834,6 +969,12 @@ func (s *DatasciencePipelineRunResourceCrud) SetData() error { s.D.Set("freeform_tags", s.Res.FreeformTags) + if s.Res.InfrastructureConfigurationOverrideDetails != nil { + s.D.Set("infrastructure_configuration_override_details", []interface{}{PipelineInfrastructureConfigurationDetailsToMap(s.Res.InfrastructureConfigurationOverrideDetails)}) + } else { + s.D.Set("infrastructure_configuration_override_details", nil) + } + if s.Res.LifecycleDetails != nil { s.D.Set("lifecycle_details", *s.Res.LifecycleDetails) } @@ -1111,6 +1252,38 @@ func (s *DatasciencePipelineRunResourceCrud) mapToPipelineDataflowConfigurationD // return result // } +func (s *DatasciencePipelineRunResourceCrud) mapToPipelineInfrastructureConfigurationDetails(fieldKeyFormat string) (oci_datascience.PipelineInfrastructureConfigurationDetails, error) { + result := oci_datascience.PipelineInfrastructureConfigurationDetails{} + + if blockStorageSizeInGBs, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "block_storage_size_in_gbs")); ok { + tmp := blockStorageSizeInGBs.(int) + result.BlockStorageSizeInGBs = &tmp + } + + if shapeConfigDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shape_config_details")); ok { + if tmpList := shapeConfigDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "shape_config_details"), 0) + tmp, err := s.mapToPipelineShapeConfigDetails(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert shape_config_details, encountered error: %v", err) + } + result.ShapeConfigDetails = &tmp + } + } + + if shapeName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "shape_name")); ok { + tmp := shapeName.(string) + result.ShapeName = &tmp + } + + if subnetId, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "subnet_id")); ok { + tmp := subnetId.(string) + result.SubnetId = &tmp + } + + return result, nil +} + func (s *DatasciencePipelineRunResourceCrud) mapToPipelineLogConfigurationDetails(fieldKeyFormat string) (oci_datascience.PipelineLogConfigurationDetails, error) { result := oci_datascience.PipelineLogConfigurationDetails{} @@ -1285,6 +1458,17 @@ func (s *DatasciencePipelineRunResourceCrud) mapToPipelineStepOverrideDetails(fi } } + if stepInfrastructureConfigurationDetails, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "step_infrastructure_configuration_details")); ok { + if tmpList := stepInfrastructureConfigurationDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "step_infrastructure_configuration_details"), 0) + tmp, err := s.mapToPipelineInfrastructureConfigurationDetails(fieldKeyFormatNextLevel) + if err != nil { + return result, fmt.Errorf("unable to convert step_infrastructure_configuration_details, encountered error: %v", err) + } + result.StepInfrastructureConfigurationDetails = &tmp + } + } + if stepName, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "step_name")); ok { tmp := stepName.(string) result.StepName = &tmp @@ -1308,6 +1492,10 @@ func PipelineStepOverrideDetailsToMap(obj oci_datascience.PipelineStepOverrideDe result["step_dataflow_configuration_details"] = []interface{}{PipelineDataflowConfigurationDetailsToMap(obj.StepDataflowConfigurationDetails)} } + if obj.StepInfrastructureConfigurationDetails != nil { + result["step_infrastructure_configuration_details"] = []interface{}{PipelineInfrastructureConfigurationDetailsToMap(obj.StepInfrastructureConfigurationDetails)} + } + if obj.StepName != nil { result["step_name"] = string(*obj.StepName) } diff --git a/internal/service/golden_gate/golden_gate_connection_data_source.go b/internal/service/golden_gate/golden_gate_connection_data_source.go index 9b339ac8f4c..b7ba997cda8 100644 --- a/internal/service/golden_gate/golden_gate_connection_data_source.go +++ b/internal/service/golden_gate/golden_gate_connection_data_source.go @@ -74,6 +74,14 @@ func (s *GoldenGateConnectionDataSourceCrud) SetData() error { s.D.Set("access_key_id", *v.AccessKeyId) } + if v.Endpoint != nil { + s.D.Set("endpoint", *v.Endpoint) + } + + if v.Region != nil { + s.D.Set("region", *v.Region) + } + if v.SecretAccessKeySecretId != nil { s.D.Set("secret_access_key_secret_id", *v.SecretAccessKeySecretId) } @@ -344,6 +352,10 @@ func (s *GoldenGateConnectionDataSourceCrud) SetData() error { s.D.Set("authentication_type", v.AuthenticationType) + if v.AzureAuthorityHost != nil { + s.D.Set("azure_authority_host", *v.AzureAuthorityHost) + } + if v.AzureTenantId != nil { s.D.Set("azure_tenant_id", *v.AzureTenantId) } @@ -660,9 +672,9 @@ func (s *GoldenGateConnectionDataSourceCrud) SetData() error { s.D.Set("ssl_client_keystoredb_secret_id", *v.SslClientKeystoredbSecretId) } - //if v.SslServerCertificate != nil { - // s.D.Set("ssl_server_certificate", *v.SslServerCertificate) - //} + if v.SslServerCertificate != nil { + s.D.Set("ssl_server_certificate", *v.SslServerCertificate) + } s.D.Set("technology_type", v.TechnologyType) @@ -1262,9 +1274,9 @@ func (s *GoldenGateConnectionDataSourceCrud) SetData() error { case oci_golden_gate.HdfsConnection: s.D.Set("connection_type", "HDFS") - //if v.CoreSiteXml != nil { - // s.D.Set("core_site_xml", *v.CoreSiteXml) - //} + if v.CoreSiteXml != nil { + s.D.Set("core_site_xml", *v.CoreSiteXml) + } s.D.Set("technology_type", v.TechnologyType) @@ -2044,9 +2056,9 @@ func (s *GoldenGateConnectionDataSourceCrud) SetData() error { s.D.Set("technology_type", v.TechnologyType) - //if v.TlsCaFile != nil { - // s.D.Set("tls_ca_file", *v.TlsCaFile) - //} + if v.TlsCaFile != nil { + s.D.Set("tls_ca_file", *v.TlsCaFile) + } if v.TlsCertificateKeyFilePasswordSecretId != nil { s.D.Set("tls_certificate_key_file_password_secret_id", *v.TlsCertificateKeyFilePasswordSecretId) @@ -2166,17 +2178,17 @@ func (s *GoldenGateConnectionDataSourceCrud) SetData() error { s.D.Set("security_protocol", v.SecurityProtocol) - //if v.SslCa != nil { - // s.D.Set("ssl_ca", *v.SslCa) - //} - // - //if v.SslCert != nil { - // s.D.Set("ssl_cert", *v.SslCert) - //} - // - //if v.SslCrl != nil { - // s.D.Set("ssl_crl", *v.SslCrl) - //} + if v.SslCa != nil { + s.D.Set("ssl_ca", *v.SslCa) + } + + if v.SslCert != nil { + s.D.Set("ssl_cert", *v.SslCert) + } + + if v.SslCrl != nil { + s.D.Set("ssl_crl", *v.SslCrl) + } if v.SslKeySecretId != nil { s.D.Set("ssl_key_secret_id", *v.SslKeySecretId) @@ -2272,6 +2284,10 @@ func (s *GoldenGateConnectionDataSourceCrud) SetData() error { s.D.Set("private_key_passphrase_secret_id", *v.PrivateKeyPassphraseSecretId) } + if v.PublicKeyFingerprint != nil { + s.D.Set("public_key_fingerprint", *v.PublicKeyFingerprint) + } + if v.Region != nil { s.D.Set("region", *v.Region) } @@ -2606,17 +2622,17 @@ func (s *GoldenGateConnectionDataSourceCrud) SetData() error { s.D.Set("security_protocol", v.SecurityProtocol) - //if v.SslCa != nil { - // s.D.Set("ssl_ca", *v.SslCa) - //} - // - //if v.SslCert != nil { - // s.D.Set("ssl_cert", *v.SslCert) - //} - // - //if v.SslCrl != nil { - // s.D.Set("ssl_crl", *v.SslCrl) - //} + if v.SslCa != nil { + s.D.Set("ssl_ca", *v.SslCa) + } + + if v.SslCert != nil { + s.D.Set("ssl_cert", *v.SslCert) + } + + if v.SslCrl != nil { + s.D.Set("ssl_crl", *v.SslCrl) + } if v.SslKeySecretId != nil { s.D.Set("ssl_key_secret_id", *v.SslKeySecretId) @@ -2886,7 +2902,7 @@ func (s *GoldenGateConnectionDataSourceCrud) SetData() error { for _, item := range v.NsgIds { nsgIds = append(nsgIds, item) } - s.D.Set("nsg_ids", schema.NewSet(tfresource.LiteralTypeHashCodeForSets, nsgIds)) + s.D.Set("nsg_ids", nsgIds) s.D.Set("routing_method", v.RoutingMethod) diff --git a/internal/service/golden_gate/golden_gate_connection_resource.go b/internal/service/golden_gate/golden_gate_connection_resource.go index 5484dd7c020..cbf44bd9e89 100644 --- a/internal/service/golden_gate/golden_gate_connection_resource.go +++ b/internal/service/golden_gate/golden_gate_connection_resource.go @@ -138,6 +138,11 @@ func GoldenGateConnectionResource() *schema.Resource { Optional: true, Computed: true, }, + "azure_authority_host": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, "azure_tenant_id": { Type: schema.TypeString, Optional: true, @@ -1185,6 +1190,14 @@ func (s *GoldenGateConnectionResourceCrud) SetData() error { s.D.Set("access_key_id", *v.AccessKeyId) } + if v.Endpoint != nil { + s.D.Set("endpoint", *v.Endpoint) + } + + if v.Region != nil { + s.D.Set("region", *v.Region) + } + if v.SecretAccessKeySecretId != nil { s.D.Set("secret_access_key_secret_id", *v.SecretAccessKeySecretId) } @@ -1467,6 +1480,10 @@ func (s *GoldenGateConnectionResourceCrud) SetData() error { s.D.Set("authentication_type", v.AuthenticationType) + if v.AzureAuthorityHost != nil { + s.D.Set("azure_authority_host", *v.AzureAuthorityHost) + } + if v.AzureTenantId != nil { s.D.Set("azure_tenant_id", *v.AzureTenantId) } @@ -1793,9 +1810,9 @@ func (s *GoldenGateConnectionResourceCrud) SetData() error { s.D.Set("ssl_client_keystoredb_secret_id", *v.SslClientKeystoredbSecretId) } - //if v.SslServerCertificate != nil { - // s.D.Set("ssl_server_certificate", *v.SslServerCertificate) - //} + if v.SslServerCertificate != nil { + s.D.Set("ssl_server_certificate", *v.SslServerCertificate) + } s.D.Set("technology_type", v.TechnologyType) @@ -2421,9 +2438,9 @@ func (s *GoldenGateConnectionResourceCrud) SetData() error { case oci_golden_gate.HdfsConnection: s.D.Set("connection_type", "HDFS") - //if v.CoreSiteXml != nil { - // s.D.Set("core_site_xml", *v.CoreSiteXml) - //} + if v.CoreSiteXml != nil { + s.D.Set("core_site_xml", *v.CoreSiteXml) + } s.D.Set("technology_type", v.TechnologyType) @@ -3231,9 +3248,9 @@ func (s *GoldenGateConnectionResourceCrud) SetData() error { s.D.Set("technology_type", v.TechnologyType) - //if v.TlsCaFile != nil { - // s.D.Set("tls_ca_file", *v.TlsCaFile) - //} + if v.TlsCaFile != nil { + s.D.Set("tls_ca_file", *v.TlsCaFile) + } if v.TlsCertificateKeyFilePasswordSecretId != nil { s.D.Set("tls_certificate_key_file_password_secret_id", *v.TlsCertificateKeyFilePasswordSecretId) @@ -3357,17 +3374,17 @@ func (s *GoldenGateConnectionResourceCrud) SetData() error { s.D.Set("security_protocol", v.SecurityProtocol) - //if v.SslCa != nil { - // s.D.Set("ssl_ca", *v.SslCa) - //} - // - //if v.SslCert != nil { - // s.D.Set("ssl_cert", *v.SslCert) - //} - // - //if v.SslCrl != nil { - // s.D.Set("ssl_crl", *v.SslCrl) - //} + if v.SslCa != nil { + s.D.Set("ssl_ca", *v.SslCa) + } + + if v.SslCert != nil { + s.D.Set("ssl_cert", *v.SslCert) + } + + if v.SslCrl != nil { + s.D.Set("ssl_crl", *v.SslCrl) + } if v.SslKeySecretId != nil { s.D.Set("ssl_key_secret_id", *v.SslKeySecretId) @@ -3467,6 +3484,10 @@ func (s *GoldenGateConnectionResourceCrud) SetData() error { s.D.Set("private_key_passphrase_secret_id", *v.PrivateKeyPassphraseSecretId) } + if v.PublicKeyFingerprint != nil { + s.D.Set("public_key_fingerprint", *v.PublicKeyFingerprint) + } + if v.Region != nil { s.D.Set("region", *v.Region) } @@ -3811,17 +3832,17 @@ func (s *GoldenGateConnectionResourceCrud) SetData() error { s.D.Set("security_protocol", v.SecurityProtocol) - //if v.SslCa != nil { - // s.D.Set("ssl_ca", *v.SslCa) - //} - // - //if v.SslCert != nil { - // s.D.Set("ssl_cert", *v.SslCert) - //} - // - //if v.SslCrl != nil { - // s.D.Set("ssl_crl", *v.SslCrl) - //} + if v.SslCa != nil { + s.D.Set("ssl_ca", *v.SslCa) + } + + if v.SslCert != nil { + s.D.Set("ssl_cert", *v.SslCert) + } + + if v.SslCrl != nil { + s.D.Set("ssl_crl", *v.SslCrl) + } if v.SslKeySecretId != nil { s.D.Set("ssl_key_secret_id", *v.SslKeySecretId) @@ -3883,7 +3904,7 @@ func (s *GoldenGateConnectionResourceCrud) SetData() error { for _, item := range v.NsgIds { nsgIds = append(nsgIds, item) } - s.D.Set("nsg_ids", schema.NewSet(tfresource.LiteralTypeHashCodeForSets, nsgIds)) + s.D.Set("nsg_ids", nsgIds) s.D.Set("routing_method", v.RoutingMethod) @@ -3999,7 +4020,7 @@ func (s *GoldenGateConnectionResourceCrud) SetData() error { for _, item := range v.NsgIds { nsgIds = append(nsgIds, item) } - s.D.Set("nsg_ids", schema.NewSet(tfresource.LiteralTypeHashCodeForSets, nsgIds)) + s.D.Set("nsg_ids", nsgIds) s.D.Set("routing_method", v.RoutingMethod) @@ -4101,7 +4122,7 @@ func (s *GoldenGateConnectionResourceCrud) SetData() error { for _, item := range v.NsgIds { nsgIds = append(nsgIds, item) } - s.D.Set("nsg_ids", schema.NewSet(tfresource.LiteralTypeHashCodeForSets, nsgIds)) + s.D.Set("nsg_ids", nsgIds) s.D.Set("routing_method", v.RoutingMethod) @@ -4209,6 +4230,14 @@ func ConnectionSummaryToMap(obj oci_golden_gate.ConnectionSummary, datasource bo result["access_key_id"] = string(*v.AccessKeyId) } + if v.Endpoint != nil { + result["endpoint"] = string(*v.Endpoint) + } + + if v.Region != nil { + result["region"] = string(*v.Region) + } + if v.SecretAccessKeySecretId != nil { result["secret_access_key_secret_id"] = string(*v.SecretAccessKeySecretId) } @@ -4263,6 +4292,10 @@ func ConnectionSummaryToMap(obj oci_golden_gate.ConnectionSummary, datasource bo result["authentication_type"] = string(v.AuthenticationType) + if v.AzureAuthorityHost != nil { + result["azure_authority_host"] = string(*v.AzureAuthorityHost) + } + if v.AzureTenantId != nil { result["azure_tenant_id"] = string(*v.AzureTenantId) } @@ -4779,6 +4812,10 @@ func ConnectionSummaryToMap(obj oci_golden_gate.ConnectionSummary, datasource bo result["private_key_passphrase_secret_id"] = string(*v.PrivateKeyPassphraseSecretId) } + if v.PublicKeyFingerprint != nil { + result["public_key_fingerprint"] = string(*v.PublicKeyFingerprint) + } + if v.Region != nil { result["region"] = string(*v.Region) } @@ -4839,6 +4876,10 @@ func ConnectionSummaryToMap(obj oci_golden_gate.ConnectionSummary, datasource bo result["private_key_passphrase_secret_id"] = string(*v.PrivateKeyPassphraseSecretId) } + if v.PublicKeyFingerprint != nil { + result["public_key_fingerprint"] = string(*v.PublicKeyFingerprint) + } + if v.Region != nil { result["region"] = string(*v.Region) } @@ -6179,6 +6220,14 @@ func (s *GoldenGateConnectionResourceCrud) populateTopLevelPolymorphicCreateConn tmp := accessKeyId.(string) details.AccessKeyId = &tmp } + if endpoint, ok := s.D.GetOkExists("endpoint"); ok { + tmp := endpoint.(string) + details.Endpoint = &tmp + } + if region, ok := s.D.GetOkExists("region"); ok { + tmp := region.(string) + details.Region = &tmp + } if secretAccessKey, ok := s.D.GetOkExists("secret_access_key"); ok { tmp := secretAccessKey.(string) details.SecretAccessKey = &tmp @@ -6466,6 +6515,10 @@ func (s *GoldenGateConnectionResourceCrud) populateTopLevelPolymorphicCreateConn if authenticationType, ok := s.D.GetOkExists("authentication_type"); ok { details.AuthenticationType = oci_golden_gate.AzureDataLakeStorageConnectionAuthenticationTypeEnum(authenticationType.(string)) } + if azureAuthorityHost, ok := s.D.GetOkExists("azure_authority_host"); ok { + tmp := azureAuthorityHost.(string) + details.AzureAuthorityHost = &tmp + } if azureTenantId, ok := s.D.GetOkExists("azure_tenant_id"); ok { tmp := azureTenantId.(string) details.AzureTenantId = &tmp @@ -9347,6 +9400,14 @@ func (s *GoldenGateConnectionResourceCrud) populateTopLevelPolymorphicUpdateConn tmp := accessKeyId.(string) details.AccessKeyId = &tmp } + if endpoint, ok := s.D.GetOkExists("endpoint"); ok { + tmp := endpoint.(string) + details.Endpoint = &tmp + } + if region, ok := s.D.GetOkExists("region"); ok { + tmp := region.(string) + details.Region = &tmp + } if secretAccessKey, ok := s.D.GetOkExists("secret_access_key"); ok { tmp := secretAccessKey.(string) details.SecretAccessKey = &tmp @@ -9583,6 +9644,10 @@ func (s *GoldenGateConnectionResourceCrud) populateTopLevelPolymorphicUpdateConn if authenticationType, ok := s.D.GetOkExists("authentication_type"); ok { details.AuthenticationType = oci_golden_gate.AzureDataLakeStorageConnectionAuthenticationTypeEnum(authenticationType.(string)) } + if azureAuthorityHost, ok := s.D.GetOkExists("azure_authority_host"); ok { + tmp := azureAuthorityHost.(string) + details.AzureAuthorityHost = &tmp + } if azureTenantId, ok := s.D.GetOkExists("azure_tenant_id"); ok { tmp := azureTenantId.(string) details.AzureTenantId = &tmp diff --git a/internal/service/redis/redis_export.go b/internal/service/redis/redis_export.go index 486f647abec..61a91f66714 100644 --- a/internal/service/redis/redis_export.go +++ b/internal/service/redis/redis_export.go @@ -37,9 +37,22 @@ var exportRedisOciCacheUserHints = &tf_export.TerraformResourceHints{ }, } +var exportRedisOciCacheConfigSetHints = &tf_export.TerraformResourceHints{ + ResourceClass: "oci_redis_oci_cache_config_set", + DatasourceClass: "oci_redis_oci_cache_config_sets", + DatasourceItemsAttr: "oci_cache_config_set_collection", + IsDatasourceCollection: true, + ResourceAbbreviation: "oci_cache_config_set", + RequireResourceRefresh: true, + DiscoverableLifecycleStates: []string{ + string(oci_redis.OciCacheConfigSetLifecycleStateActive), + }, +} + var redisResourceGraph = tf_export.TerraformResourceGraph{ "oci_identity_compartment": { {TerraformResourceHints: exportRedisRedisClusterHints}, {TerraformResourceHints: exportRedisOciCacheUserHints}, + {TerraformResourceHints: exportRedisOciCacheConfigSetHints}, }, } diff --git a/internal/service/redis/redis_oci_cache_config_set_data_source.go b/internal/service/redis/redis_oci_cache_config_set_data_source.go new file mode 100644 index 00000000000..a435456fcc2 --- /dev/null +++ b/internal/service/redis/redis_oci_cache_config_set_data_source.go @@ -0,0 +1,114 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package redis + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_redis "github.com/oracle/oci-go-sdk/v65/redis" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func RedisOciCacheConfigSetDataSource() *schema.Resource { + fieldMap := make(map[string]*schema.Schema) + fieldMap["oci_cache_config_set_id"] = &schema.Schema{ + Type: schema.TypeString, + Required: true, + } + return tfresource.GetSingularDataSourceItemSchema(RedisOciCacheConfigSetResource(), fieldMap, readSingularRedisOciCacheConfigSet) +} + +func readSingularRedisOciCacheConfigSet(d *schema.ResourceData, m interface{}) error { + sync := &RedisOciCacheConfigSetDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OciCacheConfigSetClient() + + return tfresource.ReadResource(sync) +} + +type RedisOciCacheConfigSetDataSourceCrud struct { + D *schema.ResourceData + Client *oci_redis.OciCacheConfigSetClient + Res *oci_redis.GetOciCacheConfigSetResponse +} + +func (s *RedisOciCacheConfigSetDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *RedisOciCacheConfigSetDataSourceCrud) Get() error { + request := oci_redis.GetOciCacheConfigSetRequest{} + + if ociCacheConfigSetId, ok := s.D.GetOkExists("oci_cache_config_set_id"); ok { + tmp := ociCacheConfigSetId.(string) + request.OciCacheConfigSetId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "redis") + + response, err := s.Client.GetOciCacheConfigSet(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *RedisOciCacheConfigSetDataSourceCrud) 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) + } + + if s.Res.ConfigurationDetails != nil { + s.D.Set("configuration_details", []interface{}{ConfigurationDetailsToMap(s.Res.ConfigurationDetails)}) + } else { + s.D.Set("configuration_details", nil) + } + + if s.Res.DefaultConfigSetId != nil { + s.D.Set("default_config_set_id", *s.Res.DefaultConfigSetId) + } + + 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("software_version", s.Res.SoftwareVersion) + + s.D.Set("state", s.Res.LifecycleState) + + if s.Res.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) + } + + if s.Res.TimeCreated != nil { + s.D.Set("time_created", s.Res.TimeCreated.String()) + } + + if s.Res.TimeUpdated != nil { + s.D.Set("time_updated", s.Res.TimeUpdated.String()) + } + + return nil +} diff --git a/internal/service/redis/redis_oci_cache_config_set_resource.go b/internal/service/redis/redis_oci_cache_config_set_resource.go new file mode 100644 index 00000000000..1a96b16e605 --- /dev/null +++ b/internal/service/redis/redis_oci_cache_config_set_resource.go @@ -0,0 +1,664 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package redis + +import ( + "context" + "fmt" + "log" + "strings" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + oci_common "github.com/oracle/oci-go-sdk/v65/common" + oci_redis "github.com/oracle/oci-go-sdk/v65/redis" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func RedisOciCacheConfigSetResource() *schema.Resource { + return &schema.Resource{ + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Timeouts: tfresource.DefaultTimeout, + Create: createRedisOciCacheConfigSet, + Read: readRedisOciCacheConfigSet, + Update: updateRedisOciCacheConfigSet, + Delete: deleteRedisOciCacheConfigSet, + Schema: map[string]*schema.Schema{ + // Required + "compartment_id": { + Type: schema.TypeString, + Required: true, + }, + "configuration_details": { + Type: schema.TypeList, + Required: true, + ForceNew: true, + MaxItems: 1, + MinItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "items": { + Type: schema.TypeList, + Required: true, + ForceNew: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + "config_key": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "config_value": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + + // Computed + }, + }, + }, + + // Optional + + // Computed + }, + }, + }, + "display_name": { + Type: schema.TypeString, + Required: true, + }, + "software_version": { + Type: schema.TypeString, + Required: true, + ForceNew: 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, + }, + + // Computed + "default_config_set_id": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "system_tags": { + Type: schema.TypeMap, + Computed: true, + Elem: schema.TypeString, + }, + "time_created": { + Type: schema.TypeString, + Computed: true, + }, + "time_updated": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func createRedisOciCacheConfigSet(d *schema.ResourceData, m interface{}) error { + sync := &RedisOciCacheConfigSetResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OciCacheConfigSetClient() + sync.RedisClusterClient = m.(*client.OracleClients).RedisClusterClient() + return tfresource.CreateResource(d, sync) +} + +func readRedisOciCacheConfigSet(d *schema.ResourceData, m interface{}) error { + sync := &RedisOciCacheConfigSetResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OciCacheConfigSetClient() + sync.RedisClusterClient = m.(*client.OracleClients).RedisClusterClient() + return tfresource.ReadResource(sync) +} + +func updateRedisOciCacheConfigSet(d *schema.ResourceData, m interface{}) error { + sync := &RedisOciCacheConfigSetResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OciCacheConfigSetClient() + sync.RedisClusterClient = m.(*client.OracleClients).RedisClusterClient() + return tfresource.UpdateResource(d, sync) +} + +func deleteRedisOciCacheConfigSet(d *schema.ResourceData, m interface{}) error { + sync := &RedisOciCacheConfigSetResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OciCacheConfigSetClient() + sync.DisableNotFoundRetries = true + sync.RedisClusterClient = m.(*client.OracleClients).RedisClusterClient() + return tfresource.DeleteResource(d, sync) +} + +type RedisOciCacheConfigSetResourceCrud struct { + tfresource.BaseCrud + Client *oci_redis.OciCacheConfigSetClient + Res *oci_redis.OciCacheConfigSet + RedisClusterClient *oci_redis.RedisClusterClient + DisableNotFoundRetries bool +} + +func (s *RedisOciCacheConfigSetResourceCrud) ID() string { + return *s.Res.Id +} + +func (s *RedisOciCacheConfigSetResourceCrud) CreatedPending() []string { + return []string{ + string(oci_redis.OciCacheConfigSetLifecycleStateCreating), + } +} + +func (s *RedisOciCacheConfigSetResourceCrud) CreatedTarget() []string { + return []string{ + string(oci_redis.OciCacheConfigSetLifecycleStateActive), + } +} + +func (s *RedisOciCacheConfigSetResourceCrud) DeletedPending() []string { + return []string{ + string(oci_redis.OciCacheConfigSetLifecycleStateDeleting), + } +} + +func (s *RedisOciCacheConfigSetResourceCrud) DeletedTarget() []string { + return []string{ + string(oci_redis.OciCacheConfigSetLifecycleStateDeleted), + } +} + +func (s *RedisOciCacheConfigSetResourceCrud) Create() error { + request := oci_redis.CreateOciCacheConfigSetRequest{} + + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + request.CompartmentId = &tmp + } + + if configurationDetails, ok := s.D.GetOkExists("configuration_details"); ok { + if tmpList := configurationDetails.([]interface{}); len(tmpList) > 0 { + fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", "configuration_details", 0) + tmp, err := s.mapToConfigurationDetails(fieldKeyFormat) + if err != nil { + return err + } + request.ConfigurationDetails = &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 softwareVersion, ok := s.D.GetOkExists("software_version"); ok { + request.SoftwareVersion = oci_redis.OciCacheConfigSetSoftwareVersionEnum(softwareVersion.(string)) + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "redis") + + response, err := s.Client.CreateOciCacheConfigSet(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + workRequestResponse := oci_redis.GetWorkRequestResponse{} + workRequestResponse, err = s.RedisClusterClient.GetWorkRequest(context.Background(), + oci_redis.GetWorkRequestRequest{ + WorkRequestId: workId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "redis"), + }, + }) + if err == nil { + // The work request response contains an array of objects + for _, res := range workRequestResponse.Resources { + if res.EntityType != nil && strings.Contains(strings.ToLower(*res.EntityType), "ocicacheconfigset") && res.Identifier != nil { + s.D.SetId(*res.Identifier) + break + } + } + } + return s.getOciCacheConfigSetFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "redis"), oci_redis.ActionTypeCreated, s.D.Timeout(schema.TimeoutCreate)) +} + +func (s *RedisOciCacheConfigSetResourceCrud) getOciCacheConfigSetFromWorkRequest(workId *string, retryPolicy *oci_common.RetryPolicy, + actionTypeEnum oci_redis.ActionTypeEnum, timeout time.Duration) error { + + // Wait until it finishes + ociCacheConfigSetId, err := ociCacheConfigSetWaitForWorkRequest(workId, "ocicacheconfigset", + actionTypeEnum, timeout, s.DisableNotFoundRetries, s.RedisClusterClient) + + if err != nil { + // Try to cancel the work request + log.Printf("[DEBUG] creation failed, attempting to cancel the workrequest: %v for identifier: %v\n", workId, ociCacheConfigSetId) + _, cancelErr := s.RedisClusterClient.CancelWorkRequest(context.Background(), + oci_redis.CancelWorkRequestRequest{ + WorkRequestId: workId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + if cancelErr != nil { + log.Printf("[DEBUG] cleanup cancelWorkRequest failed with the error: %v\n", cancelErr) + } + return err + } + s.D.SetId(*ociCacheConfigSetId) + + return s.Get() +} + +func ociCacheConfigSetWorkRequestShouldRetryFunc(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, "redis", startTime) { + return true + } + + // Only stop if the time Finished is set + if workRequestResponse, ok := response.Response.(oci_redis.GetWorkRequestResponse); ok { + return workRequestResponse.TimeFinished == nil + } + return false + } +} + +func ociCacheConfigSetWaitForWorkRequest(wId *string, entityType string, action oci_redis.ActionTypeEnum, + timeout time.Duration, disableFoundRetries bool, client *oci_redis.RedisClusterClient) (*string, error) { + retryPolicy := tfresource.GetRetryPolicy(disableFoundRetries, "redis") + retryPolicy.ShouldRetryOperation = ociCacheConfigSetWorkRequestShouldRetryFunc(timeout) + + response := oci_redis.GetWorkRequestResponse{} + stateConf := &retry.StateChangeConf{ + Pending: []string{ + string(oci_redis.OperationStatusInProgress), + string(oci_redis.OperationStatusAccepted), + string(oci_redis.OperationStatusCanceling), + }, + Target: []string{ + string(oci_redis.OperationStatusSucceeded), + string(oci_redis.OperationStatusFailed), + string(oci_redis.OperationStatusCanceled), + }, + Refresh: func() (interface{}, string, error) { + var err error + response, err = client.GetWorkRequest(context.Background(), + oci_redis.GetWorkRequestRequest{ + WorkRequestId: wId, + RequestMetadata: oci_common.RequestMetadata{ + RetryPolicy: retryPolicy, + }, + }) + wr := &response.WorkRequest + return wr, string(wr.Status), err + }, + Timeout: timeout, + } + if _, e := stateConf.WaitForState(); e != nil { + return nil, e + } + + var identifier *string + // The work request response contains an array of objects that finished the operation + for _, res := range response.Resources { + if strings.Contains(strings.ToLower(*res.EntityType), entityType) { + if res.ActionType == action { + identifier = res.Identifier + break + } + } + } + + // The workrequest may have failed, check for errors if identifier is not found or work failed or got cancelled + if identifier == nil || response.Status == oci_redis.OperationStatusFailed || response.Status == oci_redis.OperationStatusCanceled { + return nil, getErrorFromRedisOciCacheConfigSetWorkRequest(client, wId, retryPolicy, entityType, action) + } + + return identifier, nil +} + +func getErrorFromRedisOciCacheConfigSetWorkRequest(client *oci_redis.RedisClusterClient, workId *string, retryPolicy *oci_common.RetryPolicy, entityType string, action oci_redis.ActionTypeEnum) error { + response, err := client.ListWorkRequestErrors(context.Background(), + oci_redis.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 *RedisOciCacheConfigSetResourceCrud) Get() error { + request := oci_redis.GetOciCacheConfigSetRequest{} + + tmp := s.D.Id() + request.OciCacheConfigSetId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "redis") + + response, err := s.Client.GetOciCacheConfigSet(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response.OciCacheConfigSet + return nil +} + +func (s *RedisOciCacheConfigSetResourceCrud) 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_redis.UpdateOciCacheConfigSetRequest{} + + 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{})) + } + + tmp := s.D.Id() + request.OciCacheConfigSetId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "redis") + + response, err := s.Client.UpdateOciCacheConfigSet(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + return s.getOciCacheConfigSetFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "redis"), oci_redis.ActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate)) +} + +func (s *RedisOciCacheConfigSetResourceCrud) Delete() error { + request := oci_redis.DeleteOciCacheConfigSetRequest{} + + tmp := s.D.Id() + request.OciCacheConfigSetId = &tmp + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "redis") + + response, err := s.Client.DeleteOciCacheConfigSet(context.Background(), request) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + // Wait until it finishes + _, delWorkRequestErr := ociCacheConfigSetWaitForWorkRequest(workId, "ocicacheconfigset", + oci_redis.ActionTypeDeleted, s.D.Timeout(schema.TimeoutDelete), s.DisableNotFoundRetries, s.RedisClusterClient) + return delWorkRequestErr +} + +func (s *RedisOciCacheConfigSetResourceCrud) SetData() error { + if s.Res.CompartmentId != nil { + s.D.Set("compartment_id", *s.Res.CompartmentId) + } + + if s.Res.ConfigurationDetails != nil { + s.D.Set("configuration_details", []interface{}{ConfigurationDetailsToMap(s.Res.ConfigurationDetails)}) + } else { + s.D.Set("configuration_details", nil) + } + + if s.Res.DefaultConfigSetId != nil { + s.D.Set("default_config_set_id", *s.Res.DefaultConfigSetId) + } + + 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("software_version", s.Res.SoftwareVersion) + + s.D.Set("state", s.Res.LifecycleState) + + if s.Res.SystemTags != nil { + s.D.Set("system_tags", tfresource.SystemTagsToMap(s.Res.SystemTags)) + } + + if s.Res.TimeCreated != nil { + s.D.Set("time_created", s.Res.TimeCreated.String()) + } + + if s.Res.TimeUpdated != nil { + s.D.Set("time_updated", s.Res.TimeUpdated.String()) + } + + return nil +} + +func (s *RedisOciCacheConfigSetResourceCrud) mapToConfigurationDetails(fieldKeyFormat string) (oci_redis.ConfigurationDetails, error) { + result := oci_redis.ConfigurationDetails{} + + if items, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "items")); ok { + interfaces := items.([]interface{}) + tmp := make([]oci_redis.ConfigurationInfo, len(interfaces)) + for i := range interfaces { + stateDataIndex := i + fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "items"), stateDataIndex) + converted, err := s.mapToConfigurationInfo(fieldKeyFormatNextLevel) + if err != nil { + return result, err + } + tmp[i] = converted + } + if len(tmp) != 0 || s.D.HasChange(fmt.Sprintf(fieldKeyFormat, "items")) { + result.Items = tmp + } + } + + return result, nil +} + +func ConfigurationDetailsToMap(obj *oci_redis.ConfigurationDetails) map[string]interface{} { + result := map[string]interface{}{} + + items := []interface{}{} + for _, item := range obj.Items { + items = append(items, ConfigurationInfoToMap(item)) + } + result["items"] = items + + return result +} + +func (s *RedisOciCacheConfigSetResourceCrud) mapToConfigurationInfo(fieldKeyFormat string) (oci_redis.ConfigurationInfo, error) { + result := oci_redis.ConfigurationInfo{} + + if configKey, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "config_key")); ok { + tmp := configKey.(string) + result.ConfigKey = &tmp + } + + if configValue, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "config_value")); ok { + tmp := configValue.(string) + result.ConfigValue = &tmp + } + + return result, nil +} + +func ConfigurationInfoToMap(obj oci_redis.ConfigurationInfo) map[string]interface{} { + result := map[string]interface{}{} + + if obj.ConfigKey != nil { + result["config_key"] = string(*obj.ConfigKey) + } + + if obj.ConfigValue != nil { + result["config_value"] = string(*obj.ConfigValue) + } + + return result +} + +func OciCacheConfigSetSummaryToMap(obj oci_redis.OciCacheConfigSetSummary) map[string]interface{} { + result := map[string]interface{}{} + + if obj.CompartmentId != nil { + result["compartment_id"] = string(*obj.CompartmentId) + } + + if obj.DefaultConfigSetId != nil { + result["default_config_set_id"] = string(*obj.DefaultConfigSetId) + } + + if obj.DefinedTags != nil { + result["defined_tags"] = tfresource.DefinedTagsToMap(obj.DefinedTags) + } + + if obj.DisplayName != nil { + result["display_name"] = string(*obj.DisplayName) + } + + result["freeform_tags"] = obj.FreeformTags + + if obj.Id != nil { + result["id"] = string(*obj.Id) + } + + result["software_version"] = string(obj.SoftwareVersion) + + result["state"] = string(obj.LifecycleState) + + if obj.SystemTags != nil { + result["system_tags"] = tfresource.SystemTagsToMap(obj.SystemTags) + } + + if obj.TimeCreated != nil { + result["time_created"] = obj.TimeCreated.String() + } + + if obj.TimeUpdated != nil { + result["time_updated"] = obj.TimeUpdated.String() + } + + return result +} + +func (s *RedisOciCacheConfigSetResourceCrud) updateCompartment(compartment interface{}) error { + changeCompartmentRequest := oci_redis.ChangeOciCacheConfigSetCompartmentRequest{} + + compartmentTmp := compartment.(string) + changeCompartmentRequest.CompartmentId = &compartmentTmp + + idTmp := s.D.Id() + changeCompartmentRequest.OciCacheConfigSetId = &idTmp + + changeCompartmentRequest.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "redis") + + response, err := s.Client.ChangeOciCacheConfigSetCompartment(context.Background(), changeCompartmentRequest) + if err != nil { + return err + } + + workId := response.OpcWorkRequestId + return s.getOciCacheConfigSetFromWorkRequest(workId, tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "redis"), oci_redis.ActionTypeUpdated, s.D.Timeout(schema.TimeoutUpdate)) +} diff --git a/internal/service/redis/redis_oci_cache_config_setlist_associated_oci_cache_cluster_resource.go b/internal/service/redis/redis_oci_cache_config_setlist_associated_oci_cache_cluster_resource.go new file mode 100644 index 00000000000..d3c9b7babbd --- /dev/null +++ b/internal/service/redis/redis_oci_cache_config_setlist_associated_oci_cache_cluster_resource.go @@ -0,0 +1,119 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package redis + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + oci_redis "github.com/oracle/oci-go-sdk/v65/redis" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func RedisOciCacheConfigSetlistAssociatedOciCacheClusterResource() *schema.Resource { + return &schema.Resource{ + Timeouts: tfresource.DefaultTimeout, + Create: createRedisOciCacheConfigSetlistAssociatedOciCacheCluster, + Read: readRedisOciCacheConfigSetlistAssociatedOciCacheCluster, + Delete: deleteRedisOciCacheConfigSetlistAssociatedOciCacheCluster, + Schema: map[string]*schema.Schema{ + // Required + "oci_cache_config_set_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + + // Optional + + // Computed + "items": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "id": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + }, + } +} + +func createRedisOciCacheConfigSetlistAssociatedOciCacheCluster(d *schema.ResourceData, m interface{}) error { + sync := &RedisOciCacheConfigSetlistAssociatedOciCacheClusterResourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OciCacheConfigSetClient() + + return tfresource.CreateResource(d, sync) +} + +func readRedisOciCacheConfigSetlistAssociatedOciCacheCluster(d *schema.ResourceData, m interface{}) error { + return nil +} + +func deleteRedisOciCacheConfigSetlistAssociatedOciCacheCluster(d *schema.ResourceData, m interface{}) error { + return nil +} + +type RedisOciCacheConfigSetlistAssociatedOciCacheClusterResourceCrud struct { + tfresource.BaseCrud + Client *oci_redis.OciCacheConfigSetClient + Res *oci_redis.AssociatedOciCacheClusterCollection + DisableNotFoundRetries bool +} + +func (s *RedisOciCacheConfigSetlistAssociatedOciCacheClusterResourceCrud) ID() string { + return tfresource.GenerateDataSourceHashID("RedisOciCacheConfigSetlistAssociatedOciCacheClusterResource-", RedisOciCacheConfigSetlistAssociatedOciCacheClusterResource(), s.D) +} + +func (s *RedisOciCacheConfigSetlistAssociatedOciCacheClusterResourceCrud) Create() error { + request := oci_redis.ListAssociatedOciCacheClustersRequest{} + + if ociCacheConfigSetId, ok := s.D.GetOkExists("oci_cache_config_set_id"); ok { + tmp := ociCacheConfigSetId.(string) + request.OciCacheConfigSetId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(s.DisableNotFoundRetries, "redis") + + response, err := s.Client.ListAssociatedOciCacheClusters(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response.AssociatedOciCacheClusterCollection + return nil +} + +func (s *RedisOciCacheConfigSetlistAssociatedOciCacheClusterResourceCrud) SetData() error { + items := []interface{}{} + for _, item := range s.Res.Items { + items = append(items, AssociatedOciCacheClusterSummaryToMap(item)) + } + s.D.Set("items", items) + + return nil +} + +func AssociatedOciCacheClusterSummaryToMap(obj oci_redis.AssociatedOciCacheClusterSummary) map[string]interface{} { + result := map[string]interface{}{} + + if obj.Id != nil { + result["id"] = string(*obj.Id) + } + + return result +} diff --git a/internal/service/redis/redis_oci_cache_config_sets_data_source.go b/internal/service/redis/redis_oci_cache_config_sets_data_source.go new file mode 100644 index 00000000000..a73d74dfb56 --- /dev/null +++ b/internal/service/redis/redis_oci_cache_config_sets_data_source.go @@ -0,0 +1,152 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package redis + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_redis "github.com/oracle/oci-go-sdk/v65/redis" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func RedisOciCacheConfigSetsDataSource() *schema.Resource { + return &schema.Resource{ + Read: readRedisOciCacheConfigSets, + Schema: map[string]*schema.Schema{ + "filter": tfresource.DataSourceFiltersSchema(), + "compartment_id": { + Type: schema.TypeString, + Optional: true, + }, + "display_name": { + Type: schema.TypeString, + Optional: true, + }, + "id": { + Type: schema.TypeString, + Optional: true, + }, + "software_version": { + Type: schema.TypeString, + Optional: true, + }, + "state": { + Type: schema.TypeString, + Optional: true, + }, + "oci_cache_config_set_collection": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + + "items": { + Type: schema.TypeList, + Computed: true, + Elem: tfresource.GetDataSourceItemSchema(RedisOciCacheConfigSetResource()), + }, + }, + }, + }, + }, + } +} + +func readRedisOciCacheConfigSets(d *schema.ResourceData, m interface{}) error { + sync := &RedisOciCacheConfigSetsDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OciCacheConfigSetClient() + + return tfresource.ReadResource(sync) +} + +type RedisOciCacheConfigSetsDataSourceCrud struct { + D *schema.ResourceData + Client *oci_redis.OciCacheConfigSetClient + Res *oci_redis.ListOciCacheConfigSetsResponse +} + +func (s *RedisOciCacheConfigSetsDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *RedisOciCacheConfigSetsDataSourceCrud) Get() error { + request := oci_redis.ListOciCacheConfigSetsRequest{} + + 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 id, ok := s.D.GetOkExists("id"); ok { + tmp := id.(string) + request.Id = &tmp + } + + if softwareVersion, ok := s.D.GetOkExists("software_version"); ok { + request.SoftwareVersion = oci_redis.OciCacheConfigSetSoftwareVersionEnum(softwareVersion.(string)) + } + + if state, ok := s.D.GetOkExists("state"); ok { + request.LifecycleState = oci_redis.OciCacheConfigSetLifecycleStateEnum(state.(string)) + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "redis") + + response, err := s.Client.ListOciCacheConfigSets(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + request.Page = s.Res.OpcNextPage + + for request.Page != nil { + listResponse, err := s.Client.ListOciCacheConfigSets(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 *RedisOciCacheConfigSetsDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(tfresource.GenerateDataSourceHashID("RedisOciCacheConfigSetsDataSource-", RedisOciCacheConfigSetsDataSource(), s.D)) + resources := []map[string]interface{}{} + ociCacheConfigSet := map[string]interface{}{} + + items := []interface{}{} + for _, item := range s.Res.Items { + items = append(items, OciCacheConfigSetSummaryToMap(item)) + } + ociCacheConfigSet["items"] = items + + if f, fOk := s.D.GetOkExists("filter"); fOk { + items = tfresource.ApplyFiltersInCollection(f.(*schema.Set), items, RedisOciCacheConfigSetsDataSource().Schema["oci_cache_config_set_collection"].Elem.(*schema.Resource).Schema) + ociCacheConfigSet["items"] = items + } + + resources = append(resources, ociCacheConfigSet) + if err := s.D.Set("oci_cache_config_set_collection", resources); err != nil { + return err + } + + return nil +} diff --git a/internal/service/redis/redis_oci_cache_default_config_set_data_source.go b/internal/service/redis/redis_oci_cache_default_config_set_data_source.go new file mode 100644 index 00000000000..1bca099456b --- /dev/null +++ b/internal/service/redis/redis_oci_cache_default_config_set_data_source.go @@ -0,0 +1,175 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package redis + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_redis "github.com/oracle/oci-go-sdk/v65/redis" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func RedisOciCacheDefaultConfigSetDataSource() *schema.Resource { + return &schema.Resource{ + Read: readSingularRedisOciCacheDefaultConfigSet, + Schema: map[string]*schema.Schema{ + "compartment_id": { + Type: schema.TypeString, + Required: true, + }, + "oci_cache_default_config_set_id": { + Type: schema.TypeString, + Required: true, + }, + // Computed + "default_configuration_details": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "items": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "allowed_values": { + Type: schema.TypeString, + Computed: true, + }, + "config_key": { + Type: schema.TypeString, + Computed: true, + }, + "data_type": { + Type: schema.TypeString, + Computed: true, + }, + "default_config_value": { + Type: schema.TypeString, + Computed: true, + }, + "description": { + Type: schema.TypeString, + Computed: true, + }, + "is_modifiable": { + Type: schema.TypeBool, + Computed: true, + }, + }, + }, + }, + }, + }, + }, + "description": { + Type: schema.TypeString, + Computed: true, + }, + "display_name": { + Type: schema.TypeString, + Computed: true, + }, + "software_version": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "time_created": { + Type: schema.TypeString, + Computed: true, + }, + }, + } +} + +func readSingularRedisOciCacheDefaultConfigSet(d *schema.ResourceData, m interface{}) error { + sync := &RedisOciCacheDefaultConfigSetDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OciCacheDefaultConfigSetClient() + + return tfresource.ReadResource(sync) +} + +type RedisOciCacheDefaultConfigSetDataSourceCrud struct { + D *schema.ResourceData + Client *oci_redis.OciCacheDefaultConfigSetClient + Res *oci_redis.GetOciCacheDefaultConfigSetResponse +} + +func (s *RedisOciCacheDefaultConfigSetDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *RedisOciCacheDefaultConfigSetDataSourceCrud) Get() error { + request := oci_redis.GetOciCacheDefaultConfigSetRequest{} + + if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok { + tmp := compartmentId.(string) + request.CompartmentId = &tmp + } + + if ociCacheDefaultConfigSetId, ok := s.D.GetOkExists("oci_cache_default_config_set_id"); ok { + tmp := ociCacheDefaultConfigSetId.(string) + request.OciCacheDefaultConfigSetId = &tmp + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "redis") + + response, err := s.Client.GetOciCacheDefaultConfigSet(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + return nil +} + +func (s *RedisOciCacheDefaultConfigSetDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(*s.Res.Id) + + if s.Res.DefaultConfigurationDetails != nil { + s.D.Set("default_configuration_details", []interface{}{DefaultConfigurationDetailsToMap(s.Res.DefaultConfigurationDetails)}) + } else { + s.D.Set("default_configuration_details", nil) + } + + 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("software_version", s.Res.SoftwareVersion) + + s.D.Set("state", s.Res.LifecycleState) + + if s.Res.TimeCreated != nil { + s.D.Set("time_created", s.Res.TimeCreated.String()) + } + + return nil +} diff --git a/internal/service/redis/redis_oci_cache_default_config_sets_data_source.go b/internal/service/redis/redis_oci_cache_default_config_sets_data_source.go new file mode 100644 index 00000000000..aa899e4e8ce --- /dev/null +++ b/internal/service/redis/redis_oci_cache_default_config_sets_data_source.go @@ -0,0 +1,297 @@ +// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. +// Licensed under the Mozilla Public License v2.0 + +package redis + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + oci_redis "github.com/oracle/oci-go-sdk/v65/redis" + + "github.com/oracle/terraform-provider-oci/internal/client" + "github.com/oracle/terraform-provider-oci/internal/tfresource" +) + +func RedisOciCacheDefaultConfigSetsDataSource() *schema.Resource { + return &schema.Resource{ + Read: readRedisOciCacheDefaultConfigSets, + Schema: map[string]*schema.Schema{ + "filter": tfresource.DataSourceFiltersSchema(), + "compartment_id": { + Type: schema.TypeString, + Required: true, + }, + "display_name": { + Type: schema.TypeString, + Optional: true, + }, + "id": { + Type: schema.TypeString, + Optional: true, + }, + "software_version": { + Type: schema.TypeString, + Optional: true, + }, + "state": { + Type: schema.TypeString, + Optional: true, + }, + "oci_cache_default_config_set_collection": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "items": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "default_configuration_details": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "items": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + // Required + + // Optional + + // Computed + "allowed_values": { + Type: schema.TypeString, + Computed: true, + }, + "config_key": { + Type: schema.TypeString, + Computed: true, + }, + "data_type": { + Type: schema.TypeString, + Computed: true, + }, + "default_config_value": { + Type: schema.TypeString, + Computed: true, + }, + "description": { + Type: schema.TypeString, + Computed: true, + }, + "is_modifiable": { + Type: schema.TypeBool, + Computed: true, + }, + }, + }, + }, + }, + }, + }, + "description": { + Type: schema.TypeString, + Computed: true, + }, + "display_name": { + Type: schema.TypeString, + Computed: true, + }, + "id": { + Type: schema.TypeString, + Computed: true, + }, + "software_version": { + Type: schema.TypeString, + Computed: true, + }, + "state": { + Type: schema.TypeString, + Computed: true, + }, + "time_created": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func readRedisOciCacheDefaultConfigSets(d *schema.ResourceData, m interface{}) error { + sync := &RedisOciCacheDefaultConfigSetsDataSourceCrud{} + sync.D = d + sync.Client = m.(*client.OracleClients).OciCacheDefaultConfigSetClient() + + return tfresource.ReadResource(sync) +} + +type RedisOciCacheDefaultConfigSetsDataSourceCrud struct { + D *schema.ResourceData + Client *oci_redis.OciCacheDefaultConfigSetClient + Res *oci_redis.ListOciCacheDefaultConfigSetsResponse +} + +func (s *RedisOciCacheDefaultConfigSetsDataSourceCrud) VoidState() { + s.D.SetId("") +} + +func (s *RedisOciCacheDefaultConfigSetsDataSourceCrud) Get() error { + request := oci_redis.ListOciCacheDefaultConfigSetsRequest{} + + 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 id, ok := s.D.GetOkExists("id"); ok { + tmp := id.(string) + request.Id = &tmp + } + + if softwareVersion, ok := s.D.GetOkExists("software_version"); ok { + request.SoftwareVersion = oci_redis.OciCacheConfigSetSoftwareVersionEnum(softwareVersion.(string)) + } + + if state, ok := s.D.GetOkExists("state"); ok { + request.LifecycleState = oci_redis.OciCacheDefaultConfigSetLifecycleStateEnum(state.(string)) + } + + request.RequestMetadata.RetryPolicy = tfresource.GetRetryPolicy(false, "redis") + + response, err := s.Client.ListOciCacheDefaultConfigSets(context.Background(), request) + if err != nil { + return err + } + + s.Res = &response + request.Page = s.Res.OpcNextPage + + for request.Page != nil { + listResponse, err := s.Client.ListOciCacheDefaultConfigSets(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 *RedisOciCacheDefaultConfigSetsDataSourceCrud) SetData() error { + if s.Res == nil { + return nil + } + + s.D.SetId(tfresource.GenerateDataSourceHashID("RedisOciCacheDefaultConfigSetsDataSource-", RedisOciCacheDefaultConfigSetsDataSource(), s.D)) + resources := []map[string]interface{}{} + ociCacheDefaultConfigSet := map[string]interface{}{} + + items := []interface{}{} + for _, item := range s.Res.Items { + items = append(items, OciCacheDefaultConfigSetSummaryToMap(item)) + } + ociCacheDefaultConfigSet["items"] = items + + if f, fOk := s.D.GetOkExists("filter"); fOk { + items = tfresource.ApplyFiltersInCollection(f.(*schema.Set), items, RedisOciCacheDefaultConfigSetsDataSource().Schema["oci_cache_default_config_set_collection"].Elem.(*schema.Resource).Schema) + ociCacheDefaultConfigSet["items"] = items + } + + resources = append(resources, ociCacheDefaultConfigSet) + if err := s.D.Set("oci_cache_default_config_set_collection", resources); err != nil { + return err + } + + return nil +} + +func DefaultConfigurationDetailsToMap(obj *oci_redis.DefaultConfigurationDetails) map[string]interface{} { + result := map[string]interface{}{} + + items := []interface{}{} + for _, item := range obj.Items { + items = append(items, DefaultConfigurationInfoToMap(item)) + } + result["items"] = items + + return result +} + +func DefaultConfigurationInfoToMap(obj oci_redis.DefaultConfigurationInfo) map[string]interface{} { + result := map[string]interface{}{} + + if obj.AllowedValues != nil { + result["allowed_values"] = string(*obj.AllowedValues) + } + + if obj.ConfigKey != nil { + result["config_key"] = string(*obj.ConfigKey) + } + + if obj.DataType != nil { + result["data_type"] = string(*obj.DataType) + } + + if obj.DefaultConfigValue != nil { + result["default_config_value"] = string(*obj.DefaultConfigValue) + } + + if obj.Description != nil { + result["description"] = string(*obj.Description) + } + + if obj.IsModifiable != nil { + result["is_modifiable"] = bool(*obj.IsModifiable) + } + + return result +} + +func OciCacheDefaultConfigSetSummaryToMap(obj oci_redis.OciCacheDefaultConfigSetSummary) map[string]interface{} { + result := map[string]interface{}{} + + if obj.DisplayName != nil { + result["display_name"] = string(*obj.DisplayName) + } + + if obj.Id != nil { + result["id"] = string(*obj.Id) + } + + result["software_version"] = string(obj.SoftwareVersion) + + result["state"] = string(obj.LifecycleState) + + if obj.TimeCreated != nil { + result["time_created"] = obj.TimeCreated.String() + } + + return result +} diff --git a/internal/service/redis/redis_redis_cluster_data_source.go b/internal/service/redis/redis_redis_cluster_data_source.go index bf91096b263..aa97fed754f 100644 --- a/internal/service/redis/redis_redis_cluster_data_source.go +++ b/internal/service/redis/redis_redis_cluster_data_source.go @@ -102,6 +102,10 @@ func (s *RedisRedisClusterDataSourceCrud) SetData() error { s.D.Set("nsg_ids", s.Res.NsgIds) + if s.Res.OciCacheConfigSetId != nil { + s.D.Set("oci_cache_config_set_id", *s.Res.OciCacheConfigSetId) + } + if s.Res.PrimaryEndpointIpAddress != nil { s.D.Set("primary_endpoint_ip_address", *s.Res.PrimaryEndpointIpAddress) } diff --git a/internal/service/redis/redis_redis_cluster_resource.go b/internal/service/redis/redis_redis_cluster_resource.go index 1fe02ea55e2..1e193b03bf5 100644 --- a/internal/service/redis/redis_redis_cluster_resource.go +++ b/internal/service/redis/redis_redis_cluster_resource.go @@ -87,6 +87,11 @@ func RedisRedisClusterResource() *schema.Resource { Type: schema.TypeString, }, }, + "oci_cache_config_set_id": { + Type: schema.TypeString, + Optional: true, + Computed: true, + }, "shard_count": { Type: schema.TypeInt, Optional: true, @@ -297,6 +302,11 @@ func (s *RedisRedisClusterResourceCrud) Create() error { } } + if ociCacheConfigSetId, ok := s.D.GetOkExists("oci_cache_config_set_id"); ok { + tmp := ociCacheConfigSetId.(string) + request.OciCacheConfigSetId = &tmp + } + if shardCount, ok := s.D.GetOkExists("shard_count"); ok { tmp := shardCount.(int) request.ShardCount = &tmp @@ -548,6 +558,16 @@ func (s *RedisRedisClusterResourceCrud) Update() error { } } + if ociCacheConfigSetId, ok := s.D.GetOkExists("oci_cache_config_set_id"); ok && s.D.HasChange("oci_cache_config_set_id") { + tmp := ociCacheConfigSetId.(string) + request := oci_redis.UpdateRedisClusterRequest{} + request.OciCacheConfigSetId = &tmp + err := s.updateRedisCluster(request) + if err != nil { + return err + } + } + if nodeMemoryInGBs, ok := s.D.GetOkExists("node_memory_in_gbs"); ok && s.D.HasChange("node_memory_in_gbs") { request := oci_redis.UpdateRedisClusterRequest{} tmp, ok := nodeMemoryInGBs.(float32) @@ -654,6 +674,10 @@ func (s *RedisRedisClusterResourceCrud) SetData() error { } s.D.Set("nsg_ids", schema.NewSet(tfresource.LiteralTypeHashCodeForSets, nsgIds)) + if s.Res.OciCacheConfigSetId != nil { + s.D.Set("oci_cache_config_set_id", *s.Res.OciCacheConfigSetId) + } + if s.Res.PrimaryEndpointIpAddress != nil { s.D.Set("primary_endpoint_ip_address", *s.Res.PrimaryEndpointIpAddress) } @@ -772,6 +796,10 @@ func RedisClusterSummaryToMap(obj oci_redis.RedisClusterSummary, datasource bool result["nsg_ids"] = schema.NewSet(tfresource.LiteralTypeHashCodeForSets, nsgIds) } + if obj.OciCacheConfigSetId != nil { + result["oci_cache_config_set_id"] = string(*obj.OciCacheConfigSetId) + } + if obj.PrimaryEndpointIpAddress != nil { result["primary_endpoint_ip_address"] = string(*obj.PrimaryEndpointIpAddress) } diff --git a/internal/service/redis/register_datasource.go b/internal/service/redis/register_datasource.go index 1572d129958..92a4877613f 100644 --- a/internal/service/redis/register_datasource.go +++ b/internal/service/redis/register_datasource.go @@ -6,6 +6,10 @@ package redis import "github.com/oracle/terraform-provider-oci/internal/tfresource" func RegisterDatasource() { + tfresource.RegisterDatasource("oci_redis_oci_cache_config_set", RedisOciCacheConfigSetDataSource()) + tfresource.RegisterDatasource("oci_redis_oci_cache_config_sets", RedisOciCacheConfigSetsDataSource()) + tfresource.RegisterDatasource("oci_redis_oci_cache_default_config_set", RedisOciCacheDefaultConfigSetDataSource()) + tfresource.RegisterDatasource("oci_redis_oci_cache_default_config_sets", RedisOciCacheDefaultConfigSetsDataSource()) tfresource.RegisterDatasource("oci_redis_oci_cache_user", RedisOciCacheUserDataSource()) tfresource.RegisterDatasource("oci_redis_oci_cache_users", RedisOciCacheUsersDataSource()) tfresource.RegisterDatasource("oci_redis_redis_cluster", RedisRedisClusterDataSource()) diff --git a/internal/service/redis/register_resource.go b/internal/service/redis/register_resource.go index fd40c905611..8e67a57d1b4 100644 --- a/internal/service/redis/register_resource.go +++ b/internal/service/redis/register_resource.go @@ -6,6 +6,8 @@ package redis import "github.com/oracle/terraform-provider-oci/internal/tfresource" func RegisterResource() { + tfresource.RegisterResource("oci_redis_oci_cache_config_set", RedisOciCacheConfigSetResource()) + tfresource.RegisterResource("oci_redis_oci_cache_config_setlist_associated_oci_cache_cluster", RedisOciCacheConfigSetlistAssociatedOciCacheClusterResource()) tfresource.RegisterResource("oci_redis_oci_cache_user", RedisOciCacheUserResource()) tfresource.RegisterResource("oci_redis_oci_cache_user_get_redis_cluster", RedisOciCacheUserGetRedisClusterResource()) tfresource.RegisterResource("oci_redis_redis_cluster", RedisRedisClusterResource()) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/aivision_aiservicevision_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/aivision_aiservicevision_client.go index 01bce7f14e2..d0d7cdb6a48 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/aivision_aiservicevision_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/aivision_aiservicevision_client.go @@ -549,6 +549,258 @@ func (client AIServiceVisionClient) changeProjectCompartment(ctx context.Context return response, err } +// ChangeStreamGroupCompartment Move a streamGroup from one compartment to another. When provided, If-Match is checked against the ETag values of the resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ChangeStreamGroupCompartment.go.html to see an example of how to use ChangeStreamGroupCompartment API. +// A default retry strategy applies to this operation ChangeStreamGroupCompartment() +func (client AIServiceVisionClient) ChangeStreamGroupCompartment(ctx context.Context, request ChangeStreamGroupCompartmentRequest) (response ChangeStreamGroupCompartmentResponse, 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.changeStreamGroupCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeStreamGroupCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeStreamGroupCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeStreamGroupCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeStreamGroupCompartmentResponse") + } + return +} + +// changeStreamGroupCompartment implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) changeStreamGroupCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/streamGroups/{streamGroupId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeStreamGroupCompartmentResponse + 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/vision/20220125/StreamGroup/ChangeStreamGroupCompartment" + err = common.PostProcessServiceError(err, "AIServiceVision", "ChangeStreamGroupCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeStreamJobCompartment Move a streamJob from one compartment to another. When provided, If-Match is checked against the ETag values of the resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ChangeStreamJobCompartment.go.html to see an example of how to use ChangeStreamJobCompartment API. +// A default retry strategy applies to this operation ChangeStreamJobCompartment() +func (client AIServiceVisionClient) ChangeStreamJobCompartment(ctx context.Context, request ChangeStreamJobCompartmentRequest) (response ChangeStreamJobCompartmentResponse, 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.changeStreamJobCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeStreamJobCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeStreamJobCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeStreamJobCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeStreamJobCompartmentResponse") + } + return +} + +// changeStreamJobCompartment implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) changeStreamJobCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/streamJobs/{streamJobId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeStreamJobCompartmentResponse + 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/vision/20220125/StreamJob/ChangeStreamJobCompartment" + err = common.PostProcessServiceError(err, "AIServiceVision", "ChangeStreamJobCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeStreamSourceCompartment Move a streamSource from one compartment to another. When provided, If-Match is checked against the ETag values of the resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ChangeStreamSourceCompartment.go.html to see an example of how to use ChangeStreamSourceCompartment API. +// A default retry strategy applies to this operation ChangeStreamSourceCompartment() +func (client AIServiceVisionClient) ChangeStreamSourceCompartment(ctx context.Context, request ChangeStreamSourceCompartmentRequest) (response ChangeStreamSourceCompartmentResponse, 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.changeStreamSourceCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeStreamSourceCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeStreamSourceCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeStreamSourceCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeStreamSourceCompartmentResponse") + } + return +} + +// changeStreamSourceCompartment implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) changeStreamSourceCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/streamSources/{streamSourceId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeStreamSourceCompartmentResponse + 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/vision/20220125/StreamSource/ChangeStreamSourceCompartment" + err = common.PostProcessServiceError(err, "AIServiceVision", "ChangeStreamSourceCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeVisionPrivateEndpointCompartment Move a visionPrivateEndpoint from one compartment to another. When provided, If-Match is checked against the ETag values of the resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ChangeVisionPrivateEndpointCompartment.go.html to see an example of how to use ChangeVisionPrivateEndpointCompartment API. +// A default retry strategy applies to this operation ChangeVisionPrivateEndpointCompartment() +func (client AIServiceVisionClient) ChangeVisionPrivateEndpointCompartment(ctx context.Context, request ChangeVisionPrivateEndpointCompartmentRequest) (response ChangeVisionPrivateEndpointCompartmentResponse, 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.changeVisionPrivateEndpointCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeVisionPrivateEndpointCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeVisionPrivateEndpointCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeVisionPrivateEndpointCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeVisionPrivateEndpointCompartmentResponse") + } + return +} + +// changeVisionPrivateEndpointCompartment implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) changeVisionPrivateEndpointCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/visionPrivateEndpoints/{visionPrivateEndpointId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeVisionPrivateEndpointCompartmentResponse + 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/vision/20220125/VisionPrivateEndpoint/ChangeVisionPrivateEndpointCompartment" + err = common.PostProcessServiceError(err, "AIServiceVision", "ChangeVisionPrivateEndpointCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // CreateDocumentJob Create a document analysis batch job. // // # See also @@ -797,14 +1049,15 @@ func (client AIServiceVisionClient) createProject(ctx context.Context, request c return response, err } -// CreateVideoJob Create a video analysis job with given inputs and features. +// CreateStreamGroup Registration of new streamGroup // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CreateVideoJob.go.html to see an example of how to use CreateVideoJob API. -func (client AIServiceVisionClient) CreateVideoJob(ctx context.Context, request CreateVideoJobRequest) (response CreateVideoJobResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CreateStreamGroup.go.html to see an example of how to use CreateStreamGroup API. +// A default retry strategy applies to this operation CreateStreamGroup() +func (client AIServiceVisionClient) CreateStreamGroup(ctx context.Context, request CreateStreamGroupRequest) (response CreateStreamGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -816,42 +1069,42 @@ func (client AIServiceVisionClient) CreateVideoJob(ctx context.Context, request request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createVideoJob, policy) + ociResponse, err = common.Retry(ctx, request, client.createStreamGroup, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateVideoJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateStreamGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateVideoJobResponse{} + response = CreateStreamGroupResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateVideoJobResponse); ok { + if convertedResponse, ok := ociResponse.(CreateStreamGroupResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateVideoJobResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateStreamGroupResponse") } return } -// createVideoJob implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) createVideoJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createStreamGroup implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) createStreamGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/videoJobs", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/streamGroups", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateVideoJobResponse + var response CreateStreamGroupResponse 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/vision/20220125/VideoJob/CreateVideoJob" - err = common.PostProcessServiceError(err, "AIServiceVision", "CreateVideoJob", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamGroup/CreateStreamGroup" + err = common.PostProcessServiceError(err, "AIServiceVision", "CreateStreamGroup", apiReferenceLink) return response, err } @@ -859,56 +1112,62 @@ func (client AIServiceVisionClient) createVideoJob(ctx context.Context, request return response, err } -// DeleteModel Delete a model by identifier. +// CreateStreamJob Create a stream analysis job with given inputs and features. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/DeleteModel.go.html to see an example of how to use DeleteModel API. -func (client AIServiceVisionClient) DeleteModel(ctx context.Context, request DeleteModelRequest) (response DeleteModelResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CreateStreamJob.go.html to see an example of how to use CreateStreamJob API. +// A default retry strategy applies to this operation CreateStreamJob() +func (client AIServiceVisionClient) CreateStreamJob(ctx context.Context, request CreateStreamJobRequest) (response CreateStreamJobResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteModel, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createStreamJob, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateStreamJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteModelResponse{} + response = CreateStreamJobResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteModelResponse); ok { + if convertedResponse, ok := ociResponse.(CreateStreamJobResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteModelResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateStreamJobResponse") } return } -// deleteModel implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) deleteModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createStreamJob implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) createStreamJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/models/{modelId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/streamJobs", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteModelResponse + var response CreateStreamJobResponse 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/vision/20220125/Model/DeleteModel" - err = common.PostProcessServiceError(err, "AIServiceVision", "DeleteModel", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamJob/CreateStreamJob" + err = common.PostProcessServiceError(err, "AIServiceVision", "CreateStreamJob", apiReferenceLink) return response, err } @@ -916,56 +1175,62 @@ func (client AIServiceVisionClient) deleteModel(ctx context.Context, request com return response, err } -// DeleteProject Delete a project by identifier. +// CreateStreamSource Registration of new streamSource // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/DeleteProject.go.html to see an example of how to use DeleteProject API. -func (client AIServiceVisionClient) DeleteProject(ctx context.Context, request DeleteProjectRequest) (response DeleteProjectResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CreateStreamSource.go.html to see an example of how to use CreateStreamSource API. +// A default retry strategy applies to this operation CreateStreamSource() +func (client AIServiceVisionClient) CreateStreamSource(ctx context.Context, request CreateStreamSourceRequest) (response CreateStreamSourceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteProject, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createStreamSource, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteProjectResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateStreamSourceResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteProjectResponse{} + response = CreateStreamSourceResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteProjectResponse); ok { + if convertedResponse, ok := ociResponse.(CreateStreamSourceResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteProjectResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateStreamSourceResponse") } return } -// deleteProject implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) deleteProject(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createStreamSource implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) createStreamSource(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/projects/{projectId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/streamSources", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteProjectResponse + var response CreateStreamSourceResponse 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/vision/20220125/Project/DeleteProject" - err = common.PostProcessServiceError(err, "AIServiceVision", "DeleteProject", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamSource/CreateStreamSource" + err = common.PostProcessServiceError(err, "AIServiceVision", "CreateStreamSource", apiReferenceLink) return response, err } @@ -973,12 +1238,479 @@ func (client AIServiceVisionClient) deleteProject(ctx context.Context, request c return response, err } -// GetDocumentJob Get details of a document batch job. +// CreateVideoJob Create a video analysis job with given inputs and features. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetDocumentJob.go.html to see an example of how to use GetDocumentJob API. -func (client AIServiceVisionClient) GetDocumentJob(ctx context.Context, request GetDocumentJobRequest) (response GetDocumentJobResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CreateVideoJob.go.html to see an example of how to use CreateVideoJob API. +func (client AIServiceVisionClient) CreateVideoJob(ctx context.Context, request CreateVideoJobRequest) (response CreateVideoJobResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createVideoJob, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateVideoJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateVideoJobResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateVideoJobResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateVideoJobResponse") + } + return +} + +// createVideoJob implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) createVideoJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/videoJobs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateVideoJobResponse + 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/vision/20220125/VideoJob/CreateVideoJob" + err = common.PostProcessServiceError(err, "AIServiceVision", "CreateVideoJob", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateVisionPrivateEndpoint Create a new visionPrivateEndpoint. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CreateVisionPrivateEndpoint.go.html to see an example of how to use CreateVisionPrivateEndpoint API. +// A default retry strategy applies to this operation CreateVisionPrivateEndpoint() +func (client AIServiceVisionClient) CreateVisionPrivateEndpoint(ctx context.Context, request CreateVisionPrivateEndpointRequest) (response CreateVisionPrivateEndpointResponse, 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.createVisionPrivateEndpoint, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateVisionPrivateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateVisionPrivateEndpointResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateVisionPrivateEndpointResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateVisionPrivateEndpointResponse") + } + return +} + +// createVisionPrivateEndpoint implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) createVisionPrivateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/visionPrivateEndpoints", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateVisionPrivateEndpointResponse + 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, "AIServiceVision", "CreateVisionPrivateEndpoint", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteModel Delete a model by identifier. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/DeleteModel.go.html to see an example of how to use DeleteModel API. +func (client AIServiceVisionClient) DeleteModel(ctx context.Context, request DeleteModelRequest) (response DeleteModelResponse, 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.deleteModel, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteModelResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteModelResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteModelResponse") + } + return +} + +// deleteModel implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) deleteModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/models/{modelId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteModelResponse + 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/vision/20220125/Model/DeleteModel" + err = common.PostProcessServiceError(err, "AIServiceVision", "DeleteModel", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteProject Delete a project by identifier. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/DeleteProject.go.html to see an example of how to use DeleteProject API. +func (client AIServiceVisionClient) DeleteProject(ctx context.Context, request DeleteProjectRequest) (response DeleteProjectResponse, 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.deleteProject, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteProjectResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteProjectResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteProjectResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteProjectResponse") + } + return +} + +// deleteProject implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) deleteProject(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/projects/{projectId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteProjectResponse + 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/vision/20220125/Project/DeleteProject" + err = common.PostProcessServiceError(err, "AIServiceVision", "DeleteProject", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteStreamGroup Delete a streamGroup +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/DeleteStreamGroup.go.html to see an example of how to use DeleteStreamGroup API. +func (client AIServiceVisionClient) DeleteStreamGroup(ctx context.Context, request DeleteStreamGroupRequest) (response DeleteStreamGroupResponse, 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.deleteStreamGroup, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteStreamGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteStreamGroupResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteStreamGroupResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteStreamGroupResponse") + } + return +} + +// deleteStreamGroup implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) deleteStreamGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/streamGroups/{streamGroupId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteStreamGroupResponse + 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/vision/20220125/StreamGroup/DeleteStreamGroup" + err = common.PostProcessServiceError(err, "AIServiceVision", "DeleteStreamGroup", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteStreamJob Get details of a stream analysis job. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/DeleteStreamJob.go.html to see an example of how to use DeleteStreamJob API. +func (client AIServiceVisionClient) DeleteStreamJob(ctx context.Context, request DeleteStreamJobRequest) (response DeleteStreamJobResponse, 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.deleteStreamJob, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteStreamJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteStreamJobResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteStreamJobResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteStreamJobResponse") + } + return +} + +// deleteStreamJob implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) deleteStreamJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/streamJobs/{streamJobId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteStreamJobResponse + 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/vision/20220125/StreamJob/DeleteStreamJob" + err = common.PostProcessServiceError(err, "AIServiceVision", "DeleteStreamJob", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteStreamSource Delete a streamSource +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/DeleteStreamSource.go.html to see an example of how to use DeleteStreamSource API. +func (client AIServiceVisionClient) DeleteStreamSource(ctx context.Context, request DeleteStreamSourceRequest) (response DeleteStreamSourceResponse, 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.deleteStreamSource, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteStreamSourceResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteStreamSourceResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteStreamSourceResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteStreamSourceResponse") + } + return +} + +// deleteStreamSource implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) deleteStreamSource(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/streamSources/{streamSourceId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteStreamSourceResponse + 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/vision/20220125/StreamSource/DeleteStreamSource" + err = common.PostProcessServiceError(err, "AIServiceVision", "DeleteStreamSource", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteVisionPrivateEndpoint Delete a visionPrivateEndpoint by identifier. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/DeleteVisionPrivateEndpoint.go.html to see an example of how to use DeleteVisionPrivateEndpoint API. +func (client AIServiceVisionClient) DeleteVisionPrivateEndpoint(ctx context.Context, request DeleteVisionPrivateEndpointRequest) (response DeleteVisionPrivateEndpointResponse, 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.deleteVisionPrivateEndpoint, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteVisionPrivateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteVisionPrivateEndpointResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteVisionPrivateEndpointResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteVisionPrivateEndpointResponse") + } + return +} + +// deleteVisionPrivateEndpoint implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) deleteVisionPrivateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/visionPrivateEndpoints/{visionPrivateEndpointId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteVisionPrivateEndpointResponse + 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/vision/20220125/VisionPrivateEndpoint/DeleteVisionPrivateEndpoint" + err = common.PostProcessServiceError(err, "AIServiceVision", "DeleteVisionPrivateEndpoint", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetDocumentJob Get details of a document batch job. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetDocumentJob.go.html to see an example of how to use GetDocumentJob API. +func (client AIServiceVisionClient) GetDocumentJob(ctx context.Context, request GetDocumentJobRequest) (response GetDocumentJobResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -992,37 +1724,842 @@ func (client AIServiceVisionClient) GetDocumentJob(ctx context.Context, request if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetDocumentJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetDocumentJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetDocumentJobResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetDocumentJobResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetDocumentJobResponse") + } + return +} + +// getDocumentJob implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) getDocumentJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/documentJobs/{documentJobId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetDocumentJobResponse + 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/vision/20220125/DocumentJob/GetDocumentJob" + err = common.PostProcessServiceError(err, "AIServiceVision", "GetDocumentJob", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetImageJob Get details of an image batch job. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetImageJob.go.html to see an example of how to use GetImageJob API. +func (client AIServiceVisionClient) GetImageJob(ctx context.Context, request GetImageJobRequest) (response GetImageJobResponse, 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.getImageJob, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetImageJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetImageJobResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetImageJobResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetImageJobResponse") + } + return +} + +// getImageJob implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) getImageJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/imageJobs/{imageJobId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetImageJobResponse + 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/vision/20220125/ImageJob/GetImageJob" + err = common.PostProcessServiceError(err, "AIServiceVision", "GetImageJob", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetModel Get a model by identifier. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetModel.go.html to see an example of how to use GetModel API. +func (client AIServiceVisionClient) GetModel(ctx context.Context, request GetModelRequest) (response GetModelResponse, 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.getModel, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetModelResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetModelResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetModelResponse") + } + return +} + +// getModel implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) getModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/models/{modelId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetModelResponse + 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/vision/20220125/Model/GetModel" + err = common.PostProcessServiceError(err, "AIServiceVision", "GetModel", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetProject Get a project by identifier. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetProject.go.html to see an example of how to use GetProject API. +func (client AIServiceVisionClient) GetProject(ctx context.Context, request GetProjectRequest) (response GetProjectResponse, 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.getProject, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetProjectResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetProjectResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetProjectResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetProjectResponse") + } + return +} + +// getProject implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) getProject(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/projects/{projectId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetProjectResponse + 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/vision/20220125/Project/GetProject" + err = common.PostProcessServiceError(err, "AIServiceVision", "GetProject", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetStreamGroup Get a streamGroup +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetStreamGroup.go.html to see an example of how to use GetStreamGroup API. +// A default retry strategy applies to this operation GetStreamGroup() +func (client AIServiceVisionClient) GetStreamGroup(ctx context.Context, request GetStreamGroupRequest) (response GetStreamGroupResponse, 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.getStreamGroup, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetStreamGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetStreamGroupResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetStreamGroupResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetStreamGroupResponse") + } + return +} + +// getStreamGroup implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) getStreamGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/streamGroups/{streamGroupId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetStreamGroupResponse + 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/vision/20220125/StreamGroup/GetStreamGroup" + err = common.PostProcessServiceError(err, "AIServiceVision", "GetStreamGroup", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetStreamJob Get details of a stream analysis job. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetStreamJob.go.html to see an example of how to use GetStreamJob API. +// A default retry strategy applies to this operation GetStreamJob() +func (client AIServiceVisionClient) GetStreamJob(ctx context.Context, request GetStreamJobRequest) (response GetStreamJobResponse, 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.getStreamJob, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetStreamJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetStreamJobResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetStreamJobResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetStreamJobResponse") + } + return +} + +// getStreamJob implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) getStreamJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/streamJobs/{streamJobId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetStreamJobResponse + 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/vision/20220125/StreamJob/GetStreamJob" + err = common.PostProcessServiceError(err, "AIServiceVision", "GetStreamJob", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetStreamSource Get a streamSource +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetStreamSource.go.html to see an example of how to use GetStreamSource API. +// A default retry strategy applies to this operation GetStreamSource() +func (client AIServiceVisionClient) GetStreamSource(ctx context.Context, request GetStreamSourceRequest) (response GetStreamSourceResponse, 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.getStreamSource, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetStreamSourceResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetStreamSourceResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetStreamSourceResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetStreamSourceResponse") + } + return +} + +// getStreamSource implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) getStreamSource(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/streamSources/{streamSourceId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetStreamSourceResponse + 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/vision/20220125/StreamSource/GetStreamSource" + err = common.PostProcessServiceError(err, "AIServiceVision", "GetStreamSource", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetVideoJob Get details of a video analysis job. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetVideoJob.go.html to see an example of how to use GetVideoJob API. +func (client AIServiceVisionClient) GetVideoJob(ctx context.Context, request GetVideoJobRequest) (response GetVideoJobResponse, 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.getVideoJob, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetVideoJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetVideoJobResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetVideoJobResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetVideoJobResponse") + } + return +} + +// getVideoJob implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) getVideoJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/videoJobs/{videoJobId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetVideoJobResponse + 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/vision/20220125/VideoJob/GetVideoJob" + err = common.PostProcessServiceError(err, "AIServiceVision", "GetVideoJob", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetVisionPrivateEndpoint Get a visionPrivateEndpoint by identifier. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetVisionPrivateEndpoint.go.html to see an example of how to use GetVisionPrivateEndpoint API. +// A default retry strategy applies to this operation GetVisionPrivateEndpoint() +func (client AIServiceVisionClient) GetVisionPrivateEndpoint(ctx context.Context, request GetVisionPrivateEndpointRequest) (response GetVisionPrivateEndpointResponse, 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.getVisionPrivateEndpoint, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetVisionPrivateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetVisionPrivateEndpointResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetVisionPrivateEndpointResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetVisionPrivateEndpointResponse") + } + return +} + +// getVisionPrivateEndpoint implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) getVisionPrivateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/visionPrivateEndpoints/{visionPrivateEndpointId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetVisionPrivateEndpointResponse + 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/vision/20220125/VisionPrivateEndpoint/GetVisionPrivateEndpoint" + err = common.PostProcessServiceError(err, "AIServiceVision", "GetVisionPrivateEndpoint", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetWorkRequest Gets the status of the work request with the given ID. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. +func (client AIServiceVisionClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, 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.getWorkRequest, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetWorkRequestResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetWorkRequestResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetWorkRequestResponse") + } + return +} + +// getWorkRequest implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) getWorkRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetWorkRequestResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequest/GetWorkRequest" + err = common.PostProcessServiceError(err, "AIServiceVision", "GetWorkRequest", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListModels Returns a list of models in a compartment. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListModels.go.html to see an example of how to use ListModels API. +func (client AIServiceVisionClient) ListModels(ctx context.Context, request ListModelsRequest) (response ListModelsResponse, 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.listModels, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListModelsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetDocumentJobResponse{} + response = ListModelsResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetDocumentJobResponse); ok { + if convertedResponse, ok := ociResponse.(ListModelsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetDocumentJobResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListModelsResponse") } return } -// getDocumentJob implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) getDocumentJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listModels implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) listModels(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/documentJobs/{documentJobId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/models", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetDocumentJobResponse + var response ListModelsResponse + 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/vision/20220125/ModelCollection/ListModels" + err = common.PostProcessServiceError(err, "AIServiceVision", "ListModels", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListProjects Returns a list of projects. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListProjects.go.html to see an example of how to use ListProjects API. +func (client AIServiceVisionClient) ListProjects(ctx context.Context, request ListProjectsRequest) (response ListProjectsResponse, 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.listProjects, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListProjectsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListProjectsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListProjectsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListProjectsResponse") + } + return +} + +// listProjects implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) listProjects(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/projects", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListProjectsResponse + 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/vision/20220125/ProjectCollection/ListProjects" + err = common.PostProcessServiceError(err, "AIServiceVision", "ListProjects", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListStreamGroups Gets a list of the streamGroups in the specified compartment. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListStreamGroups.go.html to see an example of how to use ListStreamGroups API. +// A default retry strategy applies to this operation ListStreamGroups() +func (client AIServiceVisionClient) ListStreamGroups(ctx context.Context, request ListStreamGroupsRequest) (response ListStreamGroupsResponse, 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.listStreamGroups, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListStreamGroupsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListStreamGroupsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListStreamGroupsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListStreamGroupsResponse") + } + return +} + +// listStreamGroups implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) listStreamGroups(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/streamGroups", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListStreamGroupsResponse + 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/vision/20220125/StreamGroupCollection/ListStreamGroups" + err = common.PostProcessServiceError(err, "AIServiceVision", "ListStreamGroups", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListStreamJobs Get list of stream jobs +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListStreamJobs.go.html to see an example of how to use ListStreamJobs API. +// A default retry strategy applies to this operation ListStreamJobs() +func (client AIServiceVisionClient) ListStreamJobs(ctx context.Context, request ListStreamJobsRequest) (response ListStreamJobsResponse, 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.listStreamJobs, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListStreamJobsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListStreamJobsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListStreamJobsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListStreamJobsResponse") + } + return +} + +// listStreamJobs implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) listStreamJobs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/streamJobs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListStreamJobsResponse + 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/vision/20220125/StreamJobCollection/ListStreamJobs" + err = common.PostProcessServiceError(err, "AIServiceVision", "ListStreamJobs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListStreamSources Gets a list of the streamSources in the specified compartment. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListStreamSources.go.html to see an example of how to use ListStreamSources API. +// A default retry strategy applies to this operation ListStreamSources() +func (client AIServiceVisionClient) ListStreamSources(ctx context.Context, request ListStreamSourcesRequest) (response ListStreamSourcesResponse, 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.listStreamSources, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListStreamSourcesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListStreamSourcesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListStreamSourcesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListStreamSourcesResponse") + } + return +} + +// listStreamSources implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) listStreamSources(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/streamSources", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListStreamSourcesResponse 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/vision/20220125/DocumentJob/GetDocumentJob" - err = common.PostProcessServiceError(err, "AIServiceVision", "GetDocumentJob", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamSourceCollection/ListStreamSources" + err = common.PostProcessServiceError(err, "AIServiceVision", "ListStreamSources", apiReferenceLink) return response, err } @@ -1030,56 +2567,57 @@ func (client AIServiceVisionClient) getDocumentJob(ctx context.Context, request return response, err } -// GetImageJob Get details of an image batch job. +// ListVisionPrivateEndpoints Returns a list of visionPrivateEndpoints. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetImageJob.go.html to see an example of how to use GetImageJob API. -func (client AIServiceVisionClient) GetImageJob(ctx context.Context, request GetImageJobRequest) (response GetImageJobResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListVisionPrivateEndpoints.go.html to see an example of how to use ListVisionPrivateEndpoints API. +// A default retry strategy applies to this operation ListVisionPrivateEndpoints() +func (client AIServiceVisionClient) ListVisionPrivateEndpoints(ctx context.Context, request ListVisionPrivateEndpointsRequest) (response ListVisionPrivateEndpointsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getImageJob, policy) + ociResponse, err = common.Retry(ctx, request, client.listVisionPrivateEndpoints, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetImageJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListVisionPrivateEndpointsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetImageJobResponse{} + response = ListVisionPrivateEndpointsResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetImageJobResponse); ok { + if convertedResponse, ok := ociResponse.(ListVisionPrivateEndpointsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetImageJobResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListVisionPrivateEndpointsResponse") } return } -// getImageJob implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) getImageJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listVisionPrivateEndpoints implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) listVisionPrivateEndpoints(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/imageJobs/{imageJobId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/visionPrivateEndpoints", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetImageJobResponse + var response ListVisionPrivateEndpointsResponse 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/vision/20220125/ImageJob/GetImageJob" - err = common.PostProcessServiceError(err, "AIServiceVision", "GetImageJob", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VisionPrivateEndpointCollection/ListVisionPrivateEndpoints" + err = common.PostProcessServiceError(err, "AIServiceVision", "ListVisionPrivateEndpoints", apiReferenceLink) return response, err } @@ -1087,12 +2625,12 @@ func (client AIServiceVisionClient) getImageJob(ctx context.Context, request com return response, err } -// GetModel Get a model by identifier. +// ListWorkRequestErrors Returns a (paginated) list of errors for a given work request. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetModel.go.html to see an example of how to use GetModel API. -func (client AIServiceVisionClient) GetModel(ctx context.Context, request GetModelRequest) (response GetModelResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. +func (client AIServiceVisionClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -1101,42 +2639,42 @@ func (client AIServiceVisionClient) GetModel(ctx context.Context, request GetMod if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getModel, policy) + ociResponse, err = common.Retry(ctx, request, client.listWorkRequestErrors, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListWorkRequestErrorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetModelResponse{} + response = ListWorkRequestErrorsResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetModelResponse); ok { + if convertedResponse, ok := ociResponse.(ListWorkRequestErrorsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetModelResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestErrorsResponse") } return } -// getModel implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) getModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listWorkRequestErrors implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) listWorkRequestErrors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/models/{modelId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/errors", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetModelResponse + var response ListWorkRequestErrorsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Model/GetModel" - err = common.PostProcessServiceError(err, "AIServiceVision", "GetModel", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequestError/ListWorkRequestErrors" + err = common.PostProcessServiceError(err, "AIServiceVision", "ListWorkRequestErrors", apiReferenceLink) return response, err } @@ -1144,12 +2682,12 @@ func (client AIServiceVisionClient) getModel(ctx context.Context, request common return response, err } -// GetProject Get a project by identifier. +// ListWorkRequestLogs Return a (paginated) list of logs for a given work request. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetProject.go.html to see an example of how to use GetProject API. -func (client AIServiceVisionClient) GetProject(ctx context.Context, request GetProjectRequest) (response GetProjectResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. +func (client AIServiceVisionClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -1158,42 +2696,42 @@ func (client AIServiceVisionClient) GetProject(ctx context.Context, request GetP if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getProject, policy) + ociResponse, err = common.Retry(ctx, request, client.listWorkRequestLogs, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetProjectResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListWorkRequestLogsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetProjectResponse{} + response = ListWorkRequestLogsResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetProjectResponse); ok { + if convertedResponse, ok := ociResponse.(ListWorkRequestLogsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetProjectResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestLogsResponse") } return } -// getProject implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) getProject(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listWorkRequestLogs implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) listWorkRequestLogs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/projects/{projectId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/logs", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetProjectResponse + var response ListWorkRequestLogsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Project/GetProject" - err = common.PostProcessServiceError(err, "AIServiceVision", "GetProject", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequestLogEntry/ListWorkRequestLogs" + err = common.PostProcessServiceError(err, "AIServiceVision", "ListWorkRequestLogs", apiReferenceLink) return response, err } @@ -1201,12 +2739,12 @@ func (client AIServiceVisionClient) getProject(ctx context.Context, request comm return response, err } -// GetVideoJob Get details of a video analysis job. +// ListWorkRequests Lists the work requests in a compartment. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetVideoJob.go.html to see an example of how to use GetVideoJob API. -func (client AIServiceVisionClient) GetVideoJob(ctx context.Context, request GetVideoJobRequest) (response GetVideoJobResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. +func (client AIServiceVisionClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -1215,42 +2753,42 @@ func (client AIServiceVisionClient) GetVideoJob(ctx context.Context, request Get if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getVideoJob, policy) + ociResponse, err = common.Retry(ctx, request, client.listWorkRequests, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetVideoJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListWorkRequestsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetVideoJobResponse{} + response = ListWorkRequestsResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetVideoJobResponse); ok { + if convertedResponse, ok := ociResponse.(ListWorkRequestsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetVideoJobResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestsResponse") } return } -// getVideoJob implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) getVideoJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listWorkRequests implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) listWorkRequests(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/videoJobs/{videoJobId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetVideoJobResponse + var response ListWorkRequestsResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/GetVideoJob" - err = common.PostProcessServiceError(err, "AIServiceVision", "GetVideoJob", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/WorkRequest/ListWorkRequests" + err = common.PostProcessServiceError(err, "AIServiceVision", "ListWorkRequests", apiReferenceLink) return response, err } @@ -1258,56 +2796,62 @@ func (client AIServiceVisionClient) getVideoJob(ctx context.Context, request com return response, err } -// GetWorkRequest Gets the status of the work request with the given ID. +// StartStreamJob End a stream analysis Run. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. -func (client AIServiceVisionClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/StartStreamJob.go.html to see an example of how to use StartStreamJob API. +// A default retry strategy applies to this operation StartStreamJob() +func (client AIServiceVisionClient) StartStreamJob(ctx context.Context, request StartStreamJobRequest) (response StartStreamJobResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getWorkRequest, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.startStreamJob, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = StartStreamJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetWorkRequestResponse{} + response = StartStreamJobResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetWorkRequestResponse); ok { + if convertedResponse, ok := ociResponse.(StartStreamJobResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetWorkRequestResponse") + err = fmt.Errorf("failed to convert OCIResponse into StartStreamJobResponse") } return } -// getWorkRequest implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) getWorkRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// startStreamJob implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) startStreamJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/streamJobs/{streamJobId}/actions/start", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetWorkRequestResponse + var response StartStreamJobResponse 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/vision/20220125/WorkRequest/GetWorkRequest" - err = common.PostProcessServiceError(err, "AIServiceVision", "GetWorkRequest", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamJob/StartStreamJob" + err = common.PostProcessServiceError(err, "AIServiceVision", "StartStreamJob", apiReferenceLink) return response, err } @@ -1315,56 +2859,62 @@ func (client AIServiceVisionClient) getWorkRequest(ctx context.Context, request return response, err } -// ListModels Returns a list of models in a compartment. +// StopStreamJob End a stream analysis Run. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListModels.go.html to see an example of how to use ListModels API. -func (client AIServiceVisionClient) ListModels(ctx context.Context, request ListModelsRequest) (response ListModelsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/StopStreamJob.go.html to see an example of how to use StopStreamJob API. +// A default retry strategy applies to this operation StopStreamJob() +func (client AIServiceVisionClient) StopStreamJob(ctx context.Context, request StopStreamJobRequest) (response StopStreamJobResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listModels, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.stopStreamJob, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListModelsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = StopStreamJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListModelsResponse{} + response = StopStreamJobResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListModelsResponse); ok { + if convertedResponse, ok := ociResponse.(StopStreamJobResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListModelsResponse") + err = fmt.Errorf("failed to convert OCIResponse into StopStreamJobResponse") } return } -// listModels implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) listModels(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// stopStreamJob implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) stopStreamJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/models", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/streamJobs/{streamJobId}/actions/stop", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListModelsResponse + var response StopStreamJobResponse 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/vision/20220125/ModelCollection/ListModels" - err = common.PostProcessServiceError(err, "AIServiceVision", "ListModels", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamJob/StopStreamJob" + err = common.PostProcessServiceError(err, "AIServiceVision", "StopStreamJob", apiReferenceLink) return response, err } @@ -1372,12 +2922,12 @@ func (client AIServiceVisionClient) listModels(ctx context.Context, request comm return response, err } -// ListProjects Returns a list of projects. +// UpdateModel Updates the model metadata. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListProjects.go.html to see an example of how to use ListProjects API. -func (client AIServiceVisionClient) ListProjects(ctx context.Context, request ListProjectsRequest) (response ListProjectsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/UpdateModel.go.html to see an example of how to use UpdateModel API. +func (client AIServiceVisionClient) UpdateModel(ctx context.Context, request UpdateModelRequest) (response UpdateModelResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -1386,42 +2936,42 @@ func (client AIServiceVisionClient) ListProjects(ctx context.Context, request Li if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listProjects, policy) + ociResponse, err = common.Retry(ctx, request, client.updateModel, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListProjectsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = UpdateModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListProjectsResponse{} + response = UpdateModelResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListProjectsResponse); ok { + if convertedResponse, ok := ociResponse.(UpdateModelResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListProjectsResponse") + err = fmt.Errorf("failed to convert OCIResponse into UpdateModelResponse") } return } -// listProjects implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) listProjects(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// updateModel implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) updateModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/projects", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPut, "/models/{modelId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListProjectsResponse + var response UpdateModelResponse 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/vision/20220125/ProjectCollection/ListProjects" - err = common.PostProcessServiceError(err, "AIServiceVision", "ListProjects", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Model/UpdateModel" + err = common.PostProcessServiceError(err, "AIServiceVision", "UpdateModel", apiReferenceLink) return response, err } @@ -1429,12 +2979,12 @@ func (client AIServiceVisionClient) listProjects(ctx context.Context, request co return response, err } -// ListWorkRequestErrors Returns a (paginated) list of errors for a given work request. +// UpdateProject Update the project metadata. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListWorkRequestErrors.go.html to see an example of how to use ListWorkRequestErrors API. -func (client AIServiceVisionClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/UpdateProject.go.html to see an example of how to use UpdateProject API. +func (client AIServiceVisionClient) UpdateProject(ctx context.Context, request UpdateProjectRequest) (response UpdateProjectResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -1443,42 +2993,42 @@ func (client AIServiceVisionClient) ListWorkRequestErrors(ctx context.Context, r if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listWorkRequestErrors, policy) + ociResponse, err = common.Retry(ctx, request, client.updateProject, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListWorkRequestErrorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = UpdateProjectResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListWorkRequestErrorsResponse{} + response = UpdateProjectResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListWorkRequestErrorsResponse); ok { + if convertedResponse, ok := ociResponse.(UpdateProjectResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestErrorsResponse") + err = fmt.Errorf("failed to convert OCIResponse into UpdateProjectResponse") } return } -// listWorkRequestErrors implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) listWorkRequestErrors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// updateProject implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) updateProject(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/errors", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPut, "/projects/{projectId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListWorkRequestErrorsResponse + var response UpdateProjectResponse 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/vision/20220125/WorkRequestError/ListWorkRequestErrors" - err = common.PostProcessServiceError(err, "AIServiceVision", "ListWorkRequestErrors", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/Project/UpdateProject" + err = common.PostProcessServiceError(err, "AIServiceVision", "UpdateProject", apiReferenceLink) return response, err } @@ -1486,12 +3036,12 @@ func (client AIServiceVisionClient) listWorkRequestErrors(ctx context.Context, r return response, err } -// ListWorkRequestLogs Return a (paginated) list of logs for a given work request. +// UpdateStreamGroup Update a streamGroup // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListWorkRequestLogs.go.html to see an example of how to use ListWorkRequestLogs API. -func (client AIServiceVisionClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/UpdateStreamGroup.go.html to see an example of how to use UpdateStreamGroup API. +func (client AIServiceVisionClient) UpdateStreamGroup(ctx context.Context, request UpdateStreamGroupRequest) (response UpdateStreamGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -1500,42 +3050,42 @@ func (client AIServiceVisionClient) ListWorkRequestLogs(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listWorkRequestLogs, policy) + ociResponse, err = common.Retry(ctx, request, client.updateStreamGroup, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListWorkRequestLogsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = UpdateStreamGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListWorkRequestLogsResponse{} + response = UpdateStreamGroupResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListWorkRequestLogsResponse); ok { + if convertedResponse, ok := ociResponse.(UpdateStreamGroupResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestLogsResponse") + err = fmt.Errorf("failed to convert OCIResponse into UpdateStreamGroupResponse") } return } -// listWorkRequestLogs implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) listWorkRequestLogs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// updateStreamGroup implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) updateStreamGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/logs", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPut, "/streamGroups/{streamGroupId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListWorkRequestLogsResponse + var response UpdateStreamGroupResponse 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/vision/20220125/WorkRequestLogEntry/ListWorkRequestLogs" - err = common.PostProcessServiceError(err, "AIServiceVision", "ListWorkRequestLogs", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamGroup/UpdateStreamGroup" + err = common.PostProcessServiceError(err, "AIServiceVision", "UpdateStreamGroup", apiReferenceLink) return response, err } @@ -1543,12 +3093,12 @@ func (client AIServiceVisionClient) listWorkRequestLogs(ctx context.Context, req return response, err } -// ListWorkRequests Lists the work requests in a compartment. +// UpdateStreamJob Create a stream analysis job with given inputs and features. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListWorkRequests.go.html to see an example of how to use ListWorkRequests API. -func (client AIServiceVisionClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/UpdateStreamJob.go.html to see an example of how to use UpdateStreamJob API. +func (client AIServiceVisionClient) UpdateStreamJob(ctx context.Context, request UpdateStreamJobRequest) (response UpdateStreamJobResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -1557,42 +3107,42 @@ func (client AIServiceVisionClient) ListWorkRequests(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listWorkRequests, policy) + ociResponse, err = common.Retry(ctx, request, client.updateStreamJob, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListWorkRequestsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = UpdateStreamJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListWorkRequestsResponse{} + response = UpdateStreamJobResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListWorkRequestsResponse); ok { + if convertedResponse, ok := ociResponse.(UpdateStreamJobResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestsResponse") + err = fmt.Errorf("failed to convert OCIResponse into UpdateStreamJobResponse") } return } -// listWorkRequests implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) listWorkRequests(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// updateStreamJob implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) updateStreamJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPut, "/streamJobs/{streamJobId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListWorkRequestsResponse + var response UpdateStreamJobResponse 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/vision/20220125/WorkRequest/ListWorkRequests" - err = common.PostProcessServiceError(err, "AIServiceVision", "ListWorkRequests", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamJob/UpdateStreamJob" + err = common.PostProcessServiceError(err, "AIServiceVision", "UpdateStreamJob", apiReferenceLink) return response, err } @@ -1600,12 +3150,12 @@ func (client AIServiceVisionClient) listWorkRequests(ctx context.Context, reques return response, err } -// UpdateModel Updates the model metadata. +// UpdateStreamSource Update a streamSource // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/UpdateModel.go.html to see an example of how to use UpdateModel API. -func (client AIServiceVisionClient) UpdateModel(ctx context.Context, request UpdateModelRequest) (response UpdateModelResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/UpdateStreamSource.go.html to see an example of how to use UpdateStreamSource API. +func (client AIServiceVisionClient) UpdateStreamSource(ctx context.Context, request UpdateStreamSourceRequest) (response UpdateStreamSourceResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -1614,42 +3164,42 @@ func (client AIServiceVisionClient) UpdateModel(ctx context.Context, request Upd if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.updateModel, policy) + ociResponse, err = common.Retry(ctx, request, client.updateStreamSource, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = UpdateStreamSourceResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = UpdateModelResponse{} + response = UpdateStreamSourceResponse{} } } return } - if convertedResponse, ok := ociResponse.(UpdateModelResponse); ok { + if convertedResponse, ok := ociResponse.(UpdateStreamSourceResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateModelResponse") + err = fmt.Errorf("failed to convert OCIResponse into UpdateStreamSourceResponse") } return } -// updateModel implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) updateModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// updateStreamSource implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) updateStreamSource(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPut, "/models/{modelId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPut, "/streamSources/{streamSourceId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response UpdateModelResponse + var response UpdateStreamSourceResponse 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/vision/20220125/Model/UpdateModel" - err = common.PostProcessServiceError(err, "AIServiceVision", "UpdateModel", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/StreamSource/UpdateStreamSource" + err = common.PostProcessServiceError(err, "AIServiceVision", "UpdateStreamSource", apiReferenceLink) return response, err } @@ -1657,12 +3207,12 @@ func (client AIServiceVisionClient) updateModel(ctx context.Context, request com return response, err } -// UpdateProject Update the project metadata. +// UpdateVisionPrivateEndpoint Update the visionPrivateEndpoint metadata. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/UpdateProject.go.html to see an example of how to use UpdateProject API. -func (client AIServiceVisionClient) UpdateProject(ctx context.Context, request UpdateProjectRequest) (response UpdateProjectResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/UpdateVisionPrivateEndpoint.go.html to see an example of how to use UpdateVisionPrivateEndpoint API. +func (client AIServiceVisionClient) UpdateVisionPrivateEndpoint(ctx context.Context, request UpdateVisionPrivateEndpointRequest) (response UpdateVisionPrivateEndpointResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() if client.RetryPolicy() != nil { @@ -1671,42 +3221,42 @@ func (client AIServiceVisionClient) UpdateProject(ctx context.Context, request U if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.updateProject, policy) + ociResponse, err = common.Retry(ctx, request, client.updateVisionPrivateEndpoint, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateProjectResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = UpdateVisionPrivateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = UpdateProjectResponse{} + response = UpdateVisionPrivateEndpointResponse{} } } return } - if convertedResponse, ok := ociResponse.(UpdateProjectResponse); ok { + if convertedResponse, ok := ociResponse.(UpdateVisionPrivateEndpointResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateProjectResponse") + err = fmt.Errorf("failed to convert OCIResponse into UpdateVisionPrivateEndpointResponse") } return } -// updateProject implements the OCIOperation interface (enables retrying operations) -func (client AIServiceVisionClient) updateProject(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// updateVisionPrivateEndpoint implements the OCIOperation interface (enables retrying operations) +func (client AIServiceVisionClient) updateVisionPrivateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPut, "/projects/{projectId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPut, "/visionPrivateEndpoints/{visionPrivateEndpointId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response UpdateProjectResponse + var response UpdateVisionPrivateEndpointResponse 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/vision/20220125/Project/UpdateProject" - err = common.PostProcessServiceError(err, "AIServiceVision", "UpdateProject", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VisionPrivateEndpoint/UpdateVisionPrivateEndpoint" + err = common.PostProcessServiceError(err, "AIServiceVision", "UpdateVisionPrivateEndpoint", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/analyze_video_stream_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/analyze_video_stream_result.go new file mode 100644 index 00000000000..d37c9bf9a80 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/analyze_video_stream_result.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AnalyzeVideoStreamResult Video stream analysis results. +type AnalyzeVideoStreamResult struct { + VideoStreamMetadata *VideoStreamMetadata `mandatory:"true" json:"videoStreamMetadata"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of streamJob. + StreamJobId *string `mandatory:"true" json:"streamJobId"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of StreamSource. + StreamSourceId *string `mandatory:"true" json:"streamSourceId"` + + // time stamp of frame in utc. + Timestamp *string `mandatory:"true" json:"timestamp"` + + OntologyClasses *OntologyClass `mandatory:"false" json:"ontologyClasses"` + + // Base 64 encoded frame + ImageData *string `mandatory:"false" json:"imageData"` + + // Tracked objects in a video stream. + VideoStreamObjects []VideoStreamObject `mandatory:"false" json:"videoStreamObjects"` + + // List of Object Tracking model versions. + ObjectTrackingModelVersions []ModelVersionDetails `mandatory:"false" json:"objectTrackingModelVersions"` + + // List of Object Detection model versions. + ObjectDetectionModelVersions []ModelVersionDetails `mandatory:"false" json:"objectDetectionModelVersions"` + + // Array of possible errors. + Errors []ProcessingError `mandatory:"false" json:"errors"` +} + +func (m AnalyzeVideoStreamResult) 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 AnalyzeVideoStreamResult) 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/aivision/change_stream_group_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_group_compartment_details.go new file mode 100644 index 00000000000..7146c7d6caf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_group_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeStreamGroupCompartmentDetails Which compartment the streamGroup should be moved to. +type ChangeStreamGroupCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // into which the streamGroup should be moved. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeStreamGroupCompartmentDetails) 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 ChangeStreamGroupCompartmentDetails) 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/aivision/change_stream_group_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_group_compartment_request_response.go new file mode 100644 index 00000000000..0136f6c8621 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_group_compartment_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeStreamGroupCompartmentRequest wrapper for the ChangeStreamGroupCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ChangeStreamGroupCompartment.go.html to see an example of how to use ChangeStreamGroupCompartmentRequest. +type ChangeStreamGroupCompartmentRequest struct { + + // StreamGroup Id. + StreamGroupId *string `mandatory:"true" contributesTo:"path" name:"streamGroupId"` + + // The details of the move. + ChangeStreamGroupCompartmentDetails `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 the 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"` + + // The client request ID for tracing. + 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 ChangeStreamGroupCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeStreamGroupCompartmentRequest) 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 ChangeStreamGroupCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeStreamGroupCompartmentRequest) 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 ChangeStreamGroupCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeStreamGroupCompartmentResponse wrapper for the ChangeStreamGroupCompartment operation +type ChangeStreamGroupCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 ChangeStreamGroupCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeStreamGroupCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_job_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_job_compartment_details.go new file mode 100644 index 00000000000..8203200f41b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_job_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeStreamJobCompartmentDetails Which compartment the streamJob should be moved to. +type ChangeStreamJobCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // into which the streamJob should be moved. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeStreamJobCompartmentDetails) 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 ChangeStreamJobCompartmentDetails) 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/aivision/change_stream_job_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_job_compartment_request_response.go new file mode 100644 index 00000000000..c3b62ef950a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_job_compartment_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeStreamJobCompartmentRequest wrapper for the ChangeStreamJobCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ChangeStreamJobCompartment.go.html to see an example of how to use ChangeStreamJobCompartmentRequest. +type ChangeStreamJobCompartmentRequest struct { + + // Stream job id. + StreamJobId *string `mandatory:"true" contributesTo:"path" name:"streamJobId"` + + // The details of the move. + ChangeStreamJobCompartmentDetails `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 the 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"` + + // The client request ID for tracing. + 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 ChangeStreamJobCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeStreamJobCompartmentRequest) 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 ChangeStreamJobCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeStreamJobCompartmentRequest) 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 ChangeStreamJobCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeStreamJobCompartmentResponse wrapper for the ChangeStreamJobCompartment operation +type ChangeStreamJobCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 ChangeStreamJobCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeStreamJobCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_source_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_source_compartment_details.go new file mode 100644 index 00000000000..13f0d07de46 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_source_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeStreamSourceCompartmentDetails Which compartment the streamSource should be moved to. +type ChangeStreamSourceCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // into which the streamSource should be moved. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeStreamSourceCompartmentDetails) 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 ChangeStreamSourceCompartmentDetails) 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/aivision/change_stream_source_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_source_compartment_request_response.go new file mode 100644 index 00000000000..41ced56f1be --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_stream_source_compartment_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeStreamSourceCompartmentRequest wrapper for the ChangeStreamSourceCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ChangeStreamSourceCompartment.go.html to see an example of how to use ChangeStreamSourceCompartmentRequest. +type ChangeStreamSourceCompartmentRequest struct { + + // StreamSource Id. + StreamSourceId *string `mandatory:"true" contributesTo:"path" name:"streamSourceId"` + + // The details of the move. + ChangeStreamSourceCompartmentDetails `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 the 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"` + + // The client request ID for tracing. + 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 ChangeStreamSourceCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeStreamSourceCompartmentRequest) 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 ChangeStreamSourceCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeStreamSourceCompartmentRequest) 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 ChangeStreamSourceCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeStreamSourceCompartmentResponse wrapper for the ChangeStreamSourceCompartment operation +type ChangeStreamSourceCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // 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"` + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response ChangeStreamSourceCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeStreamSourceCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_vision_private_endpoint_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_vision_private_endpoint_compartment_details.go new file mode 100644 index 00000000000..0a7a1daacb8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_vision_private_endpoint_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeVisionPrivateEndpointCompartmentDetails Which compartment the visionPrivateEndpoint should be moved to. +type ChangeVisionPrivateEndpointCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // into which the visionPrivateEndpoint should be moved. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeVisionPrivateEndpointCompartmentDetails) 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 ChangeVisionPrivateEndpointCompartmentDetails) 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/aivision/change_vision_private_endpoint_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_vision_private_endpoint_compartment_request_response.go new file mode 100644 index 00000000000..690945b222b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/change_vision_private_endpoint_compartment_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeVisionPrivateEndpointCompartmentRequest wrapper for the ChangeVisionPrivateEndpointCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ChangeVisionPrivateEndpointCompartment.go.html to see an example of how to use ChangeVisionPrivateEndpointCompartmentRequest. +type ChangeVisionPrivateEndpointCompartmentRequest struct { + + // Vision private endpoint Id. + VisionPrivateEndpointId *string `mandatory:"true" contributesTo:"path" name:"visionPrivateEndpointId"` + + // The deatils of the move. + ChangeVisionPrivateEndpointCompartmentDetails `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 the 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"` + + // The client request ID for tracing. + 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 ChangeVisionPrivateEndpointCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeVisionPrivateEndpointCompartmentRequest) 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 ChangeVisionPrivateEndpointCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeVisionPrivateEndpointCompartmentRequest) 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 ChangeVisionPrivateEndpointCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeVisionPrivateEndpointCompartmentResponse wrapper for the ChangeVisionPrivateEndpointCompartment operation +type ChangeVisionPrivateEndpointCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // 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 ChangeVisionPrivateEndpointCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeVisionPrivateEndpointCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_group_details.go new file mode 100644 index 00000000000..ea78368e153 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_group_details.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateStreamGroupDetails The information needed to create a stream group +type CreateStreamGroupDetails struct { + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of compartment + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A human-friendly name for the streamGroup. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Stream + IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // List of streamSource OCIDs associated with the stream group + StreamSourceIds []string `mandatory:"false" json:"streamSourceIds"` + + // List of streamSource OCIDs where the streamSource overlaps in field of view. + StreamOverlaps []StreamGroupOverlap `mandatory:"false" json:"streamOverlaps"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateStreamGroupDetails) 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 CreateStreamGroupDetails) 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/aivision/create_stream_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_group_request_response.go new file mode 100644 index 00000000000..b1aeec6d55a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_group_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateStreamGroupRequest wrapper for the CreateStreamGroup operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CreateStreamGroup.go.html to see an example of how to use CreateStreamGroupRequest. +type CreateStreamGroupRequest struct { + + // Details about the streamGroup + CreateStreamGroupDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without the 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"` + + // The client request ID for tracing. + 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 CreateStreamGroupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateStreamGroupRequest) 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 CreateStreamGroupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateStreamGroupRequest) 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 CreateStreamGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateStreamGroupResponse wrapper for the CreateStreamGroup operation +type CreateStreamGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The StreamGroup instance + StreamGroup `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 CreateStreamGroupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateStreamGroupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_job_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_job_details.go new file mode 100644 index 00000000000..e0682a89008 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_job_details.go @@ -0,0 +1,111 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateStreamJobDetails The information needed to create new Streamjob +type CreateStreamJobDetails struct { + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of streamSource. + StreamSourceId *string `mandatory:"true" json:"streamSourceId"` + + // a list of stream analysis features. + Features []VideoStreamFeature `mandatory:"true" json:"features"` + + StreamOutputLocation StreamOutputLocation `mandatory:"true" json:"streamOutputLocation"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Stream job display name. + DisplayName *string `mandatory:"false" json:"displayName"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateStreamJobDetails) 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 CreateStreamJobDetails) 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 *CreateStreamJobDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + StreamSourceId *string `json:"streamSourceId"` + Features []videostreamfeature `json:"features"` + StreamOutputLocation streamoutputlocation `json:"streamOutputLocation"` + CompartmentId *string `json:"compartmentId"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.StreamSourceId = model.StreamSourceId + + m.Features = make([]VideoStreamFeature, len(model.Features)) + for i, n := range model.Features { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Features[i] = nn.(VideoStreamFeature) + } else { + m.Features[i] = nil + } + } + nn, e = model.StreamOutputLocation.UnmarshalPolymorphicJSON(model.StreamOutputLocation.JsonData) + if e != nil { + return + } + if nn != nil { + m.StreamOutputLocation = nn.(StreamOutputLocation) + } else { + m.StreamOutputLocation = nil + } + + m.CompartmentId = model.CompartmentId + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_job_request_response.go new file mode 100644 index 00000000000..850c2d2e146 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_job_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateStreamJobRequest wrapper for the CreateStreamJob operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CreateStreamJob.go.html to see an example of how to use CreateStreamJobRequest. +type CreateStreamJobRequest struct { + + // Details about the stream analysis. + CreateStreamJobDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without the 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"` + + // The client request ID for tracing. + 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 CreateStreamJobRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateStreamJobRequest) 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 CreateStreamJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateStreamJobRequest) 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 CreateStreamJobRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateStreamJobResponse wrapper for the CreateStreamJob operation +type CreateStreamJobResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The StreamJob instance + StreamJob `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 CreateStreamJobResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateStreamJobResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_source_details.go new file mode 100644 index 00000000000..cccd0270ac1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_source_details.go @@ -0,0 +1,88 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateStreamSourceDetails The information needed to create stream source +type CreateStreamSourceDetails struct { + StreamSourceDetails StreamSourceDetails `mandatory:"true" json:"streamSourceDetails"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of compartment + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A human-friendly name for the streamSource. + DisplayName *string `mandatory:"false" json:"displayName"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateStreamSourceDetails) 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 CreateStreamSourceDetails) 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 *CreateStreamSourceDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + StreamSourceDetails streamsourcedetails `json:"streamSourceDetails"` + CompartmentId *string `json:"compartmentId"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + nn, e = model.StreamSourceDetails.UnmarshalPolymorphicJSON(model.StreamSourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.StreamSourceDetails = nn.(StreamSourceDetails) + } else { + m.StreamSourceDetails = nil + } + + m.CompartmentId = model.CompartmentId + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_source_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_source_request_response.go new file mode 100644 index 00000000000..0d1de061ba8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_stream_source_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateStreamSourceRequest wrapper for the CreateStreamSource operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CreateStreamSource.go.html to see an example of how to use CreateStreamSourceRequest. +type CreateStreamSourceRequest struct { + + // Details about the StreamSource + CreateStreamSourceDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without the 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"` + + // The client request ID for tracing. + 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 CreateStreamSourceRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateStreamSourceRequest) 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 CreateStreamSourceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateStreamSourceRequest) 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 CreateStreamSourceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateStreamSourceResponse wrapper for the CreateStreamSource operation +type CreateStreamSourceResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The StreamSource instance + StreamSource `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 CreateStreamSourceResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateStreamSourceResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_vision_private_endpoint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_vision_private_endpoint_details.go new file mode 100644 index 00000000000..0feb42e6b48 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_vision_private_endpoint_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateVisionPrivateEndpointDetails The information needed to create a new visionPrivateEndpoint. +type CreateVisionPrivateEndpointDetails struct { + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of subnet + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The compartment identifier. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A human-friendly name for the visionPrivateEndpoint, that can be changed. + DisplayName *string `mandatory:"false" json:"displayName"` + + // An optional description of the visionPrivateEndpoint. + Description *string `mandatory:"false" json:"description"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateVisionPrivateEndpointDetails) 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 CreateVisionPrivateEndpointDetails) 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/aivision/create_vision_private_endpoint_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_vision_private_endpoint_request_response.go new file mode 100644 index 00000000000..82ba1df92f5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/create_vision_private_endpoint_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateVisionPrivateEndpointRequest wrapper for the CreateVisionPrivateEndpoint operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CreateVisionPrivateEndpoint.go.html to see an example of how to use CreateVisionPrivateEndpointRequest. +type CreateVisionPrivateEndpointRequest struct { + + // The new VisionPrivateEndpoint's details. + CreateVisionPrivateEndpointDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without the 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"` + + // The client request ID for tracing. + 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 CreateVisionPrivateEndpointRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateVisionPrivateEndpointRequest) 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 CreateVisionPrivateEndpointRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateVisionPrivateEndpointRequest) 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 CreateVisionPrivateEndpointRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateVisionPrivateEndpointResponse wrapper for the CreateVisionPrivateEndpoint operation +type CreateVisionPrivateEndpointResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The VisionPrivateEndpoint instance + VisionPrivateEndpoint `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 CreateVisionPrivateEndpointResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateVisionPrivateEndpointResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/delete_stream_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/delete_stream_group_request_response.go new file mode 100644 index 00000000000..e859874b373 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/delete_stream_group_request_response.go @@ -0,0 +1,97 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteStreamGroupRequest wrapper for the DeleteStreamGroup operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/DeleteStreamGroup.go.html to see an example of how to use DeleteStreamGroupRequest. +type DeleteStreamGroupRequest struct { + + // StreamGroup Id. + StreamGroupId *string `mandatory:"true" contributesTo:"path" name:"streamGroupId"` + + // The client request ID for tracing. + 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 DeleteStreamGroupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteStreamGroupRequest) 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 DeleteStreamGroupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteStreamGroupRequest) 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 DeleteStreamGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteStreamGroupResponse wrapper for the DeleteStreamGroup operation +type DeleteStreamGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 DeleteStreamGroupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteStreamGroupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/delete_stream_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/delete_stream_job_request_response.go new file mode 100644 index 00000000000..9b95049b316 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/delete_stream_job_request_response.go @@ -0,0 +1,97 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteStreamJobRequest wrapper for the DeleteStreamJob operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/DeleteStreamJob.go.html to see an example of how to use DeleteStreamJobRequest. +type DeleteStreamJobRequest struct { + + // Stream job id. + StreamJobId *string `mandatory:"true" contributesTo:"path" name:"streamJobId"` + + // The client request ID for tracing. + 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 DeleteStreamJobRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteStreamJobRequest) 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 DeleteStreamJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteStreamJobRequest) 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 DeleteStreamJobRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteStreamJobResponse wrapper for the DeleteStreamJob operation +type DeleteStreamJobResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 DeleteStreamJobResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteStreamJobResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/delete_stream_source_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/delete_stream_source_request_response.go new file mode 100644 index 00000000000..a4de562b789 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/delete_stream_source_request_response.go @@ -0,0 +1,97 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteStreamSourceRequest wrapper for the DeleteStreamSource operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/DeleteStreamSource.go.html to see an example of how to use DeleteStreamSourceRequest. +type DeleteStreamSourceRequest struct { + + // StreamSource Id. + StreamSourceId *string `mandatory:"true" contributesTo:"path" name:"streamSourceId"` + + // The client request ID for tracing. + 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 DeleteStreamSourceRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteStreamSourceRequest) 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 DeleteStreamSourceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteStreamSourceRequest) 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 DeleteStreamSourceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteStreamSourceResponse wrapper for the DeleteStreamSource operation +type DeleteStreamSourceResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 DeleteStreamSourceResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteStreamSourceResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/delete_vision_private_endpoint_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/delete_vision_private_endpoint_request_response.go new file mode 100644 index 00000000000..4b1d8f909d1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/delete_vision_private_endpoint_request_response.go @@ -0,0 +1,97 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteVisionPrivateEndpointRequest wrapper for the DeleteVisionPrivateEndpoint operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/DeleteVisionPrivateEndpoint.go.html to see an example of how to use DeleteVisionPrivateEndpointRequest. +type DeleteVisionPrivateEndpointRequest struct { + + // Vision private endpoint Id. + VisionPrivateEndpointId *string `mandatory:"true" contributesTo:"path" name:"visionPrivateEndpointId"` + + // 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"` + + // 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 DeleteVisionPrivateEndpointRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteVisionPrivateEndpointRequest) 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 DeleteVisionPrivateEndpointRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteVisionPrivateEndpointRequest) 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 DeleteVisionPrivateEndpointRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteVisionPrivateEndpointResponse wrapper for the DeleteVisionPrivateEndpoint operation +type DeleteVisionPrivateEndpointResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 DeleteVisionPrivateEndpointResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteVisionPrivateEndpointResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/face.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/face.go index 4eff13eeb18..aec3d5b8336 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/face.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/face.go @@ -28,6 +28,9 @@ type Face struct { // A point of interest within a face. Landmarks []Landmark `mandatory:"false" json:"landmarks"` + + // The facial feature vectors of detected faces + Embeddings []float32 `mandatory:"false" json:"embeddings"` } func (m Face) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/face_embedding_feature.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/face_embedding_feature.go new file mode 100644 index 00000000000..85d631cc661 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/face_embedding_feature.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FaceEmbeddingFeature The face embedding parameters +type FaceEmbeddingFeature struct { + + // The maximum number of results to return. + MaxResults *int `mandatory:"false" json:"maxResults"` + + // Whether or not return face landmarks. + ShouldReturnLandmarks *bool `mandatory:"false" json:"shouldReturnLandmarks"` +} + +func (m FaceEmbeddingFeature) 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 FaceEmbeddingFeature) 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 FaceEmbeddingFeature) MarshalJSON() (buff []byte, e error) { + type MarshalTypeFaceEmbeddingFeature FaceEmbeddingFeature + s := struct { + DiscriminatorParam string `json:"featureType"` + MarshalTypeFaceEmbeddingFeature + }{ + "FACE_EMBEDDING", + (MarshalTypeFaceEmbeddingFeature)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/get_stream_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/get_stream_group_request_response.go new file mode 100644 index 00000000000..85483f2466c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/get_stream_group_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetStreamGroupRequest wrapper for the GetStreamGroup operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetStreamGroup.go.html to see an example of how to use GetStreamGroupRequest. +type GetStreamGroupRequest struct { + + // StreamGroup Id. + StreamGroupId *string `mandatory:"true" contributesTo:"path" name:"streamGroupId"` + + // The client request ID for tracing. + 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 GetStreamGroupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetStreamGroupRequest) 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 GetStreamGroupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetStreamGroupRequest) 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 GetStreamGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetStreamGroupResponse wrapper for the GetStreamGroup operation +type GetStreamGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The StreamGroup instance + StreamGroup `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // 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 GetStreamGroupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetStreamGroupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/get_stream_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/get_stream_job_request_response.go new file mode 100644 index 00000000000..e50b8c0504a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/get_stream_job_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetStreamJobRequest wrapper for the GetStreamJob operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetStreamJob.go.html to see an example of how to use GetStreamJobRequest. +type GetStreamJobRequest struct { + + // Stream job id. + StreamJobId *string `mandatory:"true" contributesTo:"path" name:"streamJobId"` + + // The client request ID for tracing. + 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 GetStreamJobRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetStreamJobRequest) 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 GetStreamJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetStreamJobRequest) 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 GetStreamJobRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetStreamJobResponse wrapper for the GetStreamJob operation +type GetStreamJobResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The StreamJob instance + StreamJob `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // 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 GetStreamJobResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetStreamJobResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/get_stream_source_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/get_stream_source_request_response.go new file mode 100644 index 00000000000..2d7ad96a6b5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/get_stream_source_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetStreamSourceRequest wrapper for the GetStreamSource operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetStreamSource.go.html to see an example of how to use GetStreamSourceRequest. +type GetStreamSourceRequest struct { + + // StreamSource Id. + StreamSourceId *string `mandatory:"true" contributesTo:"path" name:"streamSourceId"` + + // The client request ID for tracing. + 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 GetStreamSourceRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetStreamSourceRequest) 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 GetStreamSourceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetStreamSourceRequest) 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 GetStreamSourceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetStreamSourceResponse wrapper for the GetStreamSource operation +type GetStreamSourceResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The StreamSource instance + StreamSource `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // 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 GetStreamSourceResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetStreamSourceResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/get_vision_private_endpoint_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/get_vision_private_endpoint_request_response.go new file mode 100644 index 00000000000..7e480b13759 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/get_vision_private_endpoint_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetVisionPrivateEndpointRequest wrapper for the GetVisionPrivateEndpoint operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetVisionPrivateEndpoint.go.html to see an example of how to use GetVisionPrivateEndpointRequest. +type GetVisionPrivateEndpointRequest struct { + + // Vision private endpoint Id. + VisionPrivateEndpointId *string `mandatory:"true" contributesTo:"path" name:"visionPrivateEndpointId"` + + // The client request ID for tracing. + 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 GetVisionPrivateEndpointRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetVisionPrivateEndpointRequest) 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 GetVisionPrivateEndpointRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetVisionPrivateEndpointRequest) 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 GetVisionPrivateEndpointRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetVisionPrivateEndpointResponse wrapper for the GetVisionPrivateEndpoint operation +type GetVisionPrivateEndpointResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The VisionPrivateEndpoint instance + VisionPrivateEndpoint `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // 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 GetVisionPrivateEndpointResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetVisionPrivateEndpointResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/image_feature.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/image_feature.go index 8536cb0aa98..752746217b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/image_feature.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/image_feature.go @@ -58,6 +58,10 @@ func (m *imagefeature) UnmarshalPolymorphicJSON(data []byte) (interface{}, error mm := FaceDetectionFeature{} err = json.Unmarshal(data, &mm) return mm, err + case "FACE_EMBEDDING": + mm := FaceEmbeddingFeature{} + err = json.Unmarshal(data, &mm) + return mm, err case "OBJECT_DETECTION": mm := ImageObjectDetectionFeature{} err = json.Unmarshal(data, &mm) @@ -97,6 +101,7 @@ const ( ImageFeatureFeatureTypeObjectDetection ImageFeatureFeatureTypeEnum = "OBJECT_DETECTION" ImageFeatureFeatureTypeTextDetection ImageFeatureFeatureTypeEnum = "TEXT_DETECTION" ImageFeatureFeatureTypeFaceDetection ImageFeatureFeatureTypeEnum = "FACE_DETECTION" + ImageFeatureFeatureTypeFaceEmbedding ImageFeatureFeatureTypeEnum = "FACE_EMBEDDING" ) var mappingImageFeatureFeatureTypeEnum = map[string]ImageFeatureFeatureTypeEnum{ @@ -104,6 +109,7 @@ var mappingImageFeatureFeatureTypeEnum = map[string]ImageFeatureFeatureTypeEnum{ "OBJECT_DETECTION": ImageFeatureFeatureTypeObjectDetection, "TEXT_DETECTION": ImageFeatureFeatureTypeTextDetection, "FACE_DETECTION": ImageFeatureFeatureTypeFaceDetection, + "FACE_EMBEDDING": ImageFeatureFeatureTypeFaceEmbedding, } var mappingImageFeatureFeatureTypeEnumLowerCase = map[string]ImageFeatureFeatureTypeEnum{ @@ -111,6 +117,7 @@ var mappingImageFeatureFeatureTypeEnumLowerCase = map[string]ImageFeatureFeature "object_detection": ImageFeatureFeatureTypeObjectDetection, "text_detection": ImageFeatureFeatureTypeTextDetection, "face_detection": ImageFeatureFeatureTypeFaceDetection, + "face_embedding": ImageFeatureFeatureTypeFaceEmbedding, } // GetImageFeatureFeatureTypeEnumValues Enumerates the set of values for ImageFeatureFeatureTypeEnum @@ -129,6 +136,7 @@ func GetImageFeatureFeatureTypeEnumStringValues() []string { "OBJECT_DETECTION", "TEXT_DETECTION", "FACE_DETECTION", + "FACE_EMBEDDING", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/list_stream_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/list_stream_groups_request_response.go new file mode 100644 index 00000000000..e30f9e92d36 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/list_stream_groups_request_response.go @@ -0,0 +1,203 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListStreamGroupsRequest wrapper for the ListStreamGroups operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListStreamGroups.go.html to see an example of how to use ListStreamGroupsRequest. +type ListStreamGroupsRequest struct { + + // The ID of the compartment in which to list resources. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The filter to find the device with the given identifier. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // A filter to return only resources that match the entire display name given. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'ASC' or 'DESC'. + SortOrder ListStreamGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order may be provided. The default order for timeCreated is descending. The default order for displayName is ascending. + SortBy ListStreamGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The client request ID for tracing. + 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 ListStreamGroupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListStreamGroupsRequest) 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 ListStreamGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListStreamGroupsRequest) 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 ListStreamGroupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListStreamGroupsSortOrderEnum(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(GetListStreamGroupsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListStreamGroupsSortByEnum(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(GetListStreamGroupsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListStreamGroupsResponse wrapper for the ListStreamGroups operation +type ListStreamGroupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of StreamGroupCollection instances + StreamGroupCollection `presentIn:"body"` + + // A unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListStreamGroupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListStreamGroupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListStreamGroupsSortOrderEnum Enum with underlying type: string +type ListStreamGroupsSortOrderEnum string + +// Set of constants representing the allowable values for ListStreamGroupsSortOrderEnum +const ( + ListStreamGroupsSortOrderAsc ListStreamGroupsSortOrderEnum = "ASC" + ListStreamGroupsSortOrderDesc ListStreamGroupsSortOrderEnum = "DESC" +) + +var mappingListStreamGroupsSortOrderEnum = map[string]ListStreamGroupsSortOrderEnum{ + "ASC": ListStreamGroupsSortOrderAsc, + "DESC": ListStreamGroupsSortOrderDesc, +} + +var mappingListStreamGroupsSortOrderEnumLowerCase = map[string]ListStreamGroupsSortOrderEnum{ + "asc": ListStreamGroupsSortOrderAsc, + "desc": ListStreamGroupsSortOrderDesc, +} + +// GetListStreamGroupsSortOrderEnumValues Enumerates the set of values for ListStreamGroupsSortOrderEnum +func GetListStreamGroupsSortOrderEnumValues() []ListStreamGroupsSortOrderEnum { + values := make([]ListStreamGroupsSortOrderEnum, 0) + for _, v := range mappingListStreamGroupsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListStreamGroupsSortOrderEnumStringValues Enumerates the set of values in String for ListStreamGroupsSortOrderEnum +func GetListStreamGroupsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListStreamGroupsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListStreamGroupsSortOrderEnum(val string) (ListStreamGroupsSortOrderEnum, bool) { + enum, ok := mappingListStreamGroupsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListStreamGroupsSortByEnum Enum with underlying type: string +type ListStreamGroupsSortByEnum string + +// Set of constants representing the allowable values for ListStreamGroupsSortByEnum +const ( + ListStreamGroupsSortByTimecreated ListStreamGroupsSortByEnum = "timeCreated" + ListStreamGroupsSortByDisplayname ListStreamGroupsSortByEnum = "displayName" +) + +var mappingListStreamGroupsSortByEnum = map[string]ListStreamGroupsSortByEnum{ + "timeCreated": ListStreamGroupsSortByTimecreated, + "displayName": ListStreamGroupsSortByDisplayname, +} + +var mappingListStreamGroupsSortByEnumLowerCase = map[string]ListStreamGroupsSortByEnum{ + "timecreated": ListStreamGroupsSortByTimecreated, + "displayname": ListStreamGroupsSortByDisplayname, +} + +// GetListStreamGroupsSortByEnumValues Enumerates the set of values for ListStreamGroupsSortByEnum +func GetListStreamGroupsSortByEnumValues() []ListStreamGroupsSortByEnum { + values := make([]ListStreamGroupsSortByEnum, 0) + for _, v := range mappingListStreamGroupsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListStreamGroupsSortByEnumStringValues Enumerates the set of values in String for ListStreamGroupsSortByEnum +func GetListStreamGroupsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListStreamGroupsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListStreamGroupsSortByEnum(val string) (ListStreamGroupsSortByEnum, bool) { + enum, ok := mappingListStreamGroupsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/list_stream_jobs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/list_stream_jobs_request_response.go new file mode 100644 index 00000000000..d7a38c12bf3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/list_stream_jobs_request_response.go @@ -0,0 +1,209 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListStreamJobsRequest wrapper for the ListStreamJobs operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListStreamJobs.go.html to see an example of how to use ListStreamJobsRequest. +type ListStreamJobsRequest struct { + + // The ID of the compartment in which to list resources. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The filter to match projects with the given lifecycleState. + LifecycleState StreamJobLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The filter to find the streamjob with the given identifier. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // A filter to return only resources that match the entire display name given. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'ASC' or 'DESC'. + SortOrder ListStreamJobsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order may be provided. The default order for timeCreated is descending. The default order for displayName is ascending. + SortBy ListStreamJobsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The client request ID for tracing. + 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 ListStreamJobsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListStreamJobsRequest) 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 ListStreamJobsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListStreamJobsRequest) 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 ListStreamJobsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingStreamJobLifecycleStateEnum(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(GetStreamJobLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListStreamJobsSortOrderEnum(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(GetListStreamJobsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListStreamJobsSortByEnum(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(GetListStreamJobsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListStreamJobsResponse wrapper for the ListStreamJobs operation +type ListStreamJobsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of StreamJobCollection instances + StreamJobCollection `presentIn:"body"` + + // A unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListStreamJobsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListStreamJobsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListStreamJobsSortOrderEnum Enum with underlying type: string +type ListStreamJobsSortOrderEnum string + +// Set of constants representing the allowable values for ListStreamJobsSortOrderEnum +const ( + ListStreamJobsSortOrderAsc ListStreamJobsSortOrderEnum = "ASC" + ListStreamJobsSortOrderDesc ListStreamJobsSortOrderEnum = "DESC" +) + +var mappingListStreamJobsSortOrderEnum = map[string]ListStreamJobsSortOrderEnum{ + "ASC": ListStreamJobsSortOrderAsc, + "DESC": ListStreamJobsSortOrderDesc, +} + +var mappingListStreamJobsSortOrderEnumLowerCase = map[string]ListStreamJobsSortOrderEnum{ + "asc": ListStreamJobsSortOrderAsc, + "desc": ListStreamJobsSortOrderDesc, +} + +// GetListStreamJobsSortOrderEnumValues Enumerates the set of values for ListStreamJobsSortOrderEnum +func GetListStreamJobsSortOrderEnumValues() []ListStreamJobsSortOrderEnum { + values := make([]ListStreamJobsSortOrderEnum, 0) + for _, v := range mappingListStreamJobsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListStreamJobsSortOrderEnumStringValues Enumerates the set of values in String for ListStreamJobsSortOrderEnum +func GetListStreamJobsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListStreamJobsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListStreamJobsSortOrderEnum(val string) (ListStreamJobsSortOrderEnum, bool) { + enum, ok := mappingListStreamJobsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListStreamJobsSortByEnum Enum with underlying type: string +type ListStreamJobsSortByEnum string + +// Set of constants representing the allowable values for ListStreamJobsSortByEnum +const ( + ListStreamJobsSortByTimecreated ListStreamJobsSortByEnum = "timeCreated" + ListStreamJobsSortByDisplayname ListStreamJobsSortByEnum = "displayName" +) + +var mappingListStreamJobsSortByEnum = map[string]ListStreamJobsSortByEnum{ + "timeCreated": ListStreamJobsSortByTimecreated, + "displayName": ListStreamJobsSortByDisplayname, +} + +var mappingListStreamJobsSortByEnumLowerCase = map[string]ListStreamJobsSortByEnum{ + "timecreated": ListStreamJobsSortByTimecreated, + "displayname": ListStreamJobsSortByDisplayname, +} + +// GetListStreamJobsSortByEnumValues Enumerates the set of values for ListStreamJobsSortByEnum +func GetListStreamJobsSortByEnumValues() []ListStreamJobsSortByEnum { + values := make([]ListStreamJobsSortByEnum, 0) + for _, v := range mappingListStreamJobsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListStreamJobsSortByEnumStringValues Enumerates the set of values in String for ListStreamJobsSortByEnum +func GetListStreamJobsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListStreamJobsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListStreamJobsSortByEnum(val string) (ListStreamJobsSortByEnum, bool) { + enum, ok := mappingListStreamJobsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/list_stream_sources_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/list_stream_sources_request_response.go new file mode 100644 index 00000000000..221db96a2cd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/list_stream_sources_request_response.go @@ -0,0 +1,209 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListStreamSourcesRequest wrapper for the ListStreamSources operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListStreamSources.go.html to see an example of how to use ListStreamSourcesRequest. +type ListStreamSourcesRequest struct { + + // The ID of the compartment in which to list resources. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The filter to match projects with the given lifecycleState. + LifecycleState StreamSourceLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The filter to find the device with the given identifier. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // A filter to return only resources that match the entire display name given. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'ASC' or 'DESC'. + SortOrder ListStreamSourcesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order may be provided. The default order for timeCreated is descending. The default order for displayName is ascending. + SortBy ListStreamSourcesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The client request ID for tracing. + 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 ListStreamSourcesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListStreamSourcesRequest) 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 ListStreamSourcesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListStreamSourcesRequest) 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 ListStreamSourcesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingStreamSourceLifecycleStateEnum(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(GetStreamSourceLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListStreamSourcesSortOrderEnum(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(GetListStreamSourcesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListStreamSourcesSortByEnum(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(GetListStreamSourcesSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListStreamSourcesResponse wrapper for the ListStreamSources operation +type ListStreamSourcesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of StreamSourceCollection instances + StreamSourceCollection `presentIn:"body"` + + // A unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListStreamSourcesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListStreamSourcesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListStreamSourcesSortOrderEnum Enum with underlying type: string +type ListStreamSourcesSortOrderEnum string + +// Set of constants representing the allowable values for ListStreamSourcesSortOrderEnum +const ( + ListStreamSourcesSortOrderAsc ListStreamSourcesSortOrderEnum = "ASC" + ListStreamSourcesSortOrderDesc ListStreamSourcesSortOrderEnum = "DESC" +) + +var mappingListStreamSourcesSortOrderEnum = map[string]ListStreamSourcesSortOrderEnum{ + "ASC": ListStreamSourcesSortOrderAsc, + "DESC": ListStreamSourcesSortOrderDesc, +} + +var mappingListStreamSourcesSortOrderEnumLowerCase = map[string]ListStreamSourcesSortOrderEnum{ + "asc": ListStreamSourcesSortOrderAsc, + "desc": ListStreamSourcesSortOrderDesc, +} + +// GetListStreamSourcesSortOrderEnumValues Enumerates the set of values for ListStreamSourcesSortOrderEnum +func GetListStreamSourcesSortOrderEnumValues() []ListStreamSourcesSortOrderEnum { + values := make([]ListStreamSourcesSortOrderEnum, 0) + for _, v := range mappingListStreamSourcesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListStreamSourcesSortOrderEnumStringValues Enumerates the set of values in String for ListStreamSourcesSortOrderEnum +func GetListStreamSourcesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListStreamSourcesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListStreamSourcesSortOrderEnum(val string) (ListStreamSourcesSortOrderEnum, bool) { + enum, ok := mappingListStreamSourcesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListStreamSourcesSortByEnum Enum with underlying type: string +type ListStreamSourcesSortByEnum string + +// Set of constants representing the allowable values for ListStreamSourcesSortByEnum +const ( + ListStreamSourcesSortByTimecreated ListStreamSourcesSortByEnum = "timeCreated" + ListStreamSourcesSortByDisplayname ListStreamSourcesSortByEnum = "displayName" +) + +var mappingListStreamSourcesSortByEnum = map[string]ListStreamSourcesSortByEnum{ + "timeCreated": ListStreamSourcesSortByTimecreated, + "displayName": ListStreamSourcesSortByDisplayname, +} + +var mappingListStreamSourcesSortByEnumLowerCase = map[string]ListStreamSourcesSortByEnum{ + "timecreated": ListStreamSourcesSortByTimecreated, + "displayname": ListStreamSourcesSortByDisplayname, +} + +// GetListStreamSourcesSortByEnumValues Enumerates the set of values for ListStreamSourcesSortByEnum +func GetListStreamSourcesSortByEnumValues() []ListStreamSourcesSortByEnum { + values := make([]ListStreamSourcesSortByEnum, 0) + for _, v := range mappingListStreamSourcesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListStreamSourcesSortByEnumStringValues Enumerates the set of values in String for ListStreamSourcesSortByEnum +func GetListStreamSourcesSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListStreamSourcesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListStreamSourcesSortByEnum(val string) (ListStreamSourcesSortByEnum, bool) { + enum, ok := mappingListStreamSourcesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/list_vision_private_endpoints_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/list_vision_private_endpoints_request_response.go new file mode 100644 index 00000000000..8bc4134db31 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/list_vision_private_endpoints_request_response.go @@ -0,0 +1,209 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVisionPrivateEndpointsRequest wrapper for the ListVisionPrivateEndpoints operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/ListVisionPrivateEndpoints.go.html to see an example of how to use ListVisionPrivateEndpointsRequest. +type ListVisionPrivateEndpointsRequest struct { + + // The ID of the compartment in which to list resources. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The filter to match projects with the given lifecycleState. + LifecycleState VisionPrivateEndpointLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return only resources that match the entire display name given. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The filter to find the device with the given identifier. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'ASC' or 'DESC'. + SortOrder ListVisionPrivateEndpointsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order may be provided. The default order for timeCreated is descending. The default order for displayName is ascending. + SortBy ListVisionPrivateEndpointsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The client request ID for tracing. + 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 ListVisionPrivateEndpointsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVisionPrivateEndpointsRequest) 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 ListVisionPrivateEndpointsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVisionPrivateEndpointsRequest) 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 ListVisionPrivateEndpointsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVisionPrivateEndpointLifecycleStateEnum(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(GetVisionPrivateEndpointLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListVisionPrivateEndpointsSortOrderEnum(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(GetListVisionPrivateEndpointsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListVisionPrivateEndpointsSortByEnum(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(GetListVisionPrivateEndpointsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVisionPrivateEndpointsResponse wrapper for the ListVisionPrivateEndpoints operation +type ListVisionPrivateEndpointsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of VisionPrivateEndpointCollection instances + VisionPrivateEndpointCollection `presentIn:"body"` + + // A unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListVisionPrivateEndpointsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVisionPrivateEndpointsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVisionPrivateEndpointsSortOrderEnum Enum with underlying type: string +type ListVisionPrivateEndpointsSortOrderEnum string + +// Set of constants representing the allowable values for ListVisionPrivateEndpointsSortOrderEnum +const ( + ListVisionPrivateEndpointsSortOrderAsc ListVisionPrivateEndpointsSortOrderEnum = "ASC" + ListVisionPrivateEndpointsSortOrderDesc ListVisionPrivateEndpointsSortOrderEnum = "DESC" +) + +var mappingListVisionPrivateEndpointsSortOrderEnum = map[string]ListVisionPrivateEndpointsSortOrderEnum{ + "ASC": ListVisionPrivateEndpointsSortOrderAsc, + "DESC": ListVisionPrivateEndpointsSortOrderDesc, +} + +var mappingListVisionPrivateEndpointsSortOrderEnumLowerCase = map[string]ListVisionPrivateEndpointsSortOrderEnum{ + "asc": ListVisionPrivateEndpointsSortOrderAsc, + "desc": ListVisionPrivateEndpointsSortOrderDesc, +} + +// GetListVisionPrivateEndpointsSortOrderEnumValues Enumerates the set of values for ListVisionPrivateEndpointsSortOrderEnum +func GetListVisionPrivateEndpointsSortOrderEnumValues() []ListVisionPrivateEndpointsSortOrderEnum { + values := make([]ListVisionPrivateEndpointsSortOrderEnum, 0) + for _, v := range mappingListVisionPrivateEndpointsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVisionPrivateEndpointsSortOrderEnumStringValues Enumerates the set of values in String for ListVisionPrivateEndpointsSortOrderEnum +func GetListVisionPrivateEndpointsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVisionPrivateEndpointsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVisionPrivateEndpointsSortOrderEnum(val string) (ListVisionPrivateEndpointsSortOrderEnum, bool) { + enum, ok := mappingListVisionPrivateEndpointsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVisionPrivateEndpointsSortByEnum Enum with underlying type: string +type ListVisionPrivateEndpointsSortByEnum string + +// Set of constants representing the allowable values for ListVisionPrivateEndpointsSortByEnum +const ( + ListVisionPrivateEndpointsSortByTimecreated ListVisionPrivateEndpointsSortByEnum = "timeCreated" + ListVisionPrivateEndpointsSortByDisplayname ListVisionPrivateEndpointsSortByEnum = "displayName" +) + +var mappingListVisionPrivateEndpointsSortByEnum = map[string]ListVisionPrivateEndpointsSortByEnum{ + "timeCreated": ListVisionPrivateEndpointsSortByTimecreated, + "displayName": ListVisionPrivateEndpointsSortByDisplayname, +} + +var mappingListVisionPrivateEndpointsSortByEnumLowerCase = map[string]ListVisionPrivateEndpointsSortByEnum{ + "timecreated": ListVisionPrivateEndpointsSortByTimecreated, + "displayname": ListVisionPrivateEndpointsSortByDisplayname, +} + +// GetListVisionPrivateEndpointsSortByEnumValues Enumerates the set of values for ListVisionPrivateEndpointsSortByEnum +func GetListVisionPrivateEndpointsSortByEnumValues() []ListVisionPrivateEndpointsSortByEnum { + values := make([]ListVisionPrivateEndpointsSortByEnum, 0) + for _, v := range mappingListVisionPrivateEndpointsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVisionPrivateEndpointsSortByEnumStringValues Enumerates the set of values in String for ListVisionPrivateEndpointsSortByEnum +func GetListVisionPrivateEndpointsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListVisionPrivateEndpointsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVisionPrivateEndpointsSortByEnum(val string) (ListVisionPrivateEndpointsSortByEnum, bool) { + enum, ok := mappingListVisionPrivateEndpointsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/model_version_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/model_version_details.go new file mode 100644 index 00000000000..350ef291966 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/model_version_details.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ModelVersionDetails Model version for object detection/tracking. +type ModelVersionDetails struct { + + // List of the object category labels. + Objects []string `mandatory:"true" json:"objects"` + + // Model version or ocid + ModelVersion *string `mandatory:"true" json:"modelVersion"` +} + +func (m ModelVersionDetails) 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 ModelVersionDetails) 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/aivision/object_properties.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/object_properties.go new file mode 100644 index 00000000000..4eb6e35a215 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/object_properties.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ObjectProperties Properties associated with the object. +type ObjectProperties struct { + + // The quality score of the face detected, between 0 and 1. + QualityScore *float32 `mandatory:"false" json:"qualityScore"` + + // Face landmarks. + Landmarks []Landmark `mandatory:"false" json:"landmarks"` + + // The facial feature vectors of detected faces. + Embeddings []float32 `mandatory:"false" json:"embeddings"` +} + +func (m ObjectProperties) 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 ObjectProperties) 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/aivision/object_storage_output_location.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/object_storage_output_location.go new file mode 100644 index 00000000000..19262854e11 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/object_storage_output_location.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ObjectStorageOutputLocation The Object Storage Location. +type ObjectStorageOutputLocation struct { + + // The Object Storage namespace. + NamespaceName *string `mandatory:"true" json:"namespaceName"` + + // The Object Storage bucket name. + BucketName *string `mandatory:"true" json:"bucketName"` + + // The Object Storage folder name. + Prefix *string `mandatory:"true" json:"prefix"` +} + +func (m ObjectStorageOutputLocation) 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 ObjectStorageOutputLocation) 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 ObjectStorageOutputLocation) MarshalJSON() (buff []byte, e error) { + type MarshalTypeObjectStorageOutputLocation ObjectStorageOutputLocation + s := struct { + DiscriminatorParam string `json:"outputLocationType"` + MarshalTypeObjectStorageOutputLocation + }{ + "OBJECT_STORAGE", + (MarshalTypeObjectStorageOutputLocation)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/operation_type.go index 3b2f81e4e50..4c0bcc0173d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/operation_type.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/operation_type.go @@ -18,36 +18,87 @@ type OperationTypeEnum string // Set of constants representing the allowable values for OperationTypeEnum const ( - OperationTypeCreateProject OperationTypeEnum = "CREATE_PROJECT" - OperationTypeUpdateProject OperationTypeEnum = "UPDATE_PROJECT" - OperationTypeDeleteProject OperationTypeEnum = "DELETE_PROJECT" - OperationTypeMoveProject OperationTypeEnum = "MOVE_PROJECT" - OperationTypeCreateModel OperationTypeEnum = "CREATE_MODEL" - OperationTypeUpdateModel OperationTypeEnum = "UPDATE_MODEL" - OperationTypeDeleteModel OperationTypeEnum = "DELETE_MODEL" - OperationTypeMoveModel OperationTypeEnum = "MOVE_MODEL" + OperationTypeCreateProject OperationTypeEnum = "CREATE_PROJECT" + OperationTypeUpdateProject OperationTypeEnum = "UPDATE_PROJECT" + OperationTypeDeleteProject OperationTypeEnum = "DELETE_PROJECT" + OperationTypeMoveProject OperationTypeEnum = "MOVE_PROJECT" + OperationTypeCreateModel OperationTypeEnum = "CREATE_MODEL" + OperationTypeUpdateModel OperationTypeEnum = "UPDATE_MODEL" + OperationTypeDeleteModel OperationTypeEnum = "DELETE_MODEL" + OperationTypeMoveModel OperationTypeEnum = "MOVE_MODEL" + OperationTypeAddStreamSource OperationTypeEnum = "ADD_STREAM_SOURCE" + OperationTypeUpdateStreamSource OperationTypeEnum = "UPDATE_STREAM_SOURCE" + OperationTypeDeleteStreamSource OperationTypeEnum = "DELETE_STREAM_SOURCE" + OperationTypeMoveStreamSource OperationTypeEnum = "MOVE_STREAM_SOURCE" + OperationTypeCreateStreamJob OperationTypeEnum = "CREATE_STREAM_JOB" + OperationTypeDeleteStreamJob OperationTypeEnum = "DELETE_STREAM_JOB" + OperationTypeUpdateStreamJob OperationTypeEnum = "UPDATE_STREAM_JOB" + OperationTypeStartStreamJob OperationTypeEnum = "START_STREAM_JOB" + OperationTypeStopStreamJob OperationTypeEnum = "STOP_STREAM_JOB" + OperationTypeMoveStreamJob OperationTypeEnum = "MOVE_STREAM_JOB" + OperationTypeAddStreamGroup OperationTypeEnum = "ADD_STREAM_GROUP" + OperationTypeUpdateStreamGroup OperationTypeEnum = "UPDATE_STREAM_GROUP" + OperationTypeDeleteStreamGroup OperationTypeEnum = "DELETE_STREAM_GROUP" + OperationTypeCreateVisionPrivateEndpoint OperationTypeEnum = "CREATE_VISION_PRIVATE_ENDPOINT" + OperationTypeUpdateVisionPrivateEndpoint OperationTypeEnum = "UPDATE_VISION_PRIVATE_ENDPOINT" + OperationTypeDeleteVisionPrivateEndpoint OperationTypeEnum = "DELETE_VISION_PRIVATE_ENDPOINT" + OperationTypeMoveVisionPrivateEndpoint OperationTypeEnum = "MOVE_VISION_PRIVATE_ENDPOINT" ) var mappingOperationTypeEnum = map[string]OperationTypeEnum{ - "CREATE_PROJECT": OperationTypeCreateProject, - "UPDATE_PROJECT": OperationTypeUpdateProject, - "DELETE_PROJECT": OperationTypeDeleteProject, - "MOVE_PROJECT": OperationTypeMoveProject, - "CREATE_MODEL": OperationTypeCreateModel, - "UPDATE_MODEL": OperationTypeUpdateModel, - "DELETE_MODEL": OperationTypeDeleteModel, - "MOVE_MODEL": OperationTypeMoveModel, + "CREATE_PROJECT": OperationTypeCreateProject, + "UPDATE_PROJECT": OperationTypeUpdateProject, + "DELETE_PROJECT": OperationTypeDeleteProject, + "MOVE_PROJECT": OperationTypeMoveProject, + "CREATE_MODEL": OperationTypeCreateModel, + "UPDATE_MODEL": OperationTypeUpdateModel, + "DELETE_MODEL": OperationTypeDeleteModel, + "MOVE_MODEL": OperationTypeMoveModel, + "ADD_STREAM_SOURCE": OperationTypeAddStreamSource, + "UPDATE_STREAM_SOURCE": OperationTypeUpdateStreamSource, + "DELETE_STREAM_SOURCE": OperationTypeDeleteStreamSource, + "MOVE_STREAM_SOURCE": OperationTypeMoveStreamSource, + "CREATE_STREAM_JOB": OperationTypeCreateStreamJob, + "DELETE_STREAM_JOB": OperationTypeDeleteStreamJob, + "UPDATE_STREAM_JOB": OperationTypeUpdateStreamJob, + "START_STREAM_JOB": OperationTypeStartStreamJob, + "STOP_STREAM_JOB": OperationTypeStopStreamJob, + "MOVE_STREAM_JOB": OperationTypeMoveStreamJob, + "ADD_STREAM_GROUP": OperationTypeAddStreamGroup, + "UPDATE_STREAM_GROUP": OperationTypeUpdateStreamGroup, + "DELETE_STREAM_GROUP": OperationTypeDeleteStreamGroup, + "CREATE_VISION_PRIVATE_ENDPOINT": OperationTypeCreateVisionPrivateEndpoint, + "UPDATE_VISION_PRIVATE_ENDPOINT": OperationTypeUpdateVisionPrivateEndpoint, + "DELETE_VISION_PRIVATE_ENDPOINT": OperationTypeDeleteVisionPrivateEndpoint, + "MOVE_VISION_PRIVATE_ENDPOINT": OperationTypeMoveVisionPrivateEndpoint, } var mappingOperationTypeEnumLowerCase = map[string]OperationTypeEnum{ - "create_project": OperationTypeCreateProject, - "update_project": OperationTypeUpdateProject, - "delete_project": OperationTypeDeleteProject, - "move_project": OperationTypeMoveProject, - "create_model": OperationTypeCreateModel, - "update_model": OperationTypeUpdateModel, - "delete_model": OperationTypeDeleteModel, - "move_model": OperationTypeMoveModel, + "create_project": OperationTypeCreateProject, + "update_project": OperationTypeUpdateProject, + "delete_project": OperationTypeDeleteProject, + "move_project": OperationTypeMoveProject, + "create_model": OperationTypeCreateModel, + "update_model": OperationTypeUpdateModel, + "delete_model": OperationTypeDeleteModel, + "move_model": OperationTypeMoveModel, + "add_stream_source": OperationTypeAddStreamSource, + "update_stream_source": OperationTypeUpdateStreamSource, + "delete_stream_source": OperationTypeDeleteStreamSource, + "move_stream_source": OperationTypeMoveStreamSource, + "create_stream_job": OperationTypeCreateStreamJob, + "delete_stream_job": OperationTypeDeleteStreamJob, + "update_stream_job": OperationTypeUpdateStreamJob, + "start_stream_job": OperationTypeStartStreamJob, + "stop_stream_job": OperationTypeStopStreamJob, + "move_stream_job": OperationTypeMoveStreamJob, + "add_stream_group": OperationTypeAddStreamGroup, + "update_stream_group": OperationTypeUpdateStreamGroup, + "delete_stream_group": OperationTypeDeleteStreamGroup, + "create_vision_private_endpoint": OperationTypeCreateVisionPrivateEndpoint, + "update_vision_private_endpoint": OperationTypeUpdateVisionPrivateEndpoint, + "delete_vision_private_endpoint": OperationTypeDeleteVisionPrivateEndpoint, + "move_vision_private_endpoint": OperationTypeMoveVisionPrivateEndpoint, } // GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum @@ -70,6 +121,23 @@ func GetOperationTypeEnumStringValues() []string { "UPDATE_MODEL", "DELETE_MODEL", "MOVE_MODEL", + "ADD_STREAM_SOURCE", + "UPDATE_STREAM_SOURCE", + "DELETE_STREAM_SOURCE", + "MOVE_STREAM_SOURCE", + "CREATE_STREAM_JOB", + "DELETE_STREAM_JOB", + "UPDATE_STREAM_JOB", + "START_STREAM_JOB", + "STOP_STREAM_JOB", + "MOVE_STREAM_JOB", + "ADD_STREAM_GROUP", + "UPDATE_STREAM_GROUP", + "DELETE_STREAM_GROUP", + "CREATE_VISION_PRIVATE_ENDPOINT", + "UPDATE_VISION_PRIVATE_ENDPOINT", + "DELETE_VISION_PRIVATE_ENDPOINT", + "MOVE_VISION_PRIVATE_ENDPOINT", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/private_stream_network_access_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/private_stream_network_access_details.go new file mode 100644 index 00000000000..cfc16aab5ff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/private_stream_network_access_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PrivateStreamNetworkAccessDetails Details of private endpoint to connect to stream +type PrivateStreamNetworkAccessDetails struct { + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private Endpoint + PrivateEndpointId *string `mandatory:"true" json:"privateEndpointId"` +} + +func (m PrivateStreamNetworkAccessDetails) 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 PrivateStreamNetworkAccessDetails) 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 PrivateStreamNetworkAccessDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypePrivateStreamNetworkAccessDetails PrivateStreamNetworkAccessDetails + s := struct { + DiscriminatorParam string `json:"streamAccessType"` + MarshalTypePrivateStreamNetworkAccessDetails + }{ + "PRIVATE", + (MarshalTypePrivateStreamNetworkAccessDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/rtsp_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/rtsp_source_details.go new file mode 100644 index 00000000000..66b32812ad1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/rtsp_source_details.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RtspSourceDetails Details of RtspDevice +type RtspSourceDetails struct { + StreamNetworkAccessDetails StreamNetworkAccessDetails `mandatory:"true" json:"streamNetworkAccessDetails"` + + // url of camera + CameraUrl *string `mandatory:"true" json:"cameraUrl"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of secret where credentials are stored in username:password format. + SecretId *string `mandatory:"false" json:"secretId"` +} + +// GetStreamNetworkAccessDetails returns StreamNetworkAccessDetails +func (m RtspSourceDetails) GetStreamNetworkAccessDetails() StreamNetworkAccessDetails { + return m.StreamNetworkAccessDetails +} + +func (m RtspSourceDetails) 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 RtspSourceDetails) 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 RtspSourceDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeRtspSourceDetails RtspSourceDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeRtspSourceDetails + }{ + "RTSP", + (MarshalTypeRtspSourceDetails)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *RtspSourceDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + SecretId *string `json:"secretId"` + StreamNetworkAccessDetails streamnetworkaccessdetails `json:"streamNetworkAccessDetails"` + CameraUrl *string `json:"cameraUrl"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.SecretId = model.SecretId + + nn, e = model.StreamNetworkAccessDetails.UnmarshalPolymorphicJSON(model.StreamNetworkAccessDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.StreamNetworkAccessDetails = nn.(StreamNetworkAccessDetails) + } else { + m.StreamNetworkAccessDetails = nil + } + + m.CameraUrl = model.CameraUrl + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/start_stream_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/start_stream_job_request_response.go new file mode 100644 index 00000000000..fbbdeefc6cc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/start_stream_job_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StartStreamJobRequest wrapper for the StartStreamJob operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/StartStreamJob.go.html to see an example of how to use StartStreamJobRequest. +type StartStreamJobRequest struct { + + // Stream job id. + StreamJobId *string `mandatory:"true" contributesTo:"path" name:"streamJobId"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without the 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"` + + // The client request ID for tracing. + 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 StartStreamJobRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StartStreamJobRequest) 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 StartStreamJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StartStreamJobRequest) 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 StartStreamJobRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StartStreamJobResponse wrapper for the StartStreamJob operation +type StartStreamJobResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 StartStreamJobResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StartStreamJobResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stop_stream_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stop_stream_job_request_response.go new file mode 100644 index 00000000000..3eab0b51136 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stop_stream_job_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StopStreamJobRequest wrapper for the StopStreamJob operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/StopStreamJob.go.html to see an example of how to use StopStreamJobRequest. +type StopStreamJobRequest struct { + + // Stream job id. + StreamJobId *string `mandatory:"true" contributesTo:"path" name:"streamJobId"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without the 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"` + + // 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"` + + // 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 StopStreamJobRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StopStreamJobRequest) 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 StopStreamJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StopStreamJobRequest) 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 StopStreamJobRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StopStreamJobResponse wrapper for the StopStreamJob operation +type StopStreamJobResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 StopStreamJobResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StopStreamJobResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_group.go new file mode 100644 index 00000000000..bc083f9d8a6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_group.go @@ -0,0 +1,136 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamGroup Details for a Stream Group +type StreamGroup struct { + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the streamGroup. + Id *string `mandatory:"true" json:"id"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of compartment + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A human-friendly name for the streamGroup. + DisplayName *string `mandatory:"false" json:"displayName"` + + // When the streamGroup was created, as an RFC3339 datetime string. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // When the streamGroup was updated, as an RFC3339 datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // The current state of the streamGroup. + LifecycleState StreamGroupLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Stream + IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // List of streamSource OCIDs associated with the stream group + StreamSourceIds []string `mandatory:"false" json:"streamSourceIds"` + + // List of streamSource OCIDs where the streamSource overlaps in field of view. + StreamOverlaps []StreamGroupOverlap `mandatory:"false" json:"streamOverlaps"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // 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"` +} + +func (m StreamGroup) 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 StreamGroup) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingStreamGroupLifecycleStateEnum(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(GetStreamGroupLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StreamGroupLifecycleStateEnum Enum with underlying type: string +type StreamGroupLifecycleStateEnum string + +// Set of constants representing the allowable values for StreamGroupLifecycleStateEnum +const ( + StreamGroupLifecycleStateCreating StreamGroupLifecycleStateEnum = "CREATING" + StreamGroupLifecycleStateUpdating StreamGroupLifecycleStateEnum = "UPDATING" + StreamGroupLifecycleStateActive StreamGroupLifecycleStateEnum = "ACTIVE" + StreamGroupLifecycleStateDeleting StreamGroupLifecycleStateEnum = "DELETING" + StreamGroupLifecycleStateDeleted StreamGroupLifecycleStateEnum = "DELETED" + StreamGroupLifecycleStateFailed StreamGroupLifecycleStateEnum = "FAILED" +) + +var mappingStreamGroupLifecycleStateEnum = map[string]StreamGroupLifecycleStateEnum{ + "CREATING": StreamGroupLifecycleStateCreating, + "UPDATING": StreamGroupLifecycleStateUpdating, + "ACTIVE": StreamGroupLifecycleStateActive, + "DELETING": StreamGroupLifecycleStateDeleting, + "DELETED": StreamGroupLifecycleStateDeleted, + "FAILED": StreamGroupLifecycleStateFailed, +} + +var mappingStreamGroupLifecycleStateEnumLowerCase = map[string]StreamGroupLifecycleStateEnum{ + "creating": StreamGroupLifecycleStateCreating, + "updating": StreamGroupLifecycleStateUpdating, + "active": StreamGroupLifecycleStateActive, + "deleting": StreamGroupLifecycleStateDeleting, + "deleted": StreamGroupLifecycleStateDeleted, + "failed": StreamGroupLifecycleStateFailed, +} + +// GetStreamGroupLifecycleStateEnumValues Enumerates the set of values for StreamGroupLifecycleStateEnum +func GetStreamGroupLifecycleStateEnumValues() []StreamGroupLifecycleStateEnum { + values := make([]StreamGroupLifecycleStateEnum, 0) + for _, v := range mappingStreamGroupLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetStreamGroupLifecycleStateEnumStringValues Enumerates the set of values in String for StreamGroupLifecycleStateEnum +func GetStreamGroupLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingStreamGroupLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingStreamGroupLifecycleStateEnum(val string) (StreamGroupLifecycleStateEnum, bool) { + enum, ok := mappingStreamGroupLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_group_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_group_collection.go new file mode 100644 index 00000000000..5d28aa0fec8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_group_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamGroupCollection The results of a streamGroup search. +type StreamGroupCollection struct { + + // List of StreamGroups. + Items []StreamGroupSummary `mandatory:"true" json:"items"` +} + +func (m StreamGroupCollection) 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 StreamGroupCollection) 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/aivision/stream_group_overlap.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_group_overlap.go new file mode 100644 index 00000000000..f7db77c8be4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_group_overlap.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamGroupOverlap List of streamSource OCIDs that have overlapping fields of view +type StreamGroupOverlap struct { + + // List of streamSource OCIDs. + OverlappingStreams []string `mandatory:"false" json:"overlappingStreams"` +} + +func (m StreamGroupOverlap) 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 StreamGroupOverlap) 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/aivision/stream_group_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_group_summary.go new file mode 100644 index 00000000000..9c07c65f90d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_group_summary.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamGroupSummary Summary for a Stream Group +type StreamGroupSummary struct { + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the streamGroup. + Id *string `mandatory:"true" json:"id"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of compartment + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A human-friendly name for the streamGroup. + DisplayName *string `mandatory:"false" json:"displayName"` + + // When the streamGroup was created, as an RFC3339 datetime string. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // When the streamGroup was updated, as an RFC3339 datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // Stream + IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // The current state of the streamGroup. + LifecycleState StreamGroupLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // List of streamSource OCIDs associated with the stream group + StreamSourceIds []string `mandatory:"false" json:"streamSourceIds"` + + // List of streamSource OCIDs where the streamSource overlaps in field of view. + StreamOverlaps []StreamGroupOverlap `mandatory:"false" json:"streamOverlaps"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // 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"` +} + +func (m StreamGroupSummary) 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 StreamGroupSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingStreamGroupLifecycleStateEnum(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(GetStreamGroupLifecycleStateEnumStringValues(), ","))) + } + 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/aivision/stream_job.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_job.go new file mode 100644 index 00000000000..b448836a6ea --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_job.go @@ -0,0 +1,223 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamJob Job details for a stream analysis. +type StreamJob struct { + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the streamJob. + Id *string `mandatory:"true" json:"id"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the streamSource + StreamSourceId *string `mandatory:"true" json:"streamSourceId"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of compartment + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // a list of document analysis features. + Features []VideoStreamFeature `mandatory:"true" json:"features"` + + // The current state of the Stream job. + LifecycleState StreamJobLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // When the streamJob was created, as an RFC3339 datetime string. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Stream job display name. + DisplayName *string `mandatory:"false" json:"displayName"` + + StreamOutputLocation StreamOutputLocation `mandatory:"false" json:"streamOutputLocation"` + + // participant id of agent where results need to be sent + AgentParticipantId *string `mandatory:"false" json:"agentParticipantId"` + + // Additional details about current state of streamJob + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // When the stream job was updated, as an RFC3339 datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // 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"` +} + +func (m StreamJob) 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 StreamJob) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingStreamJobLifecycleStateEnum(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(GetStreamJobLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *StreamJob) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + StreamOutputLocation streamoutputlocation `json:"streamOutputLocation"` + AgentParticipantId *string `json:"agentParticipantId"` + LifecycleDetails *string `json:"lifecycleDetails"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + Id *string `json:"id"` + StreamSourceId *string `json:"streamSourceId"` + CompartmentId *string `json:"compartmentId"` + Features []videostreamfeature `json:"features"` + LifecycleState StreamJobLifecycleStateEnum `json:"lifecycleState"` + TimeCreated *common.SDKTime `json:"timeCreated"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + nn, e = model.StreamOutputLocation.UnmarshalPolymorphicJSON(model.StreamOutputLocation.JsonData) + if e != nil { + return + } + if nn != nil { + m.StreamOutputLocation = nn.(StreamOutputLocation) + } else { + m.StreamOutputLocation = nil + } + + m.AgentParticipantId = model.AgentParticipantId + + m.LifecycleDetails = model.LifecycleDetails + + m.TimeUpdated = model.TimeUpdated + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.SystemTags = model.SystemTags + + m.Id = model.Id + + m.StreamSourceId = model.StreamSourceId + + m.CompartmentId = model.CompartmentId + + m.Features = make([]VideoStreamFeature, len(model.Features)) + for i, n := range model.Features { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Features[i] = nn.(VideoStreamFeature) + } else { + m.Features[i] = nil + } + } + m.LifecycleState = model.LifecycleState + + m.TimeCreated = model.TimeCreated + + return +} + +// StreamJobLifecycleStateEnum Enum with underlying type: string +type StreamJobLifecycleStateEnum string + +// Set of constants representing the allowable values for StreamJobLifecycleStateEnum +const ( + StreamJobLifecycleStateCreating StreamJobLifecycleStateEnum = "CREATING" + StreamJobLifecycleStateUpdating StreamJobLifecycleStateEnum = "UPDATING" + StreamJobLifecycleStateActive StreamJobLifecycleStateEnum = "ACTIVE" + StreamJobLifecycleStateDeleting StreamJobLifecycleStateEnum = "DELETING" + StreamJobLifecycleStateDeleted StreamJobLifecycleStateEnum = "DELETED" + StreamJobLifecycleStateFailed StreamJobLifecycleStateEnum = "FAILED" + StreamJobLifecycleStateInactive StreamJobLifecycleStateEnum = "INACTIVE" + StreamJobLifecycleStateNeedsAttention StreamJobLifecycleStateEnum = "NEEDS_ATTENTION" +) + +var mappingStreamJobLifecycleStateEnum = map[string]StreamJobLifecycleStateEnum{ + "CREATING": StreamJobLifecycleStateCreating, + "UPDATING": StreamJobLifecycleStateUpdating, + "ACTIVE": StreamJobLifecycleStateActive, + "DELETING": StreamJobLifecycleStateDeleting, + "DELETED": StreamJobLifecycleStateDeleted, + "FAILED": StreamJobLifecycleStateFailed, + "INACTIVE": StreamJobLifecycleStateInactive, + "NEEDS_ATTENTION": StreamJobLifecycleStateNeedsAttention, +} + +var mappingStreamJobLifecycleStateEnumLowerCase = map[string]StreamJobLifecycleStateEnum{ + "creating": StreamJobLifecycleStateCreating, + "updating": StreamJobLifecycleStateUpdating, + "active": StreamJobLifecycleStateActive, + "deleting": StreamJobLifecycleStateDeleting, + "deleted": StreamJobLifecycleStateDeleted, + "failed": StreamJobLifecycleStateFailed, + "inactive": StreamJobLifecycleStateInactive, + "needs_attention": StreamJobLifecycleStateNeedsAttention, +} + +// GetStreamJobLifecycleStateEnumValues Enumerates the set of values for StreamJobLifecycleStateEnum +func GetStreamJobLifecycleStateEnumValues() []StreamJobLifecycleStateEnum { + values := make([]StreamJobLifecycleStateEnum, 0) + for _, v := range mappingStreamJobLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetStreamJobLifecycleStateEnumStringValues Enumerates the set of values in String for StreamJobLifecycleStateEnum +func GetStreamJobLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + "INACTIVE", + "NEEDS_ATTENTION", + } +} + +// GetMappingStreamJobLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingStreamJobLifecycleStateEnum(val string) (StreamJobLifecycleStateEnum, bool) { + enum, ok := mappingStreamJobLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_job_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_job_collection.go new file mode 100644 index 00000000000..71a7967ab87 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_job_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamJobCollection The results of a stream job search. +type StreamJobCollection struct { + + // List of stream jobs. + Items []StreamJobSummary `mandatory:"true" json:"items"` +} + +func (m StreamJobCollection) 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 StreamJobCollection) 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/aivision/stream_job_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_job_summary.go new file mode 100644 index 00000000000..45540be283c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_job_summary.go @@ -0,0 +1,151 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamJobSummary Job details for a stream analysis. +type StreamJobSummary struct { + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the streamJob. + Id *string `mandatory:"true" json:"id"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the streamSource + StreamSourceId *string `mandatory:"true" json:"streamSourceId"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of compartment + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // List of document analysis features. + Features []VideoStreamFeature `mandatory:"true" json:"features"` + + // The current state of the Stream job. + LifecycleState StreamJobLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Additional Details of the state of streamJob + LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"` + + // When the streamJob was created, as an RFC3339 datetime string. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Stream job display name. + DisplayName *string `mandatory:"false" json:"displayName"` + + StreamOutputLocation StreamOutputLocation `mandatory:"false" json:"streamOutputLocation"` + + // When the streamJob was updated, as an RFC3339 datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // 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"` +} + +func (m StreamJobSummary) 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 StreamJobSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingStreamJobLifecycleStateEnum(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(GetStreamJobLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *StreamJobSummary) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + StreamOutputLocation streamoutputlocation `json:"streamOutputLocation"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + Id *string `json:"id"` + StreamSourceId *string `json:"streamSourceId"` + CompartmentId *string `json:"compartmentId"` + Features []videostreamfeature `json:"features"` + LifecycleState StreamJobLifecycleStateEnum `json:"lifecycleState"` + LifecycleDetails *string `json:"lifecycleDetails"` + TimeCreated *common.SDKTime `json:"timeCreated"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + nn, e = model.StreamOutputLocation.UnmarshalPolymorphicJSON(model.StreamOutputLocation.JsonData) + if e != nil { + return + } + if nn != nil { + m.StreamOutputLocation = nn.(StreamOutputLocation) + } else { + m.StreamOutputLocation = nil + } + + m.TimeUpdated = model.TimeUpdated + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.SystemTags = model.SystemTags + + m.Id = model.Id + + m.StreamSourceId = model.StreamSourceId + + m.CompartmentId = model.CompartmentId + + m.Features = make([]VideoStreamFeature, len(model.Features)) + for i, n := range model.Features { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Features[i] = nn.(VideoStreamFeature) + } else { + m.Features[i] = nil + } + } + m.LifecycleState = model.LifecycleState + + m.LifecycleDetails = model.LifecycleDetails + + m.TimeCreated = model.TimeCreated + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_network_access_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_network_access_details.go new file mode 100644 index 00000000000..ab513e7debe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_network_access_details.go @@ -0,0 +1,115 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamNetworkAccessDetails Details about a stream Connection type +type StreamNetworkAccessDetails interface { +} + +type streamnetworkaccessdetails struct { + JsonData []byte + StreamAccessType string `json:"streamAccessType"` +} + +// UnmarshalJSON unmarshals json +func (m *streamnetworkaccessdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerstreamnetworkaccessdetails streamnetworkaccessdetails + s := struct { + Model Unmarshalerstreamnetworkaccessdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.StreamAccessType = s.Model.StreamAccessType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *streamnetworkaccessdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.StreamAccessType { + case "PRIVATE": + mm := PrivateStreamNetworkAccessDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for StreamNetworkAccessDetails: %s.", m.StreamAccessType) + return *m, nil + } +} + +func (m streamnetworkaccessdetails) 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 streamnetworkaccessdetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StreamNetworkAccessDetailsStreamAccessTypeEnum Enum with underlying type: string +type StreamNetworkAccessDetailsStreamAccessTypeEnum string + +// Set of constants representing the allowable values for StreamNetworkAccessDetailsStreamAccessTypeEnum +const ( + StreamNetworkAccessDetailsStreamAccessTypePrivate StreamNetworkAccessDetailsStreamAccessTypeEnum = "PRIVATE" +) + +var mappingStreamNetworkAccessDetailsStreamAccessTypeEnum = map[string]StreamNetworkAccessDetailsStreamAccessTypeEnum{ + "PRIVATE": StreamNetworkAccessDetailsStreamAccessTypePrivate, +} + +var mappingStreamNetworkAccessDetailsStreamAccessTypeEnumLowerCase = map[string]StreamNetworkAccessDetailsStreamAccessTypeEnum{ + "private": StreamNetworkAccessDetailsStreamAccessTypePrivate, +} + +// GetStreamNetworkAccessDetailsStreamAccessTypeEnumValues Enumerates the set of values for StreamNetworkAccessDetailsStreamAccessTypeEnum +func GetStreamNetworkAccessDetailsStreamAccessTypeEnumValues() []StreamNetworkAccessDetailsStreamAccessTypeEnum { + values := make([]StreamNetworkAccessDetailsStreamAccessTypeEnum, 0) + for _, v := range mappingStreamNetworkAccessDetailsStreamAccessTypeEnum { + values = append(values, v) + } + return values +} + +// GetStreamNetworkAccessDetailsStreamAccessTypeEnumStringValues Enumerates the set of values in String for StreamNetworkAccessDetailsStreamAccessTypeEnum +func GetStreamNetworkAccessDetailsStreamAccessTypeEnumStringValues() []string { + return []string{ + "PRIVATE", + } +} + +// GetMappingStreamNetworkAccessDetailsStreamAccessTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingStreamNetworkAccessDetailsStreamAccessTypeEnum(val string) (StreamNetworkAccessDetailsStreamAccessTypeEnum, bool) { + enum, ok := mappingStreamNetworkAccessDetailsStreamAccessTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_output_location.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_output_location.go new file mode 100644 index 00000000000..d2ab8f005c3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_output_location.go @@ -0,0 +1,115 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamOutputLocation Details about a where results will be Sent +type StreamOutputLocation interface { +} + +type streamoutputlocation struct { + JsonData []byte + OutputLocationType string `json:"outputLocationType"` +} + +// UnmarshalJSON unmarshals json +func (m *streamoutputlocation) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerstreamoutputlocation streamoutputlocation + s := struct { + Model Unmarshalerstreamoutputlocation + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.OutputLocationType = s.Model.OutputLocationType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *streamoutputlocation) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.OutputLocationType { + case "OBJECT_STORAGE": + mm := ObjectStorageOutputLocation{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for StreamOutputLocation: %s.", m.OutputLocationType) + return *m, nil + } +} + +func (m streamoutputlocation) 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 streamoutputlocation) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StreamOutputLocationOutputLocationTypeEnum Enum with underlying type: string +type StreamOutputLocationOutputLocationTypeEnum string + +// Set of constants representing the allowable values for StreamOutputLocationOutputLocationTypeEnum +const ( + StreamOutputLocationOutputLocationTypeObjectStorage StreamOutputLocationOutputLocationTypeEnum = "OBJECT_STORAGE" +) + +var mappingStreamOutputLocationOutputLocationTypeEnum = map[string]StreamOutputLocationOutputLocationTypeEnum{ + "OBJECT_STORAGE": StreamOutputLocationOutputLocationTypeObjectStorage, +} + +var mappingStreamOutputLocationOutputLocationTypeEnumLowerCase = map[string]StreamOutputLocationOutputLocationTypeEnum{ + "object_storage": StreamOutputLocationOutputLocationTypeObjectStorage, +} + +// GetStreamOutputLocationOutputLocationTypeEnumValues Enumerates the set of values for StreamOutputLocationOutputLocationTypeEnum +func GetStreamOutputLocationOutputLocationTypeEnumValues() []StreamOutputLocationOutputLocationTypeEnum { + values := make([]StreamOutputLocationOutputLocationTypeEnum, 0) + for _, v := range mappingStreamOutputLocationOutputLocationTypeEnum { + values = append(values, v) + } + return values +} + +// GetStreamOutputLocationOutputLocationTypeEnumStringValues Enumerates the set of values in String for StreamOutputLocationOutputLocationTypeEnum +func GetStreamOutputLocationOutputLocationTypeEnumStringValues() []string { + return []string{ + "OBJECT_STORAGE", + } +} + +// GetMappingStreamOutputLocationOutputLocationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingStreamOutputLocationOutputLocationTypeEnum(val string) (StreamOutputLocationOutputLocationTypeEnum, bool) { + enum, ok := mappingStreamOutputLocationOutputLocationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_source.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_source.go new file mode 100644 index 00000000000..851f7638632 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_source.go @@ -0,0 +1,180 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamSource Stream source information +type StreamSource struct { + StreamSourceDetails StreamSourceDetails `mandatory:"true" json:"streamSourceDetails"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the streamSource. + Id *string `mandatory:"true" json:"id"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartm. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // When the streamSource was created, as an RFC3339 datetime string. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The current state of the streamSource. + LifecycleState StreamSourceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // When the streamSource was updated, as an RFC3339 datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // display name. + DisplayName *string `mandatory:"false" json:"displayName"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // 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"` +} + +func (m StreamSource) 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 StreamSource) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingStreamSourceLifecycleStateEnum(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(GetStreamSourceLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *StreamSource) UnmarshalJSON(data []byte) (e error) { + model := struct { + TimeUpdated *common.SDKTime `json:"timeUpdated"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + StreamSourceDetails streamsourcedetails `json:"streamSourceDetails"` + Id *string `json:"id"` + CompartmentId *string `json:"compartmentId"` + TimeCreated *common.SDKTime `json:"timeCreated"` + LifecycleState StreamSourceLifecycleStateEnum `json:"lifecycleState"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.TimeUpdated = model.TimeUpdated + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.SystemTags = model.SystemTags + + nn, e = model.StreamSourceDetails.UnmarshalPolymorphicJSON(model.StreamSourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.StreamSourceDetails = nn.(StreamSourceDetails) + } else { + m.StreamSourceDetails = nil + } + + m.Id = model.Id + + m.CompartmentId = model.CompartmentId + + m.TimeCreated = model.TimeCreated + + m.LifecycleState = model.LifecycleState + + return +} + +// StreamSourceLifecycleStateEnum Enum with underlying type: string +type StreamSourceLifecycleStateEnum string + +// Set of constants representing the allowable values for StreamSourceLifecycleStateEnum +const ( + StreamSourceLifecycleStateCreating StreamSourceLifecycleStateEnum = "CREATING" + StreamSourceLifecycleStateUpdating StreamSourceLifecycleStateEnum = "UPDATING" + StreamSourceLifecycleStateActive StreamSourceLifecycleStateEnum = "ACTIVE" + StreamSourceLifecycleStateDeleting StreamSourceLifecycleStateEnum = "DELETING" + StreamSourceLifecycleStateDeleted StreamSourceLifecycleStateEnum = "DELETED" + StreamSourceLifecycleStateFailed StreamSourceLifecycleStateEnum = "FAILED" +) + +var mappingStreamSourceLifecycleStateEnum = map[string]StreamSourceLifecycleStateEnum{ + "CREATING": StreamSourceLifecycleStateCreating, + "UPDATING": StreamSourceLifecycleStateUpdating, + "ACTIVE": StreamSourceLifecycleStateActive, + "DELETING": StreamSourceLifecycleStateDeleting, + "DELETED": StreamSourceLifecycleStateDeleted, + "FAILED": StreamSourceLifecycleStateFailed, +} + +var mappingStreamSourceLifecycleStateEnumLowerCase = map[string]StreamSourceLifecycleStateEnum{ + "creating": StreamSourceLifecycleStateCreating, + "updating": StreamSourceLifecycleStateUpdating, + "active": StreamSourceLifecycleStateActive, + "deleting": StreamSourceLifecycleStateDeleting, + "deleted": StreamSourceLifecycleStateDeleted, + "failed": StreamSourceLifecycleStateFailed, +} + +// GetStreamSourceLifecycleStateEnumValues Enumerates the set of values for StreamSourceLifecycleStateEnum +func GetStreamSourceLifecycleStateEnumValues() []StreamSourceLifecycleStateEnum { + values := make([]StreamSourceLifecycleStateEnum, 0) + for _, v := range mappingStreamSourceLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetStreamSourceLifecycleStateEnumStringValues Enumerates the set of values in String for StreamSourceLifecycleStateEnum +func GetStreamSourceLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingStreamSourceLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingStreamSourceLifecycleStateEnum(val string) (StreamSourceLifecycleStateEnum, bool) { + enum, ok := mappingStreamSourceLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_source_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_source_collection.go new file mode 100644 index 00000000000..de04504e9a0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_source_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamSourceCollection The results of a streamSource search. +type StreamSourceCollection struct { + + // List of StreamSources. + Items []StreamSourceSummary `mandatory:"true" json:"items"` +} + +func (m StreamSourceCollection) 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 StreamSourceCollection) 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/aivision/stream_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_source_details.go new file mode 100644 index 00000000000..b67dbbcde1d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_source_details.go @@ -0,0 +1,123 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamSourceDetails Details about a stream source +type StreamSourceDetails interface { + GetStreamNetworkAccessDetails() StreamNetworkAccessDetails +} + +type streamsourcedetails struct { + JsonData []byte + StreamNetworkAccessDetails streamnetworkaccessdetails `mandatory:"true" json:"streamNetworkAccessDetails"` + SourceType string `json:"sourceType"` +} + +// UnmarshalJSON unmarshals json +func (m *streamsourcedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerstreamsourcedetails streamsourcedetails + s := struct { + Model Unmarshalerstreamsourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.StreamNetworkAccessDetails = s.Model.StreamNetworkAccessDetails + m.SourceType = s.Model.SourceType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *streamsourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.SourceType { + case "RTSP": + mm := RtspSourceDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for StreamSourceDetails: %s.", m.SourceType) + return *m, nil + } +} + +// GetStreamNetworkAccessDetails returns StreamNetworkAccessDetails +func (m streamsourcedetails) GetStreamNetworkAccessDetails() streamnetworkaccessdetails { + return m.StreamNetworkAccessDetails +} + +func (m streamsourcedetails) 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 streamsourcedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StreamSourceDetailsSourceTypeEnum Enum with underlying type: string +type StreamSourceDetailsSourceTypeEnum string + +// Set of constants representing the allowable values for StreamSourceDetailsSourceTypeEnum +const ( + StreamSourceDetailsSourceTypeRtsp StreamSourceDetailsSourceTypeEnum = "RTSP" +) + +var mappingStreamSourceDetailsSourceTypeEnum = map[string]StreamSourceDetailsSourceTypeEnum{ + "RTSP": StreamSourceDetailsSourceTypeRtsp, +} + +var mappingStreamSourceDetailsSourceTypeEnumLowerCase = map[string]StreamSourceDetailsSourceTypeEnum{ + "rtsp": StreamSourceDetailsSourceTypeRtsp, +} + +// GetStreamSourceDetailsSourceTypeEnumValues Enumerates the set of values for StreamSourceDetailsSourceTypeEnum +func GetStreamSourceDetailsSourceTypeEnumValues() []StreamSourceDetailsSourceTypeEnum { + values := make([]StreamSourceDetailsSourceTypeEnum, 0) + for _, v := range mappingStreamSourceDetailsSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetStreamSourceDetailsSourceTypeEnumStringValues Enumerates the set of values in String for StreamSourceDetailsSourceTypeEnum +func GetStreamSourceDetailsSourceTypeEnumStringValues() []string { + return []string{ + "RTSP", + } +} + +// GetMappingStreamSourceDetailsSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingStreamSourceDetailsSourceTypeEnum(val string) (StreamSourceDetailsSourceTypeEnum, bool) { + enum, ok := mappingStreamSourceDetailsSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_source_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_source_summary.go new file mode 100644 index 00000000000..234e834fbe0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/stream_source_summary.go @@ -0,0 +1,122 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StreamSourceSummary Video stream analysis results. +type StreamSourceSummary struct { + StreamSourceDetails StreamSourceDetails `mandatory:"true" json:"streamSourceDetails"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the streamSource. + Id *string `mandatory:"true" json:"id"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // When the streamSource was created, as an RFC3339 datetime string. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The current state of the streamSource. + LifecycleState StreamSourceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // StreamSource display name. + DisplayName *string `mandatory:"false" json:"displayName"` + + // When the streamSource was created, as an RFC3339 datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // 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"` +} + +func (m StreamSourceSummary) 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 StreamSourceSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingStreamSourceLifecycleStateEnum(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(GetStreamSourceLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *StreamSourceSummary) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + StreamSourceDetails streamsourcedetails `json:"streamSourceDetails"` + Id *string `json:"id"` + CompartmentId *string `json:"compartmentId"` + TimeCreated *common.SDKTime `json:"timeCreated"` + LifecycleState StreamSourceLifecycleStateEnum `json:"lifecycleState"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.TimeUpdated = model.TimeUpdated + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.SystemTags = model.SystemTags + + nn, e = model.StreamSourceDetails.UnmarshalPolymorphicJSON(model.StreamSourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.StreamSourceDetails = nn.(StreamSourceDetails) + } else { + m.StreamSourceDetails = nil + } + + m.Id = model.Id + + m.CompartmentId = model.CompartmentId + + m.TimeCreated = model.TimeCreated + + m.LifecycleState = model.LifecycleState + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/tracking_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/tracking_type.go new file mode 100644 index 00000000000..a5e7c7aece8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/tracking_type.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TrackingType Details of what to track. +type TrackingType struct { + + // List of the objects to be tracked. + Objects []string `mandatory:"true" json:"objects"` + + // The detection model OCID. + DetectionModelId *string `mandatory:"false" json:"detectionModelId"` + + // The tracking model OCID. + TrackingModelId *string `mandatory:"false" json:"trackingModelId"` + + // The maximum number of results to return. + MaxResults *int `mandatory:"false" json:"maxResults"` + + // Whether or not return face landmarks. + ShouldReturnLandmarks *bool `mandatory:"false" json:"shouldReturnLandmarks"` +} + +func (m TrackingType) 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 TrackingType) 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/aivision/update_stream_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_group_details.go new file mode 100644 index 00000000000..6727722010b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_group_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateStreamGroupDetails The information needed to create a stream group +type UpdateStreamGroupDetails struct { + + // A human-friendly name for the streamGroup. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Stream + IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // List of streamSource OCIDs associated with the stream group + StreamSourceIds []string `mandatory:"false" json:"streamSourceIds"` + + // List of streamSource OCIDs where the streamSource overlaps in field of view. + StreamOverlaps []StreamGroupOverlap `mandatory:"false" json:"streamOverlaps"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateStreamGroupDetails) 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 UpdateStreamGroupDetails) 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/aivision/update_stream_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_group_request_response.go new file mode 100644 index 00000000000..d833713b14a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_group_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateStreamGroupRequest wrapper for the UpdateStreamGroup operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/UpdateStreamGroup.go.html to see an example of how to use UpdateStreamGroupRequest. +type UpdateStreamGroupRequest struct { + + // StreamGroup Id. + StreamGroupId *string `mandatory:"true" contributesTo:"path" name:"streamGroupId"` + + // Details about the streamGroup + UpdateStreamGroupDetails `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"` + + // 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 UpdateStreamGroupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateStreamGroupRequest) 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 UpdateStreamGroupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateStreamGroupRequest) 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 UpdateStreamGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateStreamGroupResponse wrapper for the UpdateStreamGroup operation +type UpdateStreamGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 UpdateStreamGroupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateStreamGroupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_job_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_job_details.go new file mode 100644 index 00000000000..27dd215d6a7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_job_details.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateStreamJobDetails The information needed to update streamjob +type UpdateStreamJobDetails struct { + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of streamSource + StreamSourceId *string `mandatory:"false" json:"streamSourceId"` + + // List of stream analysis features. + Features []VideoStreamFeature `mandatory:"false" json:"features"` + + StreamOutputLocation StreamOutputLocation `mandatory:"false" json:"streamOutputLocation"` + + // Stream job display name. + DisplayName *string `mandatory:"false" json:"displayName"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateStreamJobDetails) 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 UpdateStreamJobDetails) 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 *UpdateStreamJobDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + StreamSourceId *string `json:"streamSourceId"` + Features []videostreamfeature `json:"features"` + StreamOutputLocation streamoutputlocation `json:"streamOutputLocation"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.StreamSourceId = model.StreamSourceId + + m.Features = make([]VideoStreamFeature, len(model.Features)) + for i, n := range model.Features { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Features[i] = nn.(VideoStreamFeature) + } else { + m.Features[i] = nil + } + } + nn, e = model.StreamOutputLocation.UnmarshalPolymorphicJSON(model.StreamOutputLocation.JsonData) + if e != nil { + return + } + if nn != nil { + m.StreamOutputLocation = nn.(StreamOutputLocation) + } else { + m.StreamOutputLocation = nil + } + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_job_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_job_request_response.go new file mode 100644 index 00000000000..89f870c36c7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_job_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateStreamJobRequest wrapper for the UpdateStreamJob operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/UpdateStreamJob.go.html to see an example of how to use UpdateStreamJobRequest. +type UpdateStreamJobRequest struct { + + // Details about the stream analysis. + UpdateStreamJobDetails `contributesTo:"body"` + + // Stream job id. + StreamJobId *string `mandatory:"true" contributesTo:"path" name:"streamJobId"` + + // The client request ID for tracing. + 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 UpdateStreamJobRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateStreamJobRequest) 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 UpdateStreamJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateStreamJobRequest) 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 UpdateStreamJobRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateStreamJobResponse wrapper for the UpdateStreamJob operation +type UpdateStreamJobResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 UpdateStreamJobResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateStreamJobResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_source_details.go new file mode 100644 index 00000000000..5e545310c04 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_source_details.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateStreamSourceDetails The information needed to update stream source +type UpdateStreamSourceDetails struct { + StreamSourceDetails StreamSourceDetails `mandatory:"false" json:"streamSourceDetails"` + + // A human-friendly name for the streamSource, that can be changed. + DisplayName *string `mandatory:"false" json:"displayName"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateStreamSourceDetails) 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 UpdateStreamSourceDetails) 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 *UpdateStreamSourceDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + StreamSourceDetails streamsourcedetails `json:"streamSourceDetails"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + nn, e = model.StreamSourceDetails.UnmarshalPolymorphicJSON(model.StreamSourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.StreamSourceDetails = nn.(StreamSourceDetails) + } else { + m.StreamSourceDetails = nil + } + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_source_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_source_request_response.go new file mode 100644 index 00000000000..add8292769a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_stream_source_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateStreamSourceRequest wrapper for the UpdateStreamSource operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/UpdateStreamSource.go.html to see an example of how to use UpdateStreamSourceRequest. +type UpdateStreamSourceRequest struct { + + // StreamSource Id. + StreamSourceId *string `mandatory:"true" contributesTo:"path" name:"streamSourceId"` + + // Details about the StreamSource + UpdateStreamSourceDetails `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"` + + // 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 UpdateStreamSourceRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateStreamSourceRequest) 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 UpdateStreamSourceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateStreamSourceRequest) 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 UpdateStreamSourceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateStreamSourceResponse wrapper for the UpdateStreamSource operation +type UpdateStreamSourceResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 UpdateStreamSourceResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateStreamSourceResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_vision_private_endpoint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_vision_private_endpoint_details.go new file mode 100644 index 00000000000..a4023e60015 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_vision_private_endpoint_details.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVisionPrivateEndpointDetails The metadata that can be edited after visionPrivateEndpoint creation. +type UpdateVisionPrivateEndpointDetails struct { + + // A human-friendly name for the visionPrivateEndpoint, that can be changed. + DisplayName *string `mandatory:"false" json:"displayName"` + + // An optional description of the visionPrivateEndpoint. + Description *string `mandatory:"false" json:"description"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateVisionPrivateEndpointDetails) 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 UpdateVisionPrivateEndpointDetails) 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/aivision/update_vision_private_endpoint_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_vision_private_endpoint_request_response.go new file mode 100644 index 00000000000..eff3641267d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/update_vision_private_endpoint_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2025, 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 aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateVisionPrivateEndpointRequest wrapper for the UpdateVisionPrivateEndpoint operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/UpdateVisionPrivateEndpoint.go.html to see an example of how to use UpdateVisionPrivateEndpointRequest. +type UpdateVisionPrivateEndpointRequest struct { + + // Vision private endpoint Id. + VisionPrivateEndpointId *string `mandatory:"true" contributesTo:"path" name:"visionPrivateEndpointId"` + + // The visionPrivateEndpoint metadata to be updated. + UpdateVisionPrivateEndpointDetails `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"` + + // 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 UpdateVisionPrivateEndpointRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateVisionPrivateEndpointRequest) 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 UpdateVisionPrivateEndpointRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateVisionPrivateEndpointRequest) 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 UpdateVisionPrivateEndpointRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateVisionPrivateEndpointResponse wrapper for the UpdateVisionPrivateEndpoint operation +type UpdateVisionPrivateEndpointResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A unique Oracle-assigned identifier for the asynchronous request. You can use this to query 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 UpdateVisionPrivateEndpointResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateVisionPrivateEndpointResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_job.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_job.go index 2e0c9281342..5365c3b8f77 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_job.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_job.go @@ -33,7 +33,7 @@ type VideoJob struct { OutputLocation *OutputLocation `mandatory:"true" json:"outputLocation"` - // The current state of the batch document job. + // The current state of the video job. LifecycleState VideoJobLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // Video job display name. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_face_detection_feature.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_face_detection_feature.go new file mode 100644 index 00000000000..3708c96ea40 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_face_detection_feature.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VideoStreamFaceDetectionFeature Video stream face detection feature +type VideoStreamFaceDetectionFeature struct { + + // The maximum number of results to return. + MaxResults *int `mandatory:"false" json:"maxResults"` + + // Whether or not return face landmarks. + ShouldReturnLandmarks *bool `mandatory:"false" json:"shouldReturnLandmarks"` + + // The minimum confidence score, between 0 and 1, + // when the value is set, results with lower confidence will not be returned. + MinConfidence *float32 `mandatory:"false" json:"minConfidence"` +} + +func (m VideoStreamFaceDetectionFeature) 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 VideoStreamFaceDetectionFeature) 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 VideoStreamFaceDetectionFeature) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVideoStreamFaceDetectionFeature VideoStreamFaceDetectionFeature + s := struct { + DiscriminatorParam string `json:"featureType"` + MarshalTypeVideoStreamFaceDetectionFeature + }{ + "FACE_DETECTION", + (MarshalTypeVideoStreamFaceDetectionFeature)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_feature.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_feature.go new file mode 100644 index 00000000000..a503b57488d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_feature.go @@ -0,0 +1,131 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VideoStreamFeature Details about a stream video feature request. +type VideoStreamFeature interface { +} + +type videostreamfeature struct { + JsonData []byte + FeatureType string `json:"featureType"` +} + +// UnmarshalJSON unmarshals json +func (m *videostreamfeature) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalervideostreamfeature videostreamfeature + s := struct { + Model Unmarshalervideostreamfeature + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.FeatureType = s.Model.FeatureType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *videostreamfeature) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.FeatureType { + case "OBJECT_TRACKING": + mm := VideoStreamObjectTrackingFeature{} + err = json.Unmarshal(data, &mm) + return mm, err + case "FACE_DETECTION": + mm := VideoStreamFaceDetectionFeature{} + err = json.Unmarshal(data, &mm) + return mm, err + case "OBJECT_DETECTION": + mm := VideoStreamObjectDetectionFeature{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for VideoStreamFeature: %s.", m.FeatureType) + return *m, nil + } +} + +func (m videostreamfeature) 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 videostreamfeature) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VideoStreamFeatureFeatureTypeEnum Enum with underlying type: string +type VideoStreamFeatureFeatureTypeEnum string + +// Set of constants representing the allowable values for VideoStreamFeatureFeatureTypeEnum +const ( + VideoStreamFeatureFeatureTypeObjectTracking VideoStreamFeatureFeatureTypeEnum = "OBJECT_TRACKING" + VideoStreamFeatureFeatureTypeFaceDetection VideoStreamFeatureFeatureTypeEnum = "FACE_DETECTION" + VideoStreamFeatureFeatureTypeObjectDetection VideoStreamFeatureFeatureTypeEnum = "OBJECT_DETECTION" +) + +var mappingVideoStreamFeatureFeatureTypeEnum = map[string]VideoStreamFeatureFeatureTypeEnum{ + "OBJECT_TRACKING": VideoStreamFeatureFeatureTypeObjectTracking, + "FACE_DETECTION": VideoStreamFeatureFeatureTypeFaceDetection, + "OBJECT_DETECTION": VideoStreamFeatureFeatureTypeObjectDetection, +} + +var mappingVideoStreamFeatureFeatureTypeEnumLowerCase = map[string]VideoStreamFeatureFeatureTypeEnum{ + "object_tracking": VideoStreamFeatureFeatureTypeObjectTracking, + "face_detection": VideoStreamFeatureFeatureTypeFaceDetection, + "object_detection": VideoStreamFeatureFeatureTypeObjectDetection, +} + +// GetVideoStreamFeatureFeatureTypeEnumValues Enumerates the set of values for VideoStreamFeatureFeatureTypeEnum +func GetVideoStreamFeatureFeatureTypeEnumValues() []VideoStreamFeatureFeatureTypeEnum { + values := make([]VideoStreamFeatureFeatureTypeEnum, 0) + for _, v := range mappingVideoStreamFeatureFeatureTypeEnum { + values = append(values, v) + } + return values +} + +// GetVideoStreamFeatureFeatureTypeEnumStringValues Enumerates the set of values in String for VideoStreamFeatureFeatureTypeEnum +func GetVideoStreamFeatureFeatureTypeEnumStringValues() []string { + return []string{ + "OBJECT_TRACKING", + "FACE_DETECTION", + "OBJECT_DETECTION", + } +} + +// GetMappingVideoStreamFeatureFeatureTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVideoStreamFeatureFeatureTypeEnum(val string) (VideoStreamFeatureFeatureTypeEnum, bool) { + enum, ok := mappingVideoStreamFeatureFeatureTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_metadata.go new file mode 100644 index 00000000000..4af37e3beba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_metadata.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VideoStreamMetadata Video information. +type VideoStreamMetadata struct { + + // Video framerate. + FrameRate *float32 `mandatory:"true" json:"frameRate"` + + // Width of each frame. + FrameWidth *int `mandatory:"true" json:"frameWidth"` + + // Height of each frame. + FrameHeight *int `mandatory:"true" json:"frameHeight"` +} + +func (m VideoStreamMetadata) 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 VideoStreamMetadata) 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/aivision/video_stream_object.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_object.go new file mode 100644 index 00000000000..9e127f5437a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_object.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VideoStreamObject Tracked object in a video stream. +type VideoStreamObject struct { + + // Name of the object category label. + Name *string `mandatory:"true" json:"name"` + + // The confidence score, between 0 and 1. + Confidence *float32 `mandatory:"true" json:"confidence"` + + BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` + + // Unique identifier for the object. + ObjectId *int `mandatory:"false" json:"objectId"` + + Properties *ObjectProperties `mandatory:"false" json:"properties"` +} + +func (m VideoStreamObject) 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 VideoStreamObject) 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/aivision/video_stream_object_detection_feature.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_object_detection_feature.go new file mode 100644 index 00000000000..5a843738deb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_object_detection_feature.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VideoStreamObjectDetectionFeature Video stream object detection feature +type VideoStreamObjectDetectionFeature struct { + + // The minimum confidence score, between 0 and 1, + // when the value is set, results with lower confidence will not be returned. + MinConfidence *float32 `mandatory:"false" json:"minConfidence"` + + // The maximum number of results per frame to return. + MaxResults *int `mandatory:"false" json:"maxResults"` +} + +func (m VideoStreamObjectDetectionFeature) 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 VideoStreamObjectDetectionFeature) 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 VideoStreamObjectDetectionFeature) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVideoStreamObjectDetectionFeature VideoStreamObjectDetectionFeature + s := struct { + DiscriminatorParam string `json:"featureType"` + MarshalTypeVideoStreamObjectDetectionFeature + }{ + "OBJECT_DETECTION", + (MarshalTypeVideoStreamObjectDetectionFeature)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_object_tracking_feature.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_object_tracking_feature.go new file mode 100644 index 00000000000..80292e5a5cf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_stream_object_tracking_feature.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VideoStreamObjectTrackingFeature Video stream object tracking feature +type VideoStreamObjectTrackingFeature struct { + + // List of details of what to track. + TrackingTypes []TrackingType `mandatory:"true" json:"trackingTypes"` +} + +func (m VideoStreamObjectTrackingFeature) 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 VideoStreamObjectTrackingFeature) 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 VideoStreamObjectTrackingFeature) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVideoStreamObjectTrackingFeature VideoStreamObjectTrackingFeature + s := struct { + DiscriminatorParam string `json:"featureType"` + MarshalTypeVideoStreamObjectTrackingFeature + }{ + "OBJECT_TRACKING", + (MarshalTypeVideoStreamObjectTrackingFeature)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_tracked_object_properties.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_tracked_object_properties.go index bd1c8bc9e13..fc74ae39107 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_tracked_object_properties.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/video_tracked_object_properties.go @@ -20,6 +20,9 @@ type VideoTrackedObjectProperties struct { // The axle count value of a tracked vehicle. AxleCount *int `mandatory:"false" json:"axleCount"` + + // Object IDs of the trailers associated with the tracked vehicle. + TrailerIds []int `mandatory:"false" json:"trailerIds"` } func (m VideoTrackedObjectProperties) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/vision_private_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/vision_private_endpoint.go new file mode 100644 index 00000000000..f36bd13ab0b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/vision_private_endpoint.go @@ -0,0 +1,136 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VisionPrivateEndpoint Vision private endpoint. +type VisionPrivateEndpoint struct { + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of private endpoint + Id *string `mandatory:"true" json:"id"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of subnet + SubnetId *string `mandatory:"true" json:"subnetId"` + + // A compartment identifier. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // When the visionPrivateEndpoint was created, as an RFC3339 datetime string. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The current state of the visionPrivateEndpoint. + LifecycleState VisionPrivateEndpointLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A human-friendly name for the visionPrivateEndpoint, which can be changed. + DisplayName *string `mandatory:"false" json:"displayName"` + + // An optional description of the visionPrivateEndpoint. + Description *string `mandatory:"false" json:"description"` + + // When the visionPrivateEndpoint was updated, as an RFC3339 datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // A message describing the current state in more detail, that can provide actionable information if creation failed. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // 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"` +} + +func (m VisionPrivateEndpoint) 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 VisionPrivateEndpoint) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVisionPrivateEndpointLifecycleStateEnum(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(GetVisionPrivateEndpointLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VisionPrivateEndpointLifecycleStateEnum Enum with underlying type: string +type VisionPrivateEndpointLifecycleStateEnum string + +// Set of constants representing the allowable values for VisionPrivateEndpointLifecycleStateEnum +const ( + VisionPrivateEndpointLifecycleStateCreating VisionPrivateEndpointLifecycleStateEnum = "CREATING" + VisionPrivateEndpointLifecycleStateUpdating VisionPrivateEndpointLifecycleStateEnum = "UPDATING" + VisionPrivateEndpointLifecycleStateActive VisionPrivateEndpointLifecycleStateEnum = "ACTIVE" + VisionPrivateEndpointLifecycleStateDeleting VisionPrivateEndpointLifecycleStateEnum = "DELETING" + VisionPrivateEndpointLifecycleStateDeleted VisionPrivateEndpointLifecycleStateEnum = "DELETED" + VisionPrivateEndpointLifecycleStateFailed VisionPrivateEndpointLifecycleStateEnum = "FAILED" +) + +var mappingVisionPrivateEndpointLifecycleStateEnum = map[string]VisionPrivateEndpointLifecycleStateEnum{ + "CREATING": VisionPrivateEndpointLifecycleStateCreating, + "UPDATING": VisionPrivateEndpointLifecycleStateUpdating, + "ACTIVE": VisionPrivateEndpointLifecycleStateActive, + "DELETING": VisionPrivateEndpointLifecycleStateDeleting, + "DELETED": VisionPrivateEndpointLifecycleStateDeleted, + "FAILED": VisionPrivateEndpointLifecycleStateFailed, +} + +var mappingVisionPrivateEndpointLifecycleStateEnumLowerCase = map[string]VisionPrivateEndpointLifecycleStateEnum{ + "creating": VisionPrivateEndpointLifecycleStateCreating, + "updating": VisionPrivateEndpointLifecycleStateUpdating, + "active": VisionPrivateEndpointLifecycleStateActive, + "deleting": VisionPrivateEndpointLifecycleStateDeleting, + "deleted": VisionPrivateEndpointLifecycleStateDeleted, + "failed": VisionPrivateEndpointLifecycleStateFailed, +} + +// GetVisionPrivateEndpointLifecycleStateEnumValues Enumerates the set of values for VisionPrivateEndpointLifecycleStateEnum +func GetVisionPrivateEndpointLifecycleStateEnumValues() []VisionPrivateEndpointLifecycleStateEnum { + values := make([]VisionPrivateEndpointLifecycleStateEnum, 0) + for _, v := range mappingVisionPrivateEndpointLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVisionPrivateEndpointLifecycleStateEnumStringValues Enumerates the set of values in String for VisionPrivateEndpointLifecycleStateEnum +func GetVisionPrivateEndpointLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingVisionPrivateEndpointLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVisionPrivateEndpointLifecycleStateEnum(val string) (VisionPrivateEndpointLifecycleStateEnum, bool) { + enum, ok := mappingVisionPrivateEndpointLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/aivision/vision_private_endpoint_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/vision_private_endpoint_collection.go new file mode 100644 index 00000000000..5dc13713242 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/vision_private_endpoint_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VisionPrivateEndpointCollection The results of a visionPrivateEndpoint search. +type VisionPrivateEndpointCollection struct { + + // List of visionPrivateEndpoints. + Items []VisionPrivateEndpointSummary `mandatory:"true" json:"items"` +} + +func (m VisionPrivateEndpointCollection) 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 VisionPrivateEndpointCollection) 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/aivision/vision_private_endpoint_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/vision_private_endpoint_summary.go new file mode 100644 index 00000000000..ad45e74d2c1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/aivision/vision_private_endpoint_summary.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VisionPrivateEndpointSummary the metadata about the visionPrivateEndpoint. +type VisionPrivateEndpointSummary struct { + + // A unique identifier that is immutable after creation. + Id *string `mandatory:"true" json:"id"` + + // The compartment identifier. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of subnet + SubnetId *string `mandatory:"true" json:"subnetId"` + + // When the visionPrivateEndpoint was created, as an RFC3339 datetime string. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The current state of the visionPrivateEndpoint. + LifecycleState VisionPrivateEndpointLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A human-friendly name for the visionPrivateEndpoint, that can be changed. + DisplayName *string `mandatory:"false" json:"displayName"` + + // When the visionPrivateEndpoint was created, as an RFC3339 datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // A message describing the current state in more detail, that can provide actionable information if creation failed. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // 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"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // 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"` +} + +func (m VisionPrivateEndpointSummary) 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 VisionPrivateEndpointSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVisionPrivateEndpointLifecycleStateEnum(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(GetVisionPrivateEndpointLifecycleStateEnumStringValues(), ","))) + } + + 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/common/regions.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go index ca32c4a952c..deb6a4e9c8d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go @@ -4,352 +4,362 @@ package common const ( - //RegionAPChuncheon1 region Chuncheon - RegionAPChuncheon1 Region = "ap-chuncheon-1" - //RegionAPHyderabad1 region Hyderabad - RegionAPHyderabad1 Region = "ap-hyderabad-1" - //RegionAPMelbourne1 region Melbourne - RegionAPMelbourne1 Region = "ap-melbourne-1" - //RegionAPMumbai1 region Mumbai - RegionAPMumbai1 Region = "ap-mumbai-1" - //RegionAPOsaka1 region Osaka - RegionAPOsaka1 Region = "ap-osaka-1" - //RegionAPSeoul1 region Seoul - RegionAPSeoul1 Region = "ap-seoul-1" - //RegionAPSydney1 region Sydney - RegionAPSydney1 Region = "ap-sydney-1" - //RegionAPTokyo1 region Tokyo - RegionAPTokyo1 Region = "ap-tokyo-1" - //RegionCAMontreal1 region Montreal - RegionCAMontreal1 Region = "ca-montreal-1" - //RegionCAToronto1 region Toronto - RegionCAToronto1 Region = "ca-toronto-1" - //RegionEUAmsterdam1 region Amsterdam - RegionEUAmsterdam1 Region = "eu-amsterdam-1" - //RegionFRA region Frankfurt - RegionFRA Region = "eu-frankfurt-1" - //RegionEUZurich1 region Zurich - RegionEUZurich1 Region = "eu-zurich-1" - //RegionMEJeddah1 region Jeddah - RegionMEJeddah1 Region = "me-jeddah-1" - //RegionMEDubai1 region Dubai - RegionMEDubai1 Region = "me-dubai-1" - //RegionSASaopaulo1 region Saopaulo - RegionSASaopaulo1 Region = "sa-saopaulo-1" - //RegionUKCardiff1 region Cardiff - RegionUKCardiff1 Region = "uk-cardiff-1" - //RegionLHR region London - RegionLHR Region = "uk-london-1" - //RegionIAD region Ashburn - RegionIAD Region = "us-ashburn-1" - //RegionPHX region Phoenix - RegionPHX Region = "us-phoenix-1" - //RegionSJC1 region Sanjose - RegionSJC1 Region = "us-sanjose-1" - //RegionSAVinhedo1 region Vinhedo - RegionSAVinhedo1 Region = "sa-vinhedo-1" - //RegionSASantiago1 region Santiago - RegionSASantiago1 Region = "sa-santiago-1" - //RegionILJerusalem1 region Jerusalem - RegionILJerusalem1 Region = "il-jerusalem-1" - //RegionEUMarseille1 region Marseille - RegionEUMarseille1 Region = "eu-marseille-1" - //RegionAPSingapore1 region Singapore - RegionAPSingapore1 Region = "ap-singapore-1" - //RegionMEAbudhabi1 region Abudhabi - RegionMEAbudhabi1 Region = "me-abudhabi-1" - //RegionEUMilan1 region Milan - RegionEUMilan1 Region = "eu-milan-1" - //RegionEUStockholm1 region Stockholm - RegionEUStockholm1 Region = "eu-stockholm-1" - //RegionAFJohannesburg1 region Johannesburg - RegionAFJohannesburg1 Region = "af-johannesburg-1" - //RegionEUParis1 region Paris - RegionEUParis1 Region = "eu-paris-1" - //RegionMXQueretaro1 region Queretaro - RegionMXQueretaro1 Region = "mx-queretaro-1" - //RegionEUMadrid1 region Madrid - RegionEUMadrid1 Region = "eu-madrid-1" - //RegionUSChicago1 region Chicago - RegionUSChicago1 Region = "us-chicago-1" - //RegionMXMonterrey1 region Monterrey - RegionMXMonterrey1 Region = "mx-monterrey-1" - //RegionUSSaltlake2 region Saltlake - RegionUSSaltlake2 Region = "us-saltlake-2" - //RegionSABogota1 region Bogota - RegionSABogota1 Region = "sa-bogota-1" - //RegionSAValparaiso1 region Valparaiso - RegionSAValparaiso1 Region = "sa-valparaiso-1" - //RegionAPSingapore2 region Singapore - RegionAPSingapore2 Region = "ap-singapore-2" - //RegionMERiyadh1 region Riyadh - RegionMERiyadh1 Region = "me-riyadh-1" - //RegionAPDelhi1 region Delhi - RegionAPDelhi1 Region = "ap-delhi-1" - //RegionAPBatam1 region Batam - RegionAPBatam1 Region = "ap-batam-1" - //RegionUSLangley1 region Langley - RegionUSLangley1 Region = "us-langley-1" - //RegionUSLuke1 region Luke - RegionUSLuke1 Region = "us-luke-1" - //RegionUSGovAshburn1 gov region Ashburn - RegionUSGovAshburn1 Region = "us-gov-ashburn-1" - //RegionUSGovChicago1 gov region Chicago - RegionUSGovChicago1 Region = "us-gov-chicago-1" - //RegionUSGovPhoenix1 gov region Phoenix - RegionUSGovPhoenix1 Region = "us-gov-phoenix-1" - //RegionUKGovLondon1 gov region London - RegionUKGovLondon1 Region = "uk-gov-london-1" - //RegionUKGovCardiff1 gov region Cardiff - RegionUKGovCardiff1 Region = "uk-gov-cardiff-1" - //RegionAPChiyoda1 region Chiyoda - RegionAPChiyoda1 Region = "ap-chiyoda-1" - //RegionAPIbaraki1 region Ibaraki - RegionAPIbaraki1 Region = "ap-ibaraki-1" - //RegionMEDccMuscat1 region Muscat - RegionMEDccMuscat1 Region = "me-dcc-muscat-1" - //RegionAPDccCanberra1 region Canberra - RegionAPDccCanberra1 Region = "ap-dcc-canberra-1" - //RegionEUDccMilan1 region Milan - RegionEUDccMilan1 Region = "eu-dcc-milan-1" - //RegionEUDccMilan2 region Milan - RegionEUDccMilan2 Region = "eu-dcc-milan-2" - //RegionEUDccDublin2 region Dublin - RegionEUDccDublin2 Region = "eu-dcc-dublin-2" - //RegionEUDccRating2 region Rating - RegionEUDccRating2 Region = "eu-dcc-rating-2" - //RegionEUDccRating1 region Rating - RegionEUDccRating1 Region = "eu-dcc-rating-1" - //RegionEUDccDublin1 region Dublin - RegionEUDccDublin1 Region = "eu-dcc-dublin-1" - //RegionAPDccGazipur1 region Gazipur - RegionAPDccGazipur1 Region = "ap-dcc-gazipur-1" - //RegionEUMadrid2 region Madrid - RegionEUMadrid2 Region = "eu-madrid-2" - //RegionEUFrankfurt2 region Frankfurt - RegionEUFrankfurt2 Region = "eu-frankfurt-2" - //RegionEUJovanovac1 region Jovanovac - RegionEUJovanovac1 Region = "eu-jovanovac-1" - //RegionMEDccDoha1 region Doha - RegionMEDccDoha1 Region = "me-dcc-doha-1" - //RegionUSSomerset1 region Somerset - RegionUSSomerset1 Region = "us-somerset-1" - //RegionUSThames1 region Thames - RegionUSThames1 Region = "us-thames-1" - //RegionEUDccZurich1 region Zurich - RegionEUDccZurich1 Region = "eu-dcc-zurich-1" - //RegionEUCrissier1 region Crissier - RegionEUCrissier1 Region = "eu-crissier-1" - //RegionMEAbudhabi3 region Abudhabi - RegionMEAbudhabi3 Region = "me-abudhabi-3" - //RegionMEAlain1 region Alain - RegionMEAlain1 Region = "me-alain-1" - //RegionMEAbudhabi2 region Abudhabi - RegionMEAbudhabi2 Region = "me-abudhabi-2" - //RegionMEAbudhabi4 region Abudhabi - RegionMEAbudhabi4 Region = "me-abudhabi-4" - //RegionAPSeoul2 region Seoul - RegionAPSeoul2 Region = "ap-seoul-2" - //RegionAPSuwon1 region Suwon - RegionAPSuwon1 Region = "ap-suwon-1" - //RegionAPChuncheon2 region Chuncheon - RegionAPChuncheon2 Region = "ap-chuncheon-2" - //RegionUSAshburn2 region Ashburn - RegionUSAshburn2 Region = "us-ashburn-2" + //RegionAPChuncheon1 region Chuncheon + RegionAPChuncheon1 Region = "ap-chuncheon-1" + //RegionAPHyderabad1 region Hyderabad + RegionAPHyderabad1 Region = "ap-hyderabad-1" + //RegionAPMelbourne1 region Melbourne + RegionAPMelbourne1 Region = "ap-melbourne-1" + //RegionAPMumbai1 region Mumbai + RegionAPMumbai1 Region = "ap-mumbai-1" + //RegionAPOsaka1 region Osaka + RegionAPOsaka1 Region = "ap-osaka-1" + //RegionAPSeoul1 region Seoul + RegionAPSeoul1 Region = "ap-seoul-1" + //RegionAPSydney1 region Sydney + RegionAPSydney1 Region = "ap-sydney-1" + //RegionAPTokyo1 region Tokyo + RegionAPTokyo1 Region = "ap-tokyo-1" + //RegionCAMontreal1 region Montreal + RegionCAMontreal1 Region = "ca-montreal-1" + //RegionCAToronto1 region Toronto + RegionCAToronto1 Region = "ca-toronto-1" + //RegionEUAmsterdam1 region Amsterdam + RegionEUAmsterdam1 Region = "eu-amsterdam-1" + //RegionFRA region Frankfurt + RegionFRA Region = "eu-frankfurt-1" + //RegionEUZurich1 region Zurich + RegionEUZurich1 Region = "eu-zurich-1" + //RegionMEJeddah1 region Jeddah + RegionMEJeddah1 Region = "me-jeddah-1" + //RegionMEDubai1 region Dubai + RegionMEDubai1 Region = "me-dubai-1" + //RegionSASaopaulo1 region Saopaulo + RegionSASaopaulo1 Region = "sa-saopaulo-1" + //RegionUKCardiff1 region Cardiff + RegionUKCardiff1 Region = "uk-cardiff-1" + //RegionLHR region London + RegionLHR Region = "uk-london-1" + //RegionIAD region Ashburn + RegionIAD Region = "us-ashburn-1" + //RegionPHX region Phoenix + RegionPHX Region = "us-phoenix-1" + //RegionSJC1 region Sanjose + RegionSJC1 Region = "us-sanjose-1" + //RegionSAVinhedo1 region Vinhedo + RegionSAVinhedo1 Region = "sa-vinhedo-1" + //RegionSASantiago1 region Santiago + RegionSASantiago1 Region = "sa-santiago-1" + //RegionILJerusalem1 region Jerusalem + RegionILJerusalem1 Region = "il-jerusalem-1" + //RegionEUMarseille1 region Marseille + RegionEUMarseille1 Region = "eu-marseille-1" + //RegionAPSingapore1 region Singapore + RegionAPSingapore1 Region = "ap-singapore-1" + //RegionMEAbudhabi1 region Abudhabi + RegionMEAbudhabi1 Region = "me-abudhabi-1" + //RegionEUMilan1 region Milan + RegionEUMilan1 Region = "eu-milan-1" + //RegionEUStockholm1 region Stockholm + RegionEUStockholm1 Region = "eu-stockholm-1" + //RegionAFJohannesburg1 region Johannesburg + RegionAFJohannesburg1 Region = "af-johannesburg-1" + //RegionEUParis1 region Paris + RegionEUParis1 Region = "eu-paris-1" + //RegionMXQueretaro1 region Queretaro + RegionMXQueretaro1 Region = "mx-queretaro-1" + //RegionEUMadrid1 region Madrid + RegionEUMadrid1 Region = "eu-madrid-1" + //RegionUSChicago1 region Chicago + RegionUSChicago1 Region = "us-chicago-1" + //RegionMXMonterrey1 region Monterrey + RegionMXMonterrey1 Region = "mx-monterrey-1" + //RegionUSSaltlake2 region Saltlake + RegionUSSaltlake2 Region = "us-saltlake-2" + //RegionSABogota1 region Bogota + RegionSABogota1 Region = "sa-bogota-1" + //RegionSAValparaiso1 region Valparaiso + RegionSAValparaiso1 Region = "sa-valparaiso-1" + //RegionAPSingapore2 region Singapore + RegionAPSingapore2 Region = "ap-singapore-2" + //RegionMERiyadh1 region Riyadh + RegionMERiyadh1 Region = "me-riyadh-1" + //RegionAPDelhi1 region Delhi + RegionAPDelhi1 Region = "ap-delhi-1" + //RegionAPBatam1 region Batam + RegionAPBatam1 Region = "ap-batam-1" + //RegionUSLangley1 region Langley + RegionUSLangley1 Region = "us-langley-1" + //RegionUSLuke1 region Luke + RegionUSLuke1 Region = "us-luke-1" + //RegionUSGovAshburn1 gov region Ashburn + RegionUSGovAshburn1 Region = "us-gov-ashburn-1" + //RegionUSGovChicago1 gov region Chicago + RegionUSGovChicago1 Region = "us-gov-chicago-1" + //RegionUSGovPhoenix1 gov region Phoenix + RegionUSGovPhoenix1 Region = "us-gov-phoenix-1" + //RegionUKGovLondon1 gov region London + RegionUKGovLondon1 Region = "uk-gov-london-1" + //RegionUKGovCardiff1 gov region Cardiff + RegionUKGovCardiff1 Region = "uk-gov-cardiff-1" + //RegionAPChiyoda1 region Chiyoda + RegionAPChiyoda1 Region = "ap-chiyoda-1" + //RegionAPIbaraki1 region Ibaraki + RegionAPIbaraki1 Region = "ap-ibaraki-1" + //RegionMEDccMuscat1 region Muscat + RegionMEDccMuscat1 Region = "me-dcc-muscat-1" + //RegionAPDccCanberra1 region Canberra + RegionAPDccCanberra1 Region = "ap-dcc-canberra-1" + //RegionEUDccMilan1 region Milan + RegionEUDccMilan1 Region = "eu-dcc-milan-1" + //RegionEUDccMilan2 region Milan + RegionEUDccMilan2 Region = "eu-dcc-milan-2" + //RegionEUDccDublin2 region Dublin + RegionEUDccDublin2 Region = "eu-dcc-dublin-2" + //RegionEUDccRating2 region Rating + RegionEUDccRating2 Region = "eu-dcc-rating-2" + //RegionEUDccRating1 region Rating + RegionEUDccRating1 Region = "eu-dcc-rating-1" + //RegionEUDccDublin1 region Dublin + RegionEUDccDublin1 Region = "eu-dcc-dublin-1" + //RegionAPDccGazipur1 region Gazipur + RegionAPDccGazipur1 Region = "ap-dcc-gazipur-1" + //RegionEUMadrid2 region Madrid + RegionEUMadrid2 Region = "eu-madrid-2" + //RegionEUFrankfurt2 region Frankfurt + RegionEUFrankfurt2 Region = "eu-frankfurt-2" + //RegionEUJovanovac1 region Jovanovac + RegionEUJovanovac1 Region = "eu-jovanovac-1" + //RegionMEDccDoha1 region Doha + RegionMEDccDoha1 Region = "me-dcc-doha-1" + //RegionUSSomerset1 region Somerset + RegionUSSomerset1 Region = "us-somerset-1" + //RegionUSThames1 region Thames + RegionUSThames1 Region = "us-thames-1" + //RegionEUDccZurich1 region Zurich + RegionEUDccZurich1 Region = "eu-dcc-zurich-1" + //RegionEUCrissier1 region Crissier + RegionEUCrissier1 Region = "eu-crissier-1" + //RegionMEAbudhabi3 region Abudhabi + RegionMEAbudhabi3 Region = "me-abudhabi-3" + //RegionMEAlain1 region Alain + RegionMEAlain1 Region = "me-alain-1" + //RegionMEAbudhabi2 region Abudhabi + RegionMEAbudhabi2 Region = "me-abudhabi-2" + //RegionMEAbudhabi4 region Abudhabi + RegionMEAbudhabi4 Region = "me-abudhabi-4" + //RegionAPSeoul2 region Seoul + RegionAPSeoul2 Region = "ap-seoul-2" + //RegionAPSuwon1 region Suwon + RegionAPSuwon1 Region = "ap-suwon-1" + //RegionAPChuncheon2 region Chuncheon + RegionAPChuncheon2 Region = "ap-chuncheon-2" + //RegionUSAshburn2 region Ashburn + RegionUSAshburn2 Region = "us-ashburn-2" + //RegionUSNewark1 region Newark + RegionUSNewark1 Region = "us-newark-1" + //RegionEUBudapest1 region Budapest + RegionEUBudapest1 Region = "eu-budapest-1" ) var shortNameRegion = map[string]Region{ - "yny": RegionAPChuncheon1, - "hyd": RegionAPHyderabad1, - "mel": RegionAPMelbourne1, - "bom": RegionAPMumbai1, - "kix": RegionAPOsaka1, - "icn": RegionAPSeoul1, - "syd": RegionAPSydney1, - "nrt": RegionAPTokyo1, - "yul": RegionCAMontreal1, - "yyz": RegionCAToronto1, - "ams": RegionEUAmsterdam1, - "fra": RegionFRA, - "zrh": RegionEUZurich1, - "jed": RegionMEJeddah1, - "dxb": RegionMEDubai1, - "gru": RegionSASaopaulo1, - "cwl": RegionUKCardiff1, - "lhr": RegionLHR, - "iad": RegionIAD, - "phx": RegionPHX, - "sjc": RegionSJC1, - "vcp": RegionSAVinhedo1, - "scl": RegionSASantiago1, - "mtz": RegionILJerusalem1, - "mrs": RegionEUMarseille1, - "sin": RegionAPSingapore1, - "auh": RegionMEAbudhabi1, - "lin": RegionEUMilan1, - "arn": RegionEUStockholm1, - "jnb": RegionAFJohannesburg1, - "cdg": RegionEUParis1, - "qro": RegionMXQueretaro1, - "mad": RegionEUMadrid1, - "ord": RegionUSChicago1, - "mty": RegionMXMonterrey1, - "aga": RegionUSSaltlake2, - "bog": RegionSABogota1, - "vap": RegionSAValparaiso1, - "xsp": RegionAPSingapore2, - "ruh": RegionMERiyadh1, - "onm": RegionAPDelhi1, - "hsg": RegionAPBatam1, - "lfi": RegionUSLangley1, - "luf": RegionUSLuke1, - "ric": RegionUSGovAshburn1, - "pia": RegionUSGovChicago1, - "tus": RegionUSGovPhoenix1, - "ltn": RegionUKGovLondon1, - "brs": RegionUKGovCardiff1, - "nja": RegionAPChiyoda1, - "ukb": RegionAPIbaraki1, - "mct": RegionMEDccMuscat1, - "wga": RegionAPDccCanberra1, - "bgy": RegionEUDccMilan1, - "mxp": RegionEUDccMilan2, - "snn": RegionEUDccDublin2, - "dtm": RegionEUDccRating2, - "dus": RegionEUDccRating1, - "ork": RegionEUDccDublin1, - "dac": RegionAPDccGazipur1, - "vll": RegionEUMadrid2, - "str": RegionEUFrankfurt2, - "beg": RegionEUJovanovac1, - "doh": RegionMEDccDoha1, - "ebb": RegionUSSomerset1, - "ebl": RegionUSThames1, - "avz": RegionEUDccZurich1, - "avf": RegionEUCrissier1, - "ahu": RegionMEAbudhabi3, - "rba": RegionMEAlain1, - "rkt": RegionMEAbudhabi2, - "shj": RegionMEAbudhabi4, - "dtz": RegionAPSeoul2, - "dln": RegionAPSuwon1, - "bno": RegionAPChuncheon2, - "yxj": RegionUSAshburn2, + "yny": RegionAPChuncheon1, + "hyd": RegionAPHyderabad1, + "mel": RegionAPMelbourne1, + "bom": RegionAPMumbai1, + "kix": RegionAPOsaka1, + "icn": RegionAPSeoul1, + "syd": RegionAPSydney1, + "nrt": RegionAPTokyo1, + "yul": RegionCAMontreal1, + "yyz": RegionCAToronto1, + "ams": RegionEUAmsterdam1, + "fra": RegionFRA, + "zrh": RegionEUZurich1, + "jed": RegionMEJeddah1, + "dxb": RegionMEDubai1, + "gru": RegionSASaopaulo1, + "cwl": RegionUKCardiff1, + "lhr": RegionLHR, + "iad": RegionIAD, + "phx": RegionPHX, + "sjc": RegionSJC1, + "vcp": RegionSAVinhedo1, + "scl": RegionSASantiago1, + "mtz": RegionILJerusalem1, + "mrs": RegionEUMarseille1, + "sin": RegionAPSingapore1, + "auh": RegionMEAbudhabi1, + "lin": RegionEUMilan1, + "arn": RegionEUStockholm1, + "jnb": RegionAFJohannesburg1, + "cdg": RegionEUParis1, + "qro": RegionMXQueretaro1, + "mad": RegionEUMadrid1, + "ord": RegionUSChicago1, + "mty": RegionMXMonterrey1, + "aga": RegionUSSaltlake2, + "bog": RegionSABogota1, + "vap": RegionSAValparaiso1, + "xsp": RegionAPSingapore2, + "ruh": RegionMERiyadh1, + "onm": RegionAPDelhi1, + "hsg": RegionAPBatam1, + "lfi": RegionUSLangley1, + "luf": RegionUSLuke1, + "ric": RegionUSGovAshburn1, + "pia": RegionUSGovChicago1, + "tus": RegionUSGovPhoenix1, + "ltn": RegionUKGovLondon1, + "brs": RegionUKGovCardiff1, + "nja": RegionAPChiyoda1, + "ukb": RegionAPIbaraki1, + "mct": RegionMEDccMuscat1, + "wga": RegionAPDccCanberra1, + "bgy": RegionEUDccMilan1, + "mxp": RegionEUDccMilan2, + "snn": RegionEUDccDublin2, + "dtm": RegionEUDccRating2, + "dus": RegionEUDccRating1, + "ork": RegionEUDccDublin1, + "dac": RegionAPDccGazipur1, + "vll": RegionEUMadrid2, + "str": RegionEUFrankfurt2, + "beg": RegionEUJovanovac1, + "doh": RegionMEDccDoha1, + "ebb": RegionUSSomerset1, + "ebl": RegionUSThames1, + "avz": RegionEUDccZurich1, + "avf": RegionEUCrissier1, + "ahu": RegionMEAbudhabi3, + "rba": RegionMEAlain1, + "rkt": RegionMEAbudhabi2, + "shj": RegionMEAbudhabi4, + "dtz": RegionAPSeoul2, + "dln": RegionAPSuwon1, + "bno": RegionAPChuncheon2, + "yxj": RegionUSAshburn2, + "pgc": RegionUSNewark1, + "jsk": RegionEUBudapest1, } var realm = map[string]string{ - "oc1": "oraclecloud.com", - "oc2": "oraclegovcloud.com", - "oc3": "oraclegovcloud.com", - "oc4": "oraclegovcloud.uk", - "oc8": "oraclecloud8.com", - "oc9": "oraclecloud9.com", - "oc10": "oraclecloud10.com", - "oc14": "oraclecloud14.com", - "oc15": "oraclecloud15.com", - "oc19": "oraclecloud.eu", - "oc20": "oraclecloud20.com", - "oc21": "oraclecloud21.com", - "oc23": "oraclecloud23.com", - "oc24": "oraclecloud24.com", - "oc26": "oraclecloud26.com", - "oc29": "oraclecloud29.com", - "oc35": "oraclecloud35.com", - "oc42": "oraclecloud42.com", + "oc1": "oraclecloud.com", + "oc2": "oraclegovcloud.com", + "oc3": "oraclegovcloud.com", + "oc4": "oraclegovcloud.uk", + "oc8": "oraclecloud8.com", + "oc9": "oraclecloud9.com", + "oc10": "oraclecloud10.com", + "oc14": "oraclecloud14.com", + "oc15": "oraclecloud15.com", + "oc19": "oraclecloud.eu", + "oc20": "oraclecloud20.com", + "oc21": "oraclecloud21.com", + "oc23": "oraclecloud23.com", + "oc24": "oraclecloud24.com", + "oc26": "oraclecloud26.com", + "oc29": "oraclecloud29.com", + "oc35": "oraclecloud35.com", + "oc42": "oraclecloud42.com", + "oc51": "oraclecloud51.com", } var regionRealm = map[Region]string{ - RegionAPChuncheon1: "oc1", - RegionAPHyderabad1: "oc1", - RegionAPMelbourne1: "oc1", - RegionAPMumbai1: "oc1", - RegionAPOsaka1: "oc1", - RegionAPSeoul1: "oc1", - RegionAPSydney1: "oc1", - RegionAPTokyo1: "oc1", - RegionCAMontreal1: "oc1", - RegionCAToronto1: "oc1", - RegionEUAmsterdam1: "oc1", - RegionFRA: "oc1", - RegionEUZurich1: "oc1", - RegionMEJeddah1: "oc1", - RegionMEDubai1: "oc1", - RegionSASaopaulo1: "oc1", - RegionUKCardiff1: "oc1", - RegionLHR: "oc1", - RegionIAD: "oc1", - RegionPHX: "oc1", - RegionSJC1: "oc1", - RegionSAVinhedo1: "oc1", - RegionSASantiago1: "oc1", - RegionILJerusalem1: "oc1", - RegionEUMarseille1: "oc1", - RegionAPSingapore1: "oc1", - RegionMEAbudhabi1: "oc1", - RegionEUMilan1: "oc1", - RegionEUStockholm1: "oc1", - RegionAFJohannesburg1: "oc1", - RegionEUParis1: "oc1", - RegionMXQueretaro1: "oc1", - RegionEUMadrid1: "oc1", - RegionUSChicago1: "oc1", - RegionMXMonterrey1: "oc1", - RegionUSSaltlake2: "oc1", - RegionSABogota1: "oc1", - RegionSAValparaiso1: "oc1", - RegionAPSingapore2: "oc1", - RegionMERiyadh1: "oc1", - RegionAPDelhi1: "oc1", - RegionAPBatam1: "oc1", + RegionAPChuncheon1: "oc1", + RegionAPHyderabad1: "oc1", + RegionAPMelbourne1: "oc1", + RegionAPMumbai1: "oc1", + RegionAPOsaka1: "oc1", + RegionAPSeoul1: "oc1", + RegionAPSydney1: "oc1", + RegionAPTokyo1: "oc1", + RegionCAMontreal1: "oc1", + RegionCAToronto1: "oc1", + RegionEUAmsterdam1: "oc1", + RegionFRA: "oc1", + RegionEUZurich1: "oc1", + RegionMEJeddah1: "oc1", + RegionMEDubai1: "oc1", + RegionSASaopaulo1: "oc1", + RegionUKCardiff1: "oc1", + RegionLHR: "oc1", + RegionIAD: "oc1", + RegionPHX: "oc1", + RegionSJC1: "oc1", + RegionSAVinhedo1: "oc1", + RegionSASantiago1: "oc1", + RegionILJerusalem1: "oc1", + RegionEUMarseille1: "oc1", + RegionAPSingapore1: "oc1", + RegionMEAbudhabi1: "oc1", + RegionEUMilan1: "oc1", + RegionEUStockholm1: "oc1", + RegionAFJohannesburg1: "oc1", + RegionEUParis1: "oc1", + RegionMXQueretaro1: "oc1", + RegionEUMadrid1: "oc1", + RegionUSChicago1: "oc1", + RegionMXMonterrey1: "oc1", + RegionUSSaltlake2: "oc1", + RegionSABogota1: "oc1", + RegionSAValparaiso1: "oc1", + RegionAPSingapore2: "oc1", + RegionMERiyadh1: "oc1", + RegionAPDelhi1: "oc1", + RegionAPBatam1: "oc1", - RegionUSLangley1: "oc2", - RegionUSLuke1: "oc2", + RegionUSLangley1: "oc2", + RegionUSLuke1: "oc2", - RegionUSGovAshburn1: "oc3", - RegionUSGovChicago1: "oc3", - RegionUSGovPhoenix1: "oc3", + RegionUSGovAshburn1: "oc3", + RegionUSGovChicago1: "oc3", + RegionUSGovPhoenix1: "oc3", - RegionUKGovLondon1: "oc4", - RegionUKGovCardiff1: "oc4", + RegionUKGovLondon1: "oc4", + RegionUKGovCardiff1: "oc4", - RegionAPChiyoda1: "oc8", - RegionAPIbaraki1: "oc8", + RegionAPChiyoda1: "oc8", + RegionAPIbaraki1: "oc8", - RegionMEDccMuscat1: "oc9", + RegionMEDccMuscat1: "oc9", - RegionAPDccCanberra1: "oc10", + RegionAPDccCanberra1: "oc10", - RegionEUDccMilan1: "oc14", - RegionEUDccMilan2: "oc14", - RegionEUDccDublin2: "oc14", - RegionEUDccRating2: "oc14", - RegionEUDccRating1: "oc14", - RegionEUDccDublin1: "oc14", + RegionEUDccMilan1: "oc14", + RegionEUDccMilan2: "oc14", + RegionEUDccDublin2: "oc14", + RegionEUDccRating2: "oc14", + RegionEUDccRating1: "oc14", + RegionEUDccDublin1: "oc14", - RegionAPDccGazipur1: "oc15", + RegionAPDccGazipur1: "oc15", - RegionEUMadrid2: "oc19", - RegionEUFrankfurt2: "oc19", + RegionEUMadrid2: "oc19", + RegionEUFrankfurt2: "oc19", - RegionEUJovanovac1: "oc20", + RegionEUJovanovac1: "oc20", - RegionMEDccDoha1: "oc21", + RegionMEDccDoha1: "oc21", - RegionUSSomerset1: "oc23", - RegionUSThames1: "oc23", + RegionUSSomerset1: "oc23", + RegionUSThames1: "oc23", - RegionEUDccZurich1: "oc24", - RegionEUCrissier1: "oc24", + RegionEUDccZurich1: "oc24", + RegionEUCrissier1: "oc24", - RegionMEAbudhabi3: "oc26", - RegionMEAlain1: "oc26", + RegionMEAbudhabi3: "oc26", + RegionMEAlain1: "oc26", - RegionMEAbudhabi2: "oc29", - RegionMEAbudhabi4: "oc29", + RegionMEAbudhabi2: "oc29", + RegionMEAbudhabi4: "oc29", - RegionAPSeoul2: "oc35", - RegionAPSuwon1: "oc35", - RegionAPChuncheon2: "oc35", + RegionAPSeoul2: "oc35", + RegionAPSuwon1: "oc35", + RegionAPChuncheon2: "oc35", - RegionUSAshburn2: "oc42", + RegionUSAshburn2: "oc42", + RegionUSNewark1: "oc42", + + RegionEUBudapest1: "oc51", } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json index bda9d547a73..a62f3ca05da 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json @@ -454,5 +454,17 @@ "realmKey": "oc1", "regionIdentifier": "ap-batam-1", "realmDomainComponent": "oraclecloud.com" + }, + { + "regionKey": "pgc", + "realmKey": "oc42", + "regionIdentifier": "us-newark-1", + "realmDomainComponent": "oraclecloud42.com" + }, + { + "regionKey": "jsk", + "realmKey": "oc51", + "regionIdentifier": "eu-budapest-1", + "realmDomainComponent": "oraclecloud51.com" } ] \ No newline at end of file diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/utils/opc_request_id.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/utils/opc_request_id.go index d82f0bf5e7c..db329338349 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/utils/opc_request_id.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/utils/opc_request_id.go @@ -6,7 +6,7 @@ import ( "fmt" ) -// GenerateOpcRequestID - Reference: https://confluence.oci.oraclecorp.com/display/DEX/Request+IDs +// GenerateOpcRequestID - // Maximum segment length: 32 characters // Allowed segment contents: regular expression pattern /^[a-zA-Z0-9]{0,32}$/ func GenerateOpcRequestID() 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 621d678aa81..b4ad126155d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go @@ -12,8 +12,8 @@ import ( const ( major = "65" - minor = "97" - patch = "1" + minor = "98" + patch = "0" tag = "" ) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/core_compute_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_compute_client.go index d4ac67e879b..3106a9f864e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/core_compute_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_compute_client.go @@ -5600,7 +5600,7 @@ func (client ComputeClient) listComputeGpuMemoryClusters(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryClusterCollection/ListComputeGpuMemoryClusters" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGpuMemoryCluster/ListComputeGpuMemoryClusters" err = common.PostProcessServiceError(err, "Compute", "ListComputeGpuMemoryClusters", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_distribution_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_distribution_details.go index e7d8d53ae15..45dd35041bc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_distribution_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_distribution_details.go @@ -21,13 +21,13 @@ import ( "strings" ) -// CreateDrgRouteDistributionDetails Details used to create a route distribution. +// CreateDrgRouteDistributionDetails Details used to create an import route distribution. You can't create a new export route distribution. type CreateDrgRouteDistributionDetails struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG the DRG route table belongs to. DrgId *string `mandatory:"true" json:"drgId"` - // Whether this distribution defines how routes get imported into route tables or exported through DRG attachments. + // States that this distribution defines how routes get imported into route tables. DistributionType CreateDrgRouteDistributionDetailsDistributionTypeEnum `mandatory:"true" json:"distributionType"` // Defined tags for this resource. Each key is predefined and scoped to a diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_connection_details.go index 7e49845c0c2..d61ba16aaa4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_connection_details.go @@ -33,19 +33,6 @@ type CreateIpSecConnectionDetails struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" json:"drgId"` - // Static routes to the CPE. A static route's CIDR must not be a - // multicast address or class E address. - // Used for routing a given IPSec tunnel's traffic only if the tunnel - // is using static routing. If you configure at least one tunnel to use static routing, then - // you must provide at least one valid static route. If you configure both - // tunnels to use BGP dynamic routing, you can provide an empty list for the static routes. - // For more information, see the important note in IPSecConnection. - // The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions. - // See IPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // Example: `10.0.1.0/24` - // Example: `2001:db8::/32` - StaticRoutes []string `mandatory:"true" json:"staticRoutes"` - // Defined tags for this resource. Each key is predefined and scoped to a // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` @@ -75,6 +62,19 @@ type CreateIpSecConnectionDetails struct { // for `cpeLocalIdentifier`. CpeLocalIdentifierType CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"` + // Static routes to the CPE. A static route's CIDR must not be a + // multicast address or class E address. + // Used for routing a given IPSec tunnel's traffic only if the tunnel + // is using static routing. If you configure at least one tunnel to use static routing, then + // you must provide at least one valid static route. If you configure both + // tunnels to use BGP dynamic routing, you can provide an empty list for the static routes. + // For more information, see the important note in IPSecConnection. + // The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions. + // See IPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // Example: `10.0.1.0/24` + // Example: `2001:db8::/32` + StaticRoutes []string `mandatory:"false" json:"staticRoutes"` + // Information for creating the individual tunnels in the IPSec connection. You can provide a // maximum of 2 `tunnelConfiguration` objects in the array (one for each of the // two tunnels). diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_promotion_status_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_promotion_status_response.go new file mode 100644 index 00000000000..c69194897c4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_promotion_status_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgPromotionStatusResponse The promotion/unpromotion status of a DRG +type DrgPromotionStatusResponse struct { + + // OCID of the DRG + DrgId *string `mandatory:"true" json:"drgId"` + + // The promotion status of the DRG + DrgPromotionStatus DrgPromotionStatusResponseDrgPromotionStatusEnum `mandatory:"false" json:"drgPromotionStatus,omitempty"` + + // A map of the promotion status of each RPC connection on this DRG {conn_id -> promo_status} + RpcPromotionStatus map[string]string `mandatory:"false" json:"rpcPromotionStatus"` + + // A map of the promotion status of each VC on this DRG {conn_id -> promo_status} + VcPromotionStatus map[string]string `mandatory:"false" json:"vcPromotionStatus"` + + // A map of the promotion status of each IPSec connection on this DRG {conn_id -> promo_status} + IpsecPromotionStatus map[string]string `mandatory:"false" json:"ipsecPromotionStatus"` +} + +func (m DrgPromotionStatusResponse) 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 DrgPromotionStatusResponse) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingDrgPromotionStatusResponseDrgPromotionStatusEnum(string(m.DrgPromotionStatus)); !ok && m.DrgPromotionStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DrgPromotionStatus: %s. Supported values are: %s.", m.DrgPromotionStatus, strings.Join(GetDrgPromotionStatusResponseDrgPromotionStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgPromotionStatusResponseDrgPromotionStatusEnum Enum with underlying type: string +type DrgPromotionStatusResponseDrgPromotionStatusEnum string + +// Set of constants representing the allowable values for DrgPromotionStatusResponseDrgPromotionStatusEnum +const ( + DrgPromotionStatusResponseDrgPromotionStatusUnpromoted DrgPromotionStatusResponseDrgPromotionStatusEnum = "UNPROMOTED" + DrgPromotionStatusResponseDrgPromotionStatusPromoting DrgPromotionStatusResponseDrgPromotionStatusEnum = "PROMOTING" + DrgPromotionStatusResponseDrgPromotionStatusPromoted DrgPromotionStatusResponseDrgPromotionStatusEnum = "PROMOTED" + DrgPromotionStatusResponseDrgPromotionStatusUnpromoting DrgPromotionStatusResponseDrgPromotionStatusEnum = "UNPROMOTING" +) + +var mappingDrgPromotionStatusResponseDrgPromotionStatusEnum = map[string]DrgPromotionStatusResponseDrgPromotionStatusEnum{ + "UNPROMOTED": DrgPromotionStatusResponseDrgPromotionStatusUnpromoted, + "PROMOTING": DrgPromotionStatusResponseDrgPromotionStatusPromoting, + "PROMOTED": DrgPromotionStatusResponseDrgPromotionStatusPromoted, + "UNPROMOTING": DrgPromotionStatusResponseDrgPromotionStatusUnpromoting, +} + +var mappingDrgPromotionStatusResponseDrgPromotionStatusEnumLowerCase = map[string]DrgPromotionStatusResponseDrgPromotionStatusEnum{ + "unpromoted": DrgPromotionStatusResponseDrgPromotionStatusUnpromoted, + "promoting": DrgPromotionStatusResponseDrgPromotionStatusPromoting, + "promoted": DrgPromotionStatusResponseDrgPromotionStatusPromoted, + "unpromoting": DrgPromotionStatusResponseDrgPromotionStatusUnpromoting, +} + +// GetDrgPromotionStatusResponseDrgPromotionStatusEnumValues Enumerates the set of values for DrgPromotionStatusResponseDrgPromotionStatusEnum +func GetDrgPromotionStatusResponseDrgPromotionStatusEnumValues() []DrgPromotionStatusResponseDrgPromotionStatusEnum { + values := make([]DrgPromotionStatusResponseDrgPromotionStatusEnum, 0) + for _, v := range mappingDrgPromotionStatusResponseDrgPromotionStatusEnum { + values = append(values, v) + } + return values +} + +// GetDrgPromotionStatusResponseDrgPromotionStatusEnumStringValues Enumerates the set of values in String for DrgPromotionStatusResponseDrgPromotionStatusEnum +func GetDrgPromotionStatusResponseDrgPromotionStatusEnumStringValues() []string { + return []string{ + "UNPROMOTED", + "PROMOTING", + "PROMOTED", + "UNPROMOTING", + } +} + +// GetMappingDrgPromotionStatusResponseDrgPromotionStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgPromotionStatusResponseDrgPromotionStatusEnum(val string) (DrgPromotionStatusResponseDrgPromotionStatusEnum, bool) { + enum, ok := mappingDrgPromotionStatusResponseDrgPromotionStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution.go index 8d6cafc9041..558b1e544a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution.go @@ -22,16 +22,15 @@ import ( ) // DrgRouteDistribution A route distribution establishes how routes get imported into DRG route tables and exported through the DRG attachments. -// A route distribution is a list of statements. Each statement consists of a set of matches, all of which must be `True` in order for -// the statement's action to take place. Each statement determines which routes are propagated. +// A route distribution is a list of statements. Each statement consists of a set of matches, all of which must be `True` for the statement's action to take place. Each statement determines which routes are propagated. // You can assign a route distribution as a route table's import distribution. The statements in an import // route distribution specify how how incoming route advertisements through a referenced attachment or all attachments of a certain type are inserted into the route table. // You can assign a route distribution as a DRG attachment's export distribution unless the -// attachment has the type VCN. Exporting routes through a VCN attachment is unsupported. Export +// attachment has the type `VCN`. Exporting routes through a VCN attachment is unsupported. Export // route distribution statements specify how routes in a DRG attachment's assigned table are // advertised out through the attachment. When a DRG is created, a route distribution is created // with a single ACCEPT statement with match criteria MATCH_ALL. By default, all DRG attachments -// (except for those of type VCN), are assigned this distribution. +// (except for those of type VCN), are assigned this distribution. You can't create a new export route distribution, one is created for you when the DRG is created. // // The two auto-generated DRG route tables (one as the default for VCN attachments, and the other for all other types of attachments) // are each assigned an auto generated import route distribution. The default VCN table's import distribution has a single statement with match criteria MATCH_ALL to import routes from diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance.go index a4e3c5dfa6e..68877e95858 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance.go @@ -194,9 +194,6 @@ type Instance struct { // List of licensing configurations associated with the instance. LicensingConfigs []LicensingConfig `mandatory:"false" json:"licensingConfigs"` - - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique host group - ComputeHostGroupId *string `mandatory:"false" json:"computeHostGroupId"` } func (m Instance) String() string { @@ -255,7 +252,6 @@ func (m *Instance) UnmarshalJSON(data []byte) (e error) { PlatformConfig platformconfig `json:"platformConfig"` InstanceConfigurationId *string `json:"instanceConfigurationId"` LicensingConfigs []LicensingConfig `json:"licensingConfigs"` - ComputeHostGroupId *string `json:"computeHostGroupId"` AvailabilityDomain *string `json:"availabilityDomain"` CompartmentId *string `json:"compartmentId"` Id *string `json:"id"` @@ -350,8 +346,6 @@ func (m *Instance) UnmarshalJSON(data []byte) (e error) { m.LicensingConfigs = make([]LicensingConfig, len(model.LicensingConfigs)) copy(m.LicensingConfigs, model.LicensingConfigs) - m.ComputeHostGroupId = model.ComputeHostGroupId - m.AvailabilityDomain = model.AvailabilityDomain m.CompartmentId = model.CompartmentId diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_host_group_placement_constraint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_host_group_placement_constraint_details.go new file mode 100644 index 00000000000..b4ab9c6620d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_host_group_placement_constraint_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationHostGroupPlacementConstraintDetails The details for providing placement constraints using the compute host group OCID. +type InstanceConfigurationHostGroupPlacementConstraintDetails struct { + + // The OCID of the compute host group. This is only available for dedicated capacity customers. + ComputeHostGroupId *string `mandatory:"true" json:"computeHostGroupId"` +} + +func (m InstanceConfigurationHostGroupPlacementConstraintDetails) 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 InstanceConfigurationHostGroupPlacementConstraintDetails) 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 InstanceConfigurationHostGroupPlacementConstraintDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationHostGroupPlacementConstraintDetails InstanceConfigurationHostGroupPlacementConstraintDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationHostGroupPlacementConstraintDetails + }{ + "HOST_GROUP", + (MarshalTypeInstanceConfigurationHostGroupPlacementConstraintDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_details.go index 6b20fc8512d..617054236b9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_details.go @@ -34,6 +34,12 @@ type InstanceConfigurationLaunchInstanceDetails struct { // The OCID of the compute capacity reservation this instance is launched under. CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"` + PlacementConstraintDetails InstanceConfigurationPlacementConstraintDetails `mandatory:"false" json:"placementConstraintDetails"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + // compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. + ComputeClusterId *string `mandatory:"false" json:"computeClusterId"` + // The OCID of the compartment containing the instance. // Instances created from instance configurations are placed in the same compartment // as the instance that was used to create the instance configuration. @@ -215,6 +221,8 @@ func (m *InstanceConfigurationLaunchInstanceDetails) UnmarshalJSON(data []byte) model := struct { AvailabilityDomain *string `json:"availabilityDomain"` CapacityReservationId *string `json:"capacityReservationId"` + PlacementConstraintDetails instanceconfigurationplacementconstraintdetails `json:"placementConstraintDetails"` + ComputeClusterId *string `json:"computeClusterId"` CompartmentId *string `json:"compartmentId"` ClusterPlacementGroupId *string `json:"clusterPlacementGroupId"` CreateVnicDetails *InstanceConfigurationCreateVnicDetails `json:"createVnicDetails"` @@ -251,6 +259,18 @@ func (m *InstanceConfigurationLaunchInstanceDetails) UnmarshalJSON(data []byte) m.CapacityReservationId = model.CapacityReservationId + nn, e = model.PlacementConstraintDetails.UnmarshalPolymorphicJSON(model.PlacementConstraintDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.PlacementConstraintDetails = nn.(InstanceConfigurationPlacementConstraintDetails) + } else { + m.PlacementConstraintDetails = nil + } + + m.ComputeClusterId = model.ComputeClusterId + m.CompartmentId = model.CompartmentId m.ClusterPlacementGroupId = model.ClusterPlacementGroupId diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_placement_constraint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_placement_constraint_details.go new file mode 100644 index 00000000000..ef551444354 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_placement_constraint_details.go @@ -0,0 +1,83 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// The required permissions are documented in the +// Details for the Core Services (https://docs.oracle.com/iaas/Content/Identity/Reference/corepolicyreference.htm) article. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationPlacementConstraintDetails The details for providing placement constraints. +type InstanceConfigurationPlacementConstraintDetails interface { +} + +type instanceconfigurationplacementconstraintdetails struct { + JsonData []byte + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *instanceconfigurationplacementconstraintdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerinstanceconfigurationplacementconstraintdetails instanceconfigurationplacementconstraintdetails + s := struct { + Model Unmarshalerinstanceconfigurationplacementconstraintdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *instanceconfigurationplacementconstraintdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "HOST_GROUP": + mm := InstanceConfigurationHostGroupPlacementConstraintDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for InstanceConfigurationPlacementConstraintDetails: %s.", m.Type) + return *m, nil + } +} + +func (m instanceconfigurationplacementconstraintdetails) 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 instanceconfigurationplacementconstraintdetails) 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/core/inventory_resource_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_resource_summary.go index 5c88f6f7889..01a9d923cc1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_resource_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/inventory_resource_summary.go @@ -30,6 +30,9 @@ type InventoryResourceSummary struct { // Resource types of the resource. ResourceType InventoryResourceSummaryResourceTypeEnum `mandatory:"false" json:"resourceType,omitempty"` + // Mac Address of IP Resource + MacAddress *string `mandatory:"false" json:"macAddress"` + // Lists the 'IpAddressCollection' object. IpAddressCollection []InventoryIpAddressSummary `mandatory:"false" json:"ipAddressCollection"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_subnet_resource_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_subnet_resource_summary.go index 320f2cd34df..09734abff9f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_subnet_resource_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_inventory_subnet_resource_summary.go @@ -51,6 +51,9 @@ type IpInventorySubnetResourceSummary struct { // Name of the created resource. AssignedResourceName *string `mandatory:"false" json:"assignedResourceName"` + // Primary flag for IP Resource + IsPrimary *bool `mandatory:"false" json:"isPrimary"` + // Type of the resource. AssignedResourceType IpInventorySubnetResourceSummaryAssignedResourceTypeEnum `mandatory:"false" json:"assignedResourceType,omitempty"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection.go index 8265956dbf5..4e18a122979 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection.go @@ -56,18 +56,6 @@ type IpSecConnection struct { // The IPSec connection's current state. LifecycleState IpSecConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // Static routes to the CPE. The CIDR must not be a - // multicast address or class E address. - // Used for routing a given IPSec tunnel's traffic only if the tunnel - // is using static routing. If you configure at least one tunnel to use static routing, then - // you must provide at least one valid static route. If you configure both - // tunnels to use BGP dynamic routing, you can provide an empty list for the static routes. - // The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions. - // See IPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // Example: `10.0.1.0/24` - // Example: `2001:db8::/32` - StaticRoutes []string `mandatory:"true" json:"staticRoutes"` - // Defined tags for this resource. Each key is predefined and scoped to a // namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` @@ -97,6 +85,18 @@ type IpSecConnection struct { // for `cpeLocalIdentifier`. CpeLocalIdentifierType IpSecConnectionCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"` + // Static routes to the CPE. The CIDR must not be a + // multicast address or class E address. + // Used for routing a given IPSec tunnel's traffic only if the tunnel + // is using static routing. If you configure at least one tunnel to use static routing, then + // you must provide at least one valid static route. If you configure both + // tunnels to use BGP dynamic routing, you can provide an empty list for the static routes. + // The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions. + // See IPv6 Addresses (https://docs.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // Example: `10.0.1.0/24` + // Example: `2001:db8::/32` + StaticRoutes []string `mandatory:"false" json:"staticRoutes"` + // The date and time the IPSec connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). // Example: `2016-08-25T21:10:29.600Z` TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_details.go index f3d9424653a..204f17a8614 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_details.go @@ -87,9 +87,6 @@ type LaunchInstanceDetails struct { // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // The OCID of the compute host group attached to the host where the bare metal instance will be launched. - ComputeHostGroupId *string `mandatory:"false" json:"computeHostGroupId"` - // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the // compute cluster (https://docs.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. ComputeClusterId *string `mandatory:"false" json:"computeClusterId"` @@ -236,7 +233,6 @@ func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error) { FaultDomain *string `json:"faultDomain"` ClusterPlacementGroupId *string `json:"clusterPlacementGroupId"` FreeformTags map[string]string `json:"freeformTags"` - ComputeHostGroupId *string `json:"computeHostGroupId"` ComputeClusterId *string `json:"computeClusterId"` HostnameLabel *string `json:"hostnameLabel"` ImageId *string `json:"imageId"` @@ -286,8 +282,6 @@ func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error) { m.FreeformTags = model.FreeformTags - m.ComputeHostGroupId = model.ComputeHostGroupId - m.ComputeClusterId = model.ComputeClusterId m.HostnameLabel = model.HostnameLabel diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_request_response.go index a853f3175cc..7cb42aca447 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_request_response.go @@ -35,6 +35,11 @@ type TerminateInstanceRequest struct { // default value is `true`. PreserveDataVolumesCreatedAtLaunch *bool `mandatory:"false" contributesTo:"query" name:"preserveDataVolumesCreatedAtLaunch"` + // This optional parameter overrides recycle level for hosts. The parameter can be used when hosts are associated + // with a Capacity Reservation. + // * `FULL_RECYCLE` - Does not skip host wipe. This is the default behavior. + RecycleLevel TerminateInstanceRecycleLevelEnum `mandatory:"false" contributesTo:"query" name:"recycleLevel" omitEmpty:"true"` + // Unique Oracle-assigned identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -75,6 +80,9 @@ func (request TerminateInstanceRequest) RetryPolicy() *common.RetryPolicy { // Not recommended for calling this function directly func (request TerminateInstanceRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingTerminateInstanceRecycleLevelEnum(string(request.RecycleLevel)); !ok && request.RecycleLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecycleLevel: %s. Supported values are: %s.", request.RecycleLevel, strings.Join(GetTerminateInstanceRecycleLevelEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -100,3 +108,41 @@ func (response TerminateInstanceResponse) String() string { func (response TerminateInstanceResponse) HTTPResponse() *http.Response { return response.RawResponse } + +// TerminateInstanceRecycleLevelEnum Enum with underlying type: string +type TerminateInstanceRecycleLevelEnum string + +// Set of constants representing the allowable values for TerminateInstanceRecycleLevelEnum +const ( + TerminateInstanceRecycleLevelFullRecycle TerminateInstanceRecycleLevelEnum = "FULL_RECYCLE" +) + +var mappingTerminateInstanceRecycleLevelEnum = map[string]TerminateInstanceRecycleLevelEnum{ + "FULL_RECYCLE": TerminateInstanceRecycleLevelFullRecycle, +} + +var mappingTerminateInstanceRecycleLevelEnumLowerCase = map[string]TerminateInstanceRecycleLevelEnum{ + "full_recycle": TerminateInstanceRecycleLevelFullRecycle, +} + +// GetTerminateInstanceRecycleLevelEnumValues Enumerates the set of values for TerminateInstanceRecycleLevelEnum +func GetTerminateInstanceRecycleLevelEnumValues() []TerminateInstanceRecycleLevelEnum { + values := make([]TerminateInstanceRecycleLevelEnum, 0) + for _, v := range mappingTerminateInstanceRecycleLevelEnum { + values = append(values, v) + } + return values +} + +// GetTerminateInstanceRecycleLevelEnumStringValues Enumerates the set of values in String for TerminateInstanceRecycleLevelEnum +func GetTerminateInstanceRecycleLevelEnumStringValues() []string { + return []string{ + "FULL_RECYCLE", + } +} + +// GetMappingTerminateInstanceRecycleLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTerminateInstanceRecycleLevelEnum(val string) (TerminateInstanceRecycleLevelEnum, bool) { + enum, ok := mappingTerminateInstanceRecycleLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/all_user_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/all_user_condition.go new file mode 100644 index 00000000000..58e426b3059 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/all_user_condition.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AllUserCondition The audit policy provisioning conditions. +type AllUserCondition struct { + + // Specifies whether to include or exclude the specified users or roles. + EntitySelection PolicyConditionEntitySelectionEnum `mandatory:"true" json:"entitySelection"` + + // The operation status that the policy must be enabled for. + OperationStatus PolicyConditionOperationStatusEnum `mandatory:"true" json:"operationStatus"` +} + +// GetEntitySelection returns EntitySelection +func (m AllUserCondition) GetEntitySelection() PolicyConditionEntitySelectionEnum { + return m.EntitySelection +} + +// GetOperationStatus returns OperationStatus +func (m AllUserCondition) GetOperationStatus() PolicyConditionOperationStatusEnum { + return m.OperationStatus +} + +func (m AllUserCondition) 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 AllUserCondition) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPolicyConditionEntitySelectionEnum(string(m.EntitySelection)); !ok && m.EntitySelection != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EntitySelection: %s. Supported values are: %s.", m.EntitySelection, strings.Join(GetPolicyConditionEntitySelectionEnumStringValues(), ","))) + } + if _, ok := GetMappingPolicyConditionOperationStatusEnum(string(m.OperationStatus)); !ok && m.OperationStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationStatus: %s. Supported values are: %s.", m.OperationStatus, strings.Join(GetPolicyConditionOperationStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AllUserCondition) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAllUserCondition AllUserCondition + s := struct { + DiscriminatorParam string `json:"entityType"` + MarshalTypeAllUserCondition + }{ + "ALL_USERS", + (MarshalTypeAllUserCondition)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/apply_security_assessment_template_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/apply_security_assessment_template_request_response.go new file mode 100644 index 00000000000..99908245b51 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/apply_security_assessment_template_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ApplySecurityAssessmentTemplateRequest wrapper for the ApplySecurityAssessmentTemplate operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ApplySecurityAssessmentTemplate.go.html to see an example of how to use ApplySecurityAssessmentTemplateRequest. +type ApplySecurityAssessmentTemplateRequest struct { + + // The OCID of the security assessment. + SecurityAssessmentId *string `mandatory:"true" contributesTo:"path" name:"securityAssessmentId"` + + // Details of template that need to be applied to specified security assessment. + SecurityAssessmentTemplateDetails `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 might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ApplySecurityAssessmentTemplateRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ApplySecurityAssessmentTemplateRequest) 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 ApplySecurityAssessmentTemplateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ApplySecurityAssessmentTemplateRequest) 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 ApplySecurityAssessmentTemplateRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ApplySecurityAssessmentTemplateResponse wrapper for the ApplySecurityAssessmentTemplate operation +type ApplySecurityAssessmentTemplateResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ApplySecurityAssessmentTemplateResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ApplySecurityAssessmentTemplateResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/associated_resource_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/associated_resource_collection.go new file mode 100644 index 00000000000..42cb8c9b7b3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/associated_resource_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AssociatedResourceCollection The details of associated resources of an attribute set. +type AssociatedResourceCollection struct { + + // Array of associated resources. + Items []AssociatedResourceSummary `mandatory:"true" json:"items"` +} + +func (m AssociatedResourceCollection) 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 AssociatedResourceCollection) 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/datasafe/associated_resource_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/associated_resource_summary.go new file mode 100644 index 00000000000..07e7fb54c99 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/associated_resource_summary.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AssociatedResourceSummary Summary details of the associated resource of an attribute set. +type AssociatedResourceSummary struct { + + // The resource type that is associated with the attribute set. + AssociatedResourceType AssociatedResourceSummaryAssociatedResourceTypeEnum `mandatory:"false" json:"associatedResourceType,omitempty"` + + // The OCID of the resource that is associated with the attribute set. + AssociatedResourceId *string `mandatory:"false" json:"associatedResourceId"` + + // The display name of the resource that is associated with the attribute set. The name does not have to be unique, and is changeable. + AssociatedResourceName *string `mandatory:"false" json:"associatedResourceName"` + + // The date and time when associated started between resource and the attribute set, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The date and time when associated is removed between resources and the attribute set, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` +} + +func (m AssociatedResourceSummary) 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 AssociatedResourceSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingAssociatedResourceSummaryAssociatedResourceTypeEnum(string(m.AssociatedResourceType)); !ok && m.AssociatedResourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AssociatedResourceType: %s. Supported values are: %s.", m.AssociatedResourceType, strings.Join(GetAssociatedResourceSummaryAssociatedResourceTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AssociatedResourceSummaryAssociatedResourceTypeEnum Enum with underlying type: string +type AssociatedResourceSummaryAssociatedResourceTypeEnum string + +// Set of constants representing the allowable values for AssociatedResourceSummaryAssociatedResourceTypeEnum +const ( + AssociatedResourceSummaryAssociatedResourceTypeAuditPolicy AssociatedResourceSummaryAssociatedResourceTypeEnum = "AUDIT_POLICY" +) + +var mappingAssociatedResourceSummaryAssociatedResourceTypeEnum = map[string]AssociatedResourceSummaryAssociatedResourceTypeEnum{ + "AUDIT_POLICY": AssociatedResourceSummaryAssociatedResourceTypeAuditPolicy, +} + +var mappingAssociatedResourceSummaryAssociatedResourceTypeEnumLowerCase = map[string]AssociatedResourceSummaryAssociatedResourceTypeEnum{ + "audit_policy": AssociatedResourceSummaryAssociatedResourceTypeAuditPolicy, +} + +// GetAssociatedResourceSummaryAssociatedResourceTypeEnumValues Enumerates the set of values for AssociatedResourceSummaryAssociatedResourceTypeEnum +func GetAssociatedResourceSummaryAssociatedResourceTypeEnumValues() []AssociatedResourceSummaryAssociatedResourceTypeEnum { + values := make([]AssociatedResourceSummaryAssociatedResourceTypeEnum, 0) + for _, v := range mappingAssociatedResourceSummaryAssociatedResourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetAssociatedResourceSummaryAssociatedResourceTypeEnumStringValues Enumerates the set of values in String for AssociatedResourceSummaryAssociatedResourceTypeEnum +func GetAssociatedResourceSummaryAssociatedResourceTypeEnumStringValues() []string { + return []string{ + "AUDIT_POLICY", + } +} + +// GetMappingAssociatedResourceSummaryAssociatedResourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAssociatedResourceSummaryAssociatedResourceTypeEnum(val string) (AssociatedResourceSummaryAssociatedResourceTypeEnum, bool) { + enum, ok := mappingAssociatedResourceSummaryAssociatedResourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/attribute_set.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/attribute_set.go new file mode 100644 index 00000000000..8fb9f687a36 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/attribute_set.go @@ -0,0 +1,240 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttributeSet Represents an attribute set. An attribute set is a collection of data attributes defined by the user. i.e an attribute set of ip addresses, os user names or database privileged users. +type AttributeSet struct { + + // The OCID of an attribute set. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment where the attribute set is stored. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The display name of an attribute set. The name does not have to be unique, and is changeable. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The current state of an attribute set. + LifecycleState AttributeSetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time an attribute set was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The type of attribute set. + AttributeSetType AttributeSetAttributeSetTypeEnum `mandatory:"true" json:"attributeSetType"` + + // The list of values in an attribute set + AttributeSetValues []string `mandatory:"true" json:"attributeSetValues"` + + // Description of an attribute set. + Description *string `mandatory:"false" json:"description"` + + // The date and time an attribute set was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // A boolean flag indicating to list user defined or seeded attribute sets. + IsUserDefined *bool `mandatory:"false" json:"isUserDefined"` + + // Indicates whether the attribute set is in use by other resource. + InUse AttributeSetInUseEnum `mandatory:"false" json:"inUse,omitempty"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m AttributeSet) 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 AttributeSet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAttributeSetLifecycleStateEnum(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(GetAttributeSetLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingAttributeSetAttributeSetTypeEnum(string(m.AttributeSetType)); !ok && m.AttributeSetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AttributeSetType: %s. Supported values are: %s.", m.AttributeSetType, strings.Join(GetAttributeSetAttributeSetTypeEnumStringValues(), ","))) + } + + if _, ok := GetMappingAttributeSetInUseEnum(string(m.InUse)); !ok && m.InUse != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for InUse: %s. Supported values are: %s.", m.InUse, strings.Join(GetAttributeSetInUseEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AttributeSetLifecycleStateEnum Enum with underlying type: string +type AttributeSetLifecycleStateEnum string + +// Set of constants representing the allowable values for AttributeSetLifecycleStateEnum +const ( + AttributeSetLifecycleStateCreating AttributeSetLifecycleStateEnum = "CREATING" + AttributeSetLifecycleStateActive AttributeSetLifecycleStateEnum = "ACTIVE" + AttributeSetLifecycleStateFailed AttributeSetLifecycleStateEnum = "FAILED" + AttributeSetLifecycleStateDeleting AttributeSetLifecycleStateEnum = "DELETING" + AttributeSetLifecycleStateUpdating AttributeSetLifecycleStateEnum = "UPDATING" +) + +var mappingAttributeSetLifecycleStateEnum = map[string]AttributeSetLifecycleStateEnum{ + "CREATING": AttributeSetLifecycleStateCreating, + "ACTIVE": AttributeSetLifecycleStateActive, + "FAILED": AttributeSetLifecycleStateFailed, + "DELETING": AttributeSetLifecycleStateDeleting, + "UPDATING": AttributeSetLifecycleStateUpdating, +} + +var mappingAttributeSetLifecycleStateEnumLowerCase = map[string]AttributeSetLifecycleStateEnum{ + "creating": AttributeSetLifecycleStateCreating, + "active": AttributeSetLifecycleStateActive, + "failed": AttributeSetLifecycleStateFailed, + "deleting": AttributeSetLifecycleStateDeleting, + "updating": AttributeSetLifecycleStateUpdating, +} + +// GetAttributeSetLifecycleStateEnumValues Enumerates the set of values for AttributeSetLifecycleStateEnum +func GetAttributeSetLifecycleStateEnumValues() []AttributeSetLifecycleStateEnum { + values := make([]AttributeSetLifecycleStateEnum, 0) + for _, v := range mappingAttributeSetLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetAttributeSetLifecycleStateEnumStringValues Enumerates the set of values in String for AttributeSetLifecycleStateEnum +func GetAttributeSetLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "FAILED", + "DELETING", + "UPDATING", + } +} + +// GetMappingAttributeSetLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAttributeSetLifecycleStateEnum(val string) (AttributeSetLifecycleStateEnum, bool) { + enum, ok := mappingAttributeSetLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// AttributeSetAttributeSetTypeEnum Enum with underlying type: string +type AttributeSetAttributeSetTypeEnum string + +// Set of constants representing the allowable values for AttributeSetAttributeSetTypeEnum +const ( + AttributeSetAttributeSetTypeIpAddress AttributeSetAttributeSetTypeEnum = "IP_ADDRESS" + AttributeSetAttributeSetTypeClientProgram AttributeSetAttributeSetTypeEnum = "CLIENT_PROGRAM" + AttributeSetAttributeSetTypeOsUser AttributeSetAttributeSetTypeEnum = "OS_USER" + AttributeSetAttributeSetTypeDatabaseUser AttributeSetAttributeSetTypeEnum = "DATABASE_USER" + AttributeSetAttributeSetTypeDatabaseObject AttributeSetAttributeSetTypeEnum = "DATABASE_OBJECT" +) + +var mappingAttributeSetAttributeSetTypeEnum = map[string]AttributeSetAttributeSetTypeEnum{ + "IP_ADDRESS": AttributeSetAttributeSetTypeIpAddress, + "CLIENT_PROGRAM": AttributeSetAttributeSetTypeClientProgram, + "OS_USER": AttributeSetAttributeSetTypeOsUser, + "DATABASE_USER": AttributeSetAttributeSetTypeDatabaseUser, + "DATABASE_OBJECT": AttributeSetAttributeSetTypeDatabaseObject, +} + +var mappingAttributeSetAttributeSetTypeEnumLowerCase = map[string]AttributeSetAttributeSetTypeEnum{ + "ip_address": AttributeSetAttributeSetTypeIpAddress, + "client_program": AttributeSetAttributeSetTypeClientProgram, + "os_user": AttributeSetAttributeSetTypeOsUser, + "database_user": AttributeSetAttributeSetTypeDatabaseUser, + "database_object": AttributeSetAttributeSetTypeDatabaseObject, +} + +// GetAttributeSetAttributeSetTypeEnumValues Enumerates the set of values for AttributeSetAttributeSetTypeEnum +func GetAttributeSetAttributeSetTypeEnumValues() []AttributeSetAttributeSetTypeEnum { + values := make([]AttributeSetAttributeSetTypeEnum, 0) + for _, v := range mappingAttributeSetAttributeSetTypeEnum { + values = append(values, v) + } + return values +} + +// GetAttributeSetAttributeSetTypeEnumStringValues Enumerates the set of values in String for AttributeSetAttributeSetTypeEnum +func GetAttributeSetAttributeSetTypeEnumStringValues() []string { + return []string{ + "IP_ADDRESS", + "CLIENT_PROGRAM", + "OS_USER", + "DATABASE_USER", + "DATABASE_OBJECT", + } +} + +// GetMappingAttributeSetAttributeSetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAttributeSetAttributeSetTypeEnum(val string) (AttributeSetAttributeSetTypeEnum, bool) { + enum, ok := mappingAttributeSetAttributeSetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// AttributeSetInUseEnum Enum with underlying type: string +type AttributeSetInUseEnum string + +// Set of constants representing the allowable values for AttributeSetInUseEnum +const ( + AttributeSetInUseYes AttributeSetInUseEnum = "YES" + AttributeSetInUseNo AttributeSetInUseEnum = "NO" +) + +var mappingAttributeSetInUseEnum = map[string]AttributeSetInUseEnum{ + "YES": AttributeSetInUseYes, + "NO": AttributeSetInUseNo, +} + +var mappingAttributeSetInUseEnumLowerCase = map[string]AttributeSetInUseEnum{ + "yes": AttributeSetInUseYes, + "no": AttributeSetInUseNo, +} + +// GetAttributeSetInUseEnumValues Enumerates the set of values for AttributeSetInUseEnum +func GetAttributeSetInUseEnumValues() []AttributeSetInUseEnum { + values := make([]AttributeSetInUseEnum, 0) + for _, v := range mappingAttributeSetInUseEnum { + values = append(values, v) + } + return values +} + +// GetAttributeSetInUseEnumStringValues Enumerates the set of values in String for AttributeSetInUseEnum +func GetAttributeSetInUseEnumStringValues() []string { + return []string{ + "YES", + "NO", + } +} + +// GetMappingAttributeSetInUseEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAttributeSetInUseEnum(val string) (AttributeSetInUseEnum, bool) { + enum, ok := mappingAttributeSetInUseEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/attribute_set_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/attribute_set_collection.go new file mode 100644 index 00000000000..028d6e05dca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/attribute_set_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttributeSetCollection Collection of attribute sets. +type AttributeSetCollection struct { + + // Array of attribute sets. + Items []AttributeSetSummary `mandatory:"true" json:"items"` +} + +func (m AttributeSetCollection) 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 AttributeSetCollection) 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/datasafe/attribute_set_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/attribute_set_condition.go new file mode 100644 index 00000000000..a6d95bb08f6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/attribute_set_condition.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttributeSetCondition The audit policy provisioning conditions. +type AttributeSetCondition struct { + + // The OCID of the attribute set. + AttributeSetId *string `mandatory:"true" json:"attributeSetId"` + + // Specifies whether to include or exclude the specified users or roles. + EntitySelection PolicyConditionEntitySelectionEnum `mandatory:"true" json:"entitySelection"` + + // The operation status that the policy must be enabled for. + OperationStatus PolicyConditionOperationStatusEnum `mandatory:"true" json:"operationStatus"` +} + +// GetEntitySelection returns EntitySelection +func (m AttributeSetCondition) GetEntitySelection() PolicyConditionEntitySelectionEnum { + return m.EntitySelection +} + +// GetOperationStatus returns OperationStatus +func (m AttributeSetCondition) GetOperationStatus() PolicyConditionOperationStatusEnum { + return m.OperationStatus +} + +func (m AttributeSetCondition) 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 AttributeSetCondition) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPolicyConditionEntitySelectionEnum(string(m.EntitySelection)); !ok && m.EntitySelection != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EntitySelection: %s. Supported values are: %s.", m.EntitySelection, strings.Join(GetPolicyConditionEntitySelectionEnumStringValues(), ","))) + } + if _, ok := GetMappingPolicyConditionOperationStatusEnum(string(m.OperationStatus)); !ok && m.OperationStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationStatus: %s. Supported values are: %s.", m.OperationStatus, strings.Join(GetPolicyConditionOperationStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AttributeSetCondition) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAttributeSetCondition AttributeSetCondition + s := struct { + DiscriminatorParam string `json:"entityType"` + MarshalTypeAttributeSetCondition + }{ + "ATTRIBUTE_SET", + (MarshalTypeAttributeSetCondition)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/attribute_set_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/attribute_set_summary.go new file mode 100644 index 00000000000..fa612ae6818 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/attribute_set_summary.go @@ -0,0 +1,129 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttributeSetSummary Summary details of an attribute set. +type AttributeSetSummary struct { + + // The OCID of an attribute set. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment that contains attribute set. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The display name of an attribute set. The name does not have to be unique, and is changeable. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The current state of an attribute set. + LifecycleState AttributeSetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time an attribute set was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The type of attribute set. + AttributeSetType AttributeSetAttributeSetTypeEnum `mandatory:"true" json:"attributeSetType"` + + // Description of an attribute set. + Description *string `mandatory:"false" json:"description"` + + // The date and time an attribute set was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // Indicates whether the attribute set is user defined or pre defined in Data Safe. Values can either be 'true' or 'false'. + IsUserDefined *bool `mandatory:"false" json:"isUserDefined"` + + // Indicates whether the attribute set is in use by other resource. + InUse AttributeSetSummaryInUseEnum `mandatory:"false" json:"inUse,omitempty"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m AttributeSetSummary) 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 AttributeSetSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAttributeSetLifecycleStateEnum(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(GetAttributeSetLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingAttributeSetAttributeSetTypeEnum(string(m.AttributeSetType)); !ok && m.AttributeSetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AttributeSetType: %s. Supported values are: %s.", m.AttributeSetType, strings.Join(GetAttributeSetAttributeSetTypeEnumStringValues(), ","))) + } + + if _, ok := GetMappingAttributeSetSummaryInUseEnum(string(m.InUse)); !ok && m.InUse != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for InUse: %s. Supported values are: %s.", m.InUse, strings.Join(GetAttributeSetSummaryInUseEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AttributeSetSummaryInUseEnum Enum with underlying type: string +type AttributeSetSummaryInUseEnum string + +// Set of constants representing the allowable values for AttributeSetSummaryInUseEnum +const ( + AttributeSetSummaryInUseYes AttributeSetSummaryInUseEnum = "YES" + AttributeSetSummaryInUseNo AttributeSetSummaryInUseEnum = "NO" +) + +var mappingAttributeSetSummaryInUseEnum = map[string]AttributeSetSummaryInUseEnum{ + "YES": AttributeSetSummaryInUseYes, + "NO": AttributeSetSummaryInUseNo, +} + +var mappingAttributeSetSummaryInUseEnumLowerCase = map[string]AttributeSetSummaryInUseEnum{ + "yes": AttributeSetSummaryInUseYes, + "no": AttributeSetSummaryInUseNo, +} + +// GetAttributeSetSummaryInUseEnumValues Enumerates the set of values for AttributeSetSummaryInUseEnum +func GetAttributeSetSummaryInUseEnumValues() []AttributeSetSummaryInUseEnum { + values := make([]AttributeSetSummaryInUseEnum, 0) + for _, v := range mappingAttributeSetSummaryInUseEnum { + values = append(values, v) + } + return values +} + +// GetAttributeSetSummaryInUseEnumStringValues Enumerates the set of values in String for AttributeSetSummaryInUseEnum +func GetAttributeSetSummaryInUseEnumStringValues() []string { + return []string{ + "YES", + "NO", + } +} + +// GetMappingAttributeSetSummaryInUseEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAttributeSetSummaryInUseEnum(val string) (AttributeSetSummaryInUseEnum, bool) { + enum, ok := mappingAttributeSetSummaryInUseEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_event_aggregation_dimensions.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_event_aggregation_dimensions.go index 9483ca2dea4..cad492136e1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_event_aggregation_dimensions.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_event_aggregation_dimensions.go @@ -50,6 +50,27 @@ type AuditEventAggregationDimensions struct { // The name of the event executed by the user on the target database. For example ALTER SEQUENCE, CREATE TRIGGER or CREATE INDEX. EventName []string `mandatory:"false" json:"eventName"` + + // The schema name of the object affected by the action. + ObjectOwner []string `mandatory:"false" json:"objectOwner"` + + // Comma-seperated list of audit policies that caused the current audit event. + AuditPolicies []string `mandatory:"false" json:"auditPolicies"` + + // The name of the object affected by the action. + ObjectName []string `mandatory:"false" json:"objectName"` + + // The name of the operating system user for the database session. + OsUserName []string `mandatory:"false" json:"osUserName"` + + // The Oracle error code generated by the action. + ErrorCode []string `mandatory:"false" json:"errorCode"` + + // The IP address of the host from which the session was spawned. + ClientIp []string `mandatory:"false" json:"clientIp"` + + // The user ID of the external user of the audit event. + ExternalUserId []string `mandatory:"false" json:"externalUserId"` } func (m AuditEventAggregationDimensions) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_event_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_event_summary.go index 882c21f99d4..4ddda69575e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_event_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_event_summary.go @@ -117,6 +117,12 @@ type AuditEventSummary struct { // The type of the auditing. AuditType AuditEventSummaryAuditTypeEnum `mandatory:"false" json:"auditType,omitempty"` + // The user ID of the external user of the audit event. + ExternalUserId *string `mandatory:"false" json:"externalUserId"` + + // The user on whom the GRANT/REVOKE/AUDIT/NOAUDIT statement was executed. + TargetUser *string `mandatory:"false" json:"targetUser"` + // The secondary id assigned for the peer database registered with Data Safe. PeerTargetDatabaseKey *int `mandatory:"false" json:"peerTargetDatabaseKey"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_policy_entry_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_policy_entry_details.go new file mode 100644 index 00000000000..b7d8a0a4557 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_policy_entry_details.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AuditPolicyEntryDetails Audit policy details. +type AuditPolicyEntryDetails struct { + + // Specifies why exclusion of the Data Safe user did not succeed. + ExcludeDatasafeUserFailureMsg *string `mandatory:"false" json:"excludeDatasafeUserFailureMsg"` + + // The status of Data Safe user exclusion in the audit policy. + DatasafeUserExclusionStatus AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum `mandatory:"true" json:"datasafeUserExclusionStatus"` +} + +func (m AuditPolicyEntryDetails) 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 AuditPolicyEntryDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum(string(m.DatasafeUserExclusionStatus)); !ok && m.DatasafeUserExclusionStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DatasafeUserExclusionStatus: %s. Supported values are: %s.", m.DatasafeUserExclusionStatus, strings.Join(GetAuditPolicyEntryDetailsDatasafeUserExclusionStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AuditPolicyEntryDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAuditPolicyEntryDetails AuditPolicyEntryDetails + s := struct { + DiscriminatorParam string `json:"entryType"` + MarshalTypeAuditPolicyEntryDetails + }{ + "AUDIT_POLICY", + (MarshalTypeAuditPolicyEntryDetails)(m), + } + + return json.Marshal(&s) +} + +// AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum Enum with underlying type: string +type AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum string + +// Set of constants representing the allowable values for AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum +const ( + AuditPolicyEntryDetailsDatasafeUserExclusionStatusExcludedSuccess AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum = "EXCLUDED_SUCCESS" + AuditPolicyEntryDetailsDatasafeUserExclusionStatusExcludedFailed AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum = "EXCLUDED_FAILED" + AuditPolicyEntryDetailsDatasafeUserExclusionStatusNotExcluded AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum = "NOT_EXCLUDED" +) + +var mappingAuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum = map[string]AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum{ + "EXCLUDED_SUCCESS": AuditPolicyEntryDetailsDatasafeUserExclusionStatusExcludedSuccess, + "EXCLUDED_FAILED": AuditPolicyEntryDetailsDatasafeUserExclusionStatusExcludedFailed, + "NOT_EXCLUDED": AuditPolicyEntryDetailsDatasafeUserExclusionStatusNotExcluded, +} + +var mappingAuditPolicyEntryDetailsDatasafeUserExclusionStatusEnumLowerCase = map[string]AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum{ + "excluded_success": AuditPolicyEntryDetailsDatasafeUserExclusionStatusExcludedSuccess, + "excluded_failed": AuditPolicyEntryDetailsDatasafeUserExclusionStatusExcludedFailed, + "not_excluded": AuditPolicyEntryDetailsDatasafeUserExclusionStatusNotExcluded, +} + +// GetAuditPolicyEntryDetailsDatasafeUserExclusionStatusEnumValues Enumerates the set of values for AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum +func GetAuditPolicyEntryDetailsDatasafeUserExclusionStatusEnumValues() []AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum { + values := make([]AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum, 0) + for _, v := range mappingAuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum { + values = append(values, v) + } + return values +} + +// GetAuditPolicyEntryDetailsDatasafeUserExclusionStatusEnumStringValues Enumerates the set of values in String for AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum +func GetAuditPolicyEntryDetailsDatasafeUserExclusionStatusEnumStringValues() []string { + return []string{ + "EXCLUDED_SUCCESS", + "EXCLUDED_FAILED", + "NOT_EXCLUDED", + } +} + +// GetMappingAuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum(val string) (AuditPolicyEntryDetailsDatasafeUserExclusionStatusEnum, bool) { + enum, ok := mappingAuditPolicyEntryDetailsDatasafeUserExclusionStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile.go index e8cbde60ad3..17c36ffafca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile.go @@ -21,7 +21,7 @@ type AuditProfile struct { // The OCID of the audit profile. Id *string `mandatory:"true" json:"id"` - // The OCID of the compartment that contains the audit. + // The OCID of the compartment that contains the audit profile. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The display name of the audit profile. @@ -36,7 +36,7 @@ type AuditProfile struct { // The current state of the audit profile. LifecycleState AuditProfileLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The OCID of the Data Safe target for which the audit profile is created. + // The OCID of the target database or target database group for which the audit profile is created. TargetId *string `mandatory:"true" json:"targetId"` // Indicates if you want to continue collecting audit records beyond the free limit of one million audit records per month per target database, @@ -44,17 +44,17 @@ type AuditProfile struct { // You can change at the global level or at the target level. IsPaidUsageEnabled *bool `mandatory:"true" json:"isPaidUsageEnabled"` - // Indicates the number of months the audit records will be stored online in Oracle Data Safe audit repository for immediate reporting and analysis. + // Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis. // Minimum: 1; Maximum: 12 months OnlineMonths *int `mandatory:"true" json:"onlineMonths"` - // Indicates the number of months the audit records will be stored offline in the Data Safe audit archive. + // Number of months the audit records will be stored offline in the offline archive. // Minimum: 0; Maximum: 72 months. - // If you have a requirement to store the audit data even longer in archive, please contact the Oracle Support. + // If you have a requirement to store the audit data even longer in the offline archive, please contact the Oracle Support. OfflineMonths *int `mandatory:"true" json:"offlineMonths"` - // Indicates whether audit retention settings like online and offline months is set at the - // target level overriding the global audit retention settings. + // Indicates whether audit retention settings like online and offline months set at the + // target level override both the global settings and the target group level audit retention settings. IsOverrideGlobalRetentionSetting *bool `mandatory:"true" json:"isOverrideGlobalRetentionSetting"` // Details about the current state of the audit profile in Data Safe. @@ -63,13 +63,30 @@ type AuditProfile struct { // The description of the audit profile. Description *string `mandatory:"false" json:"description"` - // Indicates the list of available audit trails on the target. + // Contains the list of available audit trails on the target database. AuditTrails []AuditTrail `mandatory:"false" json:"auditTrails"` - // Indicates number of audit records collected by Data Safe in the current calendar month. + // Number of audit records collected in the current calendar month. // Audit records for the Data Safe service account are excluded and are not counted towards your monthly free limit. AuditCollectedVolume *int64 `mandatory:"false" json:"auditCollectedVolume"` + // Indicates whether audit paid usage settings specified at the target database level override both the global settings and the target group level paid usage settings. + // Enabling paid usage continues the collection of audit records beyond the free limit of one million audit records per month per target database, + // potentially incurring additional charges. For more information, see Data Safe Price List (https://www.oracle.com/cloud/price-list/#data-safe). + IsOverrideGlobalPaidUsage *bool `mandatory:"false" json:"isOverrideGlobalPaidUsage"` + + // The name or the OCID of the resource from which the online month retention setting is sourced. For example, a global setting or a target database group OCID. + OnlineMonthsSource *string `mandatory:"false" json:"onlineMonthsSource"` + + // The name or the OCID of the resource from which the offline month retention setting is sourced. For example, a global setting or a target database group OCID. + OfflineMonthsSource *string `mandatory:"false" json:"offlineMonthsSource"` + + // The name or the OCID of the resource from which the paid usage setting is sourced. For example, a global setting or a target database group OCID. + PaidUsageSource *string `mandatory:"false" json:"paidUsageSource"` + + // The resource type that is represented by the audit profile. + TargetType AuditProfileTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + // 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -96,6 +113,9 @@ func (m AuditProfile) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetAuditProfileLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingAuditProfileTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetAuditProfileTargetTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile_dimensions.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile_dimensions.go index 6a507937722..790fd922ebb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile_dimensions.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile_dimensions.go @@ -22,6 +22,18 @@ type AuditProfileDimensions struct { // potentially incurring additional charges. The default value is inherited from the global settings. // You can change at the global level or at the target level. IsPaidUsageEnabled *bool `mandatory:"false" json:"isPaidUsageEnabled"` + + // The resource type that is represented by the audit profile. + TargetType *string `mandatory:"false" json:"targetType"` + + // The name or the OCID of the resource from which the online month retention setting is sourced. For example a target database group OCID or global. + OnlineMonthsSource *string `mandatory:"false" json:"onlineMonthsSource"` + + // The name or the OCID of the resource from which the offline month retention setting is sourced. For example a target database group OCID or global. + OfflineMonthsSource *string `mandatory:"false" json:"offlineMonthsSource"` + + // The name or the OCID of the resource from which the paid usage setting is sourced. For example a target database group OCID or global. + PaidUsageSource *string `mandatory:"false" json:"paidUsageSource"` } func (m AuditProfileDimensions) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile_summary.go index e817efe6324..8114bb78af5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile_summary.go @@ -33,7 +33,7 @@ type AuditProfileSummary struct { // The date and time the audit profile was updated, in the format defined by RFC3339. TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` - // The OCID of the Data Safe target for which the audit profile is created. + // The OCID of the target database for which the audit profile is created. TargetId *string `mandatory:"true" json:"targetId"` // The current state of the audit profile. @@ -44,30 +44,37 @@ type AuditProfileSummary struct { // You can change at the global level or at the target level. IsPaidUsageEnabled *bool `mandatory:"true" json:"isPaidUsageEnabled"` - // Indicates the number of months the audit records will be stored online in Oracle Data Safe audit repository for immediate reporting and analysis. + // Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis. // Minimum: 1; Maximum: 12 months OnlineMonths *int `mandatory:"true" json:"onlineMonths"` - // Indicates the number of months the audit records will be stored offline in the Data Safe audit archive. + // Number of months the audit records will be stored offline in the offline archive. // Minimum: 0; Maximum: 72 months. - // If you have a requirement to store the audit data even longer in archive, please contact the Oracle Support. + // If you have a requirement to store the audit data even longer in the offline archive, please contact the Oracle Support. OfflineMonths *int `mandatory:"true" json:"offlineMonths"` - // Indicates whether audit retention settings like online and offline months is set at the - // target level overriding the global audit retention settings. + // Indicates whether audit retention settings like online and offline months set at the + // target level override the global or target database group level audit retention settings. IsOverrideGlobalRetentionSetting *bool `mandatory:"true" json:"isOverrideGlobalRetentionSetting"` - // The description of audit profile. + // The description of the audit profile. Description *string `mandatory:"false" json:"description"` // Details about the current state of the audit profile in Data Safe. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - // Indicates count of audit records collected by Data Safe from the target which is eligible - // for the current month's billing cycle. Audit records for actions performed by Data Safe service - // account on the target is excluded. + // Number of audit records collected in the current calendar month. + // Audit records for the Data Safe service account are excluded and are not counted towards your monthly free limit. AuditCollectedVolume *int64 `mandatory:"false" json:"auditCollectedVolume"` + // Indicates whether audit paid usage settings specified at the target database level override both the global settings and the target group level paid usage settings. + // Enabling paid usage continues the collection of audit records beyond the free limit of one million audit records per month per target database, + // potentially incurring additional charges. For more information, see Data Safe Price List (https://www.oracle.com/cloud/price-list/#data-safe). + IsOverrideGlobalPaidUsage *bool `mandatory:"false" json:"isOverrideGlobalPaidUsage"` + + // The resource type that is represented by the audit profile. + TargetType AuditProfileTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + // 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -90,6 +97,9 @@ func (m AuditProfileSummary) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetAuditProfileLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingAuditProfileTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetAuditProfileTargetTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile_target_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile_target_type.go new file mode 100644 index 00000000000..42bcc46fda4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_profile_target_type.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "strings" +) + +// AuditProfileTargetTypeEnum Enum with underlying type: string +type AuditProfileTargetTypeEnum string + +// Set of constants representing the allowable values for AuditProfileTargetTypeEnum +const ( + AuditProfileTargetTypeTargetDatabase AuditProfileTargetTypeEnum = "TARGET_DATABASE" + AuditProfileTargetTypeTargetDatabaseGroup AuditProfileTargetTypeEnum = "TARGET_DATABASE_GROUP" +) + +var mappingAuditProfileTargetTypeEnum = map[string]AuditProfileTargetTypeEnum{ + "TARGET_DATABASE": AuditProfileTargetTypeTargetDatabase, + "TARGET_DATABASE_GROUP": AuditProfileTargetTypeTargetDatabaseGroup, +} + +var mappingAuditProfileTargetTypeEnumLowerCase = map[string]AuditProfileTargetTypeEnum{ + "target_database": AuditProfileTargetTypeTargetDatabase, + "target_database_group": AuditProfileTargetTypeTargetDatabaseGroup, +} + +// GetAuditProfileTargetTypeEnumValues Enumerates the set of values for AuditProfileTargetTypeEnum +func GetAuditProfileTargetTypeEnumValues() []AuditProfileTargetTypeEnum { + values := make([]AuditProfileTargetTypeEnum, 0) + for _, v := range mappingAuditProfileTargetTypeEnum { + values = append(values, v) + } + return values +} + +// GetAuditProfileTargetTypeEnumStringValues Enumerates the set of values in String for AuditProfileTargetTypeEnum +func GetAuditProfileTargetTypeEnumStringValues() []string { + return []string{ + "TARGET_DATABASE", + "TARGET_DATABASE_GROUP", + } +} + +// GetMappingAuditProfileTargetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAuditProfileTargetTypeEnum(val string) (AuditProfileTargetTypeEnum, bool) { + enum, ok := mappingAuditProfileTargetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_trail.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_trail.go index 15cb449218b..f37630a60ca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_trail.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/audit_trail.go @@ -89,6 +89,10 @@ type AuditTrail struct { // The details of the audit trail purge job that ran at the time specified by purgeJobTime". PurgeJobDetails *string `mandatory:"false" json:"purgeJobDetails"` + // Indicates if the Datasafe updates last archive time on target database. If isAutoPurgeEnabled field + // is enabled, this field must be true. + CanUpdateLastArchiveTimeOnTarget *bool `mandatory:"false" json:"canUpdateLastArchiveTimeOnTarget"` + // 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/bulk_create_unified_audit_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/bulk_create_unified_audit_policy_details.go new file mode 100644 index 00000000000..73ea520cb51 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/bulk_create_unified_audit_policy_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkCreateUnifiedAuditPolicyDetails The details required to bulk create unified audit policies. +type BulkCreateUnifiedAuditPolicyDetails struct { + + // The OCID of the security policy corresponding to the unified audit policy. + SecurityPolicyId *string `mandatory:"true" json:"securityPolicyId"` + + // The OCID of the target database. + TargetId *string `mandatory:"true" json:"targetId"` + + // The OCID of the compartment in which to create the unified audit policy. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The list of unified audit policy definition ocids. + // If unified audit policy definition ids are provided, the imported + // audit policy will be associated to the specified unified audit policy + // definition based on the policy name. + // Else, for every audit policy that gets imported, + // a new unified audit policy definition will be created. + UnifiedAuditPolicyDefinitionIds []string `mandatory:"false" json:"unifiedAuditPolicyDefinitionIds"` + + // The list of unified audit policy names to be imported. + PolicyNames []string `mandatory:"false" json:"policyNames"` + + // Indicates whether the casing of the policy names provided in the request payload should be preserved during creation. + // By default all policy names will be converted to upper case. + ShouldPreserveCasing *bool `mandatory:"false" json:"shouldPreserveCasing"` +} + +func (m BulkCreateUnifiedAuditPolicyDetails) 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 BulkCreateUnifiedAuditPolicyDetails) 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/datasafe/bulk_create_unified_audit_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/bulk_create_unified_audit_policy_request_response.go new file mode 100644 index 00000000000..e19c40cdd4b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/bulk_create_unified_audit_policy_request_response.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// BulkCreateUnifiedAuditPolicyRequest wrapper for the BulkCreateUnifiedAuditPolicy operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/BulkCreateUnifiedAuditPolicy.go.html to see an example of how to use BulkCreateUnifiedAuditPolicyRequest. +type BulkCreateUnifiedAuditPolicyRequest struct { + + // Details for the compartment move. + BulkCreateUnifiedAuditPolicyDetails `contributesTo:"body"` + + // Unique identifier for the request. + 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 BulkCreateUnifiedAuditPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request BulkCreateUnifiedAuditPolicyRequest) 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 BulkCreateUnifiedAuditPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request BulkCreateUnifiedAuditPolicyRequest) 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 BulkCreateUnifiedAuditPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BulkCreateUnifiedAuditPolicyResponse wrapper for the BulkCreateUnifiedAuditPolicy operation +type BulkCreateUnifiedAuditPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response BulkCreateUnifiedAuditPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response BulkCreateUnifiedAuditPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/cancel_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/cancel_work_request_request_response.go index 757eafca45a..4f237ae1f78 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/cancel_work_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/cancel_work_request_request_response.go @@ -21,12 +21,6 @@ type CancelWorkRequestRequest struct { // The OCID of the work request. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` - // 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"` - // Unique identifier for the request. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_attribute_set_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_attribute_set_compartment_details.go new file mode 100644 index 00000000000..dab5cfe91e7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_attribute_set_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeAttributeSetCompartmentDetails The compartment where the attribute set will move to. +type ChangeAttributeSetCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the new compartment were + // attribute set resource would move. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeAttributeSetCompartmentDetails) 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 ChangeAttributeSetCompartmentDetails) 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/datasafe/change_attribute_set_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_attribute_set_compartment_request_response.go new file mode 100644 index 00000000000..fd3420258bb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_attribute_set_compartment_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeAttributeSetCompartmentRequest wrapper for the ChangeAttributeSetCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ChangeAttributeSetCompartment.go.html to see an example of how to use ChangeAttributeSetCompartmentRequest. +type ChangeAttributeSetCompartmentRequest struct { + + // OCID of an attribute set. + AttributeSetId *string `mandatory:"true" contributesTo:"path" name:"attributeSetId"` + + // The details used to change the compartment of an attribute set. + ChangeAttributeSetCompartmentDetails `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"` + + // 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 ChangeAttributeSetCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeAttributeSetCompartmentRequest) 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 ChangeAttributeSetCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeAttributeSetCompartmentRequest) 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 ChangeAttributeSetCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeAttributeSetCompartmentResponse wrapper for the ChangeAttributeSetCompartment operation +type ChangeAttributeSetCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ChangeAttributeSetCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeAttributeSetCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_retention_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_retention_details.go index 52dd6d3a047..0fca8d1a8ef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_retention_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_retention_details.go @@ -18,17 +18,16 @@ import ( // ChangeRetentionDetails Details for the audit retention months to be modified. type ChangeRetentionDetails struct { - // Indicates the number of months the audit records will be stored online in Oracle Data Safe audit repository for - // immediate reporting and analysis. Minimum: 1; Maximum: 12 months + // Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis. Minimum: 1; Maximum: 12 months OnlineMonths *int `mandatory:"false" json:"onlineMonths"` - // Indicates the number of months the audit records will be stored offline in the Data Safe audit archive. - // Minimum: 0; Maximum: 72 months. - // If you have a requirement to store the audit data even longer in archive, please contact the Oracle Support. + // Number of months the audit records will be stored offline in the offline archive. + // Minimum: 0; Maximum: 72 months. + // If you have a requirement to store the audit data even longer in the offline archive, please contact the Oracle Support. OfflineMonths *int `mandatory:"false" json:"offlineMonths"` - // Indicates whether audit retention settings like online and offline months is set at the - // target level overriding the global audit retention settings. + // Indicates whether audit retention settings like online and offline months set at the + // target level override both the global settings and the target group level audit retention settings. IsOverrideGlobalRetentionSetting *bool `mandatory:"false" json:"isOverrideGlobalRetentionSetting"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_security_policy_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_security_policy_compartment_details.go index 7a5b7745be7..f73ab2a993c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_security_policy_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_security_policy_compartment_details.go @@ -15,7 +15,7 @@ import ( "strings" ) -// ChangeSecurityPolicyCompartmentDetails Details for which compartment to move the resource to. +// ChangeSecurityPolicyCompartmentDetails Details of the compartment the security policy will be moved to. type ChangeSecurityPolicyCompartmentDetails struct { // The OCID of the compartment where you want to move the security policy. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_security_policy_config_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_security_policy_config_compartment_details.go new file mode 100644 index 00000000000..46f638a2d75 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_security_policy_config_compartment_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeSecurityPolicyConfigCompartmentDetails The details of the compartment to move the security policy configuration to. +type ChangeSecurityPolicyConfigCompartmentDetails struct { + + // The OCID of the compartment where you want to move the security policy configuration. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeSecurityPolicyConfigCompartmentDetails) 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 ChangeSecurityPolicyConfigCompartmentDetails) 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/datasafe/change_security_policy_config_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_security_policy_config_compartment_request_response.go new file mode 100644 index 00000000000..4fc4f85f8fc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_security_policy_config_compartment_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeSecurityPolicyConfigCompartmentRequest wrapper for the ChangeSecurityPolicyConfigCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ChangeSecurityPolicyConfigCompartment.go.html to see an example of how to use ChangeSecurityPolicyConfigCompartmentRequest. +type ChangeSecurityPolicyConfigCompartmentRequest struct { + + // The OCID of the security policy configuration resource. + SecurityPolicyConfigId *string `mandatory:"true" contributesTo:"path" name:"securityPolicyConfigId"` + + // Details for the compartment move. + ChangeSecurityPolicyConfigCompartmentDetails `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"` + + // 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 ChangeSecurityPolicyConfigCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeSecurityPolicyConfigCompartmentRequest) 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 ChangeSecurityPolicyConfigCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeSecurityPolicyConfigCompartmentRequest) 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 ChangeSecurityPolicyConfigCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeSecurityPolicyConfigCompartmentResponse wrapper for the ChangeSecurityPolicyConfigCompartment operation +type ChangeSecurityPolicyConfigCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ChangeSecurityPolicyConfigCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeSecurityPolicyConfigCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_target_database_group_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_target_database_group_compartment_details.go new file mode 100644 index 00000000000..52f4efa25b7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_target_database_group_compartment_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeTargetDatabaseGroupCompartmentDetails The details used to change the compartment of the target database group. +type ChangeTargetDatabaseGroupCompartmentDetails struct { + + // The OCID of the compartment to which the target database group should be moved. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeTargetDatabaseGroupCompartmentDetails) 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 ChangeTargetDatabaseGroupCompartmentDetails) 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/datasafe/change_target_database_group_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_target_database_group_compartment_request_response.go new file mode 100644 index 00000000000..39a809fbf84 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_target_database_group_compartment_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeTargetDatabaseGroupCompartmentRequest wrapper for the ChangeTargetDatabaseGroupCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ChangeTargetDatabaseGroupCompartment.go.html to see an example of how to use ChangeTargetDatabaseGroupCompartmentRequest. +type ChangeTargetDatabaseGroupCompartmentRequest struct { + + // The OCID of the specified target database group. + TargetDatabaseGroupId *string `mandatory:"true" contributesTo:"path" name:"targetDatabaseGroupId"` + + // Details of the move compartment request. + ChangeTargetDatabaseGroupCompartmentDetails `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"` + + // 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 ChangeTargetDatabaseGroupCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeTargetDatabaseGroupCompartmentRequest) 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 ChangeTargetDatabaseGroupCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeTargetDatabaseGroupCompartmentRequest) 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 ChangeTargetDatabaseGroupCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeTargetDatabaseGroupCompartmentResponse wrapper for the ChangeTargetDatabaseGroupCompartment operation +type ChangeTargetDatabaseGroupCompartmentResponse 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"` + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response ChangeTargetDatabaseGroupCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeTargetDatabaseGroupCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_unified_audit_policy_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_unified_audit_policy_compartment_details.go new file mode 100644 index 00000000000..e22ab9c537f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_unified_audit_policy_compartment_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeUnifiedAuditPolicyCompartmentDetails Details for which compartment to move the resource to. +type ChangeUnifiedAuditPolicyCompartmentDetails struct { + + // The OCID of the compartment where you want to move the unified audit policy. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeUnifiedAuditPolicyCompartmentDetails) 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 ChangeUnifiedAuditPolicyCompartmentDetails) 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/datasafe/change_unified_audit_policy_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_unified_audit_policy_compartment_request_response.go new file mode 100644 index 00000000000..426a1d57f56 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_unified_audit_policy_compartment_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeUnifiedAuditPolicyCompartmentRequest wrapper for the ChangeUnifiedAuditPolicyCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ChangeUnifiedAuditPolicyCompartment.go.html to see an example of how to use ChangeUnifiedAuditPolicyCompartmentRequest. +type ChangeUnifiedAuditPolicyCompartmentRequest struct { + + // The OCID of the Unified Audit policy resource. + UnifiedAuditPolicyId *string `mandatory:"true" contributesTo:"path" name:"unifiedAuditPolicyId"` + + // Details for the compartment move. + ChangeUnifiedAuditPolicyCompartmentDetails `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"` + + // 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 ChangeUnifiedAuditPolicyCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeUnifiedAuditPolicyCompartmentRequest) 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 ChangeUnifiedAuditPolicyCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeUnifiedAuditPolicyCompartmentRequest) 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 ChangeUnifiedAuditPolicyCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeUnifiedAuditPolicyCompartmentResponse wrapper for the ChangeUnifiedAuditPolicyCompartment operation +type ChangeUnifiedAuditPolicyCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ChangeUnifiedAuditPolicyCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeUnifiedAuditPolicyCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_unified_audit_policy_definition_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_unified_audit_policy_definition_compartment_details.go new file mode 100644 index 00000000000..44c3e979748 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_unified_audit_policy_definition_compartment_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeUnifiedAuditPolicyDefinitionCompartmentDetails Details for which compartment to move the resource to. +type ChangeUnifiedAuditPolicyDefinitionCompartmentDetails struct { + + // The OCID of the compartment where you want to move the unified audit policy definition. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeUnifiedAuditPolicyDefinitionCompartmentDetails) 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 ChangeUnifiedAuditPolicyDefinitionCompartmentDetails) 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/datasafe/change_unified_audit_policy_definition_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_unified_audit_policy_definition_compartment_request_response.go new file mode 100644 index 00000000000..e5eb9654a4c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/change_unified_audit_policy_definition_compartment_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeUnifiedAuditPolicyDefinitionCompartmentRequest wrapper for the ChangeUnifiedAuditPolicyDefinitionCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ChangeUnifiedAuditPolicyDefinitionCompartment.go.html to see an example of how to use ChangeUnifiedAuditPolicyDefinitionCompartmentRequest. +type ChangeUnifiedAuditPolicyDefinitionCompartmentRequest struct { + + // The OCID of the unified audit policy definition resource. + UnifiedAuditPolicyDefinitionId *string `mandatory:"true" contributesTo:"path" name:"unifiedAuditPolicyDefinitionId"` + + // Details for the compartment move. + ChangeUnifiedAuditPolicyDefinitionCompartmentDetails `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"` + + // 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 ChangeUnifiedAuditPolicyDefinitionCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeUnifiedAuditPolicyDefinitionCompartmentRequest) 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 ChangeUnifiedAuditPolicyDefinitionCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeUnifiedAuditPolicyDefinitionCompartmentRequest) 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 ChangeUnifiedAuditPolicyDefinitionCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeUnifiedAuditPolicyDefinitionCompartmentResponse wrapper for the ChangeUnifiedAuditPolicyDefinitionCompartment operation +type ChangeUnifiedAuditPolicyDefinitionCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ChangeUnifiedAuditPolicyDefinitionCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeUnifiedAuditPolicyDefinitionCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/check.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/check.go new file mode 100644 index 00000000000..786a0f6bdd4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/check.go @@ -0,0 +1,122 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Check The security rule to be evaluated by security assessment to create finding. +type Check struct { + + // A unique identifier for the check. + Key *string `mandatory:"true" json:"key"` + + // The short title for the check. + Title *string `mandatory:"false" json:"title"` + + // The explanation of the issue in this check. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. + Remarks *string `mandatory:"false" json:"remarks"` + + // Provides information on whether the check is related to a CIS Oracle Database Benchmark recommendation, STIG rule, GDPR Article/Recital or related to the Oracle Recommended Practice. + References *References `mandatory:"false" json:"references"` + + // The category to which the check belongs to. + Category *string `mandatory:"false" json:"category"` + + // Provides a recommended approach to take to remediate the check reported. + Oneline *string `mandatory:"false" json:"oneline"` + + // The severity of the check as suggested by Data Safe security assessment. This will be the default severity in the template baseline security assessment. + SuggestedSeverity CheckSuggestedSeverityEnum `mandatory:"false" json:"suggestedSeverity,omitempty"` +} + +func (m Check) 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 Check) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCheckSuggestedSeverityEnum(string(m.SuggestedSeverity)); !ok && m.SuggestedSeverity != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SuggestedSeverity: %s. Supported values are: %s.", m.SuggestedSeverity, strings.Join(GetCheckSuggestedSeverityEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CheckSuggestedSeverityEnum Enum with underlying type: string +type CheckSuggestedSeverityEnum string + +// Set of constants representing the allowable values for CheckSuggestedSeverityEnum +const ( + CheckSuggestedSeverityHigh CheckSuggestedSeverityEnum = "HIGH" + CheckSuggestedSeverityMedium CheckSuggestedSeverityEnum = "MEDIUM" + CheckSuggestedSeverityLow CheckSuggestedSeverityEnum = "LOW" + CheckSuggestedSeverityEvaluate CheckSuggestedSeverityEnum = "EVALUATE" + CheckSuggestedSeverityAdvisory CheckSuggestedSeverityEnum = "ADVISORY" + CheckSuggestedSeverityPass CheckSuggestedSeverityEnum = "PASS" + CheckSuggestedSeverityDeferred CheckSuggestedSeverityEnum = "DEFERRED" +) + +var mappingCheckSuggestedSeverityEnum = map[string]CheckSuggestedSeverityEnum{ + "HIGH": CheckSuggestedSeverityHigh, + "MEDIUM": CheckSuggestedSeverityMedium, + "LOW": CheckSuggestedSeverityLow, + "EVALUATE": CheckSuggestedSeverityEvaluate, + "ADVISORY": CheckSuggestedSeverityAdvisory, + "PASS": CheckSuggestedSeverityPass, + "DEFERRED": CheckSuggestedSeverityDeferred, +} + +var mappingCheckSuggestedSeverityEnumLowerCase = map[string]CheckSuggestedSeverityEnum{ + "high": CheckSuggestedSeverityHigh, + "medium": CheckSuggestedSeverityMedium, + "low": CheckSuggestedSeverityLow, + "evaluate": CheckSuggestedSeverityEvaluate, + "advisory": CheckSuggestedSeverityAdvisory, + "pass": CheckSuggestedSeverityPass, + "deferred": CheckSuggestedSeverityDeferred, +} + +// GetCheckSuggestedSeverityEnumValues Enumerates the set of values for CheckSuggestedSeverityEnum +func GetCheckSuggestedSeverityEnumValues() []CheckSuggestedSeverityEnum { + values := make([]CheckSuggestedSeverityEnum, 0) + for _, v := range mappingCheckSuggestedSeverityEnum { + values = append(values, v) + } + return values +} + +// GetCheckSuggestedSeverityEnumStringValues Enumerates the set of values in String for CheckSuggestedSeverityEnum +func GetCheckSuggestedSeverityEnumStringValues() []string { + return []string{ + "HIGH", + "MEDIUM", + "LOW", + "EVALUATE", + "ADVISORY", + "PASS", + "DEFERRED", + } +} + +// GetMappingCheckSuggestedSeverityEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCheckSuggestedSeverityEnum(val string) (CheckSuggestedSeverityEnum, bool) { + enum, ok := mappingCheckSuggestedSeverityEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/check_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/check_summary.go new file mode 100644 index 00000000000..94577d220ce --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/check_summary.go @@ -0,0 +1,122 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CheckSummary The summary of the security rule to be evaluated by security assessment to create finding. +type CheckSummary struct { + + // A unique identifier for the check. + Key *string `mandatory:"true" json:"key"` + + // The short title for the check. + Title *string `mandatory:"true" json:"title"` + + // The explanation of the issue in this check. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. + Remarks *string `mandatory:"false" json:"remarks"` + + // Provides information on whether the check is related to a CIS Oracle Database Benchmark recommendation, STIG rule, GDPR Article/Recital or related to the Oracle Recommended Practice. + References *References `mandatory:"false" json:"references"` + + // The category to which the check belongs to. + Category *string `mandatory:"false" json:"category"` + + // Provides a recommended approach to take to remediate the check reported. + Oneline *string `mandatory:"false" json:"oneline"` + + // The severity of the check as suggested by Data Safe security assessment. This will be the default severity in the template baseline security assessment. + SuggestedSeverity CheckSummarySuggestedSeverityEnum `mandatory:"false" json:"suggestedSeverity,omitempty"` +} + +func (m CheckSummary) 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 CheckSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCheckSummarySuggestedSeverityEnum(string(m.SuggestedSeverity)); !ok && m.SuggestedSeverity != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SuggestedSeverity: %s. Supported values are: %s.", m.SuggestedSeverity, strings.Join(GetCheckSummarySuggestedSeverityEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CheckSummarySuggestedSeverityEnum Enum with underlying type: string +type CheckSummarySuggestedSeverityEnum string + +// Set of constants representing the allowable values for CheckSummarySuggestedSeverityEnum +const ( + CheckSummarySuggestedSeverityHigh CheckSummarySuggestedSeverityEnum = "HIGH" + CheckSummarySuggestedSeverityMedium CheckSummarySuggestedSeverityEnum = "MEDIUM" + CheckSummarySuggestedSeverityLow CheckSummarySuggestedSeverityEnum = "LOW" + CheckSummarySuggestedSeverityEvaluate CheckSummarySuggestedSeverityEnum = "EVALUATE" + CheckSummarySuggestedSeverityAdvisory CheckSummarySuggestedSeverityEnum = "ADVISORY" + CheckSummarySuggestedSeverityPass CheckSummarySuggestedSeverityEnum = "PASS" + CheckSummarySuggestedSeverityDeferred CheckSummarySuggestedSeverityEnum = "DEFERRED" +) + +var mappingCheckSummarySuggestedSeverityEnum = map[string]CheckSummarySuggestedSeverityEnum{ + "HIGH": CheckSummarySuggestedSeverityHigh, + "MEDIUM": CheckSummarySuggestedSeverityMedium, + "LOW": CheckSummarySuggestedSeverityLow, + "EVALUATE": CheckSummarySuggestedSeverityEvaluate, + "ADVISORY": CheckSummarySuggestedSeverityAdvisory, + "PASS": CheckSummarySuggestedSeverityPass, + "DEFERRED": CheckSummarySuggestedSeverityDeferred, +} + +var mappingCheckSummarySuggestedSeverityEnumLowerCase = map[string]CheckSummarySuggestedSeverityEnum{ + "high": CheckSummarySuggestedSeverityHigh, + "medium": CheckSummarySuggestedSeverityMedium, + "low": CheckSummarySuggestedSeverityLow, + "evaluate": CheckSummarySuggestedSeverityEvaluate, + "advisory": CheckSummarySuggestedSeverityAdvisory, + "pass": CheckSummarySuggestedSeverityPass, + "deferred": CheckSummarySuggestedSeverityDeferred, +} + +// GetCheckSummarySuggestedSeverityEnumValues Enumerates the set of values for CheckSummarySuggestedSeverityEnum +func GetCheckSummarySuggestedSeverityEnumValues() []CheckSummarySuggestedSeverityEnum { + values := make([]CheckSummarySuggestedSeverityEnum, 0) + for _, v := range mappingCheckSummarySuggestedSeverityEnum { + values = append(values, v) + } + return values +} + +// GetCheckSummarySuggestedSeverityEnumStringValues Enumerates the set of values in String for CheckSummarySuggestedSeverityEnum +func GetCheckSummarySuggestedSeverityEnumStringValues() []string { + return []string{ + "HIGH", + "MEDIUM", + "LOW", + "EVALUATE", + "ADVISORY", + "PASS", + "DEFERRED", + } +} + +// GetMappingCheckSummarySuggestedSeverityEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCheckSummarySuggestedSeverityEnum(val string) (CheckSummarySuggestedSeverityEnum, bool) { + enum, ok := mappingCheckSummarySuggestedSeverityEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/column.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/column.go index 8ce8cc37575..581e761f135 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/column.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/column.go @@ -32,6 +32,12 @@ type Column struct { // Specifies the data type of the column. DataType *string `mandatory:"false" json:"dataType"` + + // Specifies if column is virtual and can only be used as column filter. + IsVirtual *bool `mandatory:"false" json:"isVirtual"` + + // An array of operators that can be supported by column fieldName. + ApplicableOperators []ColumnApplicableOperatorsEnum `mandatory:"false" json:"applicableOperators,omitempty"` } func (m Column) String() string { @@ -44,8 +50,112 @@ func (m Column) String() string { func (m Column) ValidateEnumValue() (bool, error) { errMessage := []string{} + for _, val := range m.ApplicableOperators { + if _, ok := GetMappingColumnApplicableOperatorsEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ApplicableOperators: %s. Supported values are: %s.", val, strings.Join(GetColumnApplicableOperatorsEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } return false, nil } + +// ColumnApplicableOperatorsEnum Enum with underlying type: string +type ColumnApplicableOperatorsEnum string + +// Set of constants representing the allowable values for ColumnApplicableOperatorsEnum +const ( + ColumnApplicableOperatorsIn ColumnApplicableOperatorsEnum = "IN" + ColumnApplicableOperatorsEq ColumnApplicableOperatorsEnum = "EQ" + ColumnApplicableOperatorsEqCs ColumnApplicableOperatorsEnum = "EQ_CS" + ColumnApplicableOperatorsGt ColumnApplicableOperatorsEnum = "GT" + ColumnApplicableOperatorsGe ColumnApplicableOperatorsEnum = "GE" + ColumnApplicableOperatorsLt ColumnApplicableOperatorsEnum = "LT" + ColumnApplicableOperatorsLe ColumnApplicableOperatorsEnum = "LE" + ColumnApplicableOperatorsAnd ColumnApplicableOperatorsEnum = "AND" + ColumnApplicableOperatorsOr ColumnApplicableOperatorsEnum = "OR" + ColumnApplicableOperatorsNe ColumnApplicableOperatorsEnum = "NE" + ColumnApplicableOperatorsCo ColumnApplicableOperatorsEnum = "CO" + ColumnApplicableOperatorsCoCs ColumnApplicableOperatorsEnum = "CO_CS" + ColumnApplicableOperatorsNot ColumnApplicableOperatorsEnum = "NOT" + ColumnApplicableOperatorsNotIn ColumnApplicableOperatorsEnum = "NOT_IN" + ColumnApplicableOperatorsInSet ColumnApplicableOperatorsEnum = "IN_SET" + ColumnApplicableOperatorsNotInSet ColumnApplicableOperatorsEnum = "NOT_IN_SET" +) + +var mappingColumnApplicableOperatorsEnum = map[string]ColumnApplicableOperatorsEnum{ + "IN": ColumnApplicableOperatorsIn, + "EQ": ColumnApplicableOperatorsEq, + "EQ_CS": ColumnApplicableOperatorsEqCs, + "GT": ColumnApplicableOperatorsGt, + "GE": ColumnApplicableOperatorsGe, + "LT": ColumnApplicableOperatorsLt, + "LE": ColumnApplicableOperatorsLe, + "AND": ColumnApplicableOperatorsAnd, + "OR": ColumnApplicableOperatorsOr, + "NE": ColumnApplicableOperatorsNe, + "CO": ColumnApplicableOperatorsCo, + "CO_CS": ColumnApplicableOperatorsCoCs, + "NOT": ColumnApplicableOperatorsNot, + "NOT_IN": ColumnApplicableOperatorsNotIn, + "IN_SET": ColumnApplicableOperatorsInSet, + "NOT_IN_SET": ColumnApplicableOperatorsNotInSet, +} + +var mappingColumnApplicableOperatorsEnumLowerCase = map[string]ColumnApplicableOperatorsEnum{ + "in": ColumnApplicableOperatorsIn, + "eq": ColumnApplicableOperatorsEq, + "eq_cs": ColumnApplicableOperatorsEqCs, + "gt": ColumnApplicableOperatorsGt, + "ge": ColumnApplicableOperatorsGe, + "lt": ColumnApplicableOperatorsLt, + "le": ColumnApplicableOperatorsLe, + "and": ColumnApplicableOperatorsAnd, + "or": ColumnApplicableOperatorsOr, + "ne": ColumnApplicableOperatorsNe, + "co": ColumnApplicableOperatorsCo, + "co_cs": ColumnApplicableOperatorsCoCs, + "not": ColumnApplicableOperatorsNot, + "not_in": ColumnApplicableOperatorsNotIn, + "in_set": ColumnApplicableOperatorsInSet, + "not_in_set": ColumnApplicableOperatorsNotInSet, +} + +// GetColumnApplicableOperatorsEnumValues Enumerates the set of values for ColumnApplicableOperatorsEnum +func GetColumnApplicableOperatorsEnumValues() []ColumnApplicableOperatorsEnum { + values := make([]ColumnApplicableOperatorsEnum, 0) + for _, v := range mappingColumnApplicableOperatorsEnum { + values = append(values, v) + } + return values +} + +// GetColumnApplicableOperatorsEnumStringValues Enumerates the set of values in String for ColumnApplicableOperatorsEnum +func GetColumnApplicableOperatorsEnumStringValues() []string { + return []string{ + "IN", + "EQ", + "EQ_CS", + "GT", + "GE", + "LT", + "LE", + "AND", + "OR", + "NE", + "CO", + "CO_CS", + "NOT", + "NOT_IN", + "IN_SET", + "NOT_IN_SET", + } +} + +// GetMappingColumnApplicableOperatorsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingColumnApplicableOperatorsEnum(val string) (ColumnApplicableOperatorsEnum, bool) { + enum, ok := mappingColumnApplicableOperatorsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/column_filter.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/column_filter.go index 0472abb60d4..fd6a70d911b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/column_filter.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/column_filter.go @@ -58,54 +58,63 @@ type ColumnFilterOperatorEnum string // Set of constants representing the allowable values for ColumnFilterOperatorEnum const ( - ColumnFilterOperatorIn ColumnFilterOperatorEnum = "IN" - ColumnFilterOperatorEq ColumnFilterOperatorEnum = "EQ" - ColumnFilterOperatorEqCs ColumnFilterOperatorEnum = "EQ_CS" - ColumnFilterOperatorGt ColumnFilterOperatorEnum = "GT" - ColumnFilterOperatorGe ColumnFilterOperatorEnum = "GE" - ColumnFilterOperatorLt ColumnFilterOperatorEnum = "LT" - ColumnFilterOperatorLe ColumnFilterOperatorEnum = "LE" - ColumnFilterOperatorAnd ColumnFilterOperatorEnum = "AND" - ColumnFilterOperatorOr ColumnFilterOperatorEnum = "OR" - ColumnFilterOperatorNe ColumnFilterOperatorEnum = "NE" - ColumnFilterOperatorCo ColumnFilterOperatorEnum = "CO" - ColumnFilterOperatorCoCs ColumnFilterOperatorEnum = "CO_CS" - ColumnFilterOperatorNot ColumnFilterOperatorEnum = "NOT" - ColumnFilterOperatorNotIn ColumnFilterOperatorEnum = "NOT_IN" + ColumnFilterOperatorIn ColumnFilterOperatorEnum = "IN" + ColumnFilterOperatorEq ColumnFilterOperatorEnum = "EQ" + ColumnFilterOperatorEqCs ColumnFilterOperatorEnum = "EQ_CS" + ColumnFilterOperatorGt ColumnFilterOperatorEnum = "GT" + ColumnFilterOperatorGe ColumnFilterOperatorEnum = "GE" + ColumnFilterOperatorLt ColumnFilterOperatorEnum = "LT" + ColumnFilterOperatorLe ColumnFilterOperatorEnum = "LE" + ColumnFilterOperatorAnd ColumnFilterOperatorEnum = "AND" + ColumnFilterOperatorOr ColumnFilterOperatorEnum = "OR" + ColumnFilterOperatorNe ColumnFilterOperatorEnum = "NE" + ColumnFilterOperatorCo ColumnFilterOperatorEnum = "CO" + ColumnFilterOperatorCoCs ColumnFilterOperatorEnum = "CO_CS" + ColumnFilterOperatorNot ColumnFilterOperatorEnum = "NOT" + ColumnFilterOperatorNotIn ColumnFilterOperatorEnum = "NOT_IN" + ColumnFilterOperatorPr ColumnFilterOperatorEnum = "PR" + ColumnFilterOperatorInSet ColumnFilterOperatorEnum = "IN_SET" + ColumnFilterOperatorNotInSet ColumnFilterOperatorEnum = "NOT_IN_SET" ) var mappingColumnFilterOperatorEnum = map[string]ColumnFilterOperatorEnum{ - "IN": ColumnFilterOperatorIn, - "EQ": ColumnFilterOperatorEq, - "EQ_CS": ColumnFilterOperatorEqCs, - "GT": ColumnFilterOperatorGt, - "GE": ColumnFilterOperatorGe, - "LT": ColumnFilterOperatorLt, - "LE": ColumnFilterOperatorLe, - "AND": ColumnFilterOperatorAnd, - "OR": ColumnFilterOperatorOr, - "NE": ColumnFilterOperatorNe, - "CO": ColumnFilterOperatorCo, - "CO_CS": ColumnFilterOperatorCoCs, - "NOT": ColumnFilterOperatorNot, - "NOT_IN": ColumnFilterOperatorNotIn, + "IN": ColumnFilterOperatorIn, + "EQ": ColumnFilterOperatorEq, + "EQ_CS": ColumnFilterOperatorEqCs, + "GT": ColumnFilterOperatorGt, + "GE": ColumnFilterOperatorGe, + "LT": ColumnFilterOperatorLt, + "LE": ColumnFilterOperatorLe, + "AND": ColumnFilterOperatorAnd, + "OR": ColumnFilterOperatorOr, + "NE": ColumnFilterOperatorNe, + "CO": ColumnFilterOperatorCo, + "CO_CS": ColumnFilterOperatorCoCs, + "NOT": ColumnFilterOperatorNot, + "NOT_IN": ColumnFilterOperatorNotIn, + "PR": ColumnFilterOperatorPr, + "IN_SET": ColumnFilterOperatorInSet, + "NOT_IN_SET": ColumnFilterOperatorNotInSet, } var mappingColumnFilterOperatorEnumLowerCase = map[string]ColumnFilterOperatorEnum{ - "in": ColumnFilterOperatorIn, - "eq": ColumnFilterOperatorEq, - "eq_cs": ColumnFilterOperatorEqCs, - "gt": ColumnFilterOperatorGt, - "ge": ColumnFilterOperatorGe, - "lt": ColumnFilterOperatorLt, - "le": ColumnFilterOperatorLe, - "and": ColumnFilterOperatorAnd, - "or": ColumnFilterOperatorOr, - "ne": ColumnFilterOperatorNe, - "co": ColumnFilterOperatorCo, - "co_cs": ColumnFilterOperatorCoCs, - "not": ColumnFilterOperatorNot, - "not_in": ColumnFilterOperatorNotIn, + "in": ColumnFilterOperatorIn, + "eq": ColumnFilterOperatorEq, + "eq_cs": ColumnFilterOperatorEqCs, + "gt": ColumnFilterOperatorGt, + "ge": ColumnFilterOperatorGe, + "lt": ColumnFilterOperatorLt, + "le": ColumnFilterOperatorLe, + "and": ColumnFilterOperatorAnd, + "or": ColumnFilterOperatorOr, + "ne": ColumnFilterOperatorNe, + "co": ColumnFilterOperatorCo, + "co_cs": ColumnFilterOperatorCoCs, + "not": ColumnFilterOperatorNot, + "not_in": ColumnFilterOperatorNotIn, + "pr": ColumnFilterOperatorPr, + "in_set": ColumnFilterOperatorInSet, + "not_in_set": ColumnFilterOperatorNotInSet, } // GetColumnFilterOperatorEnumValues Enumerates the set of values for ColumnFilterOperatorEnum @@ -134,6 +143,9 @@ func GetColumnFilterOperatorEnumStringValues() []string { "CO_CS", "NOT", "NOT_IN", + "PR", + "IN_SET", + "NOT_IN_SET", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/compare_to_template_baseline_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/compare_to_template_baseline_details.go new file mode 100644 index 00000000000..eab0755350e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/compare_to_template_baseline_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CompareToTemplateBaselineDetails Details specifying the security assessment used for comparison. +type CompareToTemplateBaselineDetails struct { + + // The OCID of the security assessment. In this case a security assessment needs to be a template baseline assessment. + ComparisonSecurityAssessmentId *string `mandatory:"true" json:"comparisonSecurityAssessmentId"` +} + +func (m CompareToTemplateBaselineDetails) 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 CompareToTemplateBaselineDetails) 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/datasafe/compare_to_template_baseline_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/compare_to_template_baseline_request_response.go new file mode 100644 index 00000000000..ba22bfb9adc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/compare_to_template_baseline_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CompareToTemplateBaselineRequest wrapper for the CompareToTemplateBaseline operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CompareToTemplateBaseline.go.html to see an example of how to use CompareToTemplateBaselineRequest. +type CompareToTemplateBaselineRequest struct { + + // The OCID of the security assessment. + SecurityAssessmentId *string `mandatory:"true" contributesTo:"path" name:"securityAssessmentId"` + + // Details of the security assessment comparison which pass the template baseline assessment ocid. + CompareToTemplateBaselineDetails `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 might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the if-match parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CompareToTemplateBaselineRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CompareToTemplateBaselineRequest) 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 CompareToTemplateBaselineRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CompareToTemplateBaselineRequest) 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 CompareToTemplateBaselineRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CompareToTemplateBaselineResponse wrapper for the CompareToTemplateBaseline operation +type CompareToTemplateBaselineResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CompareToTemplateBaselineResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CompareToTemplateBaselineResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/compartments.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/compartments.go new file mode 100644 index 00000000000..773592eb9f2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/compartments.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Compartments Containing the OCID of the compartment and a boolean value to indicates compartmentIdInSubtree. +type Compartments struct { + + // The OCID of the compartment for including target databases to the target database group. All target databases in the compartment will be members of the target database group. + Id *string `mandatory:"true" json:"id"` + + // This indicates whether the target databases of sub-compartments should also be included in the target database group. By default, this parameter is set to false. + IsIncludeSubtree *bool `mandatory:"false" json:"isIncludeSubtree"` +} + +func (m Compartments) 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 Compartments) 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/datasafe/create_attribute_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_attribute_set_details.go new file mode 100644 index 00000000000..ee61ecd1862 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_attribute_set_details.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateAttributeSetDetails The details for an attribute set. +type CreateAttributeSetDetails struct { + + // The display name of the attribute set. The name is unique and changeable. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the compartment that contains the attribute set. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The type of attribute set. + AttributeSetType AttributeSetAttributeSetTypeEnum `mandatory:"true" json:"attributeSetType"` + + // The list of values in an attribute set + AttributeSetValues []string `mandatory:"true" json:"attributeSetValues"` + + // Description of the attribute set. + Description *string `mandatory:"false" json:"description"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateAttributeSetDetails) 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 CreateAttributeSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAttributeSetAttributeSetTypeEnum(string(m.AttributeSetType)); !ok && m.AttributeSetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AttributeSetType: %s. Supported values are: %s.", m.AttributeSetType, strings.Join(GetAttributeSetAttributeSetTypeEnumStringValues(), ","))) + } + + 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/datasafe/create_attribute_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_attribute_set_request_response.go new file mode 100644 index 00000000000..f2e454c71ff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_attribute_set_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateAttributeSetRequest wrapper for the CreateAttributeSet operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateAttributeSet.go.html to see an example of how to use CreateAttributeSetRequest. +type CreateAttributeSetRequest struct { + + // Details of an attribute set. + CreateAttributeSetDetails `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 might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateAttributeSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateAttributeSetRequest) 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 CreateAttributeSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateAttributeSetRequest) 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 CreateAttributeSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateAttributeSetResponse wrapper for the CreateAttributeSet operation +type CreateAttributeSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AttributeSet instance + AttributeSet `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + Etag *string `presentIn:"header" name:"etag"` + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateAttributeSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateAttributeSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_audit_profile_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_audit_profile_details.go index b060279e923..9bc925f29fb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_audit_profile_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_audit_profile_details.go @@ -21,10 +21,13 @@ type CreateAuditProfileDetails struct { // The OCID of the compartment where you want to create the audit profile. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID of the Data Safe target for which the audit profile is created. + // The OCID of the target database or target database group for which the audit profile is created. TargetId *string `mandatory:"true" json:"targetId"` - // The display name of the audit profile. The name does not have to be unique, and it's changeable. + // The resource type that is represented by the audit profile. + TargetType AuditProfileTargetTypeEnum `mandatory:"true" json:"targetType"` + + // The display name of the audit profile. The name does not have to be unique, and it's updatable. DisplayName *string `mandatory:"false" json:"displayName"` // The description of the audit profile. @@ -35,11 +38,25 @@ type CreateAuditProfileDetails struct { // You can change at the global level or at the target level. IsPaidUsageEnabled *bool `mandatory:"false" json:"isPaidUsageEnabled"` - // 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) + // Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis. + // Minimum: 1; Maximum: 12 months + OnlineMonths *int `mandatory:"false" json:"onlineMonths"` + + // Number of months the audit records will be stored offline in the offline archive. + // Minimum: 0; Maximum: 72 months. + // If you have a requirement to store the audit data even longer in the offline archive, please contact the Oracle Support. + OfflineMonths *int `mandatory:"false" json:"offlineMonths"` + + // Indicates whether audit paid usage settings specified at the target database level override both the global and the target database group level paid usage settings. + // Enabling paid usage continues the collection of audit records beyond the free limit of one million audit records per month per target database, + // potentially incurring additional charges. For more information, see Data Safe Price List (https://www.oracle.com/cloud/price-list/#data-safe). + IsOverrideGlobalPaidUsage *bool `mandatory:"false" json:"isOverrideGlobalPaidUsage"` + + // 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.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) + // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` } @@ -53,6 +70,9 @@ func (m CreateAuditProfileDetails) String() string { // Not recommended for calling this function directly func (m CreateAuditProfileDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingAuditProfileTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetAuditProfileTargetTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_audit_profile_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_audit_profile_request_response.go new file mode 100644 index 00000000000..832313e2f3c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_audit_profile_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateAuditProfileRequest wrapper for the CreateAuditProfile operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateAuditProfile.go.html to see an example of how to use CreateAuditProfileRequest. +type CreateAuditProfileRequest struct { + + // Details for the new audit profile. + CreateAuditProfileDetails `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 might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateAuditProfileRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateAuditProfileRequest) 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 CreateAuditProfileRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateAuditProfileRequest) 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 CreateAuditProfileRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateAuditProfileResponse wrapper for the CreateAuditProfile operation +type CreateAuditProfileResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AuditProfile instance + AuditProfile `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + Etag *string `presentIn:"header" name:"etag"` + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Full URI of the created audit profile. + Location *string `presentIn:"header" name:"location"` +} + +func (response CreateAuditProfileResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateAuditProfileResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_assessment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_assessment_details.go index b473ad6daa5..3a3dd8fb1be 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_assessment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_assessment_details.go @@ -27,9 +27,22 @@ type CreateSecurityAssessmentDetails struct { // Description of the security assessment. Description *string `mandatory:"false" json:"description"` - // The OCID of the target database on which security assessment is to be run. + // The OCID of the target database or target database group on which security assessment is to be run. TargetId *string `mandatory:"false" json:"targetId"` + // The type of security assessment resource whether it is individual or group resource. For individual target use type TARGET_DATABASE and for group resource use type TARGET_DATABASE_GROUP. If not provided, TARGET_DATABASE would be used as default value. + TargetType SecurityAssessmentTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + + // The type of the security assessment + Type CreateSecurityAssessmentDetailsTypeEnum `mandatory:"false" json:"type,omitempty"` + + // The OCID of the template assessment. It will be required while creating the template baseline assessment. + TemplateAssessmentId *string `mandatory:"false" json:"templateAssessmentId"` + + // The OCID of the security assessment. The assessment should be of type SAVED. + // It will be required while creating the template baseline assessment for individual targets to fetch the detailed information from an existing security assessment. + BaseSecurityAssessmentId *string `mandatory:"false" json:"baseSecurityAssessmentId"` + // Indicates whether the assessment is scheduled to run. IsAssessmentScheduled *bool `mandatory:"false" json:"isAssessmentScheduled"` @@ -69,8 +82,72 @@ func (m CreateSecurityAssessmentDetails) String() string { func (m CreateSecurityAssessmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingSecurityAssessmentTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetSecurityAssessmentTargetTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateSecurityAssessmentDetailsTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetCreateSecurityAssessmentDetailsTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } return false, nil } + +// CreateSecurityAssessmentDetailsTypeEnum Enum with underlying type: string +type CreateSecurityAssessmentDetailsTypeEnum string + +// Set of constants representing the allowable values for CreateSecurityAssessmentDetailsTypeEnum +const ( + CreateSecurityAssessmentDetailsTypeLatest CreateSecurityAssessmentDetailsTypeEnum = "LATEST" + CreateSecurityAssessmentDetailsTypeSaved CreateSecurityAssessmentDetailsTypeEnum = "SAVED" + CreateSecurityAssessmentDetailsTypeSaveSchedule CreateSecurityAssessmentDetailsTypeEnum = "SAVE_SCHEDULE" + CreateSecurityAssessmentDetailsTypeCompartment CreateSecurityAssessmentDetailsTypeEnum = "COMPARTMENT" + CreateSecurityAssessmentDetailsTypeTemplate CreateSecurityAssessmentDetailsTypeEnum = "TEMPLATE" + CreateSecurityAssessmentDetailsTypeTemplateBaseline CreateSecurityAssessmentDetailsTypeEnum = "TEMPLATE_BASELINE" +) + +var mappingCreateSecurityAssessmentDetailsTypeEnum = map[string]CreateSecurityAssessmentDetailsTypeEnum{ + "LATEST": CreateSecurityAssessmentDetailsTypeLatest, + "SAVED": CreateSecurityAssessmentDetailsTypeSaved, + "SAVE_SCHEDULE": CreateSecurityAssessmentDetailsTypeSaveSchedule, + "COMPARTMENT": CreateSecurityAssessmentDetailsTypeCompartment, + "TEMPLATE": CreateSecurityAssessmentDetailsTypeTemplate, + "TEMPLATE_BASELINE": CreateSecurityAssessmentDetailsTypeTemplateBaseline, +} + +var mappingCreateSecurityAssessmentDetailsTypeEnumLowerCase = map[string]CreateSecurityAssessmentDetailsTypeEnum{ + "latest": CreateSecurityAssessmentDetailsTypeLatest, + "saved": CreateSecurityAssessmentDetailsTypeSaved, + "save_schedule": CreateSecurityAssessmentDetailsTypeSaveSchedule, + "compartment": CreateSecurityAssessmentDetailsTypeCompartment, + "template": CreateSecurityAssessmentDetailsTypeTemplate, + "template_baseline": CreateSecurityAssessmentDetailsTypeTemplateBaseline, +} + +// GetCreateSecurityAssessmentDetailsTypeEnumValues Enumerates the set of values for CreateSecurityAssessmentDetailsTypeEnum +func GetCreateSecurityAssessmentDetailsTypeEnumValues() []CreateSecurityAssessmentDetailsTypeEnum { + values := make([]CreateSecurityAssessmentDetailsTypeEnum, 0) + for _, v := range mappingCreateSecurityAssessmentDetailsTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateSecurityAssessmentDetailsTypeEnumStringValues Enumerates the set of values in String for CreateSecurityAssessmentDetailsTypeEnum +func GetCreateSecurityAssessmentDetailsTypeEnumStringValues() []string { + return []string{ + "LATEST", + "SAVED", + "SAVE_SCHEDULE", + "COMPARTMENT", + "TEMPLATE", + "TEMPLATE_BASELINE", + } +} + +// GetMappingCreateSecurityAssessmentDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateSecurityAssessmentDetailsTypeEnum(val string) (CreateSecurityAssessmentDetailsTypeEnum, bool) { + enum, ok := mappingCreateSecurityAssessmentDetailsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_config_details.go new file mode 100644 index 00000000000..22e252d5bb8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_config_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateSecurityPolicyConfigDetails The details to create the security policy configuration. +type CreateSecurityPolicyConfigDetails struct { + + // The OCID of the compartment containing the security policy configuration. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the security policy corresponding to the security policy configuration. + SecurityPolicyId *string `mandatory:"true" json:"securityPolicyId"` + + // The display name of the security policy configuration. The name does not have to be unique, and it is changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The description of the security policy. + Description *string `mandatory:"false" json:"description"` + + FirewallConfig *FirewallConfigDetails `mandatory:"false" json:"firewallConfig"` + + UnifiedAuditPolicyConfig *UnifiedAuditPolicyConfigDetails `mandatory:"false" json:"unifiedAuditPolicyConfig"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateSecurityPolicyConfigDetails) 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 CreateSecurityPolicyConfigDetails) 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/datasafe/create_security_policy_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_config_request_response.go new file mode 100644 index 00000000000..579eb813999 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_config_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateSecurityPolicyConfigRequest wrapper for the CreateSecurityPolicyConfig operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSecurityPolicyConfig.go.html to see an example of how to use CreateSecurityPolicyConfigRequest. +type CreateSecurityPolicyConfigRequest struct { + + // Details of the security policy configuration. + CreateSecurityPolicyConfigDetails `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 might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateSecurityPolicyConfigRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateSecurityPolicyConfigRequest) 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 CreateSecurityPolicyConfigRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateSecurityPolicyConfigRequest) 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 CreateSecurityPolicyConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateSecurityPolicyConfigResponse wrapper for the CreateSecurityPolicyConfig operation +type CreateSecurityPolicyConfigResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SecurityPolicyConfig instance + SecurityPolicyConfig `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + Etag *string `presentIn:"header" name:"etag"` + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The full URI of the security policy config. + Location *string `presentIn:"header" name:"location"` +} + +func (response CreateSecurityPolicyConfigResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateSecurityPolicyConfigResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_deployment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_deployment_details.go new file mode 100644 index 00000000000..0b13c1249f8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_deployment_details.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateSecurityPolicyDeploymentDetails Details to create the security policy deployment. +type CreateSecurityPolicyDeploymentDetails struct { + + // The OCID of the compartment in which to create the unified audit policy. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the target where the security policy is deployed. + TargetId *string `mandatory:"true" json:"targetId"` + + // Indicates whether the security policy deployment is for a target database or a target database group. + TargetType SecurityPolicyDeploymentTargetTypeEnum `mandatory:"true" json:"targetType"` + + // The OCID of the security policy corresponding to the security policy deployment. + SecurityPolicyId *string `mandatory:"true" json:"securityPolicyId"` + + // The display name of the security policy deployment. The name does not have to be unique, and it is changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The description of the security policy. + Description *string `mandatory:"false" json:"description"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateSecurityPolicyDeploymentDetails) 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 CreateSecurityPolicyDeploymentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSecurityPolicyDeploymentTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetSecurityPolicyDeploymentTargetTypeEnumStringValues(), ","))) + } + + 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/datasafe/create_security_policy_deployment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_deployment_request_response.go new file mode 100644 index 00000000000..a0bf43a0a4d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_deployment_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateSecurityPolicyDeploymentRequest wrapper for the CreateSecurityPolicyDeployment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSecurityPolicyDeployment.go.html to see an example of how to use CreateSecurityPolicyDeploymentRequest. +type CreateSecurityPolicyDeploymentRequest struct { + + // Details of the security policy deployment. + CreateSecurityPolicyDeploymentDetails `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 might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateSecurityPolicyDeploymentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateSecurityPolicyDeploymentRequest) 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 CreateSecurityPolicyDeploymentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateSecurityPolicyDeploymentRequest) 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 CreateSecurityPolicyDeploymentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateSecurityPolicyDeploymentResponse wrapper for the CreateSecurityPolicyDeployment operation +type CreateSecurityPolicyDeploymentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SecurityPolicyDeployment instance + SecurityPolicyDeployment `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + Etag *string `presentIn:"header" name:"etag"` + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The full URI of the security policy deployment. + Location *string `presentIn:"header" name:"location"` +} + +func (response CreateSecurityPolicyDeploymentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateSecurityPolicyDeploymentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_details.go new file mode 100644 index 00000000000..fe3ef8552be --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_details.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateSecurityPolicyDetails Details to create the security policy. +type CreateSecurityPolicyDetails struct { + + // The OCID of the compartment in which to create the security policy. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The display name of the security policy. The name does not have to be unique, and it is changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The description of the security policy. + Description *string `mandatory:"false" json:"description"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateSecurityPolicyDetails) 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 CreateSecurityPolicyDetails) 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/datasafe/create_security_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_request_response.go new file mode 100644 index 00000000000..190f06d4527 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_security_policy_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateSecurityPolicyRequest wrapper for the CreateSecurityPolicy operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSecurityPolicy.go.html to see an example of how to use CreateSecurityPolicyRequest. +type CreateSecurityPolicyRequest struct { + + // Details of the security policy. + CreateSecurityPolicyDetails `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 might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateSecurityPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateSecurityPolicyRequest) 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 CreateSecurityPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateSecurityPolicyRequest) 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 CreateSecurityPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateSecurityPolicyResponse wrapper for the CreateSecurityPolicy operation +type CreateSecurityPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SecurityPolicy instance + SecurityPolicy `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + Etag *string `presentIn:"header" name:"etag"` + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The full URI of the security policy. + Location *string `presentIn:"header" name:"location"` +} + +func (response CreateSecurityPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateSecurityPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_target_database_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_target_database_group_details.go new file mode 100644 index 00000000000..21209f0d181 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_target_database_group_details.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateTargetDatabaseGroupDetails The details used to create the target database group. +type CreateTargetDatabaseGroupDetails struct { + + // The OCID of the compartment to create the target database group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name of the target database group. + DisplayName *string `mandatory:"true" json:"displayName"` + + MatchingCriteria *MatchingCriteria `mandatory:"true" json:"matchingCriteria"` + + // Description of the target database group (optional). + Description *string `mandatory:"false" json:"description"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateTargetDatabaseGroupDetails) 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 CreateTargetDatabaseGroupDetails) 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/datasafe/create_target_database_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_target_database_group_request_response.go new file mode 100644 index 00000000000..f8e0e20221f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_target_database_group_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateTargetDatabaseGroupRequest wrapper for the CreateTargetDatabaseGroup operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateTargetDatabaseGroup.go.html to see an example of how to use CreateTargetDatabaseGroupRequest. +type CreateTargetDatabaseGroupRequest struct { + + // Details of the target database group. + CreateTargetDatabaseGroupDetails `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 might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateTargetDatabaseGroupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateTargetDatabaseGroupRequest) 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 CreateTargetDatabaseGroupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateTargetDatabaseGroupRequest) 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 CreateTargetDatabaseGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateTargetDatabaseGroupResponse wrapper for the CreateTargetDatabaseGroup operation +type CreateTargetDatabaseGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The TargetDatabaseGroup instance + TargetDatabaseGroup `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + Etag *string `presentIn:"header" name:"etag"` + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateTargetDatabaseGroupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateTargetDatabaseGroupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_unified_audit_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_unified_audit_policy_details.go new file mode 100644 index 00000000000..d09da60c07a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_unified_audit_policy_details.go @@ -0,0 +1,119 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateUnifiedAuditPolicyDetails The details required to create a new unified audit policy. +type CreateUnifiedAuditPolicyDetails struct { + + // The OCID of the security policy corresponding to the unified audit policy. + SecurityPolicyId *string `mandatory:"true" json:"securityPolicyId"` + + // The OCID of the associated unified audit policy definition. + UnifiedAuditPolicyDefinitionId *string `mandatory:"true" json:"unifiedAuditPolicyDefinitionId"` + + // The OCID of the compartment in which to create the unified audit policy. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Indicates whether the unified audit policy has been enabled or disabled. + Status UnifiedAuditPolicyStatusEnum `mandatory:"true" json:"status"` + + // Lists the audit policy provisioning conditions. + Conditions []PolicyCondition `mandatory:"true" json:"conditions"` + + // The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The description of the unified audit policy in Data Safe. + Description *string `mandatory:"false" json:"description"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateUnifiedAuditPolicyDetails) 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 CreateUnifiedAuditPolicyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingUnifiedAuditPolicyStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetUnifiedAuditPolicyStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateUnifiedAuditPolicyDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + Description *string `json:"description"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SecurityPolicyId *string `json:"securityPolicyId"` + UnifiedAuditPolicyDefinitionId *string `json:"unifiedAuditPolicyDefinitionId"` + CompartmentId *string `json:"compartmentId"` + Status UnifiedAuditPolicyStatusEnum `json:"status"` + Conditions []policycondition `json:"conditions"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.Description = model.Description + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.SecurityPolicyId = model.SecurityPolicyId + + m.UnifiedAuditPolicyDefinitionId = model.UnifiedAuditPolicyDefinitionId + + m.CompartmentId = model.CompartmentId + + m.Status = model.Status + + m.Conditions = make([]PolicyCondition, len(model.Conditions)) + for i, n := range model.Conditions { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Conditions[i] = nn.(PolicyCondition) + } else { + m.Conditions[i] = nil + } + } + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_unified_audit_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_unified_audit_policy_request_response.go new file mode 100644 index 00000000000..29e6974b1c5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_unified_audit_policy_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateUnifiedAuditPolicyRequest wrapper for the CreateUnifiedAuditPolicy operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateUnifiedAuditPolicy.go.html to see an example of how to use CreateUnifiedAuditPolicyRequest. +type CreateUnifiedAuditPolicyRequest struct { + + // Details required to create the unified audit policy. + CreateUnifiedAuditPolicyDetails `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 might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateUnifiedAuditPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateUnifiedAuditPolicyRequest) 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 CreateUnifiedAuditPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateUnifiedAuditPolicyRequest) 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 CreateUnifiedAuditPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateUnifiedAuditPolicyResponse wrapper for the CreateUnifiedAuditPolicy operation +type CreateUnifiedAuditPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The UnifiedAuditPolicy instance + UnifiedAuditPolicy `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + Etag *string `presentIn:"header" name:"etag"` + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The full URI of the unified audit policy. + Location *string `presentIn:"header" name:"location"` +} + +func (response CreateUnifiedAuditPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateUnifiedAuditPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_user_assessment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_user_assessment_details.go index ecb9c5e664d..2bdc2a0682f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_user_assessment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/create_user_assessment_details.go @@ -21,7 +21,7 @@ type CreateUserAssessmentDetails struct { // The OCID of the compartment that contains the user assessment. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The OCID of the target database on which the user assessment is to be run. + // The OCID of the target database or target database group on which user assessment is to be run. TargetId *string `mandatory:"true" json:"targetId"` // The description of the user assessment. @@ -50,6 +50,9 @@ type CreateUserAssessmentDetails struct { // 5. No constraint introduced when it is '*'. When not, day of month must equal the given value Schedule *string `mandatory:"false" json:"schedule"` + // The type of user assessment resource whether it is individual or group resource. For individual target use type TARGET_DATABASE and for group resource use type TARGET_DATABASE_GROUP. If not provided, TARGET_DATABASE would be used as default value. + TargetType UserAssessmentTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + // 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -69,6 +72,9 @@ func (m CreateUserAssessmentDetails) String() string { func (m CreateUserAssessmentDetails) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingUserAssessmentTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetUserAssessmentTargetTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/database_cloud_service_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/database_cloud_service_details.go index bde3b52a371..84f9302f52e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/database_cloud_service_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/database_cloud_service_details.go @@ -19,18 +19,21 @@ import ( // DatabaseCloudServiceDetails The details of the cloud database to be registered as a target database in Data Safe. type DatabaseCloudServiceDetails struct { - // The database service name. - ServiceName *string `mandatory:"true" json:"serviceName"` - // The OCID of the VM cluster in which the database is running. VmClusterId *string `mandatory:"false" json:"vmClusterId"` // The OCID of the cloud database registered as a target database in Data Safe. DbSystemId *string `mandatory:"false" json:"dbSystemId"` + // The OCID of the pluggable database registered as a target database in Data Safe. + PluggableDatabaseId *string `mandatory:"false" json:"pluggableDatabaseId"` + // The port number of the database listener. ListenerPort *int `mandatory:"false" json:"listenerPort"` + // The database service name. + ServiceName *string `mandatory:"false" json:"serviceName"` + // The infrastructure type the database is running on. InfrastructureType InfrastructureTypeEnum `mandatory:"true" json:"infrastructureType"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/datasafe_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/datasafe_client.go index 36fbdf84db3..e2cf2b6ab82 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/datasafe_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/datasafe_client.go @@ -407,6 +407,69 @@ func (client DataSafeClient) applySdmMaskingPolicyDifference(ctx context.Context return response, err } +// ApplySecurityAssessmentTemplate Apply the checks from the template to the specified security assessment.The security assessment provided in the path needs to be of type 'LATEST'. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ApplySecurityAssessmentTemplate.go.html to see an example of how to use ApplySecurityAssessmentTemplate API. +// A default retry strategy applies to this operation ApplySecurityAssessmentTemplate() +func (client DataSafeClient) ApplySecurityAssessmentTemplate(ctx context.Context, request ApplySecurityAssessmentTemplateRequest) (response ApplySecurityAssessmentTemplateResponse, 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.applySecurityAssessmentTemplate, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ApplySecurityAssessmentTemplateResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ApplySecurityAssessmentTemplateResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ApplySecurityAssessmentTemplateResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ApplySecurityAssessmentTemplateResponse") + } + return +} + +// applySecurityAssessmentTemplate implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) applySecurityAssessmentTemplate(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityAssessments/{securityAssessmentId}/actions/applyTemplate", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ApplySecurityAssessmentTemplateResponse + 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-safe/20181201/SecurityAssessment/ApplySecurityAssessmentTemplate" + err = common.PostProcessServiceError(err, "DataSafe", "ApplySecurityAssessmentTemplate", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // BulkCreateSensitiveTypes Uploads a sensitive types xml file (also called template) to create new sensitive types. // // # See also @@ -528,6 +591,69 @@ func (client DataSafeClient) bulkCreateSqlFirewallAllowedSqls(ctx context.Contex return response, err } +// BulkCreateUnifiedAuditPolicy Bulk create unified audit policies. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/BulkCreateUnifiedAuditPolicy.go.html to see an example of how to use BulkCreateUnifiedAuditPolicy API. +// A default retry strategy applies to this operation BulkCreateUnifiedAuditPolicy() +func (client DataSafeClient) BulkCreateUnifiedAuditPolicy(ctx context.Context, request BulkCreateUnifiedAuditPolicyRequest) (response BulkCreateUnifiedAuditPolicyResponse, 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.bulkCreateUnifiedAuditPolicy, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = BulkCreateUnifiedAuditPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = BulkCreateUnifiedAuditPolicyResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(BulkCreateUnifiedAuditPolicyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into BulkCreateUnifiedAuditPolicyResponse") + } + return +} + +// bulkCreateUnifiedAuditPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) bulkCreateUnifiedAuditPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/unifiedAuditPolicies/actions/bulkCreate", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response BulkCreateUnifiedAuditPolicyResponse + 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-safe/20181201/UnifiedAuditPolicy/BulkCreateUnifiedAuditPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "BulkCreateUnifiedAuditPolicy", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // BulkDeleteSqlFirewallAllowedSqls Delete multiple allowed sqls from the SQL firewall policy. // // # See also @@ -727,11 +853,6 @@ func (client DataSafeClient) CancelWorkRequest(ctx context.Context, request Canc 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.cancelWorkRequest, policy) if err != nil { if ociResponse != nil { @@ -901,6 +1022,69 @@ func (client DataSafeClient) changeAlertPolicyCompartment(ctx context.Context, r return response, err } +// ChangeAttributeSetCompartment Moves the attribute set to the specified compartment. When provided, if-Match is checked against ETag value of the resource. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ChangeAttributeSetCompartment.go.html to see an example of how to use ChangeAttributeSetCompartment API. +// A default retry strategy applies to this operation ChangeAttributeSetCompartment() +func (client DataSafeClient) ChangeAttributeSetCompartment(ctx context.Context, request ChangeAttributeSetCompartmentRequest) (response ChangeAttributeSetCompartmentResponse, 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.changeAttributeSetCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeAttributeSetCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeAttributeSetCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeAttributeSetCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeAttributeSetCompartmentResponse") + } + return +} + +// changeAttributeSetCompartment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) changeAttributeSetCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/attributeSets/{attributeSetId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeAttributeSetCompartmentResponse + 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-safe/20181201/AttributeSet/ChangeAttributeSetCompartment" + err = common.PostProcessServiceError(err, "DataSafe", "ChangeAttributeSetCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ChangeAuditArchiveRetrievalCompartment Moves the archive retreival to the specified compartment. When provided, if-Match is checked against ETag value of the resource. // // # See also @@ -1906,6 +2090,69 @@ func (client DataSafeClient) changeSecurityPolicyCompartment(ctx context.Context return response, err } +// ChangeSecurityPolicyConfigCompartment Moves the specified security policy configuration and its dependent resources into a different compartment. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ChangeSecurityPolicyConfigCompartment.go.html to see an example of how to use ChangeSecurityPolicyConfigCompartment API. +// A default retry strategy applies to this operation ChangeSecurityPolicyConfigCompartment() +func (client DataSafeClient) ChangeSecurityPolicyConfigCompartment(ctx context.Context, request ChangeSecurityPolicyConfigCompartmentRequest) (response ChangeSecurityPolicyConfigCompartmentResponse, 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.changeSecurityPolicyConfigCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeSecurityPolicyConfigCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeSecurityPolicyConfigCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeSecurityPolicyConfigCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeSecurityPolicyConfigCompartmentResponse") + } + return +} + +// changeSecurityPolicyConfigCompartment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) changeSecurityPolicyConfigCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityPolicyConfigs/{securityPolicyConfigId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeSecurityPolicyConfigCompartmentResponse + 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-safe/20181201/SecurityPolicyConfig/ChangeSecurityPolicyConfigCompartment" + err = common.PostProcessServiceError(err, "DataSafe", "ChangeSecurityPolicyConfigCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ChangeSecurityPolicyDeploymentCompartment Moves the specified security policy deployment and its dependent resources into a different compartment. // // # See also @@ -2473,17 +2720,13 @@ func (client DataSafeClient) changeTargetDatabaseCompartment(ctx context.Context return response, err } -// ChangeUserAssessmentCompartment Moves the specified saved user assessment or future scheduled assessments into a different compartment. -// To start storing scheduled user assessments on a different compartment, first call the operation ListUserAssessments with -// the filters "type = save_schedule". That call returns the scheduleAssessmentId. Then call -// ChangeUserAssessmentCompartment with the scheduleAssessmentId. The existing saved user assessments created per the schedule -// are not be moved. However, all new saves will be associated with the new compartment. +// ChangeTargetDatabaseGroupCompartment Moves the target database group to the specified compartment. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ChangeUserAssessmentCompartment.go.html to see an example of how to use ChangeUserAssessmentCompartment API. -// A default retry strategy applies to this operation ChangeUserAssessmentCompartment() -func (client DataSafeClient) ChangeUserAssessmentCompartment(ctx context.Context, request ChangeUserAssessmentCompartmentRequest) (response ChangeUserAssessmentCompartmentResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ChangeTargetDatabaseGroupCompartment.go.html to see an example of how to use ChangeTargetDatabaseGroupCompartment API. +// A default retry strategy applies to this operation ChangeTargetDatabaseGroupCompartment() +func (client DataSafeClient) ChangeTargetDatabaseGroupCompartment(ctx context.Context, request ChangeTargetDatabaseGroupCompartmentRequest) (response ChangeTargetDatabaseGroupCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -2497,42 +2740,42 @@ func (client DataSafeClient) ChangeUserAssessmentCompartment(ctx context.Context request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.changeUserAssessmentCompartment, policy) + ociResponse, err = common.Retry(ctx, request, client.changeTargetDatabaseGroupCompartment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeUserAssessmentCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ChangeTargetDatabaseGroupCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ChangeUserAssessmentCompartmentResponse{} + response = ChangeTargetDatabaseGroupCompartmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(ChangeUserAssessmentCompartmentResponse); ok { + if convertedResponse, ok := ociResponse.(ChangeTargetDatabaseGroupCompartmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeUserAssessmentCompartmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into ChangeTargetDatabaseGroupCompartmentResponse") } return } -// changeUserAssessmentCompartment implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) changeUserAssessmentCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// changeTargetDatabaseGroupCompartment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) changeTargetDatabaseGroupCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/userAssessments/{userAssessmentId}/actions/changeCompartment", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/targetDatabaseGroups/{targetDatabaseGroupId}/actions/changeCompartment", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ChangeUserAssessmentCompartmentResponse + var response ChangeTargetDatabaseGroupCompartmentResponse 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-safe/20181201/UserAssessment/ChangeUserAssessmentCompartment" - err = common.PostProcessServiceError(err, "DataSafe", "ChangeUserAssessmentCompartment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabaseGroup/ChangeTargetDatabaseGroupCompartment" + err = common.PostProcessServiceError(err, "DataSafe", "ChangeTargetDatabaseGroupCompartment", apiReferenceLink) return response, err } @@ -2540,14 +2783,13 @@ func (client DataSafeClient) changeUserAssessmentCompartment(ctx context.Context return response, err } -// CompareSecurityAssessment Compares two security assessments. For this comparison, a security assessment can be a saved assessment, a latest assessment, or a baseline assessment. -// For example, you can compare saved assessment or a latest assessment against a baseline. +// ChangeUnifiedAuditPolicyCompartment Moves the specified Unified Audit policy and its dependent resources into a different compartment. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CompareSecurityAssessment.go.html to see an example of how to use CompareSecurityAssessment API. -// A default retry strategy applies to this operation CompareSecurityAssessment() -func (client DataSafeClient) CompareSecurityAssessment(ctx context.Context, request CompareSecurityAssessmentRequest) (response CompareSecurityAssessmentResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ChangeUnifiedAuditPolicyCompartment.go.html to see an example of how to use ChangeUnifiedAuditPolicyCompartment API. +// A default retry strategy applies to this operation ChangeUnifiedAuditPolicyCompartment() +func (client DataSafeClient) ChangeUnifiedAuditPolicyCompartment(ctx context.Context, request ChangeUnifiedAuditPolicyCompartmentRequest) (response ChangeUnifiedAuditPolicyCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -2561,42 +2803,42 @@ func (client DataSafeClient) CompareSecurityAssessment(ctx context.Context, requ request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.compareSecurityAssessment, policy) + ociResponse, err = common.Retry(ctx, request, client.changeUnifiedAuditPolicyCompartment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CompareSecurityAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ChangeUnifiedAuditPolicyCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CompareSecurityAssessmentResponse{} + response = ChangeUnifiedAuditPolicyCompartmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(CompareSecurityAssessmentResponse); ok { + if convertedResponse, ok := ociResponse.(ChangeUnifiedAuditPolicyCompartmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CompareSecurityAssessmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into ChangeUnifiedAuditPolicyCompartmentResponse") } return } -// compareSecurityAssessment implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) compareSecurityAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// changeUnifiedAuditPolicyCompartment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) changeUnifiedAuditPolicyCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityAssessments/{securityAssessmentId}/actions/compare", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/unifiedAuditPolicies/{unifiedAuditPolicyId}/actions/changeCompartment", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CompareSecurityAssessmentResponse + var response ChangeUnifiedAuditPolicyCompartmentResponse 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-safe/20181201/SecurityAssessment/CompareSecurityAssessment" - err = common.PostProcessServiceError(err, "DataSafe", "CompareSecurityAssessment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicy/ChangeUnifiedAuditPolicyCompartment" + err = common.PostProcessServiceError(err, "DataSafe", "ChangeUnifiedAuditPolicyCompartment", apiReferenceLink) return response, err } @@ -2604,14 +2846,13 @@ func (client DataSafeClient) compareSecurityAssessment(ctx context.Context, requ return response, err } -// CompareUserAssessment Compares two user assessments. For this comparison, a user assessment can be a saved, a latest assessment, or a baseline. -// As an example, it can be used to compare a user assessment saved or a latest assessment with a baseline. +// ChangeUnifiedAuditPolicyDefinitionCompartment Moves the specified unified audit policy definition and its dependent resources into a different compartment. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CompareUserAssessment.go.html to see an example of how to use CompareUserAssessment API. -// A default retry strategy applies to this operation CompareUserAssessment() -func (client DataSafeClient) CompareUserAssessment(ctx context.Context, request CompareUserAssessmentRequest) (response CompareUserAssessmentResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ChangeUnifiedAuditPolicyDefinitionCompartment.go.html to see an example of how to use ChangeUnifiedAuditPolicyDefinitionCompartment API. +// A default retry strategy applies to this operation ChangeUnifiedAuditPolicyDefinitionCompartment() +func (client DataSafeClient) ChangeUnifiedAuditPolicyDefinitionCompartment(ctx context.Context, request ChangeUnifiedAuditPolicyDefinitionCompartmentRequest) (response ChangeUnifiedAuditPolicyDefinitionCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -2625,42 +2866,42 @@ func (client DataSafeClient) CompareUserAssessment(ctx context.Context, request request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.compareUserAssessment, policy) + ociResponse, err = common.Retry(ctx, request, client.changeUnifiedAuditPolicyDefinitionCompartment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CompareUserAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ChangeUnifiedAuditPolicyDefinitionCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CompareUserAssessmentResponse{} + response = ChangeUnifiedAuditPolicyDefinitionCompartmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(CompareUserAssessmentResponse); ok { + if convertedResponse, ok := ociResponse.(ChangeUnifiedAuditPolicyDefinitionCompartmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CompareUserAssessmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into ChangeUnifiedAuditPolicyDefinitionCompartmentResponse") } return } -// compareUserAssessment implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) compareUserAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// changeUnifiedAuditPolicyDefinitionCompartment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) changeUnifiedAuditPolicyDefinitionCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/userAssessments/{userAssessmentId}/actions/compare", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/unifiedAuditPolicyDefinitions/{unifiedAuditPolicyDefinitionId}/actions/changeCompartment", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CompareUserAssessmentResponse + var response ChangeUnifiedAuditPolicyDefinitionCompartmentResponse 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-safe/20181201/UserAssessment/CompareUserAssessment" - err = common.PostProcessServiceError(err, "DataSafe", "CompareUserAssessment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicyDefinition/ChangeUnifiedAuditPolicyDefinitionCompartment" + err = common.PostProcessServiceError(err, "DataSafe", "ChangeUnifiedAuditPolicyDefinitionCompartment", apiReferenceLink) return response, err } @@ -2668,13 +2909,17 @@ func (client DataSafeClient) compareUserAssessment(ctx context.Context, request return response, err } -// CreateAlertPolicy Creates a new user-defined alert policy. +// ChangeUserAssessmentCompartment Moves the specified saved user assessment or future scheduled assessments into a different compartment. +// To start storing scheduled user assessments on a different compartment, first call the operation ListUserAssessments with +// the filters "type = save_schedule". That call returns the scheduleAssessmentId. Then call +// ChangeUserAssessmentCompartment with the scheduleAssessmentId. The existing saved user assessments created per the schedule +// are not be moved. However, all new saves will be associated with the new compartment. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateAlertPolicy.go.html to see an example of how to use CreateAlertPolicy API. -// A default retry strategy applies to this operation CreateAlertPolicy() -func (client DataSafeClient) CreateAlertPolicy(ctx context.Context, request CreateAlertPolicyRequest) (response CreateAlertPolicyResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ChangeUserAssessmentCompartment.go.html to see an example of how to use ChangeUserAssessmentCompartment API. +// A default retry strategy applies to this operation ChangeUserAssessmentCompartment() +func (client DataSafeClient) ChangeUserAssessmentCompartment(ctx context.Context, request ChangeUserAssessmentCompartmentRequest) (response ChangeUserAssessmentCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -2688,42 +2933,42 @@ func (client DataSafeClient) CreateAlertPolicy(ctx context.Context, request Crea request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createAlertPolicy, policy) + ociResponse, err = common.Retry(ctx, request, client.changeUserAssessmentCompartment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateAlertPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ChangeUserAssessmentCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateAlertPolicyResponse{} + response = ChangeUserAssessmentCompartmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateAlertPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(ChangeUserAssessmentCompartmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateAlertPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into ChangeUserAssessmentCompartmentResponse") } return } -// createAlertPolicy implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createAlertPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// changeUserAssessmentCompartment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) changeUserAssessmentCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/alertPolicies", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/userAssessments/{userAssessmentId}/actions/changeCompartment", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateAlertPolicyResponse + var response ChangeUserAssessmentCompartmentResponse 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-safe/20181201/AlertPolicy/CreateAlertPolicy" - err = common.PostProcessServiceError(err, "DataSafe", "CreateAlertPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UserAssessment/ChangeUserAssessmentCompartment" + err = common.PostProcessServiceError(err, "DataSafe", "ChangeUserAssessmentCompartment", apiReferenceLink) return response, err } @@ -2731,13 +2976,14 @@ func (client DataSafeClient) createAlertPolicy(ctx context.Context, request comm return response, err } -// CreateAlertPolicyRule Creates a new rule for the alert policy. +// CompareSecurityAssessment Compares two security assessments. For this comparison, a security assessment can be a saved assessment, a latest assessment, or a baseline assessment. +// For example, you can compare saved assessment or a latest assessment against a baseline. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateAlertPolicyRule.go.html to see an example of how to use CreateAlertPolicyRule API. -// A default retry strategy applies to this operation CreateAlertPolicyRule() -func (client DataSafeClient) CreateAlertPolicyRule(ctx context.Context, request CreateAlertPolicyRuleRequest) (response CreateAlertPolicyRuleResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CompareSecurityAssessment.go.html to see an example of how to use CompareSecurityAssessment API. +// A default retry strategy applies to this operation CompareSecurityAssessment() +func (client DataSafeClient) CompareSecurityAssessment(ctx context.Context, request CompareSecurityAssessmentRequest) (response CompareSecurityAssessmentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -2751,42 +2997,42 @@ func (client DataSafeClient) CreateAlertPolicyRule(ctx context.Context, request request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createAlertPolicyRule, policy) + ociResponse, err = common.Retry(ctx, request, client.compareSecurityAssessment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateAlertPolicyRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CompareSecurityAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateAlertPolicyRuleResponse{} + response = CompareSecurityAssessmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateAlertPolicyRuleResponse); ok { + if convertedResponse, ok := ociResponse.(CompareSecurityAssessmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateAlertPolicyRuleResponse") + err = fmt.Errorf("failed to convert OCIResponse into CompareSecurityAssessmentResponse") } return } -// createAlertPolicyRule implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createAlertPolicyRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// compareSecurityAssessment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) compareSecurityAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/alertPolicies/{alertPolicyId}/rules", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityAssessments/{securityAssessmentId}/actions/compare", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateAlertPolicyRuleResponse + var response CompareSecurityAssessmentResponse 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-safe/20181201/AlertPolicyRule/CreateAlertPolicyRule" - err = common.PostProcessServiceError(err, "DataSafe", "CreateAlertPolicyRule", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/CompareSecurityAssessment" + err = common.PostProcessServiceError(err, "DataSafe", "CompareSecurityAssessment", apiReferenceLink) return response, err } @@ -2794,15 +3040,13 @@ func (client DataSafeClient) createAlertPolicyRule(ctx context.Context, request return response, err } -// CreateAuditArchiveRetrieval Creates a work request to retrieve archived audit data. This asynchronous process will usually take over an hour to complete. -// Save the id from the response of this operation. Call GetAuditArchiveRetrieval operation after an hour, passing the id to know the status of -// this operation. +// CompareToTemplateBaseline Compares two security assessments. For this comparison, the security assessment in the path needs to be a latest assessment of a target group. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateAuditArchiveRetrieval.go.html to see an example of how to use CreateAuditArchiveRetrieval API. -// A default retry strategy applies to this operation CreateAuditArchiveRetrieval() -func (client DataSafeClient) CreateAuditArchiveRetrieval(ctx context.Context, request CreateAuditArchiveRetrievalRequest) (response CreateAuditArchiveRetrievalResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CompareToTemplateBaseline.go.html to see an example of how to use CompareToTemplateBaseline API. +// A default retry strategy applies to this operation CompareToTemplateBaseline() +func (client DataSafeClient) CompareToTemplateBaseline(ctx context.Context, request CompareToTemplateBaselineRequest) (response CompareToTemplateBaselineResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -2816,42 +3060,42 @@ func (client DataSafeClient) CreateAuditArchiveRetrieval(ctx context.Context, re request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createAuditArchiveRetrieval, policy) + ociResponse, err = common.Retry(ctx, request, client.compareToTemplateBaseline, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateAuditArchiveRetrievalResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CompareToTemplateBaselineResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateAuditArchiveRetrievalResponse{} + response = CompareToTemplateBaselineResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateAuditArchiveRetrievalResponse); ok { + if convertedResponse, ok := ociResponse.(CompareToTemplateBaselineResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateAuditArchiveRetrievalResponse") + err = fmt.Errorf("failed to convert OCIResponse into CompareToTemplateBaselineResponse") } return } -// createAuditArchiveRetrieval implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createAuditArchiveRetrieval(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// compareToTemplateBaseline implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) compareToTemplateBaseline(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/auditArchiveRetrievals", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityAssessments/{securityAssessmentId}/actions/compareToTemplateBaseline", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateAuditArchiveRetrievalResponse + var response CompareToTemplateBaselineResponse 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, "DataSafe", "CreateAuditArchiveRetrieval", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/CompareToTemplateBaseline" + err = common.PostProcessServiceError(err, "DataSafe", "CompareToTemplateBaseline", apiReferenceLink) return response, err } @@ -2859,13 +3103,14 @@ func (client DataSafeClient) createAuditArchiveRetrieval(ctx context.Context, re return response, err } -// CreateDataSafePrivateEndpoint Creates a new Data Safe private endpoint. +// CompareUserAssessment Compares two user assessments. For this comparison, a user assessment can be a saved, a latest assessment, or a baseline. +// As an example, it can be used to compare a user assessment saved or a latest assessment with a baseline. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateDataSafePrivateEndpoint.go.html to see an example of how to use CreateDataSafePrivateEndpoint API. -// A default retry strategy applies to this operation CreateDataSafePrivateEndpoint() -func (client DataSafeClient) CreateDataSafePrivateEndpoint(ctx context.Context, request CreateDataSafePrivateEndpointRequest) (response CreateDataSafePrivateEndpointResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CompareUserAssessment.go.html to see an example of how to use CompareUserAssessment API. +// A default retry strategy applies to this operation CompareUserAssessment() +func (client DataSafeClient) CompareUserAssessment(ctx context.Context, request CompareUserAssessmentRequest) (response CompareUserAssessmentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -2879,42 +3124,42 @@ func (client DataSafeClient) CreateDataSafePrivateEndpoint(ctx context.Context, request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createDataSafePrivateEndpoint, policy) + ociResponse, err = common.Retry(ctx, request, client.compareUserAssessment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateDataSafePrivateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CompareUserAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateDataSafePrivateEndpointResponse{} + response = CompareUserAssessmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateDataSafePrivateEndpointResponse); ok { + if convertedResponse, ok := ociResponse.(CompareUserAssessmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateDataSafePrivateEndpointResponse") + err = fmt.Errorf("failed to convert OCIResponse into CompareUserAssessmentResponse") } return } -// createDataSafePrivateEndpoint implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createDataSafePrivateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// compareUserAssessment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) compareUserAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/dataSafePrivateEndpoints", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/userAssessments/{userAssessmentId}/actions/compare", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateDataSafePrivateEndpointResponse + var response CompareUserAssessmentResponse 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-safe/20181201/DataSafePrivateEndpoint/CreateDataSafePrivateEndpoint" - err = common.PostProcessServiceError(err, "DataSafe", "CreateDataSafePrivateEndpoint", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UserAssessment/CompareUserAssessment" + err = common.PostProcessServiceError(err, "DataSafe", "CompareUserAssessment", apiReferenceLink) return response, err } @@ -2922,17 +3167,13 @@ func (client DataSafeClient) createDataSafePrivateEndpoint(ctx context.Context, return response, err } -// CreateDiscoveryJob Performs incremental data discovery for the specified sensitive data model. It uses the target database associated -// with the sensitive data model. -// After performing data discovery, you can use ListDiscoveryJobResults to view the discovery results, PatchDiscoveryJobResults -// to specify the action you want perform on these results, and then ApplyDiscoveryJobResults to process the results -// and apply them to the sensitive data model. +// CreateAlertPolicy Creates a new user-defined alert policy. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateDiscoveryJob.go.html to see an example of how to use CreateDiscoveryJob API. -// A default retry strategy applies to this operation CreateDiscoveryJob() -func (client DataSafeClient) CreateDiscoveryJob(ctx context.Context, request CreateDiscoveryJobRequest) (response CreateDiscoveryJobResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateAlertPolicy.go.html to see an example of how to use CreateAlertPolicy API. +// A default retry strategy applies to this operation CreateAlertPolicy() +func (client DataSafeClient) CreateAlertPolicy(ctx context.Context, request CreateAlertPolicyRequest) (response CreateAlertPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -2946,42 +3187,42 @@ func (client DataSafeClient) CreateDiscoveryJob(ctx context.Context, request Cre request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createDiscoveryJob, policy) + ociResponse, err = common.Retry(ctx, request, client.createAlertPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateDiscoveryJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateAlertPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateDiscoveryJobResponse{} + response = CreateAlertPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateDiscoveryJobResponse); ok { + if convertedResponse, ok := ociResponse.(CreateAlertPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateDiscoveryJobResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateAlertPolicyResponse") } return } -// createDiscoveryJob implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createDiscoveryJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createAlertPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createAlertPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/discoveryJobs", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/alertPolicies", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateDiscoveryJobResponse + var response CreateAlertPolicyResponse 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, "DataSafe", "CreateDiscoveryJob", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AlertPolicy/CreateAlertPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "CreateAlertPolicy", apiReferenceLink) return response, err } @@ -2989,17 +3230,13 @@ func (client DataSafeClient) createDiscoveryJob(ctx context.Context, request com return response, err } -// CreateLibraryMaskingFormat Creates a new library masking format. A masking format can have one or more -// format entries. The combined output of all the format entries is used for masking. -// It provides the flexibility to define a masking format that can generate different -// parts of a data value separately and then combine them to get the final data value -// for masking. Note that you cannot define masking condition in a library masking format. +// CreateAlertPolicyRule Creates a new rule for the alert policy. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateLibraryMaskingFormat.go.html to see an example of how to use CreateLibraryMaskingFormat API. -// A default retry strategy applies to this operation CreateLibraryMaskingFormat() -func (client DataSafeClient) CreateLibraryMaskingFormat(ctx context.Context, request CreateLibraryMaskingFormatRequest) (response CreateLibraryMaskingFormatResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateAlertPolicyRule.go.html to see an example of how to use CreateAlertPolicyRule API. +// A default retry strategy applies to this operation CreateAlertPolicyRule() +func (client DataSafeClient) CreateAlertPolicyRule(ctx context.Context, request CreateAlertPolicyRuleRequest) (response CreateAlertPolicyRuleResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3013,42 +3250,42 @@ func (client DataSafeClient) CreateLibraryMaskingFormat(ctx context.Context, req request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createLibraryMaskingFormat, policy) + ociResponse, err = common.Retry(ctx, request, client.createAlertPolicyRule, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateLibraryMaskingFormatResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateAlertPolicyRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateLibraryMaskingFormatResponse{} + response = CreateAlertPolicyRuleResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateLibraryMaskingFormatResponse); ok { + if convertedResponse, ok := ociResponse.(CreateAlertPolicyRuleResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateLibraryMaskingFormatResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateAlertPolicyRuleResponse") } return } -// createLibraryMaskingFormat implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createLibraryMaskingFormat(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createAlertPolicyRule implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createAlertPolicyRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/libraryMaskingFormats", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/alertPolicies/{alertPolicyId}/rules", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateLibraryMaskingFormatResponse + var response CreateAlertPolicyRuleResponse 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-safe/20181201/LibraryMaskingFormat/CreateLibraryMaskingFormat" - err = common.PostProcessServiceError(err, "DataSafe", "CreateLibraryMaskingFormat", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AlertPolicyRule/CreateAlertPolicyRule" + err = common.PostProcessServiceError(err, "DataSafe", "CreateAlertPolicyRule", apiReferenceLink) return response, err } @@ -3056,30 +3293,13 @@ func (client DataSafeClient) createLibraryMaskingFormat(ctx context.Context, req return response, err } -// CreateMaskingColumn Creates a new masking column in the specified masking policy. Use this operation -// to add parent columns only. It automatically adds the child columns from the -// associated sensitive data model or target database. If you provide the -// sensitiveTypeId attribute but not the maskingFormats attribute, it automatically -// assigns the default masking format associated with the specified sensitive type. -// Alternatively, if you provide the maskingFormats attribute, the specified masking -// formats are assigned to the column. -// Using the maskingFormats attribute, you can assign one or more masking formats -// to a column. You need to specify a condition as part of each masking format. It -// enables you to do conditional masking -// so that you can mask the column data values differently using different -// masking conditions. A masking format can have one or more format entries. The -// combined output of all the format entries is used for masking. It provides the -// flexibility to define a masking format that can generate different parts of a data -// value separately and then combine them to get the final data value for masking. -// You can use the maskingColumnGroup attribute to group the columns that you would -// like to mask together. It enables you to do group or compound masking that ensures that the -// masked data across the columns in a group continue to retain the same logical relationship. +// CreateAttributeSet Creates an attribute set. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateMaskingColumn.go.html to see an example of how to use CreateMaskingColumn API. -// A default retry strategy applies to this operation CreateMaskingColumn() -func (client DataSafeClient) CreateMaskingColumn(ctx context.Context, request CreateMaskingColumnRequest) (response CreateMaskingColumnResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateAttributeSet.go.html to see an example of how to use CreateAttributeSet API. +// A default retry strategy applies to this operation CreateAttributeSet() +func (client DataSafeClient) CreateAttributeSet(ctx context.Context, request CreateAttributeSetRequest) (response CreateAttributeSetResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3093,42 +3313,42 @@ func (client DataSafeClient) CreateMaskingColumn(ctx context.Context, request Cr request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createMaskingColumn, policy) + ociResponse, err = common.Retry(ctx, request, client.createAttributeSet, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateMaskingColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateAttributeSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateMaskingColumnResponse{} + response = CreateAttributeSetResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateMaskingColumnResponse); ok { + if convertedResponse, ok := ociResponse.(CreateAttributeSetResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateMaskingColumnResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateAttributeSetResponse") } return } -// createMaskingColumn implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createMaskingColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createAttributeSet implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createAttributeSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/maskingColumns", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/attributeSets", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateMaskingColumnResponse + var response CreateAttributeSetResponse 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-safe/20181201/MaskingColumn/CreateMaskingColumn" - err = common.PostProcessServiceError(err, "DataSafe", "CreateMaskingColumn", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AttributeSet/CreateAttributeSet" + err = common.PostProcessServiceError(err, "DataSafe", "CreateAttributeSet", apiReferenceLink) return response, err } @@ -3136,26 +3356,15 @@ func (client DataSafeClient) createMaskingColumn(ctx context.Context, request co return response, err } -// CreateMaskingPolicy Creates a new masking policy and associates it with a sensitive data model or a target database. -// To use a sensitive data model as the source of masking columns, set the columnSource attribute to -// SENSITIVE_DATA_MODEL and provide the sensitiveDataModelId attribute. After creating a masking policy, -// you can use the AddMaskingColumnsFromSdm operation to automatically add all the columns from -// the associated sensitive data model. In this case, the target database associated with the -// sensitive data model is used for column and masking format validations. -// You can also create a masking policy without using a sensitive data model. In this case, -// you need to associate your masking policy with a target database by setting the columnSource -// attribute to TARGET and providing the targetId attribute. The specified target database -// is used for column and masking format validations. -// After creating a masking policy, you can use the CreateMaskingColumn or PatchMaskingColumns -// operation to manually add columns to the policy. You need to add the parent columns only, -// and it automatically adds the child columns (in referential relationship with the parent columns) -// from the associated sensitive data model or target database. +// CreateAuditArchiveRetrieval Creates a work request to retrieve archived audit data. This asynchronous process will usually take over an hour to complete. +// Save the id from the response of this operation. Call GetAuditArchiveRetrieval operation after an hour, passing the id to know the status of +// this operation. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateMaskingPolicy.go.html to see an example of how to use CreateMaskingPolicy API. -// A default retry strategy applies to this operation CreateMaskingPolicy() -func (client DataSafeClient) CreateMaskingPolicy(ctx context.Context, request CreateMaskingPolicyRequest) (response CreateMaskingPolicyResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateAuditArchiveRetrieval.go.html to see an example of how to use CreateAuditArchiveRetrieval API. +// A default retry strategy applies to this operation CreateAuditArchiveRetrieval() +func (client DataSafeClient) CreateAuditArchiveRetrieval(ctx context.Context, request CreateAuditArchiveRetrievalRequest) (response CreateAuditArchiveRetrievalResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3169,42 +3378,42 @@ func (client DataSafeClient) CreateMaskingPolicy(ctx context.Context, request Cr request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createMaskingPolicy, policy) + ociResponse, err = common.Retry(ctx, request, client.createAuditArchiveRetrieval, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateMaskingPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateAuditArchiveRetrievalResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateMaskingPolicyResponse{} + response = CreateAuditArchiveRetrievalResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateMaskingPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(CreateAuditArchiveRetrievalResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateMaskingPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateAuditArchiveRetrievalResponse") } return } -// createMaskingPolicy implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createMaskingPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createAuditArchiveRetrieval implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createAuditArchiveRetrieval(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/auditArchiveRetrievals", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateMaskingPolicyResponse + var response CreateAuditArchiveRetrievalResponse 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-safe/20181201/MaskingPolicy/CreateMaskingPolicy" - err = common.PostProcessServiceError(err, "DataSafe", "CreateMaskingPolicy", apiReferenceLink) + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "DataSafe", "CreateAuditArchiveRetrieval", apiReferenceLink) return response, err } @@ -3212,13 +3421,13 @@ func (client DataSafeClient) createMaskingPolicy(ctx context.Context, request co return response, err } -// CreateOnPremConnector Creates a new on-premises connector. +// CreateAuditProfile Create a new audit profile resource. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateOnPremConnector.go.html to see an example of how to use CreateOnPremConnector API. -// A default retry strategy applies to this operation CreateOnPremConnector() -func (client DataSafeClient) CreateOnPremConnector(ctx context.Context, request CreateOnPremConnectorRequest) (response CreateOnPremConnectorResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateAuditProfile.go.html to see an example of how to use CreateAuditProfile API. +// A default retry strategy applies to this operation CreateAuditProfile() +func (client DataSafeClient) CreateAuditProfile(ctx context.Context, request CreateAuditProfileRequest) (response CreateAuditProfileResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3232,42 +3441,42 @@ func (client DataSafeClient) CreateOnPremConnector(ctx context.Context, request request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createOnPremConnector, policy) + ociResponse, err = common.Retry(ctx, request, client.createAuditProfile, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateOnPremConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateAuditProfileResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateOnPremConnectorResponse{} + response = CreateAuditProfileResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateOnPremConnectorResponse); ok { + if convertedResponse, ok := ociResponse.(CreateAuditProfileResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateOnPremConnectorResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateAuditProfileResponse") } return } -// createOnPremConnector implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createOnPremConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createAuditProfile implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createAuditProfile(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/onPremConnectors", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/auditProfiles", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateOnPremConnectorResponse + var response CreateAuditProfileResponse 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-safe/20181201/OnPremConnector/CreateOnPremConnector" - err = common.PostProcessServiceError(err, "DataSafe", "CreateOnPremConnector", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AuditProfile/CreateAuditProfile" + err = common.PostProcessServiceError(err, "DataSafe", "CreateAuditProfile", apiReferenceLink) return response, err } @@ -3275,13 +3484,13 @@ func (client DataSafeClient) createOnPremConnector(ctx context.Context, request return response, err } -// CreatePeerTargetDatabase Creates the peer target database under the primary target database in Data Safe. +// CreateDataSafePrivateEndpoint Creates a new Data Safe private endpoint. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreatePeerTargetDatabase.go.html to see an example of how to use CreatePeerTargetDatabase API. -// A default retry strategy applies to this operation CreatePeerTargetDatabase() -func (client DataSafeClient) CreatePeerTargetDatabase(ctx context.Context, request CreatePeerTargetDatabaseRequest) (response CreatePeerTargetDatabaseResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateDataSafePrivateEndpoint.go.html to see an example of how to use CreateDataSafePrivateEndpoint API. +// A default retry strategy applies to this operation CreateDataSafePrivateEndpoint() +func (client DataSafeClient) CreateDataSafePrivateEndpoint(ctx context.Context, request CreateDataSafePrivateEndpointRequest) (response CreateDataSafePrivateEndpointResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3295,42 +3504,42 @@ func (client DataSafeClient) CreatePeerTargetDatabase(ctx context.Context, reque request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createPeerTargetDatabase, policy) + ociResponse, err = common.Retry(ctx, request, client.createDataSafePrivateEndpoint, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreatePeerTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateDataSafePrivateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreatePeerTargetDatabaseResponse{} + response = CreateDataSafePrivateEndpointResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreatePeerTargetDatabaseResponse); ok { + if convertedResponse, ok := ociResponse.(CreateDataSafePrivateEndpointResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreatePeerTargetDatabaseResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateDataSafePrivateEndpointResponse") } return } -// createPeerTargetDatabase implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createPeerTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createDataSafePrivateEndpoint implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createDataSafePrivateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/targetDatabases/{targetDatabaseId}/peerTargetDatabases", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/dataSafePrivateEndpoints", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreatePeerTargetDatabaseResponse + var response CreateDataSafePrivateEndpointResponse 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-safe/20181201/PeerTargetDatabase/CreatePeerTargetDatabase" - err = common.PostProcessServiceError(err, "DataSafe", "CreatePeerTargetDatabase", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DataSafePrivateEndpoint/CreateDataSafePrivateEndpoint" + err = common.PostProcessServiceError(err, "DataSafe", "CreateDataSafePrivateEndpoint", apiReferenceLink) return response, err } @@ -3338,13 +3547,17 @@ func (client DataSafeClient) createPeerTargetDatabase(ctx context.Context, reque return response, err } -// CreateReferentialRelation Creates a new referential relation in the specified sensitive data model. +// CreateDiscoveryJob Performs incremental data discovery for the specified sensitive data model. It uses the target database associated +// with the sensitive data model. +// After performing data discovery, you can use ListDiscoveryJobResults to view the discovery results, PatchDiscoveryJobResults +// to specify the action you want perform on these results, and then ApplyDiscoveryJobResults to process the results +// and apply them to the sensitive data model. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateReferentialRelation.go.html to see an example of how to use CreateReferentialRelation API. -// A default retry strategy applies to this operation CreateReferentialRelation() -func (client DataSafeClient) CreateReferentialRelation(ctx context.Context, request CreateReferentialRelationRequest) (response CreateReferentialRelationResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateDiscoveryJob.go.html to see an example of how to use CreateDiscoveryJob API. +// A default retry strategy applies to this operation CreateDiscoveryJob() +func (client DataSafeClient) CreateDiscoveryJob(ctx context.Context, request CreateDiscoveryJobRequest) (response CreateDiscoveryJobResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3358,42 +3571,42 @@ func (client DataSafeClient) CreateReferentialRelation(ctx context.Context, requ request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createReferentialRelation, policy) + ociResponse, err = common.Retry(ctx, request, client.createDiscoveryJob, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateReferentialRelationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateDiscoveryJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateReferentialRelationResponse{} + response = CreateDiscoveryJobResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateReferentialRelationResponse); ok { + if convertedResponse, ok := ociResponse.(CreateDiscoveryJobResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateReferentialRelationResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateDiscoveryJobResponse") } return } -// createReferentialRelation implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createReferentialRelation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createDiscoveryJob implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createDiscoveryJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels/{sensitiveDataModelId}/referentialRelations", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/discoveryJobs", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateReferentialRelationResponse + var response CreateDiscoveryJobResponse 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-safe/20181201/ReferentialRelation/CreateReferentialRelation" - err = common.PostProcessServiceError(err, "DataSafe", "CreateReferentialRelation", apiReferenceLink) + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "DataSafe", "CreateDiscoveryJob", apiReferenceLink) return response, err } @@ -3401,13 +3614,17 @@ func (client DataSafeClient) createReferentialRelation(ctx context.Context, requ return response, err } -// CreateReportDefinition Creates a new report definition with parameters specified in the body. The report definition is stored in the specified compartment. +// CreateLibraryMaskingFormat Creates a new library masking format. A masking format can have one or more +// format entries. The combined output of all the format entries is used for masking. +// It provides the flexibility to define a masking format that can generate different +// parts of a data value separately and then combine them to get the final data value +// for masking. Note that you cannot define masking condition in a library masking format. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateReportDefinition.go.html to see an example of how to use CreateReportDefinition API. -// A default retry strategy applies to this operation CreateReportDefinition() -func (client DataSafeClient) CreateReportDefinition(ctx context.Context, request CreateReportDefinitionRequest) (response CreateReportDefinitionResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateLibraryMaskingFormat.go.html to see an example of how to use CreateLibraryMaskingFormat API. +// A default retry strategy applies to this operation CreateLibraryMaskingFormat() +func (client DataSafeClient) CreateLibraryMaskingFormat(ctx context.Context, request CreateLibraryMaskingFormatRequest) (response CreateLibraryMaskingFormatResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3421,42 +3638,42 @@ func (client DataSafeClient) CreateReportDefinition(ctx context.Context, request request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createReportDefinition, policy) + ociResponse, err = common.Retry(ctx, request, client.createLibraryMaskingFormat, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateReportDefinitionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateLibraryMaskingFormatResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateReportDefinitionResponse{} + response = CreateLibraryMaskingFormatResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateReportDefinitionResponse); ok { + if convertedResponse, ok := ociResponse.(CreateLibraryMaskingFormatResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateReportDefinitionResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateLibraryMaskingFormatResponse") } return } -// createReportDefinition implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createReportDefinition(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createLibraryMaskingFormat implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createLibraryMaskingFormat(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/reportDefinitions", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/libraryMaskingFormats", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateReportDefinitionResponse + var response CreateLibraryMaskingFormatResponse 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-safe/20181201/ReportDefinition/CreateReportDefinition" - err = common.PostProcessServiceError(err, "DataSafe", "CreateReportDefinition", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/LibraryMaskingFormat/CreateLibraryMaskingFormat" + err = common.PostProcessServiceError(err, "DataSafe", "CreateLibraryMaskingFormat", apiReferenceLink) return response, err } @@ -3464,17 +3681,30 @@ func (client DataSafeClient) createReportDefinition(ctx context.Context, request return response, err } -// CreateSdmMaskingPolicyDifference Creates SDM masking policy difference for the specified masking policy. It finds the difference between -// masking columns of the masking policy and sensitive columns of the SDM. After performing this operation, -// you can use ListDifferenceColumns to view the difference columns, PatchSdmMaskingPolicyDifferenceColumns -// to specify the action you want perform on these columns, and then ApplySdmMaskingPolicyDifference to process the -// difference columns and apply them to the masking policy. +// CreateMaskingColumn Creates a new masking column in the specified masking policy. Use this operation +// to add parent columns only. It automatically adds the child columns from the +// associated sensitive data model or target database. If you provide the +// sensitiveTypeId attribute but not the maskingFormats attribute, it automatically +// assigns the default masking format associated with the specified sensitive type. +// Alternatively, if you provide the maskingFormats attribute, the specified masking +// formats are assigned to the column. +// Using the maskingFormats attribute, you can assign one or more masking formats +// to a column. You need to specify a condition as part of each masking format. It +// enables you to do conditional masking +// so that you can mask the column data values differently using different +// masking conditions. A masking format can have one or more format entries. The +// combined output of all the format entries is used for masking. It provides the +// flexibility to define a masking format that can generate different parts of a data +// value separately and then combine them to get the final data value for masking. +// You can use the maskingColumnGroup attribute to group the columns that you would +// like to mask together. It enables you to do group or compound masking that ensures that the +// masked data across the columns in a group continue to retain the same logical relationship. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSdmMaskingPolicyDifference.go.html to see an example of how to use CreateSdmMaskingPolicyDifference API. -// A default retry strategy applies to this operation CreateSdmMaskingPolicyDifference() -func (client DataSafeClient) CreateSdmMaskingPolicyDifference(ctx context.Context, request CreateSdmMaskingPolicyDifferenceRequest) (response CreateSdmMaskingPolicyDifferenceResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateMaskingColumn.go.html to see an example of how to use CreateMaskingColumn API. +// A default retry strategy applies to this operation CreateMaskingColumn() +func (client DataSafeClient) CreateMaskingColumn(ctx context.Context, request CreateMaskingColumnRequest) (response CreateMaskingColumnResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3488,42 +3718,42 @@ func (client DataSafeClient) CreateSdmMaskingPolicyDifference(ctx context.Contex request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createSdmMaskingPolicyDifference, policy) + ociResponse, err = common.Retry(ctx, request, client.createMaskingColumn, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateSdmMaskingPolicyDifferenceResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateMaskingColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateSdmMaskingPolicyDifferenceResponse{} + response = CreateMaskingColumnResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateSdmMaskingPolicyDifferenceResponse); ok { + if convertedResponse, ok := ociResponse.(CreateMaskingColumnResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateSdmMaskingPolicyDifferenceResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateMaskingColumnResponse") } return } -// createSdmMaskingPolicyDifference implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createSdmMaskingPolicyDifference(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createMaskingColumn implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createMaskingColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sdmMaskingPolicyDifferences", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/maskingColumns", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateSdmMaskingPolicyDifferenceResponse + var response CreateMaskingColumnResponse 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, "DataSafe", "CreateSdmMaskingPolicyDifference", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingColumn/CreateMaskingColumn" + err = common.PostProcessServiceError(err, "DataSafe", "CreateMaskingColumn", apiReferenceLink) return response, err } @@ -3531,15 +3761,26 @@ func (client DataSafeClient) createSdmMaskingPolicyDifference(ctx context.Contex return response, err } -// CreateSecurityAssessment Creates a new saved security assessment for one or multiple targets in a compartment. When this operation is performed, -// it will save the latest assessments in the specified compartment. If a schedule is passed, it will persist the latest assessments, -// at the defined date and time, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). +// CreateMaskingPolicy Creates a new masking policy and associates it with a sensitive data model or a target database. +// To use a sensitive data model as the source of masking columns, set the columnSource attribute to +// SENSITIVE_DATA_MODEL and provide the sensitiveDataModelId attribute. After creating a masking policy, +// you can use the AddMaskingColumnsFromSdm operation to automatically add all the columns from +// the associated sensitive data model. In this case, the target database associated with the +// sensitive data model is used for column and masking format validations. +// You can also create a masking policy without using a sensitive data model. In this case, +// you need to associate your masking policy with a target database by setting the columnSource +// attribute to TARGET and providing the targetId attribute. The specified target database +// is used for column and masking format validations. +// After creating a masking policy, you can use the CreateMaskingColumn or PatchMaskingColumns +// operation to manually add columns to the policy. You need to add the parent columns only, +// and it automatically adds the child columns (in referential relationship with the parent columns) +// from the associated sensitive data model or target database. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSecurityAssessment.go.html to see an example of how to use CreateSecurityAssessment API. -// A default retry strategy applies to this operation CreateSecurityAssessment() -func (client DataSafeClient) CreateSecurityAssessment(ctx context.Context, request CreateSecurityAssessmentRequest) (response CreateSecurityAssessmentResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateMaskingPolicy.go.html to see an example of how to use CreateMaskingPolicy API. +// A default retry strategy applies to this operation CreateMaskingPolicy() +func (client DataSafeClient) CreateMaskingPolicy(ctx context.Context, request CreateMaskingPolicyRequest) (response CreateMaskingPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3553,42 +3794,42 @@ func (client DataSafeClient) CreateSecurityAssessment(ctx context.Context, reque request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createSecurityAssessment, policy) + ociResponse, err = common.Retry(ctx, request, client.createMaskingPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateSecurityAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateMaskingPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateSecurityAssessmentResponse{} + response = CreateMaskingPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateSecurityAssessmentResponse); ok { + if convertedResponse, ok := ociResponse.(CreateMaskingPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateSecurityAssessmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateMaskingPolicyResponse") } return } -// createSecurityAssessment implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createSecurityAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createMaskingPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createMaskingPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityAssessments", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateSecurityAssessmentResponse + var response CreateMaskingPolicyResponse 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-safe/20181201/SecurityAssessment/CreateSecurityAssessment" - err = common.PostProcessServiceError(err, "DataSafe", "CreateSecurityAssessment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicy/CreateMaskingPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "CreateMaskingPolicy", apiReferenceLink) return response, err } @@ -3596,13 +3837,13 @@ func (client DataSafeClient) createSecurityAssessment(ctx context.Context, reque return response, err } -// CreateSensitiveColumn Creates a new sensitive column in the specified sensitive data model. +// CreateOnPremConnector Creates a new on-premises connector. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSensitiveColumn.go.html to see an example of how to use CreateSensitiveColumn API. -// A default retry strategy applies to this operation CreateSensitiveColumn() -func (client DataSafeClient) CreateSensitiveColumn(ctx context.Context, request CreateSensitiveColumnRequest) (response CreateSensitiveColumnResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateOnPremConnector.go.html to see an example of how to use CreateOnPremConnector API. +// A default retry strategy applies to this operation CreateOnPremConnector() +func (client DataSafeClient) CreateOnPremConnector(ctx context.Context, request CreateOnPremConnectorRequest) (response CreateOnPremConnectorResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3616,42 +3857,42 @@ func (client DataSafeClient) CreateSensitiveColumn(ctx context.Context, request request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createSensitiveColumn, policy) + ociResponse, err = common.Retry(ctx, request, client.createOnPremConnector, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateSensitiveColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateOnPremConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateSensitiveColumnResponse{} + response = CreateOnPremConnectorResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateSensitiveColumnResponse); ok { + if convertedResponse, ok := ociResponse.(CreateOnPremConnectorResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateSensitiveColumnResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateOnPremConnectorResponse") } return } -// createSensitiveColumn implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createSensitiveColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createOnPremConnector implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createOnPremConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/onPremConnectors", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateSensitiveColumnResponse + var response CreateOnPremConnectorResponse 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-safe/20181201/SensitiveColumn/CreateSensitiveColumn" - err = common.PostProcessServiceError(err, "DataSafe", "CreateSensitiveColumn", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/OnPremConnector/CreateOnPremConnector" + err = common.PostProcessServiceError(err, "DataSafe", "CreateOnPremConnector", apiReferenceLink) return response, err } @@ -3659,15 +3900,13 @@ func (client DataSafeClient) createSensitiveColumn(ctx context.Context, request return response, err } -// CreateSensitiveDataModel Creates a new sensitive data model. If schemas and sensitive types are provided, it automatically runs data discovery -// and adds the discovered columns to the sensitive data model. Otherwise, it creates an empty sensitive data model -// that can be updated later. +// CreatePeerTargetDatabase Creates the peer target database under the primary target database in Data Safe. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSensitiveDataModel.go.html to see an example of how to use CreateSensitiveDataModel API. -// A default retry strategy applies to this operation CreateSensitiveDataModel() -func (client DataSafeClient) CreateSensitiveDataModel(ctx context.Context, request CreateSensitiveDataModelRequest) (response CreateSensitiveDataModelResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreatePeerTargetDatabase.go.html to see an example of how to use CreatePeerTargetDatabase API. +// A default retry strategy applies to this operation CreatePeerTargetDatabase() +func (client DataSafeClient) CreatePeerTargetDatabase(ctx context.Context, request CreatePeerTargetDatabaseRequest) (response CreatePeerTargetDatabaseResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3681,42 +3920,42 @@ func (client DataSafeClient) CreateSensitiveDataModel(ctx context.Context, reque request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createSensitiveDataModel, policy) + ociResponse, err = common.Retry(ctx, request, client.createPeerTargetDatabase, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateSensitiveDataModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreatePeerTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateSensitiveDataModelResponse{} + response = CreatePeerTargetDatabaseResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateSensitiveDataModelResponse); ok { + if convertedResponse, ok := ociResponse.(CreatePeerTargetDatabaseResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateSensitiveDataModelResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreatePeerTargetDatabaseResponse") } return } -// createSensitiveDataModel implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createSensitiveDataModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels", binaryReqBody, extraHeaders) +// createPeerTargetDatabase implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createPeerTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/targetDatabases/{targetDatabaseId}/peerTargetDatabases", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateSensitiveDataModelResponse + var response CreatePeerTargetDatabaseResponse 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-safe/20181201/SensitiveDataModel/CreateSensitiveDataModel" - err = common.PostProcessServiceError(err, "DataSafe", "CreateSensitiveDataModel", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/PeerTargetDatabase/CreatePeerTargetDatabase" + err = common.PostProcessServiceError(err, "DataSafe", "CreatePeerTargetDatabase", apiReferenceLink) return response, err } @@ -3724,15 +3963,13 @@ func (client DataSafeClient) createSensitiveDataModel(ctx context.Context, reque return response, err } -// CreateSensitiveType Creates a new sensitive type, which can be a basic sensitive type with regular expressions or a sensitive category. -// While sensitive types are used for data discovery, sensitive categories are used for logically grouping the related -// or similar sensitive types. +// CreateReferentialRelation Creates a new referential relation in the specified sensitive data model. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSensitiveType.go.html to see an example of how to use CreateSensitiveType API. -// A default retry strategy applies to this operation CreateSensitiveType() -func (client DataSafeClient) CreateSensitiveType(ctx context.Context, request CreateSensitiveTypeRequest) (response CreateSensitiveTypeResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateReferentialRelation.go.html to see an example of how to use CreateReferentialRelation API. +// A default retry strategy applies to this operation CreateReferentialRelation() +func (client DataSafeClient) CreateReferentialRelation(ctx context.Context, request CreateReferentialRelationRequest) (response CreateReferentialRelationResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3746,56 +3983,56 @@ func (client DataSafeClient) CreateSensitiveType(ctx context.Context, request Cr request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createSensitiveType, policy) + ociResponse, err = common.Retry(ctx, request, client.createReferentialRelation, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateSensitiveTypeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateReferentialRelationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateSensitiveTypeResponse{} + response = CreateReferentialRelationResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateSensitiveTypeResponse); ok { + if convertedResponse, ok := ociResponse.(CreateReferentialRelationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateSensitiveTypeResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateReferentialRelationResponse") } return } -// createSensitiveType implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createSensitiveType(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createReferentialRelation implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createReferentialRelation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveTypes", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels/{sensitiveDataModelId}/referentialRelations", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateSensitiveTypeResponse + var response CreateReferentialRelationResponse 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, "DataSafe", "CreateSensitiveType", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReferentialRelation/CreateReferentialRelation" + err = common.PostProcessServiceError(err, "DataSafe", "CreateReferentialRelation", apiReferenceLink) return response, err } - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &sensitivetype{}) + err = common.UnmarshalResponse(httpResponse, &response) return response, err } -// CreateSensitiveTypeGroup Creates a new sensitive type group. +// CreateReportDefinition Creates a new report definition with parameters specified in the body. The report definition is stored in the specified compartment. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSensitiveTypeGroup.go.html to see an example of how to use CreateSensitiveTypeGroup API. -// A default retry strategy applies to this operation CreateSensitiveTypeGroup() -func (client DataSafeClient) CreateSensitiveTypeGroup(ctx context.Context, request CreateSensitiveTypeGroupRequest) (response CreateSensitiveTypeGroupResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateReportDefinition.go.html to see an example of how to use CreateReportDefinition API. +// A default retry strategy applies to this operation CreateReportDefinition() +func (client DataSafeClient) CreateReportDefinition(ctx context.Context, request CreateReportDefinitionRequest) (response CreateReportDefinitionResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3809,42 +4046,42 @@ func (client DataSafeClient) CreateSensitiveTypeGroup(ctx context.Context, reque request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createSensitiveTypeGroup, policy) + ociResponse, err = common.Retry(ctx, request, client.createReportDefinition, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateSensitiveTypeGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateReportDefinitionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateSensitiveTypeGroupResponse{} + response = CreateReportDefinitionResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateSensitiveTypeGroupResponse); ok { + if convertedResponse, ok := ociResponse.(CreateReportDefinitionResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateSensitiveTypeGroupResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateReportDefinitionResponse") } return } -// createSensitiveTypeGroup implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createSensitiveTypeGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createReportDefinition implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createReportDefinition(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveTypeGroups", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/reportDefinitions", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateSensitiveTypeGroupResponse + var response CreateReportDefinitionResponse 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-safe/20181201/SensitiveTypeGroup/CreateSensitiveTypeGroup" - err = common.PostProcessServiceError(err, "DataSafe", "CreateSensitiveTypeGroup", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReportDefinition/CreateReportDefinition" + err = common.PostProcessServiceError(err, "DataSafe", "CreateReportDefinition", apiReferenceLink) return response, err } @@ -3852,15 +4089,17 @@ func (client DataSafeClient) createSensitiveTypeGroup(ctx context.Context, reque return response, err } -// CreateSensitiveTypesExport Generates a downloadable file corresponding to the specified list of sensitive types. It's a prerequisite for the -// DownloadSensitiveTypesExport operation. Use this endpoint to generate a sensitive Types Export file and then use -// DownloadSensitiveTypesExport to download the generated file. +// CreateSdmMaskingPolicyDifference Creates SDM masking policy difference for the specified masking policy. It finds the difference between +// masking columns of the masking policy and sensitive columns of the SDM. After performing this operation, +// you can use ListDifferenceColumns to view the difference columns, PatchSdmMaskingPolicyDifferenceColumns +// to specify the action you want perform on these columns, and then ApplySdmMaskingPolicyDifference to process the +// difference columns and apply them to the masking policy. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSensitiveTypesExport.go.html to see an example of how to use CreateSensitiveTypesExport API. -// A default retry strategy applies to this operation CreateSensitiveTypesExport() -func (client DataSafeClient) CreateSensitiveTypesExport(ctx context.Context, request CreateSensitiveTypesExportRequest) (response CreateSensitiveTypesExportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSdmMaskingPolicyDifference.go.html to see an example of how to use CreateSdmMaskingPolicyDifference API. +// A default retry strategy applies to this operation CreateSdmMaskingPolicyDifference() +func (client DataSafeClient) CreateSdmMaskingPolicyDifference(ctx context.Context, request CreateSdmMaskingPolicyDifferenceRequest) (response CreateSdmMaskingPolicyDifferenceResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3874,42 +4113,42 @@ func (client DataSafeClient) CreateSensitiveTypesExport(ctx context.Context, req request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createSensitiveTypesExport, policy) + ociResponse, err = common.Retry(ctx, request, client.createSdmMaskingPolicyDifference, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateSensitiveTypesExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateSdmMaskingPolicyDifferenceResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateSensitiveTypesExportResponse{} + response = CreateSdmMaskingPolicyDifferenceResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateSensitiveTypesExportResponse); ok { + if convertedResponse, ok := ociResponse.(CreateSdmMaskingPolicyDifferenceResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateSensitiveTypesExportResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateSdmMaskingPolicyDifferenceResponse") } return } -// createSensitiveTypesExport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createSensitiveTypesExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createSdmMaskingPolicyDifference implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createSdmMaskingPolicyDifference(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveTypesExports", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sdmMaskingPolicyDifferences", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateSensitiveTypesExportResponse + var response CreateSdmMaskingPolicyDifferenceResponse 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-safe/20181201/SensitiveTypesExport/CreateSensitiveTypesExport" - err = common.PostProcessServiceError(err, "DataSafe", "CreateSensitiveTypesExport", apiReferenceLink) + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "DataSafe", "CreateSdmMaskingPolicyDifference", apiReferenceLink) return response, err } @@ -3917,13 +4156,15 @@ func (client DataSafeClient) createSensitiveTypesExport(ctx context.Context, req return response, err } -// CreateSqlCollection Creates a new SQL collection resource. +// CreateSecurityAssessment Creates a new saved security assessment for one or multiple targets in a compartment. When this operation is performed, +// it will save the latest assessments in the specified compartment. If a schedule is passed, it will persist the latest assessments, +// at the defined date and time, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSqlCollection.go.html to see an example of how to use CreateSqlCollection API. -// A default retry strategy applies to this operation CreateSqlCollection() -func (client DataSafeClient) CreateSqlCollection(ctx context.Context, request CreateSqlCollectionRequest) (response CreateSqlCollectionResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSecurityAssessment.go.html to see an example of how to use CreateSecurityAssessment API. +// A default retry strategy applies to this operation CreateSecurityAssessment() +func (client DataSafeClient) CreateSecurityAssessment(ctx context.Context, request CreateSecurityAssessmentRequest) (response CreateSecurityAssessmentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -3937,42 +4178,42 @@ func (client DataSafeClient) CreateSqlCollection(ctx context.Context, request Cr request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createSqlCollection, policy) + ociResponse, err = common.Retry(ctx, request, client.createSecurityAssessment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateSqlCollectionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateSecurityAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateSqlCollectionResponse{} + response = CreateSecurityAssessmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateSqlCollectionResponse); ok { + if convertedResponse, ok := ociResponse.(CreateSecurityAssessmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateSqlCollectionResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateSecurityAssessmentResponse") } return } -// createSqlCollection implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createSqlCollection(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createSecurityAssessment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createSecurityAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sqlCollections", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityAssessments", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateSqlCollectionResponse + var response CreateSecurityAssessmentResponse 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-safe/20181201/SqlCollection/CreateSqlCollection" - err = common.PostProcessServiceError(err, "DataSafe", "CreateSqlCollection", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/CreateSecurityAssessment" + err = common.PostProcessServiceError(err, "DataSafe", "CreateSecurityAssessment", apiReferenceLink) return response, err } @@ -3980,13 +4221,13 @@ func (client DataSafeClient) createSqlCollection(ctx context.Context, request co return response, err } -// CreateTargetAlertPolicyAssociation Creates a new target-alert policy association to track a alert policy applied on target. +// CreateSecurityPolicy Creates a Data Safe security policy. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateTargetAlertPolicyAssociation.go.html to see an example of how to use CreateTargetAlertPolicyAssociation API. -// A default retry strategy applies to this operation CreateTargetAlertPolicyAssociation() -func (client DataSafeClient) CreateTargetAlertPolicyAssociation(ctx context.Context, request CreateTargetAlertPolicyAssociationRequest) (response CreateTargetAlertPolicyAssociationResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSecurityPolicy.go.html to see an example of how to use CreateSecurityPolicy API. +// A default retry strategy applies to this operation CreateSecurityPolicy() +func (client DataSafeClient) CreateSecurityPolicy(ctx context.Context, request CreateSecurityPolicyRequest) (response CreateSecurityPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4000,42 +4241,42 @@ func (client DataSafeClient) CreateTargetAlertPolicyAssociation(ctx context.Cont request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createTargetAlertPolicyAssociation, policy) + ociResponse, err = common.Retry(ctx, request, client.createSecurityPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateTargetAlertPolicyAssociationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateSecurityPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateTargetAlertPolicyAssociationResponse{} + response = CreateSecurityPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateTargetAlertPolicyAssociationResponse); ok { + if convertedResponse, ok := ociResponse.(CreateSecurityPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateTargetAlertPolicyAssociationResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateSecurityPolicyResponse") } return } -// createTargetAlertPolicyAssociation implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createTargetAlertPolicyAssociation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createSecurityPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createSecurityPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/targetAlertPolicyAssociations", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityPolicies", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateTargetAlertPolicyAssociationResponse + var response CreateSecurityPolicyResponse 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-safe/20181201/TargetAlertPolicyAssociation/CreateTargetAlertPolicyAssociation" - err = common.PostProcessServiceError(err, "DataSafe", "CreateTargetAlertPolicyAssociation", apiReferenceLink) + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "DataSafe", "CreateSecurityPolicy", apiReferenceLink) return response, err } @@ -4043,13 +4284,13 @@ func (client DataSafeClient) createTargetAlertPolicyAssociation(ctx context.Cont return response, err } -// CreateTargetDatabase Registers the specified database with Data Safe and creates a Data Safe target database in the Data Safe Console. +// CreateSecurityPolicyConfig Creates a new security policy configuration resource. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateTargetDatabase.go.html to see an example of how to use CreateTargetDatabase API. -// A default retry strategy applies to this operation CreateTargetDatabase() -func (client DataSafeClient) CreateTargetDatabase(ctx context.Context, request CreateTargetDatabaseRequest) (response CreateTargetDatabaseResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSecurityPolicyConfig.go.html to see an example of how to use CreateSecurityPolicyConfig API. +// A default retry strategy applies to this operation CreateSecurityPolicyConfig() +func (client DataSafeClient) CreateSecurityPolicyConfig(ctx context.Context, request CreateSecurityPolicyConfigRequest) (response CreateSecurityPolicyConfigResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4063,42 +4304,42 @@ func (client DataSafeClient) CreateTargetDatabase(ctx context.Context, request C request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createTargetDatabase, policy) + ociResponse, err = common.Retry(ctx, request, client.createSecurityPolicyConfig, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateSecurityPolicyConfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateTargetDatabaseResponse{} + response = CreateSecurityPolicyConfigResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateTargetDatabaseResponse); ok { + if convertedResponse, ok := ociResponse.(CreateSecurityPolicyConfigResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateTargetDatabaseResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateSecurityPolicyConfigResponse") } return } -// createTargetDatabase implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createSecurityPolicyConfig implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createSecurityPolicyConfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/targetDatabases", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityPolicyConfigs", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateTargetDatabaseResponse + var response CreateSecurityPolicyConfigResponse 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-safe/20181201/TargetDatabase/CreateTargetDatabase" - err = common.PostProcessServiceError(err, "DataSafe", "CreateTargetDatabase", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyConfig/CreateSecurityPolicyConfig" + err = common.PostProcessServiceError(err, "DataSafe", "CreateSecurityPolicyConfig", apiReferenceLink) return response, err } @@ -4106,15 +4347,13 @@ func (client DataSafeClient) createTargetDatabase(ctx context.Context, request c return response, err } -// CreateUserAssessment Creates a new saved user assessment for one or multiple targets in a compartment. It saves the latest assessments in the -// specified compartment. If a scheduled is passed in, this operation persists the latest assessments that exist at the defined -// date and time, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). +// CreateSecurityPolicyDeployment Creates a Data Safe security policy deployment in the Data Safe Console. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateUserAssessment.go.html to see an example of how to use CreateUserAssessment API. -// A default retry strategy applies to this operation CreateUserAssessment() -func (client DataSafeClient) CreateUserAssessment(ctx context.Context, request CreateUserAssessmentRequest) (response CreateUserAssessmentResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSecurityPolicyDeployment.go.html to see an example of how to use CreateSecurityPolicyDeployment API. +// A default retry strategy applies to this operation CreateSecurityPolicyDeployment() +func (client DataSafeClient) CreateSecurityPolicyDeployment(ctx context.Context, request CreateSecurityPolicyDeploymentRequest) (response CreateSecurityPolicyDeploymentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4128,42 +4367,42 @@ func (client DataSafeClient) CreateUserAssessment(ctx context.Context, request C request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.createUserAssessment, policy) + ociResponse, err = common.Retry(ctx, request, client.createSecurityPolicyDeployment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateUserAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateSecurityPolicyDeploymentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = CreateUserAssessmentResponse{} + response = CreateSecurityPolicyDeploymentResponse{} } } return } - if convertedResponse, ok := ociResponse.(CreateUserAssessmentResponse); ok { + if convertedResponse, ok := ociResponse.(CreateSecurityPolicyDeploymentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateUserAssessmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateSecurityPolicyDeploymentResponse") } return } -// createUserAssessment implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) createUserAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createSecurityPolicyDeployment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createSecurityPolicyDeployment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/userAssessments", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityPolicyDeployments", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response CreateUserAssessmentResponse + var response CreateSecurityPolicyDeploymentResponse 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-safe/20181201/UserAssessment/CreateUserAssessment" - err = common.PostProcessServiceError(err, "DataSafe", "CreateUserAssessment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyDeployment/CreateSecurityPolicyDeployment" + err = common.PostProcessServiceError(err, "DataSafe", "CreateSecurityPolicyDeployment", apiReferenceLink) return response, err } @@ -4171,13 +4410,13 @@ func (client DataSafeClient) createUserAssessment(ctx context.Context, request c return response, err } -// DeactivateTargetDatabase Deactivates a target database in Data Safe. +// CreateSensitiveColumn Creates a new sensitive column in the specified sensitive data model. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeactivateTargetDatabase.go.html to see an example of how to use DeactivateTargetDatabase API. -// A default retry strategy applies to this operation DeactivateTargetDatabase() -func (client DataSafeClient) DeactivateTargetDatabase(ctx context.Context, request DeactivateTargetDatabaseRequest) (response DeactivateTargetDatabaseResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSensitiveColumn.go.html to see an example of how to use CreateSensitiveColumn API. +// A default retry strategy applies to this operation CreateSensitiveColumn() +func (client DataSafeClient) CreateSensitiveColumn(ctx context.Context, request CreateSensitiveColumnRequest) (response CreateSensitiveColumnResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4191,42 +4430,42 @@ func (client DataSafeClient) DeactivateTargetDatabase(ctx context.Context, reque request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.deactivateTargetDatabase, policy) + ociResponse, err = common.Retry(ctx, request, client.createSensitiveColumn, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeactivateTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateSensitiveColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeactivateTargetDatabaseResponse{} + response = CreateSensitiveColumnResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeactivateTargetDatabaseResponse); ok { + if convertedResponse, ok := ociResponse.(CreateSensitiveColumnResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeactivateTargetDatabaseResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateSensitiveColumnResponse") } return } -// deactivateTargetDatabase implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deactivateTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createSensitiveColumn implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createSensitiveColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/targetDatabases/{targetDatabaseId}/actions/deactivate", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeactivateTargetDatabaseResponse + var response CreateSensitiveColumnResponse 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-safe/20181201/TargetDatabase/DeactivateTargetDatabase" - err = common.PostProcessServiceError(err, "DataSafe", "DeactivateTargetDatabase", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveColumn/CreateSensitiveColumn" + err = common.PostProcessServiceError(err, "DataSafe", "CreateSensitiveColumn", apiReferenceLink) return response, err } @@ -4234,13 +4473,15 @@ func (client DataSafeClient) deactivateTargetDatabase(ctx context.Context, reque return response, err } -// DeleteAlertPolicy Deletes the specified user-defined alert policy. +// CreateSensitiveDataModel Creates a new sensitive data model. If schemas and sensitive types are provided, it automatically runs data discovery +// and adds the discovered columns to the sensitive data model. Otherwise, it creates an empty sensitive data model +// that can be updated later. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteAlertPolicy.go.html to see an example of how to use DeleteAlertPolicy API. -// A default retry strategy applies to this operation DeleteAlertPolicy() -func (client DataSafeClient) DeleteAlertPolicy(ctx context.Context, request DeleteAlertPolicyRequest) (response DeleteAlertPolicyResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSensitiveDataModel.go.html to see an example of how to use CreateSensitiveDataModel API. +// A default retry strategy applies to this operation CreateSensitiveDataModel() +func (client DataSafeClient) CreateSensitiveDataModel(ctx context.Context, request CreateSensitiveDataModelRequest) (response CreateSensitiveDataModelResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4249,42 +4490,47 @@ func (client DataSafeClient) DeleteAlertPolicy(ctx context.Context, request Dele if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteAlertPolicy, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createSensitiveDataModel, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteAlertPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateSensitiveDataModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteAlertPolicyResponse{} + response = CreateSensitiveDataModelResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteAlertPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(CreateSensitiveDataModelResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteAlertPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateSensitiveDataModelResponse") } return } -// deleteAlertPolicy implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteAlertPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createSensitiveDataModel implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createSensitiveDataModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/alertPolicies/{alertPolicyId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteAlertPolicyResponse + var response CreateSensitiveDataModelResponse 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-safe/20181201/AlertPolicy/DeleteAlertPolicy" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteAlertPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveDataModel/CreateSensitiveDataModel" + err = common.PostProcessServiceError(err, "DataSafe", "CreateSensitiveDataModel", apiReferenceLink) return response, err } @@ -4292,13 +4538,15 @@ func (client DataSafeClient) deleteAlertPolicy(ctx context.Context, request comm return response, err } -// DeleteAlertPolicyRule Deletes the specified user-defined alert policy rule. +// CreateSensitiveType Creates a new sensitive type, which can be a basic sensitive type with regular expressions or a sensitive category. +// While sensitive types are used for data discovery, sensitive categories are used for logically grouping the related +// or similar sensitive types. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteAlertPolicyRule.go.html to see an example of how to use DeleteAlertPolicyRule API. -// A default retry strategy applies to this operation DeleteAlertPolicyRule() -func (client DataSafeClient) DeleteAlertPolicyRule(ctx context.Context, request DeleteAlertPolicyRuleRequest) (response DeleteAlertPolicyRuleResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSensitiveType.go.html to see an example of how to use CreateSensitiveType API. +// A default retry strategy applies to this operation CreateSensitiveType() +func (client DataSafeClient) CreateSensitiveType(ctx context.Context, request CreateSensitiveTypeRequest) (response CreateSensitiveTypeResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4307,57 +4555,61 @@ func (client DataSafeClient) DeleteAlertPolicyRule(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteAlertPolicyRule, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createSensitiveType, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteAlertPolicyRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateSensitiveTypeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteAlertPolicyRuleResponse{} + response = CreateSensitiveTypeResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteAlertPolicyRuleResponse); ok { + if convertedResponse, ok := ociResponse.(CreateSensitiveTypeResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteAlertPolicyRuleResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateSensitiveTypeResponse") } return } -// deleteAlertPolicyRule implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteAlertPolicyRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createSensitiveType implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createSensitiveType(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/alertPolicies/{alertPolicyId}/rules/{ruleKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveTypes", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteAlertPolicyRuleResponse + var response CreateSensitiveTypeResponse 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-safe/20181201/AlertPolicyRule/DeleteAlertPolicyRule" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteAlertPolicyRule", apiReferenceLink) + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "DataSafe", "CreateSensitiveType", apiReferenceLink) return response, err } - err = common.UnmarshalResponse(httpResponse, &response) + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &sensitivetype{}) return response, err } -// DeleteAuditArchiveRetrieval To unload retrieved archive data, call the operation ListAuditArchiveRetrieval first. -// This will return the auditArchiveRetrievalId. Then call this operation with auditArchiveRetrievalId. +// CreateSensitiveTypeGroup Creates a new sensitive type group. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteAuditArchiveRetrieval.go.html to see an example of how to use DeleteAuditArchiveRetrieval API. -// A default retry strategy applies to this operation DeleteAuditArchiveRetrieval() -func (client DataSafeClient) DeleteAuditArchiveRetrieval(ctx context.Context, request DeleteAuditArchiveRetrievalRequest) (response DeleteAuditArchiveRetrievalResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSensitiveTypeGroup.go.html to see an example of how to use CreateSensitiveTypeGroup API. +// A default retry strategy applies to this operation CreateSensitiveTypeGroup() +func (client DataSafeClient) CreateSensitiveTypeGroup(ctx context.Context, request CreateSensitiveTypeGroupRequest) (response CreateSensitiveTypeGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4366,42 +4618,47 @@ func (client DataSafeClient) DeleteAuditArchiveRetrieval(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteAuditArchiveRetrieval, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createSensitiveTypeGroup, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteAuditArchiveRetrievalResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateSensitiveTypeGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteAuditArchiveRetrievalResponse{} + response = CreateSensitiveTypeGroupResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteAuditArchiveRetrievalResponse); ok { + if convertedResponse, ok := ociResponse.(CreateSensitiveTypeGroupResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteAuditArchiveRetrievalResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateSensitiveTypeGroupResponse") } return } -// deleteAuditArchiveRetrieval implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteAuditArchiveRetrieval(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createSensitiveTypeGroup implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createSensitiveTypeGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/auditArchiveRetrievals/{auditArchiveRetrievalId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveTypeGroups", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteAuditArchiveRetrievalResponse + var response CreateSensitiveTypeGroupResponse 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-safe/20181201/AuditArchiveRetrieval/DeleteAuditArchiveRetrieval" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteAuditArchiveRetrieval", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveTypeGroup/CreateSensitiveTypeGroup" + err = common.PostProcessServiceError(err, "DataSafe", "CreateSensitiveTypeGroup", apiReferenceLink) return response, err } @@ -4409,13 +4666,15 @@ func (client DataSafeClient) deleteAuditArchiveRetrieval(ctx context.Context, re return response, err } -// DeleteAuditTrail Deletes the specified audit trail. +// CreateSensitiveTypesExport Generates a downloadable file corresponding to the specified list of sensitive types. It's a prerequisite for the +// DownloadSensitiveTypesExport operation. Use this endpoint to generate a sensitive Types Export file and then use +// DownloadSensitiveTypesExport to download the generated file. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteAuditTrail.go.html to see an example of how to use DeleteAuditTrail API. -// A default retry strategy applies to this operation DeleteAuditTrail() -func (client DataSafeClient) DeleteAuditTrail(ctx context.Context, request DeleteAuditTrailRequest) (response DeleteAuditTrailResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSensitiveTypesExport.go.html to see an example of how to use CreateSensitiveTypesExport API. +// A default retry strategy applies to this operation CreateSensitiveTypesExport() +func (client DataSafeClient) CreateSensitiveTypesExport(ctx context.Context, request CreateSensitiveTypesExportRequest) (response CreateSensitiveTypesExportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4424,42 +4683,47 @@ func (client DataSafeClient) DeleteAuditTrail(ctx context.Context, request Delet if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteAuditTrail, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createSensitiveTypesExport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteAuditTrailResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateSensitiveTypesExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteAuditTrailResponse{} + response = CreateSensitiveTypesExportResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteAuditTrailResponse); ok { + if convertedResponse, ok := ociResponse.(CreateSensitiveTypesExportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteAuditTrailResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateSensitiveTypesExportResponse") } return } -// deleteAuditTrail implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteAuditTrail(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createSensitiveTypesExport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createSensitiveTypesExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/auditTrails/{auditTrailId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveTypesExports", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteAuditTrailResponse + var response CreateSensitiveTypesExportResponse 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-safe/20181201/AuditTrail/DeleteAuditTrail" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteAuditTrail", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveTypesExport/CreateSensitiveTypesExport" + err = common.PostProcessServiceError(err, "DataSafe", "CreateSensitiveTypesExport", apiReferenceLink) return response, err } @@ -4467,13 +4731,13 @@ func (client DataSafeClient) deleteAuditTrail(ctx context.Context, request commo return response, err } -// DeleteDataSafePrivateEndpoint Deletes the specified Data Safe private endpoint. +// CreateSqlCollection Creates a new SQL collection resource. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteDataSafePrivateEndpoint.go.html to see an example of how to use DeleteDataSafePrivateEndpoint API. -// A default retry strategy applies to this operation DeleteDataSafePrivateEndpoint() -func (client DataSafeClient) DeleteDataSafePrivateEndpoint(ctx context.Context, request DeleteDataSafePrivateEndpointRequest) (response DeleteDataSafePrivateEndpointResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateSqlCollection.go.html to see an example of how to use CreateSqlCollection API. +// A default retry strategy applies to this operation CreateSqlCollection() +func (client DataSafeClient) CreateSqlCollection(ctx context.Context, request CreateSqlCollectionRequest) (response CreateSqlCollectionResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4482,42 +4746,47 @@ func (client DataSafeClient) DeleteDataSafePrivateEndpoint(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteDataSafePrivateEndpoint, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createSqlCollection, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteDataSafePrivateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateSqlCollectionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteDataSafePrivateEndpointResponse{} + response = CreateSqlCollectionResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteDataSafePrivateEndpointResponse); ok { + if convertedResponse, ok := ociResponse.(CreateSqlCollectionResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteDataSafePrivateEndpointResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateSqlCollectionResponse") } return } -// deleteDataSafePrivateEndpoint implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteDataSafePrivateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createSqlCollection implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createSqlCollection(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sqlCollections", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteDataSafePrivateEndpointResponse + var response CreateSqlCollectionResponse 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-safe/20181201/DataSafePrivateEndpoint/DeleteDataSafePrivateEndpoint" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteDataSafePrivateEndpoint", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlCollection/CreateSqlCollection" + err = common.PostProcessServiceError(err, "DataSafe", "CreateSqlCollection", apiReferenceLink) return response, err } @@ -4525,13 +4794,13 @@ func (client DataSafeClient) deleteDataSafePrivateEndpoint(ctx context.Context, return response, err } -// DeleteDiscoveryJob Deletes the specified discovery job. +// CreateTargetAlertPolicyAssociation Creates a new target-alert policy association to track a alert policy applied on target. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteDiscoveryJob.go.html to see an example of how to use DeleteDiscoveryJob API. -// A default retry strategy applies to this operation DeleteDiscoveryJob() -func (client DataSafeClient) DeleteDiscoveryJob(ctx context.Context, request DeleteDiscoveryJobRequest) (response DeleteDiscoveryJobResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateTargetAlertPolicyAssociation.go.html to see an example of how to use CreateTargetAlertPolicyAssociation API. +// A default retry strategy applies to this operation CreateTargetAlertPolicyAssociation() +func (client DataSafeClient) CreateTargetAlertPolicyAssociation(ctx context.Context, request CreateTargetAlertPolicyAssociationRequest) (response CreateTargetAlertPolicyAssociationResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4540,42 +4809,47 @@ func (client DataSafeClient) DeleteDiscoveryJob(ctx context.Context, request Del if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteDiscoveryJob, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createTargetAlertPolicyAssociation, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteDiscoveryJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateTargetAlertPolicyAssociationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteDiscoveryJobResponse{} + response = CreateTargetAlertPolicyAssociationResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteDiscoveryJobResponse); ok { + if convertedResponse, ok := ociResponse.(CreateTargetAlertPolicyAssociationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteDiscoveryJobResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateTargetAlertPolicyAssociationResponse") } return } -// deleteDiscoveryJob implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteDiscoveryJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createTargetAlertPolicyAssociation implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createTargetAlertPolicyAssociation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/discoveryJobs/{discoveryJobId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/targetAlertPolicyAssociations", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteDiscoveryJobResponse + var response CreateTargetAlertPolicyAssociationResponse 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-safe/20181201/DiscoveryJob/DeleteDiscoveryJob" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteDiscoveryJob", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetAlertPolicyAssociation/CreateTargetAlertPolicyAssociation" + err = common.PostProcessServiceError(err, "DataSafe", "CreateTargetAlertPolicyAssociation", apiReferenceLink) return response, err } @@ -4583,13 +4857,13 @@ func (client DataSafeClient) deleteDiscoveryJob(ctx context.Context, request com return response, err } -// DeleteDiscoveryJobResult Deletes the specified discovery result. +// CreateTargetDatabase Registers the specified database with Data Safe and creates a Data Safe target database in the Data Safe Console. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteDiscoveryJobResult.go.html to see an example of how to use DeleteDiscoveryJobResult API. -// A default retry strategy applies to this operation DeleteDiscoveryJobResult() -func (client DataSafeClient) DeleteDiscoveryJobResult(ctx context.Context, request DeleteDiscoveryJobResultRequest) (response DeleteDiscoveryJobResultResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateTargetDatabase.go.html to see an example of how to use CreateTargetDatabase API. +// A default retry strategy applies to this operation CreateTargetDatabase() +func (client DataSafeClient) CreateTargetDatabase(ctx context.Context, request CreateTargetDatabaseRequest) (response CreateTargetDatabaseResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4598,42 +4872,47 @@ func (client DataSafeClient) DeleteDiscoveryJobResult(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteDiscoveryJobResult, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createTargetDatabase, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteDiscoveryJobResultResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteDiscoveryJobResultResponse{} + response = CreateTargetDatabaseResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteDiscoveryJobResultResponse); ok { + if convertedResponse, ok := ociResponse.(CreateTargetDatabaseResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteDiscoveryJobResultResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateTargetDatabaseResponse") } return } -// deleteDiscoveryJobResult implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteDiscoveryJobResult(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createTargetDatabase implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/discoveryJobs/{discoveryJobId}/results/{resultKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/targetDatabases", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteDiscoveryJobResultResponse + var response CreateTargetDatabaseResponse 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-safe/20181201/DiscoveryJobResult/DeleteDiscoveryJobResult" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteDiscoveryJobResult", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/CreateTargetDatabase" + err = common.PostProcessServiceError(err, "DataSafe", "CreateTargetDatabase", apiReferenceLink) return response, err } @@ -4641,13 +4920,13 @@ func (client DataSafeClient) deleteDiscoveryJobResult(ctx context.Context, reque return response, err } -// DeleteLibraryMaskingFormat Deletes the specified library masking format. +// CreateTargetDatabaseGroup Creates a new target database group. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteLibraryMaskingFormat.go.html to see an example of how to use DeleteLibraryMaskingFormat API. -// A default retry strategy applies to this operation DeleteLibraryMaskingFormat() -func (client DataSafeClient) DeleteLibraryMaskingFormat(ctx context.Context, request DeleteLibraryMaskingFormatRequest) (response DeleteLibraryMaskingFormatResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateTargetDatabaseGroup.go.html to see an example of how to use CreateTargetDatabaseGroup API. +// A default retry strategy applies to this operation CreateTargetDatabaseGroup() +func (client DataSafeClient) CreateTargetDatabaseGroup(ctx context.Context, request CreateTargetDatabaseGroupRequest) (response CreateTargetDatabaseGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4656,42 +4935,47 @@ func (client DataSafeClient) DeleteLibraryMaskingFormat(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteLibraryMaskingFormat, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createTargetDatabaseGroup, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteLibraryMaskingFormatResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateTargetDatabaseGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteLibraryMaskingFormatResponse{} + response = CreateTargetDatabaseGroupResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteLibraryMaskingFormatResponse); ok { + if convertedResponse, ok := ociResponse.(CreateTargetDatabaseGroupResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteLibraryMaskingFormatResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateTargetDatabaseGroupResponse") } return } -// deleteLibraryMaskingFormat implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteLibraryMaskingFormat(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createTargetDatabaseGroup implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createTargetDatabaseGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/libraryMaskingFormats/{libraryMaskingFormatId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/targetDatabaseGroups", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteLibraryMaskingFormatResponse + var response CreateTargetDatabaseGroupResponse 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-safe/20181201/LibraryMaskingFormat/DeleteLibraryMaskingFormat" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteLibraryMaskingFormat", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabaseGroup/CreateTargetDatabaseGroup" + err = common.PostProcessServiceError(err, "DataSafe", "CreateTargetDatabaseGroup", apiReferenceLink) return response, err } @@ -4699,13 +4983,13 @@ func (client DataSafeClient) deleteLibraryMaskingFormat(ctx context.Context, req return response, err } -// DeleteMaskingColumn Deletes the specified masking column. +// CreateUnifiedAuditPolicy Creates the specified unified audit policy. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteMaskingColumn.go.html to see an example of how to use DeleteMaskingColumn API. -// A default retry strategy applies to this operation DeleteMaskingColumn() -func (client DataSafeClient) DeleteMaskingColumn(ctx context.Context, request DeleteMaskingColumnRequest) (response DeleteMaskingColumnResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateUnifiedAuditPolicy.go.html to see an example of how to use CreateUnifiedAuditPolicy API. +// A default retry strategy applies to this operation CreateUnifiedAuditPolicy() +func (client DataSafeClient) CreateUnifiedAuditPolicy(ctx context.Context, request CreateUnifiedAuditPolicyRequest) (response CreateUnifiedAuditPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4714,42 +4998,47 @@ func (client DataSafeClient) DeleteMaskingColumn(ctx context.Context, request De if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteMaskingColumn, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createUnifiedAuditPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteMaskingColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateUnifiedAuditPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteMaskingColumnResponse{} + response = CreateUnifiedAuditPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteMaskingColumnResponse); ok { + if convertedResponse, ok := ociResponse.(CreateUnifiedAuditPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteMaskingColumnResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateUnifiedAuditPolicyResponse") } return } -// deleteMaskingColumn implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteMaskingColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createUnifiedAuditPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createUnifiedAuditPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/maskingPolicies/{maskingPolicyId}/maskingColumns/{maskingColumnKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/unifiedAuditPolicies", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteMaskingColumnResponse + var response CreateUnifiedAuditPolicyResponse 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-safe/20181201/MaskingColumn/DeleteMaskingColumn" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteMaskingColumn", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicy/CreateUnifiedAuditPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "CreateUnifiedAuditPolicy", apiReferenceLink) return response, err } @@ -4757,13 +5046,15 @@ func (client DataSafeClient) deleteMaskingColumn(ctx context.Context, request co return response, err } -// DeleteMaskingPolicy Deletes the specified masking policy. +// CreateUserAssessment Creates a new saved user assessment for one or multiple targets in a compartment. It saves the latest assessments in the +// specified compartment. If a scheduled is passed in, this operation persists the latest assessments that exist at the defined +// date and time, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteMaskingPolicy.go.html to see an example of how to use DeleteMaskingPolicy API. -// A default retry strategy applies to this operation DeleteMaskingPolicy() -func (client DataSafeClient) DeleteMaskingPolicy(ctx context.Context, request DeleteMaskingPolicyRequest) (response DeleteMaskingPolicyResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/CreateUserAssessment.go.html to see an example of how to use CreateUserAssessment API. +// A default retry strategy applies to this operation CreateUserAssessment() +func (client DataSafeClient) CreateUserAssessment(ctx context.Context, request CreateUserAssessmentRequest) (response CreateUserAssessmentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4772,42 +5063,47 @@ func (client DataSafeClient) DeleteMaskingPolicy(ctx context.Context, request De if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteMaskingPolicy, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createUserAssessment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteMaskingPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = CreateUserAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteMaskingPolicyResponse{} + response = CreateUserAssessmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteMaskingPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(CreateUserAssessmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteMaskingPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into CreateUserAssessmentResponse") } return } -// deleteMaskingPolicy implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteMaskingPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// createUserAssessment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) createUserAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/maskingPolicies/{maskingPolicyId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/userAssessments", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteMaskingPolicyResponse + var response CreateUserAssessmentResponse 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-safe/20181201/MaskingPolicy/DeleteMaskingPolicy" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteMaskingPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UserAssessment/CreateUserAssessment" + err = common.PostProcessServiceError(err, "DataSafe", "CreateUserAssessment", apiReferenceLink) return response, err } @@ -4815,13 +5111,13 @@ func (client DataSafeClient) deleteMaskingPolicy(ctx context.Context, request co return response, err } -// DeleteMaskingPolicyHealthReport Deletes the specified masking policy health report. +// DeactivateTargetDatabase Deactivates a target database in Data Safe. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteMaskingPolicyHealthReport.go.html to see an example of how to use DeleteMaskingPolicyHealthReport API. -// A default retry strategy applies to this operation DeleteMaskingPolicyHealthReport() -func (client DataSafeClient) DeleteMaskingPolicyHealthReport(ctx context.Context, request DeleteMaskingPolicyHealthReportRequest) (response DeleteMaskingPolicyHealthReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeactivateTargetDatabase.go.html to see an example of how to use DeactivateTargetDatabase API. +// A default retry strategy applies to this operation DeactivateTargetDatabase() +func (client DataSafeClient) DeactivateTargetDatabase(ctx context.Context, request DeactivateTargetDatabaseRequest) (response DeactivateTargetDatabaseResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4830,42 +5126,47 @@ func (client DataSafeClient) DeleteMaskingPolicyHealthReport(ctx context.Context if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteMaskingPolicyHealthReport, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.deactivateTargetDatabase, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteMaskingPolicyHealthReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeactivateTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteMaskingPolicyHealthReportResponse{} + response = DeactivateTargetDatabaseResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteMaskingPolicyHealthReportResponse); ok { + if convertedResponse, ok := ociResponse.(DeactivateTargetDatabaseResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteMaskingPolicyHealthReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeactivateTargetDatabaseResponse") } return } -// deleteMaskingPolicyHealthReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteMaskingPolicyHealthReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deactivateTargetDatabase implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deactivateTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/maskingPolicyHealthReports/{maskingPolicyHealthReportId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/targetDatabases/{targetDatabaseId}/actions/deactivate", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteMaskingPolicyHealthReportResponse + var response DeactivateTargetDatabaseResponse 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-safe/20181201/MaskingPolicyHealthReport/DeleteMaskingPolicyHealthReport" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteMaskingPolicyHealthReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/DeactivateTargetDatabase" + err = common.PostProcessServiceError(err, "DataSafe", "DeactivateTargetDatabase", apiReferenceLink) return response, err } @@ -4873,13 +5174,13 @@ func (client DataSafeClient) deleteMaskingPolicyHealthReport(ctx context.Context return response, err } -// DeleteMaskingReport Deletes the specified masking report. +// DeleteAlertPolicy Deletes the specified user-defined alert policy. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteMaskingReport.go.html to see an example of how to use DeleteMaskingReport API. -// A default retry strategy applies to this operation DeleteMaskingReport() -func (client DataSafeClient) DeleteMaskingReport(ctx context.Context, request DeleteMaskingReportRequest) (response DeleteMaskingReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteAlertPolicy.go.html to see an example of how to use DeleteAlertPolicy API. +// A default retry strategy applies to this operation DeleteAlertPolicy() +func (client DataSafeClient) DeleteAlertPolicy(ctx context.Context, request DeleteAlertPolicyRequest) (response DeleteAlertPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4888,42 +5189,42 @@ func (client DataSafeClient) DeleteMaskingReport(ctx context.Context, request De if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteMaskingReport, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteAlertPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteMaskingReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteAlertPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteMaskingReportResponse{} + response = DeleteAlertPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteMaskingReportResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteAlertPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteMaskingReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteAlertPolicyResponse") } return } -// deleteMaskingReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteMaskingReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteAlertPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteAlertPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/maskingReports/{maskingReportId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/alertPolicies/{alertPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteMaskingReportResponse + var response DeleteAlertPolicyResponse 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-safe/20181201/MaskingReport/DeleteMaskingReport" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteMaskingReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AlertPolicy/DeleteAlertPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteAlertPolicy", apiReferenceLink) return response, err } @@ -4931,13 +5232,13 @@ func (client DataSafeClient) deleteMaskingReport(ctx context.Context, request co return response, err } -// DeleteOnPremConnector Deletes the specified on-premises connector. +// DeleteAlertPolicyRule Deletes the specified user-defined alert policy rule. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteOnPremConnector.go.html to see an example of how to use DeleteOnPremConnector API. -// A default retry strategy applies to this operation DeleteOnPremConnector() -func (client DataSafeClient) DeleteOnPremConnector(ctx context.Context, request DeleteOnPremConnectorRequest) (response DeleteOnPremConnectorResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteAlertPolicyRule.go.html to see an example of how to use DeleteAlertPolicyRule API. +// A default retry strategy applies to this operation DeleteAlertPolicyRule() +func (client DataSafeClient) DeleteAlertPolicyRule(ctx context.Context, request DeleteAlertPolicyRuleRequest) (response DeleteAlertPolicyRuleResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -4946,42 +5247,42 @@ func (client DataSafeClient) DeleteOnPremConnector(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteOnPremConnector, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteAlertPolicyRule, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteOnPremConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteAlertPolicyRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteOnPremConnectorResponse{} + response = DeleteAlertPolicyRuleResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteOnPremConnectorResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteAlertPolicyRuleResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteOnPremConnectorResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteAlertPolicyRuleResponse") } return } -// deleteOnPremConnector implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteOnPremConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteAlertPolicyRule implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteAlertPolicyRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/onPremConnectors/{onPremConnectorId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/alertPolicies/{alertPolicyId}/rules/{ruleKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteOnPremConnectorResponse + var response DeleteAlertPolicyRuleResponse 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-safe/20181201/OnPremConnector/DeleteOnPremConnector" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteOnPremConnector", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AlertPolicyRule/DeleteAlertPolicyRule" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteAlertPolicyRule", apiReferenceLink) return response, err } @@ -4989,13 +5290,13 @@ func (client DataSafeClient) deleteOnPremConnector(ctx context.Context, request return response, err } -// DeletePeerTargetDatabase Removes the specified peer target database from Data Safe. +// DeleteAttributeSet Submits a work request to delete an attribute set. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeletePeerTargetDatabase.go.html to see an example of how to use DeletePeerTargetDatabase API. -// A default retry strategy applies to this operation DeletePeerTargetDatabase() -func (client DataSafeClient) DeletePeerTargetDatabase(ctx context.Context, request DeletePeerTargetDatabaseRequest) (response DeletePeerTargetDatabaseResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteAttributeSet.go.html to see an example of how to use DeleteAttributeSet API. +// A default retry strategy applies to this operation DeleteAttributeSet() +func (client DataSafeClient) DeleteAttributeSet(ctx context.Context, request DeleteAttributeSetRequest) (response DeleteAttributeSetResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5004,42 +5305,42 @@ func (client DataSafeClient) DeletePeerTargetDatabase(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deletePeerTargetDatabase, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteAttributeSet, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeletePeerTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteAttributeSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeletePeerTargetDatabaseResponse{} + response = DeleteAttributeSetResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeletePeerTargetDatabaseResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteAttributeSetResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeletePeerTargetDatabaseResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteAttributeSetResponse") } return } -// deletePeerTargetDatabase implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deletePeerTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteAttributeSet implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteAttributeSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/targetDatabases/{targetDatabaseId}/peerTargetDatabases/{peerTargetDatabaseId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/attributeSets/{attributeSetId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeletePeerTargetDatabaseResponse + var response DeleteAttributeSetResponse 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-safe/20181201/PeerTargetDatabase/DeletePeerTargetDatabase" - err = common.PostProcessServiceError(err, "DataSafe", "DeletePeerTargetDatabase", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AttributeSet/DeleteAttributeSet" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteAttributeSet", apiReferenceLink) return response, err } @@ -5047,13 +5348,14 @@ func (client DataSafeClient) deletePeerTargetDatabase(ctx context.Context, reque return response, err } -// DeleteReferentialRelation Deletes the specified referential relation. +// DeleteAuditArchiveRetrieval To unload retrieved archive data, call the operation ListAuditArchiveRetrieval first. +// This will return the auditArchiveRetrievalId. Then call this operation with auditArchiveRetrievalId. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteReferentialRelation.go.html to see an example of how to use DeleteReferentialRelation API. -// A default retry strategy applies to this operation DeleteReferentialRelation() -func (client DataSafeClient) DeleteReferentialRelation(ctx context.Context, request DeleteReferentialRelationRequest) (response DeleteReferentialRelationResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteAuditArchiveRetrieval.go.html to see an example of how to use DeleteAuditArchiveRetrieval API. +// A default retry strategy applies to this operation DeleteAuditArchiveRetrieval() +func (client DataSafeClient) DeleteAuditArchiveRetrieval(ctx context.Context, request DeleteAuditArchiveRetrievalRequest) (response DeleteAuditArchiveRetrievalResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5062,42 +5364,42 @@ func (client DataSafeClient) DeleteReferentialRelation(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteReferentialRelation, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteAuditArchiveRetrieval, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteReferentialRelationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteAuditArchiveRetrievalResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteReferentialRelationResponse{} + response = DeleteAuditArchiveRetrievalResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteReferentialRelationResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteAuditArchiveRetrievalResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteReferentialRelationResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteAuditArchiveRetrievalResponse") } return } -// deleteReferentialRelation implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteReferentialRelation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteAuditArchiveRetrieval implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteAuditArchiveRetrieval(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sensitiveDataModels/{sensitiveDataModelId}/referentialRelations/{referentialRelationKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/auditArchiveRetrievals/{auditArchiveRetrievalId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteReferentialRelationResponse + var response DeleteAuditArchiveRetrievalResponse 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-safe/20181201/ReferentialRelation/DeleteReferentialRelation" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteReferentialRelation", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AuditArchiveRetrieval/DeleteAuditArchiveRetrieval" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteAuditArchiveRetrieval", apiReferenceLink) return response, err } @@ -5105,13 +5407,14 @@ func (client DataSafeClient) deleteReferentialRelation(ctx context.Context, requ return response, err } -// DeleteReportDefinition Deletes the specified report definition. Only the user created report definition can be deleted. The seeded report definitions cannot be deleted. +// DeleteAuditProfile Deletes the specified audit profile. +// The audit profile delete operation is only supported for audit profiles with target type as TARGET_DATABASE_GROUP. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteReportDefinition.go.html to see an example of how to use DeleteReportDefinition API. -// A default retry strategy applies to this operation DeleteReportDefinition() -func (client DataSafeClient) DeleteReportDefinition(ctx context.Context, request DeleteReportDefinitionRequest) (response DeleteReportDefinitionResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteAuditProfile.go.html to see an example of how to use DeleteAuditProfile API. +// A default retry strategy applies to this operation DeleteAuditProfile() +func (client DataSafeClient) DeleteAuditProfile(ctx context.Context, request DeleteAuditProfileRequest) (response DeleteAuditProfileResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5120,42 +5423,42 @@ func (client DataSafeClient) DeleteReportDefinition(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteReportDefinition, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteAuditProfile, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteReportDefinitionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteAuditProfileResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteReportDefinitionResponse{} + response = DeleteAuditProfileResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteReportDefinitionResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteAuditProfileResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteReportDefinitionResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteAuditProfileResponse") } return } -// deleteReportDefinition implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteReportDefinition(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteAuditProfile implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteAuditProfile(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/reportDefinitions/{reportDefinitionId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/auditProfiles/{auditProfileId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteReportDefinitionResponse + var response DeleteAuditProfileResponse 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-safe/20181201/ReportDefinition/DeleteReportDefinition" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteReportDefinition", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AuditProfile/DeleteAuditProfile" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteAuditProfile", apiReferenceLink) return response, err } @@ -5163,13 +5466,13 @@ func (client DataSafeClient) deleteReportDefinition(ctx context.Context, request return response, err } -// DeleteSdmMaskingPolicyDifference Deletes the specified SDM Masking policy difference. +// DeleteAuditTrail Deletes the specified audit trail. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSdmMaskingPolicyDifference.go.html to see an example of how to use DeleteSdmMaskingPolicyDifference API. -// A default retry strategy applies to this operation DeleteSdmMaskingPolicyDifference() -func (client DataSafeClient) DeleteSdmMaskingPolicyDifference(ctx context.Context, request DeleteSdmMaskingPolicyDifferenceRequest) (response DeleteSdmMaskingPolicyDifferenceResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteAuditTrail.go.html to see an example of how to use DeleteAuditTrail API. +// A default retry strategy applies to this operation DeleteAuditTrail() +func (client DataSafeClient) DeleteAuditTrail(ctx context.Context, request DeleteAuditTrailRequest) (response DeleteAuditTrailResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5178,42 +5481,42 @@ func (client DataSafeClient) DeleteSdmMaskingPolicyDifference(ctx context.Contex if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteSdmMaskingPolicyDifference, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteAuditTrail, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteSdmMaskingPolicyDifferenceResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteAuditTrailResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteSdmMaskingPolicyDifferenceResponse{} + response = DeleteAuditTrailResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteSdmMaskingPolicyDifferenceResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteAuditTrailResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteSdmMaskingPolicyDifferenceResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteAuditTrailResponse") } return } -// deleteSdmMaskingPolicyDifference implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteSdmMaskingPolicyDifference(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteAuditTrail implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteAuditTrail(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/auditTrails/{auditTrailId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteSdmMaskingPolicyDifferenceResponse + var response DeleteAuditTrailResponse 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-safe/20181201/SdmMaskingPolicyDifference/DeleteSdmMaskingPolicyDifference" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteSdmMaskingPolicyDifference", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AuditTrail/DeleteAuditTrail" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteAuditTrail", apiReferenceLink) return response, err } @@ -5221,16 +5524,13 @@ func (client DataSafeClient) deleteSdmMaskingPolicyDifference(ctx context.Contex return response, err } -// DeleteSecurityAssessment Deletes the specified saved security assessment or schedule. To delete a security assessment schedule, -// first call the operation ListSecurityAssessments with filters "type = save_schedule". -// That operation returns the scheduleAssessmentId. Then, call DeleteSecurityAssessment with the scheduleAssessmentId. -// If the assessment being deleted is the baseline for that compartment, then it will impact all baselines in the compartment. +// DeleteDataSafePrivateEndpoint Deletes the specified Data Safe private endpoint. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSecurityAssessment.go.html to see an example of how to use DeleteSecurityAssessment API. -// A default retry strategy applies to this operation DeleteSecurityAssessment() -func (client DataSafeClient) DeleteSecurityAssessment(ctx context.Context, request DeleteSecurityAssessmentRequest) (response DeleteSecurityAssessmentResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteDataSafePrivateEndpoint.go.html to see an example of how to use DeleteDataSafePrivateEndpoint API. +// A default retry strategy applies to this operation DeleteDataSafePrivateEndpoint() +func (client DataSafeClient) DeleteDataSafePrivateEndpoint(ctx context.Context, request DeleteDataSafePrivateEndpointRequest) (response DeleteDataSafePrivateEndpointResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5239,42 +5539,42 @@ func (client DataSafeClient) DeleteSecurityAssessment(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteSecurityAssessment, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteDataSafePrivateEndpoint, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteSecurityAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteDataSafePrivateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteSecurityAssessmentResponse{} + response = DeleteDataSafePrivateEndpointResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteSecurityAssessmentResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteDataSafePrivateEndpointResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteSecurityAssessmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteDataSafePrivateEndpointResponse") } return } -// deleteSecurityAssessment implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteSecurityAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteDataSafePrivateEndpoint implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteDataSafePrivateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/securityAssessments/{securityAssessmentId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteSecurityAssessmentResponse + var response DeleteDataSafePrivateEndpointResponse 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-safe/20181201/SecurityAssessment/DeleteSecurityAssessment" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteSecurityAssessment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DataSafePrivateEndpoint/DeleteDataSafePrivateEndpoint" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteDataSafePrivateEndpoint", apiReferenceLink) return response, err } @@ -5282,13 +5582,13 @@ func (client DataSafeClient) deleteSecurityAssessment(ctx context.Context, reque return response, err } -// DeleteSensitiveColumn Deletes the specified sensitive column. +// DeleteDiscoveryJob Deletes the specified discovery job. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSensitiveColumn.go.html to see an example of how to use DeleteSensitiveColumn API. -// A default retry strategy applies to this operation DeleteSensitiveColumn() -func (client DataSafeClient) DeleteSensitiveColumn(ctx context.Context, request DeleteSensitiveColumnRequest) (response DeleteSensitiveColumnResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteDiscoveryJob.go.html to see an example of how to use DeleteDiscoveryJob API. +// A default retry strategy applies to this operation DeleteDiscoveryJob() +func (client DataSafeClient) DeleteDiscoveryJob(ctx context.Context, request DeleteDiscoveryJobRequest) (response DeleteDiscoveryJobResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5297,42 +5597,42 @@ func (client DataSafeClient) DeleteSensitiveColumn(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteSensitiveColumn, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteDiscoveryJob, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteSensitiveColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteDiscoveryJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteSensitiveColumnResponse{} + response = DeleteDiscoveryJobResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteSensitiveColumnResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteDiscoveryJobResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteSensitiveColumnResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteDiscoveryJobResponse") } return } -// deleteSensitiveColumn implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteSensitiveColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteDiscoveryJob implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteDiscoveryJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns/{sensitiveColumnKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/discoveryJobs/{discoveryJobId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteSensitiveColumnResponse + var response DeleteDiscoveryJobResponse 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-safe/20181201/SensitiveColumn/DeleteSensitiveColumn" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteSensitiveColumn", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DiscoveryJob/DeleteDiscoveryJob" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteDiscoveryJob", apiReferenceLink) return response, err } @@ -5340,13 +5640,13 @@ func (client DataSafeClient) deleteSensitiveColumn(ctx context.Context, request return response, err } -// DeleteSensitiveDataModel Deletes the specified sensitive data model. +// DeleteDiscoveryJobResult Deletes the specified discovery result. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSensitiveDataModel.go.html to see an example of how to use DeleteSensitiveDataModel API. -// A default retry strategy applies to this operation DeleteSensitiveDataModel() -func (client DataSafeClient) DeleteSensitiveDataModel(ctx context.Context, request DeleteSensitiveDataModelRequest) (response DeleteSensitiveDataModelResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteDiscoveryJobResult.go.html to see an example of how to use DeleteDiscoveryJobResult API. +// A default retry strategy applies to this operation DeleteDiscoveryJobResult() +func (client DataSafeClient) DeleteDiscoveryJobResult(ctx context.Context, request DeleteDiscoveryJobResultRequest) (response DeleteDiscoveryJobResultResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5355,42 +5655,42 @@ func (client DataSafeClient) DeleteSensitiveDataModel(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteSensitiveDataModel, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteDiscoveryJobResult, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteSensitiveDataModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteDiscoveryJobResultResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteSensitiveDataModelResponse{} + response = DeleteDiscoveryJobResultResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteSensitiveDataModelResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteDiscoveryJobResultResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteSensitiveDataModelResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteDiscoveryJobResultResponse") } return } -// deleteSensitiveDataModel implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteSensitiveDataModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteDiscoveryJobResult implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteDiscoveryJobResult(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sensitiveDataModels/{sensitiveDataModelId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/discoveryJobs/{discoveryJobId}/results/{resultKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteSensitiveDataModelResponse + var response DeleteDiscoveryJobResultResponse 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-safe/20181201/SensitiveDataModel/DeleteSensitiveDataModel" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteSensitiveDataModel", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DiscoveryJobResult/DeleteDiscoveryJobResult" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteDiscoveryJobResult", apiReferenceLink) return response, err } @@ -5398,13 +5698,13 @@ func (client DataSafeClient) deleteSensitiveDataModel(ctx context.Context, reque return response, err } -// DeleteSensitiveType Deletes the specified sensitive type. +// DeleteLibraryMaskingFormat Deletes the specified library masking format. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSensitiveType.go.html to see an example of how to use DeleteSensitiveType API. -// A default retry strategy applies to this operation DeleteSensitiveType() -func (client DataSafeClient) DeleteSensitiveType(ctx context.Context, request DeleteSensitiveTypeRequest) (response DeleteSensitiveTypeResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteLibraryMaskingFormat.go.html to see an example of how to use DeleteLibraryMaskingFormat API. +// A default retry strategy applies to this operation DeleteLibraryMaskingFormat() +func (client DataSafeClient) DeleteLibraryMaskingFormat(ctx context.Context, request DeleteLibraryMaskingFormatRequest) (response DeleteLibraryMaskingFormatResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5413,42 +5713,42 @@ func (client DataSafeClient) DeleteSensitiveType(ctx context.Context, request De if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteSensitiveType, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteLibraryMaskingFormat, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteSensitiveTypeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteLibraryMaskingFormatResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteSensitiveTypeResponse{} + response = DeleteLibraryMaskingFormatResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteSensitiveTypeResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteLibraryMaskingFormatResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteSensitiveTypeResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteLibraryMaskingFormatResponse") } return } -// deleteSensitiveType implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteSensitiveType(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteLibraryMaskingFormat implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteLibraryMaskingFormat(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sensitiveTypes/{sensitiveTypeId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/libraryMaskingFormats/{libraryMaskingFormatId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteSensitiveTypeResponse + var response DeleteLibraryMaskingFormatResponse 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-safe/20181201/SensitiveType/DeleteSensitiveType" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteSensitiveType", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/LibraryMaskingFormat/DeleteLibraryMaskingFormat" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteLibraryMaskingFormat", apiReferenceLink) return response, err } @@ -5456,13 +5756,13 @@ func (client DataSafeClient) deleteSensitiveType(ctx context.Context, request co return response, err } -// DeleteSensitiveTypeGroup Deletes the specified sensitive type group. +// DeleteMaskingColumn Deletes the specified masking column. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSensitiveTypeGroup.go.html to see an example of how to use DeleteSensitiveTypeGroup API. -// A default retry strategy applies to this operation DeleteSensitiveTypeGroup() -func (client DataSafeClient) DeleteSensitiveTypeGroup(ctx context.Context, request DeleteSensitiveTypeGroupRequest) (response DeleteSensitiveTypeGroupResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteMaskingColumn.go.html to see an example of how to use DeleteMaskingColumn API. +// A default retry strategy applies to this operation DeleteMaskingColumn() +func (client DataSafeClient) DeleteMaskingColumn(ctx context.Context, request DeleteMaskingColumnRequest) (response DeleteMaskingColumnResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5471,42 +5771,42 @@ func (client DataSafeClient) DeleteSensitiveTypeGroup(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteSensitiveTypeGroup, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteMaskingColumn, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteSensitiveTypeGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteMaskingColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteSensitiveTypeGroupResponse{} + response = DeleteMaskingColumnResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteSensitiveTypeGroupResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteMaskingColumnResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteSensitiveTypeGroupResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteMaskingColumnResponse") } return } -// deleteSensitiveTypeGroup implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteSensitiveTypeGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteMaskingColumn implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteMaskingColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sensitiveTypeGroups/{sensitiveTypeGroupId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/maskingPolicies/{maskingPolicyId}/maskingColumns/{maskingColumnKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteSensitiveTypeGroupResponse + var response DeleteMaskingColumnResponse 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-safe/20181201/SensitiveTypeGroup/DeleteSensitiveTypeGroup" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteSensitiveTypeGroup", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingColumn/DeleteMaskingColumn" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteMaskingColumn", apiReferenceLink) return response, err } @@ -5514,13 +5814,13 @@ func (client DataSafeClient) deleteSensitiveTypeGroup(ctx context.Context, reque return response, err } -// DeleteSensitiveTypesExport Deletes the specified sensitive types export. +// DeleteMaskingPolicy Deletes the specified masking policy. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSensitiveTypesExport.go.html to see an example of how to use DeleteSensitiveTypesExport API. -// A default retry strategy applies to this operation DeleteSensitiveTypesExport() -func (client DataSafeClient) DeleteSensitiveTypesExport(ctx context.Context, request DeleteSensitiveTypesExportRequest) (response DeleteSensitiveTypesExportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteMaskingPolicy.go.html to see an example of how to use DeleteMaskingPolicy API. +// A default retry strategy applies to this operation DeleteMaskingPolicy() +func (client DataSafeClient) DeleteMaskingPolicy(ctx context.Context, request DeleteMaskingPolicyRequest) (response DeleteMaskingPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5529,42 +5829,42 @@ func (client DataSafeClient) DeleteSensitiveTypesExport(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteSensitiveTypesExport, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteMaskingPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteSensitiveTypesExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteMaskingPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteSensitiveTypesExportResponse{} + response = DeleteMaskingPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteSensitiveTypesExportResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteMaskingPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteSensitiveTypesExportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteMaskingPolicyResponse") } return } -// deleteSensitiveTypesExport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteSensitiveTypesExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteMaskingPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteMaskingPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sensitiveTypesExports/{sensitiveTypesExportId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/maskingPolicies/{maskingPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteSensitiveTypesExportResponse + var response DeleteMaskingPolicyResponse 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-safe/20181201/SensitiveTypesExport/DeleteSensitiveTypesExport" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteSensitiveTypesExport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicy/DeleteMaskingPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteMaskingPolicy", apiReferenceLink) return response, err } @@ -5572,13 +5872,13 @@ func (client DataSafeClient) deleteSensitiveTypesExport(ctx context.Context, req return response, err } -// DeleteSqlCollection Deletes the specified SQL collection. +// DeleteMaskingPolicyHealthReport Deletes the specified masking policy health report. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSqlCollection.go.html to see an example of how to use DeleteSqlCollection API. -// A default retry strategy applies to this operation DeleteSqlCollection() -func (client DataSafeClient) DeleteSqlCollection(ctx context.Context, request DeleteSqlCollectionRequest) (response DeleteSqlCollectionResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteMaskingPolicyHealthReport.go.html to see an example of how to use DeleteMaskingPolicyHealthReport API. +// A default retry strategy applies to this operation DeleteMaskingPolicyHealthReport() +func (client DataSafeClient) DeleteMaskingPolicyHealthReport(ctx context.Context, request DeleteMaskingPolicyHealthReportRequest) (response DeleteMaskingPolicyHealthReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5587,42 +5887,42 @@ func (client DataSafeClient) DeleteSqlCollection(ctx context.Context, request De if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteSqlCollection, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteMaskingPolicyHealthReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteSqlCollectionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteMaskingPolicyHealthReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteSqlCollectionResponse{} + response = DeleteMaskingPolicyHealthReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteSqlCollectionResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteMaskingPolicyHealthReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteSqlCollectionResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteMaskingPolicyHealthReportResponse") } return } -// deleteSqlCollection implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteSqlCollection(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteMaskingPolicyHealthReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteMaskingPolicyHealthReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sqlCollections/{sqlCollectionId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/maskingPolicyHealthReports/{maskingPolicyHealthReportId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteSqlCollectionResponse + var response DeleteMaskingPolicyHealthReportResponse 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-safe/20181201/SqlCollection/DeleteSqlCollection" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteSqlCollection", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/DeleteMaskingPolicyHealthReport" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteMaskingPolicyHealthReport", apiReferenceLink) return response, err } @@ -5630,13 +5930,13 @@ func (client DataSafeClient) deleteSqlCollection(ctx context.Context, request co return response, err } -// DeleteSqlFirewallAllowedSql Deletes the specified allowed sql. +// DeleteMaskingReport Deletes the specified masking report. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSqlFirewallAllowedSql.go.html to see an example of how to use DeleteSqlFirewallAllowedSql API. -// A default retry strategy applies to this operation DeleteSqlFirewallAllowedSql() -func (client DataSafeClient) DeleteSqlFirewallAllowedSql(ctx context.Context, request DeleteSqlFirewallAllowedSqlRequest) (response DeleteSqlFirewallAllowedSqlResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteMaskingReport.go.html to see an example of how to use DeleteMaskingReport API. +// A default retry strategy applies to this operation DeleteMaskingReport() +func (client DataSafeClient) DeleteMaskingReport(ctx context.Context, request DeleteMaskingReportRequest) (response DeleteMaskingReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5645,42 +5945,42 @@ func (client DataSafeClient) DeleteSqlFirewallAllowedSql(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteSqlFirewallAllowedSql, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteMaskingReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteSqlFirewallAllowedSqlResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteMaskingReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteSqlFirewallAllowedSqlResponse{} + response = DeleteMaskingReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteSqlFirewallAllowedSqlResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteMaskingReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteSqlFirewallAllowedSqlResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteMaskingReportResponse") } return } -// deleteSqlFirewallAllowedSql implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteSqlFirewallAllowedSql(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteMaskingReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteMaskingReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sqlFirewallAllowedSqls/{sqlFirewallAllowedSqlId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/maskingReports/{maskingReportId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteSqlFirewallAllowedSqlResponse + var response DeleteMaskingReportResponse 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-safe/20181201/SqlFirewallAllowedSql/DeleteSqlFirewallAllowedSql" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteSqlFirewallAllowedSql", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingReport/DeleteMaskingReport" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteMaskingReport", apiReferenceLink) return response, err } @@ -5688,13 +5988,13 @@ func (client DataSafeClient) deleteSqlFirewallAllowedSql(ctx context.Context, re return response, err } -// DeleteSqlFirewallPolicy Deletes the SQL Firewall policy resource. +// DeleteOnPremConnector Deletes the specified on-premises connector. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSqlFirewallPolicy.go.html to see an example of how to use DeleteSqlFirewallPolicy API. -// A default retry strategy applies to this operation DeleteSqlFirewallPolicy() -func (client DataSafeClient) DeleteSqlFirewallPolicy(ctx context.Context, request DeleteSqlFirewallPolicyRequest) (response DeleteSqlFirewallPolicyResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteOnPremConnector.go.html to see an example of how to use DeleteOnPremConnector API. +// A default retry strategy applies to this operation DeleteOnPremConnector() +func (client DataSafeClient) DeleteOnPremConnector(ctx context.Context, request DeleteOnPremConnectorRequest) (response DeleteOnPremConnectorResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5703,42 +6003,42 @@ func (client DataSafeClient) DeleteSqlFirewallPolicy(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteSqlFirewallPolicy, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteOnPremConnector, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteSqlFirewallPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteOnPremConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteSqlFirewallPolicyResponse{} + response = DeleteOnPremConnectorResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteSqlFirewallPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteOnPremConnectorResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteSqlFirewallPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteOnPremConnectorResponse") } return } -// deleteSqlFirewallPolicy implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteSqlFirewallPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteOnPremConnector implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteOnPremConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sqlFirewallPolicies/{sqlFirewallPolicyId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/onPremConnectors/{onPremConnectorId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteSqlFirewallPolicyResponse + var response DeleteOnPremConnectorResponse 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-safe/20181201/SqlFirewallPolicy/DeleteSqlFirewallPolicy" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteSqlFirewallPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/OnPremConnector/DeleteOnPremConnector" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteOnPremConnector", apiReferenceLink) return response, err } @@ -5746,13 +6046,13 @@ func (client DataSafeClient) deleteSqlFirewallPolicy(ctx context.Context, reques return response, err } -// DeleteTargetAlertPolicyAssociation Deletes the specified target-alert policy Association. +// DeletePeerTargetDatabase Removes the specified peer target database from Data Safe. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteTargetAlertPolicyAssociation.go.html to see an example of how to use DeleteTargetAlertPolicyAssociation API. -// A default retry strategy applies to this operation DeleteTargetAlertPolicyAssociation() -func (client DataSafeClient) DeleteTargetAlertPolicyAssociation(ctx context.Context, request DeleteTargetAlertPolicyAssociationRequest) (response DeleteTargetAlertPolicyAssociationResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeletePeerTargetDatabase.go.html to see an example of how to use DeletePeerTargetDatabase API. +// A default retry strategy applies to this operation DeletePeerTargetDatabase() +func (client DataSafeClient) DeletePeerTargetDatabase(ctx context.Context, request DeletePeerTargetDatabaseRequest) (response DeletePeerTargetDatabaseResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5761,42 +6061,42 @@ func (client DataSafeClient) DeleteTargetAlertPolicyAssociation(ctx context.Cont if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteTargetAlertPolicyAssociation, policy) + ociResponse, err = common.Retry(ctx, request, client.deletePeerTargetDatabase, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteTargetAlertPolicyAssociationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeletePeerTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteTargetAlertPolicyAssociationResponse{} + response = DeletePeerTargetDatabaseResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteTargetAlertPolicyAssociationResponse); ok { + if convertedResponse, ok := ociResponse.(DeletePeerTargetDatabaseResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteTargetAlertPolicyAssociationResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeletePeerTargetDatabaseResponse") } return } -// deleteTargetAlertPolicyAssociation implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteTargetAlertPolicyAssociation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deletePeerTargetDatabase implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deletePeerTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/targetAlertPolicyAssociations/{targetAlertPolicyAssociationId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/targetDatabases/{targetDatabaseId}/peerTargetDatabases/{peerTargetDatabaseId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteTargetAlertPolicyAssociationResponse + var response DeletePeerTargetDatabaseResponse 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-safe/20181201/TargetAlertPolicyAssociation/DeleteTargetAlertPolicyAssociation" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteTargetAlertPolicyAssociation", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/PeerTargetDatabase/DeletePeerTargetDatabase" + err = common.PostProcessServiceError(err, "DataSafe", "DeletePeerTargetDatabase", apiReferenceLink) return response, err } @@ -5804,13 +6104,13 @@ func (client DataSafeClient) deleteTargetAlertPolicyAssociation(ctx context.Cont return response, err } -// DeleteTargetDatabase Deregisters the specified database from Data Safe and removes the target database from the Data Safe Console. +// DeleteReferentialRelation Deletes the specified referential relation. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteTargetDatabase.go.html to see an example of how to use DeleteTargetDatabase API. -// A default retry strategy applies to this operation DeleteTargetDatabase() -func (client DataSafeClient) DeleteTargetDatabase(ctx context.Context, request DeleteTargetDatabaseRequest) (response DeleteTargetDatabaseResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteReferentialRelation.go.html to see an example of how to use DeleteReferentialRelation API. +// A default retry strategy applies to this operation DeleteReferentialRelation() +func (client DataSafeClient) DeleteReferentialRelation(ctx context.Context, request DeleteReferentialRelationRequest) (response DeleteReferentialRelationResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5819,42 +6119,42 @@ func (client DataSafeClient) DeleteTargetDatabase(ctx context.Context, request D if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteTargetDatabase, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteReferentialRelation, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteReferentialRelationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteTargetDatabaseResponse{} + response = DeleteReferentialRelationResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteTargetDatabaseResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteReferentialRelationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteTargetDatabaseResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteReferentialRelationResponse") } return } -// deleteTargetDatabase implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteReferentialRelation implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteReferentialRelation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/targetDatabases/{targetDatabaseId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sensitiveDataModels/{sensitiveDataModelId}/referentialRelations/{referentialRelationKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteTargetDatabaseResponse + var response DeleteReferentialRelationResponse 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-safe/20181201/TargetDatabase/DeleteTargetDatabase" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteTargetDatabase", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReferentialRelation/DeleteReferentialRelation" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteReferentialRelation", apiReferenceLink) return response, err } @@ -5862,16 +6162,13 @@ func (client DataSafeClient) deleteTargetDatabase(ctx context.Context, request c return response, err } -// DeleteUserAssessment Deletes the specified saved user assessment or schedule. To delete a user assessment schedule, first call the operation -// ListUserAssessments with filters "type = save_schedule". -// That call returns the scheduleAssessmentId. Then call DeleteUserAssessment with the scheduleAssessmentId. -// If the assessment being deleted is the baseline for that compartment, then it will impact all baselines in the compartment. +// DeleteReportDefinition Deletes the specified report definition. Only the user created report definition can be deleted. The seeded report definitions cannot be deleted. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteUserAssessment.go.html to see an example of how to use DeleteUserAssessment API. -// A default retry strategy applies to this operation DeleteUserAssessment() -func (client DataSafeClient) DeleteUserAssessment(ctx context.Context, request DeleteUserAssessmentRequest) (response DeleteUserAssessmentResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteReportDefinition.go.html to see an example of how to use DeleteReportDefinition API. +// A default retry strategy applies to this operation DeleteReportDefinition() +func (client DataSafeClient) DeleteReportDefinition(ctx context.Context, request DeleteReportDefinitionRequest) (response DeleteReportDefinitionResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5880,42 +6177,42 @@ func (client DataSafeClient) DeleteUserAssessment(ctx context.Context, request D if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.deleteUserAssessment, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteReportDefinition, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteUserAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteReportDefinitionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DeleteUserAssessmentResponse{} + response = DeleteReportDefinitionResponse{} } } return } - if convertedResponse, ok := ociResponse.(DeleteUserAssessmentResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteReportDefinitionResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteUserAssessmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteReportDefinitionResponse") } return } -// deleteUserAssessment implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) deleteUserAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteReportDefinition implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteReportDefinition(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/userAssessments/{userAssessmentId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/reportDefinitions/{reportDefinitionId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DeleteUserAssessmentResponse + var response DeleteReportDefinitionResponse 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-safe/20181201/UserAssessment/DeleteUserAssessment" - err = common.PostProcessServiceError(err, "DataSafe", "DeleteUserAssessment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReportDefinition/DeleteReportDefinition" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteReportDefinition", apiReferenceLink) return response, err } @@ -5923,16 +6220,13 @@ func (client DataSafeClient) deleteUserAssessment(ctx context.Context, request c return response, err } -// DiscoverAuditTrails Updates the list of audit trails created under audit profile.The -// operation can be used to create new audit trails for target database -// when they become available for audit collection because of change of database version -// or change of database unified mode or change of data base edition or being deleted previously etc. +// DeleteSdmMaskingPolicyDifference Deletes the specified SDM Masking policy difference. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DiscoverAuditTrails.go.html to see an example of how to use DiscoverAuditTrails API. -// A default retry strategy applies to this operation DiscoverAuditTrails() -func (client DataSafeClient) DiscoverAuditTrails(ctx context.Context, request DiscoverAuditTrailsRequest) (response DiscoverAuditTrailsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSdmMaskingPolicyDifference.go.html to see an example of how to use DeleteSdmMaskingPolicyDifference API. +// A default retry strategy applies to this operation DeleteSdmMaskingPolicyDifference() +func (client DataSafeClient) DeleteSdmMaskingPolicyDifference(ctx context.Context, request DeleteSdmMaskingPolicyDifferenceRequest) (response DeleteSdmMaskingPolicyDifferenceResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -5941,47 +6235,42 @@ func (client DataSafeClient) DiscoverAuditTrails(ctx context.Context, request Di 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.discoverAuditTrails, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSdmMaskingPolicyDifference, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DiscoverAuditTrailsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSdmMaskingPolicyDifferenceResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DiscoverAuditTrailsResponse{} + response = DeleteSdmMaskingPolicyDifferenceResponse{} } } return } - if convertedResponse, ok := ociResponse.(DiscoverAuditTrailsResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSdmMaskingPolicyDifferenceResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DiscoverAuditTrailsResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSdmMaskingPolicyDifferenceResponse") } return } -// discoverAuditTrails implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) discoverAuditTrails(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSdmMaskingPolicyDifference implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSdmMaskingPolicyDifference(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/auditProfiles/{auditProfileId}/actions/discoverAuditTrails", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DiscoverAuditTrailsResponse + var response DeleteSdmMaskingPolicyDifferenceResponse 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-safe/20181201/AuditProfile/DiscoverAuditTrails" - err = common.PostProcessServiceError(err, "DataSafe", "DiscoverAuditTrails", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SdmMaskingPolicyDifference/DeleteSdmMaskingPolicyDifference" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSdmMaskingPolicyDifference", apiReferenceLink) return response, err } @@ -5989,16 +6278,16 @@ func (client DataSafeClient) discoverAuditTrails(ctx context.Context, request co return response, err } -// DownloadDiscoveryReport Downloads an already-generated discovery report. Note that the GenerateDiscoveryReportForDownload operation is a -// prerequisite for the DownloadDiscoveryReport operation. Use GenerateDiscoveryReportForDownload to generate a discovery -// report file and then use DownloadDiscoveryReport to download the generated file. By default, it downloads report for -// all the columns in a sensitive data model. Use the discoveryJobId attribute to download report for a specific discovery job. +// DeleteSecurityAssessment Deletes the specified saved security assessment or schedule. To delete a security assessment schedule, +// first call the operation ListSecurityAssessments with filters "type = save_schedule". +// That operation returns the scheduleAssessmentId. Then, call DeleteSecurityAssessment with the scheduleAssessmentId. +// If the assessment being deleted is the baseline for that compartment, then it will impact all baselines in the compartment. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadDiscoveryReport.go.html to see an example of how to use DownloadDiscoveryReport API. -// A default retry strategy applies to this operation DownloadDiscoveryReport() -func (client DataSafeClient) DownloadDiscoveryReport(ctx context.Context, request DownloadDiscoveryReportRequest) (response DownloadDiscoveryReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSecurityAssessment.go.html to see an example of how to use DeleteSecurityAssessment API. +// A default retry strategy applies to this operation DeleteSecurityAssessment() +func (client DataSafeClient) DeleteSecurityAssessment(ctx context.Context, request DeleteSecurityAssessmentRequest) (response DeleteSecurityAssessmentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6007,41 +6296,42 @@ func (client DataSafeClient) DownloadDiscoveryReport(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.downloadDiscoveryReport, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSecurityAssessment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DownloadDiscoveryReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSecurityAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DownloadDiscoveryReportResponse{} + response = DeleteSecurityAssessmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(DownloadDiscoveryReportResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSecurityAssessmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DownloadDiscoveryReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSecurityAssessmentResponse") } return } -// downloadDiscoveryReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) downloadDiscoveryReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSecurityAssessment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSecurityAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels/{sensitiveDataModelId}/actions/downloadReport", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/securityAssessments/{securityAssessmentId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DownloadDiscoveryReportResponse + var response DeleteSecurityAssessmentResponse 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-safe/20181201/SensitiveDataModel/DownloadDiscoveryReport" - err = common.PostProcessServiceError(err, "DataSafe", "DownloadDiscoveryReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/DeleteSecurityAssessment" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSecurityAssessment", apiReferenceLink) return response, err } @@ -6049,13 +6339,13 @@ func (client DataSafeClient) downloadDiscoveryReport(ctx context.Context, reques return response, err } -// DownloadMaskingLog Downloads the masking log generated by the last masking operation on a target database using the specified masking policy. +// DeleteSecurityPolicy Deletes the specified security policy. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadMaskingLog.go.html to see an example of how to use DownloadMaskingLog API. -// A default retry strategy applies to this operation DownloadMaskingLog() -func (client DataSafeClient) DownloadMaskingLog(ctx context.Context, request DownloadMaskingLogRequest) (response DownloadMaskingLogResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSecurityPolicy.go.html to see an example of how to use DeleteSecurityPolicy API. +// A default retry strategy applies to this operation DeleteSecurityPolicy() +func (client DataSafeClient) DeleteSecurityPolicy(ctx context.Context, request DeleteSecurityPolicyRequest) (response DeleteSecurityPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6064,41 +6354,42 @@ func (client DataSafeClient) DownloadMaskingLog(ctx context.Context, request Dow if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.downloadMaskingLog, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSecurityPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DownloadMaskingLogResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSecurityPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DownloadMaskingLogResponse{} + response = DeleteSecurityPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(DownloadMaskingLogResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSecurityPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DownloadMaskingLogResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSecurityPolicyResponse") } return } -// downloadMaskingLog implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) downloadMaskingLog(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSecurityPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSecurityPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/actions/downloadLog", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/securityPolicies/{securityPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DownloadMaskingLogResponse + var response DeleteSecurityPolicyResponse 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-safe/20181201/MaskingPolicy/DownloadMaskingLog" - err = common.PostProcessServiceError(err, "DataSafe", "DownloadMaskingLog", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicy/DeleteSecurityPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSecurityPolicy", apiReferenceLink) return response, err } @@ -6106,16 +6397,13 @@ func (client DataSafeClient) downloadMaskingLog(ctx context.Context, request com return response, err } -// DownloadMaskingPolicy Downloads an already-generated file corresponding to the specified masking policy. -// Note that the GenerateMaskingPolicyForDownload operation is a prerequisite for the -// DownloadMaskingPolicy operation. Use GenerateMaskingPolicyForDownload to generate -// a masking policy file and then use DownloadMaskingPolicy to download the generated file. +// DeleteSecurityPolicyConfig Deletes the specified Security policy configuration. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadMaskingPolicy.go.html to see an example of how to use DownloadMaskingPolicy API. -// A default retry strategy applies to this operation DownloadMaskingPolicy() -func (client DataSafeClient) DownloadMaskingPolicy(ctx context.Context, request DownloadMaskingPolicyRequest) (response DownloadMaskingPolicyResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSecurityPolicyConfig.go.html to see an example of how to use DeleteSecurityPolicyConfig API. +// A default retry strategy applies to this operation DeleteSecurityPolicyConfig() +func (client DataSafeClient) DeleteSecurityPolicyConfig(ctx context.Context, request DeleteSecurityPolicyConfigRequest) (response DeleteSecurityPolicyConfigResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6124,41 +6412,42 @@ func (client DataSafeClient) DownloadMaskingPolicy(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.downloadMaskingPolicy, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSecurityPolicyConfig, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DownloadMaskingPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSecurityPolicyConfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DownloadMaskingPolicyResponse{} + response = DeleteSecurityPolicyConfigResponse{} } } return } - if convertedResponse, ok := ociResponse.(DownloadMaskingPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSecurityPolicyConfigResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DownloadMaskingPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSecurityPolicyConfigResponse") } return } -// downloadMaskingPolicy implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) downloadMaskingPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSecurityPolicyConfig implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSecurityPolicyConfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/actions/download", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/securityPolicyConfigs/{securityPolicyConfigId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DownloadMaskingPolicyResponse + var response DeleteSecurityPolicyConfigResponse 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-safe/20181201/MaskingPolicy/DownloadMaskingPolicy" - err = common.PostProcessServiceError(err, "DataSafe", "DownloadMaskingPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyConfig/DeleteSecurityPolicyConfig" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSecurityPolicyConfig", apiReferenceLink) return response, err } @@ -6166,15 +6455,13 @@ func (client DataSafeClient) downloadMaskingPolicy(ctx context.Context, request return response, err } -// DownloadMaskingReport Downloads an already-generated masking report. Note that the GenerateMaskingReportForDownload -// operation is a prerequisite for the DownloadMaskingReport operation. Use GenerateMaskingReportForDownload -// to generate a masking report file and then use DownloadMaskingReport to download the generated file. +// DeleteSecurityPolicyDeployment Deletes the specified Security policy deployment. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadMaskingReport.go.html to see an example of how to use DownloadMaskingReport API. -// A default retry strategy applies to this operation DownloadMaskingReport() -func (client DataSafeClient) DownloadMaskingReport(ctx context.Context, request DownloadMaskingReportRequest) (response DownloadMaskingReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSecurityPolicyDeployment.go.html to see an example of how to use DeleteSecurityPolicyDeployment API. +// A default retry strategy applies to this operation DeleteSecurityPolicyDeployment() +func (client DataSafeClient) DeleteSecurityPolicyDeployment(ctx context.Context, request DeleteSecurityPolicyDeploymentRequest) (response DeleteSecurityPolicyDeploymentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6183,41 +6470,42 @@ func (client DataSafeClient) DownloadMaskingReport(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.downloadMaskingReport, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSecurityPolicyDeployment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DownloadMaskingReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSecurityPolicyDeploymentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DownloadMaskingReportResponse{} + response = DeleteSecurityPolicyDeploymentResponse{} } } return } - if convertedResponse, ok := ociResponse.(DownloadMaskingReportResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSecurityPolicyDeploymentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DownloadMaskingReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSecurityPolicyDeploymentResponse") } return } -// downloadMaskingReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) downloadMaskingReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSecurityPolicyDeployment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSecurityPolicyDeployment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/actions/downloadReport", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/securityPolicyDeployments/{securityPolicyDeploymentId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DownloadMaskingReportResponse + var response DeleteSecurityPolicyDeploymentResponse 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-safe/20181201/MaskingPolicy/DownloadMaskingReport" - err = common.PostProcessServiceError(err, "DataSafe", "DownloadMaskingReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyDeployment/DeleteSecurityPolicyDeployment" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSecurityPolicyDeployment", apiReferenceLink) return response, err } @@ -6225,13 +6513,13 @@ func (client DataSafeClient) downloadMaskingReport(ctx context.Context, request return response, err } -// DownloadPrivilegeScript Downloads the privilege script to grant/revoke required roles from the Data Safe account on the target database. +// DeleteSensitiveColumn Deletes the specified sensitive column. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadPrivilegeScript.go.html to see an example of how to use DownloadPrivilegeScript API. -// A default retry strategy applies to this operation DownloadPrivilegeScript() -func (client DataSafeClient) DownloadPrivilegeScript(ctx context.Context, request DownloadPrivilegeScriptRequest) (response DownloadPrivilegeScriptResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSensitiveColumn.go.html to see an example of how to use DeleteSensitiveColumn API. +// A default retry strategy applies to this operation DeleteSensitiveColumn() +func (client DataSafeClient) DeleteSensitiveColumn(ctx context.Context, request DeleteSensitiveColumnRequest) (response DeleteSensitiveColumnResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6240,46 +6528,42 @@ func (client DataSafeClient) DownloadPrivilegeScript(ctx context.Context, reques 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.downloadPrivilegeScript, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSensitiveColumn, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DownloadPrivilegeScriptResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSensitiveColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DownloadPrivilegeScriptResponse{} + response = DeleteSensitiveColumnResponse{} } } return } - if convertedResponse, ok := ociResponse.(DownloadPrivilegeScriptResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSensitiveColumnResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DownloadPrivilegeScriptResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSensitiveColumnResponse") } return } -// downloadPrivilegeScript implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) downloadPrivilegeScript(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSensitiveColumn implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSensitiveColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/actions/downloadPrivilegeScript", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns/{sensitiveColumnKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DownloadPrivilegeScriptResponse + var response DeleteSensitiveColumnResponse 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-safe/20181201/TargetDatabase/DownloadPrivilegeScript" - err = common.PostProcessServiceError(err, "DataSafe", "DownloadPrivilegeScript", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveColumn/DeleteSensitiveColumn" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSensitiveColumn", apiReferenceLink) return response, err } @@ -6287,14 +6571,13 @@ func (client DataSafeClient) downloadPrivilegeScript(ctx context.Context, reques return response, err } -// DownloadSecurityAssessmentReport Downloads the report of the specified security assessment. To download the security assessment report, it needs to be generated first. -// Please use GenerateSecurityAssessmentReport to generate a downloadable report in the preferred format (PDF, XLS). +// DeleteSensitiveDataModel Deletes the specified sensitive data model. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadSecurityAssessmentReport.go.html to see an example of how to use DownloadSecurityAssessmentReport API. -// A default retry strategy applies to this operation DownloadSecurityAssessmentReport() -func (client DataSafeClient) DownloadSecurityAssessmentReport(ctx context.Context, request DownloadSecurityAssessmentReportRequest) (response DownloadSecurityAssessmentReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSensitiveDataModel.go.html to see an example of how to use DeleteSensitiveDataModel API. +// A default retry strategy applies to this operation DeleteSensitiveDataModel() +func (client DataSafeClient) DeleteSensitiveDataModel(ctx context.Context, request DeleteSensitiveDataModelRequest) (response DeleteSensitiveDataModelResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6303,46 +6586,42 @@ func (client DataSafeClient) DownloadSecurityAssessmentReport(ctx context.Contex 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.downloadSecurityAssessmentReport, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSensitiveDataModel, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DownloadSecurityAssessmentReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSensitiveDataModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DownloadSecurityAssessmentReportResponse{} + response = DeleteSensitiveDataModelResponse{} } } return } - if convertedResponse, ok := ociResponse.(DownloadSecurityAssessmentReportResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSensitiveDataModelResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DownloadSecurityAssessmentReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSensitiveDataModelResponse") } return } -// downloadSecurityAssessmentReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) downloadSecurityAssessmentReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSensitiveDataModel implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSensitiveDataModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityAssessments/{securityAssessmentId}/actions/downloadReport", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sensitiveDataModels/{sensitiveDataModelId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DownloadSecurityAssessmentReportResponse + var response DeleteSensitiveDataModelResponse 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-safe/20181201/SecurityAssessment/DownloadSecurityAssessmentReport" - err = common.PostProcessServiceError(err, "DataSafe", "DownloadSecurityAssessmentReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveDataModel/DeleteSensitiveDataModel" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSensitiveDataModel", apiReferenceLink) return response, err } @@ -6350,16 +6629,13 @@ func (client DataSafeClient) downloadSecurityAssessmentReport(ctx context.Contex return response, err } -// DownloadSensitiveDataModel Downloads an already-generated file corresponding to the specified sensitive data model. Note that the -// GenerateSensitiveDataModelForDownload operation is a prerequisite for the DownloadSensitiveDataModel operation. -// Use GenerateSensitiveDataModelForDownload to generate a data model file and then use DownloadSensitiveDataModel -// to download the generated file. +// DeleteSensitiveType Deletes the specified sensitive type. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadSensitiveDataModel.go.html to see an example of how to use DownloadSensitiveDataModel API. -// A default retry strategy applies to this operation DownloadSensitiveDataModel() -func (client DataSafeClient) DownloadSensitiveDataModel(ctx context.Context, request DownloadSensitiveDataModelRequest) (response DownloadSensitiveDataModelResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSensitiveType.go.html to see an example of how to use DeleteSensitiveType API. +// A default retry strategy applies to this operation DeleteSensitiveType() +func (client DataSafeClient) DeleteSensitiveType(ctx context.Context, request DeleteSensitiveTypeRequest) (response DeleteSensitiveTypeResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6368,41 +6644,42 @@ func (client DataSafeClient) DownloadSensitiveDataModel(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.downloadSensitiveDataModel, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSensitiveType, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DownloadSensitiveDataModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSensitiveTypeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DownloadSensitiveDataModelResponse{} + response = DeleteSensitiveTypeResponse{} } } return } - if convertedResponse, ok := ociResponse.(DownloadSensitiveDataModelResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSensitiveTypeResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DownloadSensitiveDataModelResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSensitiveTypeResponse") } return } -// downloadSensitiveDataModel implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) downloadSensitiveDataModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSensitiveType implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSensitiveType(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels/{sensitiveDataModelId}/actions/download", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sensitiveTypes/{sensitiveTypeId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DownloadSensitiveDataModelResponse + var response DeleteSensitiveTypeResponse 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-safe/20181201/SensitiveDataModel/DownloadSensitiveDataModel" - err = common.PostProcessServiceError(err, "DataSafe", "DownloadSensitiveDataModel", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveType/DeleteSensitiveType" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSensitiveType", apiReferenceLink) return response, err } @@ -6410,15 +6687,13 @@ func (client DataSafeClient) downloadSensitiveDataModel(ctx context.Context, req return response, err } -// DownloadSensitiveTypesExport Downloads an already-generated file corresponding to the specified sensitive types export. -// Use CreateSensitiveTypesExport to generate an XML file and then use DownloadSensitiveTypesExport -// to download the generated file. +// DeleteSensitiveTypeGroup Deletes the specified sensitive type group. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadSensitiveTypesExport.go.html to see an example of how to use DownloadSensitiveTypesExport API. -// A default retry strategy applies to this operation DownloadSensitiveTypesExport() -func (client DataSafeClient) DownloadSensitiveTypesExport(ctx context.Context, request DownloadSensitiveTypesExportRequest) (response DownloadSensitiveTypesExportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSensitiveTypeGroup.go.html to see an example of how to use DeleteSensitiveTypeGroup API. +// A default retry strategy applies to this operation DeleteSensitiveTypeGroup() +func (client DataSafeClient) DeleteSensitiveTypeGroup(ctx context.Context, request DeleteSensitiveTypeGroupRequest) (response DeleteSensitiveTypeGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6427,41 +6702,42 @@ func (client DataSafeClient) DownloadSensitiveTypesExport(ctx context.Context, r if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.downloadSensitiveTypesExport, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSensitiveTypeGroup, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DownloadSensitiveTypesExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSensitiveTypeGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DownloadSensitiveTypesExportResponse{} + response = DeleteSensitiveTypeGroupResponse{} } } return } - if convertedResponse, ok := ociResponse.(DownloadSensitiveTypesExportResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSensitiveTypeGroupResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DownloadSensitiveTypesExportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSensitiveTypeGroupResponse") } return } -// downloadSensitiveTypesExport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) downloadSensitiveTypesExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSensitiveTypeGroup implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSensitiveTypeGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveTypesExports/{sensitiveTypesExportId}/actions/download", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sensitiveTypeGroups/{sensitiveTypeGroupId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DownloadSensitiveTypesExportResponse + var response DeleteSensitiveTypeGroupResponse 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-safe/20181201/SensitiveTypesExport/DownloadSensitiveTypesExport" - err = common.PostProcessServiceError(err, "DataSafe", "DownloadSensitiveTypesExport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveTypeGroup/DeleteSensitiveTypeGroup" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSensitiveTypeGroup", apiReferenceLink) return response, err } @@ -6469,14 +6745,13 @@ func (client DataSafeClient) downloadSensitiveTypesExport(ctx context.Context, r return response, err } -// DownloadUserAssessmentReport Downloads the report of the specified user assessment. To download the user assessment report, it needs to be generated first. -// Please use GenerateUserAssessmentReport to generate a downloadable report in the preferred format (PDF, XLS). +// DeleteSensitiveTypesExport Deletes the specified sensitive types export. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadUserAssessmentReport.go.html to see an example of how to use DownloadUserAssessmentReport API. -// A default retry strategy applies to this operation DownloadUserAssessmentReport() -func (client DataSafeClient) DownloadUserAssessmentReport(ctx context.Context, request DownloadUserAssessmentReportRequest) (response DownloadUserAssessmentReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSensitiveTypesExport.go.html to see an example of how to use DeleteSensitiveTypesExport API. +// A default retry strategy applies to this operation DeleteSensitiveTypesExport() +func (client DataSafeClient) DeleteSensitiveTypesExport(ctx context.Context, request DeleteSensitiveTypesExportRequest) (response DeleteSensitiveTypesExportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6485,46 +6760,42 @@ func (client DataSafeClient) DownloadUserAssessmentReport(ctx context.Context, r 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.downloadUserAssessmentReport, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSensitiveTypesExport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DownloadUserAssessmentReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSensitiveTypesExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = DownloadUserAssessmentReportResponse{} + response = DeleteSensitiveTypesExportResponse{} } } return } - if convertedResponse, ok := ociResponse.(DownloadUserAssessmentReportResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSensitiveTypesExportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into DownloadUserAssessmentReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSensitiveTypesExportResponse") } return } -// downloadUserAssessmentReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) downloadUserAssessmentReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSensitiveTypesExport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSensitiveTypesExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/userAssessments/{userAssessmentId}/actions/downloadReport", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sensitiveTypesExports/{sensitiveTypesExportId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response DownloadUserAssessmentReportResponse + var response DeleteSensitiveTypesExportResponse 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-safe/20181201/UserAssessment/DownloadUserAssessmentReport" - err = common.PostProcessServiceError(err, "DataSafe", "DownloadUserAssessmentReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveTypesExport/DeleteSensitiveTypesExport" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSensitiveTypesExport", apiReferenceLink) return response, err } @@ -6532,13 +6803,13 @@ func (client DataSafeClient) downloadUserAssessmentReport(ctx context.Context, r return response, err } -// EnableDataSafeConfiguration Enables Data Safe in the tenancy and region. +// DeleteSqlCollection Deletes the specified SQL collection. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/EnableDataSafeConfiguration.go.html to see an example of how to use EnableDataSafeConfiguration API. -// A default retry strategy applies to this operation EnableDataSafeConfiguration() -func (client DataSafeClient) EnableDataSafeConfiguration(ctx context.Context, request EnableDataSafeConfigurationRequest) (response EnableDataSafeConfigurationResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSqlCollection.go.html to see an example of how to use DeleteSqlCollection API. +// A default retry strategy applies to this operation DeleteSqlCollection() +func (client DataSafeClient) DeleteSqlCollection(ctx context.Context, request DeleteSqlCollectionRequest) (response DeleteSqlCollectionResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6547,42 +6818,42 @@ func (client DataSafeClient) EnableDataSafeConfiguration(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.enableDataSafeConfiguration, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSqlCollection, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = EnableDataSafeConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSqlCollectionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = EnableDataSafeConfigurationResponse{} + response = DeleteSqlCollectionResponse{} } } return } - if convertedResponse, ok := ociResponse.(EnableDataSafeConfigurationResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSqlCollectionResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into EnableDataSafeConfigurationResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSqlCollectionResponse") } return } -// enableDataSafeConfiguration implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) enableDataSafeConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSqlCollection implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSqlCollection(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPut, "/configuration", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sqlCollections/{sqlCollectionId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response EnableDataSafeConfigurationResponse + var response DeleteSqlCollectionResponse 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-safe/20181201/DataSafeConfiguration/EnableDataSafeConfiguration" - err = common.PostProcessServiceError(err, "DataSafe", "EnableDataSafeConfiguration", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlCollection/DeleteSqlCollection" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSqlCollection", apiReferenceLink) return response, err } @@ -6590,16 +6861,13 @@ func (client DataSafeClient) enableDataSafeConfiguration(ctx context.Context, re return response, err } -// GenerateDiscoveryReportForDownload Generates a downloadable discovery report. It's a prerequisite for the DownloadDiscoveryReport operation. Use this -// endpoint to generate a discovery report file and then use DownloadDiscoveryReport to download the generated file. -// By default, it generates report for all the columns in a sensitive data model. Use the discoveryJobId attribute -// to generate report for a specific discovery job. +// DeleteSqlFirewallAllowedSql Deletes the specified allowed sql. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateDiscoveryReportForDownload.go.html to see an example of how to use GenerateDiscoveryReportForDownload API. -// A default retry strategy applies to this operation GenerateDiscoveryReportForDownload() -func (client DataSafeClient) GenerateDiscoveryReportForDownload(ctx context.Context, request GenerateDiscoveryReportForDownloadRequest) (response GenerateDiscoveryReportForDownloadResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSqlFirewallAllowedSql.go.html to see an example of how to use DeleteSqlFirewallAllowedSql API. +// A default retry strategy applies to this operation DeleteSqlFirewallAllowedSql() +func (client DataSafeClient) DeleteSqlFirewallAllowedSql(ctx context.Context, request DeleteSqlFirewallAllowedSqlRequest) (response DeleteSqlFirewallAllowedSqlResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6608,42 +6876,42 @@ func (client DataSafeClient) GenerateDiscoveryReportForDownload(ctx context.Cont if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.generateDiscoveryReportForDownload, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSqlFirewallAllowedSql, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GenerateDiscoveryReportForDownloadResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSqlFirewallAllowedSqlResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GenerateDiscoveryReportForDownloadResponse{} + response = DeleteSqlFirewallAllowedSqlResponse{} } } return } - if convertedResponse, ok := ociResponse.(GenerateDiscoveryReportForDownloadResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSqlFirewallAllowedSqlResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GenerateDiscoveryReportForDownloadResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSqlFirewallAllowedSqlResponse") } return } -// generateDiscoveryReportForDownload implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) generateDiscoveryReportForDownload(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSqlFirewallAllowedSql implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSqlFirewallAllowedSql(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels/{sensitiveDataModelId}/actions/generateReportForDownload", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sqlFirewallAllowedSqls/{sqlFirewallAllowedSqlId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GenerateDiscoveryReportForDownloadResponse + var response DeleteSqlFirewallAllowedSqlResponse 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-safe/20181201/SensitiveDataModel/GenerateDiscoveryReportForDownload" - err = common.PostProcessServiceError(err, "DataSafe", "GenerateDiscoveryReportForDownload", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallAllowedSql/DeleteSqlFirewallAllowedSql" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSqlFirewallAllowedSql", apiReferenceLink) return response, err } @@ -6651,13 +6919,13 @@ func (client DataSafeClient) generateDiscoveryReportForDownload(ctx context.Cont return response, err } -// GenerateHealthReport Performs health check on the masking policy. +// DeleteSqlFirewallPolicy Deletes the SQL Firewall policy resource. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateHealthReport.go.html to see an example of how to use GenerateHealthReport API. -// A default retry strategy applies to this operation GenerateHealthReport() -func (client DataSafeClient) GenerateHealthReport(ctx context.Context, request GenerateHealthReportRequest) (response GenerateHealthReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSqlFirewallPolicy.go.html to see an example of how to use DeleteSqlFirewallPolicy API. +// A default retry strategy applies to this operation DeleteSqlFirewallPolicy() +func (client DataSafeClient) DeleteSqlFirewallPolicy(ctx context.Context, request DeleteSqlFirewallPolicyRequest) (response DeleteSqlFirewallPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6666,47 +6934,42 @@ func (client DataSafeClient) GenerateHealthReport(ctx context.Context, request G 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.generateHealthReport, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteSqlFirewallPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GenerateHealthReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteSqlFirewallPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GenerateHealthReportResponse{} + response = DeleteSqlFirewallPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(GenerateHealthReportResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteSqlFirewallPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GenerateHealthReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteSqlFirewallPolicyResponse") } return } -// generateHealthReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) generateHealthReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteSqlFirewallPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteSqlFirewallPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/actions/generateHealthReport", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/sqlFirewallPolicies/{sqlFirewallPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GenerateHealthReportResponse + var response DeleteSqlFirewallPolicyResponse 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-safe/20181201/MaskingPolicyHealthReport/GenerateHealthReport" - err = common.PostProcessServiceError(err, "DataSafe", "GenerateHealthReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallPolicy/DeleteSqlFirewallPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteSqlFirewallPolicy", apiReferenceLink) return response, err } @@ -6714,17 +6977,13 @@ func (client DataSafeClient) generateHealthReport(ctx context.Context, request c return response, err } -// GenerateMaskingPolicyForDownload Generates a downloadable file corresponding to the specified masking policy. It's -// a prerequisite for the DownloadMaskingPolicy operation. Use this endpoint to generate -// a masking policy file and then use DownloadMaskingPolicy to download the generated file. -// Note that file generation and download are serial operations. The download operation -// can't be invoked while the generate operation is in progress. +// DeleteTargetAlertPolicyAssociation Deletes the specified target-alert policy Association. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateMaskingPolicyForDownload.go.html to see an example of how to use GenerateMaskingPolicyForDownload API. -// A default retry strategy applies to this operation GenerateMaskingPolicyForDownload() -func (client DataSafeClient) GenerateMaskingPolicyForDownload(ctx context.Context, request GenerateMaskingPolicyForDownloadRequest) (response GenerateMaskingPolicyForDownloadResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteTargetAlertPolicyAssociation.go.html to see an example of how to use DeleteTargetAlertPolicyAssociation API. +// A default retry strategy applies to this operation DeleteTargetAlertPolicyAssociation() +func (client DataSafeClient) DeleteTargetAlertPolicyAssociation(ctx context.Context, request DeleteTargetAlertPolicyAssociationRequest) (response DeleteTargetAlertPolicyAssociationResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6733,42 +6992,42 @@ func (client DataSafeClient) GenerateMaskingPolicyForDownload(ctx context.Contex if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.generateMaskingPolicyForDownload, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteTargetAlertPolicyAssociation, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GenerateMaskingPolicyForDownloadResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteTargetAlertPolicyAssociationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GenerateMaskingPolicyForDownloadResponse{} + response = DeleteTargetAlertPolicyAssociationResponse{} } } return } - if convertedResponse, ok := ociResponse.(GenerateMaskingPolicyForDownloadResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteTargetAlertPolicyAssociationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GenerateMaskingPolicyForDownloadResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteTargetAlertPolicyAssociationResponse") } return } -// generateMaskingPolicyForDownload implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) generateMaskingPolicyForDownload(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteTargetAlertPolicyAssociation implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteTargetAlertPolicyAssociation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/actions/generatePolicyForDownload", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/targetAlertPolicyAssociations/{targetAlertPolicyAssociationId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GenerateMaskingPolicyForDownloadResponse + var response DeleteTargetAlertPolicyAssociationResponse 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-safe/20181201/MaskingPolicy/GenerateMaskingPolicyForDownload" - err = common.PostProcessServiceError(err, "DataSafe", "GenerateMaskingPolicyForDownload", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetAlertPolicyAssociation/DeleteTargetAlertPolicyAssociation" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteTargetAlertPolicyAssociation", apiReferenceLink) return response, err } @@ -6776,16 +7035,13 @@ func (client DataSafeClient) generateMaskingPolicyForDownload(ctx context.Contex return response, err } -// GenerateMaskingReportForDownload Generates a downloadable masking report. It's a prerequisite for the -// DownloadMaskingReport operation. Use this endpoint to generate a -// masking report file and then use DownloadMaskingReport to download -// the generated file. +// DeleteTargetDatabase Deregisters the specified database from Data Safe and removes the target database from the Data Safe Console. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateMaskingReportForDownload.go.html to see an example of how to use GenerateMaskingReportForDownload API. -// A default retry strategy applies to this operation GenerateMaskingReportForDownload() -func (client DataSafeClient) GenerateMaskingReportForDownload(ctx context.Context, request GenerateMaskingReportForDownloadRequest) (response GenerateMaskingReportForDownloadResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteTargetDatabase.go.html to see an example of how to use DeleteTargetDatabase API. +// A default retry strategy applies to this operation DeleteTargetDatabase() +func (client DataSafeClient) DeleteTargetDatabase(ctx context.Context, request DeleteTargetDatabaseRequest) (response DeleteTargetDatabaseResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6794,42 +7050,42 @@ func (client DataSafeClient) GenerateMaskingReportForDownload(ctx context.Contex if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.generateMaskingReportForDownload, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteTargetDatabase, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GenerateMaskingReportForDownloadResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GenerateMaskingReportForDownloadResponse{} + response = DeleteTargetDatabaseResponse{} } } return } - if convertedResponse, ok := ociResponse.(GenerateMaskingReportForDownloadResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteTargetDatabaseResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GenerateMaskingReportForDownloadResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteTargetDatabaseResponse") } return } -// generateMaskingReportForDownload implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) generateMaskingReportForDownload(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteTargetDatabase implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/actions/generateReportForDownload", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/targetDatabases/{targetDatabaseId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GenerateMaskingReportForDownloadResponse + var response DeleteTargetDatabaseResponse 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-safe/20181201/MaskingPolicy/GenerateMaskingReportForDownload" - err = common.PostProcessServiceError(err, "DataSafe", "GenerateMaskingReportForDownload", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/DeleteTargetDatabase" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteTargetDatabase", apiReferenceLink) return response, err } @@ -6837,13 +7093,13 @@ func (client DataSafeClient) generateMaskingReportForDownload(ctx context.Contex return response, err } -// GenerateOnPremConnectorConfiguration Creates and downloads the configuration of the specified on-premises connector. +// DeleteTargetDatabaseGroup Deletes the specified target database group. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateOnPremConnectorConfiguration.go.html to see an example of how to use GenerateOnPremConnectorConfiguration API. -// A default retry strategy applies to this operation GenerateOnPremConnectorConfiguration() -func (client DataSafeClient) GenerateOnPremConnectorConfiguration(ctx context.Context, request GenerateOnPremConnectorConfigurationRequest) (response GenerateOnPremConnectorConfigurationResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteTargetDatabaseGroup.go.html to see an example of how to use DeleteTargetDatabaseGroup API. +// A default retry strategy applies to this operation DeleteTargetDatabaseGroup() +func (client DataSafeClient) DeleteTargetDatabaseGroup(ctx context.Context, request DeleteTargetDatabaseGroupRequest) (response DeleteTargetDatabaseGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6852,46 +7108,42 @@ func (client DataSafeClient) GenerateOnPremConnectorConfiguration(ctx context.Co 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.generateOnPremConnectorConfiguration, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteTargetDatabaseGroup, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GenerateOnPremConnectorConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteTargetDatabaseGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GenerateOnPremConnectorConfigurationResponse{} + response = DeleteTargetDatabaseGroupResponse{} } } return } - if convertedResponse, ok := ociResponse.(GenerateOnPremConnectorConfigurationResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteTargetDatabaseGroupResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GenerateOnPremConnectorConfigurationResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteTargetDatabaseGroupResponse") } return } -// generateOnPremConnectorConfiguration implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) generateOnPremConnectorConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteTargetDatabaseGroup implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteTargetDatabaseGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/onPremConnectors/{onPremConnectorId}/actions/generateConfiguration", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/targetDatabaseGroups/{targetDatabaseGroupId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GenerateOnPremConnectorConfigurationResponse + var response DeleteTargetDatabaseGroupResponse 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-safe/20181201/OnPremConnector/GenerateOnPremConnectorConfiguration" - err = common.PostProcessServiceError(err, "DataSafe", "GenerateOnPremConnectorConfiguration", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabaseGroup/DeleteTargetDatabaseGroup" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteTargetDatabaseGroup", apiReferenceLink) return response, err } @@ -6899,13 +7151,13 @@ func (client DataSafeClient) generateOnPremConnectorConfiguration(ctx context.Co return response, err } -// GenerateReport Generates a .xls or .pdf report based on parameters and report definition. +// DeleteUnifiedAuditPolicy Deletes the Unified Audit policy resource. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateReport.go.html to see an example of how to use GenerateReport API. -// A default retry strategy applies to this operation GenerateReport() -func (client DataSafeClient) GenerateReport(ctx context.Context, request GenerateReportRequest) (response GenerateReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteUnifiedAuditPolicy.go.html to see an example of how to use DeleteUnifiedAuditPolicy API. +// A default retry strategy applies to this operation DeleteUnifiedAuditPolicy() +func (client DataSafeClient) DeleteUnifiedAuditPolicy(ctx context.Context, request DeleteUnifiedAuditPolicyRequest) (response DeleteUnifiedAuditPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6914,47 +7166,42 @@ func (client DataSafeClient) GenerateReport(ctx context.Context, request Generat 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.generateReport, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteUnifiedAuditPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GenerateReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteUnifiedAuditPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GenerateReportResponse{} + response = DeleteUnifiedAuditPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(GenerateReportResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteUnifiedAuditPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GenerateReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteUnifiedAuditPolicyResponse") } return } -// generateReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) generateReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteUnifiedAuditPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteUnifiedAuditPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/reportDefinitions/{reportDefinitionId}/actions/generateReport", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/unifiedAuditPolicies/{unifiedAuditPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GenerateReportResponse + var response DeleteUnifiedAuditPolicyResponse 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-safe/20181201/ReportDefinition/GenerateReport" - err = common.PostProcessServiceError(err, "DataSafe", "GenerateReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicy/DeleteUnifiedAuditPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteUnifiedAuditPolicy", apiReferenceLink) return response, err } @@ -6962,14 +7209,13 @@ func (client DataSafeClient) generateReport(ctx context.Context, request common. return response, err } -// GenerateSecurityAssessmentReport Generates the report of the specified security assessment. You can get the report in PDF or XLS format. -// After generating the report, use DownloadSecurityAssessmentReport to download it in the preferred format. +// DeleteUnifiedAuditPolicyDefinition Deletes the specified Unified audit policy definition. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateSecurityAssessmentReport.go.html to see an example of how to use GenerateSecurityAssessmentReport API. -// A default retry strategy applies to this operation GenerateSecurityAssessmentReport() -func (client DataSafeClient) GenerateSecurityAssessmentReport(ctx context.Context, request GenerateSecurityAssessmentReportRequest) (response GenerateSecurityAssessmentReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteUnifiedAuditPolicyDefinition.go.html to see an example of how to use DeleteUnifiedAuditPolicyDefinition API. +// A default retry strategy applies to this operation DeleteUnifiedAuditPolicyDefinition() +func (client DataSafeClient) DeleteUnifiedAuditPolicyDefinition(ctx context.Context, request DeleteUnifiedAuditPolicyDefinitionRequest) (response DeleteUnifiedAuditPolicyDefinitionResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -6978,47 +7224,42 @@ func (client DataSafeClient) GenerateSecurityAssessmentReport(ctx context.Contex 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.generateSecurityAssessmentReport, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteUnifiedAuditPolicyDefinition, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GenerateSecurityAssessmentReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteUnifiedAuditPolicyDefinitionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GenerateSecurityAssessmentReportResponse{} + response = DeleteUnifiedAuditPolicyDefinitionResponse{} } } return } - if convertedResponse, ok := ociResponse.(GenerateSecurityAssessmentReportResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteUnifiedAuditPolicyDefinitionResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GenerateSecurityAssessmentReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteUnifiedAuditPolicyDefinitionResponse") } return } -// generateSecurityAssessmentReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) generateSecurityAssessmentReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteUnifiedAuditPolicyDefinition implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteUnifiedAuditPolicyDefinition(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityAssessments/{securityAssessmentId}/actions/generateReport", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/unifiedAuditPolicyDefinitions/{unifiedAuditPolicyDefinitionId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GenerateSecurityAssessmentReportResponse + var response DeleteUnifiedAuditPolicyDefinitionResponse 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-safe/20181201/SecurityAssessment/GenerateSecurityAssessmentReport" - err = common.PostProcessServiceError(err, "DataSafe", "GenerateSecurityAssessmentReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicyDefinition/DeleteUnifiedAuditPolicyDefinition" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteUnifiedAuditPolicyDefinition", apiReferenceLink) return response, err } @@ -7026,16 +7267,16 @@ func (client DataSafeClient) generateSecurityAssessmentReport(ctx context.Contex return response, err } -// GenerateSensitiveDataModelForDownload Generates a downloadable file corresponding to the specified sensitive data model. It's a prerequisite for the -// DownloadSensitiveDataModel operation. Use this endpoint to generate a data model file and then use DownloadSensitiveDataModel -// to download the generated file. Note that file generation and download are serial operations. The download operation -// can't be invoked while the generate operation is in progress. +// DeleteUserAssessment Deletes the specified saved user assessment or schedule. To delete a user assessment schedule, first call the operation +// ListUserAssessments with filters "type = save_schedule". +// That call returns the scheduleAssessmentId. Then call DeleteUserAssessment with the scheduleAssessmentId. +// If the assessment being deleted is the baseline for that compartment, then it will impact all baselines in the compartment. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateSensitiveDataModelForDownload.go.html to see an example of how to use GenerateSensitiveDataModelForDownload API. -// A default retry strategy applies to this operation GenerateSensitiveDataModelForDownload() -func (client DataSafeClient) GenerateSensitiveDataModelForDownload(ctx context.Context, request GenerateSensitiveDataModelForDownloadRequest) (response GenerateSensitiveDataModelForDownloadResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteUserAssessment.go.html to see an example of how to use DeleteUserAssessment API. +// A default retry strategy applies to this operation DeleteUserAssessment() +func (client DataSafeClient) DeleteUserAssessment(ctx context.Context, request DeleteUserAssessmentRequest) (response DeleteUserAssessmentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7044,42 +7285,42 @@ func (client DataSafeClient) GenerateSensitiveDataModelForDownload(ctx context.C if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.generateSensitiveDataModelForDownload, policy) + ociResponse, err = common.Retry(ctx, request, client.deleteUserAssessment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GenerateSensitiveDataModelForDownloadResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeleteUserAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GenerateSensitiveDataModelForDownloadResponse{} + response = DeleteUserAssessmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(GenerateSensitiveDataModelForDownloadResponse); ok { + if convertedResponse, ok := ociResponse.(DeleteUserAssessmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GenerateSensitiveDataModelForDownloadResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeleteUserAssessmentResponse") } return } -// generateSensitiveDataModelForDownload implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) generateSensitiveDataModelForDownload(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deleteUserAssessment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deleteUserAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels/{sensitiveDataModelId}/actions/generateDataModelForDownload", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/userAssessments/{userAssessmentId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GenerateSensitiveDataModelForDownloadResponse + var response DeleteUserAssessmentResponse 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-safe/20181201/SensitiveDataModel/GenerateSensitiveDataModelForDownload" - err = common.PostProcessServiceError(err, "DataSafe", "GenerateSensitiveDataModelForDownload", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UserAssessment/DeleteUserAssessment" + err = common.PostProcessServiceError(err, "DataSafe", "DeleteUserAssessment", apiReferenceLink) return response, err } @@ -7087,13 +7328,13 @@ func (client DataSafeClient) generateSensitiveDataModelForDownload(ctx context.C return response, err } -// GenerateSqlFirewallPolicy Generates or appends to the SQL Firewall policy using the specified SQL collection. +// DeploySecurityPolicyDeployment Deploy the security policy to the specified target or target groups. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateSqlFirewallPolicy.go.html to see an example of how to use GenerateSqlFirewallPolicy API. -// A default retry strategy applies to this operation GenerateSqlFirewallPolicy() -func (client DataSafeClient) GenerateSqlFirewallPolicy(ctx context.Context, request GenerateSqlFirewallPolicyRequest) (response GenerateSqlFirewallPolicyResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeploySecurityPolicyDeployment.go.html to see an example of how to use DeploySecurityPolicyDeployment API. +// A default retry strategy applies to this operation DeploySecurityPolicyDeployment() +func (client DataSafeClient) DeploySecurityPolicyDeployment(ctx context.Context, request DeploySecurityPolicyDeploymentRequest) (response DeploySecurityPolicyDeploymentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7107,42 +7348,42 @@ func (client DataSafeClient) GenerateSqlFirewallPolicy(ctx context.Context, requ request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.generateSqlFirewallPolicy, policy) + ociResponse, err = common.Retry(ctx, request, client.deploySecurityPolicyDeployment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GenerateSqlFirewallPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DeploySecurityPolicyDeploymentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GenerateSqlFirewallPolicyResponse{} + response = DeploySecurityPolicyDeploymentResponse{} } } return } - if convertedResponse, ok := ociResponse.(GenerateSqlFirewallPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(DeploySecurityPolicyDeploymentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GenerateSqlFirewallPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into DeploySecurityPolicyDeploymentResponse") } return } -// generateSqlFirewallPolicy implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) generateSqlFirewallPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// deploySecurityPolicyDeployment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) deploySecurityPolicyDeployment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/sqlCollections/{sqlCollectionId}/actions/generateSqlFirewallPolicy", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityPolicyDeployments/{securityPolicyDeploymentId}/actions/deploy", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GenerateSqlFirewallPolicyResponse + var response DeploySecurityPolicyDeploymentResponse 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-safe/20181201/SqlCollection/GenerateSqlFirewallPolicy" - err = common.PostProcessServiceError(err, "DataSafe", "GenerateSqlFirewallPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyDeployment/DeploySecurityPolicyDeployment" + err = common.PostProcessServiceError(err, "DataSafe", "DeploySecurityPolicyDeployment", apiReferenceLink) return response, err } @@ -7150,14 +7391,16 @@ func (client DataSafeClient) generateSqlFirewallPolicy(ctx context.Context, requ return response, err } -// GenerateUserAssessmentReport Generates the report of the specified user assessment. The report is available in PDF or XLS format. -// After generating the report, use DownloadUserAssessmentReport to download it in the preferred format. +// DiscoverAuditTrails Updates the list of audit trails created under audit profile.The +// operation can be used to create new audit trails for target database +// when they become available for audit collection because of change of database version +// or change of database unified mode or change of data base edition or being deleted previously etc. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateUserAssessmentReport.go.html to see an example of how to use GenerateUserAssessmentReport API. -// A default retry strategy applies to this operation GenerateUserAssessmentReport() -func (client DataSafeClient) GenerateUserAssessmentReport(ctx context.Context, request GenerateUserAssessmentReportRequest) (response GenerateUserAssessmentReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DiscoverAuditTrails.go.html to see an example of how to use DiscoverAuditTrails API. +// A default retry strategy applies to this operation DiscoverAuditTrails() +func (client DataSafeClient) DiscoverAuditTrails(ctx context.Context, request DiscoverAuditTrailsRequest) (response DiscoverAuditTrailsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7171,42 +7414,42 @@ func (client DataSafeClient) GenerateUserAssessmentReport(ctx context.Context, r request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.generateUserAssessmentReport, policy) + ociResponse, err = common.Retry(ctx, request, client.discoverAuditTrails, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GenerateUserAssessmentReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DiscoverAuditTrailsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GenerateUserAssessmentReportResponse{} + response = DiscoverAuditTrailsResponse{} } } return } - if convertedResponse, ok := ociResponse.(GenerateUserAssessmentReportResponse); ok { + if convertedResponse, ok := ociResponse.(DiscoverAuditTrailsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GenerateUserAssessmentReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into DiscoverAuditTrailsResponse") } return } -// generateUserAssessmentReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) generateUserAssessmentReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// discoverAuditTrails implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) discoverAuditTrails(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/userAssessments/{userAssessmentId}/actions/generateReport", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/auditProfiles/{auditProfileId}/actions/discoverAuditTrails", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GenerateUserAssessmentReportResponse + var response DiscoverAuditTrailsResponse 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-safe/20181201/UserAssessment/GenerateUserAssessmentReport" - err = common.PostProcessServiceError(err, "DataSafe", "GenerateUserAssessmentReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AuditProfile/DiscoverAuditTrails" + err = common.PostProcessServiceError(err, "DataSafe", "DiscoverAuditTrails", apiReferenceLink) return response, err } @@ -7214,13 +7457,16 @@ func (client DataSafeClient) generateUserAssessmentReport(ctx context.Context, r return response, err } -// GetAlert Gets the details of the specified alerts. +// DownloadDiscoveryReport Downloads an already-generated discovery report. Note that the GenerateDiscoveryReportForDownload operation is a +// prerequisite for the DownloadDiscoveryReport operation. Use GenerateDiscoveryReportForDownload to generate a discovery +// report file and then use DownloadDiscoveryReport to download the generated file. By default, it downloads report for +// all the columns in a sensitive data model. Use the discoveryJobId attribute to download report for a specific discovery job. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAlert.go.html to see an example of how to use GetAlert API. -// A default retry strategy applies to this operation GetAlert() -func (client DataSafeClient) GetAlert(ctx context.Context, request GetAlertRequest) (response GetAlertResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadDiscoveryReport.go.html to see an example of how to use DownloadDiscoveryReport API. +// A default retry strategy applies to this operation DownloadDiscoveryReport() +func (client DataSafeClient) DownloadDiscoveryReport(ctx context.Context, request DownloadDiscoveryReportRequest) (response DownloadDiscoveryReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7229,42 +7475,41 @@ func (client DataSafeClient) GetAlert(ctx context.Context, request GetAlertReque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getAlert, policy) + ociResponse, err = common.Retry(ctx, request, client.downloadDiscoveryReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetAlertResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DownloadDiscoveryReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetAlertResponse{} + response = DownloadDiscoveryReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetAlertResponse); ok { + if convertedResponse, ok := ociResponse.(DownloadDiscoveryReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetAlertResponse") + err = fmt.Errorf("failed to convert OCIResponse into DownloadDiscoveryReportResponse") } return } -// getAlert implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getAlert(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// downloadDiscoveryReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) downloadDiscoveryReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/alerts/{alertId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels/{sensitiveDataModelId}/actions/downloadReport", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetAlertResponse + var response DownloadDiscoveryReportResponse 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-safe/20181201/Alert/GetAlert" - err = common.PostProcessServiceError(err, "DataSafe", "GetAlert", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveDataModel/DownloadDiscoveryReport" + err = common.PostProcessServiceError(err, "DataSafe", "DownloadDiscoveryReport", apiReferenceLink) return response, err } @@ -7272,13 +7517,13 @@ func (client DataSafeClient) getAlert(ctx context.Context, request common.OCIReq return response, err } -// GetAlertPolicy Gets the details of alert policy by its ID. +// DownloadMaskingLog Downloads the masking log generated by the last masking operation on a target database using the specified masking policy. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAlertPolicy.go.html to see an example of how to use GetAlertPolicy API. -// A default retry strategy applies to this operation GetAlertPolicy() -func (client DataSafeClient) GetAlertPolicy(ctx context.Context, request GetAlertPolicyRequest) (response GetAlertPolicyResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadMaskingLog.go.html to see an example of how to use DownloadMaskingLog API. +// A default retry strategy applies to this operation DownloadMaskingLog() +func (client DataSafeClient) DownloadMaskingLog(ctx context.Context, request DownloadMaskingLogRequest) (response DownloadMaskingLogResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7287,42 +7532,41 @@ func (client DataSafeClient) GetAlertPolicy(ctx context.Context, request GetAler if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getAlertPolicy, policy) + ociResponse, err = common.Retry(ctx, request, client.downloadMaskingLog, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetAlertPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DownloadMaskingLogResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetAlertPolicyResponse{} + response = DownloadMaskingLogResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetAlertPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(DownloadMaskingLogResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetAlertPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into DownloadMaskingLogResponse") } return } -// getAlertPolicy implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getAlertPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// downloadMaskingLog implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) downloadMaskingLog(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/alertPolicies/{alertPolicyId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/actions/downloadLog", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetAlertPolicyResponse + var response DownloadMaskingLogResponse 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-safe/20181201/AlertPolicy/GetAlertPolicy" - err = common.PostProcessServiceError(err, "DataSafe", "GetAlertPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicy/DownloadMaskingLog" + err = common.PostProcessServiceError(err, "DataSafe", "DownloadMaskingLog", apiReferenceLink) return response, err } @@ -7330,13 +7574,16 @@ func (client DataSafeClient) getAlertPolicy(ctx context.Context, request common. return response, err } -// GetAlertPolicyRule Gets the details of a policy rule by its key. +// DownloadMaskingPolicy Downloads an already-generated file corresponding to the specified masking policy. +// Note that the GenerateMaskingPolicyForDownload operation is a prerequisite for the +// DownloadMaskingPolicy operation. Use GenerateMaskingPolicyForDownload to generate +// a masking policy file and then use DownloadMaskingPolicy to download the generated file. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAlertPolicyRule.go.html to see an example of how to use GetAlertPolicyRule API. -// A default retry strategy applies to this operation GetAlertPolicyRule() -func (client DataSafeClient) GetAlertPolicyRule(ctx context.Context, request GetAlertPolicyRuleRequest) (response GetAlertPolicyRuleResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadMaskingPolicy.go.html to see an example of how to use DownloadMaskingPolicy API. +// A default retry strategy applies to this operation DownloadMaskingPolicy() +func (client DataSafeClient) DownloadMaskingPolicy(ctx context.Context, request DownloadMaskingPolicyRequest) (response DownloadMaskingPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7345,42 +7592,41 @@ func (client DataSafeClient) GetAlertPolicyRule(ctx context.Context, request Get if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getAlertPolicyRule, policy) + ociResponse, err = common.Retry(ctx, request, client.downloadMaskingPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetAlertPolicyRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DownloadMaskingPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetAlertPolicyRuleResponse{} + response = DownloadMaskingPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetAlertPolicyRuleResponse); ok { + if convertedResponse, ok := ociResponse.(DownloadMaskingPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetAlertPolicyRuleResponse") + err = fmt.Errorf("failed to convert OCIResponse into DownloadMaskingPolicyResponse") } return } -// getAlertPolicyRule implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getAlertPolicyRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// downloadMaskingPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) downloadMaskingPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/alertPolicies/{alertPolicyId}/rules/{ruleKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/actions/download", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetAlertPolicyRuleResponse + var response DownloadMaskingPolicyResponse 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-safe/20181201/AlertPolicyRule/GetAlertPolicyRule" - err = common.PostProcessServiceError(err, "DataSafe", "GetAlertPolicyRule", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicy/DownloadMaskingPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "DownloadMaskingPolicy", apiReferenceLink) return response, err } @@ -7388,13 +7634,15 @@ func (client DataSafeClient) getAlertPolicyRule(ctx context.Context, request com return response, err } -// GetAuditArchiveRetrieval Gets the details of the specified archive retreival. +// DownloadMaskingReport Downloads an already-generated masking report. Note that the GenerateMaskingReportForDownload +// operation is a prerequisite for the DownloadMaskingReport operation. Use GenerateMaskingReportForDownload +// to generate a masking report file and then use DownloadMaskingReport to download the generated file. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAuditArchiveRetrieval.go.html to see an example of how to use GetAuditArchiveRetrieval API. -// A default retry strategy applies to this operation GetAuditArchiveRetrieval() -func (client DataSafeClient) GetAuditArchiveRetrieval(ctx context.Context, request GetAuditArchiveRetrievalRequest) (response GetAuditArchiveRetrievalResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadMaskingReport.go.html to see an example of how to use DownloadMaskingReport API. +// A default retry strategy applies to this operation DownloadMaskingReport() +func (client DataSafeClient) DownloadMaskingReport(ctx context.Context, request DownloadMaskingReportRequest) (response DownloadMaskingReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7403,42 +7651,41 @@ func (client DataSafeClient) GetAuditArchiveRetrieval(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getAuditArchiveRetrieval, policy) + ociResponse, err = common.Retry(ctx, request, client.downloadMaskingReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetAuditArchiveRetrievalResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DownloadMaskingReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetAuditArchiveRetrievalResponse{} + response = DownloadMaskingReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetAuditArchiveRetrievalResponse); ok { + if convertedResponse, ok := ociResponse.(DownloadMaskingReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetAuditArchiveRetrievalResponse") + err = fmt.Errorf("failed to convert OCIResponse into DownloadMaskingReportResponse") } return } -// getAuditArchiveRetrieval implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getAuditArchiveRetrieval(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// downloadMaskingReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) downloadMaskingReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditArchiveRetrievals/{auditArchiveRetrievalId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/actions/downloadReport", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetAuditArchiveRetrievalResponse + var response DownloadMaskingReportResponse 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-safe/20181201/AuditArchiveRetrieval/GetAuditArchiveRetrieval" - err = common.PostProcessServiceError(err, "DataSafe", "GetAuditArchiveRetrieval", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicy/DownloadMaskingReport" + err = common.PostProcessServiceError(err, "DataSafe", "DownloadMaskingReport", apiReferenceLink) return response, err } @@ -7446,13 +7693,13 @@ func (client DataSafeClient) getAuditArchiveRetrieval(ctx context.Context, reque return response, err } -// GetAuditPolicy Gets a audit policy by identifier. +// DownloadPrivilegeScript Downloads the privilege script to grant/revoke required roles from the Data Safe account on the target database. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAuditPolicy.go.html to see an example of how to use GetAuditPolicy API. -// A default retry strategy applies to this operation GetAuditPolicy() -func (client DataSafeClient) GetAuditPolicy(ctx context.Context, request GetAuditPolicyRequest) (response GetAuditPolicyResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadPrivilegeScript.go.html to see an example of how to use DownloadPrivilegeScript API. +// A default retry strategy applies to this operation DownloadPrivilegeScript() +func (client DataSafeClient) DownloadPrivilegeScript(ctx context.Context, request DownloadPrivilegeScriptRequest) (response DownloadPrivilegeScriptResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7461,42 +7708,46 @@ func (client DataSafeClient) GetAuditPolicy(ctx context.Context, request GetAudi if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getAuditPolicy, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.downloadPrivilegeScript, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetAuditPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DownloadPrivilegeScriptResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetAuditPolicyResponse{} + response = DownloadPrivilegeScriptResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetAuditPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(DownloadPrivilegeScriptResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetAuditPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into DownloadPrivilegeScriptResponse") } return } -// getAuditPolicy implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getAuditPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// downloadPrivilegeScript implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) downloadPrivilegeScript(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditPolicies/{auditPolicyId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/actions/downloadPrivilegeScript", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetAuditPolicyResponse + var response DownloadPrivilegeScriptResponse 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-safe/20181201/AuditPolicy/GetAuditPolicy" - err = common.PostProcessServiceError(err, "DataSafe", "GetAuditPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/DownloadPrivilegeScript" + err = common.PostProcessServiceError(err, "DataSafe", "DownloadPrivilegeScript", apiReferenceLink) return response, err } @@ -7504,13 +7755,14 @@ func (client DataSafeClient) getAuditPolicy(ctx context.Context, request common. return response, err } -// GetAuditProfile Gets the details of audit profile resource and associated audit trails of the audit profile. +// DownloadSecurityAssessmentReport Downloads the report of the specified security assessment. To download the security assessment report, it needs to be generated first. +// Please use GenerateSecurityAssessmentReport to generate a downloadable report in the preferred format (PDF, XLS). // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAuditProfile.go.html to see an example of how to use GetAuditProfile API. -// A default retry strategy applies to this operation GetAuditProfile() -func (client DataSafeClient) GetAuditProfile(ctx context.Context, request GetAuditProfileRequest) (response GetAuditProfileResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadSecurityAssessmentReport.go.html to see an example of how to use DownloadSecurityAssessmentReport API. +// A default retry strategy applies to this operation DownloadSecurityAssessmentReport() +func (client DataSafeClient) DownloadSecurityAssessmentReport(ctx context.Context, request DownloadSecurityAssessmentReportRequest) (response DownloadSecurityAssessmentReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7519,42 +7771,46 @@ func (client DataSafeClient) GetAuditProfile(ctx context.Context, request GetAud if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getAuditProfile, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.downloadSecurityAssessmentReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetAuditProfileResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DownloadSecurityAssessmentReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetAuditProfileResponse{} + response = DownloadSecurityAssessmentReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetAuditProfileResponse); ok { + if convertedResponse, ok := ociResponse.(DownloadSecurityAssessmentReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetAuditProfileResponse") + err = fmt.Errorf("failed to convert OCIResponse into DownloadSecurityAssessmentReportResponse") } return } -// getAuditProfile implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getAuditProfile(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// downloadSecurityAssessmentReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) downloadSecurityAssessmentReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditProfiles/{auditProfileId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityAssessments/{securityAssessmentId}/actions/downloadReport", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetAuditProfileResponse + var response DownloadSecurityAssessmentReportResponse 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-safe/20181201/AuditProfile/GetAuditProfile" - err = common.PostProcessServiceError(err, "DataSafe", "GetAuditProfile", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/DownloadSecurityAssessmentReport" + err = common.PostProcessServiceError(err, "DataSafe", "DownloadSecurityAssessmentReport", apiReferenceLink) return response, err } @@ -7562,13 +7818,16 @@ func (client DataSafeClient) getAuditProfile(ctx context.Context, request common return response, err } -// GetAuditTrail Gets the details of audit trail. +// DownloadSensitiveDataModel Downloads an already-generated file corresponding to the specified sensitive data model. Note that the +// GenerateSensitiveDataModelForDownload operation is a prerequisite for the DownloadSensitiveDataModel operation. +// Use GenerateSensitiveDataModelForDownload to generate a data model file and then use DownloadSensitiveDataModel +// to download the generated file. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAuditTrail.go.html to see an example of how to use GetAuditTrail API. -// A default retry strategy applies to this operation GetAuditTrail() -func (client DataSafeClient) GetAuditTrail(ctx context.Context, request GetAuditTrailRequest) (response GetAuditTrailResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadSensitiveDataModel.go.html to see an example of how to use DownloadSensitiveDataModel API. +// A default retry strategy applies to this operation DownloadSensitiveDataModel() +func (client DataSafeClient) DownloadSensitiveDataModel(ctx context.Context, request DownloadSensitiveDataModelRequest) (response DownloadSensitiveDataModelResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7577,42 +7836,41 @@ func (client DataSafeClient) GetAuditTrail(ctx context.Context, request GetAudit if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getAuditTrail, policy) + ociResponse, err = common.Retry(ctx, request, client.downloadSensitiveDataModel, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetAuditTrailResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DownloadSensitiveDataModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetAuditTrailResponse{} + response = DownloadSensitiveDataModelResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetAuditTrailResponse); ok { + if convertedResponse, ok := ociResponse.(DownloadSensitiveDataModelResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetAuditTrailResponse") + err = fmt.Errorf("failed to convert OCIResponse into DownloadSensitiveDataModelResponse") } return } -// getAuditTrail implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getAuditTrail(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// downloadSensitiveDataModel implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) downloadSensitiveDataModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditTrails/{auditTrailId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels/{sensitiveDataModelId}/actions/download", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetAuditTrailResponse + var response DownloadSensitiveDataModelResponse 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-safe/20181201/AuditTrail/GetAuditTrail" - err = common.PostProcessServiceError(err, "DataSafe", "GetAuditTrail", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveDataModel/DownloadSensitiveDataModel" + err = common.PostProcessServiceError(err, "DataSafe", "DownloadSensitiveDataModel", apiReferenceLink) return response, err } @@ -7620,19 +7878,15 @@ func (client DataSafeClient) getAuditTrail(ctx context.Context, request common.O return response, err } -// GetCompatibleFormatsForDataTypes Gets a list of basic masking formats compatible with the supported data types. -// The data types are grouped into the following categories - -// Character - Includes CHAR, NCHAR, VARCHAR2, and NVARCHAR2 -// Numeric - Includes NUMBER, FLOAT, RAW, BINARY_FLOAT, and BINARY_DOUBLE -// Date - Includes DATE and TIMESTAMP -// LOB - Includes BLOB, CLOB, and NCLOB -// All - Includes all the supported data types +// DownloadSensitiveTypesExport Downloads an already-generated file corresponding to the specified sensitive types export. +// Use CreateSensitiveTypesExport to generate an XML file and then use DownloadSensitiveTypesExport +// to download the generated file. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetCompatibleFormatsForDataTypes.go.html to see an example of how to use GetCompatibleFormatsForDataTypes API. -// A default retry strategy applies to this operation GetCompatibleFormatsForDataTypes() -func (client DataSafeClient) GetCompatibleFormatsForDataTypes(ctx context.Context, request GetCompatibleFormatsForDataTypesRequest) (response GetCompatibleFormatsForDataTypesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadSensitiveTypesExport.go.html to see an example of how to use DownloadSensitiveTypesExport API. +// A default retry strategy applies to this operation DownloadSensitiveTypesExport() +func (client DataSafeClient) DownloadSensitiveTypesExport(ctx context.Context, request DownloadSensitiveTypesExportRequest) (response DownloadSensitiveTypesExportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7641,42 +7895,41 @@ func (client DataSafeClient) GetCompatibleFormatsForDataTypes(ctx context.Contex if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getCompatibleFormatsForDataTypes, policy) + ociResponse, err = common.Retry(ctx, request, client.downloadSensitiveTypesExport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetCompatibleFormatsForDataTypesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DownloadSensitiveTypesExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetCompatibleFormatsForDataTypesResponse{} + response = DownloadSensitiveTypesExportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetCompatibleFormatsForDataTypesResponse); ok { + if convertedResponse, ok := ociResponse.(DownloadSensitiveTypesExportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetCompatibleFormatsForDataTypesResponse") + err = fmt.Errorf("failed to convert OCIResponse into DownloadSensitiveTypesExportResponse") } return } -// getCompatibleFormatsForDataTypes implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getCompatibleFormatsForDataTypes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// downloadSensitiveTypesExport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) downloadSensitiveTypesExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/compatibleFormatsForDataTypes", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveTypesExports/{sensitiveTypesExportId}/actions/download", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetCompatibleFormatsForDataTypesResponse + var response DownloadSensitiveTypesExportResponse 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-safe/20181201/MaskingColumn/GetCompatibleFormatsForDataTypes" - err = common.PostProcessServiceError(err, "DataSafe", "GetCompatibleFormatsForDataTypes", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveTypesExport/DownloadSensitiveTypesExport" + err = common.PostProcessServiceError(err, "DataSafe", "DownloadSensitiveTypesExport", apiReferenceLink) return response, err } @@ -7684,16 +7937,14 @@ func (client DataSafeClient) getCompatibleFormatsForDataTypes(ctx context.Contex return response, err } -// GetCompatibleFormatsForSensitiveTypes Gets a list of library masking formats compatible with the existing sensitive types. -// For each sensitive type, it returns the assigned default masking format as well as -// the other library masking formats that have the sensitiveTypeIds attribute containing -// the OCID of the sensitive type. +// DownloadUserAssessmentReport Downloads the report of the specified user assessment. To download the user assessment report, it needs to be generated first. +// Please use GenerateUserAssessmentReport to generate a downloadable report in the preferred format (PDF, XLS). // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetCompatibleFormatsForSensitiveTypes.go.html to see an example of how to use GetCompatibleFormatsForSensitiveTypes API. -// A default retry strategy applies to this operation GetCompatibleFormatsForSensitiveTypes() -func (client DataSafeClient) GetCompatibleFormatsForSensitiveTypes(ctx context.Context, request GetCompatibleFormatsForSensitiveTypesRequest) (response GetCompatibleFormatsForSensitiveTypesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DownloadUserAssessmentReport.go.html to see an example of how to use DownloadUserAssessmentReport API. +// A default retry strategy applies to this operation DownloadUserAssessmentReport() +func (client DataSafeClient) DownloadUserAssessmentReport(ctx context.Context, request DownloadUserAssessmentReportRequest) (response DownloadUserAssessmentReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7702,42 +7953,46 @@ func (client DataSafeClient) GetCompatibleFormatsForSensitiveTypes(ctx context.C if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getCompatibleFormatsForSensitiveTypes, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.downloadUserAssessmentReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetCompatibleFormatsForSensitiveTypesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = DownloadUserAssessmentReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetCompatibleFormatsForSensitiveTypesResponse{} + response = DownloadUserAssessmentReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetCompatibleFormatsForSensitiveTypesResponse); ok { + if convertedResponse, ok := ociResponse.(DownloadUserAssessmentReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetCompatibleFormatsForSensitiveTypesResponse") + err = fmt.Errorf("failed to convert OCIResponse into DownloadUserAssessmentReportResponse") } return } -// getCompatibleFormatsForSensitiveTypes implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getCompatibleFormatsForSensitiveTypes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// downloadUserAssessmentReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) downloadUserAssessmentReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/compatibleFormatsForSensitiveTypes", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/userAssessments/{userAssessmentId}/actions/downloadReport", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetCompatibleFormatsForSensitiveTypesResponse + var response DownloadUserAssessmentReportResponse 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-safe/20181201/MaskingColumn/GetCompatibleFormatsForSensitiveTypes" - err = common.PostProcessServiceError(err, "DataSafe", "GetCompatibleFormatsForSensitiveTypes", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UserAssessment/DownloadUserAssessmentReport" + err = common.PostProcessServiceError(err, "DataSafe", "DownloadUserAssessmentReport", apiReferenceLink) return response, err } @@ -7745,13 +8000,13 @@ func (client DataSafeClient) getCompatibleFormatsForSensitiveTypes(ctx context.C return response, err } -// GetDataSafeConfiguration Gets the details of the Data Safe configuration. +// EnableDataSafeConfiguration Enables Data Safe in the tenancy and region. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDataSafeConfiguration.go.html to see an example of how to use GetDataSafeConfiguration API. -// A default retry strategy applies to this operation GetDataSafeConfiguration() -func (client DataSafeClient) GetDataSafeConfiguration(ctx context.Context, request GetDataSafeConfigurationRequest) (response GetDataSafeConfigurationResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/EnableDataSafeConfiguration.go.html to see an example of how to use EnableDataSafeConfiguration API. +// A default retry strategy applies to this operation EnableDataSafeConfiguration() +func (client DataSafeClient) EnableDataSafeConfiguration(ctx context.Context, request EnableDataSafeConfigurationRequest) (response EnableDataSafeConfigurationResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7760,42 +8015,42 @@ func (client DataSafeClient) GetDataSafeConfiguration(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getDataSafeConfiguration, policy) + ociResponse, err = common.Retry(ctx, request, client.enableDataSafeConfiguration, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetDataSafeConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = EnableDataSafeConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetDataSafeConfigurationResponse{} + response = EnableDataSafeConfigurationResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetDataSafeConfigurationResponse); ok { + if convertedResponse, ok := ociResponse.(EnableDataSafeConfigurationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetDataSafeConfigurationResponse") + err = fmt.Errorf("failed to convert OCIResponse into EnableDataSafeConfigurationResponse") } return } -// getDataSafeConfiguration implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getDataSafeConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// enableDataSafeConfiguration implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) enableDataSafeConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/configuration", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPut, "/configuration", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetDataSafeConfigurationResponse + var response EnableDataSafeConfigurationResponse 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-safe/20181201/DataSafeConfiguration/GetDataSafeConfiguration" - err = common.PostProcessServiceError(err, "DataSafe", "GetDataSafeConfiguration", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DataSafeConfiguration/EnableDataSafeConfiguration" + err = common.PostProcessServiceError(err, "DataSafe", "EnableDataSafeConfiguration", apiReferenceLink) return response, err } @@ -7803,13 +8058,16 @@ func (client DataSafeClient) getDataSafeConfiguration(ctx context.Context, reque return response, err } -// GetDataSafePrivateEndpoint Gets the details of the specified Data Safe private endpoint. +// GenerateDiscoveryReportForDownload Generates a downloadable discovery report. It's a prerequisite for the DownloadDiscoveryReport operation. Use this +// endpoint to generate a discovery report file and then use DownloadDiscoveryReport to download the generated file. +// By default, it generates report for all the columns in a sensitive data model. Use the discoveryJobId attribute +// to generate report for a specific discovery job. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDataSafePrivateEndpoint.go.html to see an example of how to use GetDataSafePrivateEndpoint API. -// A default retry strategy applies to this operation GetDataSafePrivateEndpoint() -func (client DataSafeClient) GetDataSafePrivateEndpoint(ctx context.Context, request GetDataSafePrivateEndpointRequest) (response GetDataSafePrivateEndpointResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateDiscoveryReportForDownload.go.html to see an example of how to use GenerateDiscoveryReportForDownload API. +// A default retry strategy applies to this operation GenerateDiscoveryReportForDownload() +func (client DataSafeClient) GenerateDiscoveryReportForDownload(ctx context.Context, request GenerateDiscoveryReportForDownloadRequest) (response GenerateDiscoveryReportForDownloadResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7818,42 +8076,42 @@ func (client DataSafeClient) GetDataSafePrivateEndpoint(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getDataSafePrivateEndpoint, policy) + ociResponse, err = common.Retry(ctx, request, client.generateDiscoveryReportForDownload, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetDataSafePrivateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GenerateDiscoveryReportForDownloadResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetDataSafePrivateEndpointResponse{} + response = GenerateDiscoveryReportForDownloadResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetDataSafePrivateEndpointResponse); ok { + if convertedResponse, ok := ociResponse.(GenerateDiscoveryReportForDownloadResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetDataSafePrivateEndpointResponse") + err = fmt.Errorf("failed to convert OCIResponse into GenerateDiscoveryReportForDownloadResponse") } return } -// getDataSafePrivateEndpoint implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getDataSafePrivateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// generateDiscoveryReportForDownload implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) generateDiscoveryReportForDownload(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels/{sensitiveDataModelId}/actions/generateReportForDownload", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetDataSafePrivateEndpointResponse + var response GenerateDiscoveryReportForDownloadResponse 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-safe/20181201/DataSafePrivateEndpoint/GetDataSafePrivateEndpoint" - err = common.PostProcessServiceError(err, "DataSafe", "GetDataSafePrivateEndpoint", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveDataModel/GenerateDiscoveryReportForDownload" + err = common.PostProcessServiceError(err, "DataSafe", "GenerateDiscoveryReportForDownload", apiReferenceLink) return response, err } @@ -7861,13 +8119,13 @@ func (client DataSafeClient) getDataSafePrivateEndpoint(ctx context.Context, req return response, err } -// GetDatabaseSecurityConfig Gets a database security configuration by identifier. +// GenerateHealthReport Performs health check on the masking policy. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDatabaseSecurityConfig.go.html to see an example of how to use GetDatabaseSecurityConfig API. -// A default retry strategy applies to this operation GetDatabaseSecurityConfig() -func (client DataSafeClient) GetDatabaseSecurityConfig(ctx context.Context, request GetDatabaseSecurityConfigRequest) (response GetDatabaseSecurityConfigResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateHealthReport.go.html to see an example of how to use GenerateHealthReport API. +// A default retry strategy applies to this operation GenerateHealthReport() +func (client DataSafeClient) GenerateHealthReport(ctx context.Context, request GenerateHealthReportRequest) (response GenerateHealthReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7876,42 +8134,47 @@ func (client DataSafeClient) GetDatabaseSecurityConfig(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getDatabaseSecurityConfig, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.generateHealthReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetDatabaseSecurityConfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GenerateHealthReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetDatabaseSecurityConfigResponse{} + response = GenerateHealthReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetDatabaseSecurityConfigResponse); ok { + if convertedResponse, ok := ociResponse.(GenerateHealthReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetDatabaseSecurityConfigResponse") + err = fmt.Errorf("failed to convert OCIResponse into GenerateHealthReportResponse") } return } -// getDatabaseSecurityConfig implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getDatabaseSecurityConfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// generateHealthReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) generateHealthReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/databaseSecurityConfigs/{databaseSecurityConfigId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/actions/generateHealthReport", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetDatabaseSecurityConfigResponse + var response GenerateHealthReportResponse 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-safe/20181201/DatabaseSecurityConfig/GetDatabaseSecurityConfig" - err = common.PostProcessServiceError(err, "DataSafe", "GetDatabaseSecurityConfig", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/GenerateHealthReport" + err = common.PostProcessServiceError(err, "DataSafe", "GenerateHealthReport", apiReferenceLink) return response, err } @@ -7919,13 +8182,17 @@ func (client DataSafeClient) getDatabaseSecurityConfig(ctx context.Context, requ return response, err } -// GetDatabaseTableAccessEntry Gets a database table access entry object by identifier. +// GenerateMaskingPolicyForDownload Generates a downloadable file corresponding to the specified masking policy. It's +// a prerequisite for the DownloadMaskingPolicy operation. Use this endpoint to generate +// a masking policy file and then use DownloadMaskingPolicy to download the generated file. +// Note that file generation and download are serial operations. The download operation +// can't be invoked while the generate operation is in progress. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDatabaseTableAccessEntry.go.html to see an example of how to use GetDatabaseTableAccessEntry API. -// A default retry strategy applies to this operation GetDatabaseTableAccessEntry() -func (client DataSafeClient) GetDatabaseTableAccessEntry(ctx context.Context, request GetDatabaseTableAccessEntryRequest) (response GetDatabaseTableAccessEntryResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateMaskingPolicyForDownload.go.html to see an example of how to use GenerateMaskingPolicyForDownload API. +// A default retry strategy applies to this operation GenerateMaskingPolicyForDownload() +func (client DataSafeClient) GenerateMaskingPolicyForDownload(ctx context.Context, request GenerateMaskingPolicyForDownloadRequest) (response GenerateMaskingPolicyForDownloadResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7934,42 +8201,42 @@ func (client DataSafeClient) GetDatabaseTableAccessEntry(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getDatabaseTableAccessEntry, policy) + ociResponse, err = common.Retry(ctx, request, client.generateMaskingPolicyForDownload, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetDatabaseTableAccessEntryResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GenerateMaskingPolicyForDownloadResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetDatabaseTableAccessEntryResponse{} + response = GenerateMaskingPolicyForDownloadResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetDatabaseTableAccessEntryResponse); ok { + if convertedResponse, ok := ociResponse.(GenerateMaskingPolicyForDownloadResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetDatabaseTableAccessEntryResponse") + err = fmt.Errorf("failed to convert OCIResponse into GenerateMaskingPolicyForDownloadResponse") } return } -// getDatabaseTableAccessEntry implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getDatabaseTableAccessEntry(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// generateMaskingPolicyForDownload implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) generateMaskingPolicyForDownload(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports/{securityPolicyReportId}/databaseTableAccessEntries/{databaseTableAccessEntryKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/actions/generatePolicyForDownload", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetDatabaseTableAccessEntryResponse + var response GenerateMaskingPolicyForDownloadResponse 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-safe/20181201/DatabaseTableAccessEntry/GetDatabaseTableAccessEntry" - err = common.PostProcessServiceError(err, "DataSafe", "GetDatabaseTableAccessEntry", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicy/GenerateMaskingPolicyForDownload" + err = common.PostProcessServiceError(err, "DataSafe", "GenerateMaskingPolicyForDownload", apiReferenceLink) return response, err } @@ -7977,13 +8244,16 @@ func (client DataSafeClient) getDatabaseTableAccessEntry(ctx context.Context, re return response, err } -// GetDatabaseViewAccessEntry Gets a database view access object by identifier. +// GenerateMaskingReportForDownload Generates a downloadable masking report. It's a prerequisite for the +// DownloadMaskingReport operation. Use this endpoint to generate a +// masking report file and then use DownloadMaskingReport to download +// the generated file. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDatabaseViewAccessEntry.go.html to see an example of how to use GetDatabaseViewAccessEntry API. -// A default retry strategy applies to this operation GetDatabaseViewAccessEntry() -func (client DataSafeClient) GetDatabaseViewAccessEntry(ctx context.Context, request GetDatabaseViewAccessEntryRequest) (response GetDatabaseViewAccessEntryResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateMaskingReportForDownload.go.html to see an example of how to use GenerateMaskingReportForDownload API. +// A default retry strategy applies to this operation GenerateMaskingReportForDownload() +func (client DataSafeClient) GenerateMaskingReportForDownload(ctx context.Context, request GenerateMaskingReportForDownloadRequest) (response GenerateMaskingReportForDownloadResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -7992,42 +8262,42 @@ func (client DataSafeClient) GetDatabaseViewAccessEntry(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getDatabaseViewAccessEntry, policy) + ociResponse, err = common.Retry(ctx, request, client.generateMaskingReportForDownload, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetDatabaseViewAccessEntryResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GenerateMaskingReportForDownloadResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetDatabaseViewAccessEntryResponse{} + response = GenerateMaskingReportForDownloadResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetDatabaseViewAccessEntryResponse); ok { + if convertedResponse, ok := ociResponse.(GenerateMaskingReportForDownloadResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetDatabaseViewAccessEntryResponse") + err = fmt.Errorf("failed to convert OCIResponse into GenerateMaskingReportForDownloadResponse") } return } -// getDatabaseViewAccessEntry implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getDatabaseViewAccessEntry(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// generateMaskingReportForDownload implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) generateMaskingReportForDownload(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports/{securityPolicyReportId}/databaseViewAccessEntries/{databaseViewAccessEntryKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/maskingPolicies/{maskingPolicyId}/actions/generateReportForDownload", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetDatabaseViewAccessEntryResponse + var response GenerateMaskingReportForDownloadResponse 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-safe/20181201/DatabaseViewAccessEntry/GetDatabaseViewAccessEntry" - err = common.PostProcessServiceError(err, "DataSafe", "GetDatabaseViewAccessEntry", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicy/GenerateMaskingReportForDownload" + err = common.PostProcessServiceError(err, "DataSafe", "GenerateMaskingReportForDownload", apiReferenceLink) return response, err } @@ -8035,13 +8305,13 @@ func (client DataSafeClient) getDatabaseViewAccessEntry(ctx context.Context, req return response, err } -// GetDifferenceColumn Gets the details of the specified SDM Masking policy difference column. +// GenerateOnPremConnectorConfiguration Creates and downloads the configuration of the specified on-premises connector. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDifferenceColumn.go.html to see an example of how to use GetDifferenceColumn API. -// A default retry strategy applies to this operation GetDifferenceColumn() -func (client DataSafeClient) GetDifferenceColumn(ctx context.Context, request GetDifferenceColumnRequest) (response GetDifferenceColumnResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateOnPremConnectorConfiguration.go.html to see an example of how to use GenerateOnPremConnectorConfiguration API. +// A default retry strategy applies to this operation GenerateOnPremConnectorConfiguration() +func (client DataSafeClient) GenerateOnPremConnectorConfiguration(ctx context.Context, request GenerateOnPremConnectorConfigurationRequest) (response GenerateOnPremConnectorConfigurationResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8050,42 +8320,46 @@ func (client DataSafeClient) GetDifferenceColumn(ctx context.Context, request Ge if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getDifferenceColumn, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.generateOnPremConnectorConfiguration, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetDifferenceColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GenerateOnPremConnectorConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetDifferenceColumnResponse{} + response = GenerateOnPremConnectorConfigurationResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetDifferenceColumnResponse); ok { + if convertedResponse, ok := ociResponse.(GenerateOnPremConnectorConfigurationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetDifferenceColumnResponse") + err = fmt.Errorf("failed to convert OCIResponse into GenerateOnPremConnectorConfigurationResponse") } return } -// getDifferenceColumn implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getDifferenceColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// generateOnPremConnectorConfiguration implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) generateOnPremConnectorConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}/differenceColumns/{differenceColumnKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/onPremConnectors/{onPremConnectorId}/actions/generateConfiguration", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetDifferenceColumnResponse + var response GenerateOnPremConnectorConfigurationResponse 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-safe/20181201/DifferenceColumn/GetDifferenceColumn" - err = common.PostProcessServiceError(err, "DataSafe", "GetDifferenceColumn", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/OnPremConnector/GenerateOnPremConnectorConfiguration" + err = common.PostProcessServiceError(err, "DataSafe", "GenerateOnPremConnectorConfiguration", apiReferenceLink) return response, err } @@ -8093,13 +8367,13 @@ func (client DataSafeClient) getDifferenceColumn(ctx context.Context, request co return response, err } -// GetDiscoveryJob Gets the details of the specified discovery job. +// GenerateReport Generates a .xls or .pdf report based on parameters and report definition. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDiscoveryJob.go.html to see an example of how to use GetDiscoveryJob API. -// A default retry strategy applies to this operation GetDiscoveryJob() -func (client DataSafeClient) GetDiscoveryJob(ctx context.Context, request GetDiscoveryJobRequest) (response GetDiscoveryJobResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateReport.go.html to see an example of how to use GenerateReport API. +// A default retry strategy applies to this operation GenerateReport() +func (client DataSafeClient) GenerateReport(ctx context.Context, request GenerateReportRequest) (response GenerateReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8108,42 +8382,47 @@ func (client DataSafeClient) GetDiscoveryJob(ctx context.Context, request GetDis if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getDiscoveryJob, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.generateReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetDiscoveryJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GenerateReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetDiscoveryJobResponse{} + response = GenerateReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetDiscoveryJobResponse); ok { + if convertedResponse, ok := ociResponse.(GenerateReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetDiscoveryJobResponse") + err = fmt.Errorf("failed to convert OCIResponse into GenerateReportResponse") } return } -// getDiscoveryJob implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getDiscoveryJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// generateReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) generateReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/discoveryJobs/{discoveryJobId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/reportDefinitions/{reportDefinitionId}/actions/generateReport", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetDiscoveryJobResponse + var response GenerateReportResponse 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-safe/20181201/DiscoveryJob/GetDiscoveryJob" - err = common.PostProcessServiceError(err, "DataSafe", "GetDiscoveryJob", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReportDefinition/GenerateReport" + err = common.PostProcessServiceError(err, "DataSafe", "GenerateReport", apiReferenceLink) return response, err } @@ -8151,13 +8430,14 @@ func (client DataSafeClient) getDiscoveryJob(ctx context.Context, request common return response, err } -// GetDiscoveryJobResult Gets the details of the specified discovery result. +// GenerateSecurityAssessmentReport Generates the report of the specified security assessment. You can get the report in PDF or XLS format. +// After generating the report, use DownloadSecurityAssessmentReport to download it in the preferred format. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDiscoveryJobResult.go.html to see an example of how to use GetDiscoveryJobResult API. -// A default retry strategy applies to this operation GetDiscoveryJobResult() -func (client DataSafeClient) GetDiscoveryJobResult(ctx context.Context, request GetDiscoveryJobResultRequest) (response GetDiscoveryJobResultResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateSecurityAssessmentReport.go.html to see an example of how to use GenerateSecurityAssessmentReport API. +// A default retry strategy applies to this operation GenerateSecurityAssessmentReport() +func (client DataSafeClient) GenerateSecurityAssessmentReport(ctx context.Context, request GenerateSecurityAssessmentReportRequest) (response GenerateSecurityAssessmentReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8166,42 +8446,47 @@ func (client DataSafeClient) GetDiscoveryJobResult(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getDiscoveryJobResult, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.generateSecurityAssessmentReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetDiscoveryJobResultResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GenerateSecurityAssessmentReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetDiscoveryJobResultResponse{} + response = GenerateSecurityAssessmentReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetDiscoveryJobResultResponse); ok { + if convertedResponse, ok := ociResponse.(GenerateSecurityAssessmentReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetDiscoveryJobResultResponse") + err = fmt.Errorf("failed to convert OCIResponse into GenerateSecurityAssessmentReportResponse") } return } -// getDiscoveryJobResult implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getDiscoveryJobResult(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// generateSecurityAssessmentReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) generateSecurityAssessmentReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/discoveryJobs/{discoveryJobId}/results/{resultKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityAssessments/{securityAssessmentId}/actions/generateReport", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetDiscoveryJobResultResponse + var response GenerateSecurityAssessmentReportResponse 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-safe/20181201/DiscoveryJobResult/GetDiscoveryJobResult" - err = common.PostProcessServiceError(err, "DataSafe", "GetDiscoveryJobResult", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/GenerateSecurityAssessmentReport" + err = common.PostProcessServiceError(err, "DataSafe", "GenerateSecurityAssessmentReport", apiReferenceLink) return response, err } @@ -8209,13 +8494,16 @@ func (client DataSafeClient) getDiscoveryJobResult(ctx context.Context, request return response, err } -// GetLibraryMaskingFormat Gets the details of the specified library masking format. +// GenerateSensitiveDataModelForDownload Generates a downloadable file corresponding to the specified sensitive data model. It's a prerequisite for the +// DownloadSensitiveDataModel operation. Use this endpoint to generate a data model file and then use DownloadSensitiveDataModel +// to download the generated file. Note that file generation and download are serial operations. The download operation +// can't be invoked while the generate operation is in progress. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetLibraryMaskingFormat.go.html to see an example of how to use GetLibraryMaskingFormat API. -// A default retry strategy applies to this operation GetLibraryMaskingFormat() -func (client DataSafeClient) GetLibraryMaskingFormat(ctx context.Context, request GetLibraryMaskingFormatRequest) (response GetLibraryMaskingFormatResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateSensitiveDataModelForDownload.go.html to see an example of how to use GenerateSensitiveDataModelForDownload API. +// A default retry strategy applies to this operation GenerateSensitiveDataModelForDownload() +func (client DataSafeClient) GenerateSensitiveDataModelForDownload(ctx context.Context, request GenerateSensitiveDataModelForDownloadRequest) (response GenerateSensitiveDataModelForDownloadResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8224,42 +8512,42 @@ func (client DataSafeClient) GetLibraryMaskingFormat(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getLibraryMaskingFormat, policy) + ociResponse, err = common.Retry(ctx, request, client.generateSensitiveDataModelForDownload, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetLibraryMaskingFormatResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GenerateSensitiveDataModelForDownloadResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetLibraryMaskingFormatResponse{} + response = GenerateSensitiveDataModelForDownloadResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetLibraryMaskingFormatResponse); ok { + if convertedResponse, ok := ociResponse.(GenerateSensitiveDataModelForDownloadResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetLibraryMaskingFormatResponse") + err = fmt.Errorf("failed to convert OCIResponse into GenerateSensitiveDataModelForDownloadResponse") } return } -// getLibraryMaskingFormat implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getLibraryMaskingFormat(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// generateSensitiveDataModelForDownload implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) generateSensitiveDataModelForDownload(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/libraryMaskingFormats/{libraryMaskingFormatId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sensitiveDataModels/{sensitiveDataModelId}/actions/generateDataModelForDownload", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetLibraryMaskingFormatResponse + var response GenerateSensitiveDataModelForDownloadResponse 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-safe/20181201/LibraryMaskingFormat/GetLibraryMaskingFormat" - err = common.PostProcessServiceError(err, "DataSafe", "GetLibraryMaskingFormat", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveDataModel/GenerateSensitiveDataModelForDownload" + err = common.PostProcessServiceError(err, "DataSafe", "GenerateSensitiveDataModelForDownload", apiReferenceLink) return response, err } @@ -8267,13 +8555,13 @@ func (client DataSafeClient) getLibraryMaskingFormat(ctx context.Context, reques return response, err } -// GetMaskingColumn Gets the details of the specified masking column. +// GenerateSqlFirewallPolicy Generates or appends to the SQL Firewall policy using the specified SQL collection. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetMaskingColumn.go.html to see an example of how to use GetMaskingColumn API. -// A default retry strategy applies to this operation GetMaskingColumn() -func (client DataSafeClient) GetMaskingColumn(ctx context.Context, request GetMaskingColumnRequest) (response GetMaskingColumnResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateSqlFirewallPolicy.go.html to see an example of how to use GenerateSqlFirewallPolicy API. +// A default retry strategy applies to this operation GenerateSqlFirewallPolicy() +func (client DataSafeClient) GenerateSqlFirewallPolicy(ctx context.Context, request GenerateSqlFirewallPolicyRequest) (response GenerateSqlFirewallPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8282,42 +8570,47 @@ func (client DataSafeClient) GetMaskingColumn(ctx context.Context, request GetMa if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getMaskingColumn, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.generateSqlFirewallPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetMaskingColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GenerateSqlFirewallPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetMaskingColumnResponse{} + response = GenerateSqlFirewallPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetMaskingColumnResponse); ok { + if convertedResponse, ok := ociResponse.(GenerateSqlFirewallPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetMaskingColumnResponse") + err = fmt.Errorf("failed to convert OCIResponse into GenerateSqlFirewallPolicyResponse") } return } -// getMaskingColumn implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getMaskingColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// generateSqlFirewallPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) generateSqlFirewallPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies/{maskingPolicyId}/maskingColumns/{maskingColumnKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/sqlCollections/{sqlCollectionId}/actions/generateSqlFirewallPolicy", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetMaskingColumnResponse + var response GenerateSqlFirewallPolicyResponse 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-safe/20181201/MaskingColumn/GetMaskingColumn" - err = common.PostProcessServiceError(err, "DataSafe", "GetMaskingColumn", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlCollection/GenerateSqlFirewallPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "GenerateSqlFirewallPolicy", apiReferenceLink) return response, err } @@ -8325,13 +8618,14 @@ func (client DataSafeClient) getMaskingColumn(ctx context.Context, request commo return response, err } -// GetMaskingPolicy Gets the details of the specified masking policy. +// GenerateUserAssessmentReport Generates the report of the specified user assessment. The report is available in PDF or XLS format. +// After generating the report, use DownloadUserAssessmentReport to download it in the preferred format. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetMaskingPolicy.go.html to see an example of how to use GetMaskingPolicy API. -// A default retry strategy applies to this operation GetMaskingPolicy() -func (client DataSafeClient) GetMaskingPolicy(ctx context.Context, request GetMaskingPolicyRequest) (response GetMaskingPolicyResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GenerateUserAssessmentReport.go.html to see an example of how to use GenerateUserAssessmentReport API. +// A default retry strategy applies to this operation GenerateUserAssessmentReport() +func (client DataSafeClient) GenerateUserAssessmentReport(ctx context.Context, request GenerateUserAssessmentReportRequest) (response GenerateUserAssessmentReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8340,42 +8634,47 @@ func (client DataSafeClient) GetMaskingPolicy(ctx context.Context, request GetMa if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getMaskingPolicy, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.generateUserAssessmentReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetMaskingPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GenerateUserAssessmentReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetMaskingPolicyResponse{} + response = GenerateUserAssessmentReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetMaskingPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(GenerateUserAssessmentReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetMaskingPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into GenerateUserAssessmentReportResponse") } return } -// getMaskingPolicy implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getMaskingPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// generateUserAssessmentReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) generateUserAssessmentReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies/{maskingPolicyId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/userAssessments/{userAssessmentId}/actions/generateReport", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetMaskingPolicyResponse + var response GenerateUserAssessmentReportResponse 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-safe/20181201/MaskingPolicy/GetMaskingPolicy" - err = common.PostProcessServiceError(err, "DataSafe", "GetMaskingPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UserAssessment/GenerateUserAssessmentReport" + err = common.PostProcessServiceError(err, "DataSafe", "GenerateUserAssessmentReport", apiReferenceLink) return response, err } @@ -8383,13 +8682,13 @@ func (client DataSafeClient) getMaskingPolicy(ctx context.Context, request commo return response, err } -// GetMaskingPolicyHealthReport Gets the details of the specified masking policy health report. +// GetAlert Gets the details of the specified alerts. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetMaskingPolicyHealthReport.go.html to see an example of how to use GetMaskingPolicyHealthReport API. -// A default retry strategy applies to this operation GetMaskingPolicyHealthReport() -func (client DataSafeClient) GetMaskingPolicyHealthReport(ctx context.Context, request GetMaskingPolicyHealthReportRequest) (response GetMaskingPolicyHealthReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAlert.go.html to see an example of how to use GetAlert API. +// A default retry strategy applies to this operation GetAlert() +func (client DataSafeClient) GetAlert(ctx context.Context, request GetAlertRequest) (response GetAlertResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8398,42 +8697,42 @@ func (client DataSafeClient) GetMaskingPolicyHealthReport(ctx context.Context, r if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getMaskingPolicyHealthReport, policy) + ociResponse, err = common.Retry(ctx, request, client.getAlert, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetMaskingPolicyHealthReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetAlertResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetMaskingPolicyHealthReportResponse{} + response = GetAlertResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetMaskingPolicyHealthReportResponse); ok { + if convertedResponse, ok := ociResponse.(GetAlertResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetMaskingPolicyHealthReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetAlertResponse") } return } -// getMaskingPolicyHealthReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getMaskingPolicyHealthReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getAlert implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getAlert(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicyHealthReports/{maskingPolicyHealthReportId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/alerts/{alertId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetMaskingPolicyHealthReportResponse + var response GetAlertResponse 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-safe/20181201/MaskingPolicyHealthReport/GetMaskingPolicyHealthReport" - err = common.PostProcessServiceError(err, "DataSafe", "GetMaskingPolicyHealthReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/Alert/GetAlert" + err = common.PostProcessServiceError(err, "DataSafe", "GetAlert", apiReferenceLink) return response, err } @@ -8441,13 +8740,13 @@ func (client DataSafeClient) getMaskingPolicyHealthReport(ctx context.Context, r return response, err } -// GetMaskingReport Gets the details of the specified masking report. +// GetAlertPolicy Gets the details of alert policy by its ID. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetMaskingReport.go.html to see an example of how to use GetMaskingReport API. -// A default retry strategy applies to this operation GetMaskingReport() -func (client DataSafeClient) GetMaskingReport(ctx context.Context, request GetMaskingReportRequest) (response GetMaskingReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAlertPolicy.go.html to see an example of how to use GetAlertPolicy API. +// A default retry strategy applies to this operation GetAlertPolicy() +func (client DataSafeClient) GetAlertPolicy(ctx context.Context, request GetAlertPolicyRequest) (response GetAlertPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8456,42 +8755,42 @@ func (client DataSafeClient) GetMaskingReport(ctx context.Context, request GetMa if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getMaskingReport, policy) + ociResponse, err = common.Retry(ctx, request, client.getAlertPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetMaskingReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetAlertPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetMaskingReportResponse{} + response = GetAlertPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetMaskingReportResponse); ok { + if convertedResponse, ok := ociResponse.(GetAlertPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetMaskingReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetAlertPolicyResponse") } return } -// getMaskingReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getMaskingReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getAlertPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getAlertPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingReports/{maskingReportId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/alertPolicies/{alertPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetMaskingReportResponse + var response GetAlertPolicyResponse 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-safe/20181201/MaskingReport/GetMaskingReport" - err = common.PostProcessServiceError(err, "DataSafe", "GetMaskingReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AlertPolicy/GetAlertPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "GetAlertPolicy", apiReferenceLink) return response, err } @@ -8499,13 +8798,13 @@ func (client DataSafeClient) getMaskingReport(ctx context.Context, request commo return response, err } -// GetOnPremConnector Gets the details of the specified on-premises connector. +// GetAlertPolicyRule Gets the details of a policy rule by its key. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetOnPremConnector.go.html to see an example of how to use GetOnPremConnector API. -// A default retry strategy applies to this operation GetOnPremConnector() -func (client DataSafeClient) GetOnPremConnector(ctx context.Context, request GetOnPremConnectorRequest) (response GetOnPremConnectorResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAlertPolicyRule.go.html to see an example of how to use GetAlertPolicyRule API. +// A default retry strategy applies to this operation GetAlertPolicyRule() +func (client DataSafeClient) GetAlertPolicyRule(ctx context.Context, request GetAlertPolicyRuleRequest) (response GetAlertPolicyRuleResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8514,42 +8813,42 @@ func (client DataSafeClient) GetOnPremConnector(ctx context.Context, request Get if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getOnPremConnector, policy) + ociResponse, err = common.Retry(ctx, request, client.getAlertPolicyRule, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetOnPremConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetAlertPolicyRuleResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetOnPremConnectorResponse{} + response = GetAlertPolicyRuleResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetOnPremConnectorResponse); ok { + if convertedResponse, ok := ociResponse.(GetAlertPolicyRuleResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetOnPremConnectorResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetAlertPolicyRuleResponse") } return } -// getOnPremConnector implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getOnPremConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getAlertPolicyRule implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getAlertPolicyRule(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/onPremConnectors/{onPremConnectorId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/alertPolicies/{alertPolicyId}/rules/{ruleKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetOnPremConnectorResponse + var response GetAlertPolicyRuleResponse 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-safe/20181201/OnPremConnector/GetOnPremConnector" - err = common.PostProcessServiceError(err, "DataSafe", "GetOnPremConnector", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AlertPolicyRule/GetAlertPolicyRule" + err = common.PostProcessServiceError(err, "DataSafe", "GetAlertPolicyRule", apiReferenceLink) return response, err } @@ -8557,13 +8856,13 @@ func (client DataSafeClient) getOnPremConnector(ctx context.Context, request com return response, err } -// GetPeerTargetDatabase Returns the details of the specified Data Safe peer target database. +// GetAttributeSet Gets the details of the specified attribute set. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetPeerTargetDatabase.go.html to see an example of how to use GetPeerTargetDatabase API. -// A default retry strategy applies to this operation GetPeerTargetDatabase() -func (client DataSafeClient) GetPeerTargetDatabase(ctx context.Context, request GetPeerTargetDatabaseRequest) (response GetPeerTargetDatabaseResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAttributeSet.go.html to see an example of how to use GetAttributeSet API. +// A default retry strategy applies to this operation GetAttributeSet() +func (client DataSafeClient) GetAttributeSet(ctx context.Context, request GetAttributeSetRequest) (response GetAttributeSetResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8572,42 +8871,42 @@ func (client DataSafeClient) GetPeerTargetDatabase(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getPeerTargetDatabase, policy) + ociResponse, err = common.Retry(ctx, request, client.getAttributeSet, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetPeerTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetAttributeSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetPeerTargetDatabaseResponse{} + response = GetAttributeSetResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetPeerTargetDatabaseResponse); ok { + if convertedResponse, ok := ociResponse.(GetAttributeSetResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetPeerTargetDatabaseResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetAttributeSetResponse") } return } -// getPeerTargetDatabase implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getPeerTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getAttributeSet implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getAttributeSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}/peerTargetDatabases/{peerTargetDatabaseId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/attributeSets/{attributeSetId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetPeerTargetDatabaseResponse + var response GetAttributeSetResponse 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-safe/20181201/PeerTargetDatabase/GetPeerTargetDatabase" - err = common.PostProcessServiceError(err, "DataSafe", "GetPeerTargetDatabase", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AttributeSet/GetAttributeSet" + err = common.PostProcessServiceError(err, "DataSafe", "GetAttributeSet", apiReferenceLink) return response, err } @@ -8615,15 +8914,13 @@ func (client DataSafeClient) getPeerTargetDatabase(ctx context.Context, request return response, err } -// GetProfile Lists the details of given profile available on the target. -// The GetProfile operation returns only the profiles in the specified 'userAssessmentId'. -// This does not include any subcompartments of the current compartment. +// GetAuditArchiveRetrieval Gets the details of the specified archive retreival. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetProfile.go.html to see an example of how to use GetProfile API. -// A default retry strategy applies to this operation GetProfile() -func (client DataSafeClient) GetProfile(ctx context.Context, request GetProfileRequest) (response GetProfileResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAuditArchiveRetrieval.go.html to see an example of how to use GetAuditArchiveRetrieval API. +// A default retry strategy applies to this operation GetAuditArchiveRetrieval() +func (client DataSafeClient) GetAuditArchiveRetrieval(ctx context.Context, request GetAuditArchiveRetrievalRequest) (response GetAuditArchiveRetrievalResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8632,42 +8929,42 @@ func (client DataSafeClient) GetProfile(ctx context.Context, request GetProfileR if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getProfile, policy) + ociResponse, err = common.Retry(ctx, request, client.getAuditArchiveRetrieval, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetProfileResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetAuditArchiveRetrievalResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetProfileResponse{} + response = GetAuditArchiveRetrievalResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetProfileResponse); ok { + if convertedResponse, ok := ociResponse.(GetAuditArchiveRetrievalResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetProfileResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetAuditArchiveRetrievalResponse") } return } -// getProfile implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getProfile(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getAuditArchiveRetrieval implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getAuditArchiveRetrieval(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}/profiles/{profileName}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditArchiveRetrievals/{auditArchiveRetrievalId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetProfileResponse + var response GetAuditArchiveRetrievalResponse 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-safe/20181201/UserAssessment/GetProfile" - err = common.PostProcessServiceError(err, "DataSafe", "GetProfile", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AuditArchiveRetrieval/GetAuditArchiveRetrieval" + err = common.PostProcessServiceError(err, "DataSafe", "GetAuditArchiveRetrieval", apiReferenceLink) return response, err } @@ -8675,13 +8972,13 @@ func (client DataSafeClient) getProfile(ctx context.Context, request common.OCIR return response, err } -// GetReferentialRelation Gets the details of the specified referential relation. +// GetAuditPolicy Gets a audit policy by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetReferentialRelation.go.html to see an example of how to use GetReferentialRelation API. -// A default retry strategy applies to this operation GetReferentialRelation() -func (client DataSafeClient) GetReferentialRelation(ctx context.Context, request GetReferentialRelationRequest) (response GetReferentialRelationResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAuditPolicy.go.html to see an example of how to use GetAuditPolicy API. +// A default retry strategy applies to this operation GetAuditPolicy() +func (client DataSafeClient) GetAuditPolicy(ctx context.Context, request GetAuditPolicyRequest) (response GetAuditPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8690,42 +8987,42 @@ func (client DataSafeClient) GetReferentialRelation(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getReferentialRelation, policy) + ociResponse, err = common.Retry(ctx, request, client.getAuditPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetReferentialRelationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetAuditPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetReferentialRelationResponse{} + response = GetAuditPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetReferentialRelationResponse); ok { + if convertedResponse, ok := ociResponse.(GetAuditPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetReferentialRelationResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetAuditPolicyResponse") } return } -// getReferentialRelation implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getReferentialRelation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getAuditPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getAuditPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/referentialRelations/{referentialRelationKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditPolicies/{auditPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetReferentialRelationResponse + var response GetAuditPolicyResponse 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-safe/20181201/ReferentialRelation/GetReferentialRelation" - err = common.PostProcessServiceError(err, "DataSafe", "GetReferentialRelation", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AuditPolicy/GetAuditPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "GetAuditPolicy", apiReferenceLink) return response, err } @@ -8733,13 +9030,13 @@ func (client DataSafeClient) getReferentialRelation(ctx context.Context, request return response, err } -// GetReport Gets a report by identifier +// GetAuditProfile Gets the details of audit profile resource and associated audit trails of the audit profile. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetReport.go.html to see an example of how to use GetReport API. -// A default retry strategy applies to this operation GetReport() -func (client DataSafeClient) GetReport(ctx context.Context, request GetReportRequest) (response GetReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAuditProfile.go.html to see an example of how to use GetAuditProfile API. +// A default retry strategy applies to this operation GetAuditProfile() +func (client DataSafeClient) GetAuditProfile(ctx context.Context, request GetAuditProfileRequest) (response GetAuditProfileResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8748,42 +9045,42 @@ func (client DataSafeClient) GetReport(ctx context.Context, request GetReportReq if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getReport, policy) + ociResponse, err = common.Retry(ctx, request, client.getAuditProfile, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetAuditProfileResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetReportResponse{} + response = GetAuditProfileResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetReportResponse); ok { + if convertedResponse, ok := ociResponse.(GetAuditProfileResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetAuditProfileResponse") } return } -// getReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getAuditProfile implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getAuditProfile(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/reports/{reportId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditProfiles/{auditProfileId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetReportResponse + var response GetAuditProfileResponse 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-safe/20181201/Report/GetReport" - err = common.PostProcessServiceError(err, "DataSafe", "GetReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AuditProfile/GetAuditProfile" + err = common.PostProcessServiceError(err, "DataSafe", "GetAuditProfile", apiReferenceLink) return response, err } @@ -8791,13 +9088,13 @@ func (client DataSafeClient) getReport(ctx context.Context, request common.OCIRe return response, err } -// GetReportContent Downloads the specified report in the form of .xls or .pdf. +// GetAuditTrail Gets the details of audit trail. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetReportContent.go.html to see an example of how to use GetReportContent API. -// A default retry strategy applies to this operation GetReportContent() -func (client DataSafeClient) GetReportContent(ctx context.Context, request GetReportContentRequest) (response GetReportContentResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAuditTrail.go.html to see an example of how to use GetAuditTrail API. +// A default retry strategy applies to this operation GetAuditTrail() +func (client DataSafeClient) GetAuditTrail(ctx context.Context, request GetAuditTrailRequest) (response GetAuditTrailResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8806,41 +9103,42 @@ func (client DataSafeClient) GetReportContent(ctx context.Context, request GetRe if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getReportContent, policy) + ociResponse, err = common.Retry(ctx, request, client.getAuditTrail, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetReportContentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetAuditTrailResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetReportContentResponse{} + response = GetAuditTrailResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetReportContentResponse); ok { + if convertedResponse, ok := ociResponse.(GetAuditTrailResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetReportContentResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetAuditTrailResponse") } return } -// getReportContent implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getReportContent(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getAuditTrail implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getAuditTrail(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/reports/{reportId}/content", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditTrails/{auditTrailId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetReportContentResponse + var response GetAuditTrailResponse 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-safe/20181201/Report/GetReportContent" - err = common.PostProcessServiceError(err, "DataSafe", "GetReportContent", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AuditTrail/GetAuditTrail" + err = common.PostProcessServiceError(err, "DataSafe", "GetAuditTrail", apiReferenceLink) return response, err } @@ -8848,13 +9146,19 @@ func (client DataSafeClient) getReportContent(ctx context.Context, request commo return response, err } -// GetReportDefinition Gets the details of report definition specified by the identifier +// GetCompatibleFormatsForDataTypes Gets a list of basic masking formats compatible with the supported data types. +// The data types are grouped into the following categories - +// Character - Includes CHAR, NCHAR, VARCHAR2, and NVARCHAR2 +// Numeric - Includes NUMBER, FLOAT, RAW, BINARY_FLOAT, and BINARY_DOUBLE +// Date - Includes DATE and TIMESTAMP +// LOB - Includes BLOB, CLOB, and NCLOB +// All - Includes all the supported data types // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetReportDefinition.go.html to see an example of how to use GetReportDefinition API. -// A default retry strategy applies to this operation GetReportDefinition() -func (client DataSafeClient) GetReportDefinition(ctx context.Context, request GetReportDefinitionRequest) (response GetReportDefinitionResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetCompatibleFormatsForDataTypes.go.html to see an example of how to use GetCompatibleFormatsForDataTypes API. +// A default retry strategy applies to this operation GetCompatibleFormatsForDataTypes() +func (client DataSafeClient) GetCompatibleFormatsForDataTypes(ctx context.Context, request GetCompatibleFormatsForDataTypesRequest) (response GetCompatibleFormatsForDataTypesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8863,42 +9167,42 @@ func (client DataSafeClient) GetReportDefinition(ctx context.Context, request Ge if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getReportDefinition, policy) + ociResponse, err = common.Retry(ctx, request, client.getCompatibleFormatsForDataTypes, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetReportDefinitionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetCompatibleFormatsForDataTypesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetReportDefinitionResponse{} + response = GetCompatibleFormatsForDataTypesResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetReportDefinitionResponse); ok { + if convertedResponse, ok := ociResponse.(GetCompatibleFormatsForDataTypesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetReportDefinitionResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetCompatibleFormatsForDataTypesResponse") } return } -// getReportDefinition implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getReportDefinition(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getCompatibleFormatsForDataTypes implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getCompatibleFormatsForDataTypes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/reportDefinitions/{reportDefinitionId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/compatibleFormatsForDataTypes", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetReportDefinitionResponse + var response GetCompatibleFormatsForDataTypesResponse 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-safe/20181201/ReportDefinition/GetReportDefinition" - err = common.PostProcessServiceError(err, "DataSafe", "GetReportDefinition", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingColumn/GetCompatibleFormatsForDataTypes" + err = common.PostProcessServiceError(err, "DataSafe", "GetCompatibleFormatsForDataTypes", apiReferenceLink) return response, err } @@ -8906,13 +9210,16 @@ func (client DataSafeClient) getReportDefinition(ctx context.Context, request co return response, err } -// GetSdmMaskingPolicyDifference Gets the details of the specified SDM Masking policy difference. +// GetCompatibleFormatsForSensitiveTypes Gets a list of library masking formats compatible with the existing sensitive types. +// For each sensitive type, it returns the assigned default masking format as well as +// the other library masking formats that have the sensitiveTypeIds attribute containing +// the OCID of the sensitive type. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSdmMaskingPolicyDifference.go.html to see an example of how to use GetSdmMaskingPolicyDifference API. -// A default retry strategy applies to this operation GetSdmMaskingPolicyDifference() -func (client DataSafeClient) GetSdmMaskingPolicyDifference(ctx context.Context, request GetSdmMaskingPolicyDifferenceRequest) (response GetSdmMaskingPolicyDifferenceResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetCompatibleFormatsForSensitiveTypes.go.html to see an example of how to use GetCompatibleFormatsForSensitiveTypes API. +// A default retry strategy applies to this operation GetCompatibleFormatsForSensitiveTypes() +func (client DataSafeClient) GetCompatibleFormatsForSensitiveTypes(ctx context.Context, request GetCompatibleFormatsForSensitiveTypesRequest) (response GetCompatibleFormatsForSensitiveTypesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8921,42 +9228,42 @@ func (client DataSafeClient) GetSdmMaskingPolicyDifference(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSdmMaskingPolicyDifference, policy) + ociResponse, err = common.Retry(ctx, request, client.getCompatibleFormatsForSensitiveTypes, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSdmMaskingPolicyDifferenceResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetCompatibleFormatsForSensitiveTypesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSdmMaskingPolicyDifferenceResponse{} + response = GetCompatibleFormatsForSensitiveTypesResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSdmMaskingPolicyDifferenceResponse); ok { + if convertedResponse, ok := ociResponse.(GetCompatibleFormatsForSensitiveTypesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSdmMaskingPolicyDifferenceResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetCompatibleFormatsForSensitiveTypesResponse") } return } -// getSdmMaskingPolicyDifference implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSdmMaskingPolicyDifference(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getCompatibleFormatsForSensitiveTypes implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getCompatibleFormatsForSensitiveTypes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/compatibleFormatsForSensitiveTypes", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSdmMaskingPolicyDifferenceResponse + var response GetCompatibleFormatsForSensitiveTypesResponse 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-safe/20181201/SdmMaskingPolicyDifference/GetSdmMaskingPolicyDifference" - err = common.PostProcessServiceError(err, "DataSafe", "GetSdmMaskingPolicyDifference", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingColumn/GetCompatibleFormatsForSensitiveTypes" + err = common.PostProcessServiceError(err, "DataSafe", "GetCompatibleFormatsForSensitiveTypes", apiReferenceLink) return response, err } @@ -8964,13 +9271,13 @@ func (client DataSafeClient) getSdmMaskingPolicyDifference(ctx context.Context, return response, err } -// GetSecurityAssessment Gets the details of the specified security assessment. +// GetDataSafeConfiguration Gets the details of the Data Safe configuration. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityAssessment.go.html to see an example of how to use GetSecurityAssessment API. -// A default retry strategy applies to this operation GetSecurityAssessment() -func (client DataSafeClient) GetSecurityAssessment(ctx context.Context, request GetSecurityAssessmentRequest) (response GetSecurityAssessmentResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDataSafeConfiguration.go.html to see an example of how to use GetDataSafeConfiguration API. +// A default retry strategy applies to this operation GetDataSafeConfiguration() +func (client DataSafeClient) GetDataSafeConfiguration(ctx context.Context, request GetDataSafeConfigurationRequest) (response GetDataSafeConfigurationResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -8979,42 +9286,42 @@ func (client DataSafeClient) GetSecurityAssessment(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSecurityAssessment, policy) + ociResponse, err = common.Retry(ctx, request, client.getDataSafeConfiguration, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSecurityAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetDataSafeConfigurationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSecurityAssessmentResponse{} + response = GetDataSafeConfigurationResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSecurityAssessmentResponse); ok { + if convertedResponse, ok := ociResponse.(GetDataSafeConfigurationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSecurityAssessmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetDataSafeConfigurationResponse") } return } -// getSecurityAssessment implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSecurityAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getDataSafeConfiguration implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getDataSafeConfiguration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/{securityAssessmentId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/configuration", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSecurityAssessmentResponse + var response GetDataSafeConfigurationResponse 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-safe/20181201/SecurityAssessment/GetSecurityAssessment" - err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityAssessment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DataSafeConfiguration/GetDataSafeConfiguration" + err = common.PostProcessServiceError(err, "DataSafe", "GetDataSafeConfiguration", apiReferenceLink) return response, err } @@ -9022,13 +9329,13 @@ func (client DataSafeClient) getSecurityAssessment(ctx context.Context, request return response, err } -// GetSecurityAssessmentComparison Gets the details of the comparison report for the security assessments submitted for comparison. +// GetDataSafePrivateEndpoint Gets the details of the specified Data Safe private endpoint. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityAssessmentComparison.go.html to see an example of how to use GetSecurityAssessmentComparison API. -// A default retry strategy applies to this operation GetSecurityAssessmentComparison() -func (client DataSafeClient) GetSecurityAssessmentComparison(ctx context.Context, request GetSecurityAssessmentComparisonRequest) (response GetSecurityAssessmentComparisonResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDataSafePrivateEndpoint.go.html to see an example of how to use GetDataSafePrivateEndpoint API. +// A default retry strategy applies to this operation GetDataSafePrivateEndpoint() +func (client DataSafeClient) GetDataSafePrivateEndpoint(ctx context.Context, request GetDataSafePrivateEndpointRequest) (response GetDataSafePrivateEndpointResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9037,42 +9344,42 @@ func (client DataSafeClient) GetSecurityAssessmentComparison(ctx context.Context if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSecurityAssessmentComparison, policy) + ociResponse, err = common.Retry(ctx, request, client.getDataSafePrivateEndpoint, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSecurityAssessmentComparisonResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetDataSafePrivateEndpointResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSecurityAssessmentComparisonResponse{} + response = GetDataSafePrivateEndpointResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSecurityAssessmentComparisonResponse); ok { + if convertedResponse, ok := ociResponse.(GetDataSafePrivateEndpointResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSecurityAssessmentComparisonResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetDataSafePrivateEndpointResponse") } return } -// getSecurityAssessmentComparison implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSecurityAssessmentComparison(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getDataSafePrivateEndpoint implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getDataSafePrivateEndpoint(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/{securityAssessmentId}/comparison/{comparisonSecurityAssessmentId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSecurityAssessmentComparisonResponse + var response GetDataSafePrivateEndpointResponse 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-safe/20181201/SecurityAssessment/GetSecurityAssessmentComparison" - err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityAssessmentComparison", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DataSafePrivateEndpoint/GetDataSafePrivateEndpoint" + err = common.PostProcessServiceError(err, "DataSafe", "GetDataSafePrivateEndpoint", apiReferenceLink) return response, err } @@ -9080,13 +9387,13 @@ func (client DataSafeClient) getSecurityAssessmentComparison(ctx context.Context return response, err } -// GetSecurityPolicy Gets a security policy by the specified OCID of the security policy resource. +// GetDatabaseSecurityConfig Gets a database security configuration by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityPolicy.go.html to see an example of how to use GetSecurityPolicy API. -// A default retry strategy applies to this operation GetSecurityPolicy() -func (client DataSafeClient) GetSecurityPolicy(ctx context.Context, request GetSecurityPolicyRequest) (response GetSecurityPolicyResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDatabaseSecurityConfig.go.html to see an example of how to use GetDatabaseSecurityConfig API. +// A default retry strategy applies to this operation GetDatabaseSecurityConfig() +func (client DataSafeClient) GetDatabaseSecurityConfig(ctx context.Context, request GetDatabaseSecurityConfigRequest) (response GetDatabaseSecurityConfigResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9095,42 +9402,42 @@ func (client DataSafeClient) GetSecurityPolicy(ctx context.Context, request GetS if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSecurityPolicy, policy) + ociResponse, err = common.Retry(ctx, request, client.getDatabaseSecurityConfig, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSecurityPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetDatabaseSecurityConfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSecurityPolicyResponse{} + response = GetDatabaseSecurityConfigResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSecurityPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(GetDatabaseSecurityConfigResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSecurityPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetDatabaseSecurityConfigResponse") } return } -// getSecurityPolicy implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSecurityPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getDatabaseSecurityConfig implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getDatabaseSecurityConfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicies/{securityPolicyId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/databaseSecurityConfigs/{databaseSecurityConfigId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSecurityPolicyResponse + var response GetDatabaseSecurityConfigResponse 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-safe/20181201/SecurityPolicy/GetSecurityPolicy" - err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DatabaseSecurityConfig/GetDatabaseSecurityConfig" + err = common.PostProcessServiceError(err, "DataSafe", "GetDatabaseSecurityConfig", apiReferenceLink) return response, err } @@ -9138,13 +9445,13 @@ func (client DataSafeClient) getSecurityPolicy(ctx context.Context, request comm return response, err } -// GetSecurityPolicyDeployment Gets a security policy deployment by identifier. +// GetDatabaseTableAccessEntry Gets a database table access entry object by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityPolicyDeployment.go.html to see an example of how to use GetSecurityPolicyDeployment API. -// A default retry strategy applies to this operation GetSecurityPolicyDeployment() -func (client DataSafeClient) GetSecurityPolicyDeployment(ctx context.Context, request GetSecurityPolicyDeploymentRequest) (response GetSecurityPolicyDeploymentResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDatabaseTableAccessEntry.go.html to see an example of how to use GetDatabaseTableAccessEntry API. +// A default retry strategy applies to this operation GetDatabaseTableAccessEntry() +func (client DataSafeClient) GetDatabaseTableAccessEntry(ctx context.Context, request GetDatabaseTableAccessEntryRequest) (response GetDatabaseTableAccessEntryResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9153,42 +9460,42 @@ func (client DataSafeClient) GetSecurityPolicyDeployment(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSecurityPolicyDeployment, policy) + ociResponse, err = common.Retry(ctx, request, client.getDatabaseTableAccessEntry, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSecurityPolicyDeploymentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetDatabaseTableAccessEntryResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSecurityPolicyDeploymentResponse{} + response = GetDatabaseTableAccessEntryResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSecurityPolicyDeploymentResponse); ok { + if convertedResponse, ok := ociResponse.(GetDatabaseTableAccessEntryResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSecurityPolicyDeploymentResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetDatabaseTableAccessEntryResponse") } return } -// getSecurityPolicyDeployment implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSecurityPolicyDeployment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getDatabaseTableAccessEntry implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getDatabaseTableAccessEntry(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyDeployments/{securityPolicyDeploymentId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports/{securityPolicyReportId}/databaseTableAccessEntries/{databaseTableAccessEntryKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSecurityPolicyDeploymentResponse + var response GetDatabaseTableAccessEntryResponse 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-safe/20181201/SecurityPolicyDeployment/GetSecurityPolicyDeployment" - err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityPolicyDeployment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DatabaseTableAccessEntry/GetDatabaseTableAccessEntry" + err = common.PostProcessServiceError(err, "DataSafe", "GetDatabaseTableAccessEntry", apiReferenceLink) return response, err } @@ -9196,13 +9503,13 @@ func (client DataSafeClient) getSecurityPolicyDeployment(ctx context.Context, re return response, err } -// GetSecurityPolicyEntryState Gets a security policy entity states by identifier. +// GetDatabaseViewAccessEntry Gets a database view access object by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityPolicyEntryState.go.html to see an example of how to use GetSecurityPolicyEntryState API. -// A default retry strategy applies to this operation GetSecurityPolicyEntryState() -func (client DataSafeClient) GetSecurityPolicyEntryState(ctx context.Context, request GetSecurityPolicyEntryStateRequest) (response GetSecurityPolicyEntryStateResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDatabaseViewAccessEntry.go.html to see an example of how to use GetDatabaseViewAccessEntry API. +// A default retry strategy applies to this operation GetDatabaseViewAccessEntry() +func (client DataSafeClient) GetDatabaseViewAccessEntry(ctx context.Context, request GetDatabaseViewAccessEntryRequest) (response GetDatabaseViewAccessEntryResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9211,42 +9518,42 @@ func (client DataSafeClient) GetSecurityPolicyEntryState(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSecurityPolicyEntryState, policy) + ociResponse, err = common.Retry(ctx, request, client.getDatabaseViewAccessEntry, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSecurityPolicyEntryStateResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetDatabaseViewAccessEntryResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSecurityPolicyEntryStateResponse{} + response = GetDatabaseViewAccessEntryResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSecurityPolicyEntryStateResponse); ok { + if convertedResponse, ok := ociResponse.(GetDatabaseViewAccessEntryResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSecurityPolicyEntryStateResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetDatabaseViewAccessEntryResponse") } return } -// getSecurityPolicyEntryState implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSecurityPolicyEntryState(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getDatabaseViewAccessEntry implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getDatabaseViewAccessEntry(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyDeployments/{securityPolicyDeploymentId}/securityPolicyEntryStates/{securityPolicyEntryStateId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports/{securityPolicyReportId}/databaseViewAccessEntries/{databaseViewAccessEntryKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSecurityPolicyEntryStateResponse + var response GetDatabaseViewAccessEntryResponse 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-safe/20181201/SecurityPolicyEntryState/GetSecurityPolicyEntryState" - err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityPolicyEntryState", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DatabaseViewAccessEntry/GetDatabaseViewAccessEntry" + err = common.PostProcessServiceError(err, "DataSafe", "GetDatabaseViewAccessEntry", apiReferenceLink) return response, err } @@ -9254,13 +9561,13 @@ func (client DataSafeClient) getSecurityPolicyEntryState(ctx context.Context, re return response, err } -// GetSecurityPolicyReport Gets a security policy report by the specified OCID of the security policy report resource. +// GetDifferenceColumn Gets the details of the specified SDM Masking policy difference column. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityPolicyReport.go.html to see an example of how to use GetSecurityPolicyReport API. -// A default retry strategy applies to this operation GetSecurityPolicyReport() -func (client DataSafeClient) GetSecurityPolicyReport(ctx context.Context, request GetSecurityPolicyReportRequest) (response GetSecurityPolicyReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDifferenceColumn.go.html to see an example of how to use GetDifferenceColumn API. +// A default retry strategy applies to this operation GetDifferenceColumn() +func (client DataSafeClient) GetDifferenceColumn(ctx context.Context, request GetDifferenceColumnRequest) (response GetDifferenceColumnResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9269,42 +9576,42 @@ func (client DataSafeClient) GetSecurityPolicyReport(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSecurityPolicyReport, policy) + ociResponse, err = common.Retry(ctx, request, client.getDifferenceColumn, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSecurityPolicyReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetDifferenceColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSecurityPolicyReportResponse{} + response = GetDifferenceColumnResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSecurityPolicyReportResponse); ok { + if convertedResponse, ok := ociResponse.(GetDifferenceColumnResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSecurityPolicyReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetDifferenceColumnResponse") } return } -// getSecurityPolicyReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSecurityPolicyReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getDifferenceColumn implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getDifferenceColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports/{securityPolicyReportId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}/differenceColumns/{differenceColumnKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSecurityPolicyReportResponse + var response GetDifferenceColumnResponse 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-safe/20181201/SecurityPolicyReport/GetSecurityPolicyReport" - err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityPolicyReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DifferenceColumn/GetDifferenceColumn" + err = common.PostProcessServiceError(err, "DataSafe", "GetDifferenceColumn", apiReferenceLink) return response, err } @@ -9312,13 +9619,13 @@ func (client DataSafeClient) getSecurityPolicyReport(ctx context.Context, reques return response, err } -// GetSensitiveColumn Gets the details of the specified sensitive column. +// GetDiscoveryJob Gets the details of the specified discovery job. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSensitiveColumn.go.html to see an example of how to use GetSensitiveColumn API. -// A default retry strategy applies to this operation GetSensitiveColumn() -func (client DataSafeClient) GetSensitiveColumn(ctx context.Context, request GetSensitiveColumnRequest) (response GetSensitiveColumnResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDiscoveryJob.go.html to see an example of how to use GetDiscoveryJob API. +// A default retry strategy applies to this operation GetDiscoveryJob() +func (client DataSafeClient) GetDiscoveryJob(ctx context.Context, request GetDiscoveryJobRequest) (response GetDiscoveryJobResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9327,42 +9634,42 @@ func (client DataSafeClient) GetSensitiveColumn(ctx context.Context, request Get if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSensitiveColumn, policy) + ociResponse, err = common.Retry(ctx, request, client.getDiscoveryJob, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSensitiveColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetDiscoveryJobResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSensitiveColumnResponse{} + response = GetDiscoveryJobResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSensitiveColumnResponse); ok { + if convertedResponse, ok := ociResponse.(GetDiscoveryJobResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSensitiveColumnResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetDiscoveryJobResponse") } return } -// getSensitiveColumn implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSensitiveColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getDiscoveryJob implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getDiscoveryJob(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns/{sensitiveColumnKey}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/discoveryJobs/{discoveryJobId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSensitiveColumnResponse + var response GetDiscoveryJobResponse 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-safe/20181201/SensitiveColumn/GetSensitiveColumn" - err = common.PostProcessServiceError(err, "DataSafe", "GetSensitiveColumn", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DiscoveryJob/GetDiscoveryJob" + err = common.PostProcessServiceError(err, "DataSafe", "GetDiscoveryJob", apiReferenceLink) return response, err } @@ -9370,13 +9677,13 @@ func (client DataSafeClient) getSensitiveColumn(ctx context.Context, request com return response, err } -// GetSensitiveDataModel Gets the details of the specified sensitive data model. +// GetDiscoveryJobResult Gets the details of the specified discovery result. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSensitiveDataModel.go.html to see an example of how to use GetSensitiveDataModel API. -// A default retry strategy applies to this operation GetSensitiveDataModel() -func (client DataSafeClient) GetSensitiveDataModel(ctx context.Context, request GetSensitiveDataModelRequest) (response GetSensitiveDataModelResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetDiscoveryJobResult.go.html to see an example of how to use GetDiscoveryJobResult API. +// A default retry strategy applies to this operation GetDiscoveryJobResult() +func (client DataSafeClient) GetDiscoveryJobResult(ctx context.Context, request GetDiscoveryJobResultRequest) (response GetDiscoveryJobResultResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9385,42 +9692,42 @@ func (client DataSafeClient) GetSensitiveDataModel(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSensitiveDataModel, policy) + ociResponse, err = common.Retry(ctx, request, client.getDiscoveryJobResult, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSensitiveDataModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetDiscoveryJobResultResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSensitiveDataModelResponse{} + response = GetDiscoveryJobResultResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSensitiveDataModelResponse); ok { + if convertedResponse, ok := ociResponse.(GetDiscoveryJobResultResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSensitiveDataModelResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetDiscoveryJobResultResponse") } return } -// getSensitiveDataModel implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSensitiveDataModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getDiscoveryJobResult implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getDiscoveryJobResult(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/discoveryJobs/{discoveryJobId}/results/{resultKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSensitiveDataModelResponse + var response GetDiscoveryJobResultResponse 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-safe/20181201/SensitiveDataModel/GetSensitiveDataModel" - err = common.PostProcessServiceError(err, "DataSafe", "GetSensitiveDataModel", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DiscoveryJobResult/GetDiscoveryJobResult" + err = common.PostProcessServiceError(err, "DataSafe", "GetDiscoveryJobResult", apiReferenceLink) return response, err } @@ -9428,13 +9735,13 @@ func (client DataSafeClient) getSensitiveDataModel(ctx context.Context, request return response, err } -// GetSensitiveType Gets the details of the specified sensitive type. +// GetGroupMembers Retrieves the members of the target database group with the specified OCID. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSensitiveType.go.html to see an example of how to use GetSensitiveType API. -// A default retry strategy applies to this operation GetSensitiveType() -func (client DataSafeClient) GetSensitiveType(ctx context.Context, request GetSensitiveTypeRequest) (response GetSensitiveTypeResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetGroupMembers.go.html to see an example of how to use GetGroupMembers API. +// A default retry strategy applies to this operation GetGroupMembers() +func (client DataSafeClient) GetGroupMembers(ctx context.Context, request GetGroupMembersRequest) (response GetGroupMembersResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9443,56 +9750,56 @@ func (client DataSafeClient) GetSensitiveType(ctx context.Context, request GetSe if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSensitiveType, policy) + ociResponse, err = common.Retry(ctx, request, client.getGroupMembers, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSensitiveTypeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetGroupMembersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSensitiveTypeResponse{} + response = GetGroupMembersResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSensitiveTypeResponse); ok { + if convertedResponse, ok := ociResponse.(GetGroupMembersResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSensitiveTypeResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetGroupMembersResponse") } return } -// getSensitiveType implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSensitiveType(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getGroupMembers implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getGroupMembers(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypes/{sensitiveTypeId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabaseGroups/{targetDatabaseGroupId}/groupMembers", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSensitiveTypeResponse + var response GetGroupMembersResponse 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-safe/20181201/SensitiveType/GetSensitiveType" - err = common.PostProcessServiceError(err, "DataSafe", "GetSensitiveType", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabaseGroup/GetGroupMembers" + err = common.PostProcessServiceError(err, "DataSafe", "GetGroupMembers", apiReferenceLink) return response, err } - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &sensitivetype{}) + err = common.UnmarshalResponse(httpResponse, &response) return response, err } -// GetSensitiveTypeGroup Gets the details of the specified sensitive type group. +// GetLibraryMaskingFormat Gets the details of the specified library masking format. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSensitiveTypeGroup.go.html to see an example of how to use GetSensitiveTypeGroup API. -// A default retry strategy applies to this operation GetSensitiveTypeGroup() -func (client DataSafeClient) GetSensitiveTypeGroup(ctx context.Context, request GetSensitiveTypeGroupRequest) (response GetSensitiveTypeGroupResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetLibraryMaskingFormat.go.html to see an example of how to use GetLibraryMaskingFormat API. +// A default retry strategy applies to this operation GetLibraryMaskingFormat() +func (client DataSafeClient) GetLibraryMaskingFormat(ctx context.Context, request GetLibraryMaskingFormatRequest) (response GetLibraryMaskingFormatResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9501,42 +9808,42 @@ func (client DataSafeClient) GetSensitiveTypeGroup(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSensitiveTypeGroup, policy) + ociResponse, err = common.Retry(ctx, request, client.getLibraryMaskingFormat, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSensitiveTypeGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetLibraryMaskingFormatResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSensitiveTypeGroupResponse{} + response = GetLibraryMaskingFormatResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSensitiveTypeGroupResponse); ok { + if convertedResponse, ok := ociResponse.(GetLibraryMaskingFormatResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSensitiveTypeGroupResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetLibraryMaskingFormatResponse") } return } -// getSensitiveTypeGroup implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSensitiveTypeGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getLibraryMaskingFormat implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getLibraryMaskingFormat(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypeGroups/{sensitiveTypeGroupId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/libraryMaskingFormats/{libraryMaskingFormatId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSensitiveTypeGroupResponse + var response GetLibraryMaskingFormatResponse 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-safe/20181201/SensitiveTypeGroup/GetSensitiveTypeGroup" - err = common.PostProcessServiceError(err, "DataSafe", "GetSensitiveTypeGroup", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/LibraryMaskingFormat/GetLibraryMaskingFormat" + err = common.PostProcessServiceError(err, "DataSafe", "GetLibraryMaskingFormat", apiReferenceLink) return response, err } @@ -9544,13 +9851,13 @@ func (client DataSafeClient) getSensitiveTypeGroup(ctx context.Context, request return response, err } -// GetSensitiveTypesExport Gets the details of the specified sensitive types export by identifier. +// GetMaskingColumn Gets the details of the specified masking column. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSensitiveTypesExport.go.html to see an example of how to use GetSensitiveTypesExport API. -// A default retry strategy applies to this operation GetSensitiveTypesExport() -func (client DataSafeClient) GetSensitiveTypesExport(ctx context.Context, request GetSensitiveTypesExportRequest) (response GetSensitiveTypesExportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetMaskingColumn.go.html to see an example of how to use GetMaskingColumn API. +// A default retry strategy applies to this operation GetMaskingColumn() +func (client DataSafeClient) GetMaskingColumn(ctx context.Context, request GetMaskingColumnRequest) (response GetMaskingColumnResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9559,42 +9866,42 @@ func (client DataSafeClient) GetSensitiveTypesExport(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSensitiveTypesExport, policy) + ociResponse, err = common.Retry(ctx, request, client.getMaskingColumn, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSensitiveTypesExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetMaskingColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSensitiveTypesExportResponse{} + response = GetMaskingColumnResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSensitiveTypesExportResponse); ok { + if convertedResponse, ok := ociResponse.(GetMaskingColumnResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSensitiveTypesExportResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetMaskingColumnResponse") } return } -// getSensitiveTypesExport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSensitiveTypesExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getMaskingColumn implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getMaskingColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypesExports/{sensitiveTypesExportId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies/{maskingPolicyId}/maskingColumns/{maskingColumnKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSensitiveTypesExportResponse + var response GetMaskingColumnResponse 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-safe/20181201/SensitiveTypesExport/GetSensitiveTypesExport" - err = common.PostProcessServiceError(err, "DataSafe", "GetSensitiveTypesExport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingColumn/GetMaskingColumn" + err = common.PostProcessServiceError(err, "DataSafe", "GetMaskingColumn", apiReferenceLink) return response, err } @@ -9602,13 +9909,13 @@ func (client DataSafeClient) getSensitiveTypesExport(ctx context.Context, reques return response, err } -// GetSqlCollection Gets a SQL collection by identifier. +// GetMaskingPolicy Gets the details of the specified masking policy. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSqlCollection.go.html to see an example of how to use GetSqlCollection API. -// A default retry strategy applies to this operation GetSqlCollection() -func (client DataSafeClient) GetSqlCollection(ctx context.Context, request GetSqlCollectionRequest) (response GetSqlCollectionResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetMaskingPolicy.go.html to see an example of how to use GetMaskingPolicy API. +// A default retry strategy applies to this operation GetMaskingPolicy() +func (client DataSafeClient) GetMaskingPolicy(ctx context.Context, request GetMaskingPolicyRequest) (response GetMaskingPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9617,42 +9924,42 @@ func (client DataSafeClient) GetSqlCollection(ctx context.Context, request GetSq if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSqlCollection, policy) + ociResponse, err = common.Retry(ctx, request, client.getMaskingPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSqlCollectionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetMaskingPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSqlCollectionResponse{} + response = GetMaskingPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSqlCollectionResponse); ok { + if convertedResponse, ok := ociResponse.(GetMaskingPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSqlCollectionResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetMaskingPolicyResponse") } return } -// getSqlCollection implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSqlCollection(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getMaskingPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getMaskingPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlCollections/{sqlCollectionId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies/{maskingPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSqlCollectionResponse + var response GetMaskingPolicyResponse 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-safe/20181201/SqlCollection/GetSqlCollection" - err = common.PostProcessServiceError(err, "DataSafe", "GetSqlCollection", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicy/GetMaskingPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "GetMaskingPolicy", apiReferenceLink) return response, err } @@ -9660,13 +9967,13 @@ func (client DataSafeClient) getSqlCollection(ctx context.Context, request commo return response, err } -// GetSqlFirewallAllowedSql Gets a SQL firewall allowed SQL by identifier. +// GetMaskingPolicyHealthReport Gets the details of the specified masking policy health report. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSqlFirewallAllowedSql.go.html to see an example of how to use GetSqlFirewallAllowedSql API. -// A default retry strategy applies to this operation GetSqlFirewallAllowedSql() -func (client DataSafeClient) GetSqlFirewallAllowedSql(ctx context.Context, request GetSqlFirewallAllowedSqlRequest) (response GetSqlFirewallAllowedSqlResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetMaskingPolicyHealthReport.go.html to see an example of how to use GetMaskingPolicyHealthReport API. +// A default retry strategy applies to this operation GetMaskingPolicyHealthReport() +func (client DataSafeClient) GetMaskingPolicyHealthReport(ctx context.Context, request GetMaskingPolicyHealthReportRequest) (response GetMaskingPolicyHealthReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9675,42 +9982,42 @@ func (client DataSafeClient) GetSqlFirewallAllowedSql(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSqlFirewallAllowedSql, policy) + ociResponse, err = common.Retry(ctx, request, client.getMaskingPolicyHealthReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSqlFirewallAllowedSqlResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetMaskingPolicyHealthReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSqlFirewallAllowedSqlResponse{} + response = GetMaskingPolicyHealthReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSqlFirewallAllowedSqlResponse); ok { + if convertedResponse, ok := ociResponse.(GetMaskingPolicyHealthReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSqlFirewallAllowedSqlResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetMaskingPolicyHealthReportResponse") } return } -// getSqlFirewallAllowedSql implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSqlFirewallAllowedSql(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getMaskingPolicyHealthReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getMaskingPolicyHealthReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallAllowedSqls/{sqlFirewallAllowedSqlId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicyHealthReports/{maskingPolicyHealthReportId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSqlFirewallAllowedSqlResponse + var response GetMaskingPolicyHealthReportResponse 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-safe/20181201/SqlFirewallAllowedSql/GetSqlFirewallAllowedSql" - err = common.PostProcessServiceError(err, "DataSafe", "GetSqlFirewallAllowedSql", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/GetMaskingPolicyHealthReport" + err = common.PostProcessServiceError(err, "DataSafe", "GetMaskingPolicyHealthReport", apiReferenceLink) return response, err } @@ -9718,13 +10025,13 @@ func (client DataSafeClient) getSqlFirewallAllowedSql(ctx context.Context, reque return response, err } -// GetSqlFirewallPolicy Gets a SQL Firewall policy by identifier. +// GetMaskingReport Gets the details of the specified masking report. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSqlFirewallPolicy.go.html to see an example of how to use GetSqlFirewallPolicy API. -// A default retry strategy applies to this operation GetSqlFirewallPolicy() -func (client DataSafeClient) GetSqlFirewallPolicy(ctx context.Context, request GetSqlFirewallPolicyRequest) (response GetSqlFirewallPolicyResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetMaskingReport.go.html to see an example of how to use GetMaskingReport API. +// A default retry strategy applies to this operation GetMaskingReport() +func (client DataSafeClient) GetMaskingReport(ctx context.Context, request GetMaskingReportRequest) (response GetMaskingReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9733,42 +10040,42 @@ func (client DataSafeClient) GetSqlFirewallPolicy(ctx context.Context, request G if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getSqlFirewallPolicy, policy) + ociResponse, err = common.Retry(ctx, request, client.getMaskingReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSqlFirewallPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetMaskingReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetSqlFirewallPolicyResponse{} + response = GetMaskingReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetSqlFirewallPolicyResponse); ok { + if convertedResponse, ok := ociResponse.(GetMaskingReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSqlFirewallPolicyResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetMaskingReportResponse") } return } -// getSqlFirewallPolicy implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getSqlFirewallPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getMaskingReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getMaskingReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallPolicies/{sqlFirewallPolicyId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingReports/{maskingReportId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetSqlFirewallPolicyResponse + var response GetMaskingReportResponse 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-safe/20181201/SqlFirewallPolicy/GetSqlFirewallPolicy" - err = common.PostProcessServiceError(err, "DataSafe", "GetSqlFirewallPolicy", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingReport/GetMaskingReport" + err = common.PostProcessServiceError(err, "DataSafe", "GetMaskingReport", apiReferenceLink) return response, err } @@ -9776,13 +10083,13 @@ func (client DataSafeClient) getSqlFirewallPolicy(ctx context.Context, request c return response, err } -// GetTargetAlertPolicyAssociation Gets the details of target-alert policy association by its ID. +// GetOnPremConnector Gets the details of the specified on-premises connector. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetTargetAlertPolicyAssociation.go.html to see an example of how to use GetTargetAlertPolicyAssociation API. -// A default retry strategy applies to this operation GetTargetAlertPolicyAssociation() -func (client DataSafeClient) GetTargetAlertPolicyAssociation(ctx context.Context, request GetTargetAlertPolicyAssociationRequest) (response GetTargetAlertPolicyAssociationResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetOnPremConnector.go.html to see an example of how to use GetOnPremConnector API. +// A default retry strategy applies to this operation GetOnPremConnector() +func (client DataSafeClient) GetOnPremConnector(ctx context.Context, request GetOnPremConnectorRequest) (response GetOnPremConnectorResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9791,42 +10098,42 @@ func (client DataSafeClient) GetTargetAlertPolicyAssociation(ctx context.Context if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getTargetAlertPolicyAssociation, policy) + ociResponse, err = common.Retry(ctx, request, client.getOnPremConnector, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetTargetAlertPolicyAssociationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetOnPremConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetTargetAlertPolicyAssociationResponse{} + response = GetOnPremConnectorResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetTargetAlertPolicyAssociationResponse); ok { + if convertedResponse, ok := ociResponse.(GetOnPremConnectorResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetTargetAlertPolicyAssociationResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetOnPremConnectorResponse") } return } -// getTargetAlertPolicyAssociation implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getTargetAlertPolicyAssociation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getOnPremConnector implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getOnPremConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetAlertPolicyAssociations/{targetAlertPolicyAssociationId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/onPremConnectors/{onPremConnectorId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetTargetAlertPolicyAssociationResponse + var response GetOnPremConnectorResponse 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-safe/20181201/TargetAlertPolicyAssociation/GetTargetAlertPolicyAssociation" - err = common.PostProcessServiceError(err, "DataSafe", "GetTargetAlertPolicyAssociation", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/OnPremConnector/GetOnPremConnector" + err = common.PostProcessServiceError(err, "DataSafe", "GetOnPremConnector", apiReferenceLink) return response, err } @@ -9834,13 +10141,13 @@ func (client DataSafeClient) getTargetAlertPolicyAssociation(ctx context.Context return response, err } -// GetTargetDatabase Returns the details of the specified Data Safe target database. +// GetPeerTargetDatabase Returns the details of the specified Data Safe peer target database. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetTargetDatabase.go.html to see an example of how to use GetTargetDatabase API. -// A default retry strategy applies to this operation GetTargetDatabase() -func (client DataSafeClient) GetTargetDatabase(ctx context.Context, request GetTargetDatabaseRequest) (response GetTargetDatabaseResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetPeerTargetDatabase.go.html to see an example of how to use GetPeerTargetDatabase API. +// A default retry strategy applies to this operation GetPeerTargetDatabase() +func (client DataSafeClient) GetPeerTargetDatabase(ctx context.Context, request GetPeerTargetDatabaseRequest) (response GetPeerTargetDatabaseResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9849,42 +10156,42 @@ func (client DataSafeClient) GetTargetDatabase(ctx context.Context, request GetT if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getTargetDatabase, policy) + ociResponse, err = common.Retry(ctx, request, client.getPeerTargetDatabase, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetPeerTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetTargetDatabaseResponse{} + response = GetPeerTargetDatabaseResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetTargetDatabaseResponse); ok { + if convertedResponse, ok := ociResponse.(GetPeerTargetDatabaseResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetTargetDatabaseResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetPeerTargetDatabaseResponse") } return } -// getTargetDatabase implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getPeerTargetDatabase implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getPeerTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}/peerTargetDatabases/{peerTargetDatabaseId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetTargetDatabaseResponse + var response GetPeerTargetDatabaseResponse 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-safe/20181201/TargetDatabase/GetTargetDatabase" - err = common.PostProcessServiceError(err, "DataSafe", "GetTargetDatabase", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/PeerTargetDatabase/GetPeerTargetDatabase" + err = common.PostProcessServiceError(err, "DataSafe", "GetPeerTargetDatabase", apiReferenceLink) return response, err } @@ -9892,13 +10199,15 @@ func (client DataSafeClient) getTargetDatabase(ctx context.Context, request comm return response, err } -// GetUserAssessment Gets a user assessment by identifier. +// GetProfile Lists the details of given profile available on the target. +// The GetProfile operation returns only the profiles in the specified 'userAssessmentId'. +// This does not include any subcompartments of the current compartment. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetUserAssessment.go.html to see an example of how to use GetUserAssessment API. -// A default retry strategy applies to this operation GetUserAssessment() -func (client DataSafeClient) GetUserAssessment(ctx context.Context, request GetUserAssessmentRequest) (response GetUserAssessmentResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetProfile.go.html to see an example of how to use GetProfile API. +// A default retry strategy applies to this operation GetProfile() +func (client DataSafeClient) GetProfile(ctx context.Context, request GetProfileRequest) (response GetProfileResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9907,42 +10216,42 @@ func (client DataSafeClient) GetUserAssessment(ctx context.Context, request GetU if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getUserAssessment, policy) + ociResponse, err = common.Retry(ctx, request, client.getProfile, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetUserAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetProfileResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetUserAssessmentResponse{} + response = GetProfileResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetUserAssessmentResponse); ok { + if convertedResponse, ok := ociResponse.(GetProfileResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetUserAssessmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetProfileResponse") } return } -// getUserAssessment implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getUserAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getProfile implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getProfile(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}/profiles/{profileName}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetUserAssessmentResponse + var response GetProfileResponse 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-safe/20181201/UserAssessment/GetUserAssessment" - err = common.PostProcessServiceError(err, "DataSafe", "GetUserAssessment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UserAssessment/GetProfile" + err = common.PostProcessServiceError(err, "DataSafe", "GetProfile", apiReferenceLink) return response, err } @@ -9950,13 +10259,13 @@ func (client DataSafeClient) getUserAssessment(ctx context.Context, request comm return response, err } -// GetUserAssessmentComparison Gets the details of the comparison report for the user assessments submitted for comparison. +// GetReferentialRelation Gets the details of the specified referential relation. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetUserAssessmentComparison.go.html to see an example of how to use GetUserAssessmentComparison API. -// A default retry strategy applies to this operation GetUserAssessmentComparison() -func (client DataSafeClient) GetUserAssessmentComparison(ctx context.Context, request GetUserAssessmentComparisonRequest) (response GetUserAssessmentComparisonResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetReferentialRelation.go.html to see an example of how to use GetReferentialRelation API. +// A default retry strategy applies to this operation GetReferentialRelation() +func (client DataSafeClient) GetReferentialRelation(ctx context.Context, request GetReferentialRelationRequest) (response GetReferentialRelationResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -9965,42 +10274,42 @@ func (client DataSafeClient) GetUserAssessmentComparison(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getUserAssessmentComparison, policy) + ociResponse, err = common.Retry(ctx, request, client.getReferentialRelation, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetUserAssessmentComparisonResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetReferentialRelationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetUserAssessmentComparisonResponse{} + response = GetReferentialRelationResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetUserAssessmentComparisonResponse); ok { + if convertedResponse, ok := ociResponse.(GetReferentialRelationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetUserAssessmentComparisonResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetReferentialRelationResponse") } return } -// getUserAssessmentComparison implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getUserAssessmentComparison(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getReferentialRelation implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getReferentialRelation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}/comparison/{comparisonUserAssessmentId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/referentialRelations/{referentialRelationKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetUserAssessmentComparisonResponse + var response GetReferentialRelationResponse 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-safe/20181201/UserAssessment/GetUserAssessmentComparison" - err = common.PostProcessServiceError(err, "DataSafe", "GetUserAssessmentComparison", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReferentialRelation/GetReferentialRelation" + err = common.PostProcessServiceError(err, "DataSafe", "GetReferentialRelation", apiReferenceLink) return response, err } @@ -10008,13 +10317,13 @@ func (client DataSafeClient) getUserAssessmentComparison(ctx context.Context, re return response, err } -// GetWorkRequest Gets the details of the specified work request. +// GetReport Gets a report by identifier // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. -// A default retry strategy applies to this operation GetWorkRequest() -func (client DataSafeClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetReport.go.html to see an example of how to use GetReport API. +// A default retry strategy applies to this operation GetReport() +func (client DataSafeClient) GetReport(ctx context.Context, request GetReportRequest) (response GetReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10023,42 +10332,42 @@ func (client DataSafeClient) GetWorkRequest(ctx context.Context, request GetWork if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.getWorkRequest, policy) + ociResponse, err = common.Retry(ctx, request, client.getReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = GetWorkRequestResponse{} + response = GetReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(GetWorkRequestResponse); ok { + if convertedResponse, ok := ociResponse.(GetReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into GetWorkRequestResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetReportResponse") } return } -// getWorkRequest implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) getWorkRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/reports/{reportId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response GetWorkRequestResponse + var response GetReportResponse 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-safe/20181201/WorkRequest/GetWorkRequest" - err = common.PostProcessServiceError(err, "DataSafe", "GetWorkRequest", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/Report/GetReport" + err = common.PostProcessServiceError(err, "DataSafe", "GetReport", apiReferenceLink) return response, err } @@ -10066,13 +10375,13 @@ func (client DataSafeClient) getWorkRequest(ctx context.Context, request common. return response, err } -// ListAlertAnalytics Returns the aggregation details of the alerts. +// GetReportContent Downloads the specified report in the form of .xls or .pdf. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAlertAnalytics.go.html to see an example of how to use ListAlertAnalytics API. -// A default retry strategy applies to this operation ListAlertAnalytics() -func (client DataSafeClient) ListAlertAnalytics(ctx context.Context, request ListAlertAnalyticsRequest) (response ListAlertAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetReportContent.go.html to see an example of how to use GetReportContent API. +// A default retry strategy applies to this operation GetReportContent() +func (client DataSafeClient) GetReportContent(ctx context.Context, request GetReportContentRequest) (response GetReportContentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10081,47 +10390,41 @@ func (client DataSafeClient) ListAlertAnalytics(ctx context.Context, request Lis 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.listAlertAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.getReportContent, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAlertAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetReportContentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAlertAnalyticsResponse{} + response = GetReportContentResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAlertAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(GetReportContentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAlertAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetReportContentResponse") } return } -// listAlertAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAlertAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getReportContent implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getReportContent(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/alertAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/reports/{reportId}/content", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAlertAnalyticsResponse + var response GetReportContentResponse 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-safe/20181201/AlertSummary/ListAlertAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListAlertAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/Report/GetReportContent" + err = common.PostProcessServiceError(err, "DataSafe", "GetReportContent", apiReferenceLink) return response, err } @@ -10129,13 +10432,13 @@ func (client DataSafeClient) listAlertAnalytics(ctx context.Context, request com return response, err } -// ListAlertPolicies Gets a list of all alert policies. +// GetReportDefinition Gets the details of report definition specified by the identifier // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAlertPolicies.go.html to see an example of how to use ListAlertPolicies API. -// A default retry strategy applies to this operation ListAlertPolicies() -func (client DataSafeClient) ListAlertPolicies(ctx context.Context, request ListAlertPoliciesRequest) (response ListAlertPoliciesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetReportDefinition.go.html to see an example of how to use GetReportDefinition API. +// A default retry strategy applies to this operation GetReportDefinition() +func (client DataSafeClient) GetReportDefinition(ctx context.Context, request GetReportDefinitionRequest) (response GetReportDefinitionResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10144,42 +10447,42 @@ func (client DataSafeClient) ListAlertPolicies(ctx context.Context, request List if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAlertPolicies, policy) + ociResponse, err = common.Retry(ctx, request, client.getReportDefinition, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAlertPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetReportDefinitionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAlertPoliciesResponse{} + response = GetReportDefinitionResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAlertPoliciesResponse); ok { + if convertedResponse, ok := ociResponse.(GetReportDefinitionResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAlertPoliciesResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetReportDefinitionResponse") } return } -// listAlertPolicies implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAlertPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/alertPolicies", binaryReqBody, extraHeaders) +// getReportDefinition implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getReportDefinition(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/reportDefinitions/{reportDefinitionId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAlertPoliciesResponse + var response GetReportDefinitionResponse 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-safe/20181201/AlertPolicy/ListAlertPolicies" - err = common.PostProcessServiceError(err, "DataSafe", "ListAlertPolicies", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReportDefinition/GetReportDefinition" + err = common.PostProcessServiceError(err, "DataSafe", "GetReportDefinition", apiReferenceLink) return response, err } @@ -10187,14 +10490,13 @@ func (client DataSafeClient) listAlertPolicies(ctx context.Context, request comm return response, err } -// ListAlertPolicyRules Lists the rules of the specified alert policy. The alert policy is said to be satisfied when all rules in the policy evaulate to true. -// If there are three rules: rule1,rule2 and rule3, the policy is satisfied if rule1 AND rule2 AND rule3 is True. +// GetSdmMaskingPolicyDifference Gets the details of the specified SDM Masking policy difference. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAlertPolicyRules.go.html to see an example of how to use ListAlertPolicyRules API. -// A default retry strategy applies to this operation ListAlertPolicyRules() -func (client DataSafeClient) ListAlertPolicyRules(ctx context.Context, request ListAlertPolicyRulesRequest) (response ListAlertPolicyRulesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSdmMaskingPolicyDifference.go.html to see an example of how to use GetSdmMaskingPolicyDifference API. +// A default retry strategy applies to this operation GetSdmMaskingPolicyDifference() +func (client DataSafeClient) GetSdmMaskingPolicyDifference(ctx context.Context, request GetSdmMaskingPolicyDifferenceRequest) (response GetSdmMaskingPolicyDifferenceResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10203,42 +10505,42 @@ func (client DataSafeClient) ListAlertPolicyRules(ctx context.Context, request L if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAlertPolicyRules, policy) + ociResponse, err = common.Retry(ctx, request, client.getSdmMaskingPolicyDifference, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAlertPolicyRulesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSdmMaskingPolicyDifferenceResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAlertPolicyRulesResponse{} + response = GetSdmMaskingPolicyDifferenceResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAlertPolicyRulesResponse); ok { + if convertedResponse, ok := ociResponse.(GetSdmMaskingPolicyDifferenceResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAlertPolicyRulesResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSdmMaskingPolicyDifferenceResponse") } return } -// listAlertPolicyRules implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAlertPolicyRules(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSdmMaskingPolicyDifference implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSdmMaskingPolicyDifference(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/alertPolicies/{alertPolicyId}/rules", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAlertPolicyRulesResponse + var response GetSdmMaskingPolicyDifferenceResponse 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-safe/20181201/AlertPolicy/ListAlertPolicyRules" - err = common.PostProcessServiceError(err, "DataSafe", "ListAlertPolicyRules", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SdmMaskingPolicyDifference/GetSdmMaskingPolicyDifference" + err = common.PostProcessServiceError(err, "DataSafe", "GetSdmMaskingPolicyDifference", apiReferenceLink) return response, err } @@ -10246,13 +10548,13 @@ func (client DataSafeClient) listAlertPolicyRules(ctx context.Context, request c return response, err } -// ListAlerts Gets a list of all alerts. +// GetSecurityAssessment Gets the details of the specified security assessment. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAlerts.go.html to see an example of how to use ListAlerts API. -// A default retry strategy applies to this operation ListAlerts() -func (client DataSafeClient) ListAlerts(ctx context.Context, request ListAlertsRequest) (response ListAlertsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityAssessment.go.html to see an example of how to use GetSecurityAssessment API. +// A default retry strategy applies to this operation GetSecurityAssessment() +func (client DataSafeClient) GetSecurityAssessment(ctx context.Context, request GetSecurityAssessmentRequest) (response GetSecurityAssessmentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10261,42 +10563,42 @@ func (client DataSafeClient) ListAlerts(ctx context.Context, request ListAlertsR if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAlerts, policy) + ociResponse, err = common.Retry(ctx, request, client.getSecurityAssessment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAlertsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSecurityAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAlertsResponse{} + response = GetSecurityAssessmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAlertsResponse); ok { + if convertedResponse, ok := ociResponse.(GetSecurityAssessmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAlertsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSecurityAssessmentResponse") } return } -// listAlerts implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAlerts(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSecurityAssessment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSecurityAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/alerts", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/{securityAssessmentId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAlertsResponse + var response GetSecurityAssessmentResponse 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-safe/20181201/AlertSummary/ListAlerts" - err = common.PostProcessServiceError(err, "DataSafe", "ListAlerts", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/GetSecurityAssessment" + err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityAssessment", apiReferenceLink) return response, err } @@ -10304,13 +10606,13 @@ func (client DataSafeClient) listAlerts(ctx context.Context, request common.OCIR return response, err } -// ListAuditArchiveRetrievals Returns the list of audit archive retrieval. +// GetSecurityAssessmentComparison Gets the details of the comparison report for the security assessments submitted for comparison. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditArchiveRetrievals.go.html to see an example of how to use ListAuditArchiveRetrievals API. -// A default retry strategy applies to this operation ListAuditArchiveRetrievals() -func (client DataSafeClient) ListAuditArchiveRetrievals(ctx context.Context, request ListAuditArchiveRetrievalsRequest) (response ListAuditArchiveRetrievalsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityAssessmentComparison.go.html to see an example of how to use GetSecurityAssessmentComparison API. +// A default retry strategy applies to this operation GetSecurityAssessmentComparison() +func (client DataSafeClient) GetSecurityAssessmentComparison(ctx context.Context, request GetSecurityAssessmentComparisonRequest) (response GetSecurityAssessmentComparisonResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10319,42 +10621,42 @@ func (client DataSafeClient) ListAuditArchiveRetrievals(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAuditArchiveRetrievals, policy) + ociResponse, err = common.Retry(ctx, request, client.getSecurityAssessmentComparison, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAuditArchiveRetrievalsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSecurityAssessmentComparisonResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAuditArchiveRetrievalsResponse{} + response = GetSecurityAssessmentComparisonResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAuditArchiveRetrievalsResponse); ok { + if convertedResponse, ok := ociResponse.(GetSecurityAssessmentComparisonResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAuditArchiveRetrievalsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSecurityAssessmentComparisonResponse") } return } -// listAuditArchiveRetrievals implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAuditArchiveRetrievals(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSecurityAssessmentComparison implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSecurityAssessmentComparison(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditArchiveRetrievals", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/{securityAssessmentId}/comparison/{comparisonSecurityAssessmentId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAuditArchiveRetrievalsResponse + var response GetSecurityAssessmentComparisonResponse 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-safe/20181201/AuditArchiveRetrieval/ListAuditArchiveRetrievals" - err = common.PostProcessServiceError(err, "DataSafe", "ListAuditArchiveRetrievals", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/GetSecurityAssessmentComparison" + err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityAssessmentComparison", apiReferenceLink) return response, err } @@ -10362,22 +10664,13 @@ func (client DataSafeClient) listAuditArchiveRetrievals(ctx context.Context, req return response, err } -// ListAuditEventAnalytics By default the ListAuditEventAnalytics operation will return all of the summary columns. To filter for a specific summary column, specify -// it in the `summaryField` query parameter. -// **Example:** -// /auditEventAnalytics?summaryField=targetName&summaryField=userName&summaryField=clientHostname -// &summaryField=dmls&summaryField=privilegeChanges&summaryField=ddls&summaryField=loginFailure&summaryField=loginSuccess -// &summaryField=allRecord&scimQuery=(auditEventTime ge "2021-06-13T23:49:14") -// /auditEventAnalytics?timeStarted=2022-08-18T11:02:26.000Z&timeEnded=2022-08-24T11:02:26.000Z -// This will give number of events grouped by periods. Period can be 1 day, 1 week, etc. -// /auditEventAnalytics?summaryField=targetName&groupBy=targetName -// This will give the number of events group by targetName. Only targetName summary column would be returned. +// GetSecurityPolicy Gets a security policy by the specified OCID of the security policy resource. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditEventAnalytics.go.html to see an example of how to use ListAuditEventAnalytics API. -// A default retry strategy applies to this operation ListAuditEventAnalytics() -func (client DataSafeClient) ListAuditEventAnalytics(ctx context.Context, request ListAuditEventAnalyticsRequest) (response ListAuditEventAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityPolicy.go.html to see an example of how to use GetSecurityPolicy API. +// A default retry strategy applies to this operation GetSecurityPolicy() +func (client DataSafeClient) GetSecurityPolicy(ctx context.Context, request GetSecurityPolicyRequest) (response GetSecurityPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10386,47 +10679,42 @@ func (client DataSafeClient) ListAuditEventAnalytics(ctx context.Context, reques 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.listAuditEventAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.getSecurityPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAuditEventAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSecurityPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAuditEventAnalyticsResponse{} + response = GetSecurityPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAuditEventAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(GetSecurityPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAuditEventAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSecurityPolicyResponse") } return } -// listAuditEventAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAuditEventAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSecurityPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSecurityPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditEventAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicies/{securityPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAuditEventAnalyticsResponse + var response GetSecurityPolicyResponse 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-safe/20181201/AuditEventSummary/ListAuditEventAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListAuditEventAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicy/GetSecurityPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityPolicy", apiReferenceLink) return response, err } @@ -10434,23 +10722,13 @@ func (client DataSafeClient) listAuditEventAnalytics(ctx context.Context, reques return response, err } -// ListAuditEvents The ListAuditEvents operation returns specified `compartmentId` audit Events only. -// The list does not include any audit Events associated with the `subcompartments` of the specified `compartmentId`. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListAuditEvents on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// GetSecurityPolicyConfig Gets a security policy configuration by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditEvents.go.html to see an example of how to use ListAuditEvents API. -// A default retry strategy applies to this operation ListAuditEvents() -func (client DataSafeClient) ListAuditEvents(ctx context.Context, request ListAuditEventsRequest) (response ListAuditEventsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityPolicyConfig.go.html to see an example of how to use GetSecurityPolicyConfig API. +// A default retry strategy applies to this operation GetSecurityPolicyConfig() +func (client DataSafeClient) GetSecurityPolicyConfig(ctx context.Context, request GetSecurityPolicyConfigRequest) (response GetSecurityPolicyConfigResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10459,42 +10737,42 @@ func (client DataSafeClient) ListAuditEvents(ctx context.Context, request ListAu if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAuditEvents, policy) + ociResponse, err = common.Retry(ctx, request, client.getSecurityPolicyConfig, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAuditEventsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSecurityPolicyConfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAuditEventsResponse{} + response = GetSecurityPolicyConfigResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAuditEventsResponse); ok { + if convertedResponse, ok := ociResponse.(GetSecurityPolicyConfigResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAuditEventsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSecurityPolicyConfigResponse") } return } -// listAuditEvents implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAuditEvents(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSecurityPolicyConfig implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSecurityPolicyConfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditEvents", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyConfigs/{securityPolicyConfigId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAuditEventsResponse + var response GetSecurityPolicyConfigResponse 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-safe/20181201/AuditEventSummary/ListAuditEvents" - err = common.PostProcessServiceError(err, "DataSafe", "ListAuditEvents", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyConfig/GetSecurityPolicyConfig" + err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityPolicyConfig", apiReferenceLink) return response, err } @@ -10502,24 +10780,13 @@ func (client DataSafeClient) listAuditEvents(ctx context.Context, request common return response, err } -// ListAuditPolicies Retrieves a list of all audited targets with their corresponding provisioned audit policies, and their provisioning conditions. -// The ListAuditPolicies operation returns only the audit policies in the specified `compartmentId`. -// The list does not include any subcompartments of the compartmentId passed. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListAuditPolicies on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// GetSecurityPolicyDeployment Gets a security policy deployment by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditPolicies.go.html to see an example of how to use ListAuditPolicies API. -// A default retry strategy applies to this operation ListAuditPolicies() -func (client DataSafeClient) ListAuditPolicies(ctx context.Context, request ListAuditPoliciesRequest) (response ListAuditPoliciesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityPolicyDeployment.go.html to see an example of how to use GetSecurityPolicyDeployment API. +// A default retry strategy applies to this operation GetSecurityPolicyDeployment() +func (client DataSafeClient) GetSecurityPolicyDeployment(ctx context.Context, request GetSecurityPolicyDeploymentRequest) (response GetSecurityPolicyDeploymentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10528,42 +10795,42 @@ func (client DataSafeClient) ListAuditPolicies(ctx context.Context, request List if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAuditPolicies, policy) + ociResponse, err = common.Retry(ctx, request, client.getSecurityPolicyDeployment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAuditPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSecurityPolicyDeploymentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAuditPoliciesResponse{} + response = GetSecurityPolicyDeploymentResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAuditPoliciesResponse); ok { + if convertedResponse, ok := ociResponse.(GetSecurityPolicyDeploymentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAuditPoliciesResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSecurityPolicyDeploymentResponse") } return } -// listAuditPolicies implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAuditPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSecurityPolicyDeployment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSecurityPolicyDeployment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditPolicies", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyDeployments/{securityPolicyDeploymentId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAuditPoliciesResponse + var response GetSecurityPolicyDeploymentResponse 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-safe/20181201/AuditPolicyCollection/ListAuditPolicies" - err = common.PostProcessServiceError(err, "DataSafe", "ListAuditPolicies", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyDeployment/GetSecurityPolicyDeployment" + err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityPolicyDeployment", apiReferenceLink) return response, err } @@ -10571,25 +10838,13 @@ func (client DataSafeClient) listAuditPolicies(ctx context.Context, request comm return response, err } -// ListAuditPolicyAnalytics Gets a list of aggregated audit policy details on the target databases. A audit policy aggregation -// helps understand the overall state of policies provisioned on targets. -// It is especially useful to create dashboards or to support analytics. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform SummarizedAuditPolicyInfo on the specified -// `compartmentId` and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. -// **Example:** ListAuditPolicyAnalytics?groupBy=auditPolicyCategory +// GetSecurityPolicyEntryState Gets a security policy entity states by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditPolicyAnalytics.go.html to see an example of how to use ListAuditPolicyAnalytics API. -// A default retry strategy applies to this operation ListAuditPolicyAnalytics() -func (client DataSafeClient) ListAuditPolicyAnalytics(ctx context.Context, request ListAuditPolicyAnalyticsRequest) (response ListAuditPolicyAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityPolicyEntryState.go.html to see an example of how to use GetSecurityPolicyEntryState API. +// A default retry strategy applies to this operation GetSecurityPolicyEntryState() +func (client DataSafeClient) GetSecurityPolicyEntryState(ctx context.Context, request GetSecurityPolicyEntryStateRequest) (response GetSecurityPolicyEntryStateResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10598,42 +10853,42 @@ func (client DataSafeClient) ListAuditPolicyAnalytics(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAuditPolicyAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.getSecurityPolicyEntryState, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAuditPolicyAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSecurityPolicyEntryStateResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAuditPolicyAnalyticsResponse{} + response = GetSecurityPolicyEntryStateResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAuditPolicyAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(GetSecurityPolicyEntryStateResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAuditPolicyAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSecurityPolicyEntryStateResponse") } return } -// listAuditPolicyAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAuditPolicyAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSecurityPolicyEntryState implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSecurityPolicyEntryState(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditPolicyAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyDeployments/{securityPolicyDeploymentId}/securityPolicyEntryStates/{securityPolicyEntryStateId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAuditPolicyAnalyticsResponse + var response GetSecurityPolicyEntryStateResponse 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-safe/20181201/AuditPolicyAnalyticCollection/ListAuditPolicyAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListAuditPolicyAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyEntryState/GetSecurityPolicyEntryState" + err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityPolicyEntryState", apiReferenceLink) return response, err } @@ -10641,23 +10896,13 @@ func (client DataSafeClient) listAuditPolicyAnalytics(ctx context.Context, reque return response, err } -// ListAuditProfileAnalytics Gets a list of audit profile aggregated details . A audit profile aggregation helps understand the overall state of audit profile profiles. -// As an example, it helps understand how many audit profiles have paid usage. It is especially useful to create dashboards or to support analytics. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform AuditProfileAnalytics on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// GetSecurityPolicyReport Gets a security policy report by the specified OCID of the security policy report resource. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditProfileAnalytics.go.html to see an example of how to use ListAuditProfileAnalytics API. -// A default retry strategy applies to this operation ListAuditProfileAnalytics() -func (client DataSafeClient) ListAuditProfileAnalytics(ctx context.Context, request ListAuditProfileAnalyticsRequest) (response ListAuditProfileAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityPolicyReport.go.html to see an example of how to use GetSecurityPolicyReport API. +// A default retry strategy applies to this operation GetSecurityPolicyReport() +func (client DataSafeClient) GetSecurityPolicyReport(ctx context.Context, request GetSecurityPolicyReportRequest) (response GetSecurityPolicyReportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10666,42 +10911,42 @@ func (client DataSafeClient) ListAuditProfileAnalytics(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAuditProfileAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.getSecurityPolicyReport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAuditProfileAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSecurityPolicyReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAuditProfileAnalyticsResponse{} + response = GetSecurityPolicyReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAuditProfileAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(GetSecurityPolicyReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAuditProfileAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSecurityPolicyReportResponse") } return } -// listAuditProfileAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAuditProfileAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSecurityPolicyReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSecurityPolicyReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditProfileAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports/{securityPolicyReportId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAuditProfileAnalyticsResponse + var response GetSecurityPolicyReportResponse 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-safe/20181201/AuditProfileAnalyticCollection/ListAuditProfileAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListAuditProfileAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyReport/GetSecurityPolicyReport" + err = common.PostProcessServiceError(err, "DataSafe", "GetSecurityPolicyReport", apiReferenceLink) return response, err } @@ -10709,24 +10954,13 @@ func (client DataSafeClient) listAuditProfileAnalytics(ctx context.Context, requ return response, err } -// ListAuditProfiles Gets a list of all audit profiles. -// The ListAuditProfiles operation returns only the audit profiles in the specified `compartmentId`. -// The list does not include any subcompartments of the compartmentId passed. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListAuditProfiles on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// GetSensitiveColumn Gets the details of the specified sensitive column. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditProfiles.go.html to see an example of how to use ListAuditProfiles API. -// A default retry strategy applies to this operation ListAuditProfiles() -func (client DataSafeClient) ListAuditProfiles(ctx context.Context, request ListAuditProfilesRequest) (response ListAuditProfilesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSensitiveColumn.go.html to see an example of how to use GetSensitiveColumn API. +// A default retry strategy applies to this operation GetSensitiveColumn() +func (client DataSafeClient) GetSensitiveColumn(ctx context.Context, request GetSensitiveColumnRequest) (response GetSensitiveColumnResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10735,42 +10969,42 @@ func (client DataSafeClient) ListAuditProfiles(ctx context.Context, request List if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAuditProfiles, policy) + ociResponse, err = common.Retry(ctx, request, client.getSensitiveColumn, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAuditProfilesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSensitiveColumnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAuditProfilesResponse{} + response = GetSensitiveColumnResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAuditProfilesResponse); ok { + if convertedResponse, ok := ociResponse.(GetSensitiveColumnResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAuditProfilesResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSensitiveColumnResponse") } return } -// listAuditProfiles implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAuditProfiles(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSensitiveColumn implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSensitiveColumn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditProfiles", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns/{sensitiveColumnKey}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAuditProfilesResponse + var response GetSensitiveColumnResponse 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-safe/20181201/AuditProfile/ListAuditProfiles" - err = common.PostProcessServiceError(err, "DataSafe", "ListAuditProfiles", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveColumn/GetSensitiveColumn" + err = common.PostProcessServiceError(err, "DataSafe", "GetSensitiveColumn", apiReferenceLink) return response, err } @@ -10778,23 +11012,13 @@ func (client DataSafeClient) listAuditProfiles(ctx context.Context, request comm return response, err } -// ListAuditTrailAnalytics Gets a list of audit trail aggregated details . A audit trail aggregation helps understand the overall state of trails. -// As an example, it helps understand how many trails are running or stopped. It is especially useful to create dashboards or to support analytics. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform AuditTrailAnalytics on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// GetSensitiveDataModel Gets the details of the specified sensitive data model. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditTrailAnalytics.go.html to see an example of how to use ListAuditTrailAnalytics API. -// A default retry strategy applies to this operation ListAuditTrailAnalytics() -func (client DataSafeClient) ListAuditTrailAnalytics(ctx context.Context, request ListAuditTrailAnalyticsRequest) (response ListAuditTrailAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSensitiveDataModel.go.html to see an example of how to use GetSensitiveDataModel API. +// A default retry strategy applies to this operation GetSensitiveDataModel() +func (client DataSafeClient) GetSensitiveDataModel(ctx context.Context, request GetSensitiveDataModelRequest) (response GetSensitiveDataModelResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10803,42 +11027,42 @@ func (client DataSafeClient) ListAuditTrailAnalytics(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAuditTrailAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.getSensitiveDataModel, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAuditTrailAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSensitiveDataModelResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAuditTrailAnalyticsResponse{} + response = GetSensitiveDataModelResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAuditTrailAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(GetSensitiveDataModelResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAuditTrailAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSensitiveDataModelResponse") } return } -// listAuditTrailAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAuditTrailAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSensitiveDataModel implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSensitiveDataModel(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditTrailAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAuditTrailAnalyticsResponse + var response GetSensitiveDataModelResponse 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-safe/20181201/AuditTrailAnalyticCollection/ListAuditTrailAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListAuditTrailAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveDataModel/GetSensitiveDataModel" + err = common.PostProcessServiceError(err, "DataSafe", "GetSensitiveDataModel", apiReferenceLink) return response, err } @@ -10846,24 +11070,13 @@ func (client DataSafeClient) listAuditTrailAnalytics(ctx context.Context, reques return response, err } -// ListAuditTrails Gets a list of all audit trails. -// The ListAuditTrails operation returns only the audit trails in the specified `compartmentId`. -// The list does not include any subcompartments of the compartmentId passed. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListAuditTrails on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// GetSensitiveType Gets the details of the specified sensitive type. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditTrails.go.html to see an example of how to use ListAuditTrails API. -// A default retry strategy applies to this operation ListAuditTrails() -func (client DataSafeClient) ListAuditTrails(ctx context.Context, request ListAuditTrailsRequest) (response ListAuditTrailsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSensitiveType.go.html to see an example of how to use GetSensitiveType API. +// A default retry strategy applies to this operation GetSensitiveType() +func (client DataSafeClient) GetSensitiveType(ctx context.Context, request GetSensitiveTypeRequest) (response GetSensitiveTypeResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10872,56 +11085,56 @@ func (client DataSafeClient) ListAuditTrails(ctx context.Context, request ListAu if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAuditTrails, policy) + ociResponse, err = common.Retry(ctx, request, client.getSensitiveType, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAuditTrailsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSensitiveTypeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAuditTrailsResponse{} + response = GetSensitiveTypeResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAuditTrailsResponse); ok { + if convertedResponse, ok := ociResponse.(GetSensitiveTypeResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAuditTrailsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSensitiveTypeResponse") } return } -// listAuditTrails implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAuditTrails(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSensitiveType implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSensitiveType(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditTrails", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypes/{sensitiveTypeId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAuditTrailsResponse + var response GetSensitiveTypeResponse 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-safe/20181201/AuditTrail/ListAuditTrails" - err = common.PostProcessServiceError(err, "DataSafe", "ListAuditTrails", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveType/GetSensitiveType" + err = common.PostProcessServiceError(err, "DataSafe", "GetSensitiveType", apiReferenceLink) return response, err } - err = common.UnmarshalResponse(httpResponse, &response) + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &sensitivetype{}) return response, err } -// ListAvailableAuditVolumes Retrieves a list of audit trails, and associated audit event volume for each trail up to defined start date. +// GetSensitiveTypeGroup Gets the details of the specified sensitive type group. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAvailableAuditVolumes.go.html to see an example of how to use ListAvailableAuditVolumes API. -// A default retry strategy applies to this operation ListAvailableAuditVolumes() -func (client DataSafeClient) ListAvailableAuditVolumes(ctx context.Context, request ListAvailableAuditVolumesRequest) (response ListAvailableAuditVolumesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSensitiveTypeGroup.go.html to see an example of how to use GetSensitiveTypeGroup API. +// A default retry strategy applies to this operation GetSensitiveTypeGroup() +func (client DataSafeClient) GetSensitiveTypeGroup(ctx context.Context, request GetSensitiveTypeGroupRequest) (response GetSensitiveTypeGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10930,42 +11143,42 @@ func (client DataSafeClient) ListAvailableAuditVolumes(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listAvailableAuditVolumes, policy) + ociResponse, err = common.Retry(ctx, request, client.getSensitiveTypeGroup, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListAvailableAuditVolumesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSensitiveTypeGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListAvailableAuditVolumesResponse{} + response = GetSensitiveTypeGroupResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListAvailableAuditVolumesResponse); ok { + if convertedResponse, ok := ociResponse.(GetSensitiveTypeGroupResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListAvailableAuditVolumesResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSensitiveTypeGroupResponse") } return } -// listAvailableAuditVolumes implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listAvailableAuditVolumes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSensitiveTypeGroup implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSensitiveTypeGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditProfiles/{auditProfileId}/availableAuditVolumes", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypeGroups/{sensitiveTypeGroupId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListAvailableAuditVolumesResponse + var response GetSensitiveTypeGroupResponse 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-safe/20181201/AuditProfile/ListAvailableAuditVolumes" - err = common.PostProcessServiceError(err, "DataSafe", "ListAvailableAuditVolumes", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveTypeGroup/GetSensitiveTypeGroup" + err = common.PostProcessServiceError(err, "DataSafe", "GetSensitiveTypeGroup", apiReferenceLink) return response, err } @@ -10973,13 +11186,13 @@ func (client DataSafeClient) listAvailableAuditVolumes(ctx context.Context, requ return response, err } -// ListCollectedAuditVolumes Gets a list of all collected audit volume data points. +// GetSensitiveTypesExport Gets the details of the specified sensitive types export by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListCollectedAuditVolumes.go.html to see an example of how to use ListCollectedAuditVolumes API. -// A default retry strategy applies to this operation ListCollectedAuditVolumes() -func (client DataSafeClient) ListCollectedAuditVolumes(ctx context.Context, request ListCollectedAuditVolumesRequest) (response ListCollectedAuditVolumesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSensitiveTypesExport.go.html to see an example of how to use GetSensitiveTypesExport API. +// A default retry strategy applies to this operation GetSensitiveTypesExport() +func (client DataSafeClient) GetSensitiveTypesExport(ctx context.Context, request GetSensitiveTypesExportRequest) (response GetSensitiveTypesExportResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -10988,42 +11201,42 @@ func (client DataSafeClient) ListCollectedAuditVolumes(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listCollectedAuditVolumes, policy) + ociResponse, err = common.Retry(ctx, request, client.getSensitiveTypesExport, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListCollectedAuditVolumesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSensitiveTypesExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListCollectedAuditVolumesResponse{} + response = GetSensitiveTypesExportResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListCollectedAuditVolumesResponse); ok { + if convertedResponse, ok := ociResponse.(GetSensitiveTypesExportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListCollectedAuditVolumesResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSensitiveTypesExportResponse") } return } -// listCollectedAuditVolumes implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listCollectedAuditVolumes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSensitiveTypesExport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSensitiveTypesExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditProfiles/{auditProfileId}/collectedAuditVolumes", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypesExports/{sensitiveTypesExportId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListCollectedAuditVolumesResponse + var response GetSensitiveTypesExportResponse 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-safe/20181201/AuditProfile/ListCollectedAuditVolumes" - err = common.PostProcessServiceError(err, "DataSafe", "ListCollectedAuditVolumes", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveTypesExport/GetSensitiveTypesExport" + err = common.PostProcessServiceError(err, "DataSafe", "GetSensitiveTypesExport", apiReferenceLink) return response, err } @@ -11031,13 +11244,13 @@ func (client DataSafeClient) listCollectedAuditVolumes(ctx context.Context, requ return response, err } -// ListColumns Returns a list of column metadata objects. +// GetSqlCollection Gets a SQL collection by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListColumns.go.html to see an example of how to use ListColumns API. -// A default retry strategy applies to this operation ListColumns() -func (client DataSafeClient) ListColumns(ctx context.Context, request ListColumnsRequest) (response ListColumnsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSqlCollection.go.html to see an example of how to use GetSqlCollection API. +// A default retry strategy applies to this operation GetSqlCollection() +func (client DataSafeClient) GetSqlCollection(ctx context.Context, request GetSqlCollectionRequest) (response GetSqlCollectionResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11046,42 +11259,42 @@ func (client DataSafeClient) ListColumns(ctx context.Context, request ListColumn if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listColumns, policy) + ociResponse, err = common.Retry(ctx, request, client.getSqlCollection, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListColumnsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSqlCollectionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListColumnsResponse{} + response = GetSqlCollectionResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListColumnsResponse); ok { + if convertedResponse, ok := ociResponse.(GetSqlCollectionResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListColumnsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSqlCollectionResponse") } return } -// listColumns implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listColumns(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSqlCollection implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSqlCollection(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}/columns", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlCollections/{sqlCollectionId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListColumnsResponse + var response GetSqlCollectionResponse 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-safe/20181201/TargetDatabase/ListColumns" - err = common.PostProcessServiceError(err, "DataSafe", "ListColumns", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlCollection/GetSqlCollection" + err = common.PostProcessServiceError(err, "DataSafe", "GetSqlCollection", apiReferenceLink) return response, err } @@ -11089,13 +11302,13 @@ func (client DataSafeClient) listColumns(ctx context.Context, request common.OCI return response, err } -// ListDataSafePrivateEndpoints Gets a list of Data Safe private endpoints. +// GetSqlFirewallAllowedSql Gets a SQL firewall allowed SQL by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDataSafePrivateEndpoints.go.html to see an example of how to use ListDataSafePrivateEndpoints API. -// A default retry strategy applies to this operation ListDataSafePrivateEndpoints() -func (client DataSafeClient) ListDataSafePrivateEndpoints(ctx context.Context, request ListDataSafePrivateEndpointsRequest) (response ListDataSafePrivateEndpointsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSqlFirewallAllowedSql.go.html to see an example of how to use GetSqlFirewallAllowedSql API. +// A default retry strategy applies to this operation GetSqlFirewallAllowedSql() +func (client DataSafeClient) GetSqlFirewallAllowedSql(ctx context.Context, request GetSqlFirewallAllowedSqlRequest) (response GetSqlFirewallAllowedSqlResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11104,42 +11317,42 @@ func (client DataSafeClient) ListDataSafePrivateEndpoints(ctx context.Context, r if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listDataSafePrivateEndpoints, policy) + ociResponse, err = common.Retry(ctx, request, client.getSqlFirewallAllowedSql, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListDataSafePrivateEndpointsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSqlFirewallAllowedSqlResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListDataSafePrivateEndpointsResponse{} + response = GetSqlFirewallAllowedSqlResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListDataSafePrivateEndpointsResponse); ok { + if convertedResponse, ok := ociResponse.(GetSqlFirewallAllowedSqlResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListDataSafePrivateEndpointsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSqlFirewallAllowedSqlResponse") } return } -// listDataSafePrivateEndpoints implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listDataSafePrivateEndpoints(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSqlFirewallAllowedSql implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSqlFirewallAllowedSql(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/dataSafePrivateEndpoints", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallAllowedSqls/{sqlFirewallAllowedSqlId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListDataSafePrivateEndpointsResponse + var response GetSqlFirewallAllowedSqlResponse 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-safe/20181201/DataSafePrivateEndpointSummary/ListDataSafePrivateEndpoints" - err = common.PostProcessServiceError(err, "DataSafe", "ListDataSafePrivateEndpoints", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallAllowedSql/GetSqlFirewallAllowedSql" + err = common.PostProcessServiceError(err, "DataSafe", "GetSqlFirewallAllowedSql", apiReferenceLink) return response, err } @@ -11147,23 +11360,13 @@ func (client DataSafeClient) listDataSafePrivateEndpoints(ctx context.Context, r return response, err } -// ListDatabaseSecurityConfigs Retrieves a list of all database security configurations in Data Safe. -// The ListDatabaseSecurityConfigs operation returns only the database security configurations in the specified `compartmentId`. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListDatabaseSecurityConfigs on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// GetSqlFirewallPolicy Gets a SQL Firewall policy by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDatabaseSecurityConfigs.go.html to see an example of how to use ListDatabaseSecurityConfigs API. -// A default retry strategy applies to this operation ListDatabaseSecurityConfigs() -func (client DataSafeClient) ListDatabaseSecurityConfigs(ctx context.Context, request ListDatabaseSecurityConfigsRequest) (response ListDatabaseSecurityConfigsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSqlFirewallPolicy.go.html to see an example of how to use GetSqlFirewallPolicy API. +// A default retry strategy applies to this operation GetSqlFirewallPolicy() +func (client DataSafeClient) GetSqlFirewallPolicy(ctx context.Context, request GetSqlFirewallPolicyRequest) (response GetSqlFirewallPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11172,42 +11375,42 @@ func (client DataSafeClient) ListDatabaseSecurityConfigs(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listDatabaseSecurityConfigs, policy) + ociResponse, err = common.Retry(ctx, request, client.getSqlFirewallPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListDatabaseSecurityConfigsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetSqlFirewallPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListDatabaseSecurityConfigsResponse{} + response = GetSqlFirewallPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListDatabaseSecurityConfigsResponse); ok { + if convertedResponse, ok := ociResponse.(GetSqlFirewallPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListDatabaseSecurityConfigsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetSqlFirewallPolicyResponse") } return } -// listDatabaseSecurityConfigs implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listDatabaseSecurityConfigs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getSqlFirewallPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getSqlFirewallPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/databaseSecurityConfigs", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallPolicies/{sqlFirewallPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListDatabaseSecurityConfigsResponse + var response GetSqlFirewallPolicyResponse 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-safe/20181201/DatabaseSecurityConfigCollection/ListDatabaseSecurityConfigs" - err = common.PostProcessServiceError(err, "DataSafe", "ListDatabaseSecurityConfigs", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallPolicy/GetSqlFirewallPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "GetSqlFirewallPolicy", apiReferenceLink) return response, err } @@ -11215,14 +11418,13 @@ func (client DataSafeClient) listDatabaseSecurityConfigs(ctx context.Context, re return response, err } -// ListDatabaseTableAccessEntries Retrieves a list of all database table access entries in Data Safe. -// The ListDatabaseTableAccessEntries operation returns only the database table access reports for the specified security policy report. +// GetTargetAlertPolicyAssociation Gets the details of target-alert policy association by its ID. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDatabaseTableAccessEntries.go.html to see an example of how to use ListDatabaseTableAccessEntries API. -// A default retry strategy applies to this operation ListDatabaseTableAccessEntries() -func (client DataSafeClient) ListDatabaseTableAccessEntries(ctx context.Context, request ListDatabaseTableAccessEntriesRequest) (response ListDatabaseTableAccessEntriesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetTargetAlertPolicyAssociation.go.html to see an example of how to use GetTargetAlertPolicyAssociation API. +// A default retry strategy applies to this operation GetTargetAlertPolicyAssociation() +func (client DataSafeClient) GetTargetAlertPolicyAssociation(ctx context.Context, request GetTargetAlertPolicyAssociationRequest) (response GetTargetAlertPolicyAssociationResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11231,42 +11433,42 @@ func (client DataSafeClient) ListDatabaseTableAccessEntries(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listDatabaseTableAccessEntries, policy) + ociResponse, err = common.Retry(ctx, request, client.getTargetAlertPolicyAssociation, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListDatabaseTableAccessEntriesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetTargetAlertPolicyAssociationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListDatabaseTableAccessEntriesResponse{} + response = GetTargetAlertPolicyAssociationResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListDatabaseTableAccessEntriesResponse); ok { + if convertedResponse, ok := ociResponse.(GetTargetAlertPolicyAssociationResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListDatabaseTableAccessEntriesResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetTargetAlertPolicyAssociationResponse") } return } -// listDatabaseTableAccessEntries implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listDatabaseTableAccessEntries(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getTargetAlertPolicyAssociation implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getTargetAlertPolicyAssociation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports/{securityPolicyReportId}/databaseTableAccessEntries", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetAlertPolicyAssociations/{targetAlertPolicyAssociationId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListDatabaseTableAccessEntriesResponse + var response GetTargetAlertPolicyAssociationResponse 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-safe/20181201/DatabaseTableAccessEntryCollection/ListDatabaseTableAccessEntries" - err = common.PostProcessServiceError(err, "DataSafe", "ListDatabaseTableAccessEntries", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetAlertPolicyAssociation/GetTargetAlertPolicyAssociation" + err = common.PostProcessServiceError(err, "DataSafe", "GetTargetAlertPolicyAssociation", apiReferenceLink) return response, err } @@ -11274,14 +11476,13 @@ func (client DataSafeClient) listDatabaseTableAccessEntries(ctx context.Context, return response, err } -// ListDatabaseViewAccessEntries Retrieves a list of all database view access entries in Data Safe. -// The ListDatabaseViewAccessEntries operation returns only the database view access objects for the specified security policy report. +// GetTargetDatabase Returns the details of the specified Data Safe target database. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDatabaseViewAccessEntries.go.html to see an example of how to use ListDatabaseViewAccessEntries API. -// A default retry strategy applies to this operation ListDatabaseViewAccessEntries() -func (client DataSafeClient) ListDatabaseViewAccessEntries(ctx context.Context, request ListDatabaseViewAccessEntriesRequest) (response ListDatabaseViewAccessEntriesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetTargetDatabase.go.html to see an example of how to use GetTargetDatabase API. +// A default retry strategy applies to this operation GetTargetDatabase() +func (client DataSafeClient) GetTargetDatabase(ctx context.Context, request GetTargetDatabaseRequest) (response GetTargetDatabaseResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11290,42 +11491,42 @@ func (client DataSafeClient) ListDatabaseViewAccessEntries(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listDatabaseViewAccessEntries, policy) + ociResponse, err = common.Retry(ctx, request, client.getTargetDatabase, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListDatabaseViewAccessEntriesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetTargetDatabaseResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListDatabaseViewAccessEntriesResponse{} + response = GetTargetDatabaseResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListDatabaseViewAccessEntriesResponse); ok { + if convertedResponse, ok := ociResponse.(GetTargetDatabaseResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListDatabaseViewAccessEntriesResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetTargetDatabaseResponse") } return } -// listDatabaseViewAccessEntries implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listDatabaseViewAccessEntries(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getTargetDatabase implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getTargetDatabase(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports/{securityPolicyReportId}/databaseViewAccessEntries", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListDatabaseViewAccessEntriesResponse + var response GetTargetDatabaseResponse 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-safe/20181201/DatabaseViewAccessEntryCollection/ListDatabaseViewAccessEntries" - err = common.PostProcessServiceError(err, "DataSafe", "ListDatabaseViewAccessEntries", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/GetTargetDatabase" + err = common.PostProcessServiceError(err, "DataSafe", "GetTargetDatabase", apiReferenceLink) return response, err } @@ -11333,13 +11534,13 @@ func (client DataSafeClient) listDatabaseViewAccessEntries(ctx context.Context, return response, err } -// ListDifferenceColumns Gets a list of columns of a SDM masking policy difference resource based on the specified query parameters. +// GetTargetDatabaseGroup Returns the details of the specified target database group. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDifferenceColumns.go.html to see an example of how to use ListDifferenceColumns API. -// A default retry strategy applies to this operation ListDifferenceColumns() -func (client DataSafeClient) ListDifferenceColumns(ctx context.Context, request ListDifferenceColumnsRequest) (response ListDifferenceColumnsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetTargetDatabaseGroup.go.html to see an example of how to use GetTargetDatabaseGroup API. +// A default retry strategy applies to this operation GetTargetDatabaseGroup() +func (client DataSafeClient) GetTargetDatabaseGroup(ctx context.Context, request GetTargetDatabaseGroupRequest) (response GetTargetDatabaseGroupResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11348,42 +11549,42 @@ func (client DataSafeClient) ListDifferenceColumns(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listDifferenceColumns, policy) + ociResponse, err = common.Retry(ctx, request, client.getTargetDatabaseGroup, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListDifferenceColumnsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetTargetDatabaseGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListDifferenceColumnsResponse{} + response = GetTargetDatabaseGroupResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListDifferenceColumnsResponse); ok { + if convertedResponse, ok := ociResponse.(GetTargetDatabaseGroupResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListDifferenceColumnsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetTargetDatabaseGroupResponse") } return } -// listDifferenceColumns implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listDifferenceColumns(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getTargetDatabaseGroup implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getTargetDatabaseGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}/differenceColumns", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabaseGroups/{targetDatabaseGroupId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListDifferenceColumnsResponse + var response GetTargetDatabaseGroupResponse 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-safe/20181201/SdmMaskingPolicyDifference/ListDifferenceColumns" - err = common.PostProcessServiceError(err, "DataSafe", "ListDifferenceColumns", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabaseGroup/GetTargetDatabaseGroup" + err = common.PostProcessServiceError(err, "DataSafe", "GetTargetDatabaseGroup", apiReferenceLink) return response, err } @@ -11391,15 +11592,13 @@ func (client DataSafeClient) listDifferenceColumns(ctx context.Context, request return response, err } -// ListDiscoveryAnalytics Gets consolidated discovery analytics data based on the specified query parameters. -// If CompartmentIdInSubtreeQueryParam is specified as true, the behaviour -// is equivalent to accessLevel "ACCESSIBLE" by default. +// GetTemplateBaselineComparison Gets the details of the comparison report for the security assessments submitted for comparison. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDiscoveryAnalytics.go.html to see an example of how to use ListDiscoveryAnalytics API. -// A default retry strategy applies to this operation ListDiscoveryAnalytics() -func (client DataSafeClient) ListDiscoveryAnalytics(ctx context.Context, request ListDiscoveryAnalyticsRequest) (response ListDiscoveryAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetTemplateBaselineComparison.go.html to see an example of how to use GetTemplateBaselineComparison API. +// A default retry strategy applies to this operation GetTemplateBaselineComparison() +func (client DataSafeClient) GetTemplateBaselineComparison(ctx context.Context, request GetTemplateBaselineComparisonRequest) (response GetTemplateBaselineComparisonResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11408,42 +11607,42 @@ func (client DataSafeClient) ListDiscoveryAnalytics(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listDiscoveryAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.getTemplateBaselineComparison, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListDiscoveryAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetTemplateBaselineComparisonResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListDiscoveryAnalyticsResponse{} + response = GetTemplateBaselineComparisonResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListDiscoveryAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(GetTemplateBaselineComparisonResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListDiscoveryAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetTemplateBaselineComparisonResponse") } return } -// listDiscoveryAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listDiscoveryAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getTemplateBaselineComparison implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getTemplateBaselineComparison(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/discoveryAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/{securityAssessmentId}/templateBaselineComparison/{comparisonSecurityAssessmentId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListDiscoveryAnalyticsResponse + var response GetTemplateBaselineComparisonResponse 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-safe/20181201/SensitiveDataModel/ListDiscoveryAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListDiscoveryAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/GetTemplateBaselineComparison" + err = common.PostProcessServiceError(err, "DataSafe", "GetTemplateBaselineComparison", apiReferenceLink) return response, err } @@ -11451,13 +11650,13 @@ func (client DataSafeClient) listDiscoveryAnalytics(ctx context.Context, request return response, err } -// ListDiscoveryJobResults Gets a list of discovery results based on the specified query parameters. +// GetUnifiedAuditPolicy Gets a Unified Audit policy by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDiscoveryJobResults.go.html to see an example of how to use ListDiscoveryJobResults API. -// A default retry strategy applies to this operation ListDiscoveryJobResults() -func (client DataSafeClient) ListDiscoveryJobResults(ctx context.Context, request ListDiscoveryJobResultsRequest) (response ListDiscoveryJobResultsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetUnifiedAuditPolicy.go.html to see an example of how to use GetUnifiedAuditPolicy API. +// A default retry strategy applies to this operation GetUnifiedAuditPolicy() +func (client DataSafeClient) GetUnifiedAuditPolicy(ctx context.Context, request GetUnifiedAuditPolicyRequest) (response GetUnifiedAuditPolicyResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11466,42 +11665,42 @@ func (client DataSafeClient) ListDiscoveryJobResults(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listDiscoveryJobResults, policy) + ociResponse, err = common.Retry(ctx, request, client.getUnifiedAuditPolicy, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListDiscoveryJobResultsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetUnifiedAuditPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListDiscoveryJobResultsResponse{} + response = GetUnifiedAuditPolicyResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListDiscoveryJobResultsResponse); ok { + if convertedResponse, ok := ociResponse.(GetUnifiedAuditPolicyResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListDiscoveryJobResultsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetUnifiedAuditPolicyResponse") } return } -// listDiscoveryJobResults implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listDiscoveryJobResults(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getUnifiedAuditPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getUnifiedAuditPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/discoveryJobs/{discoveryJobId}/results", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/unifiedAuditPolicies/{unifiedAuditPolicyId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListDiscoveryJobResultsResponse + var response GetUnifiedAuditPolicyResponse 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-safe/20181201/DiscoveryJob/ListDiscoveryJobResults" - err = common.PostProcessServiceError(err, "DataSafe", "ListDiscoveryJobResults", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicy/GetUnifiedAuditPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "GetUnifiedAuditPolicy", apiReferenceLink) return response, err } @@ -11509,13 +11708,13 @@ func (client DataSafeClient) listDiscoveryJobResults(ctx context.Context, reques return response, err } -// ListDiscoveryJobs Gets a list of incremental discovery jobs based on the specified query parameters. +// GetUnifiedAuditPolicyDefinition Gets a unified audit policy definition by the specified OCID of the unified audit policy definition resource. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDiscoveryJobs.go.html to see an example of how to use ListDiscoveryJobs API. -// A default retry strategy applies to this operation ListDiscoveryJobs() -func (client DataSafeClient) ListDiscoveryJobs(ctx context.Context, request ListDiscoveryJobsRequest) (response ListDiscoveryJobsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetUnifiedAuditPolicyDefinition.go.html to see an example of how to use GetUnifiedAuditPolicyDefinition API. +// A default retry strategy applies to this operation GetUnifiedAuditPolicyDefinition() +func (client DataSafeClient) GetUnifiedAuditPolicyDefinition(ctx context.Context, request GetUnifiedAuditPolicyDefinitionRequest) (response GetUnifiedAuditPolicyDefinitionResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11524,42 +11723,42 @@ func (client DataSafeClient) ListDiscoveryJobs(ctx context.Context, request List if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listDiscoveryJobs, policy) + ociResponse, err = common.Retry(ctx, request, client.getUnifiedAuditPolicyDefinition, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListDiscoveryJobsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetUnifiedAuditPolicyDefinitionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListDiscoveryJobsResponse{} + response = GetUnifiedAuditPolicyDefinitionResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListDiscoveryJobsResponse); ok { + if convertedResponse, ok := ociResponse.(GetUnifiedAuditPolicyDefinitionResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListDiscoveryJobsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetUnifiedAuditPolicyDefinitionResponse") } return } -// listDiscoveryJobs implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listDiscoveryJobs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getUnifiedAuditPolicyDefinition implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getUnifiedAuditPolicyDefinition(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/discoveryJobs", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/unifiedAuditPolicyDefinitions/{unifiedAuditPolicyDefinitionId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListDiscoveryJobsResponse + var response GetUnifiedAuditPolicyDefinitionResponse 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-safe/20181201/DiscoveryJob/ListDiscoveryJobs" - err = common.PostProcessServiceError(err, "DataSafe", "ListDiscoveryJobs", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicyDefinition/GetUnifiedAuditPolicyDefinition" + err = common.PostProcessServiceError(err, "DataSafe", "GetUnifiedAuditPolicyDefinition", apiReferenceLink) return response, err } @@ -11567,21 +11766,13 @@ func (client DataSafeClient) listDiscoveryJobs(ctx context.Context, request comm return response, err } -// ListFindingAnalytics Gets a list of findings aggregated details in the specified compartment. This provides information about the overall state -// of security assessment findings. You can use groupBy to get the count of findings under a certain risk level and with a certain findingKey, -// and as well as get the list of the targets that match the condition. -// This data is especially useful content for the statistic chart or to support analytics. -// When you perform the ListFindingAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the -// parameter accessLevel is set to ACCESSIBLE, then the operation returns statistics from the compartments in which the requestor has INSPECT -// permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the -// root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by -// compartmentId, then "Not Authorized" is returned. +// GetUserAssessment Gets a user assessment by identifier. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListFindingAnalytics.go.html to see an example of how to use ListFindingAnalytics API. -// A default retry strategy applies to this operation ListFindingAnalytics() -func (client DataSafeClient) ListFindingAnalytics(ctx context.Context, request ListFindingAnalyticsRequest) (response ListFindingAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetUserAssessment.go.html to see an example of how to use GetUserAssessment API. +// A default retry strategy applies to this operation GetUserAssessment() +func (client DataSafeClient) GetUserAssessment(ctx context.Context, request GetUserAssessmentRequest) (response GetUserAssessmentResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11590,42 +11781,42 @@ func (client DataSafeClient) ListFindingAnalytics(ctx context.Context, request L if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listFindingAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.getUserAssessment, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListFindingAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetUserAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListFindingAnalyticsResponse{} + response = GetUserAssessmentResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListFindingAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(GetUserAssessmentResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListFindingAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetUserAssessmentResponse") } return } -// listFindingAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listFindingAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getUserAssessment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getUserAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/findingAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListFindingAnalyticsResponse + var response GetUserAssessmentResponse 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-safe/20181201/SecurityAssessment/ListFindingAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListFindingAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UserAssessment/GetUserAssessment" + err = common.PostProcessServiceError(err, "DataSafe", "GetUserAssessment", apiReferenceLink) return response, err } @@ -11633,13 +11824,13 @@ func (client DataSafeClient) listFindingAnalytics(ctx context.Context, request c return response, err } -// ListFindings List all the findings from all the targets in the specified compartment. +// GetUserAssessmentComparison Gets the details of the comparison report for the user assessments submitted for comparison. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListFindings.go.html to see an example of how to use ListFindings API. -// A default retry strategy applies to this operation ListFindings() -func (client DataSafeClient) ListFindings(ctx context.Context, request ListFindingsRequest) (response ListFindingsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetUserAssessmentComparison.go.html to see an example of how to use GetUserAssessmentComparison API. +// A default retry strategy applies to this operation GetUserAssessmentComparison() +func (client DataSafeClient) GetUserAssessmentComparison(ctx context.Context, request GetUserAssessmentComparisonRequest) (response GetUserAssessmentComparisonResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11648,56 +11839,56 @@ func (client DataSafeClient) ListFindings(ctx context.Context, request ListFindi if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listFindings, policy) + ociResponse, err = common.Retry(ctx, request, client.getUserAssessmentComparison, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListFindingsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetUserAssessmentComparisonResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListFindingsResponse{} + response = GetUserAssessmentComparisonResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListFindingsResponse); ok { + if convertedResponse, ok := ociResponse.(GetUserAssessmentComparisonResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListFindingsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetUserAssessmentComparisonResponse") } return } -// listFindings implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listFindings(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getUserAssessmentComparison implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getUserAssessmentComparison(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/{securityAssessmentId}/findings", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}/comparison/{comparisonUserAssessmentId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListFindingsResponse + var response GetUserAssessmentComparisonResponse 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-safe/20181201/SecurityAssessment/ListFindings" - err = common.PostProcessServiceError(err, "DataSafe", "ListFindings", apiReferenceLink) - return response, err + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UserAssessment/GetUserAssessmentComparison" + err = common.PostProcessServiceError(err, "DataSafe", "GetUserAssessmentComparison", apiReferenceLink) + return response, err } err = common.UnmarshalResponse(httpResponse, &response) return response, err } -// ListFindingsChangeAuditLogs List all changes made by user to risk level of findings of the specified assessment. +// GetWorkRequest Gets the details of the specified work request. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListFindingsChangeAuditLogs.go.html to see an example of how to use ListFindingsChangeAuditLogs API. -// A default retry strategy applies to this operation ListFindingsChangeAuditLogs() -func (client DataSafeClient) ListFindingsChangeAuditLogs(ctx context.Context, request ListFindingsChangeAuditLogsRequest) (response ListFindingsChangeAuditLogsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetWorkRequest.go.html to see an example of how to use GetWorkRequest API. +// A default retry strategy applies to this operation GetWorkRequest() +func (client DataSafeClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11706,42 +11897,42 @@ func (client DataSafeClient) ListFindingsChangeAuditLogs(ctx context.Context, re if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listFindingsChangeAuditLogs, policy) + ociResponse, err = common.Retry(ctx, request, client.getWorkRequest, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListFindingsChangeAuditLogsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = GetWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListFindingsChangeAuditLogsResponse{} + response = GetWorkRequestResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListFindingsChangeAuditLogsResponse); ok { + if convertedResponse, ok := ociResponse.(GetWorkRequestResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListFindingsChangeAuditLogsResponse") + err = fmt.Errorf("failed to convert OCIResponse into GetWorkRequestResponse") } return } -// listFindingsChangeAuditLogs implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listFindingsChangeAuditLogs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// getWorkRequest implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) getWorkRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/{securityAssessmentId}/findingsChangeAuditLogs", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListFindingsChangeAuditLogsResponse + var response GetWorkRequestResponse var httpResponse *http.Response httpResponse, err = client.Call(ctx, &httpRequest) defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/ListFindingsChangeAuditLogs" - err = common.PostProcessServiceError(err, "DataSafe", "ListFindingsChangeAuditLogs", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/WorkRequest/GetWorkRequest" + err = common.PostProcessServiceError(err, "DataSafe", "GetWorkRequest", apiReferenceLink) return response, err } @@ -11749,16 +11940,13 @@ func (client DataSafeClient) listFindingsChangeAuditLogs(ctx context.Context, re return response, err } -// ListGrants Gets a list of grants for a particular user in the specified user assessment. A user grant contains details such as the -// privilege name, type, category, and depth level. The depth level indicates how deep in the hierarchy of roles granted to -// roles a privilege grant is. The userKey in this operation is a system-generated identifier. Perform the operation ListUsers -// to get the userKey for a particular user. +// ListAlertAnalytics Returns the aggregation details of the alerts. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListGrants.go.html to see an example of how to use ListGrants API. -// A default retry strategy applies to this operation ListGrants() -func (client DataSafeClient) ListGrants(ctx context.Context, request ListGrantsRequest) (response ListGrantsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAlertAnalytics.go.html to see an example of how to use ListAlertAnalytics API. +// A default retry strategy applies to this operation ListAlertAnalytics() +func (client DataSafeClient) ListAlertAnalytics(ctx context.Context, request ListAlertAnalyticsRequest) (response ListAlertAnalyticsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11767,42 +11955,47 @@ func (client DataSafeClient) ListGrants(ctx context.Context, request ListGrantsR if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listGrants, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.listAlertAnalytics, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListGrantsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListAlertAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListGrantsResponse{} + response = ListAlertAnalyticsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListGrantsResponse); ok { + if convertedResponse, ok := ociResponse.(ListAlertAnalyticsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListGrantsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListAlertAnalyticsResponse") } return } -// listGrants implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listGrants(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listAlertAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAlertAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}/users/{userKey}/grants", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/alertAnalytics", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListGrantsResponse + var response ListAlertAnalyticsResponse 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-safe/20181201/UserAssessment/ListGrants" - err = common.PostProcessServiceError(err, "DataSafe", "ListGrants", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AlertSummary/ListAlertAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListAlertAnalytics", apiReferenceLink) return response, err } @@ -11810,13 +12003,13 @@ func (client DataSafeClient) listGrants(ctx context.Context, request common.OCIR return response, err } -// ListGroupedSensitiveTypes Gets the list of sensitive type Ids present in the specified sensitive type group. +// ListAlertPolicies Gets a list of all alert policies. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListGroupedSensitiveTypes.go.html to see an example of how to use ListGroupedSensitiveTypes API. -// A default retry strategy applies to this operation ListGroupedSensitiveTypes() -func (client DataSafeClient) ListGroupedSensitiveTypes(ctx context.Context, request ListGroupedSensitiveTypesRequest) (response ListGroupedSensitiveTypesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAlertPolicies.go.html to see an example of how to use ListAlertPolicies API. +// A default retry strategy applies to this operation ListAlertPolicies() +func (client DataSafeClient) ListAlertPolicies(ctx context.Context, request ListAlertPoliciesRequest) (response ListAlertPoliciesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11825,42 +12018,42 @@ func (client DataSafeClient) ListGroupedSensitiveTypes(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listGroupedSensitiveTypes, policy) + ociResponse, err = common.Retry(ctx, request, client.listAlertPolicies, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListGroupedSensitiveTypesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListAlertPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListGroupedSensitiveTypesResponse{} + response = ListAlertPoliciesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListGroupedSensitiveTypesResponse); ok { + if convertedResponse, ok := ociResponse.(ListAlertPoliciesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListGroupedSensitiveTypesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListAlertPoliciesResponse") } return } -// listGroupedSensitiveTypes implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listGroupedSensitiveTypes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listAlertPolicies implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAlertPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypeGroups/{sensitiveTypeGroupId}/groupedSensitiveTypes", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/alertPolicies", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListGroupedSensitiveTypesResponse + var response ListAlertPoliciesResponse 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-safe/20181201/SensitiveTypeGroup/ListGroupedSensitiveTypes" - err = common.PostProcessServiceError(err, "DataSafe", "ListGroupedSensitiveTypes", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AlertPolicy/ListAlertPolicies" + err = common.PostProcessServiceError(err, "DataSafe", "ListAlertPolicies", apiReferenceLink) return response, err } @@ -11868,13 +12061,14 @@ func (client DataSafeClient) listGroupedSensitiveTypes(ctx context.Context, requ return response, err } -// ListLibraryMaskingFormats Gets a list of library masking formats based on the specified query parameters. +// ListAlertPolicyRules Lists the rules of the specified alert policy. The alert policy is said to be satisfied when all rules in the policy evaulate to true. +// If there are three rules: rule1,rule2 and rule3, the policy is satisfied if rule1 AND rule2 AND rule3 is True. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListLibraryMaskingFormats.go.html to see an example of how to use ListLibraryMaskingFormats API. -// A default retry strategy applies to this operation ListLibraryMaskingFormats() -func (client DataSafeClient) ListLibraryMaskingFormats(ctx context.Context, request ListLibraryMaskingFormatsRequest) (response ListLibraryMaskingFormatsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAlertPolicyRules.go.html to see an example of how to use ListAlertPolicyRules API. +// A default retry strategy applies to this operation ListAlertPolicyRules() +func (client DataSafeClient) ListAlertPolicyRules(ctx context.Context, request ListAlertPolicyRulesRequest) (response ListAlertPolicyRulesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11883,42 +12077,42 @@ func (client DataSafeClient) ListLibraryMaskingFormats(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listLibraryMaskingFormats, policy) + ociResponse, err = common.Retry(ctx, request, client.listAlertPolicyRules, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListLibraryMaskingFormatsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListAlertPolicyRulesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListLibraryMaskingFormatsResponse{} + response = ListAlertPolicyRulesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListLibraryMaskingFormatsResponse); ok { + if convertedResponse, ok := ociResponse.(ListAlertPolicyRulesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListLibraryMaskingFormatsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListAlertPolicyRulesResponse") } return } -// listLibraryMaskingFormats implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listLibraryMaskingFormats(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listAlertPolicyRules implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAlertPolicyRules(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/libraryMaskingFormats", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/alertPolicies/{alertPolicyId}/rules", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListLibraryMaskingFormatsResponse + var response ListAlertPolicyRulesResponse 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-safe/20181201/LibraryMaskingFormatSummary/ListLibraryMaskingFormats" - err = common.PostProcessServiceError(err, "DataSafe", "ListLibraryMaskingFormats", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AlertPolicy/ListAlertPolicyRules" + err = common.PostProcessServiceError(err, "DataSafe", "ListAlertPolicyRules", apiReferenceLink) return response, err } @@ -11926,13 +12120,13 @@ func (client DataSafeClient) listLibraryMaskingFormats(ctx context.Context, requ return response, err } -// ListMaskedColumns Gets a list of masked columns present in the specified masking report and based on the specified query parameters. +// ListAlerts Gets a list of all alerts. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskedColumns.go.html to see an example of how to use ListMaskedColumns API. -// A default retry strategy applies to this operation ListMaskedColumns() -func (client DataSafeClient) ListMaskedColumns(ctx context.Context, request ListMaskedColumnsRequest) (response ListMaskedColumnsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAlerts.go.html to see an example of how to use ListAlerts API. +// A default retry strategy applies to this operation ListAlerts() +func (client DataSafeClient) ListAlerts(ctx context.Context, request ListAlertsRequest) (response ListAlertsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -11941,42 +12135,42 @@ func (client DataSafeClient) ListMaskedColumns(ctx context.Context, request List if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listMaskedColumns, policy) + ociResponse, err = common.Retry(ctx, request, client.listAlerts, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMaskedColumnsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListAlertsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListMaskedColumnsResponse{} + response = ListAlertsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListMaskedColumnsResponse); ok { + if convertedResponse, ok := ociResponse.(ListAlertsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMaskedColumnsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListAlertsResponse") } return } -// listMaskedColumns implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listMaskedColumns(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listAlerts implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAlerts(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingReports/{maskingReportId}/maskedColumns", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/alerts", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListMaskedColumnsResponse + var response ListAlertsResponse 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-safe/20181201/MaskedColumnSummary/ListMaskedColumns" - err = common.PostProcessServiceError(err, "DataSafe", "ListMaskedColumns", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AlertSummary/ListAlerts" + err = common.PostProcessServiceError(err, "DataSafe", "ListAlerts", apiReferenceLink) return response, err } @@ -11984,15 +12178,13 @@ func (client DataSafeClient) listMaskedColumns(ctx context.Context, request comm return response, err } -// ListMaskingAnalytics Gets consolidated masking analytics data based on the specified query parameters. -// If CompartmentIdInSubtreeQueryParam is specified as true, the behaviour -// is equivalent to accessLevel "ACCESSIBLE" by default. +// ListAssociatedResources Returns list of all associated resources. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingAnalytics.go.html to see an example of how to use ListMaskingAnalytics API. -// A default retry strategy applies to this operation ListMaskingAnalytics() -func (client DataSafeClient) ListMaskingAnalytics(ctx context.Context, request ListMaskingAnalyticsRequest) (response ListMaskingAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAssociatedResources.go.html to see an example of how to use ListAssociatedResources API. +// A default retry strategy applies to this operation ListAssociatedResources() +func (client DataSafeClient) ListAssociatedResources(ctx context.Context, request ListAssociatedResourcesRequest) (response ListAssociatedResourcesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12001,42 +12193,47 @@ func (client DataSafeClient) ListMaskingAnalytics(ctx context.Context, request L if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listMaskingAnalytics, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.listAssociatedResources, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMaskingAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListAssociatedResourcesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListMaskingAnalyticsResponse{} + response = ListAssociatedResourcesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListMaskingAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(ListAssociatedResourcesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMaskingAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListAssociatedResourcesResponse") } return } -// listMaskingAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listMaskingAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listAssociatedResources implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAssociatedResources(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/attributeSets/{attributeSetId}/associatedResources", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListMaskingAnalyticsResponse + var response ListAssociatedResourcesResponse 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-safe/20181201/MaskingPolicy/ListMaskingAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AttributeSet/ListAssociatedResources" + err = common.PostProcessServiceError(err, "DataSafe", "ListAssociatedResources", apiReferenceLink) return response, err } @@ -12044,13 +12241,23 @@ func (client DataSafeClient) listMaskingAnalytics(ctx context.Context, request c return response, err } -// ListMaskingColumns Gets a list of masking columns present in the specified masking policy and based on the specified query parameters. +// ListAttributeSets Retrieves the list of attribute sets. +// The ListAttributeSets operation returns only the attribute sets in the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requester has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListAttributeSet on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingColumns.go.html to see an example of how to use ListMaskingColumns API. -// A default retry strategy applies to this operation ListMaskingColumns() -func (client DataSafeClient) ListMaskingColumns(ctx context.Context, request ListMaskingColumnsRequest) (response ListMaskingColumnsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAttributeSets.go.html to see an example of how to use ListAttributeSets API. +// A default retry strategy applies to this operation ListAttributeSets() +func (client DataSafeClient) ListAttributeSets(ctx context.Context, request ListAttributeSetsRequest) (response ListAttributeSetsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12059,42 +12266,42 @@ func (client DataSafeClient) ListMaskingColumns(ctx context.Context, request Lis if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listMaskingColumns, policy) + ociResponse, err = common.Retry(ctx, request, client.listAttributeSets, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMaskingColumnsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListAttributeSetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListMaskingColumnsResponse{} + response = ListAttributeSetsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListMaskingColumnsResponse); ok { + if convertedResponse, ok := ociResponse.(ListAttributeSetsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMaskingColumnsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListAttributeSetsResponse") } return } -// listMaskingColumns implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listMaskingColumns(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listAttributeSets implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAttributeSets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies/{maskingPolicyId}/maskingColumns", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/attributeSets", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListMaskingColumnsResponse + var response ListAttributeSetsResponse 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-safe/20181201/MaskingColumn/ListMaskingColumns" - err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingColumns", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/attributeSet/ListAttributeSets" + err = common.PostProcessServiceError(err, "DataSafe", "ListAttributeSets", apiReferenceLink) return response, err } @@ -12102,13 +12309,13 @@ func (client DataSafeClient) listMaskingColumns(ctx context.Context, request com return response, err } -// ListMaskingErrors Gets a list of masking errors in a masking run based on the specified query parameters. +// ListAuditArchiveRetrievals Returns the list of audit archive retrieval. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingErrors.go.html to see an example of how to use ListMaskingErrors API. -// A default retry strategy applies to this operation ListMaskingErrors() -func (client DataSafeClient) ListMaskingErrors(ctx context.Context, request ListMaskingErrorsRequest) (response ListMaskingErrorsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditArchiveRetrievals.go.html to see an example of how to use ListAuditArchiveRetrievals API. +// A default retry strategy applies to this operation ListAuditArchiveRetrievals() +func (client DataSafeClient) ListAuditArchiveRetrievals(ctx context.Context, request ListAuditArchiveRetrievalsRequest) (response ListAuditArchiveRetrievalsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12117,42 +12324,42 @@ func (client DataSafeClient) ListMaskingErrors(ctx context.Context, request List if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listMaskingErrors, policy) + ociResponse, err = common.Retry(ctx, request, client.listAuditArchiveRetrievals, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMaskingErrorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListAuditArchiveRetrievalsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListMaskingErrorsResponse{} + response = ListAuditArchiveRetrievalsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListMaskingErrorsResponse); ok { + if convertedResponse, ok := ociResponse.(ListAuditArchiveRetrievalsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMaskingErrorsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListAuditArchiveRetrievalsResponse") } return } -// listMaskingErrors implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listMaskingErrors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listAuditArchiveRetrievals implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAuditArchiveRetrievals(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingReports/{maskingReportId}/maskingErrors", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditArchiveRetrievals", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListMaskingErrorsResponse + var response ListAuditArchiveRetrievalsResponse 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-safe/20181201/MaskingErrorSummary/ListMaskingErrors" - err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingErrors", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AuditArchiveRetrieval/ListAuditArchiveRetrievals" + err = common.PostProcessServiceError(err, "DataSafe", "ListAuditArchiveRetrievals", apiReferenceLink) return response, err } @@ -12160,13 +12367,22 @@ func (client DataSafeClient) listMaskingErrors(ctx context.Context, request comm return response, err } -// ListMaskingObjects Gets a list of masking objects present in the specified masking policy and based on the specified query parameters. +// ListAuditEventAnalytics By default the ListAuditEventAnalytics operation will return all of the summary columns. To filter for a specific summary column, specify +// it in the `summaryField` query parameter. +// **Example:** +// /auditEventAnalytics?summaryField=targetName&summaryField=userName&summaryField=clientHostname +// &summaryField=dmls&summaryField=privilegeChanges&summaryField=ddls&summaryField=loginFailure&summaryField=loginSuccess +// &summaryField=allRecord&scimQuery=(auditEventTime ge "2021-06-13T23:49:14") +// /auditEventAnalytics?timeStarted=2022-08-18T11:02:26.000Z&timeEnded=2022-08-24T11:02:26.000Z +// This will give number of events grouped by periods. Period can be 1 day, 1 week, etc. +// /auditEventAnalytics?summaryField=targetName&groupBy=targetName +// This will give the number of events group by targetName. Only targetName summary column would be returned. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingObjects.go.html to see an example of how to use ListMaskingObjects API. -// A default retry strategy applies to this operation ListMaskingObjects() -func (client DataSafeClient) ListMaskingObjects(ctx context.Context, request ListMaskingObjectsRequest) (response ListMaskingObjectsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditEventAnalytics.go.html to see an example of how to use ListAuditEventAnalytics API. +// A default retry strategy applies to this operation ListAuditEventAnalytics() +func (client DataSafeClient) ListAuditEventAnalytics(ctx context.Context, request ListAuditEventAnalyticsRequest) (response ListAuditEventAnalyticsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12175,42 +12391,2121 @@ func (client DataSafeClient) ListMaskingObjects(ctx context.Context, request Lis if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listMaskingObjects, policy) - if err != nil { - if ociResponse != nil { + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.listAuditEventAnalytics, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListAuditEventAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListAuditEventAnalyticsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListAuditEventAnalyticsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAuditEventAnalyticsResponse") + } + return +} + +// listAuditEventAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAuditEventAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditEventAnalytics", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListAuditEventAnalyticsResponse + 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-safe/20181201/AuditEventSummary/ListAuditEventAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListAuditEventAnalytics", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAuditEvents The ListAuditEvents operation returns specified `compartmentId` audit Events only. +// The list does not include any audit Events associated with the `subcompartments` of the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListAuditEvents on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditEvents.go.html to see an example of how to use ListAuditEvents API. +// A default retry strategy applies to this operation ListAuditEvents() +func (client DataSafeClient) ListAuditEvents(ctx context.Context, request ListAuditEventsRequest) (response ListAuditEventsResponse, 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.listAuditEvents, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListAuditEventsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListAuditEventsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListAuditEventsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAuditEventsResponse") + } + return +} + +// listAuditEvents implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAuditEvents(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditEvents", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListAuditEventsResponse + 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-safe/20181201/AuditEventSummary/ListAuditEvents" + err = common.PostProcessServiceError(err, "DataSafe", "ListAuditEvents", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAuditPolicies Retrieves a list of all audited targets with their corresponding provisioned audit policies, and their provisioning conditions. +// The ListAuditPolicies operation returns only the audit policies in the specified `compartmentId`. +// The list does not include any subcompartments of the compartmentId passed. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListAuditPolicies on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditPolicies.go.html to see an example of how to use ListAuditPolicies API. +// A default retry strategy applies to this operation ListAuditPolicies() +func (client DataSafeClient) ListAuditPolicies(ctx context.Context, request ListAuditPoliciesRequest) (response ListAuditPoliciesResponse, 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.listAuditPolicies, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListAuditPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListAuditPoliciesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListAuditPoliciesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAuditPoliciesResponse") + } + return +} + +// listAuditPolicies implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAuditPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditPolicies", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListAuditPoliciesResponse + 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-safe/20181201/AuditPolicyCollection/ListAuditPolicies" + err = common.PostProcessServiceError(err, "DataSafe", "ListAuditPolicies", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAuditPolicyAnalytics Gets a list of aggregated audit policy details on the target databases. A audit policy aggregation +// helps understand the overall state of policies provisioned on targets. +// It is especially useful to create dashboards or to support analytics. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform SummarizedAuditPolicyInfo on the specified +// `compartmentId` and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// **Example:** ListAuditPolicyAnalytics?groupBy=auditPolicyCategory +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditPolicyAnalytics.go.html to see an example of how to use ListAuditPolicyAnalytics API. +// A default retry strategy applies to this operation ListAuditPolicyAnalytics() +func (client DataSafeClient) ListAuditPolicyAnalytics(ctx context.Context, request ListAuditPolicyAnalyticsRequest) (response ListAuditPolicyAnalyticsResponse, 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.listAuditPolicyAnalytics, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListAuditPolicyAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListAuditPolicyAnalyticsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListAuditPolicyAnalyticsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAuditPolicyAnalyticsResponse") + } + return +} + +// listAuditPolicyAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAuditPolicyAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditPolicyAnalytics", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListAuditPolicyAnalyticsResponse + 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-safe/20181201/AuditPolicyAnalyticCollection/ListAuditPolicyAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListAuditPolicyAnalytics", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAuditProfileAnalytics Gets a list of audit profile aggregated details . A audit profile aggregation helps understand the overall state of audit profile profiles. +// As an example, it helps understand how many audit profiles have paid usage. It is especially useful to create dashboards or to support analytics. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform AuditProfileAnalytics on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditProfileAnalytics.go.html to see an example of how to use ListAuditProfileAnalytics API. +// A default retry strategy applies to this operation ListAuditProfileAnalytics() +func (client DataSafeClient) ListAuditProfileAnalytics(ctx context.Context, request ListAuditProfileAnalyticsRequest) (response ListAuditProfileAnalyticsResponse, 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.listAuditProfileAnalytics, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListAuditProfileAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListAuditProfileAnalyticsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListAuditProfileAnalyticsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAuditProfileAnalyticsResponse") + } + return +} + +// listAuditProfileAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAuditProfileAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditProfileAnalytics", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListAuditProfileAnalyticsResponse + 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-safe/20181201/AuditProfileAnalyticCollection/ListAuditProfileAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListAuditProfileAnalytics", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAuditProfiles Gets a list of all audit profiles. +// The ListAuditProfiles operation returns only the audit profiles in the specified `compartmentId`. +// The list does not include any subcompartments of the compartmentId passed. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListAuditProfiles on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditProfiles.go.html to see an example of how to use ListAuditProfiles API. +// A default retry strategy applies to this operation ListAuditProfiles() +func (client DataSafeClient) ListAuditProfiles(ctx context.Context, request ListAuditProfilesRequest) (response ListAuditProfilesResponse, 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.listAuditProfiles, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListAuditProfilesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListAuditProfilesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListAuditProfilesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAuditProfilesResponse") + } + return +} + +// listAuditProfiles implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAuditProfiles(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditProfiles", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListAuditProfilesResponse + 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-safe/20181201/AuditProfile/ListAuditProfiles" + err = common.PostProcessServiceError(err, "DataSafe", "ListAuditProfiles", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAuditTrailAnalytics Gets a list of audit trail aggregated details . A audit trail aggregation helps understand the overall state of trails. +// As an example, it helps understand how many trails are running or stopped. It is especially useful to create dashboards or to support analytics. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform AuditTrailAnalytics on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditTrailAnalytics.go.html to see an example of how to use ListAuditTrailAnalytics API. +// A default retry strategy applies to this operation ListAuditTrailAnalytics() +func (client DataSafeClient) ListAuditTrailAnalytics(ctx context.Context, request ListAuditTrailAnalyticsRequest) (response ListAuditTrailAnalyticsResponse, 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.listAuditTrailAnalytics, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListAuditTrailAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListAuditTrailAnalyticsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListAuditTrailAnalyticsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAuditTrailAnalyticsResponse") + } + return +} + +// listAuditTrailAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAuditTrailAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditTrailAnalytics", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListAuditTrailAnalyticsResponse + 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-safe/20181201/AuditTrailAnalyticCollection/ListAuditTrailAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListAuditTrailAnalytics", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAuditTrails Gets a list of all audit trails. +// The ListAuditTrails operation returns only the audit trails in the specified `compartmentId`. +// The list does not include any subcompartments of the compartmentId passed. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListAuditTrails on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAuditTrails.go.html to see an example of how to use ListAuditTrails API. +// A default retry strategy applies to this operation ListAuditTrails() +func (client DataSafeClient) ListAuditTrails(ctx context.Context, request ListAuditTrailsRequest) (response ListAuditTrailsResponse, 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.listAuditTrails, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListAuditTrailsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListAuditTrailsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListAuditTrailsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAuditTrailsResponse") + } + return +} + +// listAuditTrails implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAuditTrails(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditTrails", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListAuditTrailsResponse + 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-safe/20181201/AuditTrail/ListAuditTrails" + err = common.PostProcessServiceError(err, "DataSafe", "ListAuditTrails", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAvailableAuditVolumes Retrieves a list of audit trails, and associated audit event volume for each trail up to defined start date. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAvailableAuditVolumes.go.html to see an example of how to use ListAvailableAuditVolumes API. +// A default retry strategy applies to this operation ListAvailableAuditVolumes() +func (client DataSafeClient) ListAvailableAuditVolumes(ctx context.Context, request ListAvailableAuditVolumesRequest) (response ListAvailableAuditVolumesResponse, 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.listAvailableAuditVolumes, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListAvailableAuditVolumesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListAvailableAuditVolumesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListAvailableAuditVolumesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAvailableAuditVolumesResponse") + } + return +} + +// listAvailableAuditVolumes implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listAvailableAuditVolumes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditProfiles/{auditProfileId}/availableAuditVolumes", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListAvailableAuditVolumesResponse + 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-safe/20181201/AuditProfile/ListAvailableAuditVolumes" + err = common.PostProcessServiceError(err, "DataSafe", "ListAvailableAuditVolumes", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListChecks Lists all the security checks in the specified compartment for security assessment of type TEMPLATE. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListChecks.go.html to see an example of how to use ListChecks API. +// A default retry strategy applies to this operation ListChecks() +func (client DataSafeClient) ListChecks(ctx context.Context, request ListChecksRequest) (response ListChecksResponse, 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.listChecks, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListChecksResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListChecksResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListChecksResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListChecksResponse") + } + return +} + +// listChecks implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listChecks(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/{securityAssessmentId}/checks", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListChecksResponse + 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-safe/20181201/SecurityAssessment/ListChecks" + err = common.PostProcessServiceError(err, "DataSafe", "ListChecks", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListCollectedAuditVolumes Gets a list of all collected audit volume data points. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListCollectedAuditVolumes.go.html to see an example of how to use ListCollectedAuditVolumes API. +// A default retry strategy applies to this operation ListCollectedAuditVolumes() +func (client DataSafeClient) ListCollectedAuditVolumes(ctx context.Context, request ListCollectedAuditVolumesRequest) (response ListCollectedAuditVolumesResponse, 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.listCollectedAuditVolumes, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListCollectedAuditVolumesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListCollectedAuditVolumesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListCollectedAuditVolumesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListCollectedAuditVolumesResponse") + } + return +} + +// listCollectedAuditVolumes implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listCollectedAuditVolumes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditProfiles/{auditProfileId}/collectedAuditVolumes", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListCollectedAuditVolumesResponse + 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-safe/20181201/AuditProfile/ListCollectedAuditVolumes" + err = common.PostProcessServiceError(err, "DataSafe", "ListCollectedAuditVolumes", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListColumns Returns a list of column metadata objects. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListColumns.go.html to see an example of how to use ListColumns API. +// A default retry strategy applies to this operation ListColumns() +func (client DataSafeClient) ListColumns(ctx context.Context, request ListColumnsRequest) (response ListColumnsResponse, 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.listColumns, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListColumnsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListColumnsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListColumnsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListColumnsResponse") + } + return +} + +// listColumns implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listColumns(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}/columns", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListColumnsResponse + 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-safe/20181201/TargetDatabase/ListColumns" + err = common.PostProcessServiceError(err, "DataSafe", "ListColumns", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListDataSafePrivateEndpoints Gets a list of Data Safe private endpoints. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDataSafePrivateEndpoints.go.html to see an example of how to use ListDataSafePrivateEndpoints API. +// A default retry strategy applies to this operation ListDataSafePrivateEndpoints() +func (client DataSafeClient) ListDataSafePrivateEndpoints(ctx context.Context, request ListDataSafePrivateEndpointsRequest) (response ListDataSafePrivateEndpointsResponse, 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.listDataSafePrivateEndpoints, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListDataSafePrivateEndpointsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDataSafePrivateEndpointsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDataSafePrivateEndpointsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDataSafePrivateEndpointsResponse") + } + return +} + +// listDataSafePrivateEndpoints implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listDataSafePrivateEndpoints(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/dataSafePrivateEndpoints", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDataSafePrivateEndpointsResponse + 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-safe/20181201/DataSafePrivateEndpointSummary/ListDataSafePrivateEndpoints" + err = common.PostProcessServiceError(err, "DataSafe", "ListDataSafePrivateEndpoints", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListDatabaseSecurityConfigs Retrieves a list of all database security configurations in Data Safe. +// The ListDatabaseSecurityConfigs operation returns only the database security configurations in the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListDatabaseSecurityConfigs on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDatabaseSecurityConfigs.go.html to see an example of how to use ListDatabaseSecurityConfigs API. +// A default retry strategy applies to this operation ListDatabaseSecurityConfigs() +func (client DataSafeClient) ListDatabaseSecurityConfigs(ctx context.Context, request ListDatabaseSecurityConfigsRequest) (response ListDatabaseSecurityConfigsResponse, 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.listDatabaseSecurityConfigs, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListDatabaseSecurityConfigsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDatabaseSecurityConfigsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDatabaseSecurityConfigsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDatabaseSecurityConfigsResponse") + } + return +} + +// listDatabaseSecurityConfigs implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listDatabaseSecurityConfigs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/databaseSecurityConfigs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDatabaseSecurityConfigsResponse + 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-safe/20181201/DatabaseSecurityConfigCollection/ListDatabaseSecurityConfigs" + err = common.PostProcessServiceError(err, "DataSafe", "ListDatabaseSecurityConfigs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListDatabaseTableAccessEntries Retrieves a list of all database table access entries in Data Safe. +// The ListDatabaseTableAccessEntries operation returns only the database table access reports for the specified security policy report. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDatabaseTableAccessEntries.go.html to see an example of how to use ListDatabaseTableAccessEntries API. +// A default retry strategy applies to this operation ListDatabaseTableAccessEntries() +func (client DataSafeClient) ListDatabaseTableAccessEntries(ctx context.Context, request ListDatabaseTableAccessEntriesRequest) (response ListDatabaseTableAccessEntriesResponse, 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.listDatabaseTableAccessEntries, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListDatabaseTableAccessEntriesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDatabaseTableAccessEntriesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDatabaseTableAccessEntriesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDatabaseTableAccessEntriesResponse") + } + return +} + +// listDatabaseTableAccessEntries implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listDatabaseTableAccessEntries(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports/{securityPolicyReportId}/databaseTableAccessEntries", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDatabaseTableAccessEntriesResponse + 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-safe/20181201/DatabaseTableAccessEntryCollection/ListDatabaseTableAccessEntries" + err = common.PostProcessServiceError(err, "DataSafe", "ListDatabaseTableAccessEntries", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListDatabaseViewAccessEntries Retrieves a list of all database view access entries in Data Safe. +// The ListDatabaseViewAccessEntries operation returns only the database view access objects for the specified security policy report. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDatabaseViewAccessEntries.go.html to see an example of how to use ListDatabaseViewAccessEntries API. +// A default retry strategy applies to this operation ListDatabaseViewAccessEntries() +func (client DataSafeClient) ListDatabaseViewAccessEntries(ctx context.Context, request ListDatabaseViewAccessEntriesRequest) (response ListDatabaseViewAccessEntriesResponse, 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.listDatabaseViewAccessEntries, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListDatabaseViewAccessEntriesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDatabaseViewAccessEntriesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDatabaseViewAccessEntriesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDatabaseViewAccessEntriesResponse") + } + return +} + +// listDatabaseViewAccessEntries implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listDatabaseViewAccessEntries(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports/{securityPolicyReportId}/databaseViewAccessEntries", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDatabaseViewAccessEntriesResponse + 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-safe/20181201/DatabaseViewAccessEntryCollection/ListDatabaseViewAccessEntries" + err = common.PostProcessServiceError(err, "DataSafe", "ListDatabaseViewAccessEntries", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListDifferenceColumns Gets a list of columns of a SDM masking policy difference resource based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDifferenceColumns.go.html to see an example of how to use ListDifferenceColumns API. +// A default retry strategy applies to this operation ListDifferenceColumns() +func (client DataSafeClient) ListDifferenceColumns(ctx context.Context, request ListDifferenceColumnsRequest) (response ListDifferenceColumnsResponse, 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.listDifferenceColumns, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListDifferenceColumnsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDifferenceColumnsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDifferenceColumnsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDifferenceColumnsResponse") + } + return +} + +// listDifferenceColumns implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listDifferenceColumns(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sdmMaskingPolicyDifferences/{sdmMaskingPolicyDifferenceId}/differenceColumns", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDifferenceColumnsResponse + 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-safe/20181201/SdmMaskingPolicyDifference/ListDifferenceColumns" + err = common.PostProcessServiceError(err, "DataSafe", "ListDifferenceColumns", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListDiscoveryAnalytics Gets consolidated discovery analytics data based on the specified query parameters. +// If CompartmentIdInSubtreeQueryParam is specified as true, the behaviour +// is equivalent to accessLevel "ACCESSIBLE" by default. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDiscoveryAnalytics.go.html to see an example of how to use ListDiscoveryAnalytics API. +// A default retry strategy applies to this operation ListDiscoveryAnalytics() +func (client DataSafeClient) ListDiscoveryAnalytics(ctx context.Context, request ListDiscoveryAnalyticsRequest) (response ListDiscoveryAnalyticsResponse, 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.listDiscoveryAnalytics, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListDiscoveryAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDiscoveryAnalyticsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDiscoveryAnalyticsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDiscoveryAnalyticsResponse") + } + return +} + +// listDiscoveryAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listDiscoveryAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/discoveryAnalytics", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDiscoveryAnalyticsResponse + 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-safe/20181201/SensitiveDataModel/ListDiscoveryAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListDiscoveryAnalytics", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListDiscoveryJobResults Gets a list of discovery results based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDiscoveryJobResults.go.html to see an example of how to use ListDiscoveryJobResults API. +// A default retry strategy applies to this operation ListDiscoveryJobResults() +func (client DataSafeClient) ListDiscoveryJobResults(ctx context.Context, request ListDiscoveryJobResultsRequest) (response ListDiscoveryJobResultsResponse, 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.listDiscoveryJobResults, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListDiscoveryJobResultsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDiscoveryJobResultsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDiscoveryJobResultsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDiscoveryJobResultsResponse") + } + return +} + +// listDiscoveryJobResults implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listDiscoveryJobResults(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/discoveryJobs/{discoveryJobId}/results", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDiscoveryJobResultsResponse + 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-safe/20181201/DiscoveryJob/ListDiscoveryJobResults" + err = common.PostProcessServiceError(err, "DataSafe", "ListDiscoveryJobResults", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListDiscoveryJobs Gets a list of incremental discovery jobs based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListDiscoveryJobs.go.html to see an example of how to use ListDiscoveryJobs API. +// A default retry strategy applies to this operation ListDiscoveryJobs() +func (client DataSafeClient) ListDiscoveryJobs(ctx context.Context, request ListDiscoveryJobsRequest) (response ListDiscoveryJobsResponse, 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.listDiscoveryJobs, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListDiscoveryJobsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDiscoveryJobsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDiscoveryJobsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDiscoveryJobsResponse") + } + return +} + +// listDiscoveryJobs implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listDiscoveryJobs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/discoveryJobs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDiscoveryJobsResponse + 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-safe/20181201/DiscoveryJob/ListDiscoveryJobs" + err = common.PostProcessServiceError(err, "DataSafe", "ListDiscoveryJobs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListFindingAnalytics Gets a list of findings aggregated details in the specified compartment. This provides information about the overall state +// of security assessment findings. You can use groupBy to get the count of findings under a certain risk level and with a certain findingKey, +// and as well as get the list of the targets that match the condition. +// This data is especially useful content for the statistic chart or to support analytics. +// When you perform the ListFindingAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the +// parameter accessLevel is set to ACCESSIBLE, then the operation returns statistics from the compartments in which the requestor has INSPECT +// permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the +// root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by +// compartmentId, then "Not Authorized" is returned. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListFindingAnalytics.go.html to see an example of how to use ListFindingAnalytics API. +// A default retry strategy applies to this operation ListFindingAnalytics() +func (client DataSafeClient) ListFindingAnalytics(ctx context.Context, request ListFindingAnalyticsRequest) (response ListFindingAnalyticsResponse, 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.listFindingAnalytics, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListFindingAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListFindingAnalyticsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListFindingAnalyticsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListFindingAnalyticsResponse") + } + return +} + +// listFindingAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listFindingAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/findingAnalytics", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListFindingAnalyticsResponse + 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-safe/20181201/SecurityAssessment/ListFindingAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListFindingAnalytics", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListFindings Lists all the findings for the specified assessment except for type TEMPLATE. If the assessment is of type TEMPLATE_BASELINE, the findings returned are the security checks with the user-defined severity from the template. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListFindings.go.html to see an example of how to use ListFindings API. +// A default retry strategy applies to this operation ListFindings() +func (client DataSafeClient) ListFindings(ctx context.Context, request ListFindingsRequest) (response ListFindingsResponse, 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.listFindings, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListFindingsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListFindingsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListFindingsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListFindingsResponse") + } + return +} + +// listFindings implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listFindings(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/{securityAssessmentId}/findings", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListFindingsResponse + 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-safe/20181201/SecurityAssessment/ListFindings" + err = common.PostProcessServiceError(err, "DataSafe", "ListFindings", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListFindingsChangeAuditLogs List all changes made by user to risk level of findings of the specified assessment. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListFindingsChangeAuditLogs.go.html to see an example of how to use ListFindingsChangeAuditLogs API. +// A default retry strategy applies to this operation ListFindingsChangeAuditLogs() +func (client DataSafeClient) ListFindingsChangeAuditLogs(ctx context.Context, request ListFindingsChangeAuditLogsRequest) (response ListFindingsChangeAuditLogsResponse, 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.listFindingsChangeAuditLogs, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListFindingsChangeAuditLogsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListFindingsChangeAuditLogsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListFindingsChangeAuditLogsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListFindingsChangeAuditLogsResponse") + } + return +} + +// listFindingsChangeAuditLogs implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listFindingsChangeAuditLogs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/{securityAssessmentId}/findingsChangeAuditLogs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListFindingsChangeAuditLogsResponse + 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-safe/20181201/SecurityAssessment/ListFindingsChangeAuditLogs" + err = common.PostProcessServiceError(err, "DataSafe", "ListFindingsChangeAuditLogs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListGrants Gets a list of grants for a particular user in the specified user assessment. A user grant contains details such as the +// privilege name, type, category, and depth level. The depth level indicates how deep in the hierarchy of roles granted to +// roles a privilege grant is. The userKey in this operation is a system-generated identifier. Perform the operation ListUsers +// to get the userKey for a particular user. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListGrants.go.html to see an example of how to use ListGrants API. +// A default retry strategy applies to this operation ListGrants() +func (client DataSafeClient) ListGrants(ctx context.Context, request ListGrantsRequest) (response ListGrantsResponse, 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.listGrants, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListGrantsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListGrantsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListGrantsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListGrantsResponse") + } + return +} + +// listGrants implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listGrants(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}/users/{userKey}/grants", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListGrantsResponse + 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-safe/20181201/UserAssessment/ListGrants" + err = common.PostProcessServiceError(err, "DataSafe", "ListGrants", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListGroupedSensitiveTypes Gets the list of sensitive type Ids present in the specified sensitive type group. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListGroupedSensitiveTypes.go.html to see an example of how to use ListGroupedSensitiveTypes API. +// A default retry strategy applies to this operation ListGroupedSensitiveTypes() +func (client DataSafeClient) ListGroupedSensitiveTypes(ctx context.Context, request ListGroupedSensitiveTypesRequest) (response ListGroupedSensitiveTypesResponse, 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.listGroupedSensitiveTypes, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListGroupedSensitiveTypesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListGroupedSensitiveTypesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListGroupedSensitiveTypesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListGroupedSensitiveTypesResponse") + } + return +} + +// listGroupedSensitiveTypes implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listGroupedSensitiveTypes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypeGroups/{sensitiveTypeGroupId}/groupedSensitiveTypes", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListGroupedSensitiveTypesResponse + 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-safe/20181201/SensitiveTypeGroup/ListGroupedSensitiveTypes" + err = common.PostProcessServiceError(err, "DataSafe", "ListGroupedSensitiveTypes", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListLibraryMaskingFormats Gets a list of library masking formats based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListLibraryMaskingFormats.go.html to see an example of how to use ListLibraryMaskingFormats API. +// A default retry strategy applies to this operation ListLibraryMaskingFormats() +func (client DataSafeClient) ListLibraryMaskingFormats(ctx context.Context, request ListLibraryMaskingFormatsRequest) (response ListLibraryMaskingFormatsResponse, 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.listLibraryMaskingFormats, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListLibraryMaskingFormatsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListLibraryMaskingFormatsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListLibraryMaskingFormatsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListLibraryMaskingFormatsResponse") + } + return +} + +// listLibraryMaskingFormats implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listLibraryMaskingFormats(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/libraryMaskingFormats", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListLibraryMaskingFormatsResponse + 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-safe/20181201/LibraryMaskingFormatSummary/ListLibraryMaskingFormats" + err = common.PostProcessServiceError(err, "DataSafe", "ListLibraryMaskingFormats", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListMaskedColumns Gets a list of masked columns present in the specified masking report and based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskedColumns.go.html to see an example of how to use ListMaskedColumns API. +// A default retry strategy applies to this operation ListMaskedColumns() +func (client DataSafeClient) ListMaskedColumns(ctx context.Context, request ListMaskedColumnsRequest) (response ListMaskedColumnsResponse, 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.listMaskedColumns, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListMaskedColumnsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListMaskedColumnsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListMaskedColumnsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListMaskedColumnsResponse") + } + return +} + +// listMaskedColumns implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listMaskedColumns(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingReports/{maskingReportId}/maskedColumns", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListMaskedColumnsResponse + 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-safe/20181201/MaskedColumnSummary/ListMaskedColumns" + err = common.PostProcessServiceError(err, "DataSafe", "ListMaskedColumns", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListMaskingAnalytics Gets consolidated masking analytics data based on the specified query parameters. +// If CompartmentIdInSubtreeQueryParam is specified as true, the behaviour +// is equivalent to accessLevel "ACCESSIBLE" by default. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingAnalytics.go.html to see an example of how to use ListMaskingAnalytics API. +// A default retry strategy applies to this operation ListMaskingAnalytics() +func (client DataSafeClient) ListMaskingAnalytics(ctx context.Context, request ListMaskingAnalyticsRequest) (response ListMaskingAnalyticsResponse, 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.listMaskingAnalytics, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListMaskingAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListMaskingAnalyticsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListMaskingAnalyticsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListMaskingAnalyticsResponse") + } + return +} + +// listMaskingAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listMaskingAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingAnalytics", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListMaskingAnalyticsResponse + 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-safe/20181201/MaskingPolicy/ListMaskingAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingAnalytics", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListMaskingColumns Gets a list of masking columns present in the specified masking policy and based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingColumns.go.html to see an example of how to use ListMaskingColumns API. +// A default retry strategy applies to this operation ListMaskingColumns() +func (client DataSafeClient) ListMaskingColumns(ctx context.Context, request ListMaskingColumnsRequest) (response ListMaskingColumnsResponse, 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.listMaskingColumns, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListMaskingColumnsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListMaskingColumnsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListMaskingColumnsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListMaskingColumnsResponse") + } + return +} + +// listMaskingColumns implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listMaskingColumns(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies/{maskingPolicyId}/maskingColumns", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListMaskingColumnsResponse + 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-safe/20181201/MaskingColumn/ListMaskingColumns" + err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingColumns", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListMaskingErrors Gets a list of masking errors in a masking run based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingErrors.go.html to see an example of how to use ListMaskingErrors API. +// A default retry strategy applies to this operation ListMaskingErrors() +func (client DataSafeClient) ListMaskingErrors(ctx context.Context, request ListMaskingErrorsRequest) (response ListMaskingErrorsResponse, 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.listMaskingErrors, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListMaskingErrorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListMaskingErrorsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListMaskingErrorsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListMaskingErrorsResponse") + } + return +} + +// listMaskingErrors implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listMaskingErrors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingReports/{maskingReportId}/maskingErrors", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListMaskingErrorsResponse + 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-safe/20181201/MaskingErrorSummary/ListMaskingErrors" + err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingErrors", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListMaskingObjects Gets a list of masking objects present in the specified masking policy and based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingObjects.go.html to see an example of how to use ListMaskingObjects API. +// A default retry strategy applies to this operation ListMaskingObjects() +func (client DataSafeClient) ListMaskingObjects(ctx context.Context, request ListMaskingObjectsRequest) (response ListMaskingObjectsResponse, 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.listMaskingObjects, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListMaskingObjectsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListMaskingObjectsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListMaskingObjectsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListMaskingObjectsResponse") + } + return +} + +// listMaskingObjects implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listMaskingObjects(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies/{maskingPolicyId}/maskingObjects", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListMaskingObjectsResponse + 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-safe/20181201/MaskingObjectCollection/ListMaskingObjects" + err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingObjects", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListMaskingPolicies Gets a list of masking policies based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingPolicies.go.html to see an example of how to use ListMaskingPolicies API. +// A default retry strategy applies to this operation ListMaskingPolicies() +func (client DataSafeClient) ListMaskingPolicies(ctx context.Context, request ListMaskingPoliciesRequest) (response ListMaskingPoliciesResponse, 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.listMaskingPolicies, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListMaskingPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListMaskingPoliciesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListMaskingPoliciesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListMaskingPoliciesResponse") + } + return +} + +// listMaskingPolicies implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listMaskingPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListMaskingPoliciesResponse + 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-safe/20181201/MaskingPolicy/ListMaskingPolicies" + err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingPolicies", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListMaskingPolicyHealthReportLogs Gets a list of errors and warnings from a masking policy health check. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingPolicyHealthReportLogs.go.html to see an example of how to use ListMaskingPolicyHealthReportLogs API. +// A default retry strategy applies to this operation ListMaskingPolicyHealthReportLogs() +func (client DataSafeClient) ListMaskingPolicyHealthReportLogs(ctx context.Context, request ListMaskingPolicyHealthReportLogsRequest) (response ListMaskingPolicyHealthReportLogsResponse, 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.listMaskingPolicyHealthReportLogs, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListMaskingPolicyHealthReportLogsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListMaskingPolicyHealthReportLogsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListMaskingPolicyHealthReportLogsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListMaskingPolicyHealthReportLogsResponse") + } + return +} + +// listMaskingPolicyHealthReportLogs implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listMaskingPolicyHealthReportLogs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicyHealthReports/{maskingPolicyHealthReportId}/logs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListMaskingPolicyHealthReportLogsResponse + 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-safe/20181201/MaskingPolicyHealthReport/ListMaskingPolicyHealthReportLogs" + err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingPolicyHealthReportLogs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListMaskingPolicyHealthReports Gets a list of masking policy health reports based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingPolicyHealthReports.go.html to see an example of how to use ListMaskingPolicyHealthReports API. +// A default retry strategy applies to this operation ListMaskingPolicyHealthReports() +func (client DataSafeClient) ListMaskingPolicyHealthReports(ctx context.Context, request ListMaskingPolicyHealthReportsRequest) (response ListMaskingPolicyHealthReportsResponse, 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.listMaskingPolicyHealthReports, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListMaskingPolicyHealthReportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListMaskingPolicyHealthReportsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListMaskingPolicyHealthReportsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListMaskingPolicyHealthReportsResponse") + } + return +} + +// listMaskingPolicyHealthReports implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listMaskingPolicyHealthReports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicyHealthReports", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListMaskingPolicyHealthReportsResponse + 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-safe/20181201/MaskingPolicyHealthReport/ListMaskingPolicyHealthReports" + err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingPolicyHealthReports", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListMaskingPolicyReferentialRelations Gets a list of referential relations present in the specified masking policy based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingPolicyReferentialRelations.go.html to see an example of how to use ListMaskingPolicyReferentialRelations API. +// A default retry strategy applies to this operation ListMaskingPolicyReferentialRelations() +func (client DataSafeClient) ListMaskingPolicyReferentialRelations(ctx context.Context, request ListMaskingPolicyReferentialRelationsRequest) (response ListMaskingPolicyReferentialRelationsResponse, 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.listMaskingPolicyReferentialRelations, policy) + if err != nil { + if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMaskingObjectsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListMaskingPolicyReferentialRelationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListMaskingObjectsResponse{} + response = ListMaskingPolicyReferentialRelationsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListMaskingObjectsResponse); ok { + if convertedResponse, ok := ociResponse.(ListMaskingPolicyReferentialRelationsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMaskingObjectsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListMaskingPolicyReferentialRelationsResponse") } return } -// listMaskingObjects implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listMaskingObjects(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listMaskingPolicyReferentialRelations implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listMaskingPolicyReferentialRelations(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies/{maskingPolicyId}/maskingObjects", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies/{maskingPolicyId}/referentialRelations", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListMaskingObjectsResponse + var response ListMaskingPolicyReferentialRelationsResponse 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-safe/20181201/MaskingObjectCollection/ListMaskingObjects" - err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingObjects", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyReferentialRelationSummary/ListMaskingPolicyReferentialRelations" + err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingPolicyReferentialRelations", apiReferenceLink) return response, err } @@ -12218,13 +14513,195 @@ func (client DataSafeClient) listMaskingObjects(ctx context.Context, request com return response, err } -// ListMaskingPolicies Gets a list of masking policies based on the specified query parameters. +// ListMaskingReports Gets a list of masking reports based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingReports.go.html to see an example of how to use ListMaskingReports API. +// A default retry strategy applies to this operation ListMaskingReports() +func (client DataSafeClient) ListMaskingReports(ctx context.Context, request ListMaskingReportsRequest) (response ListMaskingReportsResponse, 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.listMaskingReports, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListMaskingReportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListMaskingReportsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListMaskingReportsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListMaskingReportsResponse") + } + return +} + +// listMaskingReports implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listMaskingReports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingReports", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListMaskingReportsResponse + 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-safe/20181201/MaskingPolicy/ListMaskingReports" + err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingReports", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListMaskingSchemas Gets a list of masking schemas present in the specified masking policy and based on the specified query parameters. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingSchemas.go.html to see an example of how to use ListMaskingSchemas API. +// A default retry strategy applies to this operation ListMaskingSchemas() +func (client DataSafeClient) ListMaskingSchemas(ctx context.Context, request ListMaskingSchemasRequest) (response ListMaskingSchemasResponse, 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.listMaskingSchemas, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListMaskingSchemasResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListMaskingSchemasResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListMaskingSchemasResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListMaskingSchemasResponse") + } + return +} + +// listMaskingSchemas implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listMaskingSchemas(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies/{maskingPolicyId}/maskingSchemas", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListMaskingSchemasResponse + 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-safe/20181201/MaskingSchemaCollection/ListMaskingSchemas" + err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingSchemas", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListOnPremConnectors Gets a list of on-premises connectors. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListOnPremConnectors.go.html to see an example of how to use ListOnPremConnectors API. +// A default retry strategy applies to this operation ListOnPremConnectors() +func (client DataSafeClient) ListOnPremConnectors(ctx context.Context, request ListOnPremConnectorsRequest) (response ListOnPremConnectorsResponse, 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.listOnPremConnectors, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListOnPremConnectorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListOnPremConnectorsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListOnPremConnectorsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListOnPremConnectorsResponse") + } + return +} + +// listOnPremConnectors implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listOnPremConnectors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/onPremConnectors", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListOnPremConnectorsResponse + 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-safe/20181201/OnPremConnectorSummary/ListOnPremConnectors" + err = common.PostProcessServiceError(err, "DataSafe", "ListOnPremConnectors", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListPasswordExpiryDateAnalytics Gets a list of count of the users with password expiry dates in next 30 days, between next 30-90 days, and beyond 90 days based on specified user assessment. +// It internally uses the aforementioned userAnalytics api. +// When you perform the ListPasswordExpiryDateAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the +// parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has READ +// permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the +// root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by +// compartmentId, then "Not Authorized" is returned. +// To use ListPasswordExpiryDateAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment, +// set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingPolicies.go.html to see an example of how to use ListMaskingPolicies API. -// A default retry strategy applies to this operation ListMaskingPolicies() -func (client DataSafeClient) ListMaskingPolicies(ctx context.Context, request ListMaskingPoliciesRequest) (response ListMaskingPoliciesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListPasswordExpiryDateAnalytics.go.html to see an example of how to use ListPasswordExpiryDateAnalytics API. +// A default retry strategy applies to this operation ListPasswordExpiryDateAnalytics() +func (client DataSafeClient) ListPasswordExpiryDateAnalytics(ctx context.Context, request ListPasswordExpiryDateAnalyticsRequest) (response ListPasswordExpiryDateAnalyticsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12233,42 +14710,42 @@ func (client DataSafeClient) ListMaskingPolicies(ctx context.Context, request Li if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listMaskingPolicies, policy) + ociResponse, err = common.Retry(ctx, request, client.listPasswordExpiryDateAnalytics, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMaskingPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListPasswordExpiryDateAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListMaskingPoliciesResponse{} + response = ListPasswordExpiryDateAnalyticsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListMaskingPoliciesResponse); ok { + if convertedResponse, ok := ociResponse.(ListPasswordExpiryDateAnalyticsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMaskingPoliciesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListPasswordExpiryDateAnalyticsResponse") } return } -// listMaskingPolicies implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listMaskingPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listPasswordExpiryDateAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listPasswordExpiryDateAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}/passwordExpiryDateAnalytics", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListMaskingPoliciesResponse + var response ListPasswordExpiryDateAnalyticsResponse 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-safe/20181201/MaskingPolicy/ListMaskingPolicies" - err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingPolicies", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UserAssessment/ListPasswordExpiryDateAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListPasswordExpiryDateAnalytics", apiReferenceLink) return response, err } @@ -12276,13 +14753,13 @@ func (client DataSafeClient) listMaskingPolicies(ctx context.Context, request co return response, err } -// ListMaskingPolicyHealthReportLogs Gets a list of errors and warnings from a masking policy health check. +// ListPeerTargetDatabases Lists all the peer target databases under the primary target database identified by the OCID passed as path parameter. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingPolicyHealthReportLogs.go.html to see an example of how to use ListMaskingPolicyHealthReportLogs API. -// A default retry strategy applies to this operation ListMaskingPolicyHealthReportLogs() -func (client DataSafeClient) ListMaskingPolicyHealthReportLogs(ctx context.Context, request ListMaskingPolicyHealthReportLogsRequest) (response ListMaskingPolicyHealthReportLogsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListPeerTargetDatabases.go.html to see an example of how to use ListPeerTargetDatabases API. +// A default retry strategy applies to this operation ListPeerTargetDatabases() +func (client DataSafeClient) ListPeerTargetDatabases(ctx context.Context, request ListPeerTargetDatabasesRequest) (response ListPeerTargetDatabasesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12291,42 +14768,47 @@ func (client DataSafeClient) ListMaskingPolicyHealthReportLogs(ctx context.Conte if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listMaskingPolicyHealthReportLogs, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.listPeerTargetDatabases, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMaskingPolicyHealthReportLogsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListPeerTargetDatabasesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListMaskingPolicyHealthReportLogsResponse{} + response = ListPeerTargetDatabasesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListMaskingPolicyHealthReportLogsResponse); ok { + if convertedResponse, ok := ociResponse.(ListPeerTargetDatabasesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMaskingPolicyHealthReportLogsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListPeerTargetDatabasesResponse") } return } -// listMaskingPolicyHealthReportLogs implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listMaskingPolicyHealthReportLogs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listPeerTargetDatabases implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listPeerTargetDatabases(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicyHealthReports/{maskingPolicyHealthReportId}/logs", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}/peerTargetDatabases", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListMaskingPolicyHealthReportLogsResponse + var response ListPeerTargetDatabasesResponse 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-safe/20181201/MaskingPolicyHealthReport/ListMaskingPolicyHealthReportLogs" - err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingPolicyHealthReportLogs", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/PeerTargetDatabase/ListPeerTargetDatabases" + err = common.PostProcessServiceError(err, "DataSafe", "ListPeerTargetDatabases", apiReferenceLink) return response, err } @@ -12334,13 +14816,24 @@ func (client DataSafeClient) listMaskingPolicyHealthReportLogs(ctx context.Conte return response, err } -// ListMaskingPolicyHealthReports Gets a list of masking policy health reports based on the specified query parameters. +// ListProfileAnalytics Gets a list of aggregated user profile details in the specified compartment. This provides information about the +// overall profiles available. For example, the user profile details include how many users have the profile assigned +// and do how many use password verification function. This data is especially useful content for dashboards or to support analytics. +// When you perform the ListProfileAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the +// parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has INSPECT +// permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the +// root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by +// compartmentId, then "Not Authorized" is returned. +// The parameter compartmentIdInSubtree applies when you perform ListProfileAnalytics on the compartmentId passed and when it is +// set to true, the entire hierarchy of compartments can be returned. +// To use ListProfileAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment, +// set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingPolicyHealthReports.go.html to see an example of how to use ListMaskingPolicyHealthReports API. -// A default retry strategy applies to this operation ListMaskingPolicyHealthReports() -func (client DataSafeClient) ListMaskingPolicyHealthReports(ctx context.Context, request ListMaskingPolicyHealthReportsRequest) (response ListMaskingPolicyHealthReportsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListProfileAnalytics.go.html to see an example of how to use ListProfileAnalytics API. +// A default retry strategy applies to this operation ListProfileAnalytics() +func (client DataSafeClient) ListProfileAnalytics(ctx context.Context, request ListProfileAnalyticsRequest) (response ListProfileAnalyticsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12349,42 +14842,42 @@ func (client DataSafeClient) ListMaskingPolicyHealthReports(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listMaskingPolicyHealthReports, policy) + ociResponse, err = common.Retry(ctx, request, client.listProfileAnalytics, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMaskingPolicyHealthReportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListProfileAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListMaskingPolicyHealthReportsResponse{} + response = ListProfileAnalyticsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListMaskingPolicyHealthReportsResponse); ok { + if convertedResponse, ok := ociResponse.(ListProfileAnalyticsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMaskingPolicyHealthReportsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListProfileAnalyticsResponse") } return } -// listMaskingPolicyHealthReports implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listMaskingPolicyHealthReports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listProfileAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listProfileAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicyHealthReports", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}/profileAnalytics", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListMaskingPolicyHealthReportsResponse + var response ListProfileAnalyticsResponse 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-safe/20181201/MaskingPolicyHealthReport/ListMaskingPolicyHealthReports" - err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingPolicyHealthReports", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/Profile/ListProfileAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListProfileAnalytics", apiReferenceLink) return response, err } @@ -12392,13 +14885,24 @@ func (client DataSafeClient) listMaskingPolicyHealthReports(ctx context.Context, return response, err } -// ListMaskingPolicyReferentialRelations Gets a list of referential relations present in the specified masking policy based on the specified query parameters. +// ListProfileSummaries Gets a list of user profiles containing the profile details along with the target id and user counts. +// The ListProfiles operation returns only the profiles belonging to a certain target. If compartment type user assessment +// id is provided, then profile information for all the targets belonging to the pertaining compartment is returned. +// The list does not include any subcompartments of the compartment under consideration. +// The parameter 'accessLevel' specifies whether to return only those compartments for which the requestor has +// INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a +// subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. +// This is valid only when 'compartmentIdInSubtree' is set to 'true'. +// The parameter 'compartmentIdInSubtree' applies when you perform ListUserProfiles on the 'compartmentId' belonging +// to the assessmentId passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter +// 'compartmentIdInSubtree' to true and 'accessLevel' to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingPolicyReferentialRelations.go.html to see an example of how to use ListMaskingPolicyReferentialRelations API. -// A default retry strategy applies to this operation ListMaskingPolicyReferentialRelations() -func (client DataSafeClient) ListMaskingPolicyReferentialRelations(ctx context.Context, request ListMaskingPolicyReferentialRelationsRequest) (response ListMaskingPolicyReferentialRelationsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListProfileSummaries.go.html to see an example of how to use ListProfileSummaries API. +// A default retry strategy applies to this operation ListProfileSummaries() +func (client DataSafeClient) ListProfileSummaries(ctx context.Context, request ListProfileSummariesRequest) (response ListProfileSummariesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12407,42 +14911,42 @@ func (client DataSafeClient) ListMaskingPolicyReferentialRelations(ctx context.C if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listMaskingPolicyReferentialRelations, policy) + ociResponse, err = common.Retry(ctx, request, client.listProfileSummaries, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMaskingPolicyReferentialRelationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListProfileSummariesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListMaskingPolicyReferentialRelationsResponse{} + response = ListProfileSummariesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListMaskingPolicyReferentialRelationsResponse); ok { + if convertedResponse, ok := ociResponse.(ListProfileSummariesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMaskingPolicyReferentialRelationsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListProfileSummariesResponse") } return } -// listMaskingPolicyReferentialRelations implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listMaskingPolicyReferentialRelations(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listProfileSummaries implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listProfileSummaries(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies/{maskingPolicyId}/referentialRelations", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}/profiles", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListMaskingPolicyReferentialRelationsResponse + var response ListProfileSummariesResponse 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-safe/20181201/MaskingPolicyReferentialRelationSummary/ListMaskingPolicyReferentialRelations" - err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingPolicyReferentialRelations", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UserAssessment/ListProfileSummaries" + err = common.PostProcessServiceError(err, "DataSafe", "ListProfileSummaries", apiReferenceLink) return response, err } @@ -12450,13 +14954,13 @@ func (client DataSafeClient) listMaskingPolicyReferentialRelations(ctx context.C return response, err } -// ListMaskingReports Gets a list of masking reports based on the specified query parameters. +// ListReferentialRelations Gets a list of referential relations present in the specified sensitive data model based on the specified query parameters. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingReports.go.html to see an example of how to use ListMaskingReports API. -// A default retry strategy applies to this operation ListMaskingReports() -func (client DataSafeClient) ListMaskingReports(ctx context.Context, request ListMaskingReportsRequest) (response ListMaskingReportsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListReferentialRelations.go.html to see an example of how to use ListReferentialRelations API. +// A default retry strategy applies to this operation ListReferentialRelations() +func (client DataSafeClient) ListReferentialRelations(ctx context.Context, request ListReferentialRelationsRequest) (response ListReferentialRelationsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12465,42 +14969,42 @@ func (client DataSafeClient) ListMaskingReports(ctx context.Context, request Lis if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listMaskingReports, policy) + ociResponse, err = common.Retry(ctx, request, client.listReferentialRelations, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMaskingReportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListReferentialRelationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListMaskingReportsResponse{} + response = ListReferentialRelationsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListMaskingReportsResponse); ok { + if convertedResponse, ok := ociResponse.(ListReferentialRelationsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMaskingReportsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListReferentialRelationsResponse") } return } -// listMaskingReports implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listMaskingReports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listReferentialRelations implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listReferentialRelations(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingReports", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/referentialRelations", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListMaskingReportsResponse + var response ListReferentialRelationsResponse 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-safe/20181201/MaskingPolicy/ListMaskingReports" - err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingReports", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReferentialRelation/ListReferentialRelations" + err = common.PostProcessServiceError(err, "DataSafe", "ListReferentialRelations", apiReferenceLink) return response, err } @@ -12508,13 +15012,15 @@ func (client DataSafeClient) listMaskingReports(ctx context.Context, request com return response, err } -// ListMaskingSchemas Gets a list of masking schemas present in the specified masking policy and based on the specified query parameters. +// ListReportDefinitions Gets a list of report definitions. +// The ListReportDefinitions operation returns only the report definitions in the specified `compartmentId`. +// It also returns the seeded report definitions which are available to all the compartments. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListMaskingSchemas.go.html to see an example of how to use ListMaskingSchemas API. -// A default retry strategy applies to this operation ListMaskingSchemas() -func (client DataSafeClient) ListMaskingSchemas(ctx context.Context, request ListMaskingSchemasRequest) (response ListMaskingSchemasResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListReportDefinitions.go.html to see an example of how to use ListReportDefinitions API. +// A default retry strategy applies to this operation ListReportDefinitions() +func (client DataSafeClient) ListReportDefinitions(ctx context.Context, request ListReportDefinitionsRequest) (response ListReportDefinitionsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12523,42 +15029,42 @@ func (client DataSafeClient) ListMaskingSchemas(ctx context.Context, request Lis if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listMaskingSchemas, policy) + ociResponse, err = common.Retry(ctx, request, client.listReportDefinitions, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMaskingSchemasResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListReportDefinitionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListMaskingSchemasResponse{} + response = ListReportDefinitionsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListMaskingSchemasResponse); ok { + if convertedResponse, ok := ociResponse.(ListReportDefinitionsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMaskingSchemasResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListReportDefinitionsResponse") } return } -// listMaskingSchemas implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listMaskingSchemas(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listReportDefinitions implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listReportDefinitions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/maskingPolicies/{maskingPolicyId}/maskingSchemas", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/reportDefinitions", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListMaskingSchemasResponse + var response ListReportDefinitionsResponse 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-safe/20181201/MaskingSchemaCollection/ListMaskingSchemas" - err = common.PostProcessServiceError(err, "DataSafe", "ListMaskingSchemas", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReportDefinition/ListReportDefinitions" + err = common.PostProcessServiceError(err, "DataSafe", "ListReportDefinitions", apiReferenceLink) return response, err } @@ -12566,13 +15072,13 @@ func (client DataSafeClient) listMaskingSchemas(ctx context.Context, request com return response, err } -// ListOnPremConnectors Gets a list of on-premises connectors. +// ListReports Gets a list of all the reports in the compartment. It contains information such as report generation time. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListOnPremConnectors.go.html to see an example of how to use ListOnPremConnectors API. -// A default retry strategy applies to this operation ListOnPremConnectors() -func (client DataSafeClient) ListOnPremConnectors(ctx context.Context, request ListOnPremConnectorsRequest) (response ListOnPremConnectorsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListReports.go.html to see an example of how to use ListReports API. +// A default retry strategy applies to this operation ListReports() +func (client DataSafeClient) ListReports(ctx context.Context, request ListReportsRequest) (response ListReportsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12581,64 +15087,57 @@ func (client DataSafeClient) ListOnPremConnectors(ctx context.Context, request L if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listOnPremConnectors, policy) + ociResponse, err = common.Retry(ctx, request, client.listReports, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListOnPremConnectorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListReportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListOnPremConnectorsResponse{} + response = ListReportsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListOnPremConnectorsResponse); ok { + if convertedResponse, ok := ociResponse.(ListReportsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListOnPremConnectorsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListReportsResponse") } return } -// listOnPremConnectors implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listOnPremConnectors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listReports implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listReports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/onPremConnectors", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/reports", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListOnPremConnectorsResponse + var response ListReportsResponse 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-safe/20181201/OnPremConnectorSummary/ListOnPremConnectors" - err = common.PostProcessServiceError(err, "DataSafe", "ListOnPremConnectors", apiReferenceLink) - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListPasswordExpiryDateAnalytics Gets a list of count of the users with password expiry dates in next 30 days, between next 30-90 days, and beyond 90 days based on specified user assessment. -// It internally uses the aforementioned userAnalytics api. -// When you perform the ListPasswordExpiryDateAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the -// parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has READ -// permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the -// root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by -// compartmentId, then "Not Authorized" is returned. -// To use ListPasswordExpiryDateAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment, -// set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE. + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReportSummary/ListReports" + err = common.PostProcessServiceError(err, "DataSafe", "ListReports", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListRoleGrantPaths Retrieves a list of all role grant paths for a particular user. +// The ListRoleGrantPaths operation returns only the role grant paths for the specified security policy report. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListPasswordExpiryDateAnalytics.go.html to see an example of how to use ListPasswordExpiryDateAnalytics API. -// A default retry strategy applies to this operation ListPasswordExpiryDateAnalytics() -func (client DataSafeClient) ListPasswordExpiryDateAnalytics(ctx context.Context, request ListPasswordExpiryDateAnalyticsRequest) (response ListPasswordExpiryDateAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListRoleGrantPaths.go.html to see an example of how to use ListRoleGrantPaths API. +// A default retry strategy applies to this operation ListRoleGrantPaths() +func (client DataSafeClient) ListRoleGrantPaths(ctx context.Context, request ListRoleGrantPathsRequest) (response ListRoleGrantPathsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12647,42 +15146,42 @@ func (client DataSafeClient) ListPasswordExpiryDateAnalytics(ctx context.Context if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listPasswordExpiryDateAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.listRoleGrantPaths, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListPasswordExpiryDateAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListRoleGrantPathsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListPasswordExpiryDateAnalyticsResponse{} + response = ListRoleGrantPathsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListPasswordExpiryDateAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(ListRoleGrantPathsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListPasswordExpiryDateAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListRoleGrantPathsResponse") } return } -// listPasswordExpiryDateAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listPasswordExpiryDateAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listRoleGrantPaths implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listRoleGrantPaths(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}/passwordExpiryDateAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports/{securityPolicyReportId}/roleGrantPaths", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListPasswordExpiryDateAnalyticsResponse + var response ListRoleGrantPathsResponse 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-safe/20181201/UserAssessment/ListPasswordExpiryDateAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListPasswordExpiryDateAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/RoleGrantPathCollection/ListRoleGrantPaths" + err = common.PostProcessServiceError(err, "DataSafe", "ListRoleGrantPaths", apiReferenceLink) return response, err } @@ -12690,13 +15189,13 @@ func (client DataSafeClient) listPasswordExpiryDateAnalytics(ctx context.Context return response, err } -// ListPeerTargetDatabases Lists all the peer target databases under the primary target database identified by the OCID passed as path parameter. +// ListRoles Returns a list of role metadata objects. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListPeerTargetDatabases.go.html to see an example of how to use ListPeerTargetDatabases API. -// A default retry strategy applies to this operation ListPeerTargetDatabases() -func (client DataSafeClient) ListPeerTargetDatabases(ctx context.Context, request ListPeerTargetDatabasesRequest) (response ListPeerTargetDatabasesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListRoles.go.html to see an example of how to use ListRoles API. +// A default retry strategy applies to this operation ListRoles() +func (client DataSafeClient) ListRoles(ctx context.Context, request ListRolesRequest) (response ListRolesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12705,47 +15204,42 @@ func (client DataSafeClient) ListPeerTargetDatabases(ctx context.Context, reques 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.listPeerTargetDatabases, policy) + ociResponse, err = common.Retry(ctx, request, client.listRoles, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListPeerTargetDatabasesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListRolesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListPeerTargetDatabasesResponse{} + response = ListRolesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListPeerTargetDatabasesResponse); ok { + if convertedResponse, ok := ociResponse.(ListRolesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListPeerTargetDatabasesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListRolesResponse") } return } -// listPeerTargetDatabases implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listPeerTargetDatabases(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listRoles implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listRoles(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}/peerTargetDatabases", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}/roles", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListPeerTargetDatabasesResponse + var response ListRolesResponse 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-safe/20181201/PeerTargetDatabase/ListPeerTargetDatabases" - err = common.PostProcessServiceError(err, "DataSafe", "ListPeerTargetDatabases", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/ListRoles" + err = common.PostProcessServiceError(err, "DataSafe", "ListRoles", apiReferenceLink) return response, err } @@ -12753,24 +15247,13 @@ func (client DataSafeClient) listPeerTargetDatabases(ctx context.Context, reques return response, err } -// ListProfileAnalytics Gets a list of aggregated user profile details in the specified compartment. This provides information about the -// overall profiles available. For example, the user profile details include how many users have the profile assigned -// and do how many use password verification function. This data is especially useful content for dashboards or to support analytics. -// When you perform the ListProfileAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the -// parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has INSPECT -// permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the -// root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by -// compartmentId, then "Not Authorized" is returned. -// The parameter compartmentIdInSubtree applies when you perform ListProfileAnalytics on the compartmentId passed and when it is -// set to true, the entire hierarchy of compartments can be returned. -// To use ListProfileAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment, -// set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE. +// ListSchemas Returns list of schema. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListProfileAnalytics.go.html to see an example of how to use ListProfileAnalytics API. -// A default retry strategy applies to this operation ListProfileAnalytics() -func (client DataSafeClient) ListProfileAnalytics(ctx context.Context, request ListProfileAnalyticsRequest) (response ListProfileAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSchemas.go.html to see an example of how to use ListSchemas API. +// A default retry strategy applies to this operation ListSchemas() +func (client DataSafeClient) ListSchemas(ctx context.Context, request ListSchemasRequest) (response ListSchemasResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12779,42 +15262,42 @@ func (client DataSafeClient) ListProfileAnalytics(ctx context.Context, request L if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listProfileAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.listSchemas, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListProfileAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSchemasResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListProfileAnalyticsResponse{} + response = ListSchemasResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListProfileAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSchemasResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListProfileAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSchemasResponse") } return } -// listProfileAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listProfileAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSchemas implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSchemas(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}/profileAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}/schemas", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListProfileAnalyticsResponse + var response ListSchemasResponse 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-safe/20181201/Profile/ListProfileAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListProfileAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/ListSchemas" + err = common.PostProcessServiceError(err, "DataSafe", "ListSchemas", apiReferenceLink) return response, err } @@ -12822,24 +15305,13 @@ func (client DataSafeClient) listProfileAnalytics(ctx context.Context, request c return response, err } -// ListProfileSummaries Gets a list of user profiles containing the profile details along with the target id and user counts. -// The ListProfiles operation returns only the profiles belonging to a certain target. If compartment type user assessment -// id is provided, then profile information for all the targets belonging to the pertaining compartment is returned. -// The list does not include any subcompartments of the compartment under consideration. -// The parameter 'accessLevel' specifies whether to return only those compartments for which the requestor has -// INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a -// subcompartment) or to return Not Authorized if Principal doesn't have access to even one of the child compartments. -// This is valid only when 'compartmentIdInSubtree' is set to 'true'. -// The parameter 'compartmentIdInSubtree' applies when you perform ListUserProfiles on the 'compartmentId' belonging -// to the assessmentId passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter -// 'compartmentIdInSubtree' to true and 'accessLevel' to ACCESSIBLE. +// ListSdmMaskingPolicyDifferences Gets a list of SDM and masking policy difference resources based on the specified query parameters. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListProfileSummaries.go.html to see an example of how to use ListProfileSummaries API. -// A default retry strategy applies to this operation ListProfileSummaries() -func (client DataSafeClient) ListProfileSummaries(ctx context.Context, request ListProfileSummariesRequest) (response ListProfileSummariesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSdmMaskingPolicyDifferences.go.html to see an example of how to use ListSdmMaskingPolicyDifferences API. +// A default retry strategy applies to this operation ListSdmMaskingPolicyDifferences() +func (client DataSafeClient) ListSdmMaskingPolicyDifferences(ctx context.Context, request ListSdmMaskingPolicyDifferencesRequest) (response ListSdmMaskingPolicyDifferencesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12848,42 +15320,42 @@ func (client DataSafeClient) ListProfileSummaries(ctx context.Context, request L if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listProfileSummaries, policy) + ociResponse, err = common.Retry(ctx, request, client.listSdmMaskingPolicyDifferences, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListProfileSummariesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSdmMaskingPolicyDifferencesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListProfileSummariesResponse{} + response = ListSdmMaskingPolicyDifferencesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListProfileSummariesResponse); ok { + if convertedResponse, ok := ociResponse.(ListSdmMaskingPolicyDifferencesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListProfileSummariesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSdmMaskingPolicyDifferencesResponse") } return } -// listProfileSummaries implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listProfileSummaries(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSdmMaskingPolicyDifferences implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSdmMaskingPolicyDifferences(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/userAssessments/{userAssessmentId}/profiles", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sdmMaskingPolicyDifferences", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListProfileSummariesResponse + var response ListSdmMaskingPolicyDifferencesResponse 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-safe/20181201/UserAssessment/ListProfileSummaries" - err = common.PostProcessServiceError(err, "DataSafe", "ListProfileSummaries", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SdmMaskingPolicyDifference/ListSdmMaskingPolicyDifferences" + err = common.PostProcessServiceError(err, "DataSafe", "ListSdmMaskingPolicyDifferences", apiReferenceLink) return response, err } @@ -12891,13 +15363,24 @@ func (client DataSafeClient) listProfileSummaries(ctx context.Context, request c return response, err } -// ListReferentialRelations Gets a list of referential relations present in the specified sensitive data model based on the specified query parameters. +// ListSecurityAssessments Gets a list of security assessments. +// The ListSecurityAssessments operation returns only the assessments in the specified `compartmentId`. +// The list does not include any subcompartments of the compartmentId passed. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListSecurityAssessments on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListReferentialRelations.go.html to see an example of how to use ListReferentialRelations API. -// A default retry strategy applies to this operation ListReferentialRelations() -func (client DataSafeClient) ListReferentialRelations(ctx context.Context, request ListReferentialRelationsRequest) (response ListReferentialRelationsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityAssessments.go.html to see an example of how to use ListSecurityAssessments API. +// A default retry strategy applies to this operation ListSecurityAssessments() +func (client DataSafeClient) ListSecurityAssessments(ctx context.Context, request ListSecurityAssessmentsRequest) (response ListSecurityAssessmentsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12906,42 +15389,42 @@ func (client DataSafeClient) ListReferentialRelations(ctx context.Context, reque if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listReferentialRelations, policy) + ociResponse, err = common.Retry(ctx, request, client.listSecurityAssessments, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListReferentialRelationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSecurityAssessmentsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListReferentialRelationsResponse{} + response = ListSecurityAssessmentsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListReferentialRelationsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSecurityAssessmentsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListReferentialRelationsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSecurityAssessmentsResponse") } return } -// listReferentialRelations implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listReferentialRelations(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSecurityAssessments implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSecurityAssessments(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/referentialRelations", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListReferentialRelationsResponse + var response ListSecurityAssessmentsResponse 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-safe/20181201/ReferentialRelation/ListReferentialRelations" - err = common.PostProcessServiceError(err, "DataSafe", "ListReferentialRelations", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessmentSummary/ListSecurityAssessments" + err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityAssessments", apiReferenceLink) return response, err } @@ -12949,15 +15432,19 @@ func (client DataSafeClient) listReferentialRelations(ctx context.Context, reque return response, err } -// ListReportDefinitions Gets a list of report definitions. -// The ListReportDefinitions operation returns only the report definitions in the specified `compartmentId`. -// It also returns the seeded report definitions which are available to all the compartments. +// ListSecurityFeatureAnalytics Gets a list of Database security feature usage aggregated details in the specified compartment. This provides information about the +// overall security controls, by returning the counting number of the target databases using the security features. +// When you perform the ListSecurityFeatureAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the +// parameter accessLevel is set to ACCESSIBLE, then the operation returns statistics from the compartments in which the requestor has INSPECT +// permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the +// root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by +// compartmentId, then "Not Authorized" is returned. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListReportDefinitions.go.html to see an example of how to use ListReportDefinitions API. -// A default retry strategy applies to this operation ListReportDefinitions() -func (client DataSafeClient) ListReportDefinitions(ctx context.Context, request ListReportDefinitionsRequest) (response ListReportDefinitionsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityFeatureAnalytics.go.html to see an example of how to use ListSecurityFeatureAnalytics API. +// A default retry strategy applies to this operation ListSecurityFeatureAnalytics() +func (client DataSafeClient) ListSecurityFeatureAnalytics(ctx context.Context, request ListSecurityFeatureAnalyticsRequest) (response ListSecurityFeatureAnalyticsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -12966,42 +15453,42 @@ func (client DataSafeClient) ListReportDefinitions(ctx context.Context, request if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listReportDefinitions, policy) + ociResponse, err = common.Retry(ctx, request, client.listSecurityFeatureAnalytics, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListReportDefinitionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSecurityFeatureAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListReportDefinitionsResponse{} + response = ListSecurityFeatureAnalyticsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListReportDefinitionsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSecurityFeatureAnalyticsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListReportDefinitionsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSecurityFeatureAnalyticsResponse") } return } -// listReportDefinitions implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listReportDefinitions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSecurityFeatureAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSecurityFeatureAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/reportDefinitions", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/securityFeatureAnalytics", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListReportDefinitionsResponse + var response ListSecurityFeatureAnalyticsResponse 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-safe/20181201/ReportDefinition/ListReportDefinitions" - err = common.PostProcessServiceError(err, "DataSafe", "ListReportDefinitions", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/ListSecurityFeatureAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityFeatureAnalytics", apiReferenceLink) return response, err } @@ -13009,13 +15496,13 @@ func (client DataSafeClient) listReportDefinitions(ctx context.Context, request return response, err } -// ListReports Gets a list of all the reports in the compartment. It contains information such as report generation time. +// ListSecurityFeatures Lists the usage of Database security features for a given compartment or a target level, based on the filters provided. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListReports.go.html to see an example of how to use ListReports API. -// A default retry strategy applies to this operation ListReports() -func (client DataSafeClient) ListReports(ctx context.Context, request ListReportsRequest) (response ListReportsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityFeatures.go.html to see an example of how to use ListSecurityFeatures API. +// A default retry strategy applies to this operation ListSecurityFeatures() +func (client DataSafeClient) ListSecurityFeatures(ctx context.Context, request ListSecurityFeaturesRequest) (response ListSecurityFeaturesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13024,42 +15511,42 @@ func (client DataSafeClient) ListReports(ctx context.Context, request ListReport if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listReports, policy) + ociResponse, err = common.Retry(ctx, request, client.listSecurityFeatures, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListReportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSecurityFeaturesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListReportsResponse{} + response = ListSecurityFeaturesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListReportsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSecurityFeaturesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListReportsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSecurityFeaturesResponse") } return } -// listReports implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listReports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSecurityFeatures implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSecurityFeatures(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/reports", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/securityFeatures", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListReportsResponse + var response ListSecurityFeaturesResponse 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-safe/20181201/ReportSummary/ListReports" - err = common.PostProcessServiceError(err, "DataSafe", "ListReports", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/ListSecurityFeatures" + err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityFeatures", apiReferenceLink) return response, err } @@ -13067,14 +15554,23 @@ func (client DataSafeClient) listReports(ctx context.Context, request common.OCI return response, err } -// ListRoleGrantPaths Retrieves a list of all role grant paths for a particular user. -// The ListRoleGrantPaths operation returns only the role grant paths for the specified security policy report. +// ListSecurityPolicies Retrieves a list of all security policies in Data Safe. +// The ListSecurityPolicies operation returns only the security policies in the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListSecurityPolicies on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListRoleGrantPaths.go.html to see an example of how to use ListRoleGrantPaths API. -// A default retry strategy applies to this operation ListRoleGrantPaths() -func (client DataSafeClient) ListRoleGrantPaths(ctx context.Context, request ListRoleGrantPathsRequest) (response ListRoleGrantPathsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityPolicies.go.html to see an example of how to use ListSecurityPolicies API. +// A default retry strategy applies to this operation ListSecurityPolicies() +func (client DataSafeClient) ListSecurityPolicies(ctx context.Context, request ListSecurityPoliciesRequest) (response ListSecurityPoliciesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13083,42 +15579,42 @@ func (client DataSafeClient) ListRoleGrantPaths(ctx context.Context, request Lis if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listRoleGrantPaths, policy) + ociResponse, err = common.Retry(ctx, request, client.listSecurityPolicies, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListRoleGrantPathsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSecurityPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListRoleGrantPathsResponse{} + response = ListSecurityPoliciesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListRoleGrantPathsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSecurityPoliciesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListRoleGrantPathsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSecurityPoliciesResponse") } return } -// listRoleGrantPaths implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listRoleGrantPaths(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSecurityPolicies implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSecurityPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports/{securityPolicyReportId}/roleGrantPaths", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicies", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListRoleGrantPathsResponse + var response ListSecurityPoliciesResponse 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-safe/20181201/RoleGrantPathCollection/ListRoleGrantPaths" - err = common.PostProcessServiceError(err, "DataSafe", "ListRoleGrantPaths", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyCollection/ListSecurityPolicies" + err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityPolicies", apiReferenceLink) return response, err } @@ -13126,13 +15622,23 @@ func (client DataSafeClient) listRoleGrantPaths(ctx context.Context, request com return response, err } -// ListRoles Returns a list of role metadata objects. +// ListSecurityPolicyConfigs Retrieves a list of all security policy configurations in Data Safe. +// The ListSecurityPolicyConfigs operation returns only the security policy configurations in the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListSecurityPolicyConfigs on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListRoles.go.html to see an example of how to use ListRoles API. -// A default retry strategy applies to this operation ListRoles() -func (client DataSafeClient) ListRoles(ctx context.Context, request ListRolesRequest) (response ListRolesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityPolicyConfigs.go.html to see an example of how to use ListSecurityPolicyConfigs API. +// A default retry strategy applies to this operation ListSecurityPolicyConfigs() +func (client DataSafeClient) ListSecurityPolicyConfigs(ctx context.Context, request ListSecurityPolicyConfigsRequest) (response ListSecurityPolicyConfigsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13141,42 +15647,42 @@ func (client DataSafeClient) ListRoles(ctx context.Context, request ListRolesReq if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listRoles, policy) + ociResponse, err = common.Retry(ctx, request, client.listSecurityPolicyConfigs, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListRolesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSecurityPolicyConfigsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListRolesResponse{} + response = ListSecurityPolicyConfigsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListRolesResponse); ok { + if convertedResponse, ok := ociResponse.(ListSecurityPolicyConfigsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListRolesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSecurityPolicyConfigsResponse") } return } -// listRoles implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listRoles(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSecurityPolicyConfigs implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSecurityPolicyConfigs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}/roles", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyConfigs", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListRolesResponse + var response ListSecurityPolicyConfigsResponse 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-safe/20181201/TargetDatabase/ListRoles" - err = common.PostProcessServiceError(err, "DataSafe", "ListRoles", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyConfigCollection/ListSecurityPolicyConfigs" + err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityPolicyConfigs", apiReferenceLink) return response, err } @@ -13184,13 +15690,23 @@ func (client DataSafeClient) listRoles(ctx context.Context, request common.OCIRe return response, err } -// ListSchemas Returns list of schema. +// ListSecurityPolicyDeployments Retrieves a list of all security policy deployments in Data Safe. +// The ListSecurityPolicyDeployments operation returns only the security policy deployments in the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListSecurityPolicyDeployments on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSchemas.go.html to see an example of how to use ListSchemas API. -// A default retry strategy applies to this operation ListSchemas() -func (client DataSafeClient) ListSchemas(ctx context.Context, request ListSchemasRequest) (response ListSchemasResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityPolicyDeployments.go.html to see an example of how to use ListSecurityPolicyDeployments API. +// A default retry strategy applies to this operation ListSecurityPolicyDeployments() +func (client DataSafeClient) ListSecurityPolicyDeployments(ctx context.Context, request ListSecurityPolicyDeploymentsRequest) (response ListSecurityPolicyDeploymentsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13199,42 +15715,42 @@ func (client DataSafeClient) ListSchemas(ctx context.Context, request ListSchema if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSchemas, policy) + ociResponse, err = common.Retry(ctx, request, client.listSecurityPolicyDeployments, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSchemasResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSecurityPolicyDeploymentsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSchemasResponse{} + response = ListSecurityPolicyDeploymentsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSchemasResponse); ok { + if convertedResponse, ok := ociResponse.(ListSecurityPolicyDeploymentsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSchemasResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSecurityPolicyDeploymentsResponse") } return } -// listSchemas implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSchemas(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSecurityPolicyDeployments implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSecurityPolicyDeployments(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}/schemas", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyDeployments", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSchemasResponse + var response ListSecurityPolicyDeploymentsResponse 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-safe/20181201/TargetDatabase/ListSchemas" - err = common.PostProcessServiceError(err, "DataSafe", "ListSchemas", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyDeploymentCollection/ListSecurityPolicyDeployments" + err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityPolicyDeployments", apiReferenceLink) return response, err } @@ -13242,13 +15758,14 @@ func (client DataSafeClient) listSchemas(ctx context.Context, request common.OCI return response, err } -// ListSdmMaskingPolicyDifferences Gets a list of SDM and masking policy difference resources based on the specified query parameters. +// ListSecurityPolicyEntryStates Retrieves a list of all security policy entry states in Data Safe. +// The ListSecurityPolicyEntryStates operation returns only the security policy entry states for the specified security policy entry. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSdmMaskingPolicyDifferences.go.html to see an example of how to use ListSdmMaskingPolicyDifferences API. -// A default retry strategy applies to this operation ListSdmMaskingPolicyDifferences() -func (client DataSafeClient) ListSdmMaskingPolicyDifferences(ctx context.Context, request ListSdmMaskingPolicyDifferencesRequest) (response ListSdmMaskingPolicyDifferencesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityPolicyEntryStates.go.html to see an example of how to use ListSecurityPolicyEntryStates API. +// A default retry strategy applies to this operation ListSecurityPolicyEntryStates() +func (client DataSafeClient) ListSecurityPolicyEntryStates(ctx context.Context, request ListSecurityPolicyEntryStatesRequest) (response ListSecurityPolicyEntryStatesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13257,42 +15774,42 @@ func (client DataSafeClient) ListSdmMaskingPolicyDifferences(ctx context.Context if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSdmMaskingPolicyDifferences, policy) + ociResponse, err = common.Retry(ctx, request, client.listSecurityPolicyEntryStates, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSdmMaskingPolicyDifferencesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSecurityPolicyEntryStatesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSdmMaskingPolicyDifferencesResponse{} + response = ListSecurityPolicyEntryStatesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSdmMaskingPolicyDifferencesResponse); ok { + if convertedResponse, ok := ociResponse.(ListSecurityPolicyEntryStatesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSdmMaskingPolicyDifferencesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSecurityPolicyEntryStatesResponse") } return } -// listSdmMaskingPolicyDifferences implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSdmMaskingPolicyDifferences(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSecurityPolicyEntryStates implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSecurityPolicyEntryStates(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sdmMaskingPolicyDifferences", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyDeployments/{securityPolicyDeploymentId}/securityPolicyEntryStates", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSdmMaskingPolicyDifferencesResponse + var response ListSecurityPolicyEntryStatesResponse 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-safe/20181201/SdmMaskingPolicyDifference/ListSdmMaskingPolicyDifferences" - err = common.PostProcessServiceError(err, "DataSafe", "ListSdmMaskingPolicyDifferences", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyEntryStateCollection/ListSecurityPolicyEntryStates" + err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityPolicyEntryStates", apiReferenceLink) return response, err } @@ -13300,24 +15817,23 @@ func (client DataSafeClient) listSdmMaskingPolicyDifferences(ctx context.Context return response, err } -// ListSecurityAssessments Gets a list of security assessments. -// The ListSecurityAssessments operation returns only the assessments in the specified `compartmentId`. -// The list does not include any subcompartments of the compartmentId passed. +// ListSecurityPolicyReports Retrieves a list of all security policy reports in Data Safe. +// The ListSecurityPolicyReports operation returns only the security policy reports in the specified `compartmentId`. // The parameter `accessLevel` specifies whether to return only those compartments for which the // requestor has INSPECT permissions on at least one resource directly // or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if // Principal doesn't have access to even one of the child compartments. This is valid only when // `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListSecurityAssessments on the +// The parameter `compartmentIdInSubtree` applies when you perform ListSecurityPolicyReports on the // `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. // To get a full list of all compartments and subcompartments in the tenancy (root compartment), // set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityAssessments.go.html to see an example of how to use ListSecurityAssessments API. -// A default retry strategy applies to this operation ListSecurityAssessments() -func (client DataSafeClient) ListSecurityAssessments(ctx context.Context, request ListSecurityAssessmentsRequest) (response ListSecurityAssessmentsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityPolicyReports.go.html to see an example of how to use ListSecurityPolicyReports API. +// A default retry strategy applies to this operation ListSecurityPolicyReports() +func (client DataSafeClient) ListSecurityPolicyReports(ctx context.Context, request ListSecurityPolicyReportsRequest) (response ListSecurityPolicyReportsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13326,42 +15842,42 @@ func (client DataSafeClient) ListSecurityAssessments(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSecurityAssessments, policy) + ociResponse, err = common.Retry(ctx, request, client.listSecurityPolicyReports, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSecurityAssessmentsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSecurityPolicyReportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSecurityAssessmentsResponse{} + response = ListSecurityPolicyReportsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSecurityAssessmentsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSecurityPolicyReportsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSecurityAssessmentsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSecurityPolicyReportsResponse") } return } -// listSecurityAssessments implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSecurityAssessments(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSecurityPolicyReports implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSecurityPolicyReports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSecurityAssessmentsResponse + var response ListSecurityPolicyReportsResponse 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-safe/20181201/SecurityAssessmentSummary/ListSecurityAssessments" - err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityAssessments", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityPolicyReportCollection/ListSecurityPolicyReports" + err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityPolicyReports", apiReferenceLink) return response, err } @@ -13369,19 +15885,20 @@ func (client DataSafeClient) listSecurityAssessments(ctx context.Context, reques return response, err } -// ListSecurityFeatureAnalytics Gets a list of Database security feature usage aggregated details in the specified compartment. This provides information about the -// overall security controls, by returning the counting number of the target databases using the security features. -// When you perform the ListSecurityFeatureAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the -// parameter accessLevel is set to ACCESSIBLE, then the operation returns statistics from the compartments in which the requestor has INSPECT +// ListSensitiveColumnAnalytics Gets consolidated sensitive columns analytics data based on the specified query parameters. +// When you perform the ListSensitiveColumnAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the +// parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has INSPECT // permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the // root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by // compartmentId, then "Not Authorized" is returned. +// To use ListSensitiveColumnAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment, +// set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityFeatureAnalytics.go.html to see an example of how to use ListSecurityFeatureAnalytics API. -// A default retry strategy applies to this operation ListSecurityFeatureAnalytics() -func (client DataSafeClient) ListSecurityFeatureAnalytics(ctx context.Context, request ListSecurityFeatureAnalyticsRequest) (response ListSecurityFeatureAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveColumnAnalytics.go.html to see an example of how to use ListSensitiveColumnAnalytics API. +// A default retry strategy applies to this operation ListSensitiveColumnAnalytics() +func (client DataSafeClient) ListSensitiveColumnAnalytics(ctx context.Context, request ListSensitiveColumnAnalyticsRequest) (response ListSensitiveColumnAnalyticsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13390,42 +15907,42 @@ func (client DataSafeClient) ListSecurityFeatureAnalytics(ctx context.Context, r if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSecurityFeatureAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.listSensitiveColumnAnalytics, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSecurityFeatureAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSensitiveColumnAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSecurityFeatureAnalyticsResponse{} + response = ListSensitiveColumnAnalyticsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSecurityFeatureAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSensitiveColumnAnalyticsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSecurityFeatureAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveColumnAnalyticsResponse") } return } -// listSecurityFeatureAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSecurityFeatureAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSensitiveColumnAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSensitiveColumnAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/securityFeatureAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveColumnAnalytics", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSecurityFeatureAnalyticsResponse + var response ListSensitiveColumnAnalyticsResponse 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-safe/20181201/SecurityAssessment/ListSecurityFeatureAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityFeatureAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveDataModel/ListSensitiveColumnAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveColumnAnalytics", apiReferenceLink) return response, err } @@ -13433,13 +15950,13 @@ func (client DataSafeClient) listSecurityFeatureAnalytics(ctx context.Context, r return response, err } -// ListSecurityFeatures Lists the usage of Database security features for a given compartment or a target level, based on the filters provided. +// ListSensitiveColumns Gets a list of sensitive columns present in the specified sensitive data model based on the specified query parameters. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityFeatures.go.html to see an example of how to use ListSecurityFeatures API. -// A default retry strategy applies to this operation ListSecurityFeatures() -func (client DataSafeClient) ListSecurityFeatures(ctx context.Context, request ListSecurityFeaturesRequest) (response ListSecurityFeaturesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveColumns.go.html to see an example of how to use ListSensitiveColumns API. +// A default retry strategy applies to this operation ListSensitiveColumns() +func (client DataSafeClient) ListSensitiveColumns(ctx context.Context, request ListSensitiveColumnsRequest) (response ListSensitiveColumnsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13448,42 +15965,42 @@ func (client DataSafeClient) ListSecurityFeatures(ctx context.Context, request L if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSecurityFeatures, policy) + ociResponse, err = common.Retry(ctx, request, client.listSensitiveColumns, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSecurityFeaturesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSensitiveColumnsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSecurityFeaturesResponse{} + response = ListSensitiveColumnsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSecurityFeaturesResponse); ok { + if convertedResponse, ok := ociResponse.(ListSensitiveColumnsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSecurityFeaturesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveColumnsResponse") } return } -// listSecurityFeatures implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSecurityFeatures(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSensitiveColumns implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSensitiveColumns(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/securityFeatures", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSecurityFeaturesResponse + var response ListSensitiveColumnsResponse 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-safe/20181201/SecurityAssessment/ListSecurityFeatures" - err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityFeatures", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveColumn/ListSensitiveColumns" + err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveColumns", apiReferenceLink) return response, err } @@ -13491,23 +16008,13 @@ func (client DataSafeClient) listSecurityFeatures(ctx context.Context, request c return response, err } -// ListSecurityPolicies Retrieves a list of all security policies in Data Safe. -// The ListSecurityPolicies operation returns only the security policies in the specified `compartmentId`. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListSecurityPolicies on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// ListSensitiveDataModelSensitiveTypes Gets a list of sensitive type Ids present in the specified sensitive data model. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityPolicies.go.html to see an example of how to use ListSecurityPolicies API. -// A default retry strategy applies to this operation ListSecurityPolicies() -func (client DataSafeClient) ListSecurityPolicies(ctx context.Context, request ListSecurityPoliciesRequest) (response ListSecurityPoliciesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveDataModelSensitiveTypes.go.html to see an example of how to use ListSensitiveDataModelSensitiveTypes API. +// A default retry strategy applies to this operation ListSensitiveDataModelSensitiveTypes() +func (client DataSafeClient) ListSensitiveDataModelSensitiveTypes(ctx context.Context, request ListSensitiveDataModelSensitiveTypesRequest) (response ListSensitiveDataModelSensitiveTypesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13516,42 +16023,42 @@ func (client DataSafeClient) ListSecurityPolicies(ctx context.Context, request L if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSecurityPolicies, policy) + ociResponse, err = common.Retry(ctx, request, client.listSensitiveDataModelSensitiveTypes, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSecurityPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSensitiveDataModelSensitiveTypesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSecurityPoliciesResponse{} + response = ListSensitiveDataModelSensitiveTypesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSecurityPoliciesResponse); ok { + if convertedResponse, ok := ociResponse.(ListSensitiveDataModelSensitiveTypesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSecurityPoliciesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveDataModelSensitiveTypesResponse") } return } -// listSecurityPolicies implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSecurityPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSensitiveDataModelSensitiveTypes implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSensitiveDataModelSensitiveTypes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicies", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveTypes", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSecurityPoliciesResponse + var response ListSensitiveDataModelSensitiveTypesResponse 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-safe/20181201/SecurityPolicyCollection/ListSecurityPolicies" - err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityPolicies", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveDataModelSensitiveTypeCollection/ListSensitiveDataModelSensitiveTypes" + err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveDataModelSensitiveTypes", apiReferenceLink) return response, err } @@ -13559,23 +16066,13 @@ func (client DataSafeClient) listSecurityPolicies(ctx context.Context, request c return response, err } -// ListSecurityPolicyDeployments Retrieves a list of all security policy deployments in Data Safe. -// The ListSecurityPolicyDeployments operation returns only the security policy deployments in the specified `compartmentId`. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListSecurityPolicyDeployments on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// ListSensitiveDataModels Gets a list of sensitive data models based on the specified query parameters. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityPolicyDeployments.go.html to see an example of how to use ListSecurityPolicyDeployments API. -// A default retry strategy applies to this operation ListSecurityPolicyDeployments() -func (client DataSafeClient) ListSecurityPolicyDeployments(ctx context.Context, request ListSecurityPolicyDeploymentsRequest) (response ListSecurityPolicyDeploymentsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveDataModels.go.html to see an example of how to use ListSensitiveDataModels API. +// A default retry strategy applies to this operation ListSensitiveDataModels() +func (client DataSafeClient) ListSensitiveDataModels(ctx context.Context, request ListSensitiveDataModelsRequest) (response ListSensitiveDataModelsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13584,42 +16081,42 @@ func (client DataSafeClient) ListSecurityPolicyDeployments(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSecurityPolicyDeployments, policy) + ociResponse, err = common.Retry(ctx, request, client.listSensitiveDataModels, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSecurityPolicyDeploymentsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSensitiveDataModelsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSecurityPolicyDeploymentsResponse{} + response = ListSensitiveDataModelsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSecurityPolicyDeploymentsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSensitiveDataModelsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSecurityPolicyDeploymentsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveDataModelsResponse") } return } -// listSecurityPolicyDeployments implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSecurityPolicyDeployments(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSensitiveDataModels implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSensitiveDataModels(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyDeployments", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSecurityPolicyDeploymentsResponse + var response ListSensitiveDataModelsResponse 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-safe/20181201/SecurityPolicyDeploymentCollection/ListSecurityPolicyDeployments" - err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityPolicyDeployments", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveDataModel/ListSensitiveDataModels" + err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveDataModels", apiReferenceLink) return response, err } @@ -13627,14 +16124,13 @@ func (client DataSafeClient) listSecurityPolicyDeployments(ctx context.Context, return response, err } -// ListSecurityPolicyEntryStates Retrieves a list of all security policy entry states in Data Safe. -// The ListSecurityPolicyEntryStates operation returns only the security policy entry states for the specified security policy entry. +// ListSensitiveObjects Gets a list of sensitive objects present in the specified sensitive data model based on the specified query parameters. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityPolicyEntryStates.go.html to see an example of how to use ListSecurityPolicyEntryStates API. -// A default retry strategy applies to this operation ListSecurityPolicyEntryStates() -func (client DataSafeClient) ListSecurityPolicyEntryStates(ctx context.Context, request ListSecurityPolicyEntryStatesRequest) (response ListSecurityPolicyEntryStatesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveObjects.go.html to see an example of how to use ListSensitiveObjects API. +// A default retry strategy applies to this operation ListSensitiveObjects() +func (client DataSafeClient) ListSensitiveObjects(ctx context.Context, request ListSensitiveObjectsRequest) (response ListSensitiveObjectsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13643,42 +16139,42 @@ func (client DataSafeClient) ListSecurityPolicyEntryStates(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSecurityPolicyEntryStates, policy) + ociResponse, err = common.Retry(ctx, request, client.listSensitiveObjects, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSecurityPolicyEntryStatesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSensitiveObjectsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSecurityPolicyEntryStatesResponse{} + response = ListSensitiveObjectsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSecurityPolicyEntryStatesResponse); ok { + if convertedResponse, ok := ociResponse.(ListSensitiveObjectsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSecurityPolicyEntryStatesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveObjectsResponse") } return } -// listSecurityPolicyEntryStates implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSecurityPolicyEntryStates(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSensitiveObjects implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSensitiveObjects(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyDeployments/{securityPolicyDeploymentId}/securityPolicyEntryStates", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveObjects", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSecurityPolicyEntryStatesResponse + var response ListSensitiveObjectsResponse 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-safe/20181201/SecurityPolicyEntryStateCollection/ListSecurityPolicyEntryStates" - err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityPolicyEntryStates", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveObjectCollection/ListSensitiveObjects" + err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveObjects", apiReferenceLink) return response, err } @@ -13686,23 +16182,13 @@ func (client DataSafeClient) listSecurityPolicyEntryStates(ctx context.Context, return response, err } -// ListSecurityPolicyReports Retrieves a list of all security policy reports in Data Safe. -// The ListSecurityPolicyReports operation returns only the security policy reports in the specified `compartmentId`. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListSecurityPolicyReports on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// ListSensitiveSchemas Gets a list of sensitive schemas present in the specified sensitive data model based on the specified query parameters. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityPolicyReports.go.html to see an example of how to use ListSecurityPolicyReports API. -// A default retry strategy applies to this operation ListSecurityPolicyReports() -func (client DataSafeClient) ListSecurityPolicyReports(ctx context.Context, request ListSecurityPolicyReportsRequest) (response ListSecurityPolicyReportsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveSchemas.go.html to see an example of how to use ListSensitiveSchemas API. +// A default retry strategy applies to this operation ListSensitiveSchemas() +func (client DataSafeClient) ListSensitiveSchemas(ctx context.Context, request ListSensitiveSchemasRequest) (response ListSensitiveSchemasResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13711,42 +16197,42 @@ func (client DataSafeClient) ListSecurityPolicyReports(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSecurityPolicyReports, policy) + ociResponse, err = common.Retry(ctx, request, client.listSensitiveSchemas, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSecurityPolicyReportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSensitiveSchemasResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSecurityPolicyReportsResponse{} + response = ListSensitiveSchemasResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSecurityPolicyReportsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSensitiveSchemasResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSecurityPolicyReportsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveSchemasResponse") } return } -// listSecurityPolicyReports implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSecurityPolicyReports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSensitiveSchemas implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSensitiveSchemas(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityPolicyReports", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveSchemas", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSecurityPolicyReportsResponse + var response ListSensitiveSchemasResponse 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-safe/20181201/SecurityPolicyReportCollection/ListSecurityPolicyReports" - err = common.PostProcessServiceError(err, "DataSafe", "ListSecurityPolicyReports", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveSchemaCollection/ListSensitiveSchemas" + err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveSchemas", apiReferenceLink) return response, err } @@ -13754,20 +16240,13 @@ func (client DataSafeClient) listSecurityPolicyReports(ctx context.Context, requ return response, err } -// ListSensitiveColumnAnalytics Gets consolidated sensitive columns analytics data based on the specified query parameters. -// When you perform the ListSensitiveColumnAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the -// parameter accessLevel is set to ACCESSIBLE, then the operation returns compartments in which the requestor has INSPECT -// permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the -// root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by -// compartmentId, then "Not Authorized" is returned. -// To use ListSensitiveColumnAnalytics to get a full list of all compartments and subcompartments in the tenancy from the root compartment, -// set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE. +// ListSensitiveTypeGroups Gets a list of sensitive type groups based on the specified query parameters. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveColumnAnalytics.go.html to see an example of how to use ListSensitiveColumnAnalytics API. -// A default retry strategy applies to this operation ListSensitiveColumnAnalytics() -func (client DataSafeClient) ListSensitiveColumnAnalytics(ctx context.Context, request ListSensitiveColumnAnalyticsRequest) (response ListSensitiveColumnAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveTypeGroups.go.html to see an example of how to use ListSensitiveTypeGroups API. +// A default retry strategy applies to this operation ListSensitiveTypeGroups() +func (client DataSafeClient) ListSensitiveTypeGroups(ctx context.Context, request ListSensitiveTypeGroupsRequest) (response ListSensitiveTypeGroupsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13776,42 +16255,42 @@ func (client DataSafeClient) ListSensitiveColumnAnalytics(ctx context.Context, r if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSensitiveColumnAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.listSensitiveTypeGroups, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSensitiveColumnAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSensitiveTypeGroupsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSensitiveColumnAnalyticsResponse{} + response = ListSensitiveTypeGroupsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSensitiveColumnAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSensitiveTypeGroupsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveColumnAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveTypeGroupsResponse") } return } -// listSensitiveColumnAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSensitiveColumnAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSensitiveTypeGroups implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSensitiveTypeGroups(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveColumnAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypeGroups", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSensitiveColumnAnalyticsResponse + var response ListSensitiveTypeGroupsResponse 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-safe/20181201/SensitiveDataModel/ListSensitiveColumnAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveColumnAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveTypeGroupSummary/ListSensitiveTypeGroups" + err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveTypeGroups", apiReferenceLink) return response, err } @@ -13819,13 +16298,13 @@ func (client DataSafeClient) listSensitiveColumnAnalytics(ctx context.Context, r return response, err } -// ListSensitiveColumns Gets a list of sensitive columns present in the specified sensitive data model based on the specified query parameters. +// ListSensitiveTypes Gets a list of sensitive types based on the specified query parameters. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveColumns.go.html to see an example of how to use ListSensitiveColumns API. -// A default retry strategy applies to this operation ListSensitiveColumns() -func (client DataSafeClient) ListSensitiveColumns(ctx context.Context, request ListSensitiveColumnsRequest) (response ListSensitiveColumnsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveTypes.go.html to see an example of how to use ListSensitiveTypes API. +// A default retry strategy applies to this operation ListSensitiveTypes() +func (client DataSafeClient) ListSensitiveTypes(ctx context.Context, request ListSensitiveTypesRequest) (response ListSensitiveTypesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13834,42 +16313,42 @@ func (client DataSafeClient) ListSensitiveColumns(ctx context.Context, request L if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSensitiveColumns, policy) + ociResponse, err = common.Retry(ctx, request, client.listSensitiveTypes, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSensitiveColumnsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSensitiveTypesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSensitiveColumnsResponse{} + response = ListSensitiveTypesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSensitiveColumnsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSensitiveTypesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveColumnsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveTypesResponse") } return } -// listSensitiveColumns implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSensitiveColumns(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSensitiveTypes implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSensitiveTypes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveColumns", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypes", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSensitiveColumnsResponse + var response ListSensitiveTypesResponse 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-safe/20181201/SensitiveColumn/ListSensitiveColumns" - err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveColumns", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveType/ListSensitiveTypes" + err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveTypes", apiReferenceLink) return response, err } @@ -13877,13 +16356,14 @@ func (client DataSafeClient) listSensitiveColumns(ctx context.Context, request c return response, err } -// ListSensitiveDataModelSensitiveTypes Gets a list of sensitive type Ids present in the specified sensitive data model. +// ListSensitiveTypesExports Retrieves a list of all sensitive types export in Data Safe based on the specified query parameters. +// The ListSensitiveTypesExports operation returns only the sensitive types export in the specified `compartmentId`. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveDataModelSensitiveTypes.go.html to see an example of how to use ListSensitiveDataModelSensitiveTypes API. -// A default retry strategy applies to this operation ListSensitiveDataModelSensitiveTypes() -func (client DataSafeClient) ListSensitiveDataModelSensitiveTypes(ctx context.Context, request ListSensitiveDataModelSensitiveTypesRequest) (response ListSensitiveDataModelSensitiveTypesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveTypesExports.go.html to see an example of how to use ListSensitiveTypesExports API. +// A default retry strategy applies to this operation ListSensitiveTypesExports() +func (client DataSafeClient) ListSensitiveTypesExports(ctx context.Context, request ListSensitiveTypesExportsRequest) (response ListSensitiveTypesExportsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13892,42 +16372,42 @@ func (client DataSafeClient) ListSensitiveDataModelSensitiveTypes(ctx context.Co if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSensitiveDataModelSensitiveTypes, policy) + ociResponse, err = common.Retry(ctx, request, client.listSensitiveTypesExports, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSensitiveDataModelSensitiveTypesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSensitiveTypesExportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSensitiveDataModelSensitiveTypesResponse{} + response = ListSensitiveTypesExportsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSensitiveDataModelSensitiveTypesResponse); ok { + if convertedResponse, ok := ociResponse.(ListSensitiveTypesExportsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveDataModelSensitiveTypesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveTypesExportsResponse") } return } -// listSensitiveDataModelSensitiveTypes implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSensitiveDataModelSensitiveTypes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSensitiveTypesExports implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSensitiveTypesExports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveTypes", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypesExports", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSensitiveDataModelSensitiveTypesResponse + var response ListSensitiveTypesExportsResponse 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-safe/20181201/SensitiveDataModelSensitiveTypeCollection/ListSensitiveDataModelSensitiveTypes" - err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveDataModelSensitiveTypes", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveTypesExportCollection/ListSensitiveTypesExports" + err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveTypesExports", apiReferenceLink) return response, err } @@ -13935,13 +16415,23 @@ func (client DataSafeClient) listSensitiveDataModelSensitiveTypes(ctx context.Co return response, err } -// ListSensitiveDataModels Gets a list of sensitive data models based on the specified query parameters. +// ListSqlCollectionAnalytics Retrieves a list of all SQL collection analytics in Data Safe. +// The ListSqlCollectionAnalytics operation returns only the analytics for the SQL collections in the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListSqlCollections on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveDataModels.go.html to see an example of how to use ListSensitiveDataModels API. -// A default retry strategy applies to this operation ListSensitiveDataModels() -func (client DataSafeClient) ListSensitiveDataModels(ctx context.Context, request ListSensitiveDataModelsRequest) (response ListSensitiveDataModelsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlCollectionAnalytics.go.html to see an example of how to use ListSqlCollectionAnalytics API. +// A default retry strategy applies to this operation ListSqlCollectionAnalytics() +func (client DataSafeClient) ListSqlCollectionAnalytics(ctx context.Context, request ListSqlCollectionAnalyticsRequest) (response ListSqlCollectionAnalyticsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -13950,42 +16440,42 @@ func (client DataSafeClient) ListSensitiveDataModels(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSensitiveDataModels, policy) + ociResponse, err = common.Retry(ctx, request, client.listSqlCollectionAnalytics, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSensitiveDataModelsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSqlCollectionAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSensitiveDataModelsResponse{} + response = ListSqlCollectionAnalyticsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSensitiveDataModelsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSqlCollectionAnalyticsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveDataModelsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSqlCollectionAnalyticsResponse") } return } -// listSensitiveDataModels implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSensitiveDataModels(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSqlCollectionAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSqlCollectionAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlCollectionAnalytics", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSensitiveDataModelsResponse + var response ListSqlCollectionAnalyticsResponse 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-safe/20181201/SensitiveDataModel/ListSensitiveDataModels" - err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveDataModels", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlCollectionAnalyticsCollection/ListSqlCollectionAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListSqlCollectionAnalytics", apiReferenceLink) return response, err } @@ -13993,13 +16483,13 @@ func (client DataSafeClient) listSensitiveDataModels(ctx context.Context, reques return response, err } -// ListSensitiveObjects Gets a list of sensitive objects present in the specified sensitive data model based on the specified query parameters. +// ListSqlCollectionLogInsights Retrieves a list of the SQL collection log analytics. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveObjects.go.html to see an example of how to use ListSensitiveObjects API. -// A default retry strategy applies to this operation ListSensitiveObjects() -func (client DataSafeClient) ListSensitiveObjects(ctx context.Context, request ListSensitiveObjectsRequest) (response ListSensitiveObjectsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlCollectionLogInsights.go.html to see an example of how to use ListSqlCollectionLogInsights API. +// A default retry strategy applies to this operation ListSqlCollectionLogInsights() +func (client DataSafeClient) ListSqlCollectionLogInsights(ctx context.Context, request ListSqlCollectionLogInsightsRequest) (response ListSqlCollectionLogInsightsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14008,42 +16498,42 @@ func (client DataSafeClient) ListSensitiveObjects(ctx context.Context, request L if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSensitiveObjects, policy) + ociResponse, err = common.Retry(ctx, request, client.listSqlCollectionLogInsights, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSensitiveObjectsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSqlCollectionLogInsightsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSensitiveObjectsResponse{} + response = ListSqlCollectionLogInsightsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSensitiveObjectsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSqlCollectionLogInsightsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveObjectsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSqlCollectionLogInsightsResponse") } return } -// listSensitiveObjects implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSensitiveObjects(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSqlCollectionLogInsights implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSqlCollectionLogInsights(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveObjects", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlCollections/{sqlCollectionId}/logInsights", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSensitiveObjectsResponse + var response ListSqlCollectionLogInsightsResponse 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-safe/20181201/SensitiveObjectCollection/ListSensitiveObjects" - err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveObjects", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlCollectionLogInsightsCollection/ListSqlCollectionLogInsights" + err = common.PostProcessServiceError(err, "DataSafe", "ListSqlCollectionLogInsights", apiReferenceLink) return response, err } @@ -14051,13 +16541,23 @@ func (client DataSafeClient) listSensitiveObjects(ctx context.Context, request c return response, err } -// ListSensitiveSchemas Gets a list of sensitive schemas present in the specified sensitive data model based on the specified query parameters. +// ListSqlCollections Retrieves a list of all SQL collections in Data Safe. +// The ListSqlCollections operation returns only the SQL collections in the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListSqlCollections on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveSchemas.go.html to see an example of how to use ListSensitiveSchemas API. -// A default retry strategy applies to this operation ListSensitiveSchemas() -func (client DataSafeClient) ListSensitiveSchemas(ctx context.Context, request ListSensitiveSchemasRequest) (response ListSensitiveSchemasResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlCollections.go.html to see an example of how to use ListSqlCollections API. +// A default retry strategy applies to this operation ListSqlCollections() +func (client DataSafeClient) ListSqlCollections(ctx context.Context, request ListSqlCollectionsRequest) (response ListSqlCollectionsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14066,42 +16566,42 @@ func (client DataSafeClient) ListSensitiveSchemas(ctx context.Context, request L if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSensitiveSchemas, policy) + ociResponse, err = common.Retry(ctx, request, client.listSqlCollections, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSensitiveSchemasResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSqlCollectionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSensitiveSchemasResponse{} + response = ListSqlCollectionsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSensitiveSchemasResponse); ok { + if convertedResponse, ok := ociResponse.(ListSqlCollectionsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveSchemasResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSqlCollectionsResponse") } return } -// listSensitiveSchemas implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSensitiveSchemas(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSqlCollections implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSqlCollections(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveDataModels/{sensitiveDataModelId}/sensitiveSchemas", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlCollections", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSensitiveSchemasResponse + var response ListSqlCollectionsResponse 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-safe/20181201/SensitiveSchemaCollection/ListSensitiveSchemas" - err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveSchemas", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlCollectionCollection/ListSqlCollections" + err = common.PostProcessServiceError(err, "DataSafe", "ListSqlCollections", apiReferenceLink) return response, err } @@ -14109,13 +16609,23 @@ func (client DataSafeClient) listSensitiveSchemas(ctx context.Context, request c return response, err } -// ListSensitiveTypeGroups Gets a list of sensitive type groups based on the specified query parameters. +// ListSqlFirewallAllowedSqlAnalytics Returns the aggregation details of all SQL Firewall allowed SQL statements. +// The ListSqlFirewallAllowedSqlAnalytics operation returns the aggregates of the SQL Firewall allowed SQL statements in the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListSqlFirewallAllowedSqlAnalytics on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveTypeGroups.go.html to see an example of how to use ListSensitiveTypeGroups API. -// A default retry strategy applies to this operation ListSensitiveTypeGroups() -func (client DataSafeClient) ListSensitiveTypeGroups(ctx context.Context, request ListSensitiveTypeGroupsRequest) (response ListSensitiveTypeGroupsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlFirewallAllowedSqlAnalytics.go.html to see an example of how to use ListSqlFirewallAllowedSqlAnalytics API. +// A default retry strategy applies to this operation ListSqlFirewallAllowedSqlAnalytics() +func (client DataSafeClient) ListSqlFirewallAllowedSqlAnalytics(ctx context.Context, request ListSqlFirewallAllowedSqlAnalyticsRequest) (response ListSqlFirewallAllowedSqlAnalyticsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14124,42 +16634,42 @@ func (client DataSafeClient) ListSensitiveTypeGroups(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSensitiveTypeGroups, policy) + ociResponse, err = common.Retry(ctx, request, client.listSqlFirewallAllowedSqlAnalytics, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSensitiveTypeGroupsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSqlFirewallAllowedSqlAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSensitiveTypeGroupsResponse{} + response = ListSqlFirewallAllowedSqlAnalyticsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSensitiveTypeGroupsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSqlFirewallAllowedSqlAnalyticsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveTypeGroupsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSqlFirewallAllowedSqlAnalyticsResponse") } return } -// listSensitiveTypeGroups implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSensitiveTypeGroups(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSqlFirewallAllowedSqlAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSqlFirewallAllowedSqlAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypeGroups", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallAllowedSqlAnalytics", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSensitiveTypeGroupsResponse + var response ListSqlFirewallAllowedSqlAnalyticsResponse 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-safe/20181201/SensitiveTypeGroupSummary/ListSensitiveTypeGroups" - err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveTypeGroups", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallAllowedSqlAnalyticsCollection/ListSqlFirewallAllowedSqlAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListSqlFirewallAllowedSqlAnalytics", apiReferenceLink) return response, err } @@ -14167,13 +16677,23 @@ func (client DataSafeClient) listSensitiveTypeGroups(ctx context.Context, reques return response, err } -// ListSensitiveTypes Gets a list of sensitive types based on the specified query parameters. +// ListSqlFirewallAllowedSqls Retrieves a list of all SQL Firewall allowed SQL statements. +// The ListSqlFirewallAllowedSqls operation returns only the SQL Firewall allowed SQL statements in the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListSqlFirewallPolicies on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveTypes.go.html to see an example of how to use ListSensitiveTypes API. -// A default retry strategy applies to this operation ListSensitiveTypes() -func (client DataSafeClient) ListSensitiveTypes(ctx context.Context, request ListSensitiveTypesRequest) (response ListSensitiveTypesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlFirewallAllowedSqls.go.html to see an example of how to use ListSqlFirewallAllowedSqls API. +// A default retry strategy applies to this operation ListSqlFirewallAllowedSqls() +func (client DataSafeClient) ListSqlFirewallAllowedSqls(ctx context.Context, request ListSqlFirewallAllowedSqlsRequest) (response ListSqlFirewallAllowedSqlsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14182,42 +16702,42 @@ func (client DataSafeClient) ListSensitiveTypes(ctx context.Context, request Lis if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSensitiveTypes, policy) + ociResponse, err = common.Retry(ctx, request, client.listSqlFirewallAllowedSqls, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSensitiveTypesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSqlFirewallAllowedSqlsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSensitiveTypesResponse{} + response = ListSqlFirewallAllowedSqlsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSensitiveTypesResponse); ok { + if convertedResponse, ok := ociResponse.(ListSqlFirewallAllowedSqlsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveTypesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSqlFirewallAllowedSqlsResponse") } return } -// listSensitiveTypes implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSensitiveTypes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSqlFirewallAllowedSqls implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSqlFirewallAllowedSqls(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypes", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallAllowedSqls", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSensitiveTypesResponse + var response ListSqlFirewallAllowedSqlsResponse 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-safe/20181201/SensitiveType/ListSensitiveTypes" - err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveTypes", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallAllowedSqlCollection/ListSqlFirewallAllowedSqls" + err = common.PostProcessServiceError(err, "DataSafe", "ListSqlFirewallAllowedSqls", apiReferenceLink) return response, err } @@ -14225,14 +16745,23 @@ func (client DataSafeClient) listSensitiveTypes(ctx context.Context, request com return response, err } -// ListSensitiveTypesExports Retrieves a list of all sensitive types export in Data Safe based on the specified query parameters. -// The ListSensitiveTypesExports operation returns only the sensitive types export in the specified `compartmentId`. +// ListSqlFirewallPolicies Retrieves a list of all SQL Firewall policies. +// The ListSqlFirewallPolicies operation returns only the SQL Firewall policies in the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requestor has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListSqlFirewallPolicies on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSensitiveTypesExports.go.html to see an example of how to use ListSensitiveTypesExports API. -// A default retry strategy applies to this operation ListSensitiveTypesExports() -func (client DataSafeClient) ListSensitiveTypesExports(ctx context.Context, request ListSensitiveTypesExportsRequest) (response ListSensitiveTypesExportsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlFirewallPolicies.go.html to see an example of how to use ListSqlFirewallPolicies API. +// A default retry strategy applies to this operation ListSqlFirewallPolicies() +func (client DataSafeClient) ListSqlFirewallPolicies(ctx context.Context, request ListSqlFirewallPoliciesRequest) (response ListSqlFirewallPoliciesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14241,42 +16770,42 @@ func (client DataSafeClient) ListSensitiveTypesExports(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSensitiveTypesExports, policy) + ociResponse, err = common.Retry(ctx, request, client.listSqlFirewallPolicies, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSensitiveTypesExportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSqlFirewallPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSensitiveTypesExportsResponse{} + response = ListSqlFirewallPoliciesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSensitiveTypesExportsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSqlFirewallPoliciesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSensitiveTypesExportsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSqlFirewallPoliciesResponse") } return } -// listSensitiveTypesExports implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSensitiveTypesExports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSqlFirewallPolicies implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSqlFirewallPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sensitiveTypesExports", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallPolicies", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSensitiveTypesExportsResponse + var response ListSqlFirewallPoliciesResponse 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-safe/20181201/SensitiveTypesExportCollection/ListSensitiveTypesExports" - err = common.PostProcessServiceError(err, "DataSafe", "ListSensitiveTypesExports", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallPolicyCollection/ListSqlFirewallPolicies" + err = common.PostProcessServiceError(err, "DataSafe", "ListSqlFirewallPolicies", apiReferenceLink) return response, err } @@ -14284,23 +16813,22 @@ func (client DataSafeClient) listSensitiveTypesExports(ctx context.Context, requ return response, err } -// ListSqlCollectionAnalytics Retrieves a list of all SQL collection analytics in Data Safe. -// The ListSqlCollectionAnalytics operation returns only the analytics for the SQL collections in the specified `compartmentId`. +// ListSqlFirewallPolicyAnalytics Gets a list of aggregated SQL Firewall policy details. // The parameter `accessLevel` specifies whether to return only those compartments for which the // requestor has INSPECT permissions on at least one resource directly // or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when +// principal doesn't have access to even one of the child compartments. This is valid only when // `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListSqlCollections on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// The parameter `compartmentIdInSubtree` applies when you perform SummarizedSqlFirewallPolicyInfo on the specified +// `compartmentId` and when it is set to true, the entire hierarchy of compartments can be returned. // To get a full list of all compartments and subcompartments in the tenancy (root compartment), // set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlCollectionAnalytics.go.html to see an example of how to use ListSqlCollectionAnalytics API. -// A default retry strategy applies to this operation ListSqlCollectionAnalytics() -func (client DataSafeClient) ListSqlCollectionAnalytics(ctx context.Context, request ListSqlCollectionAnalyticsRequest) (response ListSqlCollectionAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlFirewallPolicyAnalytics.go.html to see an example of how to use ListSqlFirewallPolicyAnalytics API. +// A default retry strategy applies to this operation ListSqlFirewallPolicyAnalytics() +func (client DataSafeClient) ListSqlFirewallPolicyAnalytics(ctx context.Context, request ListSqlFirewallPolicyAnalyticsRequest) (response ListSqlFirewallPolicyAnalyticsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14309,42 +16837,42 @@ func (client DataSafeClient) ListSqlCollectionAnalytics(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSqlCollectionAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.listSqlFirewallPolicyAnalytics, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSqlCollectionAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSqlFirewallPolicyAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSqlCollectionAnalyticsResponse{} + response = ListSqlFirewallPolicyAnalyticsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSqlCollectionAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSqlFirewallPolicyAnalyticsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSqlCollectionAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSqlFirewallPolicyAnalyticsResponse") } return } -// listSqlCollectionAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSqlCollectionAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSqlFirewallPolicyAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSqlFirewallPolicyAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlCollectionAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallPolicyAnalytics", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSqlCollectionAnalyticsResponse + var response ListSqlFirewallPolicyAnalyticsResponse 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-safe/20181201/SqlCollectionAnalyticsCollection/ListSqlCollectionAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListSqlCollectionAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallPolicyAnalyticsCollection/ListSqlFirewallPolicyAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListSqlFirewallPolicyAnalytics", apiReferenceLink) return response, err } @@ -14352,13 +16880,13 @@ func (client DataSafeClient) listSqlCollectionAnalytics(ctx context.Context, req return response, err } -// ListSqlCollectionLogInsights Retrieves a list of the SQL collection log analytics. -// -// # See also +// ListSqlFirewallViolationAnalytics Returns the aggregation details of the SQL Firewall violations. // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlCollectionLogInsights.go.html to see an example of how to use ListSqlCollectionLogInsights API. -// A default retry strategy applies to this operation ListSqlCollectionLogInsights() -func (client DataSafeClient) ListSqlCollectionLogInsights(ctx context.Context, request ListSqlCollectionLogInsightsRequest) (response ListSqlCollectionLogInsightsResponse, err error) { +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlFirewallViolationAnalytics.go.html to see an example of how to use ListSqlFirewallViolationAnalytics API. +// A default retry strategy applies to this operation ListSqlFirewallViolationAnalytics() +func (client DataSafeClient) ListSqlFirewallViolationAnalytics(ctx context.Context, request ListSqlFirewallViolationAnalyticsRequest) (response ListSqlFirewallViolationAnalyticsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14367,42 +16895,47 @@ func (client DataSafeClient) ListSqlCollectionLogInsights(ctx context.Context, r if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSqlCollectionLogInsights, policy) + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.listSqlFirewallViolationAnalytics, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSqlCollectionLogInsightsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSqlFirewallViolationAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSqlCollectionLogInsightsResponse{} + response = ListSqlFirewallViolationAnalyticsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSqlCollectionLogInsightsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSqlFirewallViolationAnalyticsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSqlCollectionLogInsightsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSqlFirewallViolationAnalyticsResponse") } return } -// listSqlCollectionLogInsights implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSqlCollectionLogInsights(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSqlFirewallViolationAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSqlFirewallViolationAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlCollections/{sqlCollectionId}/logInsights", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallViolationAnalytics", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSqlCollectionLogInsightsResponse + var response ListSqlFirewallViolationAnalyticsResponse 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-safe/20181201/SqlCollectionLogInsightsCollection/ListSqlCollectionLogInsights" - err = common.PostProcessServiceError(err, "DataSafe", "ListSqlCollectionLogInsights", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallViolationSummary/ListSqlFirewallViolationAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListSqlFirewallViolationAnalytics", apiReferenceLink) return response, err } @@ -14410,23 +16943,13 @@ func (client DataSafeClient) listSqlCollectionLogInsights(ctx context.Context, r return response, err } -// ListSqlCollections Retrieves a list of all SQL collections in Data Safe. -// The ListSqlCollections operation returns only the SQL collections in the specified `compartmentId`. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListSqlCollections on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// ListSqlFirewallViolations Gets a list of all the SQL Firewall violations captured by the firewall. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlCollections.go.html to see an example of how to use ListSqlCollections API. -// A default retry strategy applies to this operation ListSqlCollections() -func (client DataSafeClient) ListSqlCollections(ctx context.Context, request ListSqlCollectionsRequest) (response ListSqlCollectionsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlFirewallViolations.go.html to see an example of how to use ListSqlFirewallViolations API. +// A default retry strategy applies to this operation ListSqlFirewallViolations() +func (client DataSafeClient) ListSqlFirewallViolations(ctx context.Context, request ListSqlFirewallViolationsRequest) (response ListSqlFirewallViolationsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14435,42 +16958,42 @@ func (client DataSafeClient) ListSqlCollections(ctx context.Context, request Lis if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSqlCollections, policy) + ociResponse, err = common.Retry(ctx, request, client.listSqlFirewallViolations, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSqlCollectionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListSqlFirewallViolationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSqlCollectionsResponse{} + response = ListSqlFirewallViolationsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSqlCollectionsResponse); ok { + if convertedResponse, ok := ociResponse.(ListSqlFirewallViolationsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSqlCollectionsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListSqlFirewallViolationsResponse") } return } -// listSqlCollections implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSqlCollections(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listSqlFirewallViolations implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listSqlFirewallViolations(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlCollections", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallViolations", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSqlCollectionsResponse + var response ListSqlFirewallViolationsResponse 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-safe/20181201/SqlCollectionCollection/ListSqlCollections" - err = common.PostProcessServiceError(err, "DataSafe", "ListSqlCollections", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallViolationSummary/ListSqlFirewallViolations" + err = common.PostProcessServiceError(err, "DataSafe", "ListSqlFirewallViolations", apiReferenceLink) return response, err } @@ -14478,23 +17001,13 @@ func (client DataSafeClient) listSqlCollections(ctx context.Context, request com return response, err } -// ListSqlFirewallAllowedSqlAnalytics Returns the aggregation details of all SQL Firewall allowed SQL statements. -// The ListSqlFirewallAllowedSqlAnalytics operation returns the aggregates of the SQL Firewall allowed SQL statements in the specified `compartmentId`. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListSqlFirewallAllowedSqlAnalytics on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// ListTables Returns a list of table metadata objects. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlFirewallAllowedSqlAnalytics.go.html to see an example of how to use ListSqlFirewallAllowedSqlAnalytics API. -// A default retry strategy applies to this operation ListSqlFirewallAllowedSqlAnalytics() -func (client DataSafeClient) ListSqlFirewallAllowedSqlAnalytics(ctx context.Context, request ListSqlFirewallAllowedSqlAnalyticsRequest) (response ListSqlFirewallAllowedSqlAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTables.go.html to see an example of how to use ListTables API. +// A default retry strategy applies to this operation ListTables() +func (client DataSafeClient) ListTables(ctx context.Context, request ListTablesRequest) (response ListTablesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14503,42 +17016,42 @@ func (client DataSafeClient) ListSqlFirewallAllowedSqlAnalytics(ctx context.Cont if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSqlFirewallAllowedSqlAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.listTables, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSqlFirewallAllowedSqlAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListTablesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSqlFirewallAllowedSqlAnalyticsResponse{} + response = ListTablesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSqlFirewallAllowedSqlAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(ListTablesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSqlFirewallAllowedSqlAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListTablesResponse") } return } -// listSqlFirewallAllowedSqlAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSqlFirewallAllowedSqlAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listTables implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listTables(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallAllowedSqlAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}/tables", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSqlFirewallAllowedSqlAnalyticsResponse + var response ListTablesResponse 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-safe/20181201/SqlFirewallAllowedSqlAnalyticsCollection/ListSqlFirewallAllowedSqlAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListSqlFirewallAllowedSqlAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/ListTables" + err = common.PostProcessServiceError(err, "DataSafe", "ListTables", apiReferenceLink) return response, err } @@ -14546,23 +17059,13 @@ func (client DataSafeClient) listSqlFirewallAllowedSqlAnalytics(ctx context.Cont return response, err } -// ListSqlFirewallAllowedSqls Retrieves a list of all SQL Firewall allowed SQL statements. -// The ListSqlFirewallAllowedSqls operation returns only the SQL Firewall allowed SQL statements in the specified `compartmentId`. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListSqlFirewallPolicies on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// ListTargetAlertPolicyAssociations Gets a list of all target-alert policy associations. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlFirewallAllowedSqls.go.html to see an example of how to use ListSqlFirewallAllowedSqls API. -// A default retry strategy applies to this operation ListSqlFirewallAllowedSqls() -func (client DataSafeClient) ListSqlFirewallAllowedSqls(ctx context.Context, request ListSqlFirewallAllowedSqlsRequest) (response ListSqlFirewallAllowedSqlsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTargetAlertPolicyAssociations.go.html to see an example of how to use ListTargetAlertPolicyAssociations API. +// A default retry strategy applies to this operation ListTargetAlertPolicyAssociations() +func (client DataSafeClient) ListTargetAlertPolicyAssociations(ctx context.Context, request ListTargetAlertPolicyAssociationsRequest) (response ListTargetAlertPolicyAssociationsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14571,42 +17074,42 @@ func (client DataSafeClient) ListSqlFirewallAllowedSqls(ctx context.Context, req if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSqlFirewallAllowedSqls, policy) + ociResponse, err = common.Retry(ctx, request, client.listTargetAlertPolicyAssociations, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSqlFirewallAllowedSqlsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListTargetAlertPolicyAssociationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSqlFirewallAllowedSqlsResponse{} + response = ListTargetAlertPolicyAssociationsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSqlFirewallAllowedSqlsResponse); ok { + if convertedResponse, ok := ociResponse.(ListTargetAlertPolicyAssociationsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSqlFirewallAllowedSqlsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListTargetAlertPolicyAssociationsResponse") } return } -// listSqlFirewallAllowedSqls implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSqlFirewallAllowedSqls(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listTargetAlertPolicyAssociations implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listTargetAlertPolicyAssociations(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallAllowedSqls", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetAlertPolicyAssociations", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSqlFirewallAllowedSqlsResponse + var response ListTargetAlertPolicyAssociationsResponse 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-safe/20181201/SqlFirewallAllowedSqlCollection/ListSqlFirewallAllowedSqls" - err = common.PostProcessServiceError(err, "DataSafe", "ListSqlFirewallAllowedSqls", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetAlertPolicyAssociationSummary/ListTargetAlertPolicyAssociations" + err = common.PostProcessServiceError(err, "DataSafe", "ListTargetAlertPolicyAssociations", apiReferenceLink) return response, err } @@ -14614,23 +17117,13 @@ func (client DataSafeClient) listSqlFirewallAllowedSqls(ctx context.Context, req return response, err } -// ListSqlFirewallPolicies Retrieves a list of all SQL Firewall policies. -// The ListSqlFirewallPolicies operation returns only the SQL Firewall policies in the specified `compartmentId`. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// Principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform ListSqlFirewallPolicies on the -// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// ListTargetDatabaseGroups Retrieves a list of target database groups according to the specified query parameters. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlFirewallPolicies.go.html to see an example of how to use ListSqlFirewallPolicies API. -// A default retry strategy applies to this operation ListSqlFirewallPolicies() -func (client DataSafeClient) ListSqlFirewallPolicies(ctx context.Context, request ListSqlFirewallPoliciesRequest) (response ListSqlFirewallPoliciesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTargetDatabaseGroups.go.html to see an example of how to use ListTargetDatabaseGroups API. +// A default retry strategy applies to this operation ListTargetDatabaseGroups() +func (client DataSafeClient) ListTargetDatabaseGroups(ctx context.Context, request ListTargetDatabaseGroupsRequest) (response ListTargetDatabaseGroupsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14639,42 +17132,42 @@ func (client DataSafeClient) ListSqlFirewallPolicies(ctx context.Context, reques if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSqlFirewallPolicies, policy) + ociResponse, err = common.Retry(ctx, request, client.listTargetDatabaseGroups, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSqlFirewallPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListTargetDatabaseGroupsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSqlFirewallPoliciesResponse{} + response = ListTargetDatabaseGroupsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSqlFirewallPoliciesResponse); ok { + if convertedResponse, ok := ociResponse.(ListTargetDatabaseGroupsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSqlFirewallPoliciesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListTargetDatabaseGroupsResponse") } return } -// listSqlFirewallPolicies implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSqlFirewallPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listTargetDatabaseGroups implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listTargetDatabaseGroups(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallPolicies", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabaseGroups", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSqlFirewallPoliciesResponse + var response ListTargetDatabaseGroupsResponse 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-safe/20181201/SqlFirewallPolicyCollection/ListSqlFirewallPolicies" - err = common.PostProcessServiceError(err, "DataSafe", "ListSqlFirewallPolicies", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabaseGroupSummary/ListTargetDatabaseGroups" + err = common.PostProcessServiceError(err, "DataSafe", "ListTargetDatabaseGroups", apiReferenceLink) return response, err } @@ -14682,22 +17175,13 @@ func (client DataSafeClient) listSqlFirewallPolicies(ctx context.Context, reques return response, err } -// ListSqlFirewallPolicyAnalytics Gets a list of aggregated SQL Firewall policy details. -// The parameter `accessLevel` specifies whether to return only those compartments for which the -// requestor has INSPECT permissions on at least one resource directly -// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if -// principal doesn't have access to even one of the child compartments. This is valid only when -// `compartmentIdInSubtree` is set to `true`. -// The parameter `compartmentIdInSubtree` applies when you perform SummarizedSqlFirewallPolicyInfo on the specified -// `compartmentId` and when it is set to true, the entire hierarchy of compartments can be returned. -// To get a full list of all compartments and subcompartments in the tenancy (root compartment), -// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. +// ListTargetDatabases Returns the list of registered target databases in Data Safe. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlFirewallPolicyAnalytics.go.html to see an example of how to use ListSqlFirewallPolicyAnalytics API. -// A default retry strategy applies to this operation ListSqlFirewallPolicyAnalytics() -func (client DataSafeClient) ListSqlFirewallPolicyAnalytics(ctx context.Context, request ListSqlFirewallPolicyAnalyticsRequest) (response ListSqlFirewallPolicyAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTargetDatabases.go.html to see an example of how to use ListTargetDatabases API. +// A default retry strategy applies to this operation ListTargetDatabases() +func (client DataSafeClient) ListTargetDatabases(ctx context.Context, request ListTargetDatabasesRequest) (response ListTargetDatabasesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14706,42 +17190,42 @@ func (client DataSafeClient) ListSqlFirewallPolicyAnalytics(ctx context.Context, if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSqlFirewallPolicyAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.listTargetDatabases, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSqlFirewallPolicyAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListTargetDatabasesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSqlFirewallPolicyAnalyticsResponse{} + response = ListTargetDatabasesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSqlFirewallPolicyAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(ListTargetDatabasesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSqlFirewallPolicyAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListTargetDatabasesResponse") } return } -// listSqlFirewallPolicyAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSqlFirewallPolicyAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listTargetDatabases implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listTargetDatabases(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallPolicyAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSqlFirewallPolicyAnalyticsResponse + var response ListTargetDatabasesResponse 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-safe/20181201/SqlFirewallPolicyAnalyticsCollection/ListSqlFirewallPolicyAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListSqlFirewallPolicyAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabaseSummary/ListTargetDatabases" + err = common.PostProcessServiceError(err, "DataSafe", "ListTargetDatabases", apiReferenceLink) return response, err } @@ -14749,13 +17233,13 @@ func (client DataSafeClient) listSqlFirewallPolicyAnalytics(ctx context.Context, return response, err } -// ListSqlFirewallViolationAnalytics Returns the aggregation details of the SQL Firewall violations. +// ListTargetOverrides Gets a list of all targets whose audit settings override the target group setting. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlFirewallViolationAnalytics.go.html to see an example of how to use ListSqlFirewallViolationAnalytics API. -// A default retry strategy applies to this operation ListSqlFirewallViolationAnalytics() -func (client DataSafeClient) ListSqlFirewallViolationAnalytics(ctx context.Context, request ListSqlFirewallViolationAnalyticsRequest) (response ListSqlFirewallViolationAnalyticsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTargetOverrides.go.html to see an example of how to use ListTargetOverrides API. +// A default retry strategy applies to this operation ListTargetOverrides() +func (client DataSafeClient) ListTargetOverrides(ctx context.Context, request ListTargetOverridesRequest) (response ListTargetOverridesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14764,47 +17248,42 @@ func (client DataSafeClient) ListSqlFirewallViolationAnalytics(ctx context.Conte 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.listSqlFirewallViolationAnalytics, policy) + ociResponse, err = common.Retry(ctx, request, client.listTargetOverrides, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSqlFirewallViolationAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListTargetOverridesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSqlFirewallViolationAnalyticsResponse{} + response = ListTargetOverridesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSqlFirewallViolationAnalyticsResponse); ok { + if convertedResponse, ok := ociResponse.(ListTargetOverridesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSqlFirewallViolationAnalyticsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListTargetOverridesResponse") } return } -// listSqlFirewallViolationAnalytics implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSqlFirewallViolationAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listTargetOverrides implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listTargetOverrides(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallViolationAnalytics", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/auditProfiles/{auditProfileId}/targetOverrides", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSqlFirewallViolationAnalyticsResponse + var response ListTargetOverridesResponse 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-safe/20181201/SqlFirewallViolationSummary/ListSqlFirewallViolationAnalytics" - err = common.PostProcessServiceError(err, "DataSafe", "ListSqlFirewallViolationAnalytics", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AuditProfile/ListTargetOverrides" + err = common.PostProcessServiceError(err, "DataSafe", "ListTargetOverrides", apiReferenceLink) return response, err } @@ -14812,13 +17291,25 @@ func (client DataSafeClient) listSqlFirewallViolationAnalytics(ctx context.Conte return response, err } -// ListSqlFirewallViolations Gets a list of all the SQL Firewall violations captured by the firewall. +// ListTemplateAnalytics Gets a list of template aggregated details in the specified compartment. This provides information about the +// overall template usage, by returning the count of the target databases/target groups using the templates. It also provides information +// about the statistics for the template baseline and the comparison related. If the comparison is done, it will show if there is any drift, +// and how many checks have drifts. +// The dimension field - isGroup identifies if the targetId belongs to a target group or a individual target. +// The dimension field - isCompared identifies if the comparison between the latest assessment and the template baseline assessment is done or not. +// The dimension field - isCompliant identifies if the latest assessment is compliant with the template baseline assessment or not. +// The dimension field - totalChecksFailed identifies how many checks in the template have drifts in the comparison. +// When you perform the ListTemplateAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the +// parameter accessLevel is set to ACCESSIBLE, then the operation returns statistics from the compartments in which the requestor has INSPECT +// permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the +// root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by +// compartmentId, then "Not Authorized" is returned. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSqlFirewallViolations.go.html to see an example of how to use ListSqlFirewallViolations API. -// A default retry strategy applies to this operation ListSqlFirewallViolations() -func (client DataSafeClient) ListSqlFirewallViolations(ctx context.Context, request ListSqlFirewallViolationsRequest) (response ListSqlFirewallViolationsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTemplateAnalytics.go.html to see an example of how to use ListTemplateAnalytics API. +// A default retry strategy applies to this operation ListTemplateAnalytics() +func (client DataSafeClient) ListTemplateAnalytics(ctx context.Context, request ListTemplateAnalyticsRequest) (response ListTemplateAnalyticsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14827,42 +17318,42 @@ func (client DataSafeClient) ListSqlFirewallViolations(ctx context.Context, requ if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listSqlFirewallViolations, policy) + ociResponse, err = common.Retry(ctx, request, client.listTemplateAnalytics, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSqlFirewallViolationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListTemplateAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListSqlFirewallViolationsResponse{} + response = ListTemplateAnalyticsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListSqlFirewallViolationsResponse); ok { + if convertedResponse, ok := ociResponse.(ListTemplateAnalyticsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSqlFirewallViolationsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListTemplateAnalyticsResponse") } return } -// listSqlFirewallViolations implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listSqlFirewallViolations(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listTemplateAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listTemplateAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/sqlFirewallViolations", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/templateAnalytics", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListSqlFirewallViolationsResponse + var response ListTemplateAnalyticsResponse 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-safe/20181201/SqlFirewallViolationSummary/ListSqlFirewallViolations" - err = common.PostProcessServiceError(err, "DataSafe", "ListSqlFirewallViolations", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/ListTemplateAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListTemplateAnalytics", apiReferenceLink) return response, err } @@ -14870,13 +17361,24 @@ func (client DataSafeClient) listSqlFirewallViolations(ctx context.Context, requ return response, err } -// ListTables Returns a list of table metadata objects. +// ListTemplateAssociationAnalytics Gets a list of template association details in the specified compartment. This provides information about the +// overall template usage, by returning the count of the target databases/target groups using the templates. +// If the template baseline is created for a target group which contains several targets, we will have each individual target +// listed there as targetId field together with targetDatabaseGroupId. And if the template baseline is created for an individual target, +// it will have targetId field only. +// By leveraging the targetId filter, you will be able to know all the template or template baseline that this target has something to do with. +// No matter if they are directly applied or created for this target, or they are for the target group the target belongs to. +// When you perform the ListTemplateAssociationAnalytics operation, if the parameter compartmentIdInSubtree is set to "true," and if the +// parameter accessLevel is set to ACCESSIBLE, then the operation returns statistics from the compartments in which the requestor has INSPECT +// permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the +// root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by +// compartmentId, then "Not Authorized" is returned. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTables.go.html to see an example of how to use ListTables API. -// A default retry strategy applies to this operation ListTables() -func (client DataSafeClient) ListTables(ctx context.Context, request ListTablesRequest) (response ListTablesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTemplateAssociationAnalytics.go.html to see an example of how to use ListTemplateAssociationAnalytics API. +// A default retry strategy applies to this operation ListTemplateAssociationAnalytics() +func (client DataSafeClient) ListTemplateAssociationAnalytics(ctx context.Context, request ListTemplateAssociationAnalyticsRequest) (response ListTemplateAssociationAnalyticsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14885,42 +17387,42 @@ func (client DataSafeClient) ListTables(ctx context.Context, request ListTablesR if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listTables, policy) + ociResponse, err = common.Retry(ctx, request, client.listTemplateAssociationAnalytics, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListTablesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListTemplateAssociationAnalyticsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListTablesResponse{} + response = ListTemplateAssociationAnalyticsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListTablesResponse); ok { + if convertedResponse, ok := ociResponse.(ListTemplateAssociationAnalyticsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListTablesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListTemplateAssociationAnalyticsResponse") } return } -// listTables implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listTables(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listTemplateAssociationAnalytics implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listTemplateAssociationAnalytics(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases/{targetDatabaseId}/tables", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/securityAssessments/templateAssociationAnalytics", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListTablesResponse + var response ListTemplateAssociationAnalyticsResponse 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-safe/20181201/TargetDatabase/ListTables" - err = common.PostProcessServiceError(err, "DataSafe", "ListTables", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/ListTemplateAssociationAnalytics" + err = common.PostProcessServiceError(err, "DataSafe", "ListTemplateAssociationAnalytics", apiReferenceLink) return response, err } @@ -14928,13 +17430,23 @@ func (client DataSafeClient) listTables(ctx context.Context, request common.OCIR return response, err } -// ListTargetAlertPolicyAssociations Gets a list of all target-alert policy associations. +// ListUnifiedAuditPolicies Retrieves a list of all Unified Audit policies. +// The ListUnifiedAuditPolicies operation returns only the Unified Audit policies in the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requester has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a sub-compartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListUnifiedAuditPolicies on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and sub-compartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTargetAlertPolicyAssociations.go.html to see an example of how to use ListTargetAlertPolicyAssociations API. -// A default retry strategy applies to this operation ListTargetAlertPolicyAssociations() -func (client DataSafeClient) ListTargetAlertPolicyAssociations(ctx context.Context, request ListTargetAlertPolicyAssociationsRequest) (response ListTargetAlertPolicyAssociationsResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListUnifiedAuditPolicies.go.html to see an example of how to use ListUnifiedAuditPolicies API. +// A default retry strategy applies to this operation ListUnifiedAuditPolicies() +func (client DataSafeClient) ListUnifiedAuditPolicies(ctx context.Context, request ListUnifiedAuditPoliciesRequest) (response ListUnifiedAuditPoliciesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -14943,42 +17455,42 @@ func (client DataSafeClient) ListTargetAlertPolicyAssociations(ctx context.Conte if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listTargetAlertPolicyAssociations, policy) + ociResponse, err = common.Retry(ctx, request, client.listUnifiedAuditPolicies, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListTargetAlertPolicyAssociationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListUnifiedAuditPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListTargetAlertPolicyAssociationsResponse{} + response = ListUnifiedAuditPoliciesResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListTargetAlertPolicyAssociationsResponse); ok { + if convertedResponse, ok := ociResponse.(ListUnifiedAuditPoliciesResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListTargetAlertPolicyAssociationsResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListUnifiedAuditPoliciesResponse") } return } -// listTargetAlertPolicyAssociations implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listTargetAlertPolicyAssociations(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listUnifiedAuditPolicies implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listUnifiedAuditPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetAlertPolicyAssociations", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/unifiedAuditPolicies", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListTargetAlertPolicyAssociationsResponse + var response ListUnifiedAuditPoliciesResponse 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-safe/20181201/TargetAlertPolicyAssociationSummary/ListTargetAlertPolicyAssociations" - err = common.PostProcessServiceError(err, "DataSafe", "ListTargetAlertPolicyAssociations", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicyCollection/ListUnifiedAuditPolicies" + err = common.PostProcessServiceError(err, "DataSafe", "ListUnifiedAuditPolicies", apiReferenceLink) return response, err } @@ -14986,13 +17498,23 @@ func (client DataSafeClient) listTargetAlertPolicyAssociations(ctx context.Conte return response, err } -// ListTargetDatabases Returns the list of registered target databases in Data Safe. +// ListUnifiedAuditPolicyDefinitions Retrieves a list of all unified audit policy definitions in Data Safe. +// The ListUnifiedAuditPolicyDefinitions operation returns only the unified audit policy definitions in the specified `compartmentId`. +// The parameter `accessLevel` specifies whether to return only those compartments for which the +// requester has INSPECT permissions on at least one resource directly +// or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if +// Principal doesn't have access to even one of the child compartments. This is valid only when +// `compartmentIdInSubtree` is set to `true`. +// The parameter `compartmentIdInSubtree` applies when you perform ListUnifiedAuditPolicyDefinitions on the +// `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. +// To get a full list of all compartments and subcompartments in the tenancy (root compartment), +// set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTargetDatabases.go.html to see an example of how to use ListTargetDatabases API. -// A default retry strategy applies to this operation ListTargetDatabases() -func (client DataSafeClient) ListTargetDatabases(ctx context.Context, request ListTargetDatabasesRequest) (response ListTargetDatabasesResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListUnifiedAuditPolicyDefinitions.go.html to see an example of how to use ListUnifiedAuditPolicyDefinitions API. +// A default retry strategy applies to this operation ListUnifiedAuditPolicyDefinitions() +func (client DataSafeClient) ListUnifiedAuditPolicyDefinitions(ctx context.Context, request ListUnifiedAuditPolicyDefinitionsRequest) (response ListUnifiedAuditPolicyDefinitionsResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -15001,42 +17523,42 @@ func (client DataSafeClient) ListTargetDatabases(ctx context.Context, request Li if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } - ociResponse, err = common.Retry(ctx, request, client.listTargetDatabases, policy) + ociResponse, err = common.Retry(ctx, request, client.listUnifiedAuditPolicyDefinitions, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListTargetDatabasesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = ListUnifiedAuditPolicyDefinitionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = ListTargetDatabasesResponse{} + response = ListUnifiedAuditPolicyDefinitionsResponse{} } } return } - if convertedResponse, ok := ociResponse.(ListTargetDatabasesResponse); ok { + if convertedResponse, ok := ociResponse.(ListUnifiedAuditPolicyDefinitionsResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into ListTargetDatabasesResponse") + err = fmt.Errorf("failed to convert OCIResponse into ListUnifiedAuditPolicyDefinitionsResponse") } return } -// listTargetDatabases implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) listTargetDatabases(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// listUnifiedAuditPolicyDefinitions implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) listUnifiedAuditPolicyDefinitions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodGet, "/targetDatabases", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodGet, "/unifiedAuditPolicyDefinitions", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response ListTargetDatabasesResponse + var response ListUnifiedAuditPolicyDefinitionsResponse 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-safe/20181201/TargetDatabaseSummary/ListTargetDatabases" - err = common.PostProcessServiceError(err, "DataSafe", "ListTargetDatabases", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/UnifiedAuditPolicyDefinitionCollection/ListUnifiedAuditPolicyDefinitions" + err = common.PostProcessServiceError(err, "DataSafe", "ListUnifiedAuditPolicyDefinitions", apiReferenceLink) return response, err } @@ -15659,6 +18181,65 @@ func (client DataSafeClient) patchAlerts(ctx context.Context, request common.OCI return response, err } +// PatchChecks Patches one or more checks in the specified template type security assessment. Use it to add or delete checks. +// To add check, use CreateCheckDetails as the patch value. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/PatchChecks.go.html to see an example of how to use PatchChecks API. +// A default retry strategy applies to this operation PatchChecks() +func (client DataSafeClient) PatchChecks(ctx context.Context, request PatchChecksRequest) (response PatchChecksResponse, 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.patchChecks, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = PatchChecksResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = PatchChecksResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(PatchChecksResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into PatchChecksResponse") + } + return +} + +// patchChecks implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) patchChecks(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPatch, "/securityAssessments/{securityAssessmentId}/checks", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response PatchChecksResponse + 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-safe/20181201/SecurityAssessment/PatchChecks" + err = common.PostProcessServiceError(err, "DataSafe", "PatchChecks", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // PatchDiscoveryJobResults Patches one or more discovery results. You can use this operation to set the plannedAction attribute before using // ApplyDiscoveryJobResults to process the results based on this attribute. // @@ -15718,6 +18299,64 @@ func (client DataSafeClient) patchDiscoveryJobResults(ctx context.Context, reque return response, err } +// PatchFindings Patches one or more findings in the specified template baseline type security assessment. Use it to modify max allowed risk level in template baseline. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/PatchFindings.go.html to see an example of how to use PatchFindings API. +// A default retry strategy applies to this operation PatchFindings() +func (client DataSafeClient) PatchFindings(ctx context.Context, request PatchFindingsRequest) (response PatchFindingsResponse, 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.patchFindings, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = PatchFindingsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = PatchFindingsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(PatchFindingsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into PatchFindingsResponse") + } + return +} + +// patchFindings implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) patchFindings(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPatch, "/securityAssessments/{securityAssessmentId}/findings", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response PatchFindingsResponse + 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-safe/20181201/SecurityAssessment/PatchFindings" + err = common.PostProcessServiceError(err, "DataSafe", "PatchFindings", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // PatchGroupedSensitiveTypes Patches one or more sensitive types in a sensitive type group. You can use this operation to add or remove // sensitive type ids in a sensitive type group. // @@ -16326,6 +18965,69 @@ func (client DataSafeClient) refreshSecurityAssessment(ctx context.Context, requ return response, err } +// RefreshSecurityPolicyDeployment Retrieve all the security policies from the associated target or target group and refresh the same on Data safe. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/RefreshSecurityPolicyDeployment.go.html to see an example of how to use RefreshSecurityPolicyDeployment API. +// A default retry strategy applies to this operation RefreshSecurityPolicyDeployment() +func (client DataSafeClient) RefreshSecurityPolicyDeployment(ctx context.Context, request RefreshSecurityPolicyDeploymentRequest) (response RefreshSecurityPolicyDeploymentResponse, 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.refreshSecurityPolicyDeployment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RefreshSecurityPolicyDeploymentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RefreshSecurityPolicyDeploymentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RefreshSecurityPolicyDeploymentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RefreshSecurityPolicyDeploymentResponse") + } + return +} + +// refreshSecurityPolicyDeployment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) refreshSecurityPolicyDeployment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityPolicyDeployments/{securityPolicyDeploymentId}/actions/refresh", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RefreshSecurityPolicyDeploymentResponse + 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-safe/20181201/SecurityPolicyDeployment/RefreshSecurityPolicyDeployment" + err = common.PostProcessServiceError(err, "DataSafe", "RefreshSecurityPolicyDeployment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // RefreshSqlCollectionLogInsights Refresh the specified SQL collection Log Insights. // // # See also @@ -16479,37 +19181,100 @@ func (client DataSafeClient) RefreshUserAssessment(ctx context.Context, request if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = RefreshUserAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = RefreshUserAssessmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RefreshUserAssessmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RefreshUserAssessmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RefreshUserAssessmentResponse") + } + return +} + +// refreshUserAssessment implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) refreshUserAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/userAssessments/{userAssessmentId}/actions/refresh", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RefreshUserAssessmentResponse + 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-safe/20181201/UserAssessment/RefreshUserAssessment" + err = common.PostProcessServiceError(err, "DataSafe", "RefreshUserAssessment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// RemoveScheduleReport Deletes the schedule of a .xls or .pdf report. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/RemoveScheduleReport.go.html to see an example of how to use RemoveScheduleReport API. +// A default retry strategy applies to this operation RemoveScheduleReport() +func (client DataSafeClient) RemoveScheduleReport(ctx context.Context, request RemoveScheduleReportRequest) (response RemoveScheduleReportResponse, 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.removeScheduleReport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RemoveScheduleReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = RefreshUserAssessmentResponse{} + response = RemoveScheduleReportResponse{} } } return } - if convertedResponse, ok := ociResponse.(RefreshUserAssessmentResponse); ok { + if convertedResponse, ok := ociResponse.(RemoveScheduleReportResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into RefreshUserAssessmentResponse") + err = fmt.Errorf("failed to convert OCIResponse into RemoveScheduleReportResponse") } return } -// refreshUserAssessment implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) refreshUserAssessment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// removeScheduleReport implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) removeScheduleReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/userAssessments/{userAssessmentId}/actions/refresh", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/reportDefinitions/{reportDefinitionId}/actions/removeScheduleReport", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response RefreshUserAssessmentResponse + var response RemoveScheduleReportResponse 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-safe/20181201/UserAssessment/RefreshUserAssessment" - err = common.PostProcessServiceError(err, "DataSafe", "RefreshUserAssessment", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/ReportDefinition/RemoveScheduleReport" + err = common.PostProcessServiceError(err, "DataSafe", "RemoveScheduleReport", apiReferenceLink) return response, err } @@ -16517,13 +19282,13 @@ func (client DataSafeClient) refreshUserAssessment(ctx context.Context, request return response, err } -// RemoveScheduleReport Deletes the schedule of a .xls or .pdf report. +// RemoveSecurityAssessmentTemplate Remove the checks from the template to the specified security assessment.The security assessment provided in the path needs to be of type 'LATEST'. // // # See also // -// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/RemoveScheduleReport.go.html to see an example of how to use RemoveScheduleReport API. -// A default retry strategy applies to this operation RemoveScheduleReport() -func (client DataSafeClient) RemoveScheduleReport(ctx context.Context, request RemoveScheduleReportRequest) (response RemoveScheduleReportResponse, err error) { +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/RemoveSecurityAssessmentTemplate.go.html to see an example of how to use RemoveSecurityAssessmentTemplate API. +// A default retry strategy applies to this operation RemoveSecurityAssessmentTemplate() +func (client DataSafeClient) RemoveSecurityAssessmentTemplate(ctx context.Context, request RemoveSecurityAssessmentTemplateRequest) (response RemoveSecurityAssessmentTemplateResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { @@ -16537,42 +19302,42 @@ func (client DataSafeClient) RemoveScheduleReport(ctx context.Context, request R request.OpcRetryToken = common.String(common.RetryToken()) } - ociResponse, err = common.Retry(ctx, request, client.removeScheduleReport, policy) + ociResponse, err = common.Retry(ctx, request, client.removeSecurityAssessmentTemplate, policy) if err != nil { if ociResponse != nil { if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { opcRequestId := httpResponse.Header.Get("opc-request-id") - response = RemoveScheduleReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + response = RemoveSecurityAssessmentTemplateResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} } else { - response = RemoveScheduleReportResponse{} + response = RemoveSecurityAssessmentTemplateResponse{} } } return } - if convertedResponse, ok := ociResponse.(RemoveScheduleReportResponse); ok { + if convertedResponse, ok := ociResponse.(RemoveSecurityAssessmentTemplateResponse); ok { response = convertedResponse } else { - err = fmt.Errorf("failed to convert OCIResponse into RemoveScheduleReportResponse") + err = fmt.Errorf("failed to convert OCIResponse into RemoveSecurityAssessmentTemplateResponse") } return } -// removeScheduleReport implements the OCIOperation interface (enables retrying operations) -func (client DataSafeClient) removeScheduleReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { +// removeSecurityAssessmentTemplate implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) removeSecurityAssessmentTemplate(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - httpRequest, err := request.HTTPRequest(http.MethodPost, "/reportDefinitions/{reportDefinitionId}/actions/removeScheduleReport", binaryReqBody, extraHeaders) + httpRequest, err := request.HTTPRequest(http.MethodPost, "/securityAssessments/{securityAssessmentId}/actions/removeTemplate", binaryReqBody, extraHeaders) if err != nil { return nil, err } - var response RemoveScheduleReportResponse + var response RemoveSecurityAssessmentTemplateResponse 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-safe/20181201/ReportDefinition/RemoveScheduleReport" - err = common.PostProcessServiceError(err, "DataSafe", "RemoveScheduleReport", apiReferenceLink) + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/RemoveSecurityAssessmentTemplate" + err = common.PostProcessServiceError(err, "DataSafe", "RemoveSecurityAssessmentTemplate", apiReferenceLink) return response, err } @@ -17567,6 +20332,64 @@ func (client DataSafeClient) updateAlertPolicyRule(ctx context.Context, request return response, err } +// UpdateAttributeSet Updates an attribute set. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/UpdateAttributeSet.go.html to see an example of how to use UpdateAttributeSet API. +// A default retry strategy applies to this operation UpdateAttributeSet() +func (client DataSafeClient) UpdateAttributeSet(ctx context.Context, request UpdateAttributeSetRequest) (response UpdateAttributeSetResponse, 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.updateAttributeSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateAttributeSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateAttributeSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateAttributeSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateAttributeSetResponse") + } + return +} + +// updateAttributeSet implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) updateAttributeSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/attributeSets/{attributeSetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateAttributeSetResponse + 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-safe/20181201/AttributeSet/UpdateAttributeSet" + err = common.PostProcessServiceError(err, "DataSafe", "UpdateAttributeSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateAuditArchiveRetrieval Updates the audit archive retrieval. // // # See also @@ -18637,6 +21460,64 @@ func (client DataSafeClient) updateSecurityPolicy(ctx context.Context, request c return response, err } +// UpdateSecurityPolicyConfig Updates the security policy configuration. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/UpdateSecurityPolicyConfig.go.html to see an example of how to use UpdateSecurityPolicyConfig API. +// A default retry strategy applies to this operation UpdateSecurityPolicyConfig() +func (client DataSafeClient) UpdateSecurityPolicyConfig(ctx context.Context, request UpdateSecurityPolicyConfigRequest) (response UpdateSecurityPolicyConfigResponse, 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.updateSecurityPolicyConfig, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateSecurityPolicyConfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateSecurityPolicyConfigResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateSecurityPolicyConfigResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateSecurityPolicyConfigResponse") + } + return +} + +// updateSecurityPolicyConfig implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) updateSecurityPolicyConfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/securityPolicyConfigs/{securityPolicyConfigId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateSecurityPolicyConfigResponse + 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-safe/20181201/SecurityPolicyConfig/UpdateSecurityPolicyConfig" + err = common.PostProcessServiceError(err, "DataSafe", "UpdateSecurityPolicyConfig", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateSecurityPolicyDeployment Updates the security policy deployment. // // # See also @@ -19223,6 +22104,185 @@ func (client DataSafeClient) updateTargetDatabase(ctx context.Context, request c return response, err } +// UpdateTargetDatabaseGroup Updates one or more attributes of the specified target database group. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/UpdateTargetDatabaseGroup.go.html to see an example of how to use UpdateTargetDatabaseGroup API. +// A default retry strategy applies to this operation UpdateTargetDatabaseGroup() +func (client DataSafeClient) UpdateTargetDatabaseGroup(ctx context.Context, request UpdateTargetDatabaseGroupRequest) (response UpdateTargetDatabaseGroupResponse, 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.updateTargetDatabaseGroup, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateTargetDatabaseGroupResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateTargetDatabaseGroupResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateTargetDatabaseGroupResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateTargetDatabaseGroupResponse") + } + return +} + +// updateTargetDatabaseGroup implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) updateTargetDatabaseGroup(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/targetDatabaseGroups/{targetDatabaseGroupId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateTargetDatabaseGroupResponse + 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-safe/20181201/TargetDatabaseGroup/UpdateTargetDatabaseGroup" + err = common.PostProcessServiceError(err, "DataSafe", "UpdateTargetDatabaseGroup", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateUnifiedAuditPolicy Updates the Unified Audit policy. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/UpdateUnifiedAuditPolicy.go.html to see an example of how to use UpdateUnifiedAuditPolicy API. +// A default retry strategy applies to this operation UpdateUnifiedAuditPolicy() +func (client DataSafeClient) UpdateUnifiedAuditPolicy(ctx context.Context, request UpdateUnifiedAuditPolicyRequest) (response UpdateUnifiedAuditPolicyResponse, 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.updateUnifiedAuditPolicy, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateUnifiedAuditPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateUnifiedAuditPolicyResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateUnifiedAuditPolicyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateUnifiedAuditPolicyResponse") + } + return +} + +// updateUnifiedAuditPolicy implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) updateUnifiedAuditPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/unifiedAuditPolicies/{unifiedAuditPolicyId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateUnifiedAuditPolicyResponse + 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-safe/20181201/UnifiedAuditPolicy/UpdateUnifiedAuditPolicy" + err = common.PostProcessServiceError(err, "DataSafe", "UpdateUnifiedAuditPolicy", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateUnifiedAuditPolicyDefinition Updates the unified audit policy definition. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/UpdateUnifiedAuditPolicyDefinition.go.html to see an example of how to use UpdateUnifiedAuditPolicyDefinition API. +// A default retry strategy applies to this operation UpdateUnifiedAuditPolicyDefinition() +func (client DataSafeClient) UpdateUnifiedAuditPolicyDefinition(ctx context.Context, request UpdateUnifiedAuditPolicyDefinitionRequest) (response UpdateUnifiedAuditPolicyDefinitionResponse, 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.updateUnifiedAuditPolicyDefinition, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateUnifiedAuditPolicyDefinitionResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateUnifiedAuditPolicyDefinitionResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateUnifiedAuditPolicyDefinitionResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateUnifiedAuditPolicyDefinitionResponse") + } + return +} + +// updateUnifiedAuditPolicyDefinition implements the OCIOperation interface (enables retrying operations) +func (client DataSafeClient) updateUnifiedAuditPolicyDefinition(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/unifiedAuditPolicyDefinitions/{unifiedAuditPolicyDefinitionId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateUnifiedAuditPolicyDefinitionResponse + 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-safe/20181201/UnifiedAuditPolicyDefinition/UpdateUnifiedAuditPolicyDefinition" + err = common.PostProcessServiceError(err, "DataSafe", "UpdateUnifiedAuditPolicyDefinition", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // UpdateUserAssessment Updates one or more attributes of the specified user assessment. This operation allows to update the user assessment displayName, description, or schedule. // // # See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_attribute_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_attribute_set_request_response.go new file mode 100644 index 00000000000..0f5c4e3315a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_attribute_set_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteAttributeSetRequest wrapper for the DeleteAttributeSet operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteAttributeSet.go.html to see an example of how to use DeleteAttributeSetRequest. +type DeleteAttributeSetRequest struct { + + // OCID of an attribute set. + AttributeSetId *string `mandatory:"true" contributesTo:"path" name:"attributeSetId"` + + // 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 DeleteAttributeSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteAttributeSetRequest) 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 DeleteAttributeSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteAttributeSetRequest) 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 DeleteAttributeSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteAttributeSetResponse wrapper for the DeleteAttributeSet operation +type DeleteAttributeSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteAttributeSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteAttributeSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_audit_profile_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_audit_profile_request_response.go new file mode 100644 index 00000000000..082c2b2f1d3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_audit_profile_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteAuditProfileRequest wrapper for the DeleteAuditProfile operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteAuditProfile.go.html to see an example of how to use DeleteAuditProfileRequest. +type DeleteAuditProfileRequest struct { + + // The OCID of the audit. + AuditProfileId *string `mandatory:"true" contributesTo:"path" name:"auditProfileId"` + + // 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 DeleteAuditProfileRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteAuditProfileRequest) 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 DeleteAuditProfileRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteAuditProfileRequest) 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 DeleteAuditProfileRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteAuditProfileResponse wrapper for the DeleteAuditProfile operation +type DeleteAuditProfileResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteAuditProfileResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteAuditProfileResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_security_policy_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_security_policy_config_request_response.go new file mode 100644 index 00000000000..28a96539152 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_security_policy_config_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteSecurityPolicyConfigRequest wrapper for the DeleteSecurityPolicyConfig operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSecurityPolicyConfig.go.html to see an example of how to use DeleteSecurityPolicyConfigRequest. +type DeleteSecurityPolicyConfigRequest struct { + + // The OCID of the security policy configuration resource. + SecurityPolicyConfigId *string `mandatory:"true" contributesTo:"path" name:"securityPolicyConfigId"` + + // 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 DeleteSecurityPolicyConfigRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteSecurityPolicyConfigRequest) 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 DeleteSecurityPolicyConfigRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteSecurityPolicyConfigRequest) 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 DeleteSecurityPolicyConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteSecurityPolicyConfigResponse wrapper for the DeleteSecurityPolicyConfig operation +type DeleteSecurityPolicyConfigResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteSecurityPolicyConfigResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteSecurityPolicyConfigResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_security_policy_deployment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_security_policy_deployment_request_response.go new file mode 100644 index 00000000000..7e8b3c3431d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_security_policy_deployment_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteSecurityPolicyDeploymentRequest wrapper for the DeleteSecurityPolicyDeployment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSecurityPolicyDeployment.go.html to see an example of how to use DeleteSecurityPolicyDeploymentRequest. +type DeleteSecurityPolicyDeploymentRequest struct { + + // The OCID of the security policy deployment resource. + SecurityPolicyDeploymentId *string `mandatory:"true" contributesTo:"path" name:"securityPolicyDeploymentId"` + + // 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 DeleteSecurityPolicyDeploymentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteSecurityPolicyDeploymentRequest) 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 DeleteSecurityPolicyDeploymentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteSecurityPolicyDeploymentRequest) 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 DeleteSecurityPolicyDeploymentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteSecurityPolicyDeploymentResponse wrapper for the DeleteSecurityPolicyDeployment operation +type DeleteSecurityPolicyDeploymentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteSecurityPolicyDeploymentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteSecurityPolicyDeploymentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_security_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_security_policy_request_response.go new file mode 100644 index 00000000000..ef444c9d1ad --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_security_policy_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteSecurityPolicyRequest wrapper for the DeleteSecurityPolicy operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteSecurityPolicy.go.html to see an example of how to use DeleteSecurityPolicyRequest. +type DeleteSecurityPolicyRequest struct { + + // The OCID of the security policy resource. + SecurityPolicyId *string `mandatory:"true" contributesTo:"path" name:"securityPolicyId"` + + // 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 DeleteSecurityPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteSecurityPolicyRequest) 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 DeleteSecurityPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteSecurityPolicyRequest) 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 DeleteSecurityPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteSecurityPolicyResponse wrapper for the DeleteSecurityPolicy operation +type DeleteSecurityPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteSecurityPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteSecurityPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_target_database_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_target_database_group_request_response.go new file mode 100644 index 00000000000..c3296a58473 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_target_database_group_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteTargetDatabaseGroupRequest wrapper for the DeleteTargetDatabaseGroup operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteTargetDatabaseGroup.go.html to see an example of how to use DeleteTargetDatabaseGroupRequest. +type DeleteTargetDatabaseGroupRequest struct { + + // The OCID of the specified target database group. + TargetDatabaseGroupId *string `mandatory:"true" contributesTo:"path" name:"targetDatabaseGroupId"` + + // 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 DeleteTargetDatabaseGroupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteTargetDatabaseGroupRequest) 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 DeleteTargetDatabaseGroupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteTargetDatabaseGroupRequest) 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 DeleteTargetDatabaseGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteTargetDatabaseGroupResponse wrapper for the DeleteTargetDatabaseGroup operation +type DeleteTargetDatabaseGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteTargetDatabaseGroupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteTargetDatabaseGroupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_unified_audit_policy_definition_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_unified_audit_policy_definition_request_response.go new file mode 100644 index 00000000000..566dafa92fd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_unified_audit_policy_definition_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteUnifiedAuditPolicyDefinitionRequest wrapper for the DeleteUnifiedAuditPolicyDefinition operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteUnifiedAuditPolicyDefinition.go.html to see an example of how to use DeleteUnifiedAuditPolicyDefinitionRequest. +type DeleteUnifiedAuditPolicyDefinitionRequest struct { + + // The OCID of the unified audit policy definition resource. + UnifiedAuditPolicyDefinitionId *string `mandatory:"true" contributesTo:"path" name:"unifiedAuditPolicyDefinitionId"` + + // 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 DeleteUnifiedAuditPolicyDefinitionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteUnifiedAuditPolicyDefinitionRequest) 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 DeleteUnifiedAuditPolicyDefinitionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteUnifiedAuditPolicyDefinitionRequest) 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 DeleteUnifiedAuditPolicyDefinitionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteUnifiedAuditPolicyDefinitionResponse wrapper for the DeleteUnifiedAuditPolicyDefinition operation +type DeleteUnifiedAuditPolicyDefinitionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteUnifiedAuditPolicyDefinitionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteUnifiedAuditPolicyDefinitionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_unified_audit_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_unified_audit_policy_request_response.go new file mode 100644 index 00000000000..ad4c2dfa4ad --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/delete_unified_audit_policy_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteUnifiedAuditPolicyRequest wrapper for the DeleteUnifiedAuditPolicy operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeleteUnifiedAuditPolicy.go.html to see an example of how to use DeleteUnifiedAuditPolicyRequest. +type DeleteUnifiedAuditPolicyRequest struct { + + // The OCID of the Unified Audit policy resource. + UnifiedAuditPolicyId *string `mandatory:"true" contributesTo:"path" name:"unifiedAuditPolicyId"` + + // 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 DeleteUnifiedAuditPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteUnifiedAuditPolicyRequest) 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 DeleteUnifiedAuditPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteUnifiedAuditPolicyRequest) 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 DeleteUnifiedAuditPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteUnifiedAuditPolicyResponse wrapper for the DeleteUnifiedAuditPolicy operation +type DeleteUnifiedAuditPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteUnifiedAuditPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteUnifiedAuditPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/deploy_security_policy_deployment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/deploy_security_policy_deployment_request_response.go new file mode 100644 index 00000000000..eff793a9eb0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/deploy_security_policy_deployment_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeploySecurityPolicyDeploymentRequest wrapper for the DeploySecurityPolicyDeployment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/DeploySecurityPolicyDeployment.go.html to see an example of how to use DeploySecurityPolicyDeploymentRequest. +type DeploySecurityPolicyDeploymentRequest struct { + + // The OCID of the security policy deployment resource. + SecurityPolicyDeploymentId *string `mandatory:"true" contributesTo:"path" name:"securityPolicyDeploymentId"` + + // 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"` + + // 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 DeploySecurityPolicyDeploymentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeploySecurityPolicyDeploymentRequest) 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 DeploySecurityPolicyDeploymentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeploySecurityPolicyDeploymentRequest) 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 DeploySecurityPolicyDeploymentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeploySecurityPolicyDeploymentResponse wrapper for the DeploySecurityPolicyDeployment operation +type DeploySecurityPolicyDeploymentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeploySecurityPolicyDeploymentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeploySecurityPolicyDeploymentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/discovery_analytics_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/discovery_analytics_summary.go index 3d7a077ca11..e39c398fb42 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/discovery_analytics_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/discovery_analytics_summary.go @@ -25,6 +25,9 @@ type DiscoveryAnalyticsSummary struct { Count *int64 `mandatory:"true" json:"count"` Dimensions *Dimensions `mandatory:"false" json:"dimensions"` + + // The date and time when data discovery was last done on the target database, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeLastDiscovered *common.SDKTime `mandatory:"false" json:"timeLastDiscovered"` } func (m DiscoveryAnalyticsSummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/download_security_assessment_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/download_security_assessment_report_details.go index 97f3d83b0f2..b0ad3f62a14 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/download_security_assessment_report_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/download_security_assessment_report_details.go @@ -18,7 +18,7 @@ import ( // DownloadSecurityAssessmentReportDetails The details used to download a security assessment report. type DownloadSecurityAssessmentReportDetails struct { - // Format of the report. + // Format of the Security Assessment report. Format DownloadSecurityAssessmentReportDetailsFormatEnum `mandatory:"true" json:"format"` } @@ -46,18 +46,21 @@ type DownloadSecurityAssessmentReportDetailsFormatEnum string // Set of constants representing the allowable values for DownloadSecurityAssessmentReportDetailsFormatEnum const ( - DownloadSecurityAssessmentReportDetailsFormatPdf DownloadSecurityAssessmentReportDetailsFormatEnum = "PDF" - DownloadSecurityAssessmentReportDetailsFormatXls DownloadSecurityAssessmentReportDetailsFormatEnum = "XLS" + DownloadSecurityAssessmentReportDetailsFormatPdf DownloadSecurityAssessmentReportDetailsFormatEnum = "PDF" + DownloadSecurityAssessmentReportDetailsFormatXls DownloadSecurityAssessmentReportDetailsFormatEnum = "XLS" + DownloadSecurityAssessmentReportDetailsFormatStigxls DownloadSecurityAssessmentReportDetailsFormatEnum = "STIGXLS" ) var mappingDownloadSecurityAssessmentReportDetailsFormatEnum = map[string]DownloadSecurityAssessmentReportDetailsFormatEnum{ - "PDF": DownloadSecurityAssessmentReportDetailsFormatPdf, - "XLS": DownloadSecurityAssessmentReportDetailsFormatXls, + "PDF": DownloadSecurityAssessmentReportDetailsFormatPdf, + "XLS": DownloadSecurityAssessmentReportDetailsFormatXls, + "STIGXLS": DownloadSecurityAssessmentReportDetailsFormatStigxls, } var mappingDownloadSecurityAssessmentReportDetailsFormatEnumLowerCase = map[string]DownloadSecurityAssessmentReportDetailsFormatEnum{ - "pdf": DownloadSecurityAssessmentReportDetailsFormatPdf, - "xls": DownloadSecurityAssessmentReportDetailsFormatXls, + "pdf": DownloadSecurityAssessmentReportDetailsFormatPdf, + "xls": DownloadSecurityAssessmentReportDetailsFormatXls, + "stigxls": DownloadSecurityAssessmentReportDetailsFormatStigxls, } // GetDownloadSecurityAssessmentReportDetailsFormatEnumValues Enumerates the set of values for DownloadSecurityAssessmentReportDetailsFormatEnum @@ -74,6 +77,7 @@ func GetDownloadSecurityAssessmentReportDetailsFormatEnumStringValues() []string return []string{ "PDF", "XLS", + "STIGXLS", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/entry_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/entry_details.go index 0e54dd743c7..735a70513b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/entry_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/entry_details.go @@ -50,6 +50,10 @@ func (m *entrydetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error var err error switch m.EntryType { + case "AUDIT_POLICY": + mm := AuditPolicyEntryDetails{} + err = json.Unmarshal(data, &mm) + return mm, err case "FIREWALL_POLICY": mm := FirewallPolicyEntryDetails{} err = json.Unmarshal(data, &mm) @@ -82,14 +86,17 @@ type EntryDetailsEntryTypeEnum string // Set of constants representing the allowable values for EntryDetailsEntryTypeEnum const ( EntryDetailsEntryTypeFirewallPolicy EntryDetailsEntryTypeEnum = "FIREWALL_POLICY" + EntryDetailsEntryTypeAuditPolicy EntryDetailsEntryTypeEnum = "AUDIT_POLICY" ) var mappingEntryDetailsEntryTypeEnum = map[string]EntryDetailsEntryTypeEnum{ "FIREWALL_POLICY": EntryDetailsEntryTypeFirewallPolicy, + "AUDIT_POLICY": EntryDetailsEntryTypeAuditPolicy, } var mappingEntryDetailsEntryTypeEnumLowerCase = map[string]EntryDetailsEntryTypeEnum{ "firewall_policy": EntryDetailsEntryTypeFirewallPolicy, + "audit_policy": EntryDetailsEntryTypeAuditPolicy, } // GetEntryDetailsEntryTypeEnumValues Enumerates the set of values for EntryDetailsEntryTypeEnum @@ -105,6 +112,7 @@ func GetEntryDetailsEntryTypeEnumValues() []EntryDetailsEntryTypeEnum { func GetEntryDetailsEntryTypeEnumStringValues() []string { return []string{ "FIREWALL_POLICY", + "AUDIT_POLICY", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/exclude.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/exclude.go new file mode 100644 index 00000000000..d326bdf6098 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/exclude.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Exclude Criteria to exclude certain target databases from the target database group. +type Exclude struct { + + // The list of target database OCIDS, that should be excluded from the target database group (even if they match some of the other criteria). + TargetDatabaseIds []string `mandatory:"true" json:"targetDatabaseIds"` +} + +func (m Exclude) 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 Exclude) 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/datasafe/finding_analytics_dimensions.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/finding_analytics_dimensions.go index 65ac12adcd5..c679ce0f245 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/finding_analytics_dimensions.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/finding_analytics_dimensions.go @@ -25,6 +25,9 @@ type FindingAnalyticsDimensions struct { // The category of the top finding. TopFindingCategory *string `mandatory:"false" json:"topFindingCategory"` + // The category of the top finding. + Category *string `mandatory:"false" json:"category"` + // The short title of the finding. Title *string `mandatory:"false" json:"title"` @@ -37,8 +40,14 @@ type FindingAnalyticsDimensions struct { // The severity (risk level) of the finding. Severity FindingAnalyticsDimensionsSeverityEnum `mandatory:"false" json:"severity,omitempty"` + // The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. + Remarks *string `mandatory:"false" json:"remarks"` + // The OCID of the target database. TargetId *string `mandatory:"false" json:"targetId"` + + // Provides information on whether the finding is related to a CIS Oracle Database Benchmark recommendation, STIG rule, or related to a GDPR Article/Recital. + References *References `mandatory:"false" json:"references"` } func (m FindingAnalyticsDimensions) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/finding_analytics_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/finding_analytics_summary.go index ea4908d608a..f7ee815aed7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/finding_analytics_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/finding_analytics_summary.go @@ -16,7 +16,7 @@ import ( ) // FindingAnalyticsSummary The summary of information about the analytics data of findings or top findings. -// It includes details such as metric name, findinKey, +// It includes details such as metric name, findingKey, // title (topFindingCategory for top finding), severity (topFindingStatus for top finding) and targetId. type FindingAnalyticsSummary struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/finding_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/finding_summary.go index d7108c35cf9..1ed47a9be46 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/finding_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/finding_summary.go @@ -36,6 +36,9 @@ type FindingSummary struct { // The short title for the finding. Title *string `mandatory:"false" json:"title"` + // The category to which the finding belongs to. + Category *string `mandatory:"false" json:"category"` + // The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. Remarks *string `mandatory:"false" json:"remarks"` @@ -48,6 +51,9 @@ type FindingSummary struct { // Provides a recommended approach to take to remediate the finding reported. Oneline *string `mandatory:"false" json:"oneline"` + // Documentation link provided by Oracle that explains a specific security finding or check. + Doclink *string `mandatory:"false" json:"doclink"` + // Provides information on whether the finding is related to a CIS Oracle Database Benchmark recommendation, a STIG rule, or a GDPR Article/Recital. References *References `mandatory:"false" json:"references"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/firewall_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/firewall_config.go new file mode 100644 index 00000000000..a2947f77245 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/firewall_config.go @@ -0,0 +1,184 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FirewallConfig The SQL Firewall related configurations. +type FirewallConfig struct { + + // Specifies if the firewall is enabled or disabled. + Status FirewallConfigStatusEnum `mandatory:"true" json:"status"` + + // Specifies whether Data Safe should automatically purge the violation logs + // from the database after collecting the violation logs and persisting on Data Safe. + ViolationLogAutoPurge FirewallConfigViolationLogAutoPurgeEnum `mandatory:"true" json:"violationLogAutoPurge"` + + // Specifies whether the firewall should include or exclude the database internal job activities. + ExcludeJob FirewallConfigExcludeJobEnum `mandatory:"false" json:"excludeJob,omitempty"` + + // The date and time the firewall configuration was last updated, in the format defined by RFC3339. + TimeStatusUpdated *common.SDKTime `mandatory:"false" json:"timeStatusUpdated"` +} + +func (m FirewallConfig) 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 FirewallConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingFirewallConfigStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetFirewallConfigStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingFirewallConfigViolationLogAutoPurgeEnum(string(m.ViolationLogAutoPurge)); !ok && m.ViolationLogAutoPurge != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ViolationLogAutoPurge: %s. Supported values are: %s.", m.ViolationLogAutoPurge, strings.Join(GetFirewallConfigViolationLogAutoPurgeEnumStringValues(), ","))) + } + + if _, ok := GetMappingFirewallConfigExcludeJobEnum(string(m.ExcludeJob)); !ok && m.ExcludeJob != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ExcludeJob: %s. Supported values are: %s.", m.ExcludeJob, strings.Join(GetFirewallConfigExcludeJobEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// FirewallConfigStatusEnum Enum with underlying type: string +type FirewallConfigStatusEnum string + +// Set of constants representing the allowable values for FirewallConfigStatusEnum +const ( + FirewallConfigStatusEnabled FirewallConfigStatusEnum = "ENABLED" + FirewallConfigStatusDisabled FirewallConfigStatusEnum = "DISABLED" +) + +var mappingFirewallConfigStatusEnum = map[string]FirewallConfigStatusEnum{ + "ENABLED": FirewallConfigStatusEnabled, + "DISABLED": FirewallConfigStatusDisabled, +} + +var mappingFirewallConfigStatusEnumLowerCase = map[string]FirewallConfigStatusEnum{ + "enabled": FirewallConfigStatusEnabled, + "disabled": FirewallConfigStatusDisabled, +} + +// GetFirewallConfigStatusEnumValues Enumerates the set of values for FirewallConfigStatusEnum +func GetFirewallConfigStatusEnumValues() []FirewallConfigStatusEnum { + values := make([]FirewallConfigStatusEnum, 0) + for _, v := range mappingFirewallConfigStatusEnum { + values = append(values, v) + } + return values +} + +// GetFirewallConfigStatusEnumStringValues Enumerates the set of values in String for FirewallConfigStatusEnum +func GetFirewallConfigStatusEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingFirewallConfigStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFirewallConfigStatusEnum(val string) (FirewallConfigStatusEnum, bool) { + enum, ok := mappingFirewallConfigStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// FirewallConfigViolationLogAutoPurgeEnum Enum with underlying type: string +type FirewallConfigViolationLogAutoPurgeEnum string + +// Set of constants representing the allowable values for FirewallConfigViolationLogAutoPurgeEnum +const ( + FirewallConfigViolationLogAutoPurgeEnabled FirewallConfigViolationLogAutoPurgeEnum = "ENABLED" + FirewallConfigViolationLogAutoPurgeDisabled FirewallConfigViolationLogAutoPurgeEnum = "DISABLED" +) + +var mappingFirewallConfigViolationLogAutoPurgeEnum = map[string]FirewallConfigViolationLogAutoPurgeEnum{ + "ENABLED": FirewallConfigViolationLogAutoPurgeEnabled, + "DISABLED": FirewallConfigViolationLogAutoPurgeDisabled, +} + +var mappingFirewallConfigViolationLogAutoPurgeEnumLowerCase = map[string]FirewallConfigViolationLogAutoPurgeEnum{ + "enabled": FirewallConfigViolationLogAutoPurgeEnabled, + "disabled": FirewallConfigViolationLogAutoPurgeDisabled, +} + +// GetFirewallConfigViolationLogAutoPurgeEnumValues Enumerates the set of values for FirewallConfigViolationLogAutoPurgeEnum +func GetFirewallConfigViolationLogAutoPurgeEnumValues() []FirewallConfigViolationLogAutoPurgeEnum { + values := make([]FirewallConfigViolationLogAutoPurgeEnum, 0) + for _, v := range mappingFirewallConfigViolationLogAutoPurgeEnum { + values = append(values, v) + } + return values +} + +// GetFirewallConfigViolationLogAutoPurgeEnumStringValues Enumerates the set of values in String for FirewallConfigViolationLogAutoPurgeEnum +func GetFirewallConfigViolationLogAutoPurgeEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingFirewallConfigViolationLogAutoPurgeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFirewallConfigViolationLogAutoPurgeEnum(val string) (FirewallConfigViolationLogAutoPurgeEnum, bool) { + enum, ok := mappingFirewallConfigViolationLogAutoPurgeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// FirewallConfigExcludeJobEnum Enum with underlying type: string +type FirewallConfigExcludeJobEnum string + +// Set of constants representing the allowable values for FirewallConfigExcludeJobEnum +const ( + FirewallConfigExcludeJobExcluded FirewallConfigExcludeJobEnum = "EXCLUDED" + FirewallConfigExcludeJobIncluded FirewallConfigExcludeJobEnum = "INCLUDED" +) + +var mappingFirewallConfigExcludeJobEnum = map[string]FirewallConfigExcludeJobEnum{ + "EXCLUDED": FirewallConfigExcludeJobExcluded, + "INCLUDED": FirewallConfigExcludeJobIncluded, +} + +var mappingFirewallConfigExcludeJobEnumLowerCase = map[string]FirewallConfigExcludeJobEnum{ + "excluded": FirewallConfigExcludeJobExcluded, + "included": FirewallConfigExcludeJobIncluded, +} + +// GetFirewallConfigExcludeJobEnumValues Enumerates the set of values for FirewallConfigExcludeJobEnum +func GetFirewallConfigExcludeJobEnumValues() []FirewallConfigExcludeJobEnum { + values := make([]FirewallConfigExcludeJobEnum, 0) + for _, v := range mappingFirewallConfigExcludeJobEnum { + values = append(values, v) + } + return values +} + +// GetFirewallConfigExcludeJobEnumStringValues Enumerates the set of values in String for FirewallConfigExcludeJobEnum +func GetFirewallConfigExcludeJobEnumStringValues() []string { + return []string{ + "EXCLUDED", + "INCLUDED", + } +} + +// GetMappingFirewallConfigExcludeJobEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFirewallConfigExcludeJobEnum(val string) (FirewallConfigExcludeJobEnum, bool) { + enum, ok := mappingFirewallConfigExcludeJobEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/firewall_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/firewall_config_details.go new file mode 100644 index 00000000000..8cbe73dbc22 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/firewall_config_details.go @@ -0,0 +1,181 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FirewallConfigDetails Details to update the SQL Firewall configuration. +type FirewallConfigDetails struct { + + // Specifies whether the firewall is enabled or disabled. + Status FirewallConfigDetailsStatusEnum `mandatory:"false" json:"status,omitempty"` + + // Specifies whether Data Safe should automatically purge the violation logs + // from the database after collecting the violation logs and persisting them in Data Safe. + ViolationLogAutoPurge FirewallConfigDetailsViolationLogAutoPurgeEnum `mandatory:"false" json:"violationLogAutoPurge,omitempty"` + + // Specifies whether the firewall should include or exclude the database internal job activities. + ExcludeJob FirewallConfigDetailsExcludeJobEnum `mandatory:"false" json:"excludeJob,omitempty"` +} + +func (m FirewallConfigDetails) 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 FirewallConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingFirewallConfigDetailsStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetFirewallConfigDetailsStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingFirewallConfigDetailsViolationLogAutoPurgeEnum(string(m.ViolationLogAutoPurge)); !ok && m.ViolationLogAutoPurge != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ViolationLogAutoPurge: %s. Supported values are: %s.", m.ViolationLogAutoPurge, strings.Join(GetFirewallConfigDetailsViolationLogAutoPurgeEnumStringValues(), ","))) + } + if _, ok := GetMappingFirewallConfigDetailsExcludeJobEnum(string(m.ExcludeJob)); !ok && m.ExcludeJob != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ExcludeJob: %s. Supported values are: %s.", m.ExcludeJob, strings.Join(GetFirewallConfigDetailsExcludeJobEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// FirewallConfigDetailsStatusEnum Enum with underlying type: string +type FirewallConfigDetailsStatusEnum string + +// Set of constants representing the allowable values for FirewallConfigDetailsStatusEnum +const ( + FirewallConfigDetailsStatusEnabled FirewallConfigDetailsStatusEnum = "ENABLED" + FirewallConfigDetailsStatusDisabled FirewallConfigDetailsStatusEnum = "DISABLED" +) + +var mappingFirewallConfigDetailsStatusEnum = map[string]FirewallConfigDetailsStatusEnum{ + "ENABLED": FirewallConfigDetailsStatusEnabled, + "DISABLED": FirewallConfigDetailsStatusDisabled, +} + +var mappingFirewallConfigDetailsStatusEnumLowerCase = map[string]FirewallConfigDetailsStatusEnum{ + "enabled": FirewallConfigDetailsStatusEnabled, + "disabled": FirewallConfigDetailsStatusDisabled, +} + +// GetFirewallConfigDetailsStatusEnumValues Enumerates the set of values for FirewallConfigDetailsStatusEnum +func GetFirewallConfigDetailsStatusEnumValues() []FirewallConfigDetailsStatusEnum { + values := make([]FirewallConfigDetailsStatusEnum, 0) + for _, v := range mappingFirewallConfigDetailsStatusEnum { + values = append(values, v) + } + return values +} + +// GetFirewallConfigDetailsStatusEnumStringValues Enumerates the set of values in String for FirewallConfigDetailsStatusEnum +func GetFirewallConfigDetailsStatusEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingFirewallConfigDetailsStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFirewallConfigDetailsStatusEnum(val string) (FirewallConfigDetailsStatusEnum, bool) { + enum, ok := mappingFirewallConfigDetailsStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// FirewallConfigDetailsViolationLogAutoPurgeEnum Enum with underlying type: string +type FirewallConfigDetailsViolationLogAutoPurgeEnum string + +// Set of constants representing the allowable values for FirewallConfigDetailsViolationLogAutoPurgeEnum +const ( + FirewallConfigDetailsViolationLogAutoPurgeEnabled FirewallConfigDetailsViolationLogAutoPurgeEnum = "ENABLED" + FirewallConfigDetailsViolationLogAutoPurgeDisabled FirewallConfigDetailsViolationLogAutoPurgeEnum = "DISABLED" +) + +var mappingFirewallConfigDetailsViolationLogAutoPurgeEnum = map[string]FirewallConfigDetailsViolationLogAutoPurgeEnum{ + "ENABLED": FirewallConfigDetailsViolationLogAutoPurgeEnabled, + "DISABLED": FirewallConfigDetailsViolationLogAutoPurgeDisabled, +} + +var mappingFirewallConfigDetailsViolationLogAutoPurgeEnumLowerCase = map[string]FirewallConfigDetailsViolationLogAutoPurgeEnum{ + "enabled": FirewallConfigDetailsViolationLogAutoPurgeEnabled, + "disabled": FirewallConfigDetailsViolationLogAutoPurgeDisabled, +} + +// GetFirewallConfigDetailsViolationLogAutoPurgeEnumValues Enumerates the set of values for FirewallConfigDetailsViolationLogAutoPurgeEnum +func GetFirewallConfigDetailsViolationLogAutoPurgeEnumValues() []FirewallConfigDetailsViolationLogAutoPurgeEnum { + values := make([]FirewallConfigDetailsViolationLogAutoPurgeEnum, 0) + for _, v := range mappingFirewallConfigDetailsViolationLogAutoPurgeEnum { + values = append(values, v) + } + return values +} + +// GetFirewallConfigDetailsViolationLogAutoPurgeEnumStringValues Enumerates the set of values in String for FirewallConfigDetailsViolationLogAutoPurgeEnum +func GetFirewallConfigDetailsViolationLogAutoPurgeEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingFirewallConfigDetailsViolationLogAutoPurgeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFirewallConfigDetailsViolationLogAutoPurgeEnum(val string) (FirewallConfigDetailsViolationLogAutoPurgeEnum, bool) { + enum, ok := mappingFirewallConfigDetailsViolationLogAutoPurgeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// FirewallConfigDetailsExcludeJobEnum Enum with underlying type: string +type FirewallConfigDetailsExcludeJobEnum string + +// Set of constants representing the allowable values for FirewallConfigDetailsExcludeJobEnum +const ( + FirewallConfigDetailsExcludeJobExcluded FirewallConfigDetailsExcludeJobEnum = "EXCLUDED" + FirewallConfigDetailsExcludeJobIncluded FirewallConfigDetailsExcludeJobEnum = "INCLUDED" +) + +var mappingFirewallConfigDetailsExcludeJobEnum = map[string]FirewallConfigDetailsExcludeJobEnum{ + "EXCLUDED": FirewallConfigDetailsExcludeJobExcluded, + "INCLUDED": FirewallConfigDetailsExcludeJobIncluded, +} + +var mappingFirewallConfigDetailsExcludeJobEnumLowerCase = map[string]FirewallConfigDetailsExcludeJobEnum{ + "excluded": FirewallConfigDetailsExcludeJobExcluded, + "included": FirewallConfigDetailsExcludeJobIncluded, +} + +// GetFirewallConfigDetailsExcludeJobEnumValues Enumerates the set of values for FirewallConfigDetailsExcludeJobEnum +func GetFirewallConfigDetailsExcludeJobEnumValues() []FirewallConfigDetailsExcludeJobEnum { + values := make([]FirewallConfigDetailsExcludeJobEnum, 0) + for _, v := range mappingFirewallConfigDetailsExcludeJobEnum { + values = append(values, v) + } + return values +} + +// GetFirewallConfigDetailsExcludeJobEnumStringValues Enumerates the set of values in String for FirewallConfigDetailsExcludeJobEnum +func GetFirewallConfigDetailsExcludeJobEnumStringValues() []string { + return []string{ + "EXCLUDED", + "INCLUDED", + } +} + +// GetMappingFirewallConfigDetailsExcludeJobEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFirewallConfigDetailsExcludeJobEnum(val string) (FirewallConfigDetailsExcludeJobEnum, bool) { + enum, ok := mappingFirewallConfigDetailsExcludeJobEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/generate_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/generate_report_details.go index f9f858c2ac6..acb98eb8176 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/generate_report_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/generate_report_details.go @@ -31,6 +31,9 @@ type GenerateReportDetails struct { // Array of database target OCIDs. TargetIds []string `mandatory:"false" json:"targetIds"` + // Array of target group OCIDs. + TargetGroupIds []string `mandatory:"false" json:"targetGroupIds"` + // The description of the report to be generated Description *string `mandatory:"false" json:"description"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/generate_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/generate_report_request_response.go index 034f67cbdd2..649369770e7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/generate_report_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/generate_report_request_response.go @@ -45,7 +45,7 @@ type GenerateReportRequest struct { // at RFC3339 (https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. // (Numeric and boolean values should not be quoted.) - // **Example:** query=(dateGenerated ge '2021-12-18T01-00-26') and (ilmTarget eq 'dscs-target') + // **Example:** query=(auditEventTime ge "2021-06-04T01:00:26.000Z") and (eventName eq "LOGON") ScimQuery *string `mandatory:"false" contributesTo:"query" name:"scimQuery"` // Metadata about the request. This information will not be transmitted to the service, but diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/generate_security_assessment_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/generate_security_assessment_report_details.go index 270efcfd366..fc00a420749 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/generate_security_assessment_report_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/generate_security_assessment_report_details.go @@ -18,7 +18,7 @@ import ( // GenerateSecurityAssessmentReportDetails The details used to generate a new security assessment report. type GenerateSecurityAssessmentReportDetails struct { - // Format of the report. + // Format of the Security Assessment report. Format GenerateSecurityAssessmentReportDetailsFormatEnum `mandatory:"true" json:"format"` } @@ -46,18 +46,21 @@ type GenerateSecurityAssessmentReportDetailsFormatEnum string // Set of constants representing the allowable values for GenerateSecurityAssessmentReportDetailsFormatEnum const ( - GenerateSecurityAssessmentReportDetailsFormatPdf GenerateSecurityAssessmentReportDetailsFormatEnum = "PDF" - GenerateSecurityAssessmentReportDetailsFormatXls GenerateSecurityAssessmentReportDetailsFormatEnum = "XLS" + GenerateSecurityAssessmentReportDetailsFormatPdf GenerateSecurityAssessmentReportDetailsFormatEnum = "PDF" + GenerateSecurityAssessmentReportDetailsFormatXls GenerateSecurityAssessmentReportDetailsFormatEnum = "XLS" + GenerateSecurityAssessmentReportDetailsFormatStigxls GenerateSecurityAssessmentReportDetailsFormatEnum = "STIGXLS" ) var mappingGenerateSecurityAssessmentReportDetailsFormatEnum = map[string]GenerateSecurityAssessmentReportDetailsFormatEnum{ - "PDF": GenerateSecurityAssessmentReportDetailsFormatPdf, - "XLS": GenerateSecurityAssessmentReportDetailsFormatXls, + "PDF": GenerateSecurityAssessmentReportDetailsFormatPdf, + "XLS": GenerateSecurityAssessmentReportDetailsFormatXls, + "STIGXLS": GenerateSecurityAssessmentReportDetailsFormatStigxls, } var mappingGenerateSecurityAssessmentReportDetailsFormatEnumLowerCase = map[string]GenerateSecurityAssessmentReportDetailsFormatEnum{ - "pdf": GenerateSecurityAssessmentReportDetailsFormatPdf, - "xls": GenerateSecurityAssessmentReportDetailsFormatXls, + "pdf": GenerateSecurityAssessmentReportDetailsFormatPdf, + "xls": GenerateSecurityAssessmentReportDetailsFormatXls, + "stigxls": GenerateSecurityAssessmentReportDetailsFormatStigxls, } // GetGenerateSecurityAssessmentReportDetailsFormatEnumValues Enumerates the set of values for GenerateSecurityAssessmentReportDetailsFormatEnum @@ -74,6 +77,7 @@ func GetGenerateSecurityAssessmentReportDetailsFormatEnumStringValues() []string return []string{ "PDF", "XLS", + "STIGXLS", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_attribute_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_attribute_set_request_response.go new file mode 100644 index 00000000000..451bdf91e5e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_attribute_set_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetAttributeSetRequest wrapper for the GetAttributeSet operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetAttributeSet.go.html to see an example of how to use GetAttributeSetRequest. +type GetAttributeSetRequest struct { + + // OCID of an attribute set. + AttributeSetId *string `mandatory:"true" contributesTo:"path" name:"attributeSetId"` + + // 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 GetAttributeSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetAttributeSetRequest) 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 GetAttributeSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetAttributeSetRequest) 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 GetAttributeSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetAttributeSetResponse wrapper for the GetAttributeSet operation +type GetAttributeSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The AttributeSet instance + AttributeSet `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.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 GetAttributeSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetAttributeSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_group_members_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_group_members_request_response.go new file mode 100644 index 00000000000..ac3fcfb7d7b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_group_members_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetGroupMembersRequest wrapper for the GetGroupMembers operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetGroupMembers.go.html to see an example of how to use GetGroupMembersRequest. +type GetGroupMembersRequest struct { + + // The OCID of the specified target database group. + TargetDatabaseGroupId *string `mandatory:"true" contributesTo:"path" name:"targetDatabaseGroupId"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A filter to return the target database only if it is a member of the target database group. + TargetDatabaseId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseId"` + + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetGroupMembersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetGroupMembersRequest) 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 GetGroupMembersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetGroupMembersRequest) 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 GetGroupMembersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetGroupMembersResponse wrapper for the GetGroupMembers operation +type GetGroupMembersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of GroupMembersCollection instances + GroupMembersCollection `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.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 GetGroupMembersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetGroupMembersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_security_policy_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_security_policy_config_request_response.go new file mode 100644 index 00000000000..07692eb5785 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_security_policy_config_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetSecurityPolicyConfigRequest wrapper for the GetSecurityPolicyConfig operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetSecurityPolicyConfig.go.html to see an example of how to use GetSecurityPolicyConfigRequest. +type GetSecurityPolicyConfigRequest struct { + + // The OCID of the security policy configuration resource. + SecurityPolicyConfigId *string `mandatory:"true" contributesTo:"path" name:"securityPolicyConfigId"` + + // 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 GetSecurityPolicyConfigRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetSecurityPolicyConfigRequest) 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 GetSecurityPolicyConfigRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetSecurityPolicyConfigRequest) 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 GetSecurityPolicyConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetSecurityPolicyConfigResponse wrapper for the GetSecurityPolicyConfig operation +type GetSecurityPolicyConfigResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SecurityPolicyConfig instance + SecurityPolicyConfig `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.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 GetSecurityPolicyConfigResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetSecurityPolicyConfigResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_target_database_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_target_database_group_request_response.go new file mode 100644 index 00000000000..1145a8ed466 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_target_database_group_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetTargetDatabaseGroupRequest wrapper for the GetTargetDatabaseGroup operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetTargetDatabaseGroup.go.html to see an example of how to use GetTargetDatabaseGroupRequest. +type GetTargetDatabaseGroupRequest struct { + + // The OCID of the specified target database group. + TargetDatabaseGroupId *string `mandatory:"true" contributesTo:"path" name:"targetDatabaseGroupId"` + + // 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 GetTargetDatabaseGroupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetTargetDatabaseGroupRequest) 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 GetTargetDatabaseGroupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetTargetDatabaseGroupRequest) 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 GetTargetDatabaseGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetTargetDatabaseGroupResponse wrapper for the GetTargetDatabaseGroup operation +type GetTargetDatabaseGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The TargetDatabaseGroup instance + TargetDatabaseGroup `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.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 GetTargetDatabaseGroupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetTargetDatabaseGroupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_template_baseline_comparison_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_template_baseline_comparison_request_response.go new file mode 100644 index 00000000000..5e5af6082df --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_template_baseline_comparison_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetTemplateBaselineComparisonRequest wrapper for the GetTemplateBaselineComparison operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetTemplateBaselineComparison.go.html to see an example of how to use GetTemplateBaselineComparisonRequest. +type GetTemplateBaselineComparisonRequest struct { + + // The OCID of the security assessment. + SecurityAssessmentId *string `mandatory:"true" contributesTo:"path" name:"securityAssessmentId"` + + // The OCID of the security assessment baseline. + ComparisonSecurityAssessmentId *string `mandatory:"true" contributesTo:"path" name:"comparisonSecurityAssessmentId"` + + // A filter to return only items related to a specific target OCID. + TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + + // The category of the finding. + Category *string `mandatory:"false" contributesTo:"query" name:"category"` + + // The unique key that identifies the finding. It is a string and unique within a security assessment. + FindingKey *string `mandatory:"false" contributesTo:"query" name:"findingKey"` + + // 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 GetTemplateBaselineComparisonRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetTemplateBaselineComparisonRequest) 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 GetTemplateBaselineComparisonRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetTemplateBaselineComparisonRequest) 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 GetTemplateBaselineComparisonRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetTemplateBaselineComparisonResponse wrapper for the GetTemplateBaselineComparison operation +type GetTemplateBaselineComparisonResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SecurityAssessmentTemplateBaselineComparison instance + SecurityAssessmentTemplateBaselineComparison `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + Etag *string `presentIn:"header" name:"etag"` +} + +func (response GetTemplateBaselineComparisonResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetTemplateBaselineComparisonResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_unified_audit_policy_definition_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_unified_audit_policy_definition_request_response.go new file mode 100644 index 00000000000..15d2f938fcc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_unified_audit_policy_definition_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetUnifiedAuditPolicyDefinitionRequest wrapper for the GetUnifiedAuditPolicyDefinition operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetUnifiedAuditPolicyDefinition.go.html to see an example of how to use GetUnifiedAuditPolicyDefinitionRequest. +type GetUnifiedAuditPolicyDefinitionRequest struct { + + // The OCID of the unified audit policy definition resource. + UnifiedAuditPolicyDefinitionId *string `mandatory:"true" contributesTo:"path" name:"unifiedAuditPolicyDefinitionId"` + + // 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 GetUnifiedAuditPolicyDefinitionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetUnifiedAuditPolicyDefinitionRequest) 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 GetUnifiedAuditPolicyDefinitionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetUnifiedAuditPolicyDefinitionRequest) 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 GetUnifiedAuditPolicyDefinitionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetUnifiedAuditPolicyDefinitionResponse wrapper for the GetUnifiedAuditPolicyDefinition operation +type GetUnifiedAuditPolicyDefinitionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The UnifiedAuditPolicyDefinition instance + UnifiedAuditPolicyDefinition `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.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 GetUnifiedAuditPolicyDefinitionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetUnifiedAuditPolicyDefinitionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_unified_audit_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_unified_audit_policy_request_response.go new file mode 100644 index 00000000000..26393c5595d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/get_unified_audit_policy_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetUnifiedAuditPolicyRequest wrapper for the GetUnifiedAuditPolicy operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/GetUnifiedAuditPolicy.go.html to see an example of how to use GetUnifiedAuditPolicyRequest. +type GetUnifiedAuditPolicyRequest struct { + + // The OCID of the Unified Audit policy resource. + UnifiedAuditPolicyId *string `mandatory:"true" contributesTo:"path" name:"unifiedAuditPolicyId"` + + // 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 GetUnifiedAuditPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetUnifiedAuditPolicyRequest) 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 GetUnifiedAuditPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetUnifiedAuditPolicyRequest) 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 GetUnifiedAuditPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetUnifiedAuditPolicyResponse wrapper for the GetUnifiedAuditPolicy operation +type GetUnifiedAuditPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The UnifiedAuditPolicy instance + UnifiedAuditPolicy `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.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 GetUnifiedAuditPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetUnifiedAuditPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/group_members_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/group_members_collection.go new file mode 100644 index 00000000000..8442e39756f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/group_members_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// GroupMembersCollection The criteria for displaying the members of a target database group. +type GroupMembersCollection struct { + + // List of the OCIDs of the target databases which are members of the target database group. + TargetDatabases []string `mandatory:"true" json:"targetDatabases"` +} + +func (m GroupMembersCollection) 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 GroupMembersCollection) 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/datasafe/include.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/include.go new file mode 100644 index 00000000000..b9f6bbd36de --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/include.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Include Criteria to determine whether a target database should be included in the target database group. +// If the database satisfies any of compartments, targetDatabaseIds, freeformTags, or definedTags criteria, it qualifies for inclusion in the target database group +type Include struct { + + // List of compartment objects, each containing the OCID of the compartment and a boolean value that indicates whether the target databases in the compartments and sub-compartments should also be included in the target database group. + Compartments []Compartments `mandatory:"false" json:"compartments"` + + // The list of target database OCIDs to be included in the target database group. + TargetDatabaseIds []string `mandatory:"false" json:"targetDatabaseIds"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m Include) 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 Include) 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/datasafe/list_alert_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_alert_analytics_request_response.go index b68dc5a329c..08037d0b582 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_alert_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_alert_analytics_request_response.go @@ -70,7 +70,7 @@ type ListAlertAnalyticsRequest struct { // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. // (Numeric and boolean values should not be quoted.) // **Example:** | - // query=(timeCreated ge '2021-06-04T01-00-26') and (targetNames eq 'target_1') + // query=(timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq "target_1") // query=(featureDetails.userName eq "user") and (targetNames eq "target_1") // Supported fields: // severity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_alerts_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_alerts_request_response.go index ffe24a0681f..54a9adaafe0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_alerts_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_alerts_request_response.go @@ -55,7 +55,7 @@ type ListAlertsRequest struct { // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. // (Numeric and boolean values should not be quoted.) // **Example:** | - // query=(timeCreated ge '2021-06-04T01-00-26') and (targetNames eq 'target_1') + // query=(timeCreated ge "2021-06-04T01:00:26.000Z") and (targetNames eq "target_1") // query=(featureDetails.userName eq "user") and (targetNames eq "target_1") // Supported fields: // severity diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_associated_resources_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_associated_resources_request_response.go new file mode 100644 index 00000000000..a1cebe02729 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_associated_resources_request_response.go @@ -0,0 +1,128 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListAssociatedResourcesRequest wrapper for the ListAssociatedResources operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAssociatedResources.go.html to see an example of how to use ListAssociatedResourcesRequest. +type ListAssociatedResourcesRequest struct { + + // OCID of an attribute set. + AttributeSetId *string `mandatory:"true" contributesTo:"path" name:"attributeSetId"` + + // 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"` + + // 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"` + + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return attribute set associated resources that matches the specified resource type query param. + AssociatedResourceType AssociatedResourceSummaryAssociatedResourceTypeEnum `mandatory:"false" contributesTo:"query" name:"associatedResourceType" omitEmpty:"true"` + + // A filter to return attribute set associated resource that matches the specified associated resource id query param. + AssociatedResourceId *string `mandatory:"false" contributesTo:"query" name:"associatedResourceId"` + + // 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 ListAssociatedResourcesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAssociatedResourcesRequest) 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 ListAssociatedResourcesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAssociatedResourcesRequest) 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 ListAssociatedResourcesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAssociatedResourceSummaryAssociatedResourceTypeEnum(string(request.AssociatedResourceType)); !ok && request.AssociatedResourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AssociatedResourceType: %s. Supported values are: %s.", request.AssociatedResourceType, strings.Join(GetAssociatedResourceSummaryAssociatedResourceTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListAssociatedResourcesResponse wrapper for the ListAssociatedResources operation +type ListAssociatedResourcesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of AssociatedResourceCollection instances + AssociatedResourceCollection `presentIn:"body"` + + // For optimistic concurrency control. For more information, see ETags for Optimistic Concurrency Control (https://docs.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"` + + // For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response ListAssociatedResourcesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAssociatedResourcesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_attribute_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_attribute_sets_request_response.go new file mode 100644 index 00000000000..39aca6ee674 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_attribute_sets_request_response.go @@ -0,0 +1,325 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListAttributeSetsRequest wrapper for the ListAttributeSets operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListAttributeSets.go.html to see an example of how to use ListAttributeSetsRequest. +type ListAttributeSetsRequest struct { + + // A filter to return only resources that match the specified compartment OCID. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Default is false. + // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. + // Setting this to ACCESSIBLE returns only those compartments for which the + // user has INSPECT permissions directly or indirectly (permissions can be on a + // resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. + AccessLevel ListAttributeSetsAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` + + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the specified display name. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A filter to return only attribute set resources that matches the specified attribute set OCID query param. + AttributeSetId *string `mandatory:"false" contributesTo:"query" name:"attributeSetId"` + + // A filter to return only attribute set resources that matches the specified attribute set type query param. + AttributeSetType AttributeSetAttributeSetTypeEnum `mandatory:"false" contributesTo:"query" name:"attributeSetType" omitEmpty:"true"` + + // The current state of an attribute set. + LifecycleState AttributeSetLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The sort order to use, either ascending (ASC) or descending (DESC). + SortOrder ListAttributeSetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field used for sorting. Only one sorting order (sortOrder) can be specified. + // The default order for TIMECREATED is descending. The default order for DISPLAYNAME is ascending. + // The DISPLAYNAME sort order is case sensitive. + SortBy ListAttributeSetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A filter to return user defined or seeded attribute set resources that matches the specified is user defined query param. A true value indicates user defined attribute set. + IsUserDefined *bool `mandatory:"false" contributesTo:"query" name:"isUserDefined"` + + // A filter to return attribute set resources that are in use by other associated resources. + InUse ListAttributeSetsInUseEnum `mandatory:"false" contributesTo:"query" name:"inUse" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAttributeSetsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAttributeSetsRequest) 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 ListAttributeSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAttributeSetsRequest) 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 ListAttributeSetsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListAttributeSetsAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetListAttributeSetsAccessLevelEnumStringValues(), ","))) + } + if _, ok := GetMappingAttributeSetAttributeSetTypeEnum(string(request.AttributeSetType)); !ok && request.AttributeSetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AttributeSetType: %s. Supported values are: %s.", request.AttributeSetType, strings.Join(GetAttributeSetAttributeSetTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingAttributeSetLifecycleStateEnum(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(GetAttributeSetLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListAttributeSetsSortOrderEnum(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(GetListAttributeSetsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListAttributeSetsSortByEnum(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(GetListAttributeSetsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListAttributeSetsInUseEnum(string(request.InUse)); !ok && request.InUse != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for InUse: %s. Supported values are: %s.", request.InUse, strings.Join(GetListAttributeSetsInUseEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListAttributeSetsResponse wrapper for the ListAttributeSets operation +type ListAttributeSetsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of AttributeSetCollection instances + AttributeSetCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response ListAttributeSetsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAttributeSetsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAttributeSetsAccessLevelEnum Enum with underlying type: string +type ListAttributeSetsAccessLevelEnum string + +// Set of constants representing the allowable values for ListAttributeSetsAccessLevelEnum +const ( + ListAttributeSetsAccessLevelRestricted ListAttributeSetsAccessLevelEnum = "RESTRICTED" + ListAttributeSetsAccessLevelAccessible ListAttributeSetsAccessLevelEnum = "ACCESSIBLE" +) + +var mappingListAttributeSetsAccessLevelEnum = map[string]ListAttributeSetsAccessLevelEnum{ + "RESTRICTED": ListAttributeSetsAccessLevelRestricted, + "ACCESSIBLE": ListAttributeSetsAccessLevelAccessible, +} + +var mappingListAttributeSetsAccessLevelEnumLowerCase = map[string]ListAttributeSetsAccessLevelEnum{ + "restricted": ListAttributeSetsAccessLevelRestricted, + "accessible": ListAttributeSetsAccessLevelAccessible, +} + +// GetListAttributeSetsAccessLevelEnumValues Enumerates the set of values for ListAttributeSetsAccessLevelEnum +func GetListAttributeSetsAccessLevelEnumValues() []ListAttributeSetsAccessLevelEnum { + values := make([]ListAttributeSetsAccessLevelEnum, 0) + for _, v := range mappingListAttributeSetsAccessLevelEnum { + values = append(values, v) + } + return values +} + +// GetListAttributeSetsAccessLevelEnumStringValues Enumerates the set of values in String for ListAttributeSetsAccessLevelEnum +func GetListAttributeSetsAccessLevelEnumStringValues() []string { + return []string{ + "RESTRICTED", + "ACCESSIBLE", + } +} + +// GetMappingListAttributeSetsAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAttributeSetsAccessLevelEnum(val string) (ListAttributeSetsAccessLevelEnum, bool) { + enum, ok := mappingListAttributeSetsAccessLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListAttributeSetsSortOrderEnum Enum with underlying type: string +type ListAttributeSetsSortOrderEnum string + +// Set of constants representing the allowable values for ListAttributeSetsSortOrderEnum +const ( + ListAttributeSetsSortOrderAsc ListAttributeSetsSortOrderEnum = "ASC" + ListAttributeSetsSortOrderDesc ListAttributeSetsSortOrderEnum = "DESC" +) + +var mappingListAttributeSetsSortOrderEnum = map[string]ListAttributeSetsSortOrderEnum{ + "ASC": ListAttributeSetsSortOrderAsc, + "DESC": ListAttributeSetsSortOrderDesc, +} + +var mappingListAttributeSetsSortOrderEnumLowerCase = map[string]ListAttributeSetsSortOrderEnum{ + "asc": ListAttributeSetsSortOrderAsc, + "desc": ListAttributeSetsSortOrderDesc, +} + +// GetListAttributeSetsSortOrderEnumValues Enumerates the set of values for ListAttributeSetsSortOrderEnum +func GetListAttributeSetsSortOrderEnumValues() []ListAttributeSetsSortOrderEnum { + values := make([]ListAttributeSetsSortOrderEnum, 0) + for _, v := range mappingListAttributeSetsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListAttributeSetsSortOrderEnumStringValues Enumerates the set of values in String for ListAttributeSetsSortOrderEnum +func GetListAttributeSetsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListAttributeSetsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAttributeSetsSortOrderEnum(val string) (ListAttributeSetsSortOrderEnum, bool) { + enum, ok := mappingListAttributeSetsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListAttributeSetsSortByEnum Enum with underlying type: string +type ListAttributeSetsSortByEnum string + +// Set of constants representing the allowable values for ListAttributeSetsSortByEnum +const ( + ListAttributeSetsSortByTimecreated ListAttributeSetsSortByEnum = "TIMECREATED" + ListAttributeSetsSortByDisplayname ListAttributeSetsSortByEnum = "DISPLAYNAME" +) + +var mappingListAttributeSetsSortByEnum = map[string]ListAttributeSetsSortByEnum{ + "TIMECREATED": ListAttributeSetsSortByTimecreated, + "DISPLAYNAME": ListAttributeSetsSortByDisplayname, +} + +var mappingListAttributeSetsSortByEnumLowerCase = map[string]ListAttributeSetsSortByEnum{ + "timecreated": ListAttributeSetsSortByTimecreated, + "displayname": ListAttributeSetsSortByDisplayname, +} + +// GetListAttributeSetsSortByEnumValues Enumerates the set of values for ListAttributeSetsSortByEnum +func GetListAttributeSetsSortByEnumValues() []ListAttributeSetsSortByEnum { + values := make([]ListAttributeSetsSortByEnum, 0) + for _, v := range mappingListAttributeSetsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListAttributeSetsSortByEnumStringValues Enumerates the set of values in String for ListAttributeSetsSortByEnum +func GetListAttributeSetsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListAttributeSetsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAttributeSetsSortByEnum(val string) (ListAttributeSetsSortByEnum, bool) { + enum, ok := mappingListAttributeSetsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListAttributeSetsInUseEnum Enum with underlying type: string +type ListAttributeSetsInUseEnum string + +// Set of constants representing the allowable values for ListAttributeSetsInUseEnum +const ( + ListAttributeSetsInUseYes ListAttributeSetsInUseEnum = "YES" + ListAttributeSetsInUseNo ListAttributeSetsInUseEnum = "NO" +) + +var mappingListAttributeSetsInUseEnum = map[string]ListAttributeSetsInUseEnum{ + "YES": ListAttributeSetsInUseYes, + "NO": ListAttributeSetsInUseNo, +} + +var mappingListAttributeSetsInUseEnumLowerCase = map[string]ListAttributeSetsInUseEnum{ + "yes": ListAttributeSetsInUseYes, + "no": ListAttributeSetsInUseNo, +} + +// GetListAttributeSetsInUseEnumValues Enumerates the set of values for ListAttributeSetsInUseEnum +func GetListAttributeSetsInUseEnumValues() []ListAttributeSetsInUseEnum { + values := make([]ListAttributeSetsInUseEnum, 0) + for _, v := range mappingListAttributeSetsInUseEnum { + values = append(values, v) + } + return values +} + +// GetListAttributeSetsInUseEnumStringValues Enumerates the set of values in String for ListAttributeSetsInUseEnum +func GetListAttributeSetsInUseEnumStringValues() []string { + return []string{ + "YES", + "NO", + } +} + +// GetMappingListAttributeSetsInUseEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAttributeSetsInUseEnum(val string) (ListAttributeSetsInUseEnum, bool) { + enum, ok := mappingListAttributeSetsInUseEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_archive_retrievals_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_archive_retrievals_request_response.go index 5c4976529aa..1ce7d625222 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_archive_retrievals_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_archive_retrievals_request_response.go @@ -40,6 +40,9 @@ type ListAuditArchiveRetrievalsRequest struct { // The OCID of the target associated with the archive retrieval. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_event_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_event_analytics_request_response.go index 78fb767ccb0..69aa158cd11 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_event_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_event_analytics_request_response.go @@ -53,7 +53,7 @@ type ListAuditEventAnalyticsRequest struct { // at RFC3339 (https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. // (Numeric and boolean values should not be quoted.) - // **Example:** (operationTime ge "2021-06-04T01-00-26") and (eventName eq "LOGON") + // **Example:** (auditEventTime ge "2021-06-04T01:00:26.000Z") and (eventName eq "LOGON") // The attrExp or the field (for example, operationTime and eventName in above example) which is used to filter can be any of the fields returned by AuditEventSummary. // adminUser, commonUser, sensitiveActivity, dsActivity can only have eq operation and value 1. // These define admin user activity, common user activity, sensitive data activity and data safe activity @@ -262,6 +262,13 @@ const ( ListAuditEventAnalyticsSummaryFieldDrops ListAuditEventAnalyticsSummaryFieldEnum = "drops" ListAuditEventAnalyticsSummaryFieldGrants ListAuditEventAnalyticsSummaryFieldEnum = "grants" ListAuditEventAnalyticsSummaryFieldRevokes ListAuditEventAnalyticsSummaryFieldEnum = "revokes" + ListAuditEventAnalyticsSummaryFieldObjectowner ListAuditEventAnalyticsSummaryFieldEnum = "objectOwner" + ListAuditEventAnalyticsSummaryFieldAuditpolicies ListAuditEventAnalyticsSummaryFieldEnum = "auditPolicies" + ListAuditEventAnalyticsSummaryFieldObjectname ListAuditEventAnalyticsSummaryFieldEnum = "objectName" + ListAuditEventAnalyticsSummaryFieldOsusername ListAuditEventAnalyticsSummaryFieldEnum = "osUserName" + ListAuditEventAnalyticsSummaryFieldErrorcode ListAuditEventAnalyticsSummaryFieldEnum = "errorCode" + ListAuditEventAnalyticsSummaryFieldClientip ListAuditEventAnalyticsSummaryFieldEnum = "clientIp" + ListAuditEventAnalyticsSummaryFieldExternaluserid ListAuditEventAnalyticsSummaryFieldEnum = "externalUserId" ) var mappingListAuditEventAnalyticsSummaryFieldEnum = map[string]ListAuditEventAnalyticsSummaryFieldEnum{ @@ -297,6 +304,13 @@ var mappingListAuditEventAnalyticsSummaryFieldEnum = map[string]ListAuditEventAn "drops": ListAuditEventAnalyticsSummaryFieldDrops, "grants": ListAuditEventAnalyticsSummaryFieldGrants, "revokes": ListAuditEventAnalyticsSummaryFieldRevokes, + "objectOwner": ListAuditEventAnalyticsSummaryFieldObjectowner, + "auditPolicies": ListAuditEventAnalyticsSummaryFieldAuditpolicies, + "objectName": ListAuditEventAnalyticsSummaryFieldObjectname, + "osUserName": ListAuditEventAnalyticsSummaryFieldOsusername, + "errorCode": ListAuditEventAnalyticsSummaryFieldErrorcode, + "clientIp": ListAuditEventAnalyticsSummaryFieldClientip, + "externalUserId": ListAuditEventAnalyticsSummaryFieldExternaluserid, } var mappingListAuditEventAnalyticsSummaryFieldEnumLowerCase = map[string]ListAuditEventAnalyticsSummaryFieldEnum{ @@ -332,6 +346,13 @@ var mappingListAuditEventAnalyticsSummaryFieldEnumLowerCase = map[string]ListAud "drops": ListAuditEventAnalyticsSummaryFieldDrops, "grants": ListAuditEventAnalyticsSummaryFieldGrants, "revokes": ListAuditEventAnalyticsSummaryFieldRevokes, + "objectowner": ListAuditEventAnalyticsSummaryFieldObjectowner, + "auditpolicies": ListAuditEventAnalyticsSummaryFieldAuditpolicies, + "objectname": ListAuditEventAnalyticsSummaryFieldObjectname, + "osusername": ListAuditEventAnalyticsSummaryFieldOsusername, + "errorcode": ListAuditEventAnalyticsSummaryFieldErrorcode, + "clientip": ListAuditEventAnalyticsSummaryFieldClientip, + "externaluserid": ListAuditEventAnalyticsSummaryFieldExternaluserid, } // GetListAuditEventAnalyticsSummaryFieldEnumValues Enumerates the set of values for ListAuditEventAnalyticsSummaryFieldEnum @@ -378,6 +399,13 @@ func GetListAuditEventAnalyticsSummaryFieldEnumStringValues() []string { "drops", "grants", "revokes", + "objectOwner", + "auditPolicies", + "objectName", + "osUserName", + "errorCode", + "clientIp", + "externalUserId", } } @@ -403,6 +431,13 @@ const ( ListAuditEventAnalyticsGroupByClientid ListAuditEventAnalyticsGroupByEnum = "clientId" ListAuditEventAnalyticsGroupByAudittype ListAuditEventAnalyticsGroupByEnum = "auditType" ListAuditEventAnalyticsGroupByEventname ListAuditEventAnalyticsGroupByEnum = "eventName" + ListAuditEventAnalyticsGroupByObjectowner ListAuditEventAnalyticsGroupByEnum = "objectOwner" + ListAuditEventAnalyticsGroupByAuditpolicies ListAuditEventAnalyticsGroupByEnum = "auditPolicies" + ListAuditEventAnalyticsGroupByObjectname ListAuditEventAnalyticsGroupByEnum = "objectName" + ListAuditEventAnalyticsGroupByOsusername ListAuditEventAnalyticsGroupByEnum = "osUserName" + ListAuditEventAnalyticsGroupByErrorcode ListAuditEventAnalyticsGroupByEnum = "errorCode" + ListAuditEventAnalyticsGroupByClientip ListAuditEventAnalyticsGroupByEnum = "clientIp" + ListAuditEventAnalyticsGroupByExternaluserid ListAuditEventAnalyticsGroupByEnum = "externalUserId" ) var mappingListAuditEventAnalyticsGroupByEnum = map[string]ListAuditEventAnalyticsGroupByEnum{ @@ -417,6 +452,13 @@ var mappingListAuditEventAnalyticsGroupByEnum = map[string]ListAuditEventAnalyti "clientId": ListAuditEventAnalyticsGroupByClientid, "auditType": ListAuditEventAnalyticsGroupByAudittype, "eventName": ListAuditEventAnalyticsGroupByEventname, + "objectOwner": ListAuditEventAnalyticsGroupByObjectowner, + "auditPolicies": ListAuditEventAnalyticsGroupByAuditpolicies, + "objectName": ListAuditEventAnalyticsGroupByObjectname, + "osUserName": ListAuditEventAnalyticsGroupByOsusername, + "errorCode": ListAuditEventAnalyticsGroupByErrorcode, + "clientIp": ListAuditEventAnalyticsGroupByClientip, + "externalUserId": ListAuditEventAnalyticsGroupByExternaluserid, } var mappingListAuditEventAnalyticsGroupByEnumLowerCase = map[string]ListAuditEventAnalyticsGroupByEnum{ @@ -431,6 +473,13 @@ var mappingListAuditEventAnalyticsGroupByEnumLowerCase = map[string]ListAuditEve "clientid": ListAuditEventAnalyticsGroupByClientid, "audittype": ListAuditEventAnalyticsGroupByAudittype, "eventname": ListAuditEventAnalyticsGroupByEventname, + "objectowner": ListAuditEventAnalyticsGroupByObjectowner, + "auditpolicies": ListAuditEventAnalyticsGroupByAuditpolicies, + "objectname": ListAuditEventAnalyticsGroupByObjectname, + "osusername": ListAuditEventAnalyticsGroupByOsusername, + "errorcode": ListAuditEventAnalyticsGroupByErrorcode, + "clientip": ListAuditEventAnalyticsGroupByClientip, + "externaluserid": ListAuditEventAnalyticsGroupByExternaluserid, } // GetListAuditEventAnalyticsGroupByEnumValues Enumerates the set of values for ListAuditEventAnalyticsGroupByEnum @@ -456,6 +505,13 @@ func GetListAuditEventAnalyticsGroupByEnumStringValues() []string { "clientId", "auditType", "eventName", + "objectOwner", + "auditPolicies", + "objectName", + "osUserName", + "errorCode", + "clientIp", + "externalUserId", } } @@ -523,6 +579,13 @@ const ( ListAuditEventAnalyticsSortByClientprogram ListAuditEventAnalyticsSortByEnum = "clientProgram" ListAuditEventAnalyticsSortByClientid ListAuditEventAnalyticsSortByEnum = "clientId" ListAuditEventAnalyticsSortByAudittype ListAuditEventAnalyticsSortByEnum = "auditType" + ListAuditEventAnalyticsSortByObjectowner ListAuditEventAnalyticsSortByEnum = "objectOwner" + ListAuditEventAnalyticsSortByAuditpolicies ListAuditEventAnalyticsSortByEnum = "auditPolicies" + ListAuditEventAnalyticsSortByObjectname ListAuditEventAnalyticsSortByEnum = "objectName" + ListAuditEventAnalyticsSortByOsusername ListAuditEventAnalyticsSortByEnum = "osUserName" + ListAuditEventAnalyticsSortByErrorcode ListAuditEventAnalyticsSortByEnum = "errorCode" + ListAuditEventAnalyticsSortByClientip ListAuditEventAnalyticsSortByEnum = "clientIp" + ListAuditEventAnalyticsSortByExternaluserid ListAuditEventAnalyticsSortByEnum = "externalUserId" ) var mappingListAuditEventAnalyticsSortByEnum = map[string]ListAuditEventAnalyticsSortByEnum{ @@ -537,6 +600,13 @@ var mappingListAuditEventAnalyticsSortByEnum = map[string]ListAuditEventAnalytic "clientProgram": ListAuditEventAnalyticsSortByClientprogram, "clientId": ListAuditEventAnalyticsSortByClientid, "auditType": ListAuditEventAnalyticsSortByAudittype, + "objectOwner": ListAuditEventAnalyticsSortByObjectowner, + "auditPolicies": ListAuditEventAnalyticsSortByAuditpolicies, + "objectName": ListAuditEventAnalyticsSortByObjectname, + "osUserName": ListAuditEventAnalyticsSortByOsusername, + "errorCode": ListAuditEventAnalyticsSortByErrorcode, + "clientIp": ListAuditEventAnalyticsSortByClientip, + "externalUserId": ListAuditEventAnalyticsSortByExternaluserid, } var mappingListAuditEventAnalyticsSortByEnumLowerCase = map[string]ListAuditEventAnalyticsSortByEnum{ @@ -551,6 +621,13 @@ var mappingListAuditEventAnalyticsSortByEnumLowerCase = map[string]ListAuditEven "clientprogram": ListAuditEventAnalyticsSortByClientprogram, "clientid": ListAuditEventAnalyticsSortByClientid, "audittype": ListAuditEventAnalyticsSortByAudittype, + "objectowner": ListAuditEventAnalyticsSortByObjectowner, + "auditpolicies": ListAuditEventAnalyticsSortByAuditpolicies, + "objectname": ListAuditEventAnalyticsSortByObjectname, + "osusername": ListAuditEventAnalyticsSortByOsusername, + "errorcode": ListAuditEventAnalyticsSortByErrorcode, + "clientip": ListAuditEventAnalyticsSortByClientip, + "externaluserid": ListAuditEventAnalyticsSortByExternaluserid, } // GetListAuditEventAnalyticsSortByEnumValues Enumerates the set of values for ListAuditEventAnalyticsSortByEnum @@ -576,6 +653,13 @@ func GetListAuditEventAnalyticsSortByEnumStringValues() []string { "clientProgram", "clientId", "auditType", + "objectOwner", + "auditPolicies", + "objectName", + "osUserName", + "errorCode", + "clientIp", + "externalUserId", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_events_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_events_request_response.go index baf3f4c8b68..78570b83d1e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_events_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_events_request_response.go @@ -46,7 +46,7 @@ type ListAuditEventsRequest struct { // at RFC3339 (https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. // (Numeric and boolean values should not be quoted.) - // **Example:** (operationTime ge "2021-06-04T01-00-26") and (eventName eq "LOGON") + // **Example:** (auditEventTime ge "2021-06-04T01:00:26.000Z") and (eventName eq "LOGON") // The attrExp or the field (for example, operationTime and eventName in above example) which is used to filter can be any of the fields returned by AuditEventSummary. // adminUser, commonUser, sensitiveActivity, dsActivity can only have eq operation and value 1. // These define admin user activity, common user activity, sensitive data activity and data safe activity @@ -257,6 +257,7 @@ const ( ListAuditEventsSortByClientid ListAuditEventsSortByEnum = "clientId" ListAuditEventsSortByAuditpolicies ListAuditEventsSortByEnum = "auditPolicies" ListAuditEventsSortByAudittype ListAuditEventsSortByEnum = "auditType" + ListAuditEventsSortByExternaluserid ListAuditEventsSortByEnum = "externalUserId" ) var mappingListAuditEventsSortByEnum = map[string]ListAuditEventsSortByEnum{ @@ -288,6 +289,7 @@ var mappingListAuditEventsSortByEnum = map[string]ListAuditEventsSortByEnum{ "clientId": ListAuditEventsSortByClientid, "auditPolicies": ListAuditEventsSortByAuditpolicies, "auditType": ListAuditEventsSortByAudittype, + "externalUserId": ListAuditEventsSortByExternaluserid, } var mappingListAuditEventsSortByEnumLowerCase = map[string]ListAuditEventsSortByEnum{ @@ -319,6 +321,7 @@ var mappingListAuditEventsSortByEnumLowerCase = map[string]ListAuditEventsSortBy "clientid": ListAuditEventsSortByClientid, "auditpolicies": ListAuditEventsSortByAuditpolicies, "audittype": ListAuditEventsSortByAudittype, + "externaluserid": ListAuditEventsSortByExternaluserid, } // GetListAuditEventsSortByEnumValues Enumerates the set of values for ListAuditEventsSortByEnum @@ -361,6 +364,7 @@ func GetListAuditEventsSortByEnumStringValues() []string { "clientId", "auditPolicies", "auditType", + "externalUserId", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_policies_request_response.go index a6285def057..8057ca36a0d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_policies_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_policies_request_response.go @@ -43,6 +43,9 @@ type ListAuditPoliciesRequest struct { // A filter to return only items related to a specific target OCID. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + // The current state of the audit policy. LifecycleState ListAuditPoliciesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_policy_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_policy_analytics_request_response.go index a5e99014d4f..a96f1b0c4b5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_policy_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_policy_analytics_request_response.go @@ -51,6 +51,9 @@ type ListAuditPolicyAnalyticsRequest struct { // A filter to return only items related to a specific target OCID. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + // The current state of the audit policy. LifecycleState ListAuditPolicyAnalyticsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_profile_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_profile_analytics_request_response.go index 06993cc0bec..6f14b43f714 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_profile_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_profile_analytics_request_response.go @@ -40,6 +40,9 @@ type ListAuditProfileAnalyticsRequest struct { // The group by parameter for summarize operation on audit. GroupBy []ListAuditProfileAnalyticsGroupByEnum `contributesTo:"query" name:"groupBy" omitEmpty:"true" collectionFormat:"multi"` + // A optional filter to return only resources that belong to the specified audit profile type. + TargetType ListAuditProfileAnalyticsTargetTypeEnum `mandatory:"false" contributesTo:"query" name:"targetType" omitEmpty:"true"` + // Unique identifier for the request. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -88,6 +91,9 @@ func (request ListAuditProfileAnalyticsRequest) ValidateEnumValue() (bool, error } } + if _, ok := GetMappingListAuditProfileAnalyticsTargetTypeEnum(string(request.TargetType)); !ok && request.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", request.TargetType, strings.Join(GetListAuditProfileAnalyticsTargetTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -171,15 +177,27 @@ type ListAuditProfileAnalyticsGroupByEnum string // Set of constants representing the allowable values for ListAuditProfileAnalyticsGroupByEnum const ( - ListAuditProfileAnalyticsGroupByIspaidusageenabled ListAuditProfileAnalyticsGroupByEnum = "isPaidUsageEnabled" + ListAuditProfileAnalyticsGroupByIspaidusageenabled ListAuditProfileAnalyticsGroupByEnum = "isPaidUsageEnabled" + ListAuditProfileAnalyticsGroupByTargettype ListAuditProfileAnalyticsGroupByEnum = "targetType" + ListAuditProfileAnalyticsGroupByPaidusagesource ListAuditProfileAnalyticsGroupByEnum = "paidUsageSource" + ListAuditProfileAnalyticsGroupByOnlinemonthssource ListAuditProfileAnalyticsGroupByEnum = "onlineMonthsSource" + ListAuditProfileAnalyticsGroupByOfflinemonthssource ListAuditProfileAnalyticsGroupByEnum = "offlineMonthsSource" ) var mappingListAuditProfileAnalyticsGroupByEnum = map[string]ListAuditProfileAnalyticsGroupByEnum{ - "isPaidUsageEnabled": ListAuditProfileAnalyticsGroupByIspaidusageenabled, + "isPaidUsageEnabled": ListAuditProfileAnalyticsGroupByIspaidusageenabled, + "targetType": ListAuditProfileAnalyticsGroupByTargettype, + "paidUsageSource": ListAuditProfileAnalyticsGroupByPaidusagesource, + "onlineMonthsSource": ListAuditProfileAnalyticsGroupByOnlinemonthssource, + "offlineMonthsSource": ListAuditProfileAnalyticsGroupByOfflinemonthssource, } var mappingListAuditProfileAnalyticsGroupByEnumLowerCase = map[string]ListAuditProfileAnalyticsGroupByEnum{ - "ispaidusageenabled": ListAuditProfileAnalyticsGroupByIspaidusageenabled, + "ispaidusageenabled": ListAuditProfileAnalyticsGroupByIspaidusageenabled, + "targettype": ListAuditProfileAnalyticsGroupByTargettype, + "paidusagesource": ListAuditProfileAnalyticsGroupByPaidusagesource, + "onlinemonthssource": ListAuditProfileAnalyticsGroupByOnlinemonthssource, + "offlinemonthssource": ListAuditProfileAnalyticsGroupByOfflinemonthssource, } // GetListAuditProfileAnalyticsGroupByEnumValues Enumerates the set of values for ListAuditProfileAnalyticsGroupByEnum @@ -195,6 +213,10 @@ func GetListAuditProfileAnalyticsGroupByEnumValues() []ListAuditProfileAnalytics func GetListAuditProfileAnalyticsGroupByEnumStringValues() []string { return []string{ "isPaidUsageEnabled", + "targetType", + "paidUsageSource", + "onlineMonthsSource", + "offlineMonthsSource", } } @@ -203,3 +225,45 @@ func GetMappingListAuditProfileAnalyticsGroupByEnum(val string) (ListAuditProfil enum, ok := mappingListAuditProfileAnalyticsGroupByEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// ListAuditProfileAnalyticsTargetTypeEnum Enum with underlying type: string +type ListAuditProfileAnalyticsTargetTypeEnum string + +// Set of constants representing the allowable values for ListAuditProfileAnalyticsTargetTypeEnum +const ( + ListAuditProfileAnalyticsTargetTypeDatabase ListAuditProfileAnalyticsTargetTypeEnum = "TARGET_DATABASE" + ListAuditProfileAnalyticsTargetTypeDatabaseGroup ListAuditProfileAnalyticsTargetTypeEnum = "TARGET_DATABASE_GROUP" +) + +var mappingListAuditProfileAnalyticsTargetTypeEnum = map[string]ListAuditProfileAnalyticsTargetTypeEnum{ + "TARGET_DATABASE": ListAuditProfileAnalyticsTargetTypeDatabase, + "TARGET_DATABASE_GROUP": ListAuditProfileAnalyticsTargetTypeDatabaseGroup, +} + +var mappingListAuditProfileAnalyticsTargetTypeEnumLowerCase = map[string]ListAuditProfileAnalyticsTargetTypeEnum{ + "target_database": ListAuditProfileAnalyticsTargetTypeDatabase, + "target_database_group": ListAuditProfileAnalyticsTargetTypeDatabaseGroup, +} + +// GetListAuditProfileAnalyticsTargetTypeEnumValues Enumerates the set of values for ListAuditProfileAnalyticsTargetTypeEnum +func GetListAuditProfileAnalyticsTargetTypeEnumValues() []ListAuditProfileAnalyticsTargetTypeEnum { + values := make([]ListAuditProfileAnalyticsTargetTypeEnum, 0) + for _, v := range mappingListAuditProfileAnalyticsTargetTypeEnum { + values = append(values, v) + } + return values +} + +// GetListAuditProfileAnalyticsTargetTypeEnumStringValues Enumerates the set of values in String for ListAuditProfileAnalyticsTargetTypeEnum +func GetListAuditProfileAnalyticsTargetTypeEnumStringValues() []string { + return []string{ + "TARGET_DATABASE", + "TARGET_DATABASE_GROUP", + } +} + +// GetMappingListAuditProfileAnalyticsTargetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAuditProfileAnalyticsTargetTypeEnum(val string) (ListAuditProfileAnalyticsTargetTypeEnum, bool) { + enum, ok := mappingListAuditProfileAnalyticsTargetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_profiles_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_profiles_request_response.go index 3398d84f846..32d8ee37305 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_profiles_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_profiles_request_response.go @@ -37,6 +37,12 @@ type ListAuditProfilesRequest struct { // A filter to return only items related to a specific target OCID. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + + // A optional filter to return only resources that belong to the specified audit profile type. + TargetType ListAuditProfilesTargetTypeEnum `mandatory:"false" contributesTo:"query" name:"targetType" omitEmpty:"true"` + // A filter to return only resources that match the specified display name. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` @@ -111,6 +117,9 @@ func (request ListAuditProfilesRequest) ValidateEnumValue() (bool, error) { if _, ok := GetMappingListAuditProfilesAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetListAuditProfilesAccessLevelEnumStringValues(), ","))) } + if _, ok := GetMappingListAuditProfilesTargetTypeEnum(string(request.TargetType)); !ok && request.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", request.TargetType, strings.Join(GetListAuditProfilesTargetTypeEnumStringValues(), ","))) + } if _, ok := GetMappingListAuditProfilesLifecycleStateEnum(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(GetListAuditProfilesLifecycleStateEnumStringValues(), ","))) } @@ -198,6 +207,48 @@ func GetMappingListAuditProfilesAccessLevelEnum(val string) (ListAuditProfilesAc return enum, ok } +// ListAuditProfilesTargetTypeEnum Enum with underlying type: string +type ListAuditProfilesTargetTypeEnum string + +// Set of constants representing the allowable values for ListAuditProfilesTargetTypeEnum +const ( + ListAuditProfilesTargetTypeDatabase ListAuditProfilesTargetTypeEnum = "TARGET_DATABASE" + ListAuditProfilesTargetTypeDatabaseGroup ListAuditProfilesTargetTypeEnum = "TARGET_DATABASE_GROUP" +) + +var mappingListAuditProfilesTargetTypeEnum = map[string]ListAuditProfilesTargetTypeEnum{ + "TARGET_DATABASE": ListAuditProfilesTargetTypeDatabase, + "TARGET_DATABASE_GROUP": ListAuditProfilesTargetTypeDatabaseGroup, +} + +var mappingListAuditProfilesTargetTypeEnumLowerCase = map[string]ListAuditProfilesTargetTypeEnum{ + "target_database": ListAuditProfilesTargetTypeDatabase, + "target_database_group": ListAuditProfilesTargetTypeDatabaseGroup, +} + +// GetListAuditProfilesTargetTypeEnumValues Enumerates the set of values for ListAuditProfilesTargetTypeEnum +func GetListAuditProfilesTargetTypeEnumValues() []ListAuditProfilesTargetTypeEnum { + values := make([]ListAuditProfilesTargetTypeEnum, 0) + for _, v := range mappingListAuditProfilesTargetTypeEnum { + values = append(values, v) + } + return values +} + +// GetListAuditProfilesTargetTypeEnumStringValues Enumerates the set of values in String for ListAuditProfilesTargetTypeEnum +func GetListAuditProfilesTargetTypeEnumStringValues() []string { + return []string{ + "TARGET_DATABASE", + "TARGET_DATABASE_GROUP", + } +} + +// GetMappingListAuditProfilesTargetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAuditProfilesTargetTypeEnum(val string) (ListAuditProfilesTargetTypeEnum, bool) { + enum, ok := mappingListAuditProfilesTargetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + // ListAuditProfilesLifecycleStateEnum Enum with underlying type: string type ListAuditProfilesLifecycleStateEnum string diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_trail_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_trail_analytics_request_response.go index bcf3a84f184..48d1638f105 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_trail_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_trail_analytics_request_response.go @@ -43,6 +43,20 @@ type ListAuditTrailAnalyticsRequest struct { // A filter to return only items related to a specific target OCID. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // An optional filter to return audit events whose creation time in the database is greater than and equal to the date-time specified, + // in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeStarted *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeStarted"` + + // An optional filter to return audit events whose creation time in the database is less than and equal to the date-time specified, + // in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeEnded *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeEnded"` + + // Default time zone is UTC if no time zone provided. The date-time considerations of the resource will be in accordance with the specified time zone. + QueryTimeZone *string `mandatory:"false" contributesTo:"query" name:"queryTimeZone"` + + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + // Unique identifier for the request. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_trails_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_trails_request_response.go index 248a914133a..dbda3de8f63 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_trails_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_audit_trails_request_response.go @@ -40,6 +40,9 @@ type ListAuditTrailsRequest struct { // A filter to return only items related to a specific target OCID. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_checks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_checks_request_response.go new file mode 100644 index 00000000000..17cf59c3412 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_checks_request_response.go @@ -0,0 +1,406 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListChecksRequest wrapper for the ListChecks operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListChecks.go.html to see an example of how to use ListChecksRequest. +type ListChecksRequest struct { + + // The OCID of the security assessment. + SecurityAssessmentId *string `mandatory:"true" contributesTo:"path" name:"securityAssessmentId"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either ascending (ASC) or descending (DESC). + SortOrder ListChecksSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. You can specify only one sort order(sortOrder). The default order for title is ascending. + SortBy ListChecksSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // A filter to return only checks of a particular risk level. + SuggestedSeverity ListChecksSuggestedSeverityEnum `mandatory:"false" contributesTo:"query" name:"suggestedSeverity" omitEmpty:"true"` + + // A filter to return only findings that match the specified risk level(s). Use containsSeverity parameter if need to filter by multiple risk levels. + ContainsSeverity []ListChecksContainsSeverityEnum `contributesTo:"query" name:"containsSeverity" omitEmpty:"true" collectionFormat:"multi"` + + // An optional filter to return only findings that match the specified references. Use containsReferences param if need to filter by multiple references. + ContainsReferences []SecurityAssessmentReferencesEnum `contributesTo:"query" name:"containsReferences" omitEmpty:"true" collectionFormat:"multi"` + + // Default is false. + // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. + // Setting this to ACCESSIBLE returns only those compartments for which the + // user has INSPECT permissions directly or indirectly (permissions can be on a + // resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. + AccessLevel ListChecksAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` + + // Each check in security assessment has an associated key (think of key as a check's name). + // For a given check, the key will be the same across targets. The user can use these keys to filter the checks. + Key *string `mandatory:"false" contributesTo:"query" name:"key"` + + // 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 ListChecksRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListChecksRequest) 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 ListChecksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListChecksRequest) 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 ListChecksRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListChecksSortOrderEnum(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(GetListChecksSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListChecksSortByEnum(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(GetListChecksSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListChecksSuggestedSeverityEnum(string(request.SuggestedSeverity)); !ok && request.SuggestedSeverity != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SuggestedSeverity: %s. Supported values are: %s.", request.SuggestedSeverity, strings.Join(GetListChecksSuggestedSeverityEnumStringValues(), ","))) + } + for _, val := range request.ContainsSeverity { + if _, ok := GetMappingListChecksContainsSeverityEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ContainsSeverity: %s. Supported values are: %s.", val, strings.Join(GetListChecksContainsSeverityEnumStringValues(), ","))) + } + } + + for _, val := range request.ContainsReferences { + if _, ok := GetMappingSecurityAssessmentReferencesEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ContainsReferences: %s. Supported values are: %s.", val, strings.Join(GetSecurityAssessmentReferencesEnumStringValues(), ","))) + } + } + + if _, ok := GetMappingListChecksAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetListChecksAccessLevelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListChecksResponse wrapper for the ListChecks operation +type ListChecksResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []CheckSummary instances + Items []CheckSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response ListChecksResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListChecksResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListChecksSortOrderEnum Enum with underlying type: string +type ListChecksSortOrderEnum string + +// Set of constants representing the allowable values for ListChecksSortOrderEnum +const ( + ListChecksSortOrderAsc ListChecksSortOrderEnum = "ASC" + ListChecksSortOrderDesc ListChecksSortOrderEnum = "DESC" +) + +var mappingListChecksSortOrderEnum = map[string]ListChecksSortOrderEnum{ + "ASC": ListChecksSortOrderAsc, + "DESC": ListChecksSortOrderDesc, +} + +var mappingListChecksSortOrderEnumLowerCase = map[string]ListChecksSortOrderEnum{ + "asc": ListChecksSortOrderAsc, + "desc": ListChecksSortOrderDesc, +} + +// GetListChecksSortOrderEnumValues Enumerates the set of values for ListChecksSortOrderEnum +func GetListChecksSortOrderEnumValues() []ListChecksSortOrderEnum { + values := make([]ListChecksSortOrderEnum, 0) + for _, v := range mappingListChecksSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListChecksSortOrderEnumStringValues Enumerates the set of values in String for ListChecksSortOrderEnum +func GetListChecksSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListChecksSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListChecksSortOrderEnum(val string) (ListChecksSortOrderEnum, bool) { + enum, ok := mappingListChecksSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListChecksSortByEnum Enum with underlying type: string +type ListChecksSortByEnum string + +// Set of constants representing the allowable values for ListChecksSortByEnum +const ( + ListChecksSortByTitle ListChecksSortByEnum = "title" + ListChecksSortByCategory ListChecksSortByEnum = "category" +) + +var mappingListChecksSortByEnum = map[string]ListChecksSortByEnum{ + "title": ListChecksSortByTitle, + "category": ListChecksSortByCategory, +} + +var mappingListChecksSortByEnumLowerCase = map[string]ListChecksSortByEnum{ + "title": ListChecksSortByTitle, + "category": ListChecksSortByCategory, +} + +// GetListChecksSortByEnumValues Enumerates the set of values for ListChecksSortByEnum +func GetListChecksSortByEnumValues() []ListChecksSortByEnum { + values := make([]ListChecksSortByEnum, 0) + for _, v := range mappingListChecksSortByEnum { + values = append(values, v) + } + return values +} + +// GetListChecksSortByEnumStringValues Enumerates the set of values in String for ListChecksSortByEnum +func GetListChecksSortByEnumStringValues() []string { + return []string{ + "title", + "category", + } +} + +// GetMappingListChecksSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListChecksSortByEnum(val string) (ListChecksSortByEnum, bool) { + enum, ok := mappingListChecksSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListChecksSuggestedSeverityEnum Enum with underlying type: string +type ListChecksSuggestedSeverityEnum string + +// Set of constants representing the allowable values for ListChecksSuggestedSeverityEnum +const ( + ListChecksSuggestedSeverityHigh ListChecksSuggestedSeverityEnum = "HIGH" + ListChecksSuggestedSeverityMedium ListChecksSuggestedSeverityEnum = "MEDIUM" + ListChecksSuggestedSeverityLow ListChecksSuggestedSeverityEnum = "LOW" + ListChecksSuggestedSeverityEvaluate ListChecksSuggestedSeverityEnum = "EVALUATE" + ListChecksSuggestedSeverityAdvisory ListChecksSuggestedSeverityEnum = "ADVISORY" + ListChecksSuggestedSeverityPass ListChecksSuggestedSeverityEnum = "PASS" + ListChecksSuggestedSeverityDeferred ListChecksSuggestedSeverityEnum = "DEFERRED" +) + +var mappingListChecksSuggestedSeverityEnum = map[string]ListChecksSuggestedSeverityEnum{ + "HIGH": ListChecksSuggestedSeverityHigh, + "MEDIUM": ListChecksSuggestedSeverityMedium, + "LOW": ListChecksSuggestedSeverityLow, + "EVALUATE": ListChecksSuggestedSeverityEvaluate, + "ADVISORY": ListChecksSuggestedSeverityAdvisory, + "PASS": ListChecksSuggestedSeverityPass, + "DEFERRED": ListChecksSuggestedSeverityDeferred, +} + +var mappingListChecksSuggestedSeverityEnumLowerCase = map[string]ListChecksSuggestedSeverityEnum{ + "high": ListChecksSuggestedSeverityHigh, + "medium": ListChecksSuggestedSeverityMedium, + "low": ListChecksSuggestedSeverityLow, + "evaluate": ListChecksSuggestedSeverityEvaluate, + "advisory": ListChecksSuggestedSeverityAdvisory, + "pass": ListChecksSuggestedSeverityPass, + "deferred": ListChecksSuggestedSeverityDeferred, +} + +// GetListChecksSuggestedSeverityEnumValues Enumerates the set of values for ListChecksSuggestedSeverityEnum +func GetListChecksSuggestedSeverityEnumValues() []ListChecksSuggestedSeverityEnum { + values := make([]ListChecksSuggestedSeverityEnum, 0) + for _, v := range mappingListChecksSuggestedSeverityEnum { + values = append(values, v) + } + return values +} + +// GetListChecksSuggestedSeverityEnumStringValues Enumerates the set of values in String for ListChecksSuggestedSeverityEnum +func GetListChecksSuggestedSeverityEnumStringValues() []string { + return []string{ + "HIGH", + "MEDIUM", + "LOW", + "EVALUATE", + "ADVISORY", + "PASS", + "DEFERRED", + } +} + +// GetMappingListChecksSuggestedSeverityEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListChecksSuggestedSeverityEnum(val string) (ListChecksSuggestedSeverityEnum, bool) { + enum, ok := mappingListChecksSuggestedSeverityEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListChecksContainsSeverityEnum Enum with underlying type: string +type ListChecksContainsSeverityEnum string + +// Set of constants representing the allowable values for ListChecksContainsSeverityEnum +const ( + ListChecksContainsSeverityHigh ListChecksContainsSeverityEnum = "HIGH" + ListChecksContainsSeverityMedium ListChecksContainsSeverityEnum = "MEDIUM" + ListChecksContainsSeverityLow ListChecksContainsSeverityEnum = "LOW" + ListChecksContainsSeverityEvaluate ListChecksContainsSeverityEnum = "EVALUATE" + ListChecksContainsSeverityAdvisory ListChecksContainsSeverityEnum = "ADVISORY" + ListChecksContainsSeverityPass ListChecksContainsSeverityEnum = "PASS" + ListChecksContainsSeverityDeferred ListChecksContainsSeverityEnum = "DEFERRED" +) + +var mappingListChecksContainsSeverityEnum = map[string]ListChecksContainsSeverityEnum{ + "HIGH": ListChecksContainsSeverityHigh, + "MEDIUM": ListChecksContainsSeverityMedium, + "LOW": ListChecksContainsSeverityLow, + "EVALUATE": ListChecksContainsSeverityEvaluate, + "ADVISORY": ListChecksContainsSeverityAdvisory, + "PASS": ListChecksContainsSeverityPass, + "DEFERRED": ListChecksContainsSeverityDeferred, +} + +var mappingListChecksContainsSeverityEnumLowerCase = map[string]ListChecksContainsSeverityEnum{ + "high": ListChecksContainsSeverityHigh, + "medium": ListChecksContainsSeverityMedium, + "low": ListChecksContainsSeverityLow, + "evaluate": ListChecksContainsSeverityEvaluate, + "advisory": ListChecksContainsSeverityAdvisory, + "pass": ListChecksContainsSeverityPass, + "deferred": ListChecksContainsSeverityDeferred, +} + +// GetListChecksContainsSeverityEnumValues Enumerates the set of values for ListChecksContainsSeverityEnum +func GetListChecksContainsSeverityEnumValues() []ListChecksContainsSeverityEnum { + values := make([]ListChecksContainsSeverityEnum, 0) + for _, v := range mappingListChecksContainsSeverityEnum { + values = append(values, v) + } + return values +} + +// GetListChecksContainsSeverityEnumStringValues Enumerates the set of values in String for ListChecksContainsSeverityEnum +func GetListChecksContainsSeverityEnumStringValues() []string { + return []string{ + "HIGH", + "MEDIUM", + "LOW", + "EVALUATE", + "ADVISORY", + "PASS", + "DEFERRED", + } +} + +// GetMappingListChecksContainsSeverityEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListChecksContainsSeverityEnum(val string) (ListChecksContainsSeverityEnum, bool) { + enum, ok := mappingListChecksContainsSeverityEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListChecksAccessLevelEnum Enum with underlying type: string +type ListChecksAccessLevelEnum string + +// Set of constants representing the allowable values for ListChecksAccessLevelEnum +const ( + ListChecksAccessLevelRestricted ListChecksAccessLevelEnum = "RESTRICTED" + ListChecksAccessLevelAccessible ListChecksAccessLevelEnum = "ACCESSIBLE" +) + +var mappingListChecksAccessLevelEnum = map[string]ListChecksAccessLevelEnum{ + "RESTRICTED": ListChecksAccessLevelRestricted, + "ACCESSIBLE": ListChecksAccessLevelAccessible, +} + +var mappingListChecksAccessLevelEnumLowerCase = map[string]ListChecksAccessLevelEnum{ + "restricted": ListChecksAccessLevelRestricted, + "accessible": ListChecksAccessLevelAccessible, +} + +// GetListChecksAccessLevelEnumValues Enumerates the set of values for ListChecksAccessLevelEnum +func GetListChecksAccessLevelEnumValues() []ListChecksAccessLevelEnum { + values := make([]ListChecksAccessLevelEnum, 0) + for _, v := range mappingListChecksAccessLevelEnum { + values = append(values, v) + } + return values +} + +// GetListChecksAccessLevelEnumStringValues Enumerates the set of values in String for ListChecksAccessLevelEnum +func GetListChecksAccessLevelEnumStringValues() []string { + return []string{ + "RESTRICTED", + "ACCESSIBLE", + } +} + +// GetMappingListChecksAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListChecksAccessLevelEnum(val string) (ListChecksAccessLevelEnum, bool) { + enum, ok := mappingListChecksAccessLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_database_security_configs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_database_security_configs_request_response.go index 4b1547fb54a..ca67c9c376c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_database_security_configs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_database_security_configs_request_response.go @@ -62,6 +62,9 @@ type ListDatabaseSecurityConfigsRequest struct { // A filter to return only items related to a specific target OCID. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + // The sort order to use, either ascending (ASC) or descending (DESC). SortOrder ListDatabaseSecurityConfigsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_database_table_access_entries_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_database_table_access_entries_request_response.go index d8f213cbf58..74767259cfa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_database_table_access_entries_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_database_table_access_entries_request_response.go @@ -32,7 +32,7 @@ type ListDatabaseTableAccessEntriesRequest struct { // at RFC3339 (https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. // (Numeric and boolean values should not be quoted.) - // **Example:** query=(accessType eq 'SELECT') and (grantee eq 'ADMIN') + // **Example:** query=(accessType eq "SELECT") and (grantee eq "ADMIN") ScimQuery *string `mandatory:"false" contributesTo:"query" name:"scimQuery"` // The field to sort by. Only one sort parameter should be provided. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_database_view_access_entries_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_database_view_access_entries_request_response.go index f66034242a5..3f80987c251 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_database_view_access_entries_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_database_view_access_entries_request_response.go @@ -32,7 +32,7 @@ type ListDatabaseViewAccessEntriesRequest struct { // at RFC3339 (https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. // (Numeric and boolean values should not be quoted.) - // **Example:** query=(accessType eq 'SELECT') and (grantee eq 'ADMIN') + // **Example:** query=(accessType eq "SELECT") and (grantee eq "ADMIN") ScimQuery *string `mandatory:"false" contributesTo:"query" name:"scimQuery"` // A filter to return only items related to a specific target OCID. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_discovery_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_discovery_analytics_request_response.go index 2152a559262..382e29eb274 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_discovery_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_discovery_analytics_request_response.go @@ -31,6 +31,15 @@ type ListDiscoveryAnalyticsRequest struct { // A filter to return only items related to a specific target OCID. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + + // The field to sort by. You can specify only one sorting parameter (sortOrder). The default order for all the fields is ascending. + SortBy ListDiscoveryAnalyticsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (ASC) or descending (DESC). + SortOrder ListDiscoveryAnalyticsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + // A filter to return only the resources that match the specified sensitive data model OCID. SensitiveDataModelId *string `mandatory:"false" contributesTo:"query" name:"sensitiveDataModelId"` @@ -50,6 +59,9 @@ type ListDiscoveryAnalyticsRequest struct { // library sensitive types which are frequently used to perform sensitive data discovery. IsCommon *bool `mandatory:"false" contributesTo:"query" name:"isCommon"` + // An optional filter to return only resources that match the specified OCID of the sensitive type group resource. + SensitiveTypeGroupId *string `mandatory:"false" contributesTo:"query" name:"sensitiveTypeGroupId"` + // 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 @@ -89,6 +101,12 @@ func (request ListDiscoveryAnalyticsRequest) ValidateEnumValue() (bool, error) { if _, ok := GetMappingListDiscoveryAnalyticsGroupByEnum(string(request.GroupBy)); !ok && request.GroupBy != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for GroupBy: %s. Supported values are: %s.", request.GroupBy, strings.Join(GetListDiscoveryAnalyticsGroupByEnumStringValues(), ","))) } + if _, ok := GetMappingListDiscoveryAnalyticsSortByEnum(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(GetListDiscoveryAnalyticsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListDiscoveryAnalyticsSortOrderEnum(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(GetListDiscoveryAnalyticsSortOrderEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -182,3 +200,83 @@ func GetMappingListDiscoveryAnalyticsGroupByEnum(val string) (ListDiscoveryAnaly enum, ok := mappingListDiscoveryAnalyticsGroupByEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// ListDiscoveryAnalyticsSortByEnum Enum with underlying type: string +type ListDiscoveryAnalyticsSortByEnum string + +// Set of constants representing the allowable values for ListDiscoveryAnalyticsSortByEnum +const ( + ListDiscoveryAnalyticsSortByTimelastdiscovered ListDiscoveryAnalyticsSortByEnum = "timeLastDiscovered" +) + +var mappingListDiscoveryAnalyticsSortByEnum = map[string]ListDiscoveryAnalyticsSortByEnum{ + "timeLastDiscovered": ListDiscoveryAnalyticsSortByTimelastdiscovered, +} + +var mappingListDiscoveryAnalyticsSortByEnumLowerCase = map[string]ListDiscoveryAnalyticsSortByEnum{ + "timelastdiscovered": ListDiscoveryAnalyticsSortByTimelastdiscovered, +} + +// GetListDiscoveryAnalyticsSortByEnumValues Enumerates the set of values for ListDiscoveryAnalyticsSortByEnum +func GetListDiscoveryAnalyticsSortByEnumValues() []ListDiscoveryAnalyticsSortByEnum { + values := make([]ListDiscoveryAnalyticsSortByEnum, 0) + for _, v := range mappingListDiscoveryAnalyticsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListDiscoveryAnalyticsSortByEnumStringValues Enumerates the set of values in String for ListDiscoveryAnalyticsSortByEnum +func GetListDiscoveryAnalyticsSortByEnumStringValues() []string { + return []string{ + "timeLastDiscovered", + } +} + +// GetMappingListDiscoveryAnalyticsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDiscoveryAnalyticsSortByEnum(val string) (ListDiscoveryAnalyticsSortByEnum, bool) { + enum, ok := mappingListDiscoveryAnalyticsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDiscoveryAnalyticsSortOrderEnum Enum with underlying type: string +type ListDiscoveryAnalyticsSortOrderEnum string + +// Set of constants representing the allowable values for ListDiscoveryAnalyticsSortOrderEnum +const ( + ListDiscoveryAnalyticsSortOrderAsc ListDiscoveryAnalyticsSortOrderEnum = "ASC" + ListDiscoveryAnalyticsSortOrderDesc ListDiscoveryAnalyticsSortOrderEnum = "DESC" +) + +var mappingListDiscoveryAnalyticsSortOrderEnum = map[string]ListDiscoveryAnalyticsSortOrderEnum{ + "ASC": ListDiscoveryAnalyticsSortOrderAsc, + "DESC": ListDiscoveryAnalyticsSortOrderDesc, +} + +var mappingListDiscoveryAnalyticsSortOrderEnumLowerCase = map[string]ListDiscoveryAnalyticsSortOrderEnum{ + "asc": ListDiscoveryAnalyticsSortOrderAsc, + "desc": ListDiscoveryAnalyticsSortOrderDesc, +} + +// GetListDiscoveryAnalyticsSortOrderEnumValues Enumerates the set of values for ListDiscoveryAnalyticsSortOrderEnum +func GetListDiscoveryAnalyticsSortOrderEnumValues() []ListDiscoveryAnalyticsSortOrderEnum { + values := make([]ListDiscoveryAnalyticsSortOrderEnum, 0) + for _, v := range mappingListDiscoveryAnalyticsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListDiscoveryAnalyticsSortOrderEnumStringValues Enumerates the set of values in String for ListDiscoveryAnalyticsSortOrderEnum +func GetListDiscoveryAnalyticsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListDiscoveryAnalyticsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDiscoveryAnalyticsSortOrderEnum(val string) (ListDiscoveryAnalyticsSortOrderEnum, bool) { + enum, ok := mappingListDiscoveryAnalyticsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_finding_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_finding_analytics_request_response.go index 41c32ef5cfb..3d20067b4ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_finding_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_finding_analytics_request_response.go @@ -55,6 +55,36 @@ type ListFindingAnalyticsRequest struct { // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + + // An optional filter to return only findings that match the specified references. Use containsReferences param if need to filter by multiple references. + ContainsReferences []SecurityAssessmentReferencesEnum `contributesTo:"query" name:"containsReferences" omitEmpty:"true" collectionFormat:"multi"` + + // An optional filter to return only findings that match the specified target ids. Use this parameter to filter by multiple target ids. + TargetIds []string `contributesTo:"query" name:"targetIds" collectionFormat:"multi"` + + // The category of the finding. + Category *string `mandatory:"false" contributesTo:"query" name:"category"` + + // A filter to return only findings that match the specified risk level(s). Use containsSeverity parameter if need to filter by multiple risk levels. + ContainsSeverity []ListFindingAnalyticsContainsSeverityEnum `contributesTo:"query" name:"containsSeverity" omitEmpty:"true" collectionFormat:"multi"` + + // The scimQuery query parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 + // of the System for Cross-Domain Identity Management (SCIM) specification, which is available + // at RFC3339 (https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, + // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. + // (Numeric and boolean values should not be quoted.) + // **Example:** | + // scimQuery=(severity eq 'high') + // scimQuery=(category eq "Users") and (reference eq 'CIS') + // Supported fields: + // severity + // reference + // title + // category + ScimQuery *string `mandatory:"false" contributesTo:"query" name:"scimQuery"` + // 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 @@ -103,6 +133,18 @@ func (request ListFindingAnalyticsRequest) ValidateEnumValue() (bool, error) { if _, ok := GetMappingListFindingAnalyticsSeverityEnum(string(request.Severity)); !ok && request.Severity != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", request.Severity, strings.Join(GetListFindingAnalyticsSeverityEnumStringValues(), ","))) } + for _, val := range request.ContainsReferences { + if _, ok := GetMappingSecurityAssessmentReferencesEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ContainsReferences: %s. Supported values are: %s.", val, strings.Join(GetSecurityAssessmentReferencesEnumStringValues(), ","))) + } + } + + for _, val := range request.ContainsSeverity { + if _, ok := GetMappingListFindingAnalyticsContainsSeverityEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ContainsSeverity: %s. Supported values are: %s.", val, strings.Join(GetListFindingAnalyticsContainsSeverityEnumStringValues(), ","))) + } + } + if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -188,16 +230,19 @@ type ListFindingAnalyticsGroupByEnum string const ( ListFindingAnalyticsGroupByFindingkeyandtopfindingstatus ListFindingAnalyticsGroupByEnum = "findingKeyAndTopFindingStatus" ListFindingAnalyticsGroupByFindingkeyandseverity ListFindingAnalyticsGroupByEnum = "findingKeyAndSeverity" + ListFindingAnalyticsGroupBySeverity ListFindingAnalyticsGroupByEnum = "severity" ) var mappingListFindingAnalyticsGroupByEnum = map[string]ListFindingAnalyticsGroupByEnum{ "findingKeyAndTopFindingStatus": ListFindingAnalyticsGroupByFindingkeyandtopfindingstatus, "findingKeyAndSeverity": ListFindingAnalyticsGroupByFindingkeyandseverity, + "severity": ListFindingAnalyticsGroupBySeverity, } var mappingListFindingAnalyticsGroupByEnumLowerCase = map[string]ListFindingAnalyticsGroupByEnum{ "findingkeyandtopfindingstatus": ListFindingAnalyticsGroupByFindingkeyandtopfindingstatus, "findingkeyandseverity": ListFindingAnalyticsGroupByFindingkeyandseverity, + "severity": ListFindingAnalyticsGroupBySeverity, } // GetListFindingAnalyticsGroupByEnumValues Enumerates the set of values for ListFindingAnalyticsGroupByEnum @@ -214,6 +259,7 @@ func GetListFindingAnalyticsGroupByEnumStringValues() []string { return []string{ "findingKeyAndTopFindingStatus", "findingKeyAndSeverity", + "severity", } } @@ -284,3 +330,65 @@ func GetMappingListFindingAnalyticsSeverityEnum(val string) (ListFindingAnalytic enum, ok := mappingListFindingAnalyticsSeverityEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// ListFindingAnalyticsContainsSeverityEnum Enum with underlying type: string +type ListFindingAnalyticsContainsSeverityEnum string + +// Set of constants representing the allowable values for ListFindingAnalyticsContainsSeverityEnum +const ( + ListFindingAnalyticsContainsSeverityHigh ListFindingAnalyticsContainsSeverityEnum = "HIGH" + ListFindingAnalyticsContainsSeverityMedium ListFindingAnalyticsContainsSeverityEnum = "MEDIUM" + ListFindingAnalyticsContainsSeverityLow ListFindingAnalyticsContainsSeverityEnum = "LOW" + ListFindingAnalyticsContainsSeverityEvaluate ListFindingAnalyticsContainsSeverityEnum = "EVALUATE" + ListFindingAnalyticsContainsSeverityAdvisory ListFindingAnalyticsContainsSeverityEnum = "ADVISORY" + ListFindingAnalyticsContainsSeverityPass ListFindingAnalyticsContainsSeverityEnum = "PASS" + ListFindingAnalyticsContainsSeverityDeferred ListFindingAnalyticsContainsSeverityEnum = "DEFERRED" +) + +var mappingListFindingAnalyticsContainsSeverityEnum = map[string]ListFindingAnalyticsContainsSeverityEnum{ + "HIGH": ListFindingAnalyticsContainsSeverityHigh, + "MEDIUM": ListFindingAnalyticsContainsSeverityMedium, + "LOW": ListFindingAnalyticsContainsSeverityLow, + "EVALUATE": ListFindingAnalyticsContainsSeverityEvaluate, + "ADVISORY": ListFindingAnalyticsContainsSeverityAdvisory, + "PASS": ListFindingAnalyticsContainsSeverityPass, + "DEFERRED": ListFindingAnalyticsContainsSeverityDeferred, +} + +var mappingListFindingAnalyticsContainsSeverityEnumLowerCase = map[string]ListFindingAnalyticsContainsSeverityEnum{ + "high": ListFindingAnalyticsContainsSeverityHigh, + "medium": ListFindingAnalyticsContainsSeverityMedium, + "low": ListFindingAnalyticsContainsSeverityLow, + "evaluate": ListFindingAnalyticsContainsSeverityEvaluate, + "advisory": ListFindingAnalyticsContainsSeverityAdvisory, + "pass": ListFindingAnalyticsContainsSeverityPass, + "deferred": ListFindingAnalyticsContainsSeverityDeferred, +} + +// GetListFindingAnalyticsContainsSeverityEnumValues Enumerates the set of values for ListFindingAnalyticsContainsSeverityEnum +func GetListFindingAnalyticsContainsSeverityEnumValues() []ListFindingAnalyticsContainsSeverityEnum { + values := make([]ListFindingAnalyticsContainsSeverityEnum, 0) + for _, v := range mappingListFindingAnalyticsContainsSeverityEnum { + values = append(values, v) + } + return values +} + +// GetListFindingAnalyticsContainsSeverityEnumStringValues Enumerates the set of values in String for ListFindingAnalyticsContainsSeverityEnum +func GetListFindingAnalyticsContainsSeverityEnumStringValues() []string { + return []string{ + "HIGH", + "MEDIUM", + "LOW", + "EVALUATE", + "ADVISORY", + "PASS", + "DEFERRED", + } +} + +// GetMappingListFindingAnalyticsContainsSeverityEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListFindingAnalyticsContainsSeverityEnum(val string) (ListFindingAnalyticsContainsSeverityEnum, bool) { + enum, ok := mappingListFindingAnalyticsContainsSeverityEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_findings_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_findings_request_response.go index 983b16977de..0c51e1d5e3d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_findings_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_findings_request_response.go @@ -30,12 +30,21 @@ type ListFindingsRequest struct { // A filter to return only findings of a particular risk level. Severity ListFindingsSeverityEnum `mandatory:"false" contributesTo:"query" name:"severity" omitEmpty:"true"` + // A filter to return only findings that match the specified risk level(s). Use containsSeverity parameter if need to filter by multiple risk levels. + ContainsSeverity []ListFindingsContainsSeverityEnum `contributesTo:"query" name:"containsSeverity" omitEmpty:"true" collectionFormat:"multi"` + + // The category of the finding. + Category *string `mandatory:"false" contributesTo:"query" name:"category"` + // A filter to return only the findings that match the specified lifecycle states. LifecycleState ListFindingsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // An optional filter to return only findings that match the specified reference. References ListFindingsReferencesEnum `mandatory:"false" contributesTo:"query" name:"references" omitEmpty:"true"` + // An optional filter to return only findings that match the specified references. Use containsReferences param if need to filter by multiple references. + ContainsReferences []SecurityAssessmentReferencesEnum `contributesTo:"query" name:"containsReferences" omitEmpty:"true" collectionFormat:"multi"` + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -55,6 +64,9 @@ type ListFindingsRequest struct { // A filter to return only items related to a specific target OCID. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // An optional filter to return only findings that match the specified target ids. Use this parameter to filter by multiple target ids. + TargetIds []string `contributesTo:"query" name:"targetIds" collectionFormat:"multi"` + // The scimQuery query parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 // of the System for Cross-Domain Identity Management (SCIM) specification, which is available // at RFC3339 (https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, @@ -84,6 +96,9 @@ type ListFindingsRequest struct { // The field to sort by. You can specify only one sort order(sortOrder). The default order for category is alphabetical. SortBy ListFindingsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + // The sort order to use, either ascending (ASC) or descending (DESC). + SortOrder ListFindingsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + // Each finding in security assessment has an associated key (think of key as a finding's name). // For a given finding, the key will be the same across targets. The user can use these keys to filter the findings. FindingKey *string `mandatory:"false" contributesTo:"query" name:"findingKey"` @@ -127,12 +142,24 @@ func (request ListFindingsRequest) ValidateEnumValue() (bool, error) { if _, ok := GetMappingListFindingsSeverityEnum(string(request.Severity)); !ok && request.Severity != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", request.Severity, strings.Join(GetListFindingsSeverityEnumStringValues(), ","))) } + for _, val := range request.ContainsSeverity { + if _, ok := GetMappingListFindingsContainsSeverityEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ContainsSeverity: %s. Supported values are: %s.", val, strings.Join(GetListFindingsContainsSeverityEnumStringValues(), ","))) + } + } + if _, ok := GetMappingListFindingsLifecycleStateEnum(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(GetListFindingsLifecycleStateEnumStringValues(), ","))) } if _, ok := GetMappingListFindingsReferencesEnum(string(request.References)); !ok && request.References != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for References: %s. Supported values are: %s.", request.References, strings.Join(GetListFindingsReferencesEnumStringValues(), ","))) } + for _, val := range request.ContainsReferences { + if _, ok := GetMappingSecurityAssessmentReferencesEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ContainsReferences: %s. Supported values are: %s.", val, strings.Join(GetSecurityAssessmentReferencesEnumStringValues(), ","))) + } + } + if _, ok := GetMappingListFindingsAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetListFindingsAccessLevelEnumStringValues(), ","))) } @@ -145,6 +172,9 @@ func (request ListFindingsRequest) ValidateEnumValue() (bool, error) { if _, ok := GetMappingListFindingsSortByEnum(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(GetListFindingsSortByEnumStringValues(), ","))) } + if _, ok := GetMappingListFindingsSortOrderEnum(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(GetListFindingsSortOrderEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -243,6 +273,68 @@ func GetMappingListFindingsSeverityEnum(val string) (ListFindingsSeverityEnum, b return enum, ok } +// ListFindingsContainsSeverityEnum Enum with underlying type: string +type ListFindingsContainsSeverityEnum string + +// Set of constants representing the allowable values for ListFindingsContainsSeverityEnum +const ( + ListFindingsContainsSeverityHigh ListFindingsContainsSeverityEnum = "HIGH" + ListFindingsContainsSeverityMedium ListFindingsContainsSeverityEnum = "MEDIUM" + ListFindingsContainsSeverityLow ListFindingsContainsSeverityEnum = "LOW" + ListFindingsContainsSeverityEvaluate ListFindingsContainsSeverityEnum = "EVALUATE" + ListFindingsContainsSeverityAdvisory ListFindingsContainsSeverityEnum = "ADVISORY" + ListFindingsContainsSeverityPass ListFindingsContainsSeverityEnum = "PASS" + ListFindingsContainsSeverityDeferred ListFindingsContainsSeverityEnum = "DEFERRED" +) + +var mappingListFindingsContainsSeverityEnum = map[string]ListFindingsContainsSeverityEnum{ + "HIGH": ListFindingsContainsSeverityHigh, + "MEDIUM": ListFindingsContainsSeverityMedium, + "LOW": ListFindingsContainsSeverityLow, + "EVALUATE": ListFindingsContainsSeverityEvaluate, + "ADVISORY": ListFindingsContainsSeverityAdvisory, + "PASS": ListFindingsContainsSeverityPass, + "DEFERRED": ListFindingsContainsSeverityDeferred, +} + +var mappingListFindingsContainsSeverityEnumLowerCase = map[string]ListFindingsContainsSeverityEnum{ + "high": ListFindingsContainsSeverityHigh, + "medium": ListFindingsContainsSeverityMedium, + "low": ListFindingsContainsSeverityLow, + "evaluate": ListFindingsContainsSeverityEvaluate, + "advisory": ListFindingsContainsSeverityAdvisory, + "pass": ListFindingsContainsSeverityPass, + "deferred": ListFindingsContainsSeverityDeferred, +} + +// GetListFindingsContainsSeverityEnumValues Enumerates the set of values for ListFindingsContainsSeverityEnum +func GetListFindingsContainsSeverityEnumValues() []ListFindingsContainsSeverityEnum { + values := make([]ListFindingsContainsSeverityEnum, 0) + for _, v := range mappingListFindingsContainsSeverityEnum { + values = append(values, v) + } + return values +} + +// GetListFindingsContainsSeverityEnumStringValues Enumerates the set of values in String for ListFindingsContainsSeverityEnum +func GetListFindingsContainsSeverityEnumStringValues() []string { + return []string{ + "HIGH", + "MEDIUM", + "LOW", + "EVALUATE", + "ADVISORY", + "PASS", + "DEFERRED", + } +} + +// GetMappingListFindingsContainsSeverityEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListFindingsContainsSeverityEnum(val string) (ListFindingsContainsSeverityEnum, bool) { + enum, ok := mappingListFindingsContainsSeverityEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + // ListFindingsLifecycleStateEnum Enum with underlying type: string type ListFindingsLifecycleStateEnum string @@ -504,3 +596,45 @@ func GetMappingListFindingsSortByEnum(val string) (ListFindingsSortByEnum, bool) enum, ok := mappingListFindingsSortByEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// ListFindingsSortOrderEnum Enum with underlying type: string +type ListFindingsSortOrderEnum string + +// Set of constants representing the allowable values for ListFindingsSortOrderEnum +const ( + ListFindingsSortOrderAsc ListFindingsSortOrderEnum = "ASC" + ListFindingsSortOrderDesc ListFindingsSortOrderEnum = "DESC" +) + +var mappingListFindingsSortOrderEnum = map[string]ListFindingsSortOrderEnum{ + "ASC": ListFindingsSortOrderAsc, + "DESC": ListFindingsSortOrderDesc, +} + +var mappingListFindingsSortOrderEnumLowerCase = map[string]ListFindingsSortOrderEnum{ + "asc": ListFindingsSortOrderAsc, + "desc": ListFindingsSortOrderDesc, +} + +// GetListFindingsSortOrderEnumValues Enumerates the set of values for ListFindingsSortOrderEnum +func GetListFindingsSortOrderEnumValues() []ListFindingsSortOrderEnum { + values := make([]ListFindingsSortOrderEnum, 0) + for _, v := range mappingListFindingsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListFindingsSortOrderEnumStringValues Enumerates the set of values in String for ListFindingsSortOrderEnum +func GetListFindingsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListFindingsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListFindingsSortOrderEnum(val string) (ListFindingsSortOrderEnum, bool) { + enum, ok := mappingListFindingsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_masking_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_masking_analytics_request_response.go index fddfee0f556..872b393779f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_masking_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_masking_analytics_request_response.go @@ -34,6 +34,18 @@ type ListMaskingAnalyticsRequest struct { // A filter to return only the resources that match the specified masking policy OCID. MaskingPolicyId *string `mandatory:"false" contributesTo:"query" name:"maskingPolicyId"` + // A filter to return only items related to a specific sensitive type OCID. + SensitiveTypeId *string `mandatory:"false" contributesTo:"query" name:"sensitiveTypeId"` + + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + + // The field to sort by. You can specify only one sorting parameter (sortOrder). The default order for all the fields is ascending. + SortBy ListMaskingAnalyticsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (ASC) or descending (DESC). + SortOrder ListMaskingAnalyticsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -82,6 +94,12 @@ func (request ListMaskingAnalyticsRequest) ValidateEnumValue() (bool, error) { if _, ok := GetMappingListMaskingAnalyticsGroupByEnum(string(request.GroupBy)); !ok && request.GroupBy != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for GroupBy: %s. Supported values are: %s.", request.GroupBy, strings.Join(GetListMaskingAnalyticsGroupByEnumStringValues(), ","))) } + if _, ok := GetMappingListMaskingAnalyticsSortByEnum(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(GetListMaskingAnalyticsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListMaskingAnalyticsSortOrderEnum(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(GetListMaskingAnalyticsSortOrderEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -123,18 +141,24 @@ type ListMaskingAnalyticsGroupByEnum string // Set of constants representing the allowable values for ListMaskingAnalyticsGroupByEnum const ( - ListMaskingAnalyticsGroupByTargetid ListMaskingAnalyticsGroupByEnum = "targetId" - ListMaskingAnalyticsGroupByPolicyid ListMaskingAnalyticsGroupByEnum = "policyId" + ListMaskingAnalyticsGroupByTargetid ListMaskingAnalyticsGroupByEnum = "targetId" + ListMaskingAnalyticsGroupByPolicyid ListMaskingAnalyticsGroupByEnum = "policyId" + ListMaskingAnalyticsGroupByTargetidandpolicyid ListMaskingAnalyticsGroupByEnum = "targetIdAndPolicyId" + ListMaskingAnalyticsGroupBySensitivetypeid ListMaskingAnalyticsGroupByEnum = "sensitiveTypeId" ) var mappingListMaskingAnalyticsGroupByEnum = map[string]ListMaskingAnalyticsGroupByEnum{ - "targetId": ListMaskingAnalyticsGroupByTargetid, - "policyId": ListMaskingAnalyticsGroupByPolicyid, + "targetId": ListMaskingAnalyticsGroupByTargetid, + "policyId": ListMaskingAnalyticsGroupByPolicyid, + "targetIdAndPolicyId": ListMaskingAnalyticsGroupByTargetidandpolicyid, + "sensitiveTypeId": ListMaskingAnalyticsGroupBySensitivetypeid, } var mappingListMaskingAnalyticsGroupByEnumLowerCase = map[string]ListMaskingAnalyticsGroupByEnum{ - "targetid": ListMaskingAnalyticsGroupByTargetid, - "policyid": ListMaskingAnalyticsGroupByPolicyid, + "targetid": ListMaskingAnalyticsGroupByTargetid, + "policyid": ListMaskingAnalyticsGroupByPolicyid, + "targetidandpolicyid": ListMaskingAnalyticsGroupByTargetidandpolicyid, + "sensitivetypeid": ListMaskingAnalyticsGroupBySensitivetypeid, } // GetListMaskingAnalyticsGroupByEnumValues Enumerates the set of values for ListMaskingAnalyticsGroupByEnum @@ -151,6 +175,8 @@ func GetListMaskingAnalyticsGroupByEnumStringValues() []string { return []string{ "targetId", "policyId", + "targetIdAndPolicyId", + "sensitiveTypeId", } } @@ -159,3 +185,83 @@ func GetMappingListMaskingAnalyticsGroupByEnum(val string) (ListMaskingAnalytics enum, ok := mappingListMaskingAnalyticsGroupByEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// ListMaskingAnalyticsSortByEnum Enum with underlying type: string +type ListMaskingAnalyticsSortByEnum string + +// Set of constants representing the allowable values for ListMaskingAnalyticsSortByEnum +const ( + ListMaskingAnalyticsSortByTimelastmasked ListMaskingAnalyticsSortByEnum = "timeLastMasked" +) + +var mappingListMaskingAnalyticsSortByEnum = map[string]ListMaskingAnalyticsSortByEnum{ + "timeLastMasked": ListMaskingAnalyticsSortByTimelastmasked, +} + +var mappingListMaskingAnalyticsSortByEnumLowerCase = map[string]ListMaskingAnalyticsSortByEnum{ + "timelastmasked": ListMaskingAnalyticsSortByTimelastmasked, +} + +// GetListMaskingAnalyticsSortByEnumValues Enumerates the set of values for ListMaskingAnalyticsSortByEnum +func GetListMaskingAnalyticsSortByEnumValues() []ListMaskingAnalyticsSortByEnum { + values := make([]ListMaskingAnalyticsSortByEnum, 0) + for _, v := range mappingListMaskingAnalyticsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListMaskingAnalyticsSortByEnumStringValues Enumerates the set of values in String for ListMaskingAnalyticsSortByEnum +func GetListMaskingAnalyticsSortByEnumStringValues() []string { + return []string{ + "timeLastMasked", + } +} + +// GetMappingListMaskingAnalyticsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMaskingAnalyticsSortByEnum(val string) (ListMaskingAnalyticsSortByEnum, bool) { + enum, ok := mappingListMaskingAnalyticsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListMaskingAnalyticsSortOrderEnum Enum with underlying type: string +type ListMaskingAnalyticsSortOrderEnum string + +// Set of constants representing the allowable values for ListMaskingAnalyticsSortOrderEnum +const ( + ListMaskingAnalyticsSortOrderAsc ListMaskingAnalyticsSortOrderEnum = "ASC" + ListMaskingAnalyticsSortOrderDesc ListMaskingAnalyticsSortOrderEnum = "DESC" +) + +var mappingListMaskingAnalyticsSortOrderEnum = map[string]ListMaskingAnalyticsSortOrderEnum{ + "ASC": ListMaskingAnalyticsSortOrderAsc, + "DESC": ListMaskingAnalyticsSortOrderDesc, +} + +var mappingListMaskingAnalyticsSortOrderEnumLowerCase = map[string]ListMaskingAnalyticsSortOrderEnum{ + "asc": ListMaskingAnalyticsSortOrderAsc, + "desc": ListMaskingAnalyticsSortOrderDesc, +} + +// GetListMaskingAnalyticsSortOrderEnumValues Enumerates the set of values for ListMaskingAnalyticsSortOrderEnum +func GetListMaskingAnalyticsSortOrderEnumValues() []ListMaskingAnalyticsSortOrderEnum { + values := make([]ListMaskingAnalyticsSortOrderEnum, 0) + for _, v := range mappingListMaskingAnalyticsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListMaskingAnalyticsSortOrderEnumStringValues Enumerates the set of values in String for ListMaskingAnalyticsSortOrderEnum +func GetListMaskingAnalyticsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListMaskingAnalyticsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMaskingAnalyticsSortOrderEnum(val string) (ListMaskingAnalyticsSortOrderEnum, bool) { + enum, ok := mappingListMaskingAnalyticsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_masking_columns_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_masking_columns_request_response.go index db96abc5167..612083eea71 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_masking_columns_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_masking_columns_request_response.go @@ -241,6 +241,7 @@ const ( ListMaskingColumnsSortByTimecreated ListMaskingColumnsSortByEnum = "timeCreated" ListMaskingColumnsSortBySchemaname ListMaskingColumnsSortByEnum = "schemaName" ListMaskingColumnsSortByObjectname ListMaskingColumnsSortByEnum = "objectName" + ListMaskingColumnsSortByColumnname ListMaskingColumnsSortByEnum = "columnName" ListMaskingColumnsSortByDatatype ListMaskingColumnsSortByEnum = "dataType" ) @@ -248,6 +249,7 @@ var mappingListMaskingColumnsSortByEnum = map[string]ListMaskingColumnsSortByEnu "timeCreated": ListMaskingColumnsSortByTimecreated, "schemaName": ListMaskingColumnsSortBySchemaname, "objectName": ListMaskingColumnsSortByObjectname, + "columnName": ListMaskingColumnsSortByColumnname, "dataType": ListMaskingColumnsSortByDatatype, } @@ -255,6 +257,7 @@ var mappingListMaskingColumnsSortByEnumLowerCase = map[string]ListMaskingColumns "timecreated": ListMaskingColumnsSortByTimecreated, "schemaname": ListMaskingColumnsSortBySchemaname, "objectname": ListMaskingColumnsSortByObjectname, + "columnname": ListMaskingColumnsSortByColumnname, "datatype": ListMaskingColumnsSortByDatatype, } @@ -273,6 +276,7 @@ func GetListMaskingColumnsSortByEnumStringValues() []string { "timeCreated", "schemaName", "objectName", + "columnName", "dataType", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_masking_policy_referential_relations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_masking_policy_referential_relations_request_response.go index c82a274af0a..f5e011fead0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_masking_policy_referential_relations_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_masking_policy_referential_relations_request_response.go @@ -231,22 +231,19 @@ type ListMaskingPolicyReferentialRelationsSortByEnum string const ( ListMaskingPolicyReferentialRelationsSortByRelationtype ListMaskingPolicyReferentialRelationsSortByEnum = "relationType" ListMaskingPolicyReferentialRelationsSortBySchemaname ListMaskingPolicyReferentialRelationsSortByEnum = "schemaName" - ListMaskingPolicyReferentialRelationsSortByTablename ListMaskingPolicyReferentialRelationsSortByEnum = "tableName" - ListMaskingPolicyReferentialRelationsSortByColumnname ListMaskingPolicyReferentialRelationsSortByEnum = "columnName" + ListMaskingPolicyReferentialRelationsSortByObjectname ListMaskingPolicyReferentialRelationsSortByEnum = "objectName" ) var mappingListMaskingPolicyReferentialRelationsSortByEnum = map[string]ListMaskingPolicyReferentialRelationsSortByEnum{ "relationType": ListMaskingPolicyReferentialRelationsSortByRelationtype, "schemaName": ListMaskingPolicyReferentialRelationsSortBySchemaname, - "tableName": ListMaskingPolicyReferentialRelationsSortByTablename, - "columnName": ListMaskingPolicyReferentialRelationsSortByColumnname, + "objectName": ListMaskingPolicyReferentialRelationsSortByObjectname, } var mappingListMaskingPolicyReferentialRelationsSortByEnumLowerCase = map[string]ListMaskingPolicyReferentialRelationsSortByEnum{ "relationtype": ListMaskingPolicyReferentialRelationsSortByRelationtype, "schemaname": ListMaskingPolicyReferentialRelationsSortBySchemaname, - "tablename": ListMaskingPolicyReferentialRelationsSortByTablename, - "columnname": ListMaskingPolicyReferentialRelationsSortByColumnname, + "objectname": ListMaskingPolicyReferentialRelationsSortByObjectname, } // GetListMaskingPolicyReferentialRelationsSortByEnumValues Enumerates the set of values for ListMaskingPolicyReferentialRelationsSortByEnum @@ -263,8 +260,7 @@ func GetListMaskingPolicyReferentialRelationsSortByEnumStringValues() []string { return []string{ "relationType", "schemaName", - "tableName", - "columnName", + "objectName", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_on_prem_connectors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_on_prem_connectors_request_response.go index b7e0001624e..4a7ba5b1214 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_on_prem_connectors_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_on_prem_connectors_request_response.go @@ -28,7 +28,7 @@ type ListOnPremConnectorsRequest struct { DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` // A filter to return only on-premises connector resources that match the specified lifecycle state. - OnPremConnectorLifecycleState ListOnPremConnectorsOnPremConnectorLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"onPremConnectorLifecycleState" omitEmpty:"true"` + LifecycleState ListOnPremConnectorsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` @@ -93,8 +93,8 @@ func (request ListOnPremConnectorsRequest) RetryPolicy() *common.RetryPolicy { // Not recommended for calling this function directly func (request ListOnPremConnectorsRequest) ValidateEnumValue() (bool, error) { errMessage := []string{} - if _, ok := GetMappingListOnPremConnectorsOnPremConnectorLifecycleStateEnum(string(request.OnPremConnectorLifecycleState)); !ok && request.OnPremConnectorLifecycleState != "" { - errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OnPremConnectorLifecycleState: %s. Supported values are: %s.", request.OnPremConnectorLifecycleState, strings.Join(GetListOnPremConnectorsOnPremConnectorLifecycleStateEnumStringValues(), ","))) + if _, ok := GetMappingListOnPremConnectorsLifecycleStateEnum(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(GetListOnPremConnectorsLifecycleStateEnumStringValues(), ","))) } if _, ok := GetMappingListOnPremConnectorsSortOrderEnum(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(GetListOnPremConnectorsSortOrderEnumStringValues(), ","))) @@ -136,54 +136,54 @@ func (response ListOnPremConnectorsResponse) HTTPResponse() *http.Response { return response.RawResponse } -// ListOnPremConnectorsOnPremConnectorLifecycleStateEnum Enum with underlying type: string -type ListOnPremConnectorsOnPremConnectorLifecycleStateEnum string +// ListOnPremConnectorsLifecycleStateEnum Enum with underlying type: string +type ListOnPremConnectorsLifecycleStateEnum string -// Set of constants representing the allowable values for ListOnPremConnectorsOnPremConnectorLifecycleStateEnum +// Set of constants representing the allowable values for ListOnPremConnectorsLifecycleStateEnum const ( - ListOnPremConnectorsOnPremConnectorLifecycleStateCreating ListOnPremConnectorsOnPremConnectorLifecycleStateEnum = "CREATING" - ListOnPremConnectorsOnPremConnectorLifecycleStateUpdating ListOnPremConnectorsOnPremConnectorLifecycleStateEnum = "UPDATING" - ListOnPremConnectorsOnPremConnectorLifecycleStateActive ListOnPremConnectorsOnPremConnectorLifecycleStateEnum = "ACTIVE" - ListOnPremConnectorsOnPremConnectorLifecycleStateInactive ListOnPremConnectorsOnPremConnectorLifecycleStateEnum = "INACTIVE" - ListOnPremConnectorsOnPremConnectorLifecycleStateDeleting ListOnPremConnectorsOnPremConnectorLifecycleStateEnum = "DELETING" - ListOnPremConnectorsOnPremConnectorLifecycleStateDeleted ListOnPremConnectorsOnPremConnectorLifecycleStateEnum = "DELETED" - ListOnPremConnectorsOnPremConnectorLifecycleStateFailed ListOnPremConnectorsOnPremConnectorLifecycleStateEnum = "FAILED" - ListOnPremConnectorsOnPremConnectorLifecycleStateNeedsAttention ListOnPremConnectorsOnPremConnectorLifecycleStateEnum = "NEEDS_ATTENTION" + ListOnPremConnectorsLifecycleStateCreating ListOnPremConnectorsLifecycleStateEnum = "CREATING" + ListOnPremConnectorsLifecycleStateUpdating ListOnPremConnectorsLifecycleStateEnum = "UPDATING" + ListOnPremConnectorsLifecycleStateActive ListOnPremConnectorsLifecycleStateEnum = "ACTIVE" + ListOnPremConnectorsLifecycleStateInactive ListOnPremConnectorsLifecycleStateEnum = "INACTIVE" + ListOnPremConnectorsLifecycleStateDeleting ListOnPremConnectorsLifecycleStateEnum = "DELETING" + ListOnPremConnectorsLifecycleStateDeleted ListOnPremConnectorsLifecycleStateEnum = "DELETED" + ListOnPremConnectorsLifecycleStateFailed ListOnPremConnectorsLifecycleStateEnum = "FAILED" + ListOnPremConnectorsLifecycleStateNeedsAttention ListOnPremConnectorsLifecycleStateEnum = "NEEDS_ATTENTION" ) -var mappingListOnPremConnectorsOnPremConnectorLifecycleStateEnum = map[string]ListOnPremConnectorsOnPremConnectorLifecycleStateEnum{ - "CREATING": ListOnPremConnectorsOnPremConnectorLifecycleStateCreating, - "UPDATING": ListOnPremConnectorsOnPremConnectorLifecycleStateUpdating, - "ACTIVE": ListOnPremConnectorsOnPremConnectorLifecycleStateActive, - "INACTIVE": ListOnPremConnectorsOnPremConnectorLifecycleStateInactive, - "DELETING": ListOnPremConnectorsOnPremConnectorLifecycleStateDeleting, - "DELETED": ListOnPremConnectorsOnPremConnectorLifecycleStateDeleted, - "FAILED": ListOnPremConnectorsOnPremConnectorLifecycleStateFailed, - "NEEDS_ATTENTION": ListOnPremConnectorsOnPremConnectorLifecycleStateNeedsAttention, +var mappingListOnPremConnectorsLifecycleStateEnum = map[string]ListOnPremConnectorsLifecycleStateEnum{ + "CREATING": ListOnPremConnectorsLifecycleStateCreating, + "UPDATING": ListOnPremConnectorsLifecycleStateUpdating, + "ACTIVE": ListOnPremConnectorsLifecycleStateActive, + "INACTIVE": ListOnPremConnectorsLifecycleStateInactive, + "DELETING": ListOnPremConnectorsLifecycleStateDeleting, + "DELETED": ListOnPremConnectorsLifecycleStateDeleted, + "FAILED": ListOnPremConnectorsLifecycleStateFailed, + "NEEDS_ATTENTION": ListOnPremConnectorsLifecycleStateNeedsAttention, } -var mappingListOnPremConnectorsOnPremConnectorLifecycleStateEnumLowerCase = map[string]ListOnPremConnectorsOnPremConnectorLifecycleStateEnum{ - "creating": ListOnPremConnectorsOnPremConnectorLifecycleStateCreating, - "updating": ListOnPremConnectorsOnPremConnectorLifecycleStateUpdating, - "active": ListOnPremConnectorsOnPremConnectorLifecycleStateActive, - "inactive": ListOnPremConnectorsOnPremConnectorLifecycleStateInactive, - "deleting": ListOnPremConnectorsOnPremConnectorLifecycleStateDeleting, - "deleted": ListOnPremConnectorsOnPremConnectorLifecycleStateDeleted, - "failed": ListOnPremConnectorsOnPremConnectorLifecycleStateFailed, - "needs_attention": ListOnPremConnectorsOnPremConnectorLifecycleStateNeedsAttention, +var mappingListOnPremConnectorsLifecycleStateEnumLowerCase = map[string]ListOnPremConnectorsLifecycleStateEnum{ + "creating": ListOnPremConnectorsLifecycleStateCreating, + "updating": ListOnPremConnectorsLifecycleStateUpdating, + "active": ListOnPremConnectorsLifecycleStateActive, + "inactive": ListOnPremConnectorsLifecycleStateInactive, + "deleting": ListOnPremConnectorsLifecycleStateDeleting, + "deleted": ListOnPremConnectorsLifecycleStateDeleted, + "failed": ListOnPremConnectorsLifecycleStateFailed, + "needs_attention": ListOnPremConnectorsLifecycleStateNeedsAttention, } -// GetListOnPremConnectorsOnPremConnectorLifecycleStateEnumValues Enumerates the set of values for ListOnPremConnectorsOnPremConnectorLifecycleStateEnum -func GetListOnPremConnectorsOnPremConnectorLifecycleStateEnumValues() []ListOnPremConnectorsOnPremConnectorLifecycleStateEnum { - values := make([]ListOnPremConnectorsOnPremConnectorLifecycleStateEnum, 0) - for _, v := range mappingListOnPremConnectorsOnPremConnectorLifecycleStateEnum { +// GetListOnPremConnectorsLifecycleStateEnumValues Enumerates the set of values for ListOnPremConnectorsLifecycleStateEnum +func GetListOnPremConnectorsLifecycleStateEnumValues() []ListOnPremConnectorsLifecycleStateEnum { + values := make([]ListOnPremConnectorsLifecycleStateEnum, 0) + for _, v := range mappingListOnPremConnectorsLifecycleStateEnum { values = append(values, v) } return values } -// GetListOnPremConnectorsOnPremConnectorLifecycleStateEnumStringValues Enumerates the set of values in String for ListOnPremConnectorsOnPremConnectorLifecycleStateEnum -func GetListOnPremConnectorsOnPremConnectorLifecycleStateEnumStringValues() []string { +// GetListOnPremConnectorsLifecycleStateEnumStringValues Enumerates the set of values in String for ListOnPremConnectorsLifecycleStateEnum +func GetListOnPremConnectorsLifecycleStateEnumStringValues() []string { return []string{ "CREATING", "UPDATING", @@ -196,9 +196,9 @@ func GetListOnPremConnectorsOnPremConnectorLifecycleStateEnumStringValues() []st } } -// GetMappingListOnPremConnectorsOnPremConnectorLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum -func GetMappingListOnPremConnectorsOnPremConnectorLifecycleStateEnum(val string) (ListOnPremConnectorsOnPremConnectorLifecycleStateEnum, bool) { - enum, ok := mappingListOnPremConnectorsOnPremConnectorLifecycleStateEnumLowerCase[strings.ToLower(val)] +// GetMappingListOnPremConnectorsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListOnPremConnectorsLifecycleStateEnum(val string) (ListOnPremConnectorsLifecycleStateEnum, bool) { + enum, ok := mappingListOnPremConnectorsLifecycleStateEnumLowerCase[strings.ToLower(val)] return enum, ok } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_reports_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_reports_request_response.go index 8cd85ff940e..7021b9378e2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_reports_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_reports_request_response.go @@ -74,6 +74,9 @@ type ListReportsRequest struct { // An optional filter to return only resources that match the specified type. Type ListReportsTypeEnum `mandatory:"false" contributesTo:"query" name:"type" omitEmpty:"true"` + // Specifies the name of a resource that provides data for the report. For example alerts, events. + DataSource ListReportsDataSourceEnum `mandatory:"false" contributesTo:"query" name:"dataSource" omitEmpty:"true"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -128,6 +131,9 @@ func (request ListReportsRequest) ValidateEnumValue() (bool, error) { if _, ok := GetMappingListReportsTypeEnum(string(request.Type)); !ok && request.Type != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", request.Type, strings.Join(GetListReportsTypeEnumStringValues(), ","))) } + if _, ok := GetMappingListReportsDataSourceEnum(string(request.DataSource)); !ok && request.DataSource != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DataSource: %s. Supported values are: %s.", request.DataSource, strings.Join(GetListReportsDataSourceEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -422,3 +428,57 @@ func GetMappingListReportsTypeEnum(val string) (ListReportsTypeEnum, bool) { enum, ok := mappingListReportsTypeEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// ListReportsDataSourceEnum Enum with underlying type: string +type ListReportsDataSourceEnum string + +// Set of constants representing the allowable values for ListReportsDataSourceEnum +const ( + ListReportsDataSourceEvents ListReportsDataSourceEnum = "EVENTS" + ListReportsDataSourceAlerts ListReportsDataSourceEnum = "ALERTS" + ListReportsDataSourceSecurityAssessment ListReportsDataSourceEnum = "SECURITY_ASSESSMENT" + ListReportsDataSourceViolations ListReportsDataSourceEnum = "VIOLATIONS" + ListReportsDataSourceAllowedSql ListReportsDataSourceEnum = "ALLOWED_SQL" +) + +var mappingListReportsDataSourceEnum = map[string]ListReportsDataSourceEnum{ + "EVENTS": ListReportsDataSourceEvents, + "ALERTS": ListReportsDataSourceAlerts, + "SECURITY_ASSESSMENT": ListReportsDataSourceSecurityAssessment, + "VIOLATIONS": ListReportsDataSourceViolations, + "ALLOWED_SQL": ListReportsDataSourceAllowedSql, +} + +var mappingListReportsDataSourceEnumLowerCase = map[string]ListReportsDataSourceEnum{ + "events": ListReportsDataSourceEvents, + "alerts": ListReportsDataSourceAlerts, + "security_assessment": ListReportsDataSourceSecurityAssessment, + "violations": ListReportsDataSourceViolations, + "allowed_sql": ListReportsDataSourceAllowedSql, +} + +// GetListReportsDataSourceEnumValues Enumerates the set of values for ListReportsDataSourceEnum +func GetListReportsDataSourceEnumValues() []ListReportsDataSourceEnum { + values := make([]ListReportsDataSourceEnum, 0) + for _, v := range mappingListReportsDataSourceEnum { + values = append(values, v) + } + return values +} + +// GetListReportsDataSourceEnumStringValues Enumerates the set of values in String for ListReportsDataSourceEnum +func GetListReportsDataSourceEnumStringValues() []string { + return []string{ + "EVENTS", + "ALERTS", + "SECURITY_ASSESSMENT", + "VIOLATIONS", + "ALLOWED_SQL", + } +} + +// GetMappingListReportsDataSourceEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListReportsDataSourceEnum(val string) (ListReportsDataSourceEnum, bool) { + enum, ok := mappingListReportsDataSourceEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_assessments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_assessments_request_response.go index 47f9859167e..890ceebda3a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_assessments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_assessments_request_response.go @@ -43,7 +43,7 @@ type ListSecurityAssessmentsRequest struct { // A filter to return only security assessments of type save schedule. IsScheduleAssessment *bool `mandatory:"false" contributesTo:"query" name:"isScheduleAssessment"` - // A filter to return only security asessments that were created by either user or system. + // A filter to return only security assessments that were created by either user or system. TriggeredBy ListSecurityAssessmentsTriggeredByEnum `mandatory:"false" contributesTo:"query" name:"triggeredBy" omitEmpty:"true"` // A filter to return only items related to a specific target OCID. @@ -83,6 +83,15 @@ type ListSecurityAssessmentsRequest struct { // A filter to return only resources that match the specified lifecycle state. LifecycleState ListSecurityAssessmentsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + // A filter to return only only target database resources or target database group resources. + TargetType ListSecurityAssessmentsTargetTypeEnum `mandatory:"false" contributesTo:"query" name:"targetType" omitEmpty:"true"` + + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + + // The OCID of the security assessment of type TEMPLATE. + TemplateAssessmentId *string `mandatory:"false" contributesTo:"query" name:"templateAssessmentId"` + // 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 @@ -137,6 +146,9 @@ func (request ListSecurityAssessmentsRequest) ValidateEnumValue() (bool, error) if _, ok := GetMappingListSecurityAssessmentsLifecycleStateEnum(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(GetListSecurityAssessmentsLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingListSecurityAssessmentsTargetTypeEnum(string(request.TargetType)); !ok && request.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", request.TargetType, strings.Join(GetListSecurityAssessmentsTargetTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -220,24 +232,30 @@ type ListSecurityAssessmentsTypeEnum string // Set of constants representing the allowable values for ListSecurityAssessmentsTypeEnum const ( - ListSecurityAssessmentsTypeLatest ListSecurityAssessmentsTypeEnum = "LATEST" - ListSecurityAssessmentsTypeSaved ListSecurityAssessmentsTypeEnum = "SAVED" - ListSecurityAssessmentsTypeSaveSchedule ListSecurityAssessmentsTypeEnum = "SAVE_SCHEDULE" - ListSecurityAssessmentsTypeCompartment ListSecurityAssessmentsTypeEnum = "COMPARTMENT" + ListSecurityAssessmentsTypeLatest ListSecurityAssessmentsTypeEnum = "LATEST" + ListSecurityAssessmentsTypeSaved ListSecurityAssessmentsTypeEnum = "SAVED" + ListSecurityAssessmentsTypeSaveSchedule ListSecurityAssessmentsTypeEnum = "SAVE_SCHEDULE" + ListSecurityAssessmentsTypeCompartment ListSecurityAssessmentsTypeEnum = "COMPARTMENT" + ListSecurityAssessmentsTypeTemplate ListSecurityAssessmentsTypeEnum = "TEMPLATE" + ListSecurityAssessmentsTypeTemplateBaseline ListSecurityAssessmentsTypeEnum = "TEMPLATE_BASELINE" ) var mappingListSecurityAssessmentsTypeEnum = map[string]ListSecurityAssessmentsTypeEnum{ - "LATEST": ListSecurityAssessmentsTypeLatest, - "SAVED": ListSecurityAssessmentsTypeSaved, - "SAVE_SCHEDULE": ListSecurityAssessmentsTypeSaveSchedule, - "COMPARTMENT": ListSecurityAssessmentsTypeCompartment, + "LATEST": ListSecurityAssessmentsTypeLatest, + "SAVED": ListSecurityAssessmentsTypeSaved, + "SAVE_SCHEDULE": ListSecurityAssessmentsTypeSaveSchedule, + "COMPARTMENT": ListSecurityAssessmentsTypeCompartment, + "TEMPLATE": ListSecurityAssessmentsTypeTemplate, + "TEMPLATE_BASELINE": ListSecurityAssessmentsTypeTemplateBaseline, } var mappingListSecurityAssessmentsTypeEnumLowerCase = map[string]ListSecurityAssessmentsTypeEnum{ - "latest": ListSecurityAssessmentsTypeLatest, - "saved": ListSecurityAssessmentsTypeSaved, - "save_schedule": ListSecurityAssessmentsTypeSaveSchedule, - "compartment": ListSecurityAssessmentsTypeCompartment, + "latest": ListSecurityAssessmentsTypeLatest, + "saved": ListSecurityAssessmentsTypeSaved, + "save_schedule": ListSecurityAssessmentsTypeSaveSchedule, + "compartment": ListSecurityAssessmentsTypeCompartment, + "template": ListSecurityAssessmentsTypeTemplate, + "template_baseline": ListSecurityAssessmentsTypeTemplateBaseline, } // GetListSecurityAssessmentsTypeEnumValues Enumerates the set of values for ListSecurityAssessmentsTypeEnum @@ -256,6 +274,8 @@ func GetListSecurityAssessmentsTypeEnumStringValues() []string { "SAVED", "SAVE_SCHEDULE", "COMPARTMENT", + "TEMPLATE", + "TEMPLATE_BASELINE", } } @@ -354,18 +374,24 @@ type ListSecurityAssessmentsSortByEnum string // Set of constants representing the allowable values for ListSecurityAssessmentsSortByEnum const ( - ListSecurityAssessmentsSortByTimecreated ListSecurityAssessmentsSortByEnum = "timeCreated" - ListSecurityAssessmentsSortByDisplayname ListSecurityAssessmentsSortByEnum = "displayName" + ListSecurityAssessmentsSortByTimecreated ListSecurityAssessmentsSortByEnum = "timeCreated" + ListSecurityAssessmentsSortByDisplayname ListSecurityAssessmentsSortByEnum = "displayName" + ListSecurityAssessmentsSortByTimelastassessed ListSecurityAssessmentsSortByEnum = "timeLastAssessed" + ListSecurityAssessmentsSortByTimeupdated ListSecurityAssessmentsSortByEnum = "timeUpdated" ) var mappingListSecurityAssessmentsSortByEnum = map[string]ListSecurityAssessmentsSortByEnum{ - "timeCreated": ListSecurityAssessmentsSortByTimecreated, - "displayName": ListSecurityAssessmentsSortByDisplayname, + "timeCreated": ListSecurityAssessmentsSortByTimecreated, + "displayName": ListSecurityAssessmentsSortByDisplayname, + "timeLastAssessed": ListSecurityAssessmentsSortByTimelastassessed, + "timeUpdated": ListSecurityAssessmentsSortByTimeupdated, } var mappingListSecurityAssessmentsSortByEnumLowerCase = map[string]ListSecurityAssessmentsSortByEnum{ - "timecreated": ListSecurityAssessmentsSortByTimecreated, - "displayname": ListSecurityAssessmentsSortByDisplayname, + "timecreated": ListSecurityAssessmentsSortByTimecreated, + "displayname": ListSecurityAssessmentsSortByDisplayname, + "timelastassessed": ListSecurityAssessmentsSortByTimelastassessed, + "timeupdated": ListSecurityAssessmentsSortByTimeupdated, } // GetListSecurityAssessmentsSortByEnumValues Enumerates the set of values for ListSecurityAssessmentsSortByEnum @@ -382,6 +408,8 @@ func GetListSecurityAssessmentsSortByEnumStringValues() []string { return []string{ "timeCreated", "displayName", + "timeLastAssessed", + "timeUpdated", } } @@ -448,3 +476,45 @@ func GetMappingListSecurityAssessmentsLifecycleStateEnum(val string) (ListSecuri enum, ok := mappingListSecurityAssessmentsLifecycleStateEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// ListSecurityAssessmentsTargetTypeEnum Enum with underlying type: string +type ListSecurityAssessmentsTargetTypeEnum string + +// Set of constants representing the allowable values for ListSecurityAssessmentsTargetTypeEnum +const ( + ListSecurityAssessmentsTargetTypeDatabase ListSecurityAssessmentsTargetTypeEnum = "TARGET_DATABASE" + ListSecurityAssessmentsTargetTypeDatabaseGroup ListSecurityAssessmentsTargetTypeEnum = "TARGET_DATABASE_GROUP" +) + +var mappingListSecurityAssessmentsTargetTypeEnum = map[string]ListSecurityAssessmentsTargetTypeEnum{ + "TARGET_DATABASE": ListSecurityAssessmentsTargetTypeDatabase, + "TARGET_DATABASE_GROUP": ListSecurityAssessmentsTargetTypeDatabaseGroup, +} + +var mappingListSecurityAssessmentsTargetTypeEnumLowerCase = map[string]ListSecurityAssessmentsTargetTypeEnum{ + "target_database": ListSecurityAssessmentsTargetTypeDatabase, + "target_database_group": ListSecurityAssessmentsTargetTypeDatabaseGroup, +} + +// GetListSecurityAssessmentsTargetTypeEnumValues Enumerates the set of values for ListSecurityAssessmentsTargetTypeEnum +func GetListSecurityAssessmentsTargetTypeEnumValues() []ListSecurityAssessmentsTargetTypeEnum { + values := make([]ListSecurityAssessmentsTargetTypeEnum, 0) + for _, v := range mappingListSecurityAssessmentsTargetTypeEnum { + values = append(values, v) + } + return values +} + +// GetListSecurityAssessmentsTargetTypeEnumStringValues Enumerates the set of values in String for ListSecurityAssessmentsTargetTypeEnum +func GetListSecurityAssessmentsTargetTypeEnumStringValues() []string { + return []string{ + "TARGET_DATABASE", + "TARGET_DATABASE_GROUP", + } +} + +// GetMappingListSecurityAssessmentsTargetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSecurityAssessmentsTargetTypeEnum(val string) (ListSecurityAssessmentsTargetTypeEnum, bool) { + enum, ok := mappingListSecurityAssessmentsTargetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_feature_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_feature_analytics_request_response.go index 651c770d2a1..70decc94e47 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_feature_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_feature_analytics_request_response.go @@ -37,6 +37,9 @@ type ListSecurityFeatureAnalyticsRequest struct { // Unique identifier for the request. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_features_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_features_request_response.go index f3c0629f276..5a0170a09d3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_features_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_features_request_response.go @@ -76,6 +76,9 @@ type ListSecurityFeaturesRequest struct { // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policies_request_response.go index 72b670f13b0..f5de5351207 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policies_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policies_request_response.go @@ -43,6 +43,9 @@ type ListSecurityPoliciesRequest struct { // The current state of the security policy. LifecycleState ListSecurityPoliciesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + // The type of the security policy. + SecurityPolicyType SecurityPolicySecurityPolicyTypeEnum `mandatory:"false" contributesTo:"query" name:"securityPolicyType" omitEmpty:"true"` + // An optional filter to return only resources that match the specified OCID of the security policy resource. SecurityPolicyId *string `mandatory:"false" contributesTo:"query" name:"securityPolicyId"` @@ -99,6 +102,9 @@ func (request ListSecurityPoliciesRequest) ValidateEnumValue() (bool, error) { if _, ok := GetMappingListSecurityPoliciesLifecycleStateEnum(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(GetListSecurityPoliciesLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingSecurityPolicySecurityPolicyTypeEnum(string(request.SecurityPolicyType)); !ok && request.SecurityPolicyType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SecurityPolicyType: %s. Supported values are: %s.", request.SecurityPolicyType, strings.Join(GetSecurityPolicySecurityPolicyTypeEnumStringValues(), ","))) + } if _, ok := GetMappingListSecurityPoliciesSortOrderEnum(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(GetListSecurityPoliciesSortOrderEnumStringValues(), ","))) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policy_configs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policy_configs_request_response.go new file mode 100644 index 00000000000..2292a358857 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policy_configs_request_response.go @@ -0,0 +1,346 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListSecurityPolicyConfigsRequest wrapper for the ListSecurityPolicyConfigs operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListSecurityPolicyConfigs.go.html to see an example of how to use ListSecurityPolicyConfigsRequest. +type ListSecurityPolicyConfigsRequest struct { + + // A filter to return only resources that match the specified compartment OCID. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // An optional filter to return only resources that match the specified OCID of the security policy configuration resource. + SecurityPolicyConfigId *string `mandatory:"false" contributesTo:"query" name:"securityPolicyConfigId"` + + // An optional filter to return only resources that match the specified OCID of the security policy resource. + SecurityPolicyId *string `mandatory:"false" contributesTo:"query" name:"securityPolicyId"` + + // Default is false. + // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. + // Setting this to ACCESSIBLE returns only those compartments for which the + // user has INSPECT permissions directly or indirectly (permissions can be on a + // resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. + AccessLevel ListSecurityPolicyConfigsAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` + + // A filter to return only resources that match the specified display name. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The current state of the security policy configuration resource. + LifecycleState ListSecurityPolicyConfigsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return only the resources that were created after the specified date and time, as defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date. + // **Example:** 2016-12-19T16:39:57.600Z + TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"` + + // Search for resources that were created before a specific date. + // Specifying this parameter corresponding `timeCreatedLessThan` + // parameter will retrieve all resources created before the + // specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as + // defined by RFC 3339. + // **Example:** 2016-12-19T16:39:57.600Z + TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"` + + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either ascending (ASC) or descending (DESC). + SortOrder ListSecurityPolicyConfigsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field used for sorting. Only one sorting order (sortOrder) can be specified. + // The default order for TIMECREATED is descending. The default order for DISPLAYNAME is ascending. + // The DISPLAYNAME sort order is case sensitive. + SortBy ListSecurityPolicyConfigsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // 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 ListSecurityPolicyConfigsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListSecurityPolicyConfigsRequest) 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 ListSecurityPolicyConfigsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListSecurityPolicyConfigsRequest) 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 ListSecurityPolicyConfigsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListSecurityPolicyConfigsAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetListSecurityPolicyConfigsAccessLevelEnumStringValues(), ","))) + } + if _, ok := GetMappingListSecurityPolicyConfigsLifecycleStateEnum(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(GetListSecurityPolicyConfigsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListSecurityPolicyConfigsSortOrderEnum(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(GetListSecurityPolicyConfigsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListSecurityPolicyConfigsSortByEnum(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(GetListSecurityPolicyConfigsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListSecurityPolicyConfigsResponse wrapper for the ListSecurityPolicyConfigs operation +type ListSecurityPolicyConfigsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of SecurityPolicyConfigCollection instances + SecurityPolicyConfigCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response ListSecurityPolicyConfigsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListSecurityPolicyConfigsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListSecurityPolicyConfigsAccessLevelEnum Enum with underlying type: string +type ListSecurityPolicyConfigsAccessLevelEnum string + +// Set of constants representing the allowable values for ListSecurityPolicyConfigsAccessLevelEnum +const ( + ListSecurityPolicyConfigsAccessLevelRestricted ListSecurityPolicyConfigsAccessLevelEnum = "RESTRICTED" + ListSecurityPolicyConfigsAccessLevelAccessible ListSecurityPolicyConfigsAccessLevelEnum = "ACCESSIBLE" +) + +var mappingListSecurityPolicyConfigsAccessLevelEnum = map[string]ListSecurityPolicyConfigsAccessLevelEnum{ + "RESTRICTED": ListSecurityPolicyConfigsAccessLevelRestricted, + "ACCESSIBLE": ListSecurityPolicyConfigsAccessLevelAccessible, +} + +var mappingListSecurityPolicyConfigsAccessLevelEnumLowerCase = map[string]ListSecurityPolicyConfigsAccessLevelEnum{ + "restricted": ListSecurityPolicyConfigsAccessLevelRestricted, + "accessible": ListSecurityPolicyConfigsAccessLevelAccessible, +} + +// GetListSecurityPolicyConfigsAccessLevelEnumValues Enumerates the set of values for ListSecurityPolicyConfigsAccessLevelEnum +func GetListSecurityPolicyConfigsAccessLevelEnumValues() []ListSecurityPolicyConfigsAccessLevelEnum { + values := make([]ListSecurityPolicyConfigsAccessLevelEnum, 0) + for _, v := range mappingListSecurityPolicyConfigsAccessLevelEnum { + values = append(values, v) + } + return values +} + +// GetListSecurityPolicyConfigsAccessLevelEnumStringValues Enumerates the set of values in String for ListSecurityPolicyConfigsAccessLevelEnum +func GetListSecurityPolicyConfigsAccessLevelEnumStringValues() []string { + return []string{ + "RESTRICTED", + "ACCESSIBLE", + } +} + +// GetMappingListSecurityPolicyConfigsAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSecurityPolicyConfigsAccessLevelEnum(val string) (ListSecurityPolicyConfigsAccessLevelEnum, bool) { + enum, ok := mappingListSecurityPolicyConfigsAccessLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListSecurityPolicyConfigsLifecycleStateEnum Enum with underlying type: string +type ListSecurityPolicyConfigsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListSecurityPolicyConfigsLifecycleStateEnum +const ( + ListSecurityPolicyConfigsLifecycleStateCreating ListSecurityPolicyConfigsLifecycleStateEnum = "CREATING" + ListSecurityPolicyConfigsLifecycleStateUpdating ListSecurityPolicyConfigsLifecycleStateEnum = "UPDATING" + ListSecurityPolicyConfigsLifecycleStateActive ListSecurityPolicyConfigsLifecycleStateEnum = "ACTIVE" + ListSecurityPolicyConfigsLifecycleStateFailed ListSecurityPolicyConfigsLifecycleStateEnum = "FAILED" + ListSecurityPolicyConfigsLifecycleStateNeedsAttention ListSecurityPolicyConfigsLifecycleStateEnum = "NEEDS_ATTENTION" + ListSecurityPolicyConfigsLifecycleStateDeleting ListSecurityPolicyConfigsLifecycleStateEnum = "DELETING" + ListSecurityPolicyConfigsLifecycleStateDeleted ListSecurityPolicyConfigsLifecycleStateEnum = "DELETED" +) + +var mappingListSecurityPolicyConfigsLifecycleStateEnum = map[string]ListSecurityPolicyConfigsLifecycleStateEnum{ + "CREATING": ListSecurityPolicyConfigsLifecycleStateCreating, + "UPDATING": ListSecurityPolicyConfigsLifecycleStateUpdating, + "ACTIVE": ListSecurityPolicyConfigsLifecycleStateActive, + "FAILED": ListSecurityPolicyConfigsLifecycleStateFailed, + "NEEDS_ATTENTION": ListSecurityPolicyConfigsLifecycleStateNeedsAttention, + "DELETING": ListSecurityPolicyConfigsLifecycleStateDeleting, + "DELETED": ListSecurityPolicyConfigsLifecycleStateDeleted, +} + +var mappingListSecurityPolicyConfigsLifecycleStateEnumLowerCase = map[string]ListSecurityPolicyConfigsLifecycleStateEnum{ + "creating": ListSecurityPolicyConfigsLifecycleStateCreating, + "updating": ListSecurityPolicyConfigsLifecycleStateUpdating, + "active": ListSecurityPolicyConfigsLifecycleStateActive, + "failed": ListSecurityPolicyConfigsLifecycleStateFailed, + "needs_attention": ListSecurityPolicyConfigsLifecycleStateNeedsAttention, + "deleting": ListSecurityPolicyConfigsLifecycleStateDeleting, + "deleted": ListSecurityPolicyConfigsLifecycleStateDeleted, +} + +// GetListSecurityPolicyConfigsLifecycleStateEnumValues Enumerates the set of values for ListSecurityPolicyConfigsLifecycleStateEnum +func GetListSecurityPolicyConfigsLifecycleStateEnumValues() []ListSecurityPolicyConfigsLifecycleStateEnum { + values := make([]ListSecurityPolicyConfigsLifecycleStateEnum, 0) + for _, v := range mappingListSecurityPolicyConfigsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListSecurityPolicyConfigsLifecycleStateEnumStringValues Enumerates the set of values in String for ListSecurityPolicyConfigsLifecycleStateEnum +func GetListSecurityPolicyConfigsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "FAILED", + "NEEDS_ATTENTION", + "DELETING", + "DELETED", + } +} + +// GetMappingListSecurityPolicyConfigsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSecurityPolicyConfigsLifecycleStateEnum(val string) (ListSecurityPolicyConfigsLifecycleStateEnum, bool) { + enum, ok := mappingListSecurityPolicyConfigsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListSecurityPolicyConfigsSortOrderEnum Enum with underlying type: string +type ListSecurityPolicyConfigsSortOrderEnum string + +// Set of constants representing the allowable values for ListSecurityPolicyConfigsSortOrderEnum +const ( + ListSecurityPolicyConfigsSortOrderAsc ListSecurityPolicyConfigsSortOrderEnum = "ASC" + ListSecurityPolicyConfigsSortOrderDesc ListSecurityPolicyConfigsSortOrderEnum = "DESC" +) + +var mappingListSecurityPolicyConfigsSortOrderEnum = map[string]ListSecurityPolicyConfigsSortOrderEnum{ + "ASC": ListSecurityPolicyConfigsSortOrderAsc, + "DESC": ListSecurityPolicyConfigsSortOrderDesc, +} + +var mappingListSecurityPolicyConfigsSortOrderEnumLowerCase = map[string]ListSecurityPolicyConfigsSortOrderEnum{ + "asc": ListSecurityPolicyConfigsSortOrderAsc, + "desc": ListSecurityPolicyConfigsSortOrderDesc, +} + +// GetListSecurityPolicyConfigsSortOrderEnumValues Enumerates the set of values for ListSecurityPolicyConfigsSortOrderEnum +func GetListSecurityPolicyConfigsSortOrderEnumValues() []ListSecurityPolicyConfigsSortOrderEnum { + values := make([]ListSecurityPolicyConfigsSortOrderEnum, 0) + for _, v := range mappingListSecurityPolicyConfigsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListSecurityPolicyConfigsSortOrderEnumStringValues Enumerates the set of values in String for ListSecurityPolicyConfigsSortOrderEnum +func GetListSecurityPolicyConfigsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListSecurityPolicyConfigsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSecurityPolicyConfigsSortOrderEnum(val string) (ListSecurityPolicyConfigsSortOrderEnum, bool) { + enum, ok := mappingListSecurityPolicyConfigsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListSecurityPolicyConfigsSortByEnum Enum with underlying type: string +type ListSecurityPolicyConfigsSortByEnum string + +// Set of constants representing the allowable values for ListSecurityPolicyConfigsSortByEnum +const ( + ListSecurityPolicyConfigsSortByTimecreated ListSecurityPolicyConfigsSortByEnum = "TIMECREATED" + ListSecurityPolicyConfigsSortByDisplayname ListSecurityPolicyConfigsSortByEnum = "DISPLAYNAME" +) + +var mappingListSecurityPolicyConfigsSortByEnum = map[string]ListSecurityPolicyConfigsSortByEnum{ + "TIMECREATED": ListSecurityPolicyConfigsSortByTimecreated, + "DISPLAYNAME": ListSecurityPolicyConfigsSortByDisplayname, +} + +var mappingListSecurityPolicyConfigsSortByEnumLowerCase = map[string]ListSecurityPolicyConfigsSortByEnum{ + "timecreated": ListSecurityPolicyConfigsSortByTimecreated, + "displayname": ListSecurityPolicyConfigsSortByDisplayname, +} + +// GetListSecurityPolicyConfigsSortByEnumValues Enumerates the set of values for ListSecurityPolicyConfigsSortByEnum +func GetListSecurityPolicyConfigsSortByEnumValues() []ListSecurityPolicyConfigsSortByEnum { + values := make([]ListSecurityPolicyConfigsSortByEnum, 0) + for _, v := range mappingListSecurityPolicyConfigsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListSecurityPolicyConfigsSortByEnumStringValues Enumerates the set of values in String for ListSecurityPolicyConfigsSortByEnum +func GetListSecurityPolicyConfigsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListSecurityPolicyConfigsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSecurityPolicyConfigsSortByEnum(val string) (ListSecurityPolicyConfigsSortByEnum, bool) { + enum, ok := mappingListSecurityPolicyConfigsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policy_deployments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policy_deployments_request_response.go index 653cfbf7b15..01691cffdf0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policy_deployments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policy_deployments_request_response.go @@ -49,6 +49,9 @@ type ListSecurityPolicyDeploymentsRequest struct { // A filter to return only items related to a specific target OCID. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // A optional filter to return only resources that belong to the specified target type. + TargetType SecurityPolicyDeploymentTargetTypeEnum `mandatory:"false" contributesTo:"query" name:"targetType" omitEmpty:"true"` + // An optional filter to return only resources that match the specified OCID of the security policy resource. SecurityPolicyId *string `mandatory:"false" contributesTo:"query" name:"securityPolicyId"` @@ -105,6 +108,9 @@ func (request ListSecurityPolicyDeploymentsRequest) ValidateEnumValue() (bool, e if _, ok := GetMappingListSecurityPolicyDeploymentsLifecycleStateEnum(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(GetListSecurityPolicyDeploymentsLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingSecurityPolicyDeploymentTargetTypeEnum(string(request.TargetType)); !ok && request.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", request.TargetType, strings.Join(GetSecurityPolicyDeploymentTargetTypeEnumStringValues(), ","))) + } if _, ok := GetMappingListSecurityPolicyDeploymentsSortOrderEnum(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(GetListSecurityPolicyDeploymentsSortOrderEnumStringValues(), ","))) } @@ -194,33 +200,36 @@ type ListSecurityPolicyDeploymentsLifecycleStateEnum string // Set of constants representing the allowable values for ListSecurityPolicyDeploymentsLifecycleStateEnum const ( - ListSecurityPolicyDeploymentsLifecycleStateCreating ListSecurityPolicyDeploymentsLifecycleStateEnum = "CREATING" - ListSecurityPolicyDeploymentsLifecycleStateUpdating ListSecurityPolicyDeploymentsLifecycleStateEnum = "UPDATING" - ListSecurityPolicyDeploymentsLifecycleStateDeployed ListSecurityPolicyDeploymentsLifecycleStateEnum = "DEPLOYED" - ListSecurityPolicyDeploymentsLifecycleStateNeedsAttention ListSecurityPolicyDeploymentsLifecycleStateEnum = "NEEDS_ATTENTION" - ListSecurityPolicyDeploymentsLifecycleStateFailed ListSecurityPolicyDeploymentsLifecycleStateEnum = "FAILED" - ListSecurityPolicyDeploymentsLifecycleStateDeleting ListSecurityPolicyDeploymentsLifecycleStateEnum = "DELETING" - ListSecurityPolicyDeploymentsLifecycleStateDeleted ListSecurityPolicyDeploymentsLifecycleStateEnum = "DELETED" + ListSecurityPolicyDeploymentsLifecycleStateCreating ListSecurityPolicyDeploymentsLifecycleStateEnum = "CREATING" + ListSecurityPolicyDeploymentsLifecycleStateUpdating ListSecurityPolicyDeploymentsLifecycleStateEnum = "UPDATING" + ListSecurityPolicyDeploymentsLifecycleStateDeployed ListSecurityPolicyDeploymentsLifecycleStateEnum = "DEPLOYED" + ListSecurityPolicyDeploymentsLifecycleStatePendingDeployment ListSecurityPolicyDeploymentsLifecycleStateEnum = "PENDING_DEPLOYMENT" + ListSecurityPolicyDeploymentsLifecycleStateNeedsAttention ListSecurityPolicyDeploymentsLifecycleStateEnum = "NEEDS_ATTENTION" + ListSecurityPolicyDeploymentsLifecycleStateFailed ListSecurityPolicyDeploymentsLifecycleStateEnum = "FAILED" + ListSecurityPolicyDeploymentsLifecycleStateDeleting ListSecurityPolicyDeploymentsLifecycleStateEnum = "DELETING" + ListSecurityPolicyDeploymentsLifecycleStateDeleted ListSecurityPolicyDeploymentsLifecycleStateEnum = "DELETED" ) var mappingListSecurityPolicyDeploymentsLifecycleStateEnum = map[string]ListSecurityPolicyDeploymentsLifecycleStateEnum{ - "CREATING": ListSecurityPolicyDeploymentsLifecycleStateCreating, - "UPDATING": ListSecurityPolicyDeploymentsLifecycleStateUpdating, - "DEPLOYED": ListSecurityPolicyDeploymentsLifecycleStateDeployed, - "NEEDS_ATTENTION": ListSecurityPolicyDeploymentsLifecycleStateNeedsAttention, - "FAILED": ListSecurityPolicyDeploymentsLifecycleStateFailed, - "DELETING": ListSecurityPolicyDeploymentsLifecycleStateDeleting, - "DELETED": ListSecurityPolicyDeploymentsLifecycleStateDeleted, + "CREATING": ListSecurityPolicyDeploymentsLifecycleStateCreating, + "UPDATING": ListSecurityPolicyDeploymentsLifecycleStateUpdating, + "DEPLOYED": ListSecurityPolicyDeploymentsLifecycleStateDeployed, + "PENDING_DEPLOYMENT": ListSecurityPolicyDeploymentsLifecycleStatePendingDeployment, + "NEEDS_ATTENTION": ListSecurityPolicyDeploymentsLifecycleStateNeedsAttention, + "FAILED": ListSecurityPolicyDeploymentsLifecycleStateFailed, + "DELETING": ListSecurityPolicyDeploymentsLifecycleStateDeleting, + "DELETED": ListSecurityPolicyDeploymentsLifecycleStateDeleted, } var mappingListSecurityPolicyDeploymentsLifecycleStateEnumLowerCase = map[string]ListSecurityPolicyDeploymentsLifecycleStateEnum{ - "creating": ListSecurityPolicyDeploymentsLifecycleStateCreating, - "updating": ListSecurityPolicyDeploymentsLifecycleStateUpdating, - "deployed": ListSecurityPolicyDeploymentsLifecycleStateDeployed, - "needs_attention": ListSecurityPolicyDeploymentsLifecycleStateNeedsAttention, - "failed": ListSecurityPolicyDeploymentsLifecycleStateFailed, - "deleting": ListSecurityPolicyDeploymentsLifecycleStateDeleting, - "deleted": ListSecurityPolicyDeploymentsLifecycleStateDeleted, + "creating": ListSecurityPolicyDeploymentsLifecycleStateCreating, + "updating": ListSecurityPolicyDeploymentsLifecycleStateUpdating, + "deployed": ListSecurityPolicyDeploymentsLifecycleStateDeployed, + "pending_deployment": ListSecurityPolicyDeploymentsLifecycleStatePendingDeployment, + "needs_attention": ListSecurityPolicyDeploymentsLifecycleStateNeedsAttention, + "failed": ListSecurityPolicyDeploymentsLifecycleStateFailed, + "deleting": ListSecurityPolicyDeploymentsLifecycleStateDeleting, + "deleted": ListSecurityPolicyDeploymentsLifecycleStateDeleted, } // GetListSecurityPolicyDeploymentsLifecycleStateEnumValues Enumerates the set of values for ListSecurityPolicyDeploymentsLifecycleStateEnum @@ -238,6 +247,7 @@ func GetListSecurityPolicyDeploymentsLifecycleStateEnumStringValues() []string { "CREATING", "UPDATING", "DEPLOYED", + "PENDING_DEPLOYMENT", "NEEDS_ATTENTION", "FAILED", "DELETING", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policy_entry_states_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policy_entry_states_request_response.go index 6a44bd1d96e..9bfc0da9690 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policy_entry_states_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_security_policy_entry_states_request_response.go @@ -33,6 +33,12 @@ type ListSecurityPolicyEntryStatesRequest struct { // An optional filter to return only resources that match the specified security policy entry OCID. SecurityPolicyEntryId *string `mandatory:"false" contributesTo:"query" name:"securityPolicyEntryId"` + // The type of the security policy deployment. + SecurityPolicyEntryType SecurityPolicyEntryStateSummaryEntryTypeEnum `mandatory:"false" contributesTo:"query" name:"securityPolicyEntryType" omitEmpty:"true"` + + // An optional filter to return only resources that match the specified target id. + TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // Unique identifier for the request. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -75,6 +81,9 @@ func (request ListSecurityPolicyEntryStatesRequest) ValidateEnumValue() (bool, e if _, ok := GetMappingListSecurityPolicyEntryStatesDeploymentStatusEnum(string(request.DeploymentStatus)); !ok && request.DeploymentStatus != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DeploymentStatus: %s. Supported values are: %s.", request.DeploymentStatus, strings.Join(GetListSecurityPolicyEntryStatesDeploymentStatusEnumStringValues(), ","))) } + if _, ok := GetMappingSecurityPolicyEntryStateSummaryEntryTypeEnum(string(request.SecurityPolicyEntryType)); !ok && request.SecurityPolicyEntryType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SecurityPolicyEntryType: %s. Supported values are: %s.", request.SecurityPolicyEntryType, strings.Join(GetSecurityPolicyEntryStateSummaryEntryTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -116,27 +125,36 @@ type ListSecurityPolicyEntryStatesDeploymentStatusEnum string // Set of constants representing the allowable values for ListSecurityPolicyEntryStatesDeploymentStatusEnum const ( - ListSecurityPolicyEntryStatesDeploymentStatusCreated ListSecurityPolicyEntryStatesDeploymentStatusEnum = "CREATED" - ListSecurityPolicyEntryStatesDeploymentStatusModified ListSecurityPolicyEntryStatesDeploymentStatusEnum = "MODIFIED" - ListSecurityPolicyEntryStatesDeploymentStatusConflict ListSecurityPolicyEntryStatesDeploymentStatusEnum = "CONFLICT" - ListSecurityPolicyEntryStatesDeploymentStatusUnauthorized ListSecurityPolicyEntryStatesDeploymentStatusEnum = "UNAUTHORIZED" - ListSecurityPolicyEntryStatesDeploymentStatusDeleted ListSecurityPolicyEntryStatesDeploymentStatusEnum = "DELETED" + ListSecurityPolicyEntryStatesDeploymentStatusCreated ListSecurityPolicyEntryStatesDeploymentStatusEnum = "CREATED" + ListSecurityPolicyEntryStatesDeploymentStatusModified ListSecurityPolicyEntryStatesDeploymentStatusEnum = "MODIFIED" + ListSecurityPolicyEntryStatesDeploymentStatusConflict ListSecurityPolicyEntryStatesDeploymentStatusEnum = "CONFLICT" + ListSecurityPolicyEntryStatesDeploymentStatusConnectivityIssue ListSecurityPolicyEntryStatesDeploymentStatusEnum = "CONNECTIVITY_ISSUE" + ListSecurityPolicyEntryStatesDeploymentStatusUnsupportedSyntax ListSecurityPolicyEntryStatesDeploymentStatusEnum = "UNSUPPORTED_SYNTAX" + ListSecurityPolicyEntryStatesDeploymentStatusUnknownError ListSecurityPolicyEntryStatesDeploymentStatusEnum = "UNKNOWN_ERROR" + ListSecurityPolicyEntryStatesDeploymentStatusUnauthorized ListSecurityPolicyEntryStatesDeploymentStatusEnum = "UNAUTHORIZED" + ListSecurityPolicyEntryStatesDeploymentStatusDeleted ListSecurityPolicyEntryStatesDeploymentStatusEnum = "DELETED" ) var mappingListSecurityPolicyEntryStatesDeploymentStatusEnum = map[string]ListSecurityPolicyEntryStatesDeploymentStatusEnum{ - "CREATED": ListSecurityPolicyEntryStatesDeploymentStatusCreated, - "MODIFIED": ListSecurityPolicyEntryStatesDeploymentStatusModified, - "CONFLICT": ListSecurityPolicyEntryStatesDeploymentStatusConflict, - "UNAUTHORIZED": ListSecurityPolicyEntryStatesDeploymentStatusUnauthorized, - "DELETED": ListSecurityPolicyEntryStatesDeploymentStatusDeleted, + "CREATED": ListSecurityPolicyEntryStatesDeploymentStatusCreated, + "MODIFIED": ListSecurityPolicyEntryStatesDeploymentStatusModified, + "CONFLICT": ListSecurityPolicyEntryStatesDeploymentStatusConflict, + "CONNECTIVITY_ISSUE": ListSecurityPolicyEntryStatesDeploymentStatusConnectivityIssue, + "UNSUPPORTED_SYNTAX": ListSecurityPolicyEntryStatesDeploymentStatusUnsupportedSyntax, + "UNKNOWN_ERROR": ListSecurityPolicyEntryStatesDeploymentStatusUnknownError, + "UNAUTHORIZED": ListSecurityPolicyEntryStatesDeploymentStatusUnauthorized, + "DELETED": ListSecurityPolicyEntryStatesDeploymentStatusDeleted, } var mappingListSecurityPolicyEntryStatesDeploymentStatusEnumLowerCase = map[string]ListSecurityPolicyEntryStatesDeploymentStatusEnum{ - "created": ListSecurityPolicyEntryStatesDeploymentStatusCreated, - "modified": ListSecurityPolicyEntryStatesDeploymentStatusModified, - "conflict": ListSecurityPolicyEntryStatesDeploymentStatusConflict, - "unauthorized": ListSecurityPolicyEntryStatesDeploymentStatusUnauthorized, - "deleted": ListSecurityPolicyEntryStatesDeploymentStatusDeleted, + "created": ListSecurityPolicyEntryStatesDeploymentStatusCreated, + "modified": ListSecurityPolicyEntryStatesDeploymentStatusModified, + "conflict": ListSecurityPolicyEntryStatesDeploymentStatusConflict, + "connectivity_issue": ListSecurityPolicyEntryStatesDeploymentStatusConnectivityIssue, + "unsupported_syntax": ListSecurityPolicyEntryStatesDeploymentStatusUnsupportedSyntax, + "unknown_error": ListSecurityPolicyEntryStatesDeploymentStatusUnknownError, + "unauthorized": ListSecurityPolicyEntryStatesDeploymentStatusUnauthorized, + "deleted": ListSecurityPolicyEntryStatesDeploymentStatusDeleted, } // GetListSecurityPolicyEntryStatesDeploymentStatusEnumValues Enumerates the set of values for ListSecurityPolicyEntryStatesDeploymentStatusEnum @@ -154,6 +172,9 @@ func GetListSecurityPolicyEntryStatesDeploymentStatusEnumStringValues() []string "CREATED", "MODIFIED", "CONFLICT", + "CONNECTIVITY_ISSUE", + "UNSUPPORTED_SYNTAX", + "UNKNOWN_ERROR", "UNAUTHORIZED", "DELETED", } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sensitive_column_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sensitive_column_analytics_request_response.go index d20ec02831c..af1cdc889aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sensitive_column_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sensitive_column_analytics_request_response.go @@ -34,6 +34,9 @@ type ListSensitiveColumnAnalyticsRequest struct { // A filter to return only items related to a specific target OCID. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + // A filter to return only the sensitive columns that are associated with one of the sensitive types identified by the specified OCIDs. SensitiveTypeId []string `contributesTo:"query" name:"sensitiveTypeId" collectionFormat:"multi"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_collection_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_collection_analytics_request_response.go index bc8fba84fcd..9abecde3cce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_collection_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_collection_analytics_request_response.go @@ -43,6 +43,9 @@ type ListSqlCollectionAnalyticsRequest struct { // A filter to return only items related to a specific target OCID. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + // Unique identifier for the request. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_collections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_collections_request_response.go index be32ff27a3d..d4232be430f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_collections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_collections_request_response.go @@ -62,6 +62,9 @@ type ListSqlCollectionsRequest struct { // A filter to return only items related to a specific target OCID. TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + // A filter to return only items that match the specified user name. DbUserName *string `mandatory:"false" contributesTo:"query" name:"dbUserName"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_allowed_sql_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_allowed_sql_analytics_request_response.go index 49d51703b04..846a231cdb8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_allowed_sql_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_allowed_sql_analytics_request_response.go @@ -42,7 +42,7 @@ type ListSqlFirewallAllowedSqlAnalyticsRequest struct { // at RFC3339 (https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. // (Numeric and boolean values should not be quoted.) - // **Example:** query=(currentUser eq 'SCOTT') and (topLevel eq 'YES') + // **Example:** query=(currentUser eq "SCOTT") and (topLevel eq "YES") ScimQuery *string `mandatory:"false" contributesTo:"query" name:"scimQuery"` // The group by parameter to summarize the allowed SQL aggregation. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_allowed_sqls_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_allowed_sqls_request_response.go index 091f574b18d..2d6815d1eae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_allowed_sqls_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_allowed_sqls_request_response.go @@ -42,7 +42,7 @@ type ListSqlFirewallAllowedSqlsRequest struct { // at RFC3339 (https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. // (Numeric and boolean values should not be quoted.) - // **Example:** query=(currentUser eq 'SCOTT') and (topLevel eq 'YES') + // **Example:** query=(currentUser eq "SCOTT") and (topLevel eq "YES") ScimQuery *string `mandatory:"false" contributesTo:"query" name:"scimQuery"` // The sort order to use, either ascending (ASC) or descending (DESC). diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_violation_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_violation_analytics_request_response.go index bf32ed8dc01..15cfd101302 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_violation_analytics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_violation_analytics_request_response.go @@ -62,7 +62,7 @@ type ListSqlFirewallViolationAnalyticsRequest struct { // at RFC3339 (https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. // (Numeric and boolean values should not be quoted.) - // **Example:** query=(operationTime ge '2021-06-04T01-00-26') and (violationAction eq 'BLOCKED') + // **Example:** query=(operationTime ge "2021-06-04T01:00:26.000Z") and (violationAction eq "BLOCKED") ScimQuery *string `mandatory:"false" contributesTo:"query" name:"scimQuery"` // Specifies a subset of summarized fields to be returned in the response. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_violations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_violations_request_response.go index 7c24ea3300f..c7c18dfc250 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_violations_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_sql_firewall_violations_request_response.go @@ -51,7 +51,7 @@ type ListSqlFirewallViolationsRequest struct { // at RFC3339 (https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. // (Numeric and boolean values should not be quoted.) - // **Example:** query=(operationTime ge '2021-06-04T01-00-26') and (violationAction eq 'BLOCKED') + // **Example:** query=(operationTime ge "2021-06-04T01:00:26.000Z") and (violationAction eq "BLOCKED") ScimQuery *string `mandatory:"false" contributesTo:"query" name:"scimQuery"` // Metadata about the request. This information will not be transmitted to the service, but diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_target_database_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_target_database_groups_request_response.go new file mode 100644 index 00000000000..70645fa514c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_target_database_groups_request_response.go @@ -0,0 +1,357 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListTargetDatabaseGroupsRequest wrapper for the ListTargetDatabaseGroups operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTargetDatabaseGroups.go.html to see an example of how to use ListTargetDatabaseGroupsRequest. +type ListTargetDatabaseGroupsRequest struct { + + // A filter to return only resources that match the specified compartment OCID. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // A filter to return only resources that match the specified display name. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The scim query filter parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 + // of the System for Cross-Domain Identity Management (SCIM) specification, which is available + // at RFC3339 (https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, + // text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. + // (Numeric and boolean values should not be quoted.) + // Ex:** filter=(targetDatabaseId eq 'ocid1.datasafetargetdatabase.oc1.iad.abuwcljr3u2va4ba5wek53idpe5qq5kkbigzclscc6mysfecxzjt5dgmxqza') + Filter *string `mandatory:"false" contributesTo:"query" name:"filter"` + + // The sorting field for your request. You can only specify a single sorting order (sortOrder). The default order for timeCreated is descending. + SortBy ListTargetDatabaseGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // A filter to retrieve resources that exclusively align with the designated lifecycle state. + LifecycleState ListTargetDatabaseGroupsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Default is false. + // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. + // Setting this to ACCESSIBLE returns only those compartments for which the + // user has INSPECT permissions directly or indirectly (permissions can be on a + // resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. + AccessLevel ListTargetDatabaseGroupsAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` + + // The sort order to use, either ascending (ASC) or descending (DESC). + SortOrder ListTargetDatabaseGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only the resources that were created after the specified date and time, as defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date. + // **Example:** 2016-12-19T16:39:57.600Z + TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"` + + // Search for resources that were created before a specific date. + // Specifying this parameter corresponding `timeCreatedLessThan` + // parameter will retrieve all resources created before the + // specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as + // defined by RFC 3339. + // **Example:** 2016-12-19T16:39:57.600Z + TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + + // 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 ListTargetDatabaseGroupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListTargetDatabaseGroupsRequest) 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 ListTargetDatabaseGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListTargetDatabaseGroupsRequest) 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 ListTargetDatabaseGroupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListTargetDatabaseGroupsSortByEnum(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(GetListTargetDatabaseGroupsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListTargetDatabaseGroupsLifecycleStateEnum(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(GetListTargetDatabaseGroupsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListTargetDatabaseGroupsAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetListTargetDatabaseGroupsAccessLevelEnumStringValues(), ","))) + } + if _, ok := GetMappingListTargetDatabaseGroupsSortOrderEnum(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(GetListTargetDatabaseGroupsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListTargetDatabaseGroupsResponse wrapper for the ListTargetDatabaseGroups operation +type ListTargetDatabaseGroupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of TargetDatabaseGroupCollection instances + TargetDatabaseGroupCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response ListTargetDatabaseGroupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListTargetDatabaseGroupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListTargetDatabaseGroupsSortByEnum Enum with underlying type: string +type ListTargetDatabaseGroupsSortByEnum string + +// Set of constants representing the allowable values for ListTargetDatabaseGroupsSortByEnum +const ( + ListTargetDatabaseGroupsSortByTimecreated ListTargetDatabaseGroupsSortByEnum = "timeCreated" + ListTargetDatabaseGroupsSortByDisplayname ListTargetDatabaseGroupsSortByEnum = "displayName" + ListTargetDatabaseGroupsSortByLifecyclestate ListTargetDatabaseGroupsSortByEnum = "lifecycleState" + ListTargetDatabaseGroupsSortByMembershipupdatetime ListTargetDatabaseGroupsSortByEnum = "membershipUpdateTime" +) + +var mappingListTargetDatabaseGroupsSortByEnum = map[string]ListTargetDatabaseGroupsSortByEnum{ + "timeCreated": ListTargetDatabaseGroupsSortByTimecreated, + "displayName": ListTargetDatabaseGroupsSortByDisplayname, + "lifecycleState": ListTargetDatabaseGroupsSortByLifecyclestate, + "membershipUpdateTime": ListTargetDatabaseGroupsSortByMembershipupdatetime, +} + +var mappingListTargetDatabaseGroupsSortByEnumLowerCase = map[string]ListTargetDatabaseGroupsSortByEnum{ + "timecreated": ListTargetDatabaseGroupsSortByTimecreated, + "displayname": ListTargetDatabaseGroupsSortByDisplayname, + "lifecyclestate": ListTargetDatabaseGroupsSortByLifecyclestate, + "membershipupdatetime": ListTargetDatabaseGroupsSortByMembershipupdatetime, +} + +// GetListTargetDatabaseGroupsSortByEnumValues Enumerates the set of values for ListTargetDatabaseGroupsSortByEnum +func GetListTargetDatabaseGroupsSortByEnumValues() []ListTargetDatabaseGroupsSortByEnum { + values := make([]ListTargetDatabaseGroupsSortByEnum, 0) + for _, v := range mappingListTargetDatabaseGroupsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListTargetDatabaseGroupsSortByEnumStringValues Enumerates the set of values in String for ListTargetDatabaseGroupsSortByEnum +func GetListTargetDatabaseGroupsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + "lifecycleState", + "membershipUpdateTime", + } +} + +// GetMappingListTargetDatabaseGroupsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListTargetDatabaseGroupsSortByEnum(val string) (ListTargetDatabaseGroupsSortByEnum, bool) { + enum, ok := mappingListTargetDatabaseGroupsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListTargetDatabaseGroupsLifecycleStateEnum Enum with underlying type: string +type ListTargetDatabaseGroupsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListTargetDatabaseGroupsLifecycleStateEnum +const ( + ListTargetDatabaseGroupsLifecycleStateCreating ListTargetDatabaseGroupsLifecycleStateEnum = "CREATING" + ListTargetDatabaseGroupsLifecycleStateUpdating ListTargetDatabaseGroupsLifecycleStateEnum = "UPDATING" + ListTargetDatabaseGroupsLifecycleStateActive ListTargetDatabaseGroupsLifecycleStateEnum = "ACTIVE" + ListTargetDatabaseGroupsLifecycleStateDeleting ListTargetDatabaseGroupsLifecycleStateEnum = "DELETING" + ListTargetDatabaseGroupsLifecycleStateDeleted ListTargetDatabaseGroupsLifecycleStateEnum = "DELETED" + ListTargetDatabaseGroupsLifecycleStateFailed ListTargetDatabaseGroupsLifecycleStateEnum = "FAILED" + ListTargetDatabaseGroupsLifecycleStateNeedsAttention ListTargetDatabaseGroupsLifecycleStateEnum = "NEEDS_ATTENTION" +) + +var mappingListTargetDatabaseGroupsLifecycleStateEnum = map[string]ListTargetDatabaseGroupsLifecycleStateEnum{ + "CREATING": ListTargetDatabaseGroupsLifecycleStateCreating, + "UPDATING": ListTargetDatabaseGroupsLifecycleStateUpdating, + "ACTIVE": ListTargetDatabaseGroupsLifecycleStateActive, + "DELETING": ListTargetDatabaseGroupsLifecycleStateDeleting, + "DELETED": ListTargetDatabaseGroupsLifecycleStateDeleted, + "FAILED": ListTargetDatabaseGroupsLifecycleStateFailed, + "NEEDS_ATTENTION": ListTargetDatabaseGroupsLifecycleStateNeedsAttention, +} + +var mappingListTargetDatabaseGroupsLifecycleStateEnumLowerCase = map[string]ListTargetDatabaseGroupsLifecycleStateEnum{ + "creating": ListTargetDatabaseGroupsLifecycleStateCreating, + "updating": ListTargetDatabaseGroupsLifecycleStateUpdating, + "active": ListTargetDatabaseGroupsLifecycleStateActive, + "deleting": ListTargetDatabaseGroupsLifecycleStateDeleting, + "deleted": ListTargetDatabaseGroupsLifecycleStateDeleted, + "failed": ListTargetDatabaseGroupsLifecycleStateFailed, + "needs_attention": ListTargetDatabaseGroupsLifecycleStateNeedsAttention, +} + +// GetListTargetDatabaseGroupsLifecycleStateEnumValues Enumerates the set of values for ListTargetDatabaseGroupsLifecycleStateEnum +func GetListTargetDatabaseGroupsLifecycleStateEnumValues() []ListTargetDatabaseGroupsLifecycleStateEnum { + values := make([]ListTargetDatabaseGroupsLifecycleStateEnum, 0) + for _, v := range mappingListTargetDatabaseGroupsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListTargetDatabaseGroupsLifecycleStateEnumStringValues Enumerates the set of values in String for ListTargetDatabaseGroupsLifecycleStateEnum +func GetListTargetDatabaseGroupsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + "NEEDS_ATTENTION", + } +} + +// GetMappingListTargetDatabaseGroupsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListTargetDatabaseGroupsLifecycleStateEnum(val string) (ListTargetDatabaseGroupsLifecycleStateEnum, bool) { + enum, ok := mappingListTargetDatabaseGroupsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListTargetDatabaseGroupsAccessLevelEnum Enum with underlying type: string +type ListTargetDatabaseGroupsAccessLevelEnum string + +// Set of constants representing the allowable values for ListTargetDatabaseGroupsAccessLevelEnum +const ( + ListTargetDatabaseGroupsAccessLevelRestricted ListTargetDatabaseGroupsAccessLevelEnum = "RESTRICTED" + ListTargetDatabaseGroupsAccessLevelAccessible ListTargetDatabaseGroupsAccessLevelEnum = "ACCESSIBLE" +) + +var mappingListTargetDatabaseGroupsAccessLevelEnum = map[string]ListTargetDatabaseGroupsAccessLevelEnum{ + "RESTRICTED": ListTargetDatabaseGroupsAccessLevelRestricted, + "ACCESSIBLE": ListTargetDatabaseGroupsAccessLevelAccessible, +} + +var mappingListTargetDatabaseGroupsAccessLevelEnumLowerCase = map[string]ListTargetDatabaseGroupsAccessLevelEnum{ + "restricted": ListTargetDatabaseGroupsAccessLevelRestricted, + "accessible": ListTargetDatabaseGroupsAccessLevelAccessible, +} + +// GetListTargetDatabaseGroupsAccessLevelEnumValues Enumerates the set of values for ListTargetDatabaseGroupsAccessLevelEnum +func GetListTargetDatabaseGroupsAccessLevelEnumValues() []ListTargetDatabaseGroupsAccessLevelEnum { + values := make([]ListTargetDatabaseGroupsAccessLevelEnum, 0) + for _, v := range mappingListTargetDatabaseGroupsAccessLevelEnum { + values = append(values, v) + } + return values +} + +// GetListTargetDatabaseGroupsAccessLevelEnumStringValues Enumerates the set of values in String for ListTargetDatabaseGroupsAccessLevelEnum +func GetListTargetDatabaseGroupsAccessLevelEnumStringValues() []string { + return []string{ + "RESTRICTED", + "ACCESSIBLE", + } +} + +// GetMappingListTargetDatabaseGroupsAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListTargetDatabaseGroupsAccessLevelEnum(val string) (ListTargetDatabaseGroupsAccessLevelEnum, bool) { + enum, ok := mappingListTargetDatabaseGroupsAccessLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListTargetDatabaseGroupsSortOrderEnum Enum with underlying type: string +type ListTargetDatabaseGroupsSortOrderEnum string + +// Set of constants representing the allowable values for ListTargetDatabaseGroupsSortOrderEnum +const ( + ListTargetDatabaseGroupsSortOrderAsc ListTargetDatabaseGroupsSortOrderEnum = "ASC" + ListTargetDatabaseGroupsSortOrderDesc ListTargetDatabaseGroupsSortOrderEnum = "DESC" +) + +var mappingListTargetDatabaseGroupsSortOrderEnum = map[string]ListTargetDatabaseGroupsSortOrderEnum{ + "ASC": ListTargetDatabaseGroupsSortOrderAsc, + "DESC": ListTargetDatabaseGroupsSortOrderDesc, +} + +var mappingListTargetDatabaseGroupsSortOrderEnumLowerCase = map[string]ListTargetDatabaseGroupsSortOrderEnum{ + "asc": ListTargetDatabaseGroupsSortOrderAsc, + "desc": ListTargetDatabaseGroupsSortOrderDesc, +} + +// GetListTargetDatabaseGroupsSortOrderEnumValues Enumerates the set of values for ListTargetDatabaseGroupsSortOrderEnum +func GetListTargetDatabaseGroupsSortOrderEnumValues() []ListTargetDatabaseGroupsSortOrderEnum { + values := make([]ListTargetDatabaseGroupsSortOrderEnum, 0) + for _, v := range mappingListTargetDatabaseGroupsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListTargetDatabaseGroupsSortOrderEnumStringValues Enumerates the set of values in String for ListTargetDatabaseGroupsSortOrderEnum +func GetListTargetDatabaseGroupsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListTargetDatabaseGroupsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListTargetDatabaseGroupsSortOrderEnum(val string) (ListTargetDatabaseGroupsSortOrderEnum, bool) { + enum, ok := mappingListTargetDatabaseGroupsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_target_overrides_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_target_overrides_request_response.go new file mode 100644 index 00000000000..805681932c1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_target_overrides_request_response.go @@ -0,0 +1,204 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListTargetOverridesRequest wrapper for the ListTargetOverrides operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTargetOverrides.go.html to see an example of how to use ListTargetOverridesRequest. +type ListTargetOverridesRequest struct { + + // The OCID of the audit. + AuditProfileId *string `mandatory:"true" contributesTo:"path" name:"auditProfileId"` + + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the specified display name. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field used for sorting. Only one sorting order (sortOrder) can be specified. + // The default order for TIMECREATED is descending. The default order for DISPLAYNAME is ascending. + // The DISPLAYNAME sort order is case sensitive. + SortBy ListTargetOverridesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (ASC) or descending (DESC). + SortOrder ListTargetOverridesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // 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 ListTargetOverridesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListTargetOverridesRequest) 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 ListTargetOverridesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListTargetOverridesRequest) 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 ListTargetOverridesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListTargetOverridesSortByEnum(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(GetListTargetOverridesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListTargetOverridesSortOrderEnum(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(GetListTargetOverridesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListTargetOverridesResponse wrapper for the ListTargetOverrides operation +type ListTargetOverridesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of TargetOverrideCollection instances + TargetOverrideCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response ListTargetOverridesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListTargetOverridesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListTargetOverridesSortByEnum Enum with underlying type: string +type ListTargetOverridesSortByEnum string + +// Set of constants representing the allowable values for ListTargetOverridesSortByEnum +const ( + ListTargetOverridesSortByTimecreated ListTargetOverridesSortByEnum = "TIMECREATED" + ListTargetOverridesSortByDisplayname ListTargetOverridesSortByEnum = "DISPLAYNAME" +) + +var mappingListTargetOverridesSortByEnum = map[string]ListTargetOverridesSortByEnum{ + "TIMECREATED": ListTargetOverridesSortByTimecreated, + "DISPLAYNAME": ListTargetOverridesSortByDisplayname, +} + +var mappingListTargetOverridesSortByEnumLowerCase = map[string]ListTargetOverridesSortByEnum{ + "timecreated": ListTargetOverridesSortByTimecreated, + "displayname": ListTargetOverridesSortByDisplayname, +} + +// GetListTargetOverridesSortByEnumValues Enumerates the set of values for ListTargetOverridesSortByEnum +func GetListTargetOverridesSortByEnumValues() []ListTargetOverridesSortByEnum { + values := make([]ListTargetOverridesSortByEnum, 0) + for _, v := range mappingListTargetOverridesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListTargetOverridesSortByEnumStringValues Enumerates the set of values in String for ListTargetOverridesSortByEnum +func GetListTargetOverridesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListTargetOverridesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListTargetOverridesSortByEnum(val string) (ListTargetOverridesSortByEnum, bool) { + enum, ok := mappingListTargetOverridesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListTargetOverridesSortOrderEnum Enum with underlying type: string +type ListTargetOverridesSortOrderEnum string + +// Set of constants representing the allowable values for ListTargetOverridesSortOrderEnum +const ( + ListTargetOverridesSortOrderAsc ListTargetOverridesSortOrderEnum = "ASC" + ListTargetOverridesSortOrderDesc ListTargetOverridesSortOrderEnum = "DESC" +) + +var mappingListTargetOverridesSortOrderEnum = map[string]ListTargetOverridesSortOrderEnum{ + "ASC": ListTargetOverridesSortOrderAsc, + "DESC": ListTargetOverridesSortOrderDesc, +} + +var mappingListTargetOverridesSortOrderEnumLowerCase = map[string]ListTargetOverridesSortOrderEnum{ + "asc": ListTargetOverridesSortOrderAsc, + "desc": ListTargetOverridesSortOrderDesc, +} + +// GetListTargetOverridesSortOrderEnumValues Enumerates the set of values for ListTargetOverridesSortOrderEnum +func GetListTargetOverridesSortOrderEnumValues() []ListTargetOverridesSortOrderEnum { + values := make([]ListTargetOverridesSortOrderEnum, 0) + for _, v := range mappingListTargetOverridesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListTargetOverridesSortOrderEnumStringValues Enumerates the set of values in String for ListTargetOverridesSortOrderEnum +func GetListTargetOverridesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListTargetOverridesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListTargetOverridesSortOrderEnum(val string) (ListTargetOverridesSortOrderEnum, bool) { + enum, ok := mappingListTargetOverridesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_template_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_template_analytics_request_response.go new file mode 100644 index 00000000000..ef02f93314c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_template_analytics_request_response.go @@ -0,0 +1,179 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListTemplateAnalyticsRequest wrapper for the ListTemplateAnalytics operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTemplateAnalytics.go.html to see an example of how to use ListTemplateAnalyticsRequest. +type ListTemplateAnalyticsRequest struct { + + // A filter to return only resources that match the specified compartment OCID. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Default is false. + // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. + // Setting this to ACCESSIBLE returns only those compartments for which the + // user has INSPECT permissions directly or indirectly (permissions can be on a + // resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. + AccessLevel ListTemplateAnalyticsAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` + + // The OCID of the security assessment of type TEMPLATE. + TemplateAssessmentId *string `mandatory:"false" contributesTo:"query" name:"templateAssessmentId"` + + // The OCID of the security assessment of type TEMPLATE_BASELINE. + TemplateBaselineAssessmentId *string `mandatory:"false" contributesTo:"query" name:"templateBaselineAssessmentId"` + + // A filter to return only the target group related information if the OCID belongs to a target group. + IsGroup *bool `mandatory:"false" contributesTo:"query" name:"isGroup"` + + // A filter to return only the statistics where the comparison between the latest assessment and the template baseline assessment is done. + IsCompared *bool `mandatory:"false" contributesTo:"query" name:"isCompared"` + + // A filter to return only the statistics where the latest assessment is compliant with the template baseline assessment. + IsCompliant *bool `mandatory:"false" contributesTo:"query" name:"isCompliant"` + + // A filter to return only items related to a specific target OCID. + TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListTemplateAnalyticsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListTemplateAnalyticsRequest) 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 ListTemplateAnalyticsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListTemplateAnalyticsRequest) 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 ListTemplateAnalyticsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListTemplateAnalyticsAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetListTemplateAnalyticsAccessLevelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListTemplateAnalyticsResponse wrapper for the ListTemplateAnalytics operation +type ListTemplateAnalyticsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of TemplateAnalyticsCollection instances + TemplateAnalyticsCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response ListTemplateAnalyticsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListTemplateAnalyticsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListTemplateAnalyticsAccessLevelEnum Enum with underlying type: string +type ListTemplateAnalyticsAccessLevelEnum string + +// Set of constants representing the allowable values for ListTemplateAnalyticsAccessLevelEnum +const ( + ListTemplateAnalyticsAccessLevelRestricted ListTemplateAnalyticsAccessLevelEnum = "RESTRICTED" + ListTemplateAnalyticsAccessLevelAccessible ListTemplateAnalyticsAccessLevelEnum = "ACCESSIBLE" +) + +var mappingListTemplateAnalyticsAccessLevelEnum = map[string]ListTemplateAnalyticsAccessLevelEnum{ + "RESTRICTED": ListTemplateAnalyticsAccessLevelRestricted, + "ACCESSIBLE": ListTemplateAnalyticsAccessLevelAccessible, +} + +var mappingListTemplateAnalyticsAccessLevelEnumLowerCase = map[string]ListTemplateAnalyticsAccessLevelEnum{ + "restricted": ListTemplateAnalyticsAccessLevelRestricted, + "accessible": ListTemplateAnalyticsAccessLevelAccessible, +} + +// GetListTemplateAnalyticsAccessLevelEnumValues Enumerates the set of values for ListTemplateAnalyticsAccessLevelEnum +func GetListTemplateAnalyticsAccessLevelEnumValues() []ListTemplateAnalyticsAccessLevelEnum { + values := make([]ListTemplateAnalyticsAccessLevelEnum, 0) + for _, v := range mappingListTemplateAnalyticsAccessLevelEnum { + values = append(values, v) + } + return values +} + +// GetListTemplateAnalyticsAccessLevelEnumStringValues Enumerates the set of values in String for ListTemplateAnalyticsAccessLevelEnum +func GetListTemplateAnalyticsAccessLevelEnumStringValues() []string { + return []string{ + "RESTRICTED", + "ACCESSIBLE", + } +} + +// GetMappingListTemplateAnalyticsAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListTemplateAnalyticsAccessLevelEnum(val string) (ListTemplateAnalyticsAccessLevelEnum, bool) { + enum, ok := mappingListTemplateAnalyticsAccessLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_template_association_analytics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_template_association_analytics_request_response.go new file mode 100644 index 00000000000..e05dbda9a5b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_template_association_analytics_request_response.go @@ -0,0 +1,170 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListTemplateAssociationAnalyticsRequest wrapper for the ListTemplateAssociationAnalytics operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListTemplateAssociationAnalytics.go.html to see an example of how to use ListTemplateAssociationAnalyticsRequest. +type ListTemplateAssociationAnalyticsRequest struct { + + // A filter to return only resources that match the specified compartment OCID. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Default is false. + // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. + // Setting this to ACCESSIBLE returns only those compartments for which the + // user has INSPECT permissions directly or indirectly (permissions can be on a + // resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. + AccessLevel ListTemplateAssociationAnalyticsAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` + + // The OCID of the security assessment of type TEMPLATE. + TemplateAssessmentId *string `mandatory:"false" contributesTo:"query" name:"templateAssessmentId"` + + // The OCID of the security assessment of type TEMPLATE_BASELINE. + TemplateBaselineAssessmentId *string `mandatory:"false" contributesTo:"query" name:"templateBaselineAssessmentId"` + + // A filter to return only items related to a specific target OCID. + TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListTemplateAssociationAnalyticsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListTemplateAssociationAnalyticsRequest) 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 ListTemplateAssociationAnalyticsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListTemplateAssociationAnalyticsRequest) 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 ListTemplateAssociationAnalyticsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListTemplateAssociationAnalyticsAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetListTemplateAssociationAnalyticsAccessLevelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListTemplateAssociationAnalyticsResponse wrapper for the ListTemplateAssociationAnalytics operation +type ListTemplateAssociationAnalyticsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of TemplateAssociationAnalyticsCollection instances + TemplateAssociationAnalyticsCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response ListTemplateAssociationAnalyticsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListTemplateAssociationAnalyticsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListTemplateAssociationAnalyticsAccessLevelEnum Enum with underlying type: string +type ListTemplateAssociationAnalyticsAccessLevelEnum string + +// Set of constants representing the allowable values for ListTemplateAssociationAnalyticsAccessLevelEnum +const ( + ListTemplateAssociationAnalyticsAccessLevelRestricted ListTemplateAssociationAnalyticsAccessLevelEnum = "RESTRICTED" + ListTemplateAssociationAnalyticsAccessLevelAccessible ListTemplateAssociationAnalyticsAccessLevelEnum = "ACCESSIBLE" +) + +var mappingListTemplateAssociationAnalyticsAccessLevelEnum = map[string]ListTemplateAssociationAnalyticsAccessLevelEnum{ + "RESTRICTED": ListTemplateAssociationAnalyticsAccessLevelRestricted, + "ACCESSIBLE": ListTemplateAssociationAnalyticsAccessLevelAccessible, +} + +var mappingListTemplateAssociationAnalyticsAccessLevelEnumLowerCase = map[string]ListTemplateAssociationAnalyticsAccessLevelEnum{ + "restricted": ListTemplateAssociationAnalyticsAccessLevelRestricted, + "accessible": ListTemplateAssociationAnalyticsAccessLevelAccessible, +} + +// GetListTemplateAssociationAnalyticsAccessLevelEnumValues Enumerates the set of values for ListTemplateAssociationAnalyticsAccessLevelEnum +func GetListTemplateAssociationAnalyticsAccessLevelEnumValues() []ListTemplateAssociationAnalyticsAccessLevelEnum { + values := make([]ListTemplateAssociationAnalyticsAccessLevelEnum, 0) + for _, v := range mappingListTemplateAssociationAnalyticsAccessLevelEnum { + values = append(values, v) + } + return values +} + +// GetListTemplateAssociationAnalyticsAccessLevelEnumStringValues Enumerates the set of values in String for ListTemplateAssociationAnalyticsAccessLevelEnum +func GetListTemplateAssociationAnalyticsAccessLevelEnumStringValues() []string { + return []string{ + "RESTRICTED", + "ACCESSIBLE", + } +} + +// GetMappingListTemplateAssociationAnalyticsAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListTemplateAssociationAnalyticsAccessLevelEnum(val string) (ListTemplateAssociationAnalyticsAccessLevelEnum, bool) { + enum, ok := mappingListTemplateAssociationAnalyticsAccessLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_unified_audit_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_unified_audit_policies_request_response.go new file mode 100644 index 00000000000..cfded687db2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_unified_audit_policies_request_response.go @@ -0,0 +1,356 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListUnifiedAuditPoliciesRequest wrapper for the ListUnifiedAuditPolicies operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListUnifiedAuditPolicies.go.html to see an example of how to use ListUnifiedAuditPoliciesRequest. +type ListUnifiedAuditPoliciesRequest struct { + + // A filter to return only resources that match the specified compartment OCID. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // An optional filter to return only resources that match the specified OCID of the security policy resource. + SecurityPolicyId *string `mandatory:"false" contributesTo:"query" name:"securityPolicyId"` + + // The current state of the Unified Audit policy. + LifecycleState ListUnifiedAuditPoliciesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. + // Setting this to ACCESSIBLE returns only those compartments for which the + // user has INSPECT permissions directly or indirectly (permissions can be on a + // resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. + AccessLevel ListUnifiedAuditPoliciesAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` + + // A filter to return only resources that match the specified display name. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A boolean flag indicating to list seeded unified audit policies. Set this parameter to get list of seeded unified audit policies. + IsSeeded *bool `mandatory:"false" contributesTo:"query" name:"isSeeded"` + + // A filter to return only the resources that were created after the specified date and time, as defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date. + // **Example:** 2016-12-19T16:39:57.600Z + TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"` + + // Search for resources that were created before a specific date. + // Specifying this parameter corresponding `timeCreatedLessThan` + // parameter will retrieve all resources created before the + // specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as + // defined by RFC 3339. + // **Example:** 2016-12-19T16:39:57.600Z + TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"` + + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource. + UnifiedAuditPolicyDefinitionId *string `mandatory:"false" contributesTo:"query" name:"unifiedAuditPolicyDefinitionId"` + + // An optional filter to return only resources that match the specified OCID of the Unified Audit policy resource. + UnifiedAuditPolicyId *string `mandatory:"false" contributesTo:"query" name:"unifiedAuditPolicyId"` + + // The sort order to use, either ascending (ASC) or descending (DESC). + SortOrder ListUnifiedAuditPoliciesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field used for sorting. Only one sorting order (sortOrder) can be specified. + // The default order for TIMECREATED is descending. The default order for DISPLAYNAME is ascending. + // The DISPLAYNAME sort order is case sensitive. + SortBy ListUnifiedAuditPoliciesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Default is false. + // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // 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 ListUnifiedAuditPoliciesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListUnifiedAuditPoliciesRequest) 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 ListUnifiedAuditPoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListUnifiedAuditPoliciesRequest) 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 ListUnifiedAuditPoliciesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListUnifiedAuditPoliciesLifecycleStateEnum(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(GetListUnifiedAuditPoliciesLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListUnifiedAuditPoliciesAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetListUnifiedAuditPoliciesAccessLevelEnumStringValues(), ","))) + } + if _, ok := GetMappingListUnifiedAuditPoliciesSortOrderEnum(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(GetListUnifiedAuditPoliciesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListUnifiedAuditPoliciesSortByEnum(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(GetListUnifiedAuditPoliciesSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListUnifiedAuditPoliciesResponse wrapper for the ListUnifiedAuditPolicies operation +type ListUnifiedAuditPoliciesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of UnifiedAuditPolicyCollection instances + UnifiedAuditPolicyCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response ListUnifiedAuditPoliciesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListUnifiedAuditPoliciesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListUnifiedAuditPoliciesLifecycleStateEnum Enum with underlying type: string +type ListUnifiedAuditPoliciesLifecycleStateEnum string + +// Set of constants representing the allowable values for ListUnifiedAuditPoliciesLifecycleStateEnum +const ( + ListUnifiedAuditPoliciesLifecycleStateCreating ListUnifiedAuditPoliciesLifecycleStateEnum = "CREATING" + ListUnifiedAuditPoliciesLifecycleStateUpdating ListUnifiedAuditPoliciesLifecycleStateEnum = "UPDATING" + ListUnifiedAuditPoliciesLifecycleStateActive ListUnifiedAuditPoliciesLifecycleStateEnum = "ACTIVE" + ListUnifiedAuditPoliciesLifecycleStateInactive ListUnifiedAuditPoliciesLifecycleStateEnum = "INACTIVE" + ListUnifiedAuditPoliciesLifecycleStateFailed ListUnifiedAuditPoliciesLifecycleStateEnum = "FAILED" + ListUnifiedAuditPoliciesLifecycleStateDeleting ListUnifiedAuditPoliciesLifecycleStateEnum = "DELETING" + ListUnifiedAuditPoliciesLifecycleStateNeedsAttention ListUnifiedAuditPoliciesLifecycleStateEnum = "NEEDS_ATTENTION" + ListUnifiedAuditPoliciesLifecycleStateDeleted ListUnifiedAuditPoliciesLifecycleStateEnum = "DELETED" +) + +var mappingListUnifiedAuditPoliciesLifecycleStateEnum = map[string]ListUnifiedAuditPoliciesLifecycleStateEnum{ + "CREATING": ListUnifiedAuditPoliciesLifecycleStateCreating, + "UPDATING": ListUnifiedAuditPoliciesLifecycleStateUpdating, + "ACTIVE": ListUnifiedAuditPoliciesLifecycleStateActive, + "INACTIVE": ListUnifiedAuditPoliciesLifecycleStateInactive, + "FAILED": ListUnifiedAuditPoliciesLifecycleStateFailed, + "DELETING": ListUnifiedAuditPoliciesLifecycleStateDeleting, + "NEEDS_ATTENTION": ListUnifiedAuditPoliciesLifecycleStateNeedsAttention, + "DELETED": ListUnifiedAuditPoliciesLifecycleStateDeleted, +} + +var mappingListUnifiedAuditPoliciesLifecycleStateEnumLowerCase = map[string]ListUnifiedAuditPoliciesLifecycleStateEnum{ + "creating": ListUnifiedAuditPoliciesLifecycleStateCreating, + "updating": ListUnifiedAuditPoliciesLifecycleStateUpdating, + "active": ListUnifiedAuditPoliciesLifecycleStateActive, + "inactive": ListUnifiedAuditPoliciesLifecycleStateInactive, + "failed": ListUnifiedAuditPoliciesLifecycleStateFailed, + "deleting": ListUnifiedAuditPoliciesLifecycleStateDeleting, + "needs_attention": ListUnifiedAuditPoliciesLifecycleStateNeedsAttention, + "deleted": ListUnifiedAuditPoliciesLifecycleStateDeleted, +} + +// GetListUnifiedAuditPoliciesLifecycleStateEnumValues Enumerates the set of values for ListUnifiedAuditPoliciesLifecycleStateEnum +func GetListUnifiedAuditPoliciesLifecycleStateEnumValues() []ListUnifiedAuditPoliciesLifecycleStateEnum { + values := make([]ListUnifiedAuditPoliciesLifecycleStateEnum, 0) + for _, v := range mappingListUnifiedAuditPoliciesLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListUnifiedAuditPoliciesLifecycleStateEnumStringValues Enumerates the set of values in String for ListUnifiedAuditPoliciesLifecycleStateEnum +func GetListUnifiedAuditPoliciesLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "INACTIVE", + "FAILED", + "DELETING", + "NEEDS_ATTENTION", + "DELETED", + } +} + +// GetMappingListUnifiedAuditPoliciesLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListUnifiedAuditPoliciesLifecycleStateEnum(val string) (ListUnifiedAuditPoliciesLifecycleStateEnum, bool) { + enum, ok := mappingListUnifiedAuditPoliciesLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListUnifiedAuditPoliciesAccessLevelEnum Enum with underlying type: string +type ListUnifiedAuditPoliciesAccessLevelEnum string + +// Set of constants representing the allowable values for ListUnifiedAuditPoliciesAccessLevelEnum +const ( + ListUnifiedAuditPoliciesAccessLevelRestricted ListUnifiedAuditPoliciesAccessLevelEnum = "RESTRICTED" + ListUnifiedAuditPoliciesAccessLevelAccessible ListUnifiedAuditPoliciesAccessLevelEnum = "ACCESSIBLE" +) + +var mappingListUnifiedAuditPoliciesAccessLevelEnum = map[string]ListUnifiedAuditPoliciesAccessLevelEnum{ + "RESTRICTED": ListUnifiedAuditPoliciesAccessLevelRestricted, + "ACCESSIBLE": ListUnifiedAuditPoliciesAccessLevelAccessible, +} + +var mappingListUnifiedAuditPoliciesAccessLevelEnumLowerCase = map[string]ListUnifiedAuditPoliciesAccessLevelEnum{ + "restricted": ListUnifiedAuditPoliciesAccessLevelRestricted, + "accessible": ListUnifiedAuditPoliciesAccessLevelAccessible, +} + +// GetListUnifiedAuditPoliciesAccessLevelEnumValues Enumerates the set of values for ListUnifiedAuditPoliciesAccessLevelEnum +func GetListUnifiedAuditPoliciesAccessLevelEnumValues() []ListUnifiedAuditPoliciesAccessLevelEnum { + values := make([]ListUnifiedAuditPoliciesAccessLevelEnum, 0) + for _, v := range mappingListUnifiedAuditPoliciesAccessLevelEnum { + values = append(values, v) + } + return values +} + +// GetListUnifiedAuditPoliciesAccessLevelEnumStringValues Enumerates the set of values in String for ListUnifiedAuditPoliciesAccessLevelEnum +func GetListUnifiedAuditPoliciesAccessLevelEnumStringValues() []string { + return []string{ + "RESTRICTED", + "ACCESSIBLE", + } +} + +// GetMappingListUnifiedAuditPoliciesAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListUnifiedAuditPoliciesAccessLevelEnum(val string) (ListUnifiedAuditPoliciesAccessLevelEnum, bool) { + enum, ok := mappingListUnifiedAuditPoliciesAccessLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListUnifiedAuditPoliciesSortOrderEnum Enum with underlying type: string +type ListUnifiedAuditPoliciesSortOrderEnum string + +// Set of constants representing the allowable values for ListUnifiedAuditPoliciesSortOrderEnum +const ( + ListUnifiedAuditPoliciesSortOrderAsc ListUnifiedAuditPoliciesSortOrderEnum = "ASC" + ListUnifiedAuditPoliciesSortOrderDesc ListUnifiedAuditPoliciesSortOrderEnum = "DESC" +) + +var mappingListUnifiedAuditPoliciesSortOrderEnum = map[string]ListUnifiedAuditPoliciesSortOrderEnum{ + "ASC": ListUnifiedAuditPoliciesSortOrderAsc, + "DESC": ListUnifiedAuditPoliciesSortOrderDesc, +} + +var mappingListUnifiedAuditPoliciesSortOrderEnumLowerCase = map[string]ListUnifiedAuditPoliciesSortOrderEnum{ + "asc": ListUnifiedAuditPoliciesSortOrderAsc, + "desc": ListUnifiedAuditPoliciesSortOrderDesc, +} + +// GetListUnifiedAuditPoliciesSortOrderEnumValues Enumerates the set of values for ListUnifiedAuditPoliciesSortOrderEnum +func GetListUnifiedAuditPoliciesSortOrderEnumValues() []ListUnifiedAuditPoliciesSortOrderEnum { + values := make([]ListUnifiedAuditPoliciesSortOrderEnum, 0) + for _, v := range mappingListUnifiedAuditPoliciesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListUnifiedAuditPoliciesSortOrderEnumStringValues Enumerates the set of values in String for ListUnifiedAuditPoliciesSortOrderEnum +func GetListUnifiedAuditPoliciesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListUnifiedAuditPoliciesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListUnifiedAuditPoliciesSortOrderEnum(val string) (ListUnifiedAuditPoliciesSortOrderEnum, bool) { + enum, ok := mappingListUnifiedAuditPoliciesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListUnifiedAuditPoliciesSortByEnum Enum with underlying type: string +type ListUnifiedAuditPoliciesSortByEnum string + +// Set of constants representing the allowable values for ListUnifiedAuditPoliciesSortByEnum +const ( + ListUnifiedAuditPoliciesSortByTimecreated ListUnifiedAuditPoliciesSortByEnum = "TIMECREATED" + ListUnifiedAuditPoliciesSortByDisplayname ListUnifiedAuditPoliciesSortByEnum = "DISPLAYNAME" +) + +var mappingListUnifiedAuditPoliciesSortByEnum = map[string]ListUnifiedAuditPoliciesSortByEnum{ + "TIMECREATED": ListUnifiedAuditPoliciesSortByTimecreated, + "DISPLAYNAME": ListUnifiedAuditPoliciesSortByDisplayname, +} + +var mappingListUnifiedAuditPoliciesSortByEnumLowerCase = map[string]ListUnifiedAuditPoliciesSortByEnum{ + "timecreated": ListUnifiedAuditPoliciesSortByTimecreated, + "displayname": ListUnifiedAuditPoliciesSortByDisplayname, +} + +// GetListUnifiedAuditPoliciesSortByEnumValues Enumerates the set of values for ListUnifiedAuditPoliciesSortByEnum +func GetListUnifiedAuditPoliciesSortByEnumValues() []ListUnifiedAuditPoliciesSortByEnum { + values := make([]ListUnifiedAuditPoliciesSortByEnum, 0) + for _, v := range mappingListUnifiedAuditPoliciesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListUnifiedAuditPoliciesSortByEnumStringValues Enumerates the set of values in String for ListUnifiedAuditPoliciesSortByEnum +func GetListUnifiedAuditPoliciesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListUnifiedAuditPoliciesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListUnifiedAuditPoliciesSortByEnum(val string) (ListUnifiedAuditPoliciesSortByEnum, bool) { + enum, ok := mappingListUnifiedAuditPoliciesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_unified_audit_policy_definitions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_unified_audit_policy_definitions_request_response.go new file mode 100644 index 00000000000..d9002247e27 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_unified_audit_policy_definitions_request_response.go @@ -0,0 +1,342 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListUnifiedAuditPolicyDefinitionsRequest wrapper for the ListUnifiedAuditPolicyDefinitions operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/ListUnifiedAuditPolicyDefinitions.go.html to see an example of how to use ListUnifiedAuditPolicyDefinitionsRequest. +type ListUnifiedAuditPolicyDefinitionsRequest struct { + + // A filter to return only resources that match the specified compartment OCID. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The current state of the unified audit policy definition. + LifecycleState ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // An optional filter to return only resources that match the specified OCID of the unified audit policy definition resource. + UnifiedAuditPolicyDefinitionId *string `mandatory:"false" contributesTo:"query" name:"unifiedAuditPolicyDefinitionId"` + + // Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. + // Setting this to ACCESSIBLE returns only those compartments for which the + // user has INSPECT permissions directly or indirectly (permissions can be on a + // resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. + AccessLevel ListUnifiedAuditPolicyDefinitionsAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` + + // A filter to return only resources that match the specified display name. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A boolean flag indicating to list seeded unified audit policy definitions. Set this parameter to get list of seeded unified audit policy definitions. + IsSeeded *bool `mandatory:"false" contributesTo:"query" name:"isSeeded"` + + // The category to which the unified audit policy definition belongs to. + UnifiedAuditPolicyCategory UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum `mandatory:"false" contributesTo:"query" name:"unifiedAuditPolicyCategory" omitEmpty:"true"` + + // The name of the unified audit policy. + UnifiedAuditPolicyName *string `mandatory:"false" contributesTo:"query" name:"unifiedAuditPolicyName"` + + // For list pagination. The maximum number of items to return per page in a paginated "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous "List" call. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Default is false. + // When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // The sort order to use, either ascending (ASC) or descending (DESC). + SortOrder ListUnifiedAuditPolicyDefinitionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field used for sorting. Only one sorting order (sortOrder) can be specified. + // The default order for TIMECREATED is descending. The default order for DISPLAYNAME is ascending. + // The DISPLAYNAME sort order is case sensitive. + SortBy ListUnifiedAuditPolicyDefinitionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // 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 ListUnifiedAuditPolicyDefinitionsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListUnifiedAuditPolicyDefinitionsRequest) 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 ListUnifiedAuditPolicyDefinitionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListUnifiedAuditPolicyDefinitionsRequest) 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 ListUnifiedAuditPolicyDefinitionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListUnifiedAuditPolicyDefinitionsLifecycleStateEnum(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(GetListUnifiedAuditPolicyDefinitionsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListUnifiedAuditPolicyDefinitionsAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetListUnifiedAuditPolicyDefinitionsAccessLevelEnumStringValues(), ","))) + } + if _, ok := GetMappingUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum(string(request.UnifiedAuditPolicyCategory)); !ok && request.UnifiedAuditPolicyCategory != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UnifiedAuditPolicyCategory: %s. Supported values are: %s.", request.UnifiedAuditPolicyCategory, strings.Join(GetUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnumStringValues(), ","))) + } + if _, ok := GetMappingListUnifiedAuditPolicyDefinitionsSortOrderEnum(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(GetListUnifiedAuditPolicyDefinitionsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListUnifiedAuditPolicyDefinitionsSortByEnum(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(GetListUnifiedAuditPolicyDefinitionsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListUnifiedAuditPolicyDefinitionsResponse wrapper for the ListUnifiedAuditPolicyDefinitions operation +type ListUnifiedAuditPolicyDefinitionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of UnifiedAuditPolicyDefinitionCollection instances + UnifiedAuditPolicyDefinitionCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages of results remain. Include opc-next-page value as the page parameter for the subsequent GET request to get the next batch of items. For details about how pagination works, see List Pagination (https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the previous batch of items. + OpcPrevPage *string `presentIn:"header" name:"opc-prev-page"` +} + +func (response ListUnifiedAuditPolicyDefinitionsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListUnifiedAuditPolicyDefinitionsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum Enum with underlying type: string +type ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum +const ( + ListUnifiedAuditPolicyDefinitionsLifecycleStateCreating ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum = "CREATING" + ListUnifiedAuditPolicyDefinitionsLifecycleStateUpdating ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum = "UPDATING" + ListUnifiedAuditPolicyDefinitionsLifecycleStateActive ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum = "ACTIVE" + ListUnifiedAuditPolicyDefinitionsLifecycleStateInactive ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum = "INACTIVE" + ListUnifiedAuditPolicyDefinitionsLifecycleStateFailed ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum = "FAILED" + ListUnifiedAuditPolicyDefinitionsLifecycleStateDeleting ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum = "DELETING" + ListUnifiedAuditPolicyDefinitionsLifecycleStateNeedsAttention ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum = "NEEDS_ATTENTION" +) + +var mappingListUnifiedAuditPolicyDefinitionsLifecycleStateEnum = map[string]ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum{ + "CREATING": ListUnifiedAuditPolicyDefinitionsLifecycleStateCreating, + "UPDATING": ListUnifiedAuditPolicyDefinitionsLifecycleStateUpdating, + "ACTIVE": ListUnifiedAuditPolicyDefinitionsLifecycleStateActive, + "INACTIVE": ListUnifiedAuditPolicyDefinitionsLifecycleStateInactive, + "FAILED": ListUnifiedAuditPolicyDefinitionsLifecycleStateFailed, + "DELETING": ListUnifiedAuditPolicyDefinitionsLifecycleStateDeleting, + "NEEDS_ATTENTION": ListUnifiedAuditPolicyDefinitionsLifecycleStateNeedsAttention, +} + +var mappingListUnifiedAuditPolicyDefinitionsLifecycleStateEnumLowerCase = map[string]ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum{ + "creating": ListUnifiedAuditPolicyDefinitionsLifecycleStateCreating, + "updating": ListUnifiedAuditPolicyDefinitionsLifecycleStateUpdating, + "active": ListUnifiedAuditPolicyDefinitionsLifecycleStateActive, + "inactive": ListUnifiedAuditPolicyDefinitionsLifecycleStateInactive, + "failed": ListUnifiedAuditPolicyDefinitionsLifecycleStateFailed, + "deleting": ListUnifiedAuditPolicyDefinitionsLifecycleStateDeleting, + "needs_attention": ListUnifiedAuditPolicyDefinitionsLifecycleStateNeedsAttention, +} + +// GetListUnifiedAuditPolicyDefinitionsLifecycleStateEnumValues Enumerates the set of values for ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum +func GetListUnifiedAuditPolicyDefinitionsLifecycleStateEnumValues() []ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum { + values := make([]ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum, 0) + for _, v := range mappingListUnifiedAuditPolicyDefinitionsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListUnifiedAuditPolicyDefinitionsLifecycleStateEnumStringValues Enumerates the set of values in String for ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum +func GetListUnifiedAuditPolicyDefinitionsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "INACTIVE", + "FAILED", + "DELETING", + "NEEDS_ATTENTION", + } +} + +// GetMappingListUnifiedAuditPolicyDefinitionsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListUnifiedAuditPolicyDefinitionsLifecycleStateEnum(val string) (ListUnifiedAuditPolicyDefinitionsLifecycleStateEnum, bool) { + enum, ok := mappingListUnifiedAuditPolicyDefinitionsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListUnifiedAuditPolicyDefinitionsAccessLevelEnum Enum with underlying type: string +type ListUnifiedAuditPolicyDefinitionsAccessLevelEnum string + +// Set of constants representing the allowable values for ListUnifiedAuditPolicyDefinitionsAccessLevelEnum +const ( + ListUnifiedAuditPolicyDefinitionsAccessLevelRestricted ListUnifiedAuditPolicyDefinitionsAccessLevelEnum = "RESTRICTED" + ListUnifiedAuditPolicyDefinitionsAccessLevelAccessible ListUnifiedAuditPolicyDefinitionsAccessLevelEnum = "ACCESSIBLE" +) + +var mappingListUnifiedAuditPolicyDefinitionsAccessLevelEnum = map[string]ListUnifiedAuditPolicyDefinitionsAccessLevelEnum{ + "RESTRICTED": ListUnifiedAuditPolicyDefinitionsAccessLevelRestricted, + "ACCESSIBLE": ListUnifiedAuditPolicyDefinitionsAccessLevelAccessible, +} + +var mappingListUnifiedAuditPolicyDefinitionsAccessLevelEnumLowerCase = map[string]ListUnifiedAuditPolicyDefinitionsAccessLevelEnum{ + "restricted": ListUnifiedAuditPolicyDefinitionsAccessLevelRestricted, + "accessible": ListUnifiedAuditPolicyDefinitionsAccessLevelAccessible, +} + +// GetListUnifiedAuditPolicyDefinitionsAccessLevelEnumValues Enumerates the set of values for ListUnifiedAuditPolicyDefinitionsAccessLevelEnum +func GetListUnifiedAuditPolicyDefinitionsAccessLevelEnumValues() []ListUnifiedAuditPolicyDefinitionsAccessLevelEnum { + values := make([]ListUnifiedAuditPolicyDefinitionsAccessLevelEnum, 0) + for _, v := range mappingListUnifiedAuditPolicyDefinitionsAccessLevelEnum { + values = append(values, v) + } + return values +} + +// GetListUnifiedAuditPolicyDefinitionsAccessLevelEnumStringValues Enumerates the set of values in String for ListUnifiedAuditPolicyDefinitionsAccessLevelEnum +func GetListUnifiedAuditPolicyDefinitionsAccessLevelEnumStringValues() []string { + return []string{ + "RESTRICTED", + "ACCESSIBLE", + } +} + +// GetMappingListUnifiedAuditPolicyDefinitionsAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListUnifiedAuditPolicyDefinitionsAccessLevelEnum(val string) (ListUnifiedAuditPolicyDefinitionsAccessLevelEnum, bool) { + enum, ok := mappingListUnifiedAuditPolicyDefinitionsAccessLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListUnifiedAuditPolicyDefinitionsSortOrderEnum Enum with underlying type: string +type ListUnifiedAuditPolicyDefinitionsSortOrderEnum string + +// Set of constants representing the allowable values for ListUnifiedAuditPolicyDefinitionsSortOrderEnum +const ( + ListUnifiedAuditPolicyDefinitionsSortOrderAsc ListUnifiedAuditPolicyDefinitionsSortOrderEnum = "ASC" + ListUnifiedAuditPolicyDefinitionsSortOrderDesc ListUnifiedAuditPolicyDefinitionsSortOrderEnum = "DESC" +) + +var mappingListUnifiedAuditPolicyDefinitionsSortOrderEnum = map[string]ListUnifiedAuditPolicyDefinitionsSortOrderEnum{ + "ASC": ListUnifiedAuditPolicyDefinitionsSortOrderAsc, + "DESC": ListUnifiedAuditPolicyDefinitionsSortOrderDesc, +} + +var mappingListUnifiedAuditPolicyDefinitionsSortOrderEnumLowerCase = map[string]ListUnifiedAuditPolicyDefinitionsSortOrderEnum{ + "asc": ListUnifiedAuditPolicyDefinitionsSortOrderAsc, + "desc": ListUnifiedAuditPolicyDefinitionsSortOrderDesc, +} + +// GetListUnifiedAuditPolicyDefinitionsSortOrderEnumValues Enumerates the set of values for ListUnifiedAuditPolicyDefinitionsSortOrderEnum +func GetListUnifiedAuditPolicyDefinitionsSortOrderEnumValues() []ListUnifiedAuditPolicyDefinitionsSortOrderEnum { + values := make([]ListUnifiedAuditPolicyDefinitionsSortOrderEnum, 0) + for _, v := range mappingListUnifiedAuditPolicyDefinitionsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListUnifiedAuditPolicyDefinitionsSortOrderEnumStringValues Enumerates the set of values in String for ListUnifiedAuditPolicyDefinitionsSortOrderEnum +func GetListUnifiedAuditPolicyDefinitionsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListUnifiedAuditPolicyDefinitionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListUnifiedAuditPolicyDefinitionsSortOrderEnum(val string) (ListUnifiedAuditPolicyDefinitionsSortOrderEnum, bool) { + enum, ok := mappingListUnifiedAuditPolicyDefinitionsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListUnifiedAuditPolicyDefinitionsSortByEnum Enum with underlying type: string +type ListUnifiedAuditPolicyDefinitionsSortByEnum string + +// Set of constants representing the allowable values for ListUnifiedAuditPolicyDefinitionsSortByEnum +const ( + ListUnifiedAuditPolicyDefinitionsSortByTimecreated ListUnifiedAuditPolicyDefinitionsSortByEnum = "TIMECREATED" + ListUnifiedAuditPolicyDefinitionsSortByDisplayname ListUnifiedAuditPolicyDefinitionsSortByEnum = "DISPLAYNAME" +) + +var mappingListUnifiedAuditPolicyDefinitionsSortByEnum = map[string]ListUnifiedAuditPolicyDefinitionsSortByEnum{ + "TIMECREATED": ListUnifiedAuditPolicyDefinitionsSortByTimecreated, + "DISPLAYNAME": ListUnifiedAuditPolicyDefinitionsSortByDisplayname, +} + +var mappingListUnifiedAuditPolicyDefinitionsSortByEnumLowerCase = map[string]ListUnifiedAuditPolicyDefinitionsSortByEnum{ + "timecreated": ListUnifiedAuditPolicyDefinitionsSortByTimecreated, + "displayname": ListUnifiedAuditPolicyDefinitionsSortByDisplayname, +} + +// GetListUnifiedAuditPolicyDefinitionsSortByEnumValues Enumerates the set of values for ListUnifiedAuditPolicyDefinitionsSortByEnum +func GetListUnifiedAuditPolicyDefinitionsSortByEnumValues() []ListUnifiedAuditPolicyDefinitionsSortByEnum { + values := make([]ListUnifiedAuditPolicyDefinitionsSortByEnum, 0) + for _, v := range mappingListUnifiedAuditPolicyDefinitionsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListUnifiedAuditPolicyDefinitionsSortByEnumStringValues Enumerates the set of values in String for ListUnifiedAuditPolicyDefinitionsSortByEnum +func GetListUnifiedAuditPolicyDefinitionsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListUnifiedAuditPolicyDefinitionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListUnifiedAuditPolicyDefinitionsSortByEnum(val string) (ListUnifiedAuditPolicyDefinitionsSortByEnum, bool) { + enum, ok := mappingListUnifiedAuditPolicyDefinitionsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_user_assessments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_user_assessments_request_response.go index 90d9a6236d1..636d17072b7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_user_assessments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/list_user_assessments_request_response.go @@ -83,6 +83,12 @@ type ListUserAssessmentsRequest struct { // Unique identifier for the request. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // A filter to return only only target database resources or target database group resources. + TargetType ListUserAssessmentsTargetTypeEnum `mandatory:"false" contributesTo:"query" name:"targetType" omitEmpty:"true"` + + // A filter to return the target database group that matches the specified OCID. + TargetDatabaseGroupId *string `mandatory:"false" contributesTo:"query" name:"targetDatabaseGroupId"` + // 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 @@ -137,6 +143,9 @@ func (request ListUserAssessmentsRequest) ValidateEnumValue() (bool, error) { if _, ok := GetMappingListUserAssessmentsSortByEnum(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(GetListUserAssessmentsSortByEnumStringValues(), ","))) } + if _, ok := GetMappingListUserAssessmentsTargetTypeEnum(string(request.TargetType)); !ok && request.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", request.TargetType, strings.Join(GetListUserAssessmentsTargetTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -448,3 +457,45 @@ func GetMappingListUserAssessmentsSortByEnum(val string) (ListUserAssessmentsSor enum, ok := mappingListUserAssessmentsSortByEnumLowerCase[strings.ToLower(val)] return enum, ok } + +// ListUserAssessmentsTargetTypeEnum Enum with underlying type: string +type ListUserAssessmentsTargetTypeEnum string + +// Set of constants representing the allowable values for ListUserAssessmentsTargetTypeEnum +const ( + ListUserAssessmentsTargetTypeDatabase ListUserAssessmentsTargetTypeEnum = "TARGET_DATABASE" + ListUserAssessmentsTargetTypeDatabaseGroup ListUserAssessmentsTargetTypeEnum = "TARGET_DATABASE_GROUP" +) + +var mappingListUserAssessmentsTargetTypeEnum = map[string]ListUserAssessmentsTargetTypeEnum{ + "TARGET_DATABASE": ListUserAssessmentsTargetTypeDatabase, + "TARGET_DATABASE_GROUP": ListUserAssessmentsTargetTypeDatabaseGroup, +} + +var mappingListUserAssessmentsTargetTypeEnumLowerCase = map[string]ListUserAssessmentsTargetTypeEnum{ + "target_database": ListUserAssessmentsTargetTypeDatabase, + "target_database_group": ListUserAssessmentsTargetTypeDatabaseGroup, +} + +// GetListUserAssessmentsTargetTypeEnumValues Enumerates the set of values for ListUserAssessmentsTargetTypeEnum +func GetListUserAssessmentsTargetTypeEnumValues() []ListUserAssessmentsTargetTypeEnum { + values := make([]ListUserAssessmentsTargetTypeEnum, 0) + for _, v := range mappingListUserAssessmentsTargetTypeEnum { + values = append(values, v) + } + return values +} + +// GetListUserAssessmentsTargetTypeEnumStringValues Enumerates the set of values in String for ListUserAssessmentsTargetTypeEnum +func GetListUserAssessmentsTargetTypeEnumStringValues() []string { + return []string{ + "TARGET_DATABASE", + "TARGET_DATABASE_GROUP", + } +} + +// GetMappingListUserAssessmentsTargetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListUserAssessmentsTargetTypeEnum(val string) (ListUserAssessmentsTargetTypeEnum, bool) { + enum, ok := mappingListUserAssessmentsTargetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/masking_analytics_dimensions.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/masking_analytics_dimensions.go index 7c7e0389b4d..dfec009b807 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/masking_analytics_dimensions.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/masking_analytics_dimensions.go @@ -23,6 +23,9 @@ type MaskingAnalyticsDimensions struct { // The OCID of the masking policy. PolicyId *string `mandatory:"false" json:"policyId"` + + // The OCID of the sensitive type masked. + SensitiveTypeId *string `mandatory:"false" json:"sensitiveTypeId"` } func (m MaskingAnalyticsDimensions) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/masking_analytics_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/masking_analytics_summary.go index 3548c758e42..5adef3cb312 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/masking_analytics_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/masking_analytics_summary.go @@ -25,6 +25,9 @@ type MaskingAnalyticsSummary struct { Count *int64 `mandatory:"true" json:"count"` Dimensions *MaskingAnalyticsDimensions `mandatory:"false" json:"dimensions"` + + // The date and time the target database was last masked using a masking policy, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeLastMasked *common.SDKTime `mandatory:"false" json:"timeLastMasked"` } func (m MaskingAnalyticsSummary) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/masking_policy_health_report_log_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/masking_policy_health_report_log_summary.go index ec544ec9e5b..5355df59e65 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/masking_policy_health_report_log_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/masking_policy_health_report_log_summary.go @@ -46,6 +46,7 @@ type MaskingPolicyHealthReportLogSummary struct { // ACTIVE_MASK_JOB_CHECK checks if there is any active masking job running on the target database. // DETERMINISTIC_ENCRYPTION_FORMAT_CHECK checks if any masking column has deterministic encryption masking format. // COLUMN_EXIST_CHECK checks if the masking columns are available in the target database. + // TIME_TRAVEL_CHECK checks if the masking tables have Time Travel enabled. HealthCheckType MaskingPolicyHealthReportLogSummaryHealthCheckTypeEnum `mandatory:"false" json:"healthCheckType,omitempty"` } @@ -137,6 +138,7 @@ const ( MaskingPolicyHealthReportLogSummaryHealthCheckTypeTargetValidationCheck MaskingPolicyHealthReportLogSummaryHealthCheckTypeEnum = "TARGET_VALIDATION_CHECK" MaskingPolicyHealthReportLogSummaryHealthCheckTypeDeterministicEncryptionFormatCheck MaskingPolicyHealthReportLogSummaryHealthCheckTypeEnum = "DETERMINISTIC_ENCRYPTION_FORMAT_CHECK" MaskingPolicyHealthReportLogSummaryHealthCheckTypeColumnExistCheck MaskingPolicyHealthReportLogSummaryHealthCheckTypeEnum = "COLUMN_EXIST_CHECK" + MaskingPolicyHealthReportLogSummaryHealthCheckTypeTimeTravelCheck MaskingPolicyHealthReportLogSummaryHealthCheckTypeEnum = "TIME_TRAVEL_CHECK" ) var mappingMaskingPolicyHealthReportLogSummaryHealthCheckTypeEnum = map[string]MaskingPolicyHealthReportLogSummaryHealthCheckTypeEnum{ @@ -155,6 +157,7 @@ var mappingMaskingPolicyHealthReportLogSummaryHealthCheckTypeEnum = map[string]M "TARGET_VALIDATION_CHECK": MaskingPolicyHealthReportLogSummaryHealthCheckTypeTargetValidationCheck, "DETERMINISTIC_ENCRYPTION_FORMAT_CHECK": MaskingPolicyHealthReportLogSummaryHealthCheckTypeDeterministicEncryptionFormatCheck, "COLUMN_EXIST_CHECK": MaskingPolicyHealthReportLogSummaryHealthCheckTypeColumnExistCheck, + "TIME_TRAVEL_CHECK": MaskingPolicyHealthReportLogSummaryHealthCheckTypeTimeTravelCheck, } var mappingMaskingPolicyHealthReportLogSummaryHealthCheckTypeEnumLowerCase = map[string]MaskingPolicyHealthReportLogSummaryHealthCheckTypeEnum{ @@ -173,6 +176,7 @@ var mappingMaskingPolicyHealthReportLogSummaryHealthCheckTypeEnumLowerCase = map "target_validation_check": MaskingPolicyHealthReportLogSummaryHealthCheckTypeTargetValidationCheck, "deterministic_encryption_format_check": MaskingPolicyHealthReportLogSummaryHealthCheckTypeDeterministicEncryptionFormatCheck, "column_exist_check": MaskingPolicyHealthReportLogSummaryHealthCheckTypeColumnExistCheck, + "time_travel_check": MaskingPolicyHealthReportLogSummaryHealthCheckTypeTimeTravelCheck, } // GetMaskingPolicyHealthReportLogSummaryHealthCheckTypeEnumValues Enumerates the set of values for MaskingPolicyHealthReportLogSummaryHealthCheckTypeEnum @@ -202,6 +206,7 @@ func GetMaskingPolicyHealthReportLogSummaryHealthCheckTypeEnumStringValues() []s "TARGET_VALIDATION_CHECK", "DETERMINISTIC_ENCRYPTION_FORMAT_CHECK", "COLUMN_EXIST_CHECK", + "TIME_TRAVEL_CHECK", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/matching_criteria.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/matching_criteria.go new file mode 100644 index 00000000000..174b500b20d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/matching_criteria.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MatchingCriteria Criteria to either include or exclude target databases from the target database group. These criteria can be based on compartments or tags or a list of target databases. See examples below for more details. +// Include: Target databases will be added to the target database group if they match at least one of the include criteria. +// Exclude: Target databases that will be excluded from the target database group (even if they match any of the include criteria). +type MatchingCriteria struct { + Include *Include `mandatory:"true" json:"include"` + + Exclude *Exclude `mandatory:"false" json:"exclude"` +} + +func (m MatchingCriteria) 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 MatchingCriteria) 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/datasafe/on_prem_connector.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/on_prem_connector.go index 65735ac69ca..3870838ef0e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/on_prem_connector.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/on_prem_connector.go @@ -31,7 +31,7 @@ type OnPremConnector struct { TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The current state of the on-premises connector. - LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + LifecycleState OnPremConnectorLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The description of the on-premises connector. Description *string `mandatory:"false" json:"description"` @@ -67,8 +67,8 @@ func (m OnPremConnector) String() string { // Not recommended for calling this function directly func (m OnPremConnector) ValidateEnumValue() (bool, error) { errMessage := []string{} - if _, ok := GetMappingLifecycleStateEnum(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(GetLifecycleStateEnumStringValues(), ","))) + if _, ok := GetMappingOnPremConnectorLifecycleStateEnum(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(GetOnPremConnectorLifecycleStateEnumStringValues(), ","))) } if len(errMessage) > 0 { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/on_prem_connector_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/on_prem_connector_summary.go index 70601d81273..b50fc35e7b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/on_prem_connector_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/on_prem_connector_summary.go @@ -31,7 +31,7 @@ type OnPremConnectorSummary struct { TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The current state of the on-premises connector. - LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + LifecycleState OnPremConnectorLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The description of the on-premises connector. Description *string `mandatory:"false" json:"description"` @@ -64,8 +64,8 @@ func (m OnPremConnectorSummary) String() string { // Not recommended for calling this function directly func (m OnPremConnectorSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} - if _, ok := GetMappingLifecycleStateEnum(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(GetLifecycleStateEnumStringValues(), ","))) + if _, ok := GetMappingOnPremConnectorLifecycleStateEnum(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(GetOnPremConnectorLifecycleStateEnumStringValues(), ","))) } if len(errMessage) > 0 { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/patch_checks_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/patch_checks_details.go new file mode 100644 index 00000000000..80633291d15 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/patch_checks_details.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PatchChecksDetails Details to patch checks in a security assessment of type template. +type PatchChecksDetails struct { + + // An array of patch instructions. + Items []PatchInstruction `mandatory:"false" json:"items"` +} + +func (m PatchChecksDetails) 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 PatchChecksDetails) 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 *PatchChecksDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + Items []patchinstruction `json:"items"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Items = make([]PatchInstruction, len(model.Items)) + for i, n := range model.Items { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Items[i] = nn.(PatchInstruction) + } else { + m.Items[i] = nil + } + } + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/patch_checks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/patch_checks_request_response.go new file mode 100644 index 00000000000..e022f982ef5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/patch_checks_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// PatchChecksRequest wrapper for the PatchChecks operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/PatchChecks.go.html to see an example of how to use PatchChecksRequest. +type PatchChecksRequest struct { + + // The OCID of the security assessment. + SecurityAssessmentId *string `mandatory:"true" contributesTo:"path" name:"securityAssessmentId"` + + // Details to patch checks. + PatchChecksDetails `contributesTo:"body"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the if-match parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request PatchChecksRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request PatchChecksRequest) 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 PatchChecksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request PatchChecksRequest) 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 PatchChecksRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PatchChecksResponse wrapper for the PatchChecks operation +type PatchChecksResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response PatchChecksResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response PatchChecksResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/patch_findings_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/patch_findings_details.go new file mode 100644 index 00000000000..04640a5695a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/patch_findings_details.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PatchFindingsDetails Details to patch findings in a security assessment of type template baseline. +type PatchFindingsDetails struct { + + // An array of patch instructions. + Items []PatchInstruction `mandatory:"false" json:"items"` +} + +func (m PatchFindingsDetails) 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 PatchFindingsDetails) 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 *PatchFindingsDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + Items []patchinstruction `json:"items"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Items = make([]PatchInstruction, len(model.Items)) + for i, n := range model.Items { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Items[i] = nn.(PatchInstruction) + } else { + m.Items[i] = nil + } + } + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/patch_findings_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/patch_findings_request_response.go new file mode 100644 index 00000000000..8dd87bb412f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/patch_findings_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// PatchFindingsRequest wrapper for the PatchFindings operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/PatchFindings.go.html to see an example of how to use PatchFindingsRequest. +type PatchFindingsRequest struct { + + // The OCID of the security assessment. + SecurityAssessmentId *string `mandatory:"true" contributesTo:"path" name:"securityAssessmentId"` + + // Details to patch findings. + PatchFindingsDetails `contributesTo:"body"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the if-match parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request PatchFindingsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request PatchFindingsRequest) 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 PatchFindingsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request PatchFindingsRequest) 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 PatchFindingsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PatchFindingsResponse wrapper for the PatchFindings operation +type PatchFindingsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response PatchFindingsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response PatchFindingsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/policy_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/policy_condition.go new file mode 100644 index 00000000000..f087a67a7d1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/policy_condition.go @@ -0,0 +1,253 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PolicyCondition The audit policy provisioning conditions. +type PolicyCondition interface { + + // Specifies whether to include or exclude the specified users or roles. + GetEntitySelection() PolicyConditionEntitySelectionEnum + + // The operation status that the policy must be enabled for. + GetOperationStatus() PolicyConditionOperationStatusEnum +} + +type policycondition struct { + JsonData []byte + EntitySelection PolicyConditionEntitySelectionEnum `mandatory:"true" json:"entitySelection"` + OperationStatus PolicyConditionOperationStatusEnum `mandatory:"true" json:"operationStatus"` + EntityType string `json:"entityType"` +} + +// UnmarshalJSON unmarshals json +func (m *policycondition) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerpolicycondition policycondition + s := struct { + Model Unmarshalerpolicycondition + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.EntitySelection = s.Model.EntitySelection + m.OperationStatus = s.Model.OperationStatus + m.EntityType = s.Model.EntityType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *policycondition) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.EntityType { + case "ATTRIBUTE_SET": + mm := AttributeSetCondition{} + err = json.Unmarshal(data, &mm) + return mm, err + case "USER": + mm := UserCondition{} + err = json.Unmarshal(data, &mm) + return mm, err + case "ROLE": + mm := RoleCondition{} + err = json.Unmarshal(data, &mm) + return mm, err + case "ALL_USERS": + mm := AllUserCondition{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for PolicyCondition: %s.", m.EntityType) + return *m, nil + } +} + +// GetEntitySelection returns EntitySelection +func (m policycondition) GetEntitySelection() PolicyConditionEntitySelectionEnum { + return m.EntitySelection +} + +// GetOperationStatus returns OperationStatus +func (m policycondition) GetOperationStatus() PolicyConditionOperationStatusEnum { + return m.OperationStatus +} + +func (m policycondition) 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 policycondition) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingPolicyConditionEntitySelectionEnum(string(m.EntitySelection)); !ok && m.EntitySelection != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EntitySelection: %s. Supported values are: %s.", m.EntitySelection, strings.Join(GetPolicyConditionEntitySelectionEnumStringValues(), ","))) + } + if _, ok := GetMappingPolicyConditionOperationStatusEnum(string(m.OperationStatus)); !ok && m.OperationStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationStatus: %s. Supported values are: %s.", m.OperationStatus, strings.Join(GetPolicyConditionOperationStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PolicyConditionEntitySelectionEnum Enum with underlying type: string +type PolicyConditionEntitySelectionEnum string + +// Set of constants representing the allowable values for PolicyConditionEntitySelectionEnum +const ( + PolicyConditionEntitySelectionInclude PolicyConditionEntitySelectionEnum = "INCLUDE" + PolicyConditionEntitySelectionExclude PolicyConditionEntitySelectionEnum = "EXCLUDE" +) + +var mappingPolicyConditionEntitySelectionEnum = map[string]PolicyConditionEntitySelectionEnum{ + "INCLUDE": PolicyConditionEntitySelectionInclude, + "EXCLUDE": PolicyConditionEntitySelectionExclude, +} + +var mappingPolicyConditionEntitySelectionEnumLowerCase = map[string]PolicyConditionEntitySelectionEnum{ + "include": PolicyConditionEntitySelectionInclude, + "exclude": PolicyConditionEntitySelectionExclude, +} + +// GetPolicyConditionEntitySelectionEnumValues Enumerates the set of values for PolicyConditionEntitySelectionEnum +func GetPolicyConditionEntitySelectionEnumValues() []PolicyConditionEntitySelectionEnum { + values := make([]PolicyConditionEntitySelectionEnum, 0) + for _, v := range mappingPolicyConditionEntitySelectionEnum { + values = append(values, v) + } + return values +} + +// GetPolicyConditionEntitySelectionEnumStringValues Enumerates the set of values in String for PolicyConditionEntitySelectionEnum +func GetPolicyConditionEntitySelectionEnumStringValues() []string { + return []string{ + "INCLUDE", + "EXCLUDE", + } +} + +// GetMappingPolicyConditionEntitySelectionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPolicyConditionEntitySelectionEnum(val string) (PolicyConditionEntitySelectionEnum, bool) { + enum, ok := mappingPolicyConditionEntitySelectionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// PolicyConditionOperationStatusEnum Enum with underlying type: string +type PolicyConditionOperationStatusEnum string + +// Set of constants representing the allowable values for PolicyConditionOperationStatusEnum +const ( + PolicyConditionOperationStatusSuccess PolicyConditionOperationStatusEnum = "SUCCESS" + PolicyConditionOperationStatusFailure PolicyConditionOperationStatusEnum = "FAILURE" + PolicyConditionOperationStatusBoth PolicyConditionOperationStatusEnum = "BOTH" +) + +var mappingPolicyConditionOperationStatusEnum = map[string]PolicyConditionOperationStatusEnum{ + "SUCCESS": PolicyConditionOperationStatusSuccess, + "FAILURE": PolicyConditionOperationStatusFailure, + "BOTH": PolicyConditionOperationStatusBoth, +} + +var mappingPolicyConditionOperationStatusEnumLowerCase = map[string]PolicyConditionOperationStatusEnum{ + "success": PolicyConditionOperationStatusSuccess, + "failure": PolicyConditionOperationStatusFailure, + "both": PolicyConditionOperationStatusBoth, +} + +// GetPolicyConditionOperationStatusEnumValues Enumerates the set of values for PolicyConditionOperationStatusEnum +func GetPolicyConditionOperationStatusEnumValues() []PolicyConditionOperationStatusEnum { + values := make([]PolicyConditionOperationStatusEnum, 0) + for _, v := range mappingPolicyConditionOperationStatusEnum { + values = append(values, v) + } + return values +} + +// GetPolicyConditionOperationStatusEnumStringValues Enumerates the set of values in String for PolicyConditionOperationStatusEnum +func GetPolicyConditionOperationStatusEnumStringValues() []string { + return []string{ + "SUCCESS", + "FAILURE", + "BOTH", + } +} + +// GetMappingPolicyConditionOperationStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPolicyConditionOperationStatusEnum(val string) (PolicyConditionOperationStatusEnum, bool) { + enum, ok := mappingPolicyConditionOperationStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// PolicyConditionEntityTypeEnum Enum with underlying type: string +type PolicyConditionEntityTypeEnum string + +// Set of constants representing the allowable values for PolicyConditionEntityTypeEnum +const ( + PolicyConditionEntityTypeUser PolicyConditionEntityTypeEnum = "USER" + PolicyConditionEntityTypeRole PolicyConditionEntityTypeEnum = "ROLE" + PolicyConditionEntityTypeAllUsers PolicyConditionEntityTypeEnum = "ALL_USERS" + PolicyConditionEntityTypeAttributeSet PolicyConditionEntityTypeEnum = "ATTRIBUTE_SET" +) + +var mappingPolicyConditionEntityTypeEnum = map[string]PolicyConditionEntityTypeEnum{ + "USER": PolicyConditionEntityTypeUser, + "ROLE": PolicyConditionEntityTypeRole, + "ALL_USERS": PolicyConditionEntityTypeAllUsers, + "ATTRIBUTE_SET": PolicyConditionEntityTypeAttributeSet, +} + +var mappingPolicyConditionEntityTypeEnumLowerCase = map[string]PolicyConditionEntityTypeEnum{ + "user": PolicyConditionEntityTypeUser, + "role": PolicyConditionEntityTypeRole, + "all_users": PolicyConditionEntityTypeAllUsers, + "attribute_set": PolicyConditionEntityTypeAttributeSet, +} + +// GetPolicyConditionEntityTypeEnumValues Enumerates the set of values for PolicyConditionEntityTypeEnum +func GetPolicyConditionEntityTypeEnumValues() []PolicyConditionEntityTypeEnum { + values := make([]PolicyConditionEntityTypeEnum, 0) + for _, v := range mappingPolicyConditionEntityTypeEnum { + values = append(values, v) + } + return values +} + +// GetPolicyConditionEntityTypeEnumStringValues Enumerates the set of values in String for PolicyConditionEntityTypeEnum +func GetPolicyConditionEntityTypeEnumStringValues() []string { + return []string{ + "USER", + "ROLE", + "ALL_USERS", + "ATTRIBUTE_SET", + } +} + +// GetMappingPolicyConditionEntityTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPolicyConditionEntityTypeEnum(val string) (PolicyConditionEntityTypeEnum, bool) { + enum, ok := mappingPolicyConditionEntityTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/references.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/references.go index ca3742ea989..96187cf703b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/references.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/references.go @@ -15,7 +15,7 @@ import ( "strings" ) -// References References to the sections of STIG, CIS, GDPR and/or OBP relevant to the current finding. +// References References to the sections of STIG, CIS, GDPR and/or ORP relevant to the current finding. type References struct { // Relevant section from STIG. @@ -29,6 +29,9 @@ type References struct { // Relevant section from OBP. Obp *string `mandatory:"false" json:"obp"` + + // Relevant section from ORP. + Orp *string `mandatory:"false" json:"orp"` } func (m References) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/refresh_security_policy_deployment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/refresh_security_policy_deployment_request_response.go new file mode 100644 index 00000000000..495259305a8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/refresh_security_policy_deployment_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// RefreshSecurityPolicyDeploymentRequest wrapper for the RefreshSecurityPolicyDeployment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/RefreshSecurityPolicyDeployment.go.html to see an example of how to use RefreshSecurityPolicyDeploymentRequest. +type RefreshSecurityPolicyDeploymentRequest struct { + + // The OCID of the security policy deployment resource. + SecurityPolicyDeploymentId *string `mandatory:"true" contributesTo:"path" name:"securityPolicyDeploymentId"` + + // 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"` + + // 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 RefreshSecurityPolicyDeploymentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RefreshSecurityPolicyDeploymentRequest) 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 RefreshSecurityPolicyDeploymentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RefreshSecurityPolicyDeploymentRequest) 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 RefreshSecurityPolicyDeploymentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RefreshSecurityPolicyDeploymentResponse wrapper for the RefreshSecurityPolicyDeployment operation +type RefreshSecurityPolicyDeploymentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response RefreshSecurityPolicyDeploymentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RefreshSecurityPolicyDeploymentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/remove_security_assessment_template_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/remove_security_assessment_template_request_response.go new file mode 100644 index 00000000000..cc7e27c171e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/remove_security_assessment_template_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// RemoveSecurityAssessmentTemplateRequest wrapper for the RemoveSecurityAssessmentTemplate operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/RemoveSecurityAssessmentTemplate.go.html to see an example of how to use RemoveSecurityAssessmentTemplateRequest. +type RemoveSecurityAssessmentTemplateRequest struct { + + // The OCID of the security assessment. + SecurityAssessmentId *string `mandatory:"true" contributesTo:"path" name:"securityAssessmentId"` + + // 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 might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request RemoveSecurityAssessmentTemplateRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RemoveSecurityAssessmentTemplateRequest) 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 RemoveSecurityAssessmentTemplateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RemoveSecurityAssessmentTemplateRequest) 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 RemoveSecurityAssessmentTemplateRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RemoveSecurityAssessmentTemplateResponse wrapper for the RemoveSecurityAssessmentTemplate operation +type RemoveSecurityAssessmentTemplateResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response RemoveSecurityAssessmentTemplateResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RemoveSecurityAssessmentTemplateResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/report.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/report.go index 7d5ff486608..34329015931 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/report.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/report.go @@ -42,9 +42,18 @@ type Report struct { // Specifies the format of report to be .xls or .pdf or .json MimeType ReportMimeTypeEnum `mandatory:"false" json:"mimeType,omitempty"` + // Specifies the time at which the report was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The date and time of the report update in Data Safe. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + // The type of the audit report. Type ReportTypeEnum `mandatory:"false" json:"type,omitempty"` + // Specifies the name of a resource that provides data for the report. For example alerts, events. + DataSource ReportDefinitionDataSourceEnum `mandatory:"false" json:"dataSource,omitempty"` + // Details about the current state of the report in Data Safe. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` @@ -80,6 +89,9 @@ func (m Report) ValidateEnumValue() (bool, error) { if _, ok := GetMappingReportTypeEnum(string(m.Type)); !ok && m.Type != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetReportTypeEnumStringValues(), ","))) } + if _, ok := GetMappingReportDefinitionDataSourceEnum(string(m.DataSource)); !ok && m.DataSource != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DataSource: %s. Supported values are: %s.", m.DataSource, strings.Join(GetReportDefinitionDataSourceEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/report_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/report_summary.go index 4a3fc93f812..865a8b7f719 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/report_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/report_summary.go @@ -42,9 +42,18 @@ type ReportSummary struct { // Specifies the format of report to be .xls or .pdf or .json. MimeType ReportSummaryMimeTypeEnum `mandatory:"false" json:"mimeType,omitempty"` + // Specifies the time at which the report was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The date and time of the report update in Data Safe. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + // The type of the report. Type ReportTypeEnum `mandatory:"false" json:"type,omitempty"` + // Specifies the name of a resource that provides data for the report. For example alerts, events. + DataSource ReportDefinitionDataSourceEnum `mandatory:"false" json:"dataSource,omitempty"` + // 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -73,6 +82,9 @@ func (m ReportSummary) ValidateEnumValue() (bool, error) { if _, ok := GetMappingReportTypeEnum(string(m.Type)); !ok && m.Type != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetReportTypeEnumStringValues(), ","))) } + if _, ok := GetMappingReportDefinitionDataSourceEnum(string(m.DataSource)); !ok && m.DataSource != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DataSource: %s. Supported values are: %s.", m.DataSource, strings.Join(GetReportDefinitionDataSourceEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/role_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/role_condition.go new file mode 100644 index 00000000000..ea9348e36aa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/role_condition.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RoleCondition The audit policy provisioning conditions. +type RoleCondition struct { + + // List of roles that the policy must be enabled for. + RoleNames []string `mandatory:"true" json:"roleNames"` + + // Specifies whether to include or exclude the specified users or roles. + EntitySelection PolicyConditionEntitySelectionEnum `mandatory:"true" json:"entitySelection"` + + // The operation status that the policy must be enabled for. + OperationStatus PolicyConditionOperationStatusEnum `mandatory:"true" json:"operationStatus"` +} + +// GetEntitySelection returns EntitySelection +func (m RoleCondition) GetEntitySelection() PolicyConditionEntitySelectionEnum { + return m.EntitySelection +} + +// GetOperationStatus returns OperationStatus +func (m RoleCondition) GetOperationStatus() PolicyConditionOperationStatusEnum { + return m.OperationStatus +} + +func (m RoleCondition) 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 RoleCondition) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPolicyConditionEntitySelectionEnum(string(m.EntitySelection)); !ok && m.EntitySelection != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EntitySelection: %s. Supported values are: %s.", m.EntitySelection, strings.Join(GetPolicyConditionEntitySelectionEnumStringValues(), ","))) + } + if _, ok := GetMappingPolicyConditionOperationStatusEnum(string(m.OperationStatus)); !ok && m.OperationStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationStatus: %s. Supported values are: %s.", m.OperationStatus, strings.Join(GetPolicyConditionOperationStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m RoleCondition) MarshalJSON() (buff []byte, e error) { + type MarshalTypeRoleCondition RoleCondition + s := struct { + DiscriminatorParam string `json:"entityType"` + MarshalTypeRoleCondition + }{ + "ROLE", + (MarshalTypeRoleCondition)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment.go index f443dcd99fc..6a77b023e50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment.go @@ -64,6 +64,12 @@ type SecurityAssessment struct { // The version of the target database. TargetVersion *string `mandatory:"false" json:"targetVersion"` + // The ocid of a security assessment which is of type TEMPLATE, this will be null or empty when type is TEMPLATE. + TemplateAssessmentId *string `mandatory:"false" json:"templateAssessmentId"` + + // The ocid of a security assessment which is of type TEMPLATE_BASELINE, this will be null or empty when type is TEMPLATE_BASELINE. + BaselineAssessmentId *string `mandatory:"false" json:"baselineAssessmentId"` + // Indicates whether or not the security assessment is set as a baseline. This is applicable only for saved security assessments. IsBaseline *bool `mandatory:"false" json:"isBaseline"` @@ -88,6 +94,15 @@ type SecurityAssessment struct { // Indicates whether the assessment is scheduled to run. IsAssessmentScheduled *bool `mandatory:"false" json:"isAssessmentScheduled"` + // The OCID of the target database group that the group assessment is created for. + TargetDatabaseGroupId *string `mandatory:"false" json:"targetDatabaseGroupId"` + + // Indicates whether the security assessment is for a target database or a target database group. + TargetType SecurityAssessmentTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + + // The security checks to be evaluated for type template. + Checks []Check `mandatory:"false" json:"checks"` + // Schedule to save the assessment periodically in the specified format: // ; // Allowed version strings - "v1" @@ -140,6 +155,9 @@ func (m SecurityAssessment) ValidateEnumValue() (bool, error) { if _, ok := GetMappingSecurityAssessmentTriggeredByEnum(string(m.TriggeredBy)); !ok && m.TriggeredBy != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TriggeredBy: %s. Supported values are: %s.", m.TriggeredBy, strings.Join(GetSecurityAssessmentTriggeredByEnumStringValues(), ","))) } + if _, ok := GetMappingSecurityAssessmentTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetSecurityAssessmentTargetTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } @@ -193,24 +211,30 @@ type SecurityAssessmentTypeEnum string // Set of constants representing the allowable values for SecurityAssessmentTypeEnum const ( - SecurityAssessmentTypeLatest SecurityAssessmentTypeEnum = "LATEST" - SecurityAssessmentTypeSaved SecurityAssessmentTypeEnum = "SAVED" - SecurityAssessmentTypeSaveSchedule SecurityAssessmentTypeEnum = "SAVE_SCHEDULE" - SecurityAssessmentTypeCompartment SecurityAssessmentTypeEnum = "COMPARTMENT" + SecurityAssessmentTypeLatest SecurityAssessmentTypeEnum = "LATEST" + SecurityAssessmentTypeSaved SecurityAssessmentTypeEnum = "SAVED" + SecurityAssessmentTypeSaveSchedule SecurityAssessmentTypeEnum = "SAVE_SCHEDULE" + SecurityAssessmentTypeCompartment SecurityAssessmentTypeEnum = "COMPARTMENT" + SecurityAssessmentTypeTemplate SecurityAssessmentTypeEnum = "TEMPLATE" + SecurityAssessmentTypeTemplateBaseline SecurityAssessmentTypeEnum = "TEMPLATE_BASELINE" ) var mappingSecurityAssessmentTypeEnum = map[string]SecurityAssessmentTypeEnum{ - "LATEST": SecurityAssessmentTypeLatest, - "SAVED": SecurityAssessmentTypeSaved, - "SAVE_SCHEDULE": SecurityAssessmentTypeSaveSchedule, - "COMPARTMENT": SecurityAssessmentTypeCompartment, + "LATEST": SecurityAssessmentTypeLatest, + "SAVED": SecurityAssessmentTypeSaved, + "SAVE_SCHEDULE": SecurityAssessmentTypeSaveSchedule, + "COMPARTMENT": SecurityAssessmentTypeCompartment, + "TEMPLATE": SecurityAssessmentTypeTemplate, + "TEMPLATE_BASELINE": SecurityAssessmentTypeTemplateBaseline, } var mappingSecurityAssessmentTypeEnumLowerCase = map[string]SecurityAssessmentTypeEnum{ - "latest": SecurityAssessmentTypeLatest, - "saved": SecurityAssessmentTypeSaved, - "save_schedule": SecurityAssessmentTypeSaveSchedule, - "compartment": SecurityAssessmentTypeCompartment, + "latest": SecurityAssessmentTypeLatest, + "saved": SecurityAssessmentTypeSaved, + "save_schedule": SecurityAssessmentTypeSaveSchedule, + "compartment": SecurityAssessmentTypeCompartment, + "template": SecurityAssessmentTypeTemplate, + "template_baseline": SecurityAssessmentTypeTemplateBaseline, } // GetSecurityAssessmentTypeEnumValues Enumerates the set of values for SecurityAssessmentTypeEnum @@ -229,6 +253,8 @@ func GetSecurityAssessmentTypeEnumStringValues() []string { "SAVED", "SAVE_SCHEDULE", "COMPARTMENT", + "TEMPLATE", + "TEMPLATE_BASELINE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_comparison.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_comparison.go index 1e627626fbf..fb75a4e7968 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_comparison.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_comparison.go @@ -61,18 +61,24 @@ const ( SecurityAssessmentComparisonLifecycleStateCreating SecurityAssessmentComparisonLifecycleStateEnum = "CREATING" SecurityAssessmentComparisonLifecycleStateSucceeded SecurityAssessmentComparisonLifecycleStateEnum = "SUCCEEDED" SecurityAssessmentComparisonLifecycleStateFailed SecurityAssessmentComparisonLifecycleStateEnum = "FAILED" + SecurityAssessmentComparisonLifecycleStateDeleted SecurityAssessmentComparisonLifecycleStateEnum = "DELETED" + SecurityAssessmentComparisonLifecycleStateDeleting SecurityAssessmentComparisonLifecycleStateEnum = "DELETING" ) var mappingSecurityAssessmentComparisonLifecycleStateEnum = map[string]SecurityAssessmentComparisonLifecycleStateEnum{ "CREATING": SecurityAssessmentComparisonLifecycleStateCreating, "SUCCEEDED": SecurityAssessmentComparisonLifecycleStateSucceeded, "FAILED": SecurityAssessmentComparisonLifecycleStateFailed, + "DELETED": SecurityAssessmentComparisonLifecycleStateDeleted, + "DELETING": SecurityAssessmentComparisonLifecycleStateDeleting, } var mappingSecurityAssessmentComparisonLifecycleStateEnumLowerCase = map[string]SecurityAssessmentComparisonLifecycleStateEnum{ "creating": SecurityAssessmentComparisonLifecycleStateCreating, "succeeded": SecurityAssessmentComparisonLifecycleStateSucceeded, "failed": SecurityAssessmentComparisonLifecycleStateFailed, + "deleted": SecurityAssessmentComparisonLifecycleStateDeleted, + "deleting": SecurityAssessmentComparisonLifecycleStateDeleting, } // GetSecurityAssessmentComparisonLifecycleStateEnumValues Enumerates the set of values for SecurityAssessmentComparisonLifecycleStateEnum @@ -90,6 +96,8 @@ func GetSecurityAssessmentComparisonLifecycleStateEnumStringValues() []string { "CREATING", "SUCCEEDED", "FAILED", + "DELETED", + "DELETING", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_summary.go index a92e6620577..0fd3a226f85 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_summary.go @@ -43,10 +43,18 @@ type SecurityAssessmentSummary struct { // LATEST: The most up-to-date assessment that is running automatically for a target. It is system generated. // SAVED: A saved security assessment. LATEST assessments are always saved in order to maintain the history of runs. A SAVED assessment is also generated by a 'refresh' action (triggered by the user). // SAVE_SCHEDULE: The schedule for periodic saves of LATEST assessments. + // TEMPLATE: The security assessment contains the checks that the user would like to run. It is user defined. + // TEMPLATE_BASELINE: The security assessment contains the checks that the user would like to run, together with the max allowed severity. The max allowed severity can be defined by the user. // COMPARTMENT: An automatically managed assessment type that stores all details of targets in one compartment. // This type keeps an up-to-date assessment of all database risks in one compartment. It is automatically updated when the latest assessment or refresh action is executed. It is also automatically updated when a target is deleted or move to a different compartment. Type SecurityAssessmentSummaryTypeEnum `mandatory:"true" json:"type"` + // The OCID of target database group. + TargetDatabaseGroupId *string `mandatory:"false" json:"targetDatabaseGroupId"` + + // Indicates whether the security assessment is for a target database or a target database group. + TargetType SecurityAssessmentTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + // The description of the security assessment. Description *string `mandatory:"false" json:"description"` @@ -76,6 +84,12 @@ type SecurityAssessmentSummary struct { // The OCID of the security assessment that created this scheduled save assessment. ScheduleSecurityAssessmentId *string `mandatory:"false" json:"scheduleSecurityAssessmentId"` + // The OCID of the security assessment of type TEMPLATE. + TemplateAssessmentId *string `mandatory:"false" json:"templateAssessmentId"` + + // The OCID of the security assessment of type TEMPLATE_BASELINE. + BaselineAssessmentId *string `mandatory:"false" json:"baselineAssessmentId"` + // Schedule of the assessment that runs periodically in the specified format: - // ; // Allowed version strings - "v1" @@ -124,6 +138,9 @@ func (m SecurityAssessmentSummary) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetSecurityAssessmentSummaryTypeEnumStringValues(), ","))) } + if _, ok := GetMappingSecurityAssessmentTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetSecurityAssessmentTargetTypeEnumStringValues(), ","))) + } if _, ok := GetMappingSecurityAssessmentSummaryTriggeredByEnum(string(m.TriggeredBy)); !ok && m.TriggeredBy != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TriggeredBy: %s. Supported values are: %s.", m.TriggeredBy, strings.Join(GetSecurityAssessmentSummaryTriggeredByEnumStringValues(), ","))) } @@ -180,24 +197,30 @@ type SecurityAssessmentSummaryTypeEnum string // Set of constants representing the allowable values for SecurityAssessmentSummaryTypeEnum const ( - SecurityAssessmentSummaryTypeLatest SecurityAssessmentSummaryTypeEnum = "LATEST" - SecurityAssessmentSummaryTypeSaved SecurityAssessmentSummaryTypeEnum = "SAVED" - SecurityAssessmentSummaryTypeSaveSchedule SecurityAssessmentSummaryTypeEnum = "SAVE_SCHEDULE" - SecurityAssessmentSummaryTypeCompartment SecurityAssessmentSummaryTypeEnum = "COMPARTMENT" + SecurityAssessmentSummaryTypeLatest SecurityAssessmentSummaryTypeEnum = "LATEST" + SecurityAssessmentSummaryTypeSaved SecurityAssessmentSummaryTypeEnum = "SAVED" + SecurityAssessmentSummaryTypeSaveSchedule SecurityAssessmentSummaryTypeEnum = "SAVE_SCHEDULE" + SecurityAssessmentSummaryTypeCompartment SecurityAssessmentSummaryTypeEnum = "COMPARTMENT" + SecurityAssessmentSummaryTypeTemplate SecurityAssessmentSummaryTypeEnum = "TEMPLATE" + SecurityAssessmentSummaryTypeTemplateBaseline SecurityAssessmentSummaryTypeEnum = "TEMPLATE_BASELINE" ) var mappingSecurityAssessmentSummaryTypeEnum = map[string]SecurityAssessmentSummaryTypeEnum{ - "LATEST": SecurityAssessmentSummaryTypeLatest, - "SAVED": SecurityAssessmentSummaryTypeSaved, - "SAVE_SCHEDULE": SecurityAssessmentSummaryTypeSaveSchedule, - "COMPARTMENT": SecurityAssessmentSummaryTypeCompartment, + "LATEST": SecurityAssessmentSummaryTypeLatest, + "SAVED": SecurityAssessmentSummaryTypeSaved, + "SAVE_SCHEDULE": SecurityAssessmentSummaryTypeSaveSchedule, + "COMPARTMENT": SecurityAssessmentSummaryTypeCompartment, + "TEMPLATE": SecurityAssessmentSummaryTypeTemplate, + "TEMPLATE_BASELINE": SecurityAssessmentSummaryTypeTemplateBaseline, } var mappingSecurityAssessmentSummaryTypeEnumLowerCase = map[string]SecurityAssessmentSummaryTypeEnum{ - "latest": SecurityAssessmentSummaryTypeLatest, - "saved": SecurityAssessmentSummaryTypeSaved, - "save_schedule": SecurityAssessmentSummaryTypeSaveSchedule, - "compartment": SecurityAssessmentSummaryTypeCompartment, + "latest": SecurityAssessmentSummaryTypeLatest, + "saved": SecurityAssessmentSummaryTypeSaved, + "save_schedule": SecurityAssessmentSummaryTypeSaveSchedule, + "compartment": SecurityAssessmentSummaryTypeCompartment, + "template": SecurityAssessmentSummaryTypeTemplate, + "template_baseline": SecurityAssessmentSummaryTypeTemplateBaseline, } // GetSecurityAssessmentSummaryTypeEnumValues Enumerates the set of values for SecurityAssessmentSummaryTypeEnum @@ -216,6 +239,8 @@ func GetSecurityAssessmentSummaryTypeEnumStringValues() []string { "SAVED", "SAVE_SCHEDULE", "COMPARTMENT", + "TEMPLATE", + "TEMPLATE_BASELINE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_target_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_target_type.go new file mode 100644 index 00000000000..3db0028219b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_target_type.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "strings" +) + +// SecurityAssessmentTargetTypeEnum Enum with underlying type: string +type SecurityAssessmentTargetTypeEnum string + +// Set of constants representing the allowable values for SecurityAssessmentTargetTypeEnum +const ( + SecurityAssessmentTargetTypeTargetDatabase SecurityAssessmentTargetTypeEnum = "TARGET_DATABASE" + SecurityAssessmentTargetTypeTargetDatabaseGroup SecurityAssessmentTargetTypeEnum = "TARGET_DATABASE_GROUP" +) + +var mappingSecurityAssessmentTargetTypeEnum = map[string]SecurityAssessmentTargetTypeEnum{ + "TARGET_DATABASE": SecurityAssessmentTargetTypeTargetDatabase, + "TARGET_DATABASE_GROUP": SecurityAssessmentTargetTypeTargetDatabaseGroup, +} + +var mappingSecurityAssessmentTargetTypeEnumLowerCase = map[string]SecurityAssessmentTargetTypeEnum{ + "target_database": SecurityAssessmentTargetTypeTargetDatabase, + "target_database_group": SecurityAssessmentTargetTypeTargetDatabaseGroup, +} + +// GetSecurityAssessmentTargetTypeEnumValues Enumerates the set of values for SecurityAssessmentTargetTypeEnum +func GetSecurityAssessmentTargetTypeEnumValues() []SecurityAssessmentTargetTypeEnum { + values := make([]SecurityAssessmentTargetTypeEnum, 0) + for _, v := range mappingSecurityAssessmentTargetTypeEnum { + values = append(values, v) + } + return values +} + +// GetSecurityAssessmentTargetTypeEnumStringValues Enumerates the set of values in String for SecurityAssessmentTargetTypeEnum +func GetSecurityAssessmentTargetTypeEnumStringValues() []string { + return []string{ + "TARGET_DATABASE", + "TARGET_DATABASE_GROUP", + } +} + +// GetMappingSecurityAssessmentTargetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSecurityAssessmentTargetTypeEnum(val string) (SecurityAssessmentTargetTypeEnum, bool) { + enum, ok := mappingSecurityAssessmentTargetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_template_baseline_comparison.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_template_baseline_comparison.go new file mode 100644 index 00000000000..4e8dc153089 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_template_baseline_comparison.go @@ -0,0 +1,129 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SecurityAssessmentTemplateBaselineComparison Provides a list of the differences in a comparison of the security assessment with the template baseline value. +type SecurityAssessmentTemplateBaselineComparison struct { + + // The OCID of the security assessment that is being compared with a template baseline security assessment. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the security assessment that is set as a template baseline. + TemplateBaselineId *string `mandatory:"true" json:"templateBaselineId"` + + // The current state of the security assessment comparison. + LifecycleState SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time when the security assessment comparison was created. Conforms to the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The display name of the security assessment that is set as a template baseline. + TemplateBaselineName *string `mandatory:"false" json:"templateBaselineName"` + + // A comparison between findings belonging to Auditing category. + Auditing []TemplateBaselineDiffs `mandatory:"false" json:"auditing"` + + // A comparison between findings belonging to Authorization Control category. + AuthorizationControl []TemplateBaselineDiffs `mandatory:"false" json:"authorizationControl"` + + // Comparison between findings belonging to Data Encryption category. + DataEncryption []TemplateBaselineDiffs `mandatory:"false" json:"dataEncryption"` + + // Comparison between findings belonging to Database Configuration category. + DbConfiguration []TemplateBaselineDiffs `mandatory:"false" json:"dbConfiguration"` + + // Comparison between findings belonging to Fine-Grained Access Control category. + FineGrainedAccessControl []TemplateBaselineDiffs `mandatory:"false" json:"fineGrainedAccessControl"` + + // Comparison between findings belonging to Privileges and Roles category. + PrivilegesAndRoles []TemplateBaselineDiffs `mandatory:"false" json:"privilegesAndRoles"` + + // Comparison between findings belonging to User Accounts category. + UserAccounts []TemplateBaselineDiffs `mandatory:"false" json:"userAccounts"` +} + +func (m SecurityAssessmentTemplateBaselineComparison) 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 SecurityAssessmentTemplateBaselineComparison) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum(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(GetSecurityAssessmentTemplateBaselineComparisonLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum Enum with underlying type: string +type SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum string + +// Set of constants representing the allowable values for SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum +const ( + SecurityAssessmentTemplateBaselineComparisonLifecycleStateInProgress SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum = "IN_PROGRESS" + SecurityAssessmentTemplateBaselineComparisonLifecycleStateSucceeded SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum = "SUCCEEDED" + SecurityAssessmentTemplateBaselineComparisonLifecycleStateFailed SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum = "FAILED" + SecurityAssessmentTemplateBaselineComparisonLifecycleStateDeleted SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum = "DELETED" + SecurityAssessmentTemplateBaselineComparisonLifecycleStateDeleting SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum = "DELETING" +) + +var mappingSecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum = map[string]SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum{ + "IN_PROGRESS": SecurityAssessmentTemplateBaselineComparisonLifecycleStateInProgress, + "SUCCEEDED": SecurityAssessmentTemplateBaselineComparisonLifecycleStateSucceeded, + "FAILED": SecurityAssessmentTemplateBaselineComparisonLifecycleStateFailed, + "DELETED": SecurityAssessmentTemplateBaselineComparisonLifecycleStateDeleted, + "DELETING": SecurityAssessmentTemplateBaselineComparisonLifecycleStateDeleting, +} + +var mappingSecurityAssessmentTemplateBaselineComparisonLifecycleStateEnumLowerCase = map[string]SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum{ + "in_progress": SecurityAssessmentTemplateBaselineComparisonLifecycleStateInProgress, + "succeeded": SecurityAssessmentTemplateBaselineComparisonLifecycleStateSucceeded, + "failed": SecurityAssessmentTemplateBaselineComparisonLifecycleStateFailed, + "deleted": SecurityAssessmentTemplateBaselineComparisonLifecycleStateDeleted, + "deleting": SecurityAssessmentTemplateBaselineComparisonLifecycleStateDeleting, +} + +// GetSecurityAssessmentTemplateBaselineComparisonLifecycleStateEnumValues Enumerates the set of values for SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum +func GetSecurityAssessmentTemplateBaselineComparisonLifecycleStateEnumValues() []SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum { + values := make([]SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum, 0) + for _, v := range mappingSecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetSecurityAssessmentTemplateBaselineComparisonLifecycleStateEnumStringValues Enumerates the set of values in String for SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum +func GetSecurityAssessmentTemplateBaselineComparisonLifecycleStateEnumStringValues() []string { + return []string{ + "IN_PROGRESS", + "SUCCEEDED", + "FAILED", + "DELETED", + "DELETING", + } +} + +// GetMappingSecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum(val string) (SecurityAssessmentTemplateBaselineComparisonLifecycleStateEnum, bool) { + enum, ok := mappingSecurityAssessmentTemplateBaselineComparisonLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_template_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_template_details.go new file mode 100644 index 00000000000..aba8f58cb24 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_assessment_template_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SecurityAssessmentTemplateDetails The details required to set the template for the assessment. +type SecurityAssessmentTemplateDetails struct { + + // The OCID of the template type security assessment containing the check details. + TemplateAssessmentId *string `mandatory:"false" json:"templateAssessmentId"` +} + +func (m SecurityAssessmentTemplateDetails) 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 SecurityAssessmentTemplateDetails) 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/datasafe/security_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy.go index 24b8acf3c8e..e09ab5d4998 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy.go @@ -36,6 +36,9 @@ type SecurityPolicy struct { // The description of the security policy. Description *string `mandatory:"false" json:"description"` + // The type of the security policy. + SecurityPolicyType SecurityPolicySecurityPolicyTypeEnum `mandatory:"false" json:"securityPolicyType,omitempty"` + // The last date and time the security policy was updated, in the format defined by RFC3339. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` @@ -68,8 +71,53 @@ func (m SecurityPolicy) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetSecurityPolicyLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingSecurityPolicySecurityPolicyTypeEnum(string(m.SecurityPolicyType)); !ok && m.SecurityPolicyType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SecurityPolicyType: %s. Supported values are: %s.", m.SecurityPolicyType, strings.Join(GetSecurityPolicySecurityPolicyTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } return false, nil } + +// SecurityPolicySecurityPolicyTypeEnum Enum with underlying type: string +type SecurityPolicySecurityPolicyTypeEnum string + +// Set of constants representing the allowable values for SecurityPolicySecurityPolicyTypeEnum +const ( + SecurityPolicySecurityPolicyTypeDatasafeManaged SecurityPolicySecurityPolicyTypeEnum = "DATASAFE_MANAGED" + SecurityPolicySecurityPolicyTypeSeededPolicy SecurityPolicySecurityPolicyTypeEnum = "SEEDED_POLICY" +) + +var mappingSecurityPolicySecurityPolicyTypeEnum = map[string]SecurityPolicySecurityPolicyTypeEnum{ + "DATASAFE_MANAGED": SecurityPolicySecurityPolicyTypeDatasafeManaged, + "SEEDED_POLICY": SecurityPolicySecurityPolicyTypeSeededPolicy, +} + +var mappingSecurityPolicySecurityPolicyTypeEnumLowerCase = map[string]SecurityPolicySecurityPolicyTypeEnum{ + "datasafe_managed": SecurityPolicySecurityPolicyTypeDatasafeManaged, + "seeded_policy": SecurityPolicySecurityPolicyTypeSeededPolicy, +} + +// GetSecurityPolicySecurityPolicyTypeEnumValues Enumerates the set of values for SecurityPolicySecurityPolicyTypeEnum +func GetSecurityPolicySecurityPolicyTypeEnumValues() []SecurityPolicySecurityPolicyTypeEnum { + values := make([]SecurityPolicySecurityPolicyTypeEnum, 0) + for _, v := range mappingSecurityPolicySecurityPolicyTypeEnum { + values = append(values, v) + } + return values +} + +// GetSecurityPolicySecurityPolicyTypeEnumStringValues Enumerates the set of values in String for SecurityPolicySecurityPolicyTypeEnum +func GetSecurityPolicySecurityPolicyTypeEnumStringValues() []string { + return []string{ + "DATASAFE_MANAGED", + "SEEDED_POLICY", + } +} + +// GetMappingSecurityPolicySecurityPolicyTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSecurityPolicySecurityPolicyTypeEnum(val string) (SecurityPolicySecurityPolicyTypeEnum, bool) { + enum, ok := mappingSecurityPolicySecurityPolicyTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_config.go new file mode 100644 index 00000000000..011c925d275 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_config.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SecurityPolicyConfig The Data Safe resource represents the common configurations corresponding to the associated security policy. +type SecurityPolicyConfig struct { + + // The OCID of the security policy configuration. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the security policy configuration. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The display name of the security policy configuration. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the security policy corresponding to the security policy configuration. + SecurityPolicyId *string `mandatory:"true" json:"securityPolicyId"` + + // The time the security policy configuration was created, in the format defined by RFC3339. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The current state of the security policy configuration. + LifecycleState SecurityPolicyConfigLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The description of the security policy configuration. + Description *string `mandatory:"false" json:"description"` + + // The date and time the security policy configuration was last updated, in the format defined by RFC3339. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // Details about the current state of the security policy configuration. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + FirewallConfig *FirewallConfig `mandatory:"false" json:"firewallConfig"` + + UnifiedAuditPolicyConfig *UnifiedAuditPolicyConfig `mandatory:"false" json:"unifiedAuditPolicyConfig"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m SecurityPolicyConfig) 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 SecurityPolicyConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSecurityPolicyConfigLifecycleStateEnum(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(GetSecurityPolicyConfigLifecycleStateEnumStringValues(), ","))) + } + + 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/datasafe/security_policy_config_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_config_collection.go new file mode 100644 index 00000000000..aa8fe293e28 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_config_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SecurityPolicyConfigCollection Collection of security policy configuration summaries. +type SecurityPolicyConfigCollection struct { + + // Array of security policy configuration summaries. + Items []SecurityPolicyConfigSummary `mandatory:"true" json:"items"` +} + +func (m SecurityPolicyConfigCollection) 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 SecurityPolicyConfigCollection) 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/datasafe/security_policy_config_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_config_lifecycle_state.go new file mode 100644 index 00000000000..a10f24ee17a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_config_lifecycle_state.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "strings" +) + +// SecurityPolicyConfigLifecycleStateEnum Enum with underlying type: string +type SecurityPolicyConfigLifecycleStateEnum string + +// Set of constants representing the allowable values for SecurityPolicyConfigLifecycleStateEnum +const ( + SecurityPolicyConfigLifecycleStateCreating SecurityPolicyConfigLifecycleStateEnum = "CREATING" + SecurityPolicyConfigLifecycleStateUpdating SecurityPolicyConfigLifecycleStateEnum = "UPDATING" + SecurityPolicyConfigLifecycleStateActive SecurityPolicyConfigLifecycleStateEnum = "ACTIVE" + SecurityPolicyConfigLifecycleStateFailed SecurityPolicyConfigLifecycleStateEnum = "FAILED" + SecurityPolicyConfigLifecycleStateNeedsAttention SecurityPolicyConfigLifecycleStateEnum = "NEEDS_ATTENTION" + SecurityPolicyConfigLifecycleStateDeleting SecurityPolicyConfigLifecycleStateEnum = "DELETING" + SecurityPolicyConfigLifecycleStateDeleted SecurityPolicyConfigLifecycleStateEnum = "DELETED" +) + +var mappingSecurityPolicyConfigLifecycleStateEnum = map[string]SecurityPolicyConfigLifecycleStateEnum{ + "CREATING": SecurityPolicyConfigLifecycleStateCreating, + "UPDATING": SecurityPolicyConfigLifecycleStateUpdating, + "ACTIVE": SecurityPolicyConfigLifecycleStateActive, + "FAILED": SecurityPolicyConfigLifecycleStateFailed, + "NEEDS_ATTENTION": SecurityPolicyConfigLifecycleStateNeedsAttention, + "DELETING": SecurityPolicyConfigLifecycleStateDeleting, + "DELETED": SecurityPolicyConfigLifecycleStateDeleted, +} + +var mappingSecurityPolicyConfigLifecycleStateEnumLowerCase = map[string]SecurityPolicyConfigLifecycleStateEnum{ + "creating": SecurityPolicyConfigLifecycleStateCreating, + "updating": SecurityPolicyConfigLifecycleStateUpdating, + "active": SecurityPolicyConfigLifecycleStateActive, + "failed": SecurityPolicyConfigLifecycleStateFailed, + "needs_attention": SecurityPolicyConfigLifecycleStateNeedsAttention, + "deleting": SecurityPolicyConfigLifecycleStateDeleting, + "deleted": SecurityPolicyConfigLifecycleStateDeleted, +} + +// GetSecurityPolicyConfigLifecycleStateEnumValues Enumerates the set of values for SecurityPolicyConfigLifecycleStateEnum +func GetSecurityPolicyConfigLifecycleStateEnumValues() []SecurityPolicyConfigLifecycleStateEnum { + values := make([]SecurityPolicyConfigLifecycleStateEnum, 0) + for _, v := range mappingSecurityPolicyConfigLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetSecurityPolicyConfigLifecycleStateEnumStringValues Enumerates the set of values in String for SecurityPolicyConfigLifecycleStateEnum +func GetSecurityPolicyConfigLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "FAILED", + "NEEDS_ATTENTION", + "DELETING", + "DELETED", + } +} + +// GetMappingSecurityPolicyConfigLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSecurityPolicyConfigLifecycleStateEnum(val string) (SecurityPolicyConfigLifecycleStateEnum, bool) { + enum, ok := mappingSecurityPolicyConfigLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_config_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_config_summary.go new file mode 100644 index 00000000000..ca62f51c0fa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_config_summary.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SecurityPolicyConfigSummary The Data Safe resource represents the common configurations corresponding to the associated security policy. +type SecurityPolicyConfigSummary struct { + + // The OCID of the security policy configuration. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the security policy configuration. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The display name of the security policy configuration. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the security policy corresponding to the security policy configuration. + SecurityPolicyId *string `mandatory:"true" json:"securityPolicyId"` + + // The time the security policy configuration was created, in the format defined by RFC3339. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The current state of the security policy configuration. + LifecycleState SecurityPolicyConfigLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The description of the security policy configuration. + Description *string `mandatory:"false" json:"description"` + + // The date and time the security policy configuration was last updated, in the format defined by RFC3339. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // Details about the current state of the security policy configuration. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + FirewallConfig *FirewallConfig `mandatory:"false" json:"firewallConfig"` + + UnifiedAuditPolicyConfig *UnifiedAuditPolicyConfig `mandatory:"false" json:"unifiedAuditPolicyConfig"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m SecurityPolicyConfigSummary) 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 SecurityPolicyConfigSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSecurityPolicyConfigLifecycleStateEnum(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(GetSecurityPolicyConfigLifecycleStateEnumStringValues(), ","))) + } + + 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/datasafe/security_policy_deployment.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_deployment.go index dff19df339e..27f6c7b1ff5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_deployment.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_deployment.go @@ -27,7 +27,7 @@ type SecurityPolicyDeployment struct { // The display name of the security policy deployment. DisplayName *string `mandatory:"true" json:"displayName"` - // The OCID of the target where the security policy is deployed. + // The OCID of the target/target group where the security policy is deployed. TargetId *string `mandatory:"true" json:"targetId"` // The OCID of the security policy corresponding to the security policy deployment. @@ -42,6 +42,12 @@ type SecurityPolicyDeployment struct { // The description of the security policy deployment. Description *string `mandatory:"false" json:"description"` + // Indicates whether the security policy deployment is for a target database or a target database group. + TargetType SecurityPolicyDeploymentTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + + // The last date and time the security policy was deployed, in the format defined by RFC3339. + TimeDeployed *common.SDKTime `mandatory:"false" json:"timeDeployed"` + // The last date and time the security policy deployment was updated, in the format defined by RFC3339. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` @@ -74,8 +80,53 @@ func (m SecurityPolicyDeployment) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetSecurityPolicyDeploymentLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingSecurityPolicyDeploymentTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetSecurityPolicyDeploymentTargetTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } return false, nil } + +// SecurityPolicyDeploymentTargetTypeEnum Enum with underlying type: string +type SecurityPolicyDeploymentTargetTypeEnum string + +// Set of constants representing the allowable values for SecurityPolicyDeploymentTargetTypeEnum +const ( + SecurityPolicyDeploymentTargetTypeDatabase SecurityPolicyDeploymentTargetTypeEnum = "TARGET_DATABASE" + SecurityPolicyDeploymentTargetTypeDatabaseGroup SecurityPolicyDeploymentTargetTypeEnum = "TARGET_DATABASE_GROUP" +) + +var mappingSecurityPolicyDeploymentTargetTypeEnum = map[string]SecurityPolicyDeploymentTargetTypeEnum{ + "TARGET_DATABASE": SecurityPolicyDeploymentTargetTypeDatabase, + "TARGET_DATABASE_GROUP": SecurityPolicyDeploymentTargetTypeDatabaseGroup, +} + +var mappingSecurityPolicyDeploymentTargetTypeEnumLowerCase = map[string]SecurityPolicyDeploymentTargetTypeEnum{ + "target_database": SecurityPolicyDeploymentTargetTypeDatabase, + "target_database_group": SecurityPolicyDeploymentTargetTypeDatabaseGroup, +} + +// GetSecurityPolicyDeploymentTargetTypeEnumValues Enumerates the set of values for SecurityPolicyDeploymentTargetTypeEnum +func GetSecurityPolicyDeploymentTargetTypeEnumValues() []SecurityPolicyDeploymentTargetTypeEnum { + values := make([]SecurityPolicyDeploymentTargetTypeEnum, 0) + for _, v := range mappingSecurityPolicyDeploymentTargetTypeEnum { + values = append(values, v) + } + return values +} + +// GetSecurityPolicyDeploymentTargetTypeEnumStringValues Enumerates the set of values in String for SecurityPolicyDeploymentTargetTypeEnum +func GetSecurityPolicyDeploymentTargetTypeEnumStringValues() []string { + return []string{ + "TARGET_DATABASE", + "TARGET_DATABASE_GROUP", + } +} + +// GetMappingSecurityPolicyDeploymentTargetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSecurityPolicyDeploymentTargetTypeEnum(val string) (SecurityPolicyDeploymentTargetTypeEnum, bool) { + enum, ok := mappingSecurityPolicyDeploymentTargetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_deployment_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_deployment_lifecycle_state.go index 7842a225378..e0f002dcfc6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_deployment_lifecycle_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_deployment_lifecycle_state.go @@ -18,33 +18,36 @@ type SecurityPolicyDeploymentLifecycleStateEnum string // Set of constants representing the allowable values for SecurityPolicyDeploymentLifecycleStateEnum const ( - SecurityPolicyDeploymentLifecycleStateCreating SecurityPolicyDeploymentLifecycleStateEnum = "CREATING" - SecurityPolicyDeploymentLifecycleStateUpdating SecurityPolicyDeploymentLifecycleStateEnum = "UPDATING" - SecurityPolicyDeploymentLifecycleStateDeployed SecurityPolicyDeploymentLifecycleStateEnum = "DEPLOYED" - SecurityPolicyDeploymentLifecycleStateNeedsAttention SecurityPolicyDeploymentLifecycleStateEnum = "NEEDS_ATTENTION" - SecurityPolicyDeploymentLifecycleStateFailed SecurityPolicyDeploymentLifecycleStateEnum = "FAILED" - SecurityPolicyDeploymentLifecycleStateDeleting SecurityPolicyDeploymentLifecycleStateEnum = "DELETING" - SecurityPolicyDeploymentLifecycleStateDeleted SecurityPolicyDeploymentLifecycleStateEnum = "DELETED" + SecurityPolicyDeploymentLifecycleStateCreating SecurityPolicyDeploymentLifecycleStateEnum = "CREATING" + SecurityPolicyDeploymentLifecycleStateUpdating SecurityPolicyDeploymentLifecycleStateEnum = "UPDATING" + SecurityPolicyDeploymentLifecycleStateDeployed SecurityPolicyDeploymentLifecycleStateEnum = "DEPLOYED" + SecurityPolicyDeploymentLifecycleStatePendingDeployment SecurityPolicyDeploymentLifecycleStateEnum = "PENDING_DEPLOYMENT" + SecurityPolicyDeploymentLifecycleStateNeedsAttention SecurityPolicyDeploymentLifecycleStateEnum = "NEEDS_ATTENTION" + SecurityPolicyDeploymentLifecycleStateFailed SecurityPolicyDeploymentLifecycleStateEnum = "FAILED" + SecurityPolicyDeploymentLifecycleStateDeleting SecurityPolicyDeploymentLifecycleStateEnum = "DELETING" + SecurityPolicyDeploymentLifecycleStateDeleted SecurityPolicyDeploymentLifecycleStateEnum = "DELETED" ) var mappingSecurityPolicyDeploymentLifecycleStateEnum = map[string]SecurityPolicyDeploymentLifecycleStateEnum{ - "CREATING": SecurityPolicyDeploymentLifecycleStateCreating, - "UPDATING": SecurityPolicyDeploymentLifecycleStateUpdating, - "DEPLOYED": SecurityPolicyDeploymentLifecycleStateDeployed, - "NEEDS_ATTENTION": SecurityPolicyDeploymentLifecycleStateNeedsAttention, - "FAILED": SecurityPolicyDeploymentLifecycleStateFailed, - "DELETING": SecurityPolicyDeploymentLifecycleStateDeleting, - "DELETED": SecurityPolicyDeploymentLifecycleStateDeleted, + "CREATING": SecurityPolicyDeploymentLifecycleStateCreating, + "UPDATING": SecurityPolicyDeploymentLifecycleStateUpdating, + "DEPLOYED": SecurityPolicyDeploymentLifecycleStateDeployed, + "PENDING_DEPLOYMENT": SecurityPolicyDeploymentLifecycleStatePendingDeployment, + "NEEDS_ATTENTION": SecurityPolicyDeploymentLifecycleStateNeedsAttention, + "FAILED": SecurityPolicyDeploymentLifecycleStateFailed, + "DELETING": SecurityPolicyDeploymentLifecycleStateDeleting, + "DELETED": SecurityPolicyDeploymentLifecycleStateDeleted, } var mappingSecurityPolicyDeploymentLifecycleStateEnumLowerCase = map[string]SecurityPolicyDeploymentLifecycleStateEnum{ - "creating": SecurityPolicyDeploymentLifecycleStateCreating, - "updating": SecurityPolicyDeploymentLifecycleStateUpdating, - "deployed": SecurityPolicyDeploymentLifecycleStateDeployed, - "needs_attention": SecurityPolicyDeploymentLifecycleStateNeedsAttention, - "failed": SecurityPolicyDeploymentLifecycleStateFailed, - "deleting": SecurityPolicyDeploymentLifecycleStateDeleting, - "deleted": SecurityPolicyDeploymentLifecycleStateDeleted, + "creating": SecurityPolicyDeploymentLifecycleStateCreating, + "updating": SecurityPolicyDeploymentLifecycleStateUpdating, + "deployed": SecurityPolicyDeploymentLifecycleStateDeployed, + "pending_deployment": SecurityPolicyDeploymentLifecycleStatePendingDeployment, + "needs_attention": SecurityPolicyDeploymentLifecycleStateNeedsAttention, + "failed": SecurityPolicyDeploymentLifecycleStateFailed, + "deleting": SecurityPolicyDeploymentLifecycleStateDeleting, + "deleted": SecurityPolicyDeploymentLifecycleStateDeleted, } // GetSecurityPolicyDeploymentLifecycleStateEnumValues Enumerates the set of values for SecurityPolicyDeploymentLifecycleStateEnum @@ -62,6 +65,7 @@ func GetSecurityPolicyDeploymentLifecycleStateEnumStringValues() []string { "CREATING", "UPDATING", "DEPLOYED", + "PENDING_DEPLOYMENT", "NEEDS_ATTENTION", "FAILED", "DELETING", diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_deployment_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_deployment_summary.go index b44a882ea54..c86a6d72efe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_deployment_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_deployment_summary.go @@ -27,7 +27,7 @@ type SecurityPolicyDeploymentSummary struct { // The display name of the security policy deployment. DisplayName *string `mandatory:"true" json:"displayName"` - // The OCID of the target where the security policy is deployed. + // The OCID of the target/target group where the security policy is deployed. TargetId *string `mandatory:"true" json:"targetId"` // The OCID of the security policy corresponding to the security policy deployment. @@ -42,6 +42,12 @@ type SecurityPolicyDeploymentSummary struct { // The description of the security policy deployment. Description *string `mandatory:"false" json:"description"` + // Indicates whether the security policy deployment is for a target database or a target database group. + TargetType SecurityPolicyDeploymentTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + + // The last date and time the security policy was deployed, in the format defined by RFC3339. + TimeDeployed *common.SDKTime `mandatory:"false" json:"timeDeployed"` + // The last date and time the security policy deployment was updated, in the format defined by RFC3339. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` @@ -74,6 +80,9 @@ func (m SecurityPolicyDeploymentSummary) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetSecurityPolicyDeploymentLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingSecurityPolicyDeploymentTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetSecurityPolicyDeploymentTargetTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_entry_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_entry_state.go index 052408a4fc6..cdddc85bac0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_entry_state.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_entry_state.go @@ -25,12 +25,24 @@ type SecurityPolicyEntryState struct { // The OCID of the security policy entry type associated. SecurityPolicyEntryId *string `mandatory:"true" json:"securityPolicyEntryId"` + // The OCID of the target on which the security policy is deployed. + TargetId *string `mandatory:"true" json:"targetId"` + + // The security policy entry type. Allowed values: + // - FIREWALL_POLICY - The SQL Firewall policy entry type. + // - AUDIT_POLICY - The audit policy entry type. + // - CONFIG - Config changes deployment. + EntryType SecurityPolicyEntryStateEntryTypeEnum `mandatory:"true" json:"entryType"` + // The current deployment status of the security policy deployment and the security policy entry associated. DeploymentStatus SecurityPolicyEntryStateDeploymentStatusEnum `mandatory:"true" json:"deploymentStatus"` // The OCID of the security policy deployment associated. SecurityPolicyDeploymentId *string `mandatory:"false" json:"securityPolicyDeploymentId"` + // Details about the current deployment status. + DeploymentStatusDetails *string `mandatory:"false" json:"deploymentStatusDetails"` + EntryDetails EntryDetails `mandatory:"false" json:"entryDetails"` } @@ -43,6 +55,9 @@ func (m SecurityPolicyEntryState) String() string { // Not recommended for calling this function directly func (m SecurityPolicyEntryState) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingSecurityPolicyEntryStateEntryTypeEnum(string(m.EntryType)); !ok && m.EntryType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EntryType: %s. Supported values are: %s.", m.EntryType, strings.Join(GetSecurityPolicyEntryStateEntryTypeEnumStringValues(), ","))) + } if _, ok := GetMappingSecurityPolicyEntryStateDeploymentStatusEnum(string(m.DeploymentStatus)); !ok && m.DeploymentStatus != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DeploymentStatus: %s. Supported values are: %s.", m.DeploymentStatus, strings.Join(GetSecurityPolicyEntryStateDeploymentStatusEnumStringValues(), ","))) } @@ -57,9 +72,12 @@ func (m SecurityPolicyEntryState) ValidateEnumValue() (bool, error) { func (m *SecurityPolicyEntryState) UnmarshalJSON(data []byte) (e error) { model := struct { SecurityPolicyDeploymentId *string `json:"securityPolicyDeploymentId"` + DeploymentStatusDetails *string `json:"deploymentStatusDetails"` EntryDetails entrydetails `json:"entryDetails"` Id *string `json:"id"` SecurityPolicyEntryId *string `json:"securityPolicyEntryId"` + TargetId *string `json:"targetId"` + EntryType SecurityPolicyEntryStateEntryTypeEnum `json:"entryType"` DeploymentStatus SecurityPolicyEntryStateDeploymentStatusEnum `json:"deploymentStatus"` }{} @@ -70,6 +88,8 @@ func (m *SecurityPolicyEntryState) UnmarshalJSON(data []byte) (e error) { var nn interface{} m.SecurityPolicyDeploymentId = model.SecurityPolicyDeploymentId + m.DeploymentStatusDetails = model.DeploymentStatusDetails + nn, e = model.EntryDetails.UnmarshalPolymorphicJSON(model.EntryDetails.JsonData) if e != nil { return @@ -84,7 +104,57 @@ func (m *SecurityPolicyEntryState) UnmarshalJSON(data []byte) (e error) { m.SecurityPolicyEntryId = model.SecurityPolicyEntryId + m.TargetId = model.TargetId + + m.EntryType = model.EntryType + m.DeploymentStatus = model.DeploymentStatus return } + +// SecurityPolicyEntryStateEntryTypeEnum Enum with underlying type: string +type SecurityPolicyEntryStateEntryTypeEnum string + +// Set of constants representing the allowable values for SecurityPolicyEntryStateEntryTypeEnum +const ( + SecurityPolicyEntryStateEntryTypeFirewallPolicy SecurityPolicyEntryStateEntryTypeEnum = "FIREWALL_POLICY" + SecurityPolicyEntryStateEntryTypeAuditPolicy SecurityPolicyEntryStateEntryTypeEnum = "AUDIT_POLICY" + SecurityPolicyEntryStateEntryTypeConfig SecurityPolicyEntryStateEntryTypeEnum = "CONFIG" +) + +var mappingSecurityPolicyEntryStateEntryTypeEnum = map[string]SecurityPolicyEntryStateEntryTypeEnum{ + "FIREWALL_POLICY": SecurityPolicyEntryStateEntryTypeFirewallPolicy, + "AUDIT_POLICY": SecurityPolicyEntryStateEntryTypeAuditPolicy, + "CONFIG": SecurityPolicyEntryStateEntryTypeConfig, +} + +var mappingSecurityPolicyEntryStateEntryTypeEnumLowerCase = map[string]SecurityPolicyEntryStateEntryTypeEnum{ + "firewall_policy": SecurityPolicyEntryStateEntryTypeFirewallPolicy, + "audit_policy": SecurityPolicyEntryStateEntryTypeAuditPolicy, + "config": SecurityPolicyEntryStateEntryTypeConfig, +} + +// GetSecurityPolicyEntryStateEntryTypeEnumValues Enumerates the set of values for SecurityPolicyEntryStateEntryTypeEnum +func GetSecurityPolicyEntryStateEntryTypeEnumValues() []SecurityPolicyEntryStateEntryTypeEnum { + values := make([]SecurityPolicyEntryStateEntryTypeEnum, 0) + for _, v := range mappingSecurityPolicyEntryStateEntryTypeEnum { + values = append(values, v) + } + return values +} + +// GetSecurityPolicyEntryStateEntryTypeEnumStringValues Enumerates the set of values in String for SecurityPolicyEntryStateEntryTypeEnum +func GetSecurityPolicyEntryStateEntryTypeEnumStringValues() []string { + return []string{ + "FIREWALL_POLICY", + "AUDIT_POLICY", + "CONFIG", + } +} + +// GetMappingSecurityPolicyEntryStateEntryTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSecurityPolicyEntryStateEntryTypeEnum(val string) (SecurityPolicyEntryStateEntryTypeEnum, bool) { + enum, ok := mappingSecurityPolicyEntryStateEntryTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_entry_state_deployment_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_entry_state_deployment_status.go index 310adaf40d0..de9e0a18cbd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_entry_state_deployment_status.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_entry_state_deployment_status.go @@ -18,27 +18,36 @@ type SecurityPolicyEntryStateDeploymentStatusEnum string // Set of constants representing the allowable values for SecurityPolicyEntryStateDeploymentStatusEnum const ( - SecurityPolicyEntryStateDeploymentStatusCreated SecurityPolicyEntryStateDeploymentStatusEnum = "CREATED" - SecurityPolicyEntryStateDeploymentStatusModified SecurityPolicyEntryStateDeploymentStatusEnum = "MODIFIED" - SecurityPolicyEntryStateDeploymentStatusConflict SecurityPolicyEntryStateDeploymentStatusEnum = "CONFLICT" - SecurityPolicyEntryStateDeploymentStatusUnauthorized SecurityPolicyEntryStateDeploymentStatusEnum = "UNAUTHORIZED" - SecurityPolicyEntryStateDeploymentStatusDeleted SecurityPolicyEntryStateDeploymentStatusEnum = "DELETED" + SecurityPolicyEntryStateDeploymentStatusCreated SecurityPolicyEntryStateDeploymentStatusEnum = "CREATED" + SecurityPolicyEntryStateDeploymentStatusModified SecurityPolicyEntryStateDeploymentStatusEnum = "MODIFIED" + SecurityPolicyEntryStateDeploymentStatusConflict SecurityPolicyEntryStateDeploymentStatusEnum = "CONFLICT" + SecurityPolicyEntryStateDeploymentStatusConnectivityIssue SecurityPolicyEntryStateDeploymentStatusEnum = "CONNECTIVITY_ISSUE" + SecurityPolicyEntryStateDeploymentStatusUnsupportedSyntax SecurityPolicyEntryStateDeploymentStatusEnum = "UNSUPPORTED_SYNTAX" + SecurityPolicyEntryStateDeploymentStatusUnknownError SecurityPolicyEntryStateDeploymentStatusEnum = "UNKNOWN_ERROR" + SecurityPolicyEntryStateDeploymentStatusUnauthorized SecurityPolicyEntryStateDeploymentStatusEnum = "UNAUTHORIZED" + SecurityPolicyEntryStateDeploymentStatusDeleted SecurityPolicyEntryStateDeploymentStatusEnum = "DELETED" ) var mappingSecurityPolicyEntryStateDeploymentStatusEnum = map[string]SecurityPolicyEntryStateDeploymentStatusEnum{ - "CREATED": SecurityPolicyEntryStateDeploymentStatusCreated, - "MODIFIED": SecurityPolicyEntryStateDeploymentStatusModified, - "CONFLICT": SecurityPolicyEntryStateDeploymentStatusConflict, - "UNAUTHORIZED": SecurityPolicyEntryStateDeploymentStatusUnauthorized, - "DELETED": SecurityPolicyEntryStateDeploymentStatusDeleted, + "CREATED": SecurityPolicyEntryStateDeploymentStatusCreated, + "MODIFIED": SecurityPolicyEntryStateDeploymentStatusModified, + "CONFLICT": SecurityPolicyEntryStateDeploymentStatusConflict, + "CONNECTIVITY_ISSUE": SecurityPolicyEntryStateDeploymentStatusConnectivityIssue, + "UNSUPPORTED_SYNTAX": SecurityPolicyEntryStateDeploymentStatusUnsupportedSyntax, + "UNKNOWN_ERROR": SecurityPolicyEntryStateDeploymentStatusUnknownError, + "UNAUTHORIZED": SecurityPolicyEntryStateDeploymentStatusUnauthorized, + "DELETED": SecurityPolicyEntryStateDeploymentStatusDeleted, } var mappingSecurityPolicyEntryStateDeploymentStatusEnumLowerCase = map[string]SecurityPolicyEntryStateDeploymentStatusEnum{ - "created": SecurityPolicyEntryStateDeploymentStatusCreated, - "modified": SecurityPolicyEntryStateDeploymentStatusModified, - "conflict": SecurityPolicyEntryStateDeploymentStatusConflict, - "unauthorized": SecurityPolicyEntryStateDeploymentStatusUnauthorized, - "deleted": SecurityPolicyEntryStateDeploymentStatusDeleted, + "created": SecurityPolicyEntryStateDeploymentStatusCreated, + "modified": SecurityPolicyEntryStateDeploymentStatusModified, + "conflict": SecurityPolicyEntryStateDeploymentStatusConflict, + "connectivity_issue": SecurityPolicyEntryStateDeploymentStatusConnectivityIssue, + "unsupported_syntax": SecurityPolicyEntryStateDeploymentStatusUnsupportedSyntax, + "unknown_error": SecurityPolicyEntryStateDeploymentStatusUnknownError, + "unauthorized": SecurityPolicyEntryStateDeploymentStatusUnauthorized, + "deleted": SecurityPolicyEntryStateDeploymentStatusDeleted, } // GetSecurityPolicyEntryStateDeploymentStatusEnumValues Enumerates the set of values for SecurityPolicyEntryStateDeploymentStatusEnum @@ -56,6 +65,9 @@ func GetSecurityPolicyEntryStateDeploymentStatusEnumStringValues() []string { "CREATED", "MODIFIED", "CONFLICT", + "CONNECTIVITY_ISSUE", + "UNSUPPORTED_SYNTAX", + "UNKNOWN_ERROR", "UNAUTHORIZED", "DELETED", } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_entry_state_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_entry_state_summary.go index be5d45ece94..86340cc6b20 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_entry_state_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_entry_state_summary.go @@ -24,11 +24,23 @@ type SecurityPolicyEntryStateSummary struct { // The OCID of the security policy entry associated. SecurityPolicyEntryId *string `mandatory:"true" json:"securityPolicyEntryId"` + // The OCID of the target on which the security policy is deployed. + TargetId *string `mandatory:"true" json:"targetId"` + + // The security policy entry type. Allowed values: + // - FIREWALL_POLICY - The SQL Firewall policy entry type. + // - AUDIT_POLICY - The audit policy entry type. + // - CONFIG - Config changes deployment. + EntryType SecurityPolicyEntryStateSummaryEntryTypeEnum `mandatory:"true" json:"entryType"` + // The current deployment status of the security policy deployment and the security policy entry associated. DeploymentStatus SecurityPolicyEntryStateDeploymentStatusEnum `mandatory:"true" json:"deploymentStatus"` // The OCID of the security policy deployment associated. SecurityPolicyDeploymentId *string `mandatory:"false" json:"securityPolicyDeploymentId"` + + // Details about the current deployment status. + DeploymentStatusDetails *string `mandatory:"false" json:"deploymentStatusDetails"` } func (m SecurityPolicyEntryStateSummary) String() string { @@ -40,6 +52,9 @@ func (m SecurityPolicyEntryStateSummary) String() string { // Not recommended for calling this function directly func (m SecurityPolicyEntryStateSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingSecurityPolicyEntryStateSummaryEntryTypeEnum(string(m.EntryType)); !ok && m.EntryType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EntryType: %s. Supported values are: %s.", m.EntryType, strings.Join(GetSecurityPolicyEntryStateSummaryEntryTypeEnumStringValues(), ","))) + } if _, ok := GetMappingSecurityPolicyEntryStateDeploymentStatusEnum(string(m.DeploymentStatus)); !ok && m.DeploymentStatus != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DeploymentStatus: %s. Supported values are: %s.", m.DeploymentStatus, strings.Join(GetSecurityPolicyEntryStateDeploymentStatusEnumStringValues(), ","))) } @@ -49,3 +64,49 @@ func (m SecurityPolicyEntryStateSummary) ValidateEnumValue() (bool, error) { } return false, nil } + +// SecurityPolicyEntryStateSummaryEntryTypeEnum Enum with underlying type: string +type SecurityPolicyEntryStateSummaryEntryTypeEnum string + +// Set of constants representing the allowable values for SecurityPolicyEntryStateSummaryEntryTypeEnum +const ( + SecurityPolicyEntryStateSummaryEntryTypeFirewallPolicy SecurityPolicyEntryStateSummaryEntryTypeEnum = "FIREWALL_POLICY" + SecurityPolicyEntryStateSummaryEntryTypeAuditPolicy SecurityPolicyEntryStateSummaryEntryTypeEnum = "AUDIT_POLICY" + SecurityPolicyEntryStateSummaryEntryTypeConfig SecurityPolicyEntryStateSummaryEntryTypeEnum = "CONFIG" +) + +var mappingSecurityPolicyEntryStateSummaryEntryTypeEnum = map[string]SecurityPolicyEntryStateSummaryEntryTypeEnum{ + "FIREWALL_POLICY": SecurityPolicyEntryStateSummaryEntryTypeFirewallPolicy, + "AUDIT_POLICY": SecurityPolicyEntryStateSummaryEntryTypeAuditPolicy, + "CONFIG": SecurityPolicyEntryStateSummaryEntryTypeConfig, +} + +var mappingSecurityPolicyEntryStateSummaryEntryTypeEnumLowerCase = map[string]SecurityPolicyEntryStateSummaryEntryTypeEnum{ + "firewall_policy": SecurityPolicyEntryStateSummaryEntryTypeFirewallPolicy, + "audit_policy": SecurityPolicyEntryStateSummaryEntryTypeAuditPolicy, + "config": SecurityPolicyEntryStateSummaryEntryTypeConfig, +} + +// GetSecurityPolicyEntryStateSummaryEntryTypeEnumValues Enumerates the set of values for SecurityPolicyEntryStateSummaryEntryTypeEnum +func GetSecurityPolicyEntryStateSummaryEntryTypeEnumValues() []SecurityPolicyEntryStateSummaryEntryTypeEnum { + values := make([]SecurityPolicyEntryStateSummaryEntryTypeEnum, 0) + for _, v := range mappingSecurityPolicyEntryStateSummaryEntryTypeEnum { + values = append(values, v) + } + return values +} + +// GetSecurityPolicyEntryStateSummaryEntryTypeEnumStringValues Enumerates the set of values in String for SecurityPolicyEntryStateSummaryEntryTypeEnum +func GetSecurityPolicyEntryStateSummaryEntryTypeEnumStringValues() []string { + return []string{ + "FIREWALL_POLICY", + "AUDIT_POLICY", + "CONFIG", + } +} + +// GetMappingSecurityPolicyEntryStateSummaryEntryTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSecurityPolicyEntryStateSummaryEntryTypeEnum(val string) (SecurityPolicyEntryStateSummaryEntryTypeEnum, bool) { + enum, ok := mappingSecurityPolicyEntryStateSummaryEntryTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_summary.go index 311936d5460..00c38e324bf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/security_policy_summary.go @@ -36,6 +36,9 @@ type SecurityPolicySummary struct { // The description of the security policy. Description *string `mandatory:"false" json:"description"` + // The type of the security policy. + SecurityPolicyType SecurityPolicySecurityPolicyTypeEnum `mandatory:"false" json:"securityPolicyType,omitempty"` + // The last date and time the security policy was updated, in the format defined by RFC3339. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` @@ -68,6 +71,9 @@ func (m SecurityPolicySummary) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetSecurityPolicyLifecycleStateEnumStringValues(), ","))) } + if _, ok := GetMappingSecurityPolicySecurityPolicyTypeEnum(string(m.SecurityPolicyType)); !ok && m.SecurityPolicyType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SecurityPolicyType: %s. Supported values are: %s.", m.SecurityPolicyType, strings.Join(GetSecurityPolicySecurityPolicyTypeEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/start_audit_trail_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/start_audit_trail_details.go index c14d6d6c263..ba92c3359dd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/start_audit_trail_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/start_audit_trail_details.go @@ -24,6 +24,10 @@ type StartAuditTrailDetails struct { // Indicates if auto purge is enabled on the target database, which helps delete audit data in the // target database every seven days so that the database's audit trail does not become too large. IsAutoPurgeEnabled *bool `mandatory:"false" json:"isAutoPurgeEnabled"` + + // Indicates if the Datasafe updates last archive time on target database. If isAutoPurgeEnabled field + // is enabled, this field must be true. + CanUpdateLastArchiveTimeOnTarget *bool `mandatory:"false" json:"canUpdateLastArchiveTimeOnTarget"` } func (m StartAuditTrailDetails) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_database_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_database_group.go new file mode 100644 index 00000000000..ed7faf552a9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_database_group.go @@ -0,0 +1,83 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TargetDatabaseGroup The details of the target database group including matching criteria. Used for a single resource retrieval. +type TargetDatabaseGroup struct { + + // The OCID for the compartment containing the target database group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the specified target database group. + Id *string `mandatory:"true" json:"id"` + + // The name of the target database group. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The lifecycle status of the target database group. + LifecycleState TargetDatabaseGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + MatchingCriteria *MatchingCriteria `mandatory:"true" json:"matchingCriteria"` + + // Time when the target database group was created. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Time when the target database group was last updated. + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` + + // Time when the members of the target database group were last changed, i.e. the list was refreshed, a target database was added or removed. + MembershipUpdateTime *common.SDKTime `mandatory:"true" json:"membershipUpdateTime"` + + // The number of target databases in the specified target database group. + MembershipCount *int `mandatory:"true" json:"membershipCount"` + + // Description of the target database group. + Description *string `mandatory:"false" json:"description"` + + // Details for the lifecycle status of the target database group. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m TargetDatabaseGroup) 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 TargetDatabaseGroup) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTargetDatabaseGroupLifecycleStateEnum(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(GetTargetDatabaseGroupLifecycleStateEnumStringValues(), ","))) + } + + 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/datasafe/target_database_group_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_database_group_collection.go new file mode 100644 index 00000000000..4e447094067 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_database_group_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TargetDatabaseGroupCollection The results of a target database group search. Contains target database group summary details. +type TargetDatabaseGroupCollection struct { + + // An array of target database group summary items. + Items []TargetDatabaseGroupSummary `mandatory:"true" json:"items"` +} + +func (m TargetDatabaseGroupCollection) 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 TargetDatabaseGroupCollection) 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/datasafe/target_database_group_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_database_group_lifecycle_state.go new file mode 100644 index 00000000000..89ff82befa5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_database_group_lifecycle_state.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "strings" +) + +// TargetDatabaseGroupLifecycleStateEnum Enum with underlying type: string +type TargetDatabaseGroupLifecycleStateEnum string + +// Set of constants representing the allowable values for TargetDatabaseGroupLifecycleStateEnum +const ( + TargetDatabaseGroupLifecycleStateCreating TargetDatabaseGroupLifecycleStateEnum = "CREATING" + TargetDatabaseGroupLifecycleStateUpdating TargetDatabaseGroupLifecycleStateEnum = "UPDATING" + TargetDatabaseGroupLifecycleStateActive TargetDatabaseGroupLifecycleStateEnum = "ACTIVE" + TargetDatabaseGroupLifecycleStateDeleting TargetDatabaseGroupLifecycleStateEnum = "DELETING" + TargetDatabaseGroupLifecycleStateDeleted TargetDatabaseGroupLifecycleStateEnum = "DELETED" + TargetDatabaseGroupLifecycleStateFailed TargetDatabaseGroupLifecycleStateEnum = "FAILED" + TargetDatabaseGroupLifecycleStateNeedsAttention TargetDatabaseGroupLifecycleStateEnum = "NEEDS_ATTENTION" +) + +var mappingTargetDatabaseGroupLifecycleStateEnum = map[string]TargetDatabaseGroupLifecycleStateEnum{ + "CREATING": TargetDatabaseGroupLifecycleStateCreating, + "UPDATING": TargetDatabaseGroupLifecycleStateUpdating, + "ACTIVE": TargetDatabaseGroupLifecycleStateActive, + "DELETING": TargetDatabaseGroupLifecycleStateDeleting, + "DELETED": TargetDatabaseGroupLifecycleStateDeleted, + "FAILED": TargetDatabaseGroupLifecycleStateFailed, + "NEEDS_ATTENTION": TargetDatabaseGroupLifecycleStateNeedsAttention, +} + +var mappingTargetDatabaseGroupLifecycleStateEnumLowerCase = map[string]TargetDatabaseGroupLifecycleStateEnum{ + "creating": TargetDatabaseGroupLifecycleStateCreating, + "updating": TargetDatabaseGroupLifecycleStateUpdating, + "active": TargetDatabaseGroupLifecycleStateActive, + "deleting": TargetDatabaseGroupLifecycleStateDeleting, + "deleted": TargetDatabaseGroupLifecycleStateDeleted, + "failed": TargetDatabaseGroupLifecycleStateFailed, + "needs_attention": TargetDatabaseGroupLifecycleStateNeedsAttention, +} + +// GetTargetDatabaseGroupLifecycleStateEnumValues Enumerates the set of values for TargetDatabaseGroupLifecycleStateEnum +func GetTargetDatabaseGroupLifecycleStateEnumValues() []TargetDatabaseGroupLifecycleStateEnum { + values := make([]TargetDatabaseGroupLifecycleStateEnum, 0) + for _, v := range mappingTargetDatabaseGroupLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetTargetDatabaseGroupLifecycleStateEnumStringValues Enumerates the set of values in String for TargetDatabaseGroupLifecycleStateEnum +func GetTargetDatabaseGroupLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + "NEEDS_ATTENTION", + } +} + +// GetMappingTargetDatabaseGroupLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTargetDatabaseGroupLifecycleStateEnum(val string) (TargetDatabaseGroupLifecycleStateEnum, bool) { + enum, ok := mappingTargetDatabaseGroupLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_database_group_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_database_group_summary.go new file mode 100644 index 00000000000..c384f6a7547 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_database_group_summary.go @@ -0,0 +1,81 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TargetDatabaseGroupSummary Summary of the target database group used in list operations. Contains essential information without matching criteria. +type TargetDatabaseGroupSummary struct { + + // The OCID for the compartment containing the target database group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the specified target database group. + Id *string `mandatory:"true" json:"id"` + + // The name of the target database group. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The lifecycle status of the target database group. + LifecycleState TargetDatabaseGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Time when the target database group was created. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Time when the target database group was last updated. + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` + + // Time when the members of the target database group were last changed, i.e. the list was refreshed, a target database was added or removed. + MembershipUpdateTime *common.SDKTime `mandatory:"true" json:"membershipUpdateTime"` + + // The number of target databases in the specified target database group. + MembershipCount *int `mandatory:"true" json:"membershipCount"` + + // Description of the target database group. + Description *string `mandatory:"false" json:"description"` + + // Details for the lifecycle status of the target database group. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags (https://docs.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m TargetDatabaseGroupSummary) 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 TargetDatabaseGroupSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTargetDatabaseGroupLifecycleStateEnum(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(GetTargetDatabaseGroupLifecycleStateEnumStringValues(), ","))) + } + + 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/datasafe/target_override_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_override_collection.go new file mode 100644 index 00000000000..4713eaa0588 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_override_collection.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TargetOverrideCollection Collection of target override summary. +type TargetOverrideCollection struct { + + // Number of target databases within the target database group. + TargetsCount *int `mandatory:"true" json:"targetsCount"` + + // Number of target databases within the target database group that override the audit profile of the target database group. + TargetsOverridingCount *int `mandatory:"true" json:"targetsOverridingCount"` + + // Number of target databases within the target database group that conform with the audit profile of the target database group. + TargetsConformingCount *int `mandatory:"true" json:"targetsConformingCount"` + + // Number of target databases within the group that override the paid usage setting of the audit profile for the target database group. + TargetsOverridingPaidUsageCount *int `mandatory:"true" json:"targetsOverridingPaidUsageCount"` + + // Number of target databases within the group that override the online retention setting of the audit profile for the target database group. + TargetsOverridingOnlineMonthsCount *int `mandatory:"true" json:"targetsOverridingOnlineMonthsCount"` + + // Number of target databases within the group that override the offline retention setting of the audit profile for the target database group. + TargetsOverridingOfflineMonthsCount *int `mandatory:"true" json:"targetsOverridingOfflineMonthsCount"` + + // Array of target database override summary. + Items []TargetOverrideSummary `mandatory:"true" json:"items"` +} + +func (m TargetOverrideCollection) 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 TargetOverrideCollection) 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/datasafe/target_override_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_override_summary.go new file mode 100644 index 00000000000..d26b90a9865 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/target_override_summary.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TargetOverrideSummary Summary of the target database-specific profiles that override the audit profile of the target database group. +type TargetOverrideSummary struct { + + // The OCID of the target database that overrides from the audit profile of the target database group. + TargetDatabaseId *string `mandatory:"true" json:"targetDatabaseId"` + + // Indicates if you want to continue collecting audit records beyond the free limit of one million audit records per month per target database, + // potentially incurring additional charges. The default value is inherited from the global settings. + // You can change at the global level or at the target level. + IsPaidUsageEnabled *bool `mandatory:"true" json:"isPaidUsageEnabled"` + + // Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis. + // Minimum: 1; Maximum: 12 months + OnlineMonths *int `mandatory:"true" json:"onlineMonths"` + + // Number of months the audit records will be stored offline in the offline archive. + // Minimum: 0; Maximum: 72 months. + // If you have a requirement to store the audit data even longer (up to 168 months) in the offline archive, please contact the Oracle Support. + OfflineMonths *int `mandatory:"true" json:"offlineMonths"` + + // The name or the OCID of the resource from which the online month retention setting is sourced. For example a target database group OCID or global. + OnlineMonthsSource *string `mandatory:"false" json:"onlineMonthsSource"` + + // The name or the OCID of the resource from which the offline month retention setting is sourced. For example a target database group OCID or global. + OfflineMonthsSource *string `mandatory:"false" json:"offlineMonthsSource"` + + // The name or the OCID of the resource from which the paid usage setting is sourced. For example a target database group OCID or global. + PaidUsageSource *string `mandatory:"false" json:"paidUsageSource"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m TargetOverrideSummary) 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 TargetOverrideSummary) 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/datasafe/template_analytics_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_analytics_collection.go new file mode 100644 index 00000000000..c0fae135a92 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_analytics_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TemplateAnalyticsCollection The collection of template analytics summary. +type TemplateAnalyticsCollection struct { + + // The array of template analytics summary. + Items []TemplateAnalyticsSummary `mandatory:"true" json:"items"` +} + +func (m TemplateAnalyticsCollection) 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 TemplateAnalyticsCollection) 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/datasafe/template_analytics_dimensions.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_analytics_dimensions.go new file mode 100644 index 00000000000..29d8cbbb092 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_analytics_dimensions.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TemplateAnalyticsDimensions The scope of analytics data. +type TemplateAnalyticsDimensions struct { + + // The OCID of the security assessment of type TEMPLATE. + TemplateAssessmentId *string `mandatory:"false" json:"templateAssessmentId"` + + // The number of checks inside the template assessment. + TotalChecks *int `mandatory:"false" json:"totalChecks"` + + // The OCID of the security assessment of type TEMPLATE_BASELINE. + TemplateBaselineAssessmentId *string `mandatory:"false" json:"templateBaselineAssessmentId"` + + // The OCID of the target database. This field will be in the response if the template was applied on an individual target. + TargetId *string `mandatory:"false" json:"targetId"` + + // The OCID of the target database group that the group assessment is created for. + // This field will be in the response if the template was applied on a target group. + TargetDatabaseGroupId *string `mandatory:"false" json:"targetDatabaseGroupId"` + + // Indicates whether or not the template security assessment is applied to a target group. + // If the value is false, it means the template security assessment is applied to a individual target. + IsGroup *bool `mandatory:"false" json:"isGroup"` + + // Indicates whether or not the comparison between the latest assessment and the template baseline assessment is done. + // If the value is false, it means the comparison is not done yet. + IsCompared *bool `mandatory:"false" json:"isCompared"` + + // The date and time when the comparison was made upon the template baseline. Conforms to the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeLastCompared *common.SDKTime `mandatory:"false" json:"timeLastCompared"` + + // Indicates whether or not the latest assessment is compliant with the template baseline assessment. + // If the value is false, it means there is drift in the comparison report and the totalChecksFailed field will have a non-zero value. + IsCompliant *bool `mandatory:"false" json:"isCompliant"` + + // Indicates how many checks in the template have drifts in the comparison report. This field is only present if isCompliant is false. + TotalChecksFailed *int `mandatory:"false" json:"totalChecksFailed"` + + // The number of the target(s) inside the target group for which the template baseline assessment was created for. + // If the isGroup field is false, the value will be 1, representing the single target. + TotalTargets *int `mandatory:"false" json:"totalTargets"` + + // The number of the target(s) that have drifts in the comparison report. + // This field is only present if isCompared is true. + TotalNonCompliantTargets *int `mandatory:"false" json:"totalNonCompliantTargets"` +} + +func (m TemplateAnalyticsDimensions) 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 TemplateAnalyticsDimensions) 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/datasafe/template_analytics_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_analytics_summary.go new file mode 100644 index 00000000000..63de35c1492 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_analytics_summary.go @@ -0,0 +1,85 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TemplateAnalyticsSummary The summary of template analytics data. +type TemplateAnalyticsSummary struct { + + // The name of the aggregation metric. + MetricName TemplateAnalyticsSummaryMetricNameEnum `mandatory:"true" json:"metricName"` + + // The total count for the aggregation metric. + Count *int64 `mandatory:"true" json:"count"` + + Dimensions *TemplateAnalyticsDimensions `mandatory:"false" json:"dimensions"` +} + +func (m TemplateAnalyticsSummary) 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 TemplateAnalyticsSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTemplateAnalyticsSummaryMetricNameEnum(string(m.MetricName)); !ok && m.MetricName != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MetricName: %s. Supported values are: %s.", m.MetricName, strings.Join(GetTemplateAnalyticsSummaryMetricNameEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TemplateAnalyticsSummaryMetricNameEnum Enum with underlying type: string +type TemplateAnalyticsSummaryMetricNameEnum string + +// Set of constants representing the allowable values for TemplateAnalyticsSummaryMetricNameEnum +const ( + TemplateAnalyticsSummaryMetricNameTemplateStats TemplateAnalyticsSummaryMetricNameEnum = "TEMPLATE_STATS" +) + +var mappingTemplateAnalyticsSummaryMetricNameEnum = map[string]TemplateAnalyticsSummaryMetricNameEnum{ + "TEMPLATE_STATS": TemplateAnalyticsSummaryMetricNameTemplateStats, +} + +var mappingTemplateAnalyticsSummaryMetricNameEnumLowerCase = map[string]TemplateAnalyticsSummaryMetricNameEnum{ + "template_stats": TemplateAnalyticsSummaryMetricNameTemplateStats, +} + +// GetTemplateAnalyticsSummaryMetricNameEnumValues Enumerates the set of values for TemplateAnalyticsSummaryMetricNameEnum +func GetTemplateAnalyticsSummaryMetricNameEnumValues() []TemplateAnalyticsSummaryMetricNameEnum { + values := make([]TemplateAnalyticsSummaryMetricNameEnum, 0) + for _, v := range mappingTemplateAnalyticsSummaryMetricNameEnum { + values = append(values, v) + } + return values +} + +// GetTemplateAnalyticsSummaryMetricNameEnumStringValues Enumerates the set of values in String for TemplateAnalyticsSummaryMetricNameEnum +func GetTemplateAnalyticsSummaryMetricNameEnumStringValues() []string { + return []string{ + "TEMPLATE_STATS", + } +} + +// GetMappingTemplateAnalyticsSummaryMetricNameEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTemplateAnalyticsSummaryMetricNameEnum(val string) (TemplateAnalyticsSummaryMetricNameEnum, bool) { + enum, ok := mappingTemplateAnalyticsSummaryMetricNameEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_association_analytics_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_association_analytics_collection.go new file mode 100644 index 00000000000..b4889d9ea6e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_association_analytics_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TemplateAssociationAnalyticsCollection The collection of template association analytics summary. +type TemplateAssociationAnalyticsCollection struct { + + // The array of template association analytics summary. + Items []TemplateAssociationAnalyticsSummary `mandatory:"true" json:"items"` +} + +func (m TemplateAssociationAnalyticsCollection) 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 TemplateAssociationAnalyticsCollection) 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/datasafe/template_association_analytics_dimensions.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_association_analytics_dimensions.go new file mode 100644 index 00000000000..286bc12a467 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_association_analytics_dimensions.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TemplateAssociationAnalyticsDimensions The scope of template association analytics data. +type TemplateAssociationAnalyticsDimensions struct { + + // The OCID of the security assessment of type TEMPLATE. + TemplateAssessmentId *string `mandatory:"false" json:"templateAssessmentId"` + + // The OCID of the security assessment of type TEMPLATE_BASELINE. + TemplateBaselineAssessmentId *string `mandatory:"false" json:"templateBaselineAssessmentId"` + + // The OCID of the target database group that the group assessment is created for. + // This field will be in the response if the template was applied on a target group. + TargetDatabaseGroupId *string `mandatory:"false" json:"targetDatabaseGroupId"` + + // The OCID of the target database. + // If the template was applied on a target group, this field will be the OCID of the target members of the target group. + // If the template was applied on an individual target, this field will contain that targetId. + TargetId *string `mandatory:"false" json:"targetId"` +} + +func (m TemplateAssociationAnalyticsDimensions) 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 TemplateAssociationAnalyticsDimensions) 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/datasafe/template_association_analytics_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_association_analytics_summary.go new file mode 100644 index 00000000000..fc3290b0797 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_association_analytics_summary.go @@ -0,0 +1,85 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TemplateAssociationAnalyticsSummary The summary of template association analytics data. +type TemplateAssociationAnalyticsSummary struct { + + // The name of the aggregation metric. + MetricName TemplateAssociationAnalyticsSummaryMetricNameEnum `mandatory:"true" json:"metricName"` + + // The total count for the aggregation metric. + Count *int64 `mandatory:"true" json:"count"` + + Dimensions *TemplateAssociationAnalyticsDimensions `mandatory:"false" json:"dimensions"` +} + +func (m TemplateAssociationAnalyticsSummary) 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 TemplateAssociationAnalyticsSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTemplateAssociationAnalyticsSummaryMetricNameEnum(string(m.MetricName)); !ok && m.MetricName != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MetricName: %s. Supported values are: %s.", m.MetricName, strings.Join(GetTemplateAssociationAnalyticsSummaryMetricNameEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TemplateAssociationAnalyticsSummaryMetricNameEnum Enum with underlying type: string +type TemplateAssociationAnalyticsSummaryMetricNameEnum string + +// Set of constants representing the allowable values for TemplateAssociationAnalyticsSummaryMetricNameEnum +const ( + TemplateAssociationAnalyticsSummaryMetricNameTemplateAssociationStats TemplateAssociationAnalyticsSummaryMetricNameEnum = "TEMPLATE_ASSOCIATION_STATS" +) + +var mappingTemplateAssociationAnalyticsSummaryMetricNameEnum = map[string]TemplateAssociationAnalyticsSummaryMetricNameEnum{ + "TEMPLATE_ASSOCIATION_STATS": TemplateAssociationAnalyticsSummaryMetricNameTemplateAssociationStats, +} + +var mappingTemplateAssociationAnalyticsSummaryMetricNameEnumLowerCase = map[string]TemplateAssociationAnalyticsSummaryMetricNameEnum{ + "template_association_stats": TemplateAssociationAnalyticsSummaryMetricNameTemplateAssociationStats, +} + +// GetTemplateAssociationAnalyticsSummaryMetricNameEnumValues Enumerates the set of values for TemplateAssociationAnalyticsSummaryMetricNameEnum +func GetTemplateAssociationAnalyticsSummaryMetricNameEnumValues() []TemplateAssociationAnalyticsSummaryMetricNameEnum { + values := make([]TemplateAssociationAnalyticsSummaryMetricNameEnum, 0) + for _, v := range mappingTemplateAssociationAnalyticsSummaryMetricNameEnum { + values = append(values, v) + } + return values +} + +// GetTemplateAssociationAnalyticsSummaryMetricNameEnumStringValues Enumerates the set of values in String for TemplateAssociationAnalyticsSummaryMetricNameEnum +func GetTemplateAssociationAnalyticsSummaryMetricNameEnumStringValues() []string { + return []string{ + "TEMPLATE_ASSOCIATION_STATS", + } +} + +// GetMappingTemplateAssociationAnalyticsSummaryMetricNameEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTemplateAssociationAnalyticsSummaryMetricNameEnum(val string) (TemplateAssociationAnalyticsSummaryMetricNameEnum, bool) { + enum, ok := mappingTemplateAssociationAnalyticsSummaryMetricNameEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_baseline_diffs.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_baseline_diffs.go new file mode 100644 index 00000000000..06b11b5ec6b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_baseline_diffs.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TemplateBaselineDiffs Results of the comparison of an item between two security assessments. +type TemplateBaselineDiffs struct { + Baseline *Finding `mandatory:"false" json:"baseline"` + + // A target-based comparison between two security assessments. + Targets []TemplateBaselineDiffsPerTarget `mandatory:"false" json:"targets"` +} + +func (m TemplateBaselineDiffs) 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 TemplateBaselineDiffs) 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/datasafe/template_baseline_diffs_per_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_baseline_diffs_per_target.go new file mode 100644 index 00000000000..98e6c2833c7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/template_baseline_diffs_per_target.go @@ -0,0 +1,113 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TemplateBaselineDiffsPerTarget The results of the comparison between two security assessment resources, and one of them is TEMPLATE_BASELINE type. +type TemplateBaselineDiffsPerTarget struct { + + // The OCID of the target database. + TargetId *string `mandatory:"false" json:"targetId"` + + // A unique identifier for the finding. This is common for the finding across targets. + Key *string `mandatory:"false" json:"key"` + + // The short title for the finding. + Title *string `mandatory:"false" json:"title"` + + // The severity of this diff. + Severity TemplateBaselineDiffsPerTargetSeverityEnum `mandatory:"false" json:"severity,omitempty"` +} + +func (m TemplateBaselineDiffsPerTarget) 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 TemplateBaselineDiffsPerTarget) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingTemplateBaselineDiffsPerTargetSeverityEnum(string(m.Severity)); !ok && m.Severity != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", m.Severity, strings.Join(GetTemplateBaselineDiffsPerTargetSeverityEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TemplateBaselineDiffsPerTargetSeverityEnum Enum with underlying type: string +type TemplateBaselineDiffsPerTargetSeverityEnum string + +// Set of constants representing the allowable values for TemplateBaselineDiffsPerTargetSeverityEnum +const ( + TemplateBaselineDiffsPerTargetSeverityHigh TemplateBaselineDiffsPerTargetSeverityEnum = "HIGH" + TemplateBaselineDiffsPerTargetSeverityMedium TemplateBaselineDiffsPerTargetSeverityEnum = "MEDIUM" + TemplateBaselineDiffsPerTargetSeverityLow TemplateBaselineDiffsPerTargetSeverityEnum = "LOW" + TemplateBaselineDiffsPerTargetSeverityEvaluate TemplateBaselineDiffsPerTargetSeverityEnum = "EVALUATE" + TemplateBaselineDiffsPerTargetSeverityAdvisory TemplateBaselineDiffsPerTargetSeverityEnum = "ADVISORY" + TemplateBaselineDiffsPerTargetSeverityPass TemplateBaselineDiffsPerTargetSeverityEnum = "PASS" + TemplateBaselineDiffsPerTargetSeverityDeferred TemplateBaselineDiffsPerTargetSeverityEnum = "DEFERRED" +) + +var mappingTemplateBaselineDiffsPerTargetSeverityEnum = map[string]TemplateBaselineDiffsPerTargetSeverityEnum{ + "HIGH": TemplateBaselineDiffsPerTargetSeverityHigh, + "MEDIUM": TemplateBaselineDiffsPerTargetSeverityMedium, + "LOW": TemplateBaselineDiffsPerTargetSeverityLow, + "EVALUATE": TemplateBaselineDiffsPerTargetSeverityEvaluate, + "ADVISORY": TemplateBaselineDiffsPerTargetSeverityAdvisory, + "PASS": TemplateBaselineDiffsPerTargetSeverityPass, + "DEFERRED": TemplateBaselineDiffsPerTargetSeverityDeferred, +} + +var mappingTemplateBaselineDiffsPerTargetSeverityEnumLowerCase = map[string]TemplateBaselineDiffsPerTargetSeverityEnum{ + "high": TemplateBaselineDiffsPerTargetSeverityHigh, + "medium": TemplateBaselineDiffsPerTargetSeverityMedium, + "low": TemplateBaselineDiffsPerTargetSeverityLow, + "evaluate": TemplateBaselineDiffsPerTargetSeverityEvaluate, + "advisory": TemplateBaselineDiffsPerTargetSeverityAdvisory, + "pass": TemplateBaselineDiffsPerTargetSeverityPass, + "deferred": TemplateBaselineDiffsPerTargetSeverityDeferred, +} + +// GetTemplateBaselineDiffsPerTargetSeverityEnumValues Enumerates the set of values for TemplateBaselineDiffsPerTargetSeverityEnum +func GetTemplateBaselineDiffsPerTargetSeverityEnumValues() []TemplateBaselineDiffsPerTargetSeverityEnum { + values := make([]TemplateBaselineDiffsPerTargetSeverityEnum, 0) + for _, v := range mappingTemplateBaselineDiffsPerTargetSeverityEnum { + values = append(values, v) + } + return values +} + +// GetTemplateBaselineDiffsPerTargetSeverityEnumStringValues Enumerates the set of values in String for TemplateBaselineDiffsPerTargetSeverityEnum +func GetTemplateBaselineDiffsPerTargetSeverityEnumStringValues() []string { + return []string{ + "HIGH", + "MEDIUM", + "LOW", + "EVALUATE", + "ADVISORY", + "PASS", + "DEFERRED", + } +} + +// GetMappingTemplateBaselineDiffsPerTargetSeverityEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTemplateBaselineDiffsPerTargetSeverityEnum(val string) (TemplateBaselineDiffsPerTargetSeverityEnum, bool) { + enum, ok := mappingTemplateBaselineDiffsPerTargetSeverityEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy.go new file mode 100644 index 00000000000..6ca67df0cdf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy.go @@ -0,0 +1,274 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UnifiedAuditPolicy Resource represents a single unified audit policy on the target database. +type UnifiedAuditPolicy struct { + + // The OCID of the unified audit policy. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the unified audit policy. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The display name of the unified audit policy. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The current state of the unified audit policy. + LifecycleState UnifiedAuditPolicyLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The time the the unified audit policy was created, in the format defined by RFC3339. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The description of the unified audit policy. + Description *string `mandatory:"false" json:"description"` + + // The OCID of the security policy corresponding to the unified audit policy. + SecurityPolicyId *string `mandatory:"false" json:"securityPolicyId"` + + // The OCID of the associated unified audit policy definition. + UnifiedAuditPolicyDefinitionId *string `mandatory:"false" json:"unifiedAuditPolicyDefinitionId"` + + // The details of the current state of the unified audit policy in Data Safe. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // Indicates whether the unified audit policy is seeded or not. + IsSeeded *bool `mandatory:"false" json:"isSeeded"` + + // Indicates whether the policy has been enabled or disabled. + Status UnifiedAuditPolicyStatusEnum `mandatory:"false" json:"status,omitempty"` + + // Indicates on whom the audit policy is enabled. + EnabledEntities UnifiedAuditPolicyEnabledEntitiesEnum `mandatory:"false" json:"enabledEntities,omitempty"` + + // Lists the audit policy provisioning conditions. + Conditions []PolicyCondition `mandatory:"false" json:"conditions"` + + // The last date and time the unified audit policy was updated, in the format defined by RFC3339. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m UnifiedAuditPolicy) 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 UnifiedAuditPolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingUnifiedAuditPolicyLifecycleStateEnum(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(GetUnifiedAuditPolicyLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingUnifiedAuditPolicyStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetUnifiedAuditPolicyStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingUnifiedAuditPolicyEnabledEntitiesEnum(string(m.EnabledEntities)); !ok && m.EnabledEntities != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EnabledEntities: %s. Supported values are: %s.", m.EnabledEntities, strings.Join(GetUnifiedAuditPolicyEnabledEntitiesEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *UnifiedAuditPolicy) UnmarshalJSON(data []byte) (e error) { + model := struct { + Description *string `json:"description"` + SecurityPolicyId *string `json:"securityPolicyId"` + UnifiedAuditPolicyDefinitionId *string `json:"unifiedAuditPolicyDefinitionId"` + LifecycleDetails *string `json:"lifecycleDetails"` + IsSeeded *bool `json:"isSeeded"` + Status UnifiedAuditPolicyStatusEnum `json:"status"` + EnabledEntities UnifiedAuditPolicyEnabledEntitiesEnum `json:"enabledEntities"` + Conditions []policycondition `json:"conditions"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + Id *string `json:"id"` + CompartmentId *string `json:"compartmentId"` + DisplayName *string `json:"displayName"` + LifecycleState UnifiedAuditPolicyLifecycleStateEnum `json:"lifecycleState"` + TimeCreated *common.SDKTime `json:"timeCreated"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Description = model.Description + + m.SecurityPolicyId = model.SecurityPolicyId + + m.UnifiedAuditPolicyDefinitionId = model.UnifiedAuditPolicyDefinitionId + + m.LifecycleDetails = model.LifecycleDetails + + m.IsSeeded = model.IsSeeded + + m.Status = model.Status + + m.EnabledEntities = model.EnabledEntities + + m.Conditions = make([]PolicyCondition, len(model.Conditions)) + for i, n := range model.Conditions { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Conditions[i] = nn.(PolicyCondition) + } else { + m.Conditions[i] = nil + } + } + m.TimeUpdated = model.TimeUpdated + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.SystemTags = model.SystemTags + + m.Id = model.Id + + m.CompartmentId = model.CompartmentId + + m.DisplayName = model.DisplayName + + m.LifecycleState = model.LifecycleState + + m.TimeCreated = model.TimeCreated + + return +} + +// UnifiedAuditPolicyStatusEnum Enum with underlying type: string +type UnifiedAuditPolicyStatusEnum string + +// Set of constants representing the allowable values for UnifiedAuditPolicyStatusEnum +const ( + UnifiedAuditPolicyStatusEnabled UnifiedAuditPolicyStatusEnum = "ENABLED" + UnifiedAuditPolicyStatusDisabled UnifiedAuditPolicyStatusEnum = "DISABLED" +) + +var mappingUnifiedAuditPolicyStatusEnum = map[string]UnifiedAuditPolicyStatusEnum{ + "ENABLED": UnifiedAuditPolicyStatusEnabled, + "DISABLED": UnifiedAuditPolicyStatusDisabled, +} + +var mappingUnifiedAuditPolicyStatusEnumLowerCase = map[string]UnifiedAuditPolicyStatusEnum{ + "enabled": UnifiedAuditPolicyStatusEnabled, + "disabled": UnifiedAuditPolicyStatusDisabled, +} + +// GetUnifiedAuditPolicyStatusEnumValues Enumerates the set of values for UnifiedAuditPolicyStatusEnum +func GetUnifiedAuditPolicyStatusEnumValues() []UnifiedAuditPolicyStatusEnum { + values := make([]UnifiedAuditPolicyStatusEnum, 0) + for _, v := range mappingUnifiedAuditPolicyStatusEnum { + values = append(values, v) + } + return values +} + +// GetUnifiedAuditPolicyStatusEnumStringValues Enumerates the set of values in String for UnifiedAuditPolicyStatusEnum +func GetUnifiedAuditPolicyStatusEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingUnifiedAuditPolicyStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUnifiedAuditPolicyStatusEnum(val string) (UnifiedAuditPolicyStatusEnum, bool) { + enum, ok := mappingUnifiedAuditPolicyStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UnifiedAuditPolicyEnabledEntitiesEnum Enum with underlying type: string +type UnifiedAuditPolicyEnabledEntitiesEnum string + +// Set of constants representing the allowable values for UnifiedAuditPolicyEnabledEntitiesEnum +const ( + UnifiedAuditPolicyEnabledEntitiesAllUsers UnifiedAuditPolicyEnabledEntitiesEnum = "ALL_USERS" + UnifiedAuditPolicyEnabledEntitiesIncludeUsers UnifiedAuditPolicyEnabledEntitiesEnum = "INCLUDE_USERS" + UnifiedAuditPolicyEnabledEntitiesIncludeRoles UnifiedAuditPolicyEnabledEntitiesEnum = "INCLUDE_ROLES" + UnifiedAuditPolicyEnabledEntitiesExcludeUsers UnifiedAuditPolicyEnabledEntitiesEnum = "EXCLUDE_USERS" + UnifiedAuditPolicyEnabledEntitiesIncludeUsersRoles UnifiedAuditPolicyEnabledEntitiesEnum = "INCLUDE_USERS_ROLES" + UnifiedAuditPolicyEnabledEntitiesDisabled UnifiedAuditPolicyEnabledEntitiesEnum = "DISABLED" +) + +var mappingUnifiedAuditPolicyEnabledEntitiesEnum = map[string]UnifiedAuditPolicyEnabledEntitiesEnum{ + "ALL_USERS": UnifiedAuditPolicyEnabledEntitiesAllUsers, + "INCLUDE_USERS": UnifiedAuditPolicyEnabledEntitiesIncludeUsers, + "INCLUDE_ROLES": UnifiedAuditPolicyEnabledEntitiesIncludeRoles, + "EXCLUDE_USERS": UnifiedAuditPolicyEnabledEntitiesExcludeUsers, + "INCLUDE_USERS_ROLES": UnifiedAuditPolicyEnabledEntitiesIncludeUsersRoles, + "DISABLED": UnifiedAuditPolicyEnabledEntitiesDisabled, +} + +var mappingUnifiedAuditPolicyEnabledEntitiesEnumLowerCase = map[string]UnifiedAuditPolicyEnabledEntitiesEnum{ + "all_users": UnifiedAuditPolicyEnabledEntitiesAllUsers, + "include_users": UnifiedAuditPolicyEnabledEntitiesIncludeUsers, + "include_roles": UnifiedAuditPolicyEnabledEntitiesIncludeRoles, + "exclude_users": UnifiedAuditPolicyEnabledEntitiesExcludeUsers, + "include_users_roles": UnifiedAuditPolicyEnabledEntitiesIncludeUsersRoles, + "disabled": UnifiedAuditPolicyEnabledEntitiesDisabled, +} + +// GetUnifiedAuditPolicyEnabledEntitiesEnumValues Enumerates the set of values for UnifiedAuditPolicyEnabledEntitiesEnum +func GetUnifiedAuditPolicyEnabledEntitiesEnumValues() []UnifiedAuditPolicyEnabledEntitiesEnum { + values := make([]UnifiedAuditPolicyEnabledEntitiesEnum, 0) + for _, v := range mappingUnifiedAuditPolicyEnabledEntitiesEnum { + values = append(values, v) + } + return values +} + +// GetUnifiedAuditPolicyEnabledEntitiesEnumStringValues Enumerates the set of values in String for UnifiedAuditPolicyEnabledEntitiesEnum +func GetUnifiedAuditPolicyEnabledEntitiesEnumStringValues() []string { + return []string{ + "ALL_USERS", + "INCLUDE_USERS", + "INCLUDE_ROLES", + "EXCLUDE_USERS", + "INCLUDE_USERS_ROLES", + "DISABLED", + } +} + +// GetMappingUnifiedAuditPolicyEnabledEntitiesEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUnifiedAuditPolicyEnabledEntitiesEnum(val string) (UnifiedAuditPolicyEnabledEntitiesEnum, bool) { + enum, ok := mappingUnifiedAuditPolicyEnabledEntitiesEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_collection.go new file mode 100644 index 00000000000..d09dfa251d7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UnifiedAuditPolicyCollection Collection of audit policy summaries. +type UnifiedAuditPolicyCollection struct { + + // Array of audit policy summaries. + Items []UnifiedAuditPolicySummary `mandatory:"true" json:"items"` +} + +func (m UnifiedAuditPolicyCollection) 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 UnifiedAuditPolicyCollection) 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/datasafe/unified_audit_policy_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_config.go new file mode 100644 index 00000000000..299ef5055c7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_config.go @@ -0,0 +1,84 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UnifiedAuditPolicyConfig The unified audit policy related configurations. +type UnifiedAuditPolicyConfig struct { + + // Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy. + ExcludeDatasafeUser UnifiedAuditPolicyConfigExcludeDatasafeUserEnum `mandatory:"true" json:"excludeDatasafeUser"` +} + +func (m UnifiedAuditPolicyConfig) 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 UnifiedAuditPolicyConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingUnifiedAuditPolicyConfigExcludeDatasafeUserEnum(string(m.ExcludeDatasafeUser)); !ok && m.ExcludeDatasafeUser != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ExcludeDatasafeUser: %s. Supported values are: %s.", m.ExcludeDatasafeUser, strings.Join(GetUnifiedAuditPolicyConfigExcludeDatasafeUserEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnifiedAuditPolicyConfigExcludeDatasafeUserEnum Enum with underlying type: string +type UnifiedAuditPolicyConfigExcludeDatasafeUserEnum string + +// Set of constants representing the allowable values for UnifiedAuditPolicyConfigExcludeDatasafeUserEnum +const ( + UnifiedAuditPolicyConfigExcludeDatasafeUserEnabled UnifiedAuditPolicyConfigExcludeDatasafeUserEnum = "ENABLED" + UnifiedAuditPolicyConfigExcludeDatasafeUserDisabled UnifiedAuditPolicyConfigExcludeDatasafeUserEnum = "DISABLED" +) + +var mappingUnifiedAuditPolicyConfigExcludeDatasafeUserEnum = map[string]UnifiedAuditPolicyConfigExcludeDatasafeUserEnum{ + "ENABLED": UnifiedAuditPolicyConfigExcludeDatasafeUserEnabled, + "DISABLED": UnifiedAuditPolicyConfigExcludeDatasafeUserDisabled, +} + +var mappingUnifiedAuditPolicyConfigExcludeDatasafeUserEnumLowerCase = map[string]UnifiedAuditPolicyConfigExcludeDatasafeUserEnum{ + "enabled": UnifiedAuditPolicyConfigExcludeDatasafeUserEnabled, + "disabled": UnifiedAuditPolicyConfigExcludeDatasafeUserDisabled, +} + +// GetUnifiedAuditPolicyConfigExcludeDatasafeUserEnumValues Enumerates the set of values for UnifiedAuditPolicyConfigExcludeDatasafeUserEnum +func GetUnifiedAuditPolicyConfigExcludeDatasafeUserEnumValues() []UnifiedAuditPolicyConfigExcludeDatasafeUserEnum { + values := make([]UnifiedAuditPolicyConfigExcludeDatasafeUserEnum, 0) + for _, v := range mappingUnifiedAuditPolicyConfigExcludeDatasafeUserEnum { + values = append(values, v) + } + return values +} + +// GetUnifiedAuditPolicyConfigExcludeDatasafeUserEnumStringValues Enumerates the set of values in String for UnifiedAuditPolicyConfigExcludeDatasafeUserEnum +func GetUnifiedAuditPolicyConfigExcludeDatasafeUserEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingUnifiedAuditPolicyConfigExcludeDatasafeUserEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUnifiedAuditPolicyConfigExcludeDatasafeUserEnum(val string) (UnifiedAuditPolicyConfigExcludeDatasafeUserEnum, bool) { + enum, ok := mappingUnifiedAuditPolicyConfigExcludeDatasafeUserEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_config_details.go new file mode 100644 index 00000000000..fb68d78a082 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_config_details.go @@ -0,0 +1,84 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UnifiedAuditPolicyConfigDetails The unified audit policy related configurations. +type UnifiedAuditPolicyConfigDetails struct { + + // Specifies whether the Data Safe service account on the target database should be excluded in the unified audit policy. + ExcludeDatasafeUser UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum `mandatory:"false" json:"excludeDatasafeUser,omitempty"` +} + +func (m UnifiedAuditPolicyConfigDetails) 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 UnifiedAuditPolicyConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum(string(m.ExcludeDatasafeUser)); !ok && m.ExcludeDatasafeUser != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ExcludeDatasafeUser: %s. Supported values are: %s.", m.ExcludeDatasafeUser, strings.Join(GetUnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum Enum with underlying type: string +type UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum string + +// Set of constants representing the allowable values for UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum +const ( + UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnabled UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum = "ENABLED" + UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserDisabled UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum = "DISABLED" +) + +var mappingUnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum = map[string]UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum{ + "ENABLED": UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnabled, + "DISABLED": UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserDisabled, +} + +var mappingUnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnumLowerCase = map[string]UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum{ + "enabled": UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnabled, + "disabled": UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserDisabled, +} + +// GetUnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnumValues Enumerates the set of values for UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum +func GetUnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnumValues() []UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum { + values := make([]UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum, 0) + for _, v := range mappingUnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum { + values = append(values, v) + } + return values +} + +// GetUnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnumStringValues Enumerates the set of values in String for UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum +func GetUnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingUnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum(val string) (UnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnum, bool) { + enum, ok := mappingUnifiedAuditPolicyConfigDetailsExcludeDatasafeUserEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_definition.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_definition.go new file mode 100644 index 00000000000..6f6fb12073c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_definition.go @@ -0,0 +1,152 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UnifiedAuditPolicyDefinition Resource represents a single unified audit policy definition. +type UnifiedAuditPolicyDefinition struct { + + // The OCID of the unified audit policy definition. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the unified audit policy definition. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The display name of the unified audit policy definition. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The current state of the unified audit policy definition. + LifecycleState UnifiedAuditPolicyDefinitionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The time the unified audit policy was created, in the format defined by RFC3339. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The description of the unified audit policy definition. + Description *string `mandatory:"false" json:"description"` + + // Details about the current state of the unified audit policy definition. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The unified audit policy name in the target database. + PolicyName *string `mandatory:"false" json:"policyName"` + + // Signifies whether the unified audit policy definition is seeded or not. + IsSeeded *bool `mandatory:"false" json:"isSeeded"` + + // The category to which the unified audit policy belongs in the target database. + AuditPolicyCategory UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum `mandatory:"false" json:"auditPolicyCategory,omitempty"` + + // The last date and time the unified audit policy was updated, in the format defined by RFC3339. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // The definition of the unified audit policy to be provisioned in the target database. + PolicyDefinitionStatement *string `mandatory:"false" json:"policyDefinitionStatement"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m UnifiedAuditPolicyDefinition) 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 UnifiedAuditPolicyDefinition) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingUnifiedAuditPolicyDefinitionLifecycleStateEnum(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(GetUnifiedAuditPolicyDefinitionLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum(string(m.AuditPolicyCategory)); !ok && m.AuditPolicyCategory != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AuditPolicyCategory: %s. Supported values are: %s.", m.AuditPolicyCategory, strings.Join(GetUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum Enum with underlying type: string +type UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum string + +// Set of constants representing the allowable values for UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum +const ( + UnifiedAuditPolicyDefinitionAuditPolicyCategoryBasicActivity UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum = "BASIC_ACTIVITY" + UnifiedAuditPolicyDefinitionAuditPolicyCategoryAdminUserActivity UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum = "ADMIN_USER_ACTIVITY" + UnifiedAuditPolicyDefinitionAuditPolicyCategoryUserActivity UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum = "USER_ACTIVITY" + UnifiedAuditPolicyDefinitionAuditPolicyCategoryOraclePredefined UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum = "ORACLE_PREDEFINED" + UnifiedAuditPolicyDefinitionAuditPolicyCategoryComplianceStandard UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum = "COMPLIANCE_STANDARD" + UnifiedAuditPolicyDefinitionAuditPolicyCategorySqlFirewallAuditing UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum = "SQL_FIREWALL_AUDITING" + UnifiedAuditPolicyDefinitionAuditPolicyCategoryCustom UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum = "CUSTOM" +) + +var mappingUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum = map[string]UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum{ + "BASIC_ACTIVITY": UnifiedAuditPolicyDefinitionAuditPolicyCategoryBasicActivity, + "ADMIN_USER_ACTIVITY": UnifiedAuditPolicyDefinitionAuditPolicyCategoryAdminUserActivity, + "USER_ACTIVITY": UnifiedAuditPolicyDefinitionAuditPolicyCategoryUserActivity, + "ORACLE_PREDEFINED": UnifiedAuditPolicyDefinitionAuditPolicyCategoryOraclePredefined, + "COMPLIANCE_STANDARD": UnifiedAuditPolicyDefinitionAuditPolicyCategoryComplianceStandard, + "SQL_FIREWALL_AUDITING": UnifiedAuditPolicyDefinitionAuditPolicyCategorySqlFirewallAuditing, + "CUSTOM": UnifiedAuditPolicyDefinitionAuditPolicyCategoryCustom, +} + +var mappingUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnumLowerCase = map[string]UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum{ + "basic_activity": UnifiedAuditPolicyDefinitionAuditPolicyCategoryBasicActivity, + "admin_user_activity": UnifiedAuditPolicyDefinitionAuditPolicyCategoryAdminUserActivity, + "user_activity": UnifiedAuditPolicyDefinitionAuditPolicyCategoryUserActivity, + "oracle_predefined": UnifiedAuditPolicyDefinitionAuditPolicyCategoryOraclePredefined, + "compliance_standard": UnifiedAuditPolicyDefinitionAuditPolicyCategoryComplianceStandard, + "sql_firewall_auditing": UnifiedAuditPolicyDefinitionAuditPolicyCategorySqlFirewallAuditing, + "custom": UnifiedAuditPolicyDefinitionAuditPolicyCategoryCustom, +} + +// GetUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnumValues Enumerates the set of values for UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum +func GetUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnumValues() []UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum { + values := make([]UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum, 0) + for _, v := range mappingUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum { + values = append(values, v) + } + return values +} + +// GetUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnumStringValues Enumerates the set of values in String for UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum +func GetUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnumStringValues() []string { + return []string{ + "BASIC_ACTIVITY", + "ADMIN_USER_ACTIVITY", + "USER_ACTIVITY", + "ORACLE_PREDEFINED", + "COMPLIANCE_STANDARD", + "SQL_FIREWALL_AUDITING", + "CUSTOM", + } +} + +// GetMappingUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum(val string) (UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum, bool) { + enum, ok := mappingUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_definition_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_definition_collection.go new file mode 100644 index 00000000000..8009dbf8781 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_definition_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UnifiedAuditPolicyDefinitionCollection Collection of audit policy summary. +type UnifiedAuditPolicyDefinitionCollection struct { + + // Array of audit policy summary. + Items []UnifiedAuditPolicyDefinitionSummary `mandatory:"true" json:"items"` +} + +func (m UnifiedAuditPolicyDefinitionCollection) 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 UnifiedAuditPolicyDefinitionCollection) 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/datasafe/unified_audit_policy_definition_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_definition_lifecycle_state.go new file mode 100644 index 00000000000..158c0c46cd4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_definition_lifecycle_state.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "strings" +) + +// UnifiedAuditPolicyDefinitionLifecycleStateEnum Enum with underlying type: string +type UnifiedAuditPolicyDefinitionLifecycleStateEnum string + +// Set of constants representing the allowable values for UnifiedAuditPolicyDefinitionLifecycleStateEnum +const ( + UnifiedAuditPolicyDefinitionLifecycleStateCreating UnifiedAuditPolicyDefinitionLifecycleStateEnum = "CREATING" + UnifiedAuditPolicyDefinitionLifecycleStateUpdating UnifiedAuditPolicyDefinitionLifecycleStateEnum = "UPDATING" + UnifiedAuditPolicyDefinitionLifecycleStateActive UnifiedAuditPolicyDefinitionLifecycleStateEnum = "ACTIVE" + UnifiedAuditPolicyDefinitionLifecycleStateInactive UnifiedAuditPolicyDefinitionLifecycleStateEnum = "INACTIVE" + UnifiedAuditPolicyDefinitionLifecycleStateFailed UnifiedAuditPolicyDefinitionLifecycleStateEnum = "FAILED" + UnifiedAuditPolicyDefinitionLifecycleStateDeleting UnifiedAuditPolicyDefinitionLifecycleStateEnum = "DELETING" + UnifiedAuditPolicyDefinitionLifecycleStateNeedsAttention UnifiedAuditPolicyDefinitionLifecycleStateEnum = "NEEDS_ATTENTION" +) + +var mappingUnifiedAuditPolicyDefinitionLifecycleStateEnum = map[string]UnifiedAuditPolicyDefinitionLifecycleStateEnum{ + "CREATING": UnifiedAuditPolicyDefinitionLifecycleStateCreating, + "UPDATING": UnifiedAuditPolicyDefinitionLifecycleStateUpdating, + "ACTIVE": UnifiedAuditPolicyDefinitionLifecycleStateActive, + "INACTIVE": UnifiedAuditPolicyDefinitionLifecycleStateInactive, + "FAILED": UnifiedAuditPolicyDefinitionLifecycleStateFailed, + "DELETING": UnifiedAuditPolicyDefinitionLifecycleStateDeleting, + "NEEDS_ATTENTION": UnifiedAuditPolicyDefinitionLifecycleStateNeedsAttention, +} + +var mappingUnifiedAuditPolicyDefinitionLifecycleStateEnumLowerCase = map[string]UnifiedAuditPolicyDefinitionLifecycleStateEnum{ + "creating": UnifiedAuditPolicyDefinitionLifecycleStateCreating, + "updating": UnifiedAuditPolicyDefinitionLifecycleStateUpdating, + "active": UnifiedAuditPolicyDefinitionLifecycleStateActive, + "inactive": UnifiedAuditPolicyDefinitionLifecycleStateInactive, + "failed": UnifiedAuditPolicyDefinitionLifecycleStateFailed, + "deleting": UnifiedAuditPolicyDefinitionLifecycleStateDeleting, + "needs_attention": UnifiedAuditPolicyDefinitionLifecycleStateNeedsAttention, +} + +// GetUnifiedAuditPolicyDefinitionLifecycleStateEnumValues Enumerates the set of values for UnifiedAuditPolicyDefinitionLifecycleStateEnum +func GetUnifiedAuditPolicyDefinitionLifecycleStateEnumValues() []UnifiedAuditPolicyDefinitionLifecycleStateEnum { + values := make([]UnifiedAuditPolicyDefinitionLifecycleStateEnum, 0) + for _, v := range mappingUnifiedAuditPolicyDefinitionLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetUnifiedAuditPolicyDefinitionLifecycleStateEnumStringValues Enumerates the set of values in String for UnifiedAuditPolicyDefinitionLifecycleStateEnum +func GetUnifiedAuditPolicyDefinitionLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "INACTIVE", + "FAILED", + "DELETING", + "NEEDS_ATTENTION", + } +} + +// GetMappingUnifiedAuditPolicyDefinitionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUnifiedAuditPolicyDefinitionLifecycleStateEnum(val string) (UnifiedAuditPolicyDefinitionLifecycleStateEnum, bool) { + enum, ok := mappingUnifiedAuditPolicyDefinitionLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_definition_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_definition_summary.go new file mode 100644 index 00000000000..d856af05215 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_definition_summary.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UnifiedAuditPolicyDefinitionSummary Resource represents a single unified audit policy definition. +type UnifiedAuditPolicyDefinitionSummary struct { + + // The OCID of the unified audit policy definition. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the unified audit policy definition. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The display name of the unified audit policy definition. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The current state of the unified audit policy definition. + LifecycleState UnifiedAuditPolicyDefinitionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The time the unified audit policy was created, in the format defined by RFC3339. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The description of the unified audit policy definition. + Description *string `mandatory:"false" json:"description"` + + // Details about the current state of the unified audit policy definition. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The unified audit policy name in the target database. + PolicyName *string `mandatory:"false" json:"policyName"` + + // Signifies whether the unified audit policy definition is seeded or not. + IsSeeded *bool `mandatory:"false" json:"isSeeded"` + + // The category to which the unified audit policy belongs. + AuditPolicyCategory UnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum `mandatory:"false" json:"auditPolicyCategory,omitempty"` + + // The last date and time the unified audit policy was updated, in the format defined by RFC3339. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // The unified audit policy definition that will be provisioned in the target database. + PolicyDefinitionStatement *string `mandatory:"false" json:"policyDefinitionStatement"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m UnifiedAuditPolicyDefinitionSummary) 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 UnifiedAuditPolicyDefinitionSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingUnifiedAuditPolicyDefinitionLifecycleStateEnum(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(GetUnifiedAuditPolicyDefinitionLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnum(string(m.AuditPolicyCategory)); !ok && m.AuditPolicyCategory != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AuditPolicyCategory: %s. Supported values are: %s.", m.AuditPolicyCategory, strings.Join(GetUnifiedAuditPolicyDefinitionAuditPolicyCategoryEnumStringValues(), ","))) + } + 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/datasafe/unified_audit_policy_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_lifecycle_state.go new file mode 100644 index 00000000000..84ef4482745 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_lifecycle_state.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "strings" +) + +// UnifiedAuditPolicyLifecycleStateEnum Enum with underlying type: string +type UnifiedAuditPolicyLifecycleStateEnum string + +// Set of constants representing the allowable values for UnifiedAuditPolicyLifecycleStateEnum +const ( + UnifiedAuditPolicyLifecycleStateCreating UnifiedAuditPolicyLifecycleStateEnum = "CREATING" + UnifiedAuditPolicyLifecycleStateUpdating UnifiedAuditPolicyLifecycleStateEnum = "UPDATING" + UnifiedAuditPolicyLifecycleStateActive UnifiedAuditPolicyLifecycleStateEnum = "ACTIVE" + UnifiedAuditPolicyLifecycleStateInactive UnifiedAuditPolicyLifecycleStateEnum = "INACTIVE" + UnifiedAuditPolicyLifecycleStateFailed UnifiedAuditPolicyLifecycleStateEnum = "FAILED" + UnifiedAuditPolicyLifecycleStateDeleting UnifiedAuditPolicyLifecycleStateEnum = "DELETING" + UnifiedAuditPolicyLifecycleStateNeedsAttention UnifiedAuditPolicyLifecycleStateEnum = "NEEDS_ATTENTION" + UnifiedAuditPolicyLifecycleStateDeleted UnifiedAuditPolicyLifecycleStateEnum = "DELETED" +) + +var mappingUnifiedAuditPolicyLifecycleStateEnum = map[string]UnifiedAuditPolicyLifecycleStateEnum{ + "CREATING": UnifiedAuditPolicyLifecycleStateCreating, + "UPDATING": UnifiedAuditPolicyLifecycleStateUpdating, + "ACTIVE": UnifiedAuditPolicyLifecycleStateActive, + "INACTIVE": UnifiedAuditPolicyLifecycleStateInactive, + "FAILED": UnifiedAuditPolicyLifecycleStateFailed, + "DELETING": UnifiedAuditPolicyLifecycleStateDeleting, + "NEEDS_ATTENTION": UnifiedAuditPolicyLifecycleStateNeedsAttention, + "DELETED": UnifiedAuditPolicyLifecycleStateDeleted, +} + +var mappingUnifiedAuditPolicyLifecycleStateEnumLowerCase = map[string]UnifiedAuditPolicyLifecycleStateEnum{ + "creating": UnifiedAuditPolicyLifecycleStateCreating, + "updating": UnifiedAuditPolicyLifecycleStateUpdating, + "active": UnifiedAuditPolicyLifecycleStateActive, + "inactive": UnifiedAuditPolicyLifecycleStateInactive, + "failed": UnifiedAuditPolicyLifecycleStateFailed, + "deleting": UnifiedAuditPolicyLifecycleStateDeleting, + "needs_attention": UnifiedAuditPolicyLifecycleStateNeedsAttention, + "deleted": UnifiedAuditPolicyLifecycleStateDeleted, +} + +// GetUnifiedAuditPolicyLifecycleStateEnumValues Enumerates the set of values for UnifiedAuditPolicyLifecycleStateEnum +func GetUnifiedAuditPolicyLifecycleStateEnumValues() []UnifiedAuditPolicyLifecycleStateEnum { + values := make([]UnifiedAuditPolicyLifecycleStateEnum, 0) + for _, v := range mappingUnifiedAuditPolicyLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetUnifiedAuditPolicyLifecycleStateEnumStringValues Enumerates the set of values in String for UnifiedAuditPolicyLifecycleStateEnum +func GetUnifiedAuditPolicyLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "INACTIVE", + "FAILED", + "DELETING", + "NEEDS_ATTENTION", + "DELETED", + } +} + +// GetMappingUnifiedAuditPolicyLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUnifiedAuditPolicyLifecycleStateEnum(val string) (UnifiedAuditPolicyLifecycleStateEnum, bool) { + enum, ok := mappingUnifiedAuditPolicyLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_summary.go new file mode 100644 index 00000000000..c68329f2240 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/unified_audit_policy_summary.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UnifiedAuditPolicySummary Resource represents a single unified audit policy on the target database. +type UnifiedAuditPolicySummary struct { + + // The OCID of the unified audit policy. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the unified audit policy. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The display name of the unified audit policy. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The current state of the unified audit policy. + LifecycleState UnifiedAuditPolicyLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The time the the unified audit policy was created, in the format defined by RFC3339. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The description of the unified audit policy. + Description *string `mandatory:"false" json:"description"` + + // The OCID of the security policy corresponding to the unified audit policy. + SecurityPolicyId *string `mandatory:"false" json:"securityPolicyId"` + + // The OCID of the associated unified audit policy definition. + UnifiedAuditPolicyDefinitionId *string `mandatory:"false" json:"unifiedAuditPolicyDefinitionId"` + + // The details of the current state of the unified audit policy in Data Safe. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // Signifies whether the unified audit policy is seeded or not. + IsSeeded *bool `mandatory:"false" json:"isSeeded"` + + // Indicates whether the policy has been enabled or disabled. + Status UnifiedAuditPolicyStatusEnum `mandatory:"false" json:"status,omitempty"` + + // Indicates the users for which the unified audit policy is enabled. + EnabledEntities UnifiedAuditPolicyEnabledEntitiesEnum `mandatory:"false" json:"enabledEntities,omitempty"` + + // The last date and time the unified audit policy was updated, in the format defined by RFC3339. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m UnifiedAuditPolicySummary) 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 UnifiedAuditPolicySummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingUnifiedAuditPolicyLifecycleStateEnum(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(GetUnifiedAuditPolicyLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingUnifiedAuditPolicyStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetUnifiedAuditPolicyStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingUnifiedAuditPolicyEnabledEntitiesEnum(string(m.EnabledEntities)); !ok && m.EnabledEntities != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EnabledEntities: %s. Supported values are: %s.", m.EnabledEntities, strings.Join(GetUnifiedAuditPolicyEnabledEntitiesEnumStringValues(), ","))) + } + 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/datasafe/update_attribute_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_attribute_set_details.go new file mode 100644 index 00000000000..cb6e3c5b5ef --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_attribute_set_details.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateAttributeSetDetails Details to update an attribute set. +type UpdateAttributeSetDetails struct { + + // The display name of an attribute set. The name does not have to be unique, and is changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The description of an attribute set. + Description *string `mandatory:"false" json:"description"` + + // The list of attribute set values that will replace existing values. + AttributeSetValues []string `mandatory:"false" json:"attributeSetValues"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateAttributeSetDetails) 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 UpdateAttributeSetDetails) 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/datasafe/update_attribute_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_attribute_set_request_response.go new file mode 100644 index 00000000000..6dd5657bfc7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_attribute_set_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateAttributeSetRequest wrapper for the UpdateAttributeSet operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/UpdateAttributeSet.go.html to see an example of how to use UpdateAttributeSetRequest. +type UpdateAttributeSetRequest struct { + + // OCID of an attribute set. + AttributeSetId *string `mandatory:"true" contributesTo:"path" name:"attributeSetId"` + + // Details to update an Attribute set. + UpdateAttributeSetDetails `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 UpdateAttributeSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateAttributeSetRequest) 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 UpdateAttributeSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateAttributeSetRequest) 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 UpdateAttributeSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateAttributeSetResponse wrapper for the UpdateAttributeSet operation +type UpdateAttributeSetResponse 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"` + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response UpdateAttributeSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateAttributeSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_audit_profile_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_audit_profile_details.go index 253cc6a5a72..94dac8cb9c8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_audit_profile_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_audit_profile_details.go @@ -15,7 +15,7 @@ import ( "strings" ) -// UpdateAuditProfileDetails The details used to update a audit profile. +// UpdateAuditProfileDetails The details used to update the audit profile. type UpdateAuditProfileDetails struct { // The description of the audit profile. @@ -29,6 +29,11 @@ type UpdateAuditProfileDetails struct { // You can change at the global level or at the target level. IsPaidUsageEnabled *bool `mandatory:"false" json:"isPaidUsageEnabled"` + // Indicates whether audit paid usage settings specified at the target database level override both the global settings and the target group level paid usage settings. + // Enabling paid usage continues the collection of audit records beyond the free limit of one million audit records per month per target database, + // potentially incurring additional charges. For more information, see Data Safe Price List (https://www.oracle.com/cloud/price-list/#data-safe). + IsOverrideGlobalPaidUsage *bool `mandatory:"false" json:"isOverrideGlobalPaidUsage"` + // 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_audit_trail_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_audit_trail_details.go index a9f062a15cc..0d79d2a5ecb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_audit_trail_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_audit_trail_details.go @@ -28,6 +28,10 @@ type UpdateAuditTrailDetails struct { // target database every seven days so that the database's audit trail does not become too large. IsAutoPurgeEnabled *bool `mandatory:"false" json:"isAutoPurgeEnabled"` + // Indicates if the Datasafe updates last archive time on target database. If isAutoPurgeEnabled field + // is enabled, this field must be true. + CanUpdateLastArchiveTimeOnTarget *bool `mandatory:"false" json:"canUpdateLastArchiveTimeOnTarget"` + // 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_security_policy_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_security_policy_config_details.go new file mode 100644 index 00000000000..2ccdb57f124 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_security_policy_config_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateSecurityPolicyConfigDetails The details to update the security policy configuration. +type UpdateSecurityPolicyConfigDetails struct { + + // The display name of the security policy configuration. The name does not have to be unique, and it is changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The description of the security policy configuration. + Description *string `mandatory:"false" json:"description"` + + FirewallConfig *FirewallConfigDetails `mandatory:"false" json:"firewallConfig"` + + UnifiedAuditPolicyConfig *UnifiedAuditPolicyConfigDetails `mandatory:"false" json:"unifiedAuditPolicyConfig"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateSecurityPolicyConfigDetails) 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 UpdateSecurityPolicyConfigDetails) 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/datasafe/update_security_policy_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_security_policy_config_request_response.go new file mode 100644 index 00000000000..5251c6c26e0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_security_policy_config_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateSecurityPolicyConfigRequest wrapper for the UpdateSecurityPolicyConfig operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/UpdateSecurityPolicyConfig.go.html to see an example of how to use UpdateSecurityPolicyConfigRequest. +type UpdateSecurityPolicyConfigRequest struct { + + // The OCID of the security policy configuration resource. + SecurityPolicyConfigId *string `mandatory:"true" contributesTo:"path" name:"securityPolicyConfigId"` + + // Details to update the security policy configuration. + UpdateSecurityPolicyConfigDetails `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 UpdateSecurityPolicyConfigRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateSecurityPolicyConfigRequest) 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 UpdateSecurityPolicyConfigRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateSecurityPolicyConfigRequest) 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 UpdateSecurityPolicyConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateSecurityPolicyConfigResponse wrapper for the UpdateSecurityPolicyConfig operation +type UpdateSecurityPolicyConfigResponse 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"` + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response UpdateSecurityPolicyConfigResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateSecurityPolicyConfigResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_target_database_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_target_database_group_details.go new file mode 100644 index 00000000000..ad9f5a4ec0f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_target_database_group_details.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateTargetDatabaseGroupDetails The information required to update the target database group. +type UpdateTargetDatabaseGroupDetails struct { + + // The name of the target database group. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Description of the target database group. + Description *string `mandatory:"false" json:"description"` + + MatchingCriteria *MatchingCriteria `mandatory:"false" json:"matchingCriteria"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateTargetDatabaseGroupDetails) 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 UpdateTargetDatabaseGroupDetails) 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/datasafe/update_target_database_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_target_database_group_request_response.go new file mode 100644 index 00000000000..51001119cbb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_target_database_group_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateTargetDatabaseGroupRequest wrapper for the UpdateTargetDatabaseGroup operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/UpdateTargetDatabaseGroup.go.html to see an example of how to use UpdateTargetDatabaseGroupRequest. +type UpdateTargetDatabaseGroupRequest struct { + + // The OCID of the specified target database group. + TargetDatabaseGroupId *string `mandatory:"true" contributesTo:"path" name:"targetDatabaseGroupId"` + + // Details used to update the target database group. + UpdateTargetDatabaseGroupDetails `contributesTo:"body"` + + // Unique identifier for the request. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the if-match parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // 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 UpdateTargetDatabaseGroupRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateTargetDatabaseGroupRequest) 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 UpdateTargetDatabaseGroupRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateTargetDatabaseGroupRequest) 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 UpdateTargetDatabaseGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateTargetDatabaseGroupResponse wrapper for the UpdateTargetDatabaseGroup operation +type UpdateTargetDatabaseGroupResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateTargetDatabaseGroupResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateTargetDatabaseGroupResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_unified_audit_policy_definition_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_unified_audit_policy_definition_details.go new file mode 100644 index 00000000000..44fba58220a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_unified_audit_policy_definition_details.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateUnifiedAuditPolicyDefinitionDetails Details to update the audit policy. +type UpdateUnifiedAuditPolicyDefinitionDetails struct { + + // The display name of the audit policy. The name does not have to be unique, and it is changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The description of the audit policy. + Description *string `mandatory:"false" json:"description"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateUnifiedAuditPolicyDefinitionDetails) 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 UpdateUnifiedAuditPolicyDefinitionDetails) 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/datasafe/update_unified_audit_policy_definition_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_unified_audit_policy_definition_request_response.go new file mode 100644 index 00000000000..19870c5d04d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_unified_audit_policy_definition_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateUnifiedAuditPolicyDefinitionRequest wrapper for the UpdateUnifiedAuditPolicyDefinition operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/UpdateUnifiedAuditPolicyDefinition.go.html to see an example of how to use UpdateUnifiedAuditPolicyDefinitionRequest. +type UpdateUnifiedAuditPolicyDefinitionRequest struct { + + // The OCID of the unified audit policy definition resource. + UnifiedAuditPolicyDefinitionId *string `mandatory:"true" contributesTo:"path" name:"unifiedAuditPolicyDefinitionId"` + + // Details to update the unified audit policy definition. + UpdateUnifiedAuditPolicyDefinitionDetails `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 UpdateUnifiedAuditPolicyDefinitionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateUnifiedAuditPolicyDefinitionRequest) 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 UpdateUnifiedAuditPolicyDefinitionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateUnifiedAuditPolicyDefinitionRequest) 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 UpdateUnifiedAuditPolicyDefinitionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateUnifiedAuditPolicyDefinitionResponse wrapper for the UpdateUnifiedAuditPolicyDefinition operation +type UpdateUnifiedAuditPolicyDefinitionResponse 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"` + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response UpdateUnifiedAuditPolicyDefinitionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateUnifiedAuditPolicyDefinitionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_unified_audit_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_unified_audit_policy_details.go new file mode 100644 index 00000000000..9182ae8f6f5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_unified_audit_policy_details.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateUnifiedAuditPolicyDetails The details required to create a new unified audit policy. +type UpdateUnifiedAuditPolicyDetails struct { + + // The display name of the unified audit policy in Data Safe. The name is modifiable and does not need to be unique. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The description of the unified audit policy in Data Safe. + Description *string `mandatory:"false" json:"description"` + + // Indicates whether the policy has been enabled or disabled. + Status UnifiedAuditPolicyStatusEnum `mandatory:"false" json:"status,omitempty"` + + // Lists the audit policy provisioning conditions. + Conditions []PolicyCondition `mandatory:"false" json:"conditions"` + + // 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.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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateUnifiedAuditPolicyDetails) 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 UpdateUnifiedAuditPolicyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUnifiedAuditPolicyStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetUnifiedAuditPolicyStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *UpdateUnifiedAuditPolicyDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + Description *string `json:"description"` + Status UnifiedAuditPolicyStatusEnum `json:"status"` + Conditions []policycondition `json:"conditions"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.Description = model.Description + + m.Status = model.Status + + m.Conditions = make([]PolicyCondition, len(model.Conditions)) + for i, n := range model.Conditions { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Conditions[i] = nn.(PolicyCondition) + } else { + m.Conditions[i] = nil + } + } + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_unified_audit_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_unified_audit_policy_request_response.go new file mode 100644 index 00000000000..b4fc70d9bda --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/update_unified_audit_policy_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2025, 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 datasafe + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateUnifiedAuditPolicyRequest wrapper for the UpdateUnifiedAuditPolicy operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/datasafe/UpdateUnifiedAuditPolicy.go.html to see an example of how to use UpdateUnifiedAuditPolicyRequest. +type UpdateUnifiedAuditPolicyRequest struct { + + // The OCID of the Unified Audit policy resource. + UnifiedAuditPolicyId *string `mandatory:"true" contributesTo:"path" name:"unifiedAuditPolicyId"` + + // Details required to update the Unified Audit policy. + UpdateUnifiedAuditPolicyDetails `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 UpdateUnifiedAuditPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateUnifiedAuditPolicyRequest) 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 UpdateUnifiedAuditPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateUnifiedAuditPolicyRequest) 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 UpdateUnifiedAuditPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateUnifiedAuditPolicyResponse wrapper for the UpdateUnifiedAuditPolicy operation +type UpdateUnifiedAuditPolicyResponse 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"` + + // The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response UpdateUnifiedAuditPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateUnifiedAuditPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_assessment.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_assessment.go index 09b1d914221..57b9e39a3f1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_assessment.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_assessment.go @@ -74,6 +74,12 @@ type UserAssessment struct { // Indicates whether the assessment is scheduled to run. IsAssessmentScheduled *bool `mandatory:"false" json:"isAssessmentScheduled"` + // The OCID of target database group. + TargetDatabaseGroupId *string `mandatory:"false" json:"targetDatabaseGroupId"` + + // Indicates whether the user assessment is for a target database or a target database group. + TargetType UserAssessmentTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + // Schedule of the assessment that runs periodically in this specified format: // ; // Allowed version strings - "v1" @@ -131,6 +137,9 @@ func (m UserAssessment) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetUserAssessmentTypeEnumStringValues(), ","))) } + if _, ok := GetMappingUserAssessmentTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetUserAssessmentTargetTypeEnumStringValues(), ","))) + } if _, ok := GetMappingUserAssessmentTriggeredByEnum(string(m.TriggeredBy)); !ok && m.TriggeredBy != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TriggeredBy: %s. Supported values are: %s.", m.TriggeredBy, strings.Join(GetUserAssessmentTriggeredByEnumStringValues(), ","))) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_assessment_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_assessment_summary.go index 761250573f3..59d6014ab1a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_assessment_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_assessment_summary.go @@ -64,6 +64,12 @@ type UserAssessmentSummary struct { // The OCID of the last user assessment baseline against which the latest assessment was compared. LastComparedBaselineId *string `mandatory:"false" json:"lastComparedBaselineId"` + // The OCID of target database group. + TargetDatabaseGroupId *string `mandatory:"false" json:"targetDatabaseGroupId"` + + // Indicates whether the user assessment is for a target database or a target database group. + TargetType UserAssessmentTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + // Details about the current state of the user assessment. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` @@ -126,6 +132,9 @@ func (m UserAssessmentSummary) ValidateEnumValue() (bool, error) { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetUserAssessmentSummaryTypeEnumStringValues(), ","))) } + if _, ok := GetMappingUserAssessmentTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetUserAssessmentTargetTypeEnumStringValues(), ","))) + } if _, ok := GetMappingUserAssessmentSummaryTriggeredByEnum(string(m.TriggeredBy)); !ok && m.TriggeredBy != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TriggeredBy: %s. Supported values are: %s.", m.TriggeredBy, strings.Join(GetUserAssessmentSummaryTriggeredByEnumStringValues(), ","))) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_assessment_target_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_assessment_target_type.go new file mode 100644 index 00000000000..9c0e6f60803 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_assessment_target_type.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "strings" +) + +// UserAssessmentTargetTypeEnum Enum with underlying type: string +type UserAssessmentTargetTypeEnum string + +// Set of constants representing the allowable values for UserAssessmentTargetTypeEnum +const ( + UserAssessmentTargetTypeTargetDatabase UserAssessmentTargetTypeEnum = "TARGET_DATABASE" + UserAssessmentTargetTypeTargetDatabaseGroup UserAssessmentTargetTypeEnum = "TARGET_DATABASE_GROUP" +) + +var mappingUserAssessmentTargetTypeEnum = map[string]UserAssessmentTargetTypeEnum{ + "TARGET_DATABASE": UserAssessmentTargetTypeTargetDatabase, + "TARGET_DATABASE_GROUP": UserAssessmentTargetTypeTargetDatabaseGroup, +} + +var mappingUserAssessmentTargetTypeEnumLowerCase = map[string]UserAssessmentTargetTypeEnum{ + "target_database": UserAssessmentTargetTypeTargetDatabase, + "target_database_group": UserAssessmentTargetTypeTargetDatabaseGroup, +} + +// GetUserAssessmentTargetTypeEnumValues Enumerates the set of values for UserAssessmentTargetTypeEnum +func GetUserAssessmentTargetTypeEnumValues() []UserAssessmentTargetTypeEnum { + values := make([]UserAssessmentTargetTypeEnum, 0) + for _, v := range mappingUserAssessmentTargetTypeEnum { + values = append(values, v) + } + return values +} + +// GetUserAssessmentTargetTypeEnumStringValues Enumerates the set of values in String for UserAssessmentTargetTypeEnum +func GetUserAssessmentTargetTypeEnumStringValues() []string { + return []string{ + "TARGET_DATABASE", + "TARGET_DATABASE_GROUP", + } +} + +// GetMappingUserAssessmentTargetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUserAssessmentTargetTypeEnum(val string) (UserAssessmentTargetTypeEnum, bool) { + enum, ok := mappingUserAssessmentTargetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_condition.go new file mode 100644 index 00000000000..a323c723035 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_condition.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, 2025, 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 Safe API +// +// APIs for using Oracle Data Safe. +// + +package datasafe + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UserCondition The audit policy provisioning conditions. +type UserCondition struct { + + // The list of users that the unified audit policy is enabled for. + UserNames []string `mandatory:"true" json:"userNames"` + + // Specifies whether to include or exclude the specified users or roles. + EntitySelection PolicyConditionEntitySelectionEnum `mandatory:"true" json:"entitySelection"` + + // The operation status that the policy must be enabled for. + OperationStatus PolicyConditionOperationStatusEnum `mandatory:"true" json:"operationStatus"` +} + +// GetEntitySelection returns EntitySelection +func (m UserCondition) GetEntitySelection() PolicyConditionEntitySelectionEnum { + return m.EntitySelection +} + +// GetOperationStatus returns OperationStatus +func (m UserCondition) GetOperationStatus() PolicyConditionOperationStatusEnum { + return m.OperationStatus +} + +func (m UserCondition) 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 UserCondition) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPolicyConditionEntitySelectionEnum(string(m.EntitySelection)); !ok && m.EntitySelection != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EntitySelection: %s. Supported values are: %s.", m.EntitySelection, strings.Join(GetPolicyConditionEntitySelectionEnumStringValues(), ","))) + } + if _, ok := GetMappingPolicyConditionOperationStatusEnum(string(m.OperationStatus)); !ok && m.OperationStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationStatus: %s. Supported values are: %s.", m.OperationStatus, strings.Join(GetPolicyConditionOperationStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m UserCondition) MarshalJSON() (buff []byte, e error) { + type MarshalTypeUserCondition UserCondition + s := struct { + DiscriminatorParam string `json:"entityType"` + MarshalTypeUserCondition + }{ + "USER", + (MarshalTypeUserCondition)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_summary.go index 27fef39525f..29178dc90ce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/user_summary.go @@ -164,27 +164,45 @@ type UserSummaryAccountStatusEnum string // Set of constants representing the allowable values for UserSummaryAccountStatusEnum const ( - UserSummaryAccountStatusOpen UserSummaryAccountStatusEnum = "OPEN" - UserSummaryAccountStatusLocked UserSummaryAccountStatusEnum = "LOCKED" - UserSummaryAccountStatusExpired UserSummaryAccountStatusEnum = "EXPIRED" - UserSummaryAccountStatusExpiredAndLocked UserSummaryAccountStatusEnum = "EXPIRED_AND_LOCKED" - UserSummaryAccountStatusNone UserSummaryAccountStatusEnum = "NONE" + UserSummaryAccountStatusOpen UserSummaryAccountStatusEnum = "OPEN" + UserSummaryAccountStatusLocked UserSummaryAccountStatusEnum = "LOCKED" + UserSummaryAccountStatusExpired UserSummaryAccountStatusEnum = "EXPIRED" + UserSummaryAccountStatusExpiredAndLocked UserSummaryAccountStatusEnum = "EXPIRED_AND_LOCKED" + UserSummaryAccountStatusOpenAndInRollover UserSummaryAccountStatusEnum = "OPEN_AND_IN_ROLLOVER" + UserSummaryAccountStatusExpiredAndInRollover UserSummaryAccountStatusEnum = "EXPIRED_AND_IN_ROLLOVER" + UserSummaryAccountStatusLockedAndInRollover UserSummaryAccountStatusEnum = "LOCKED_AND_IN_ROLLOVER" + UserSummaryAccountStatusExpiredAndLockedAndInRollover UserSummaryAccountStatusEnum = "EXPIRED_AND_LOCKED_AND_IN_ROLLOVER" + UserSummaryAccountStatusLockedTimedAndInRollover UserSummaryAccountStatusEnum = "LOCKED_TIMED_AND_IN_ROLLOVER" + UserSummaryAccountStatusExpiredAndLockedTimedAndInRol UserSummaryAccountStatusEnum = "EXPIRED_AND_LOCKED_TIMED_AND_IN_ROL" + UserSummaryAccountStatusNone UserSummaryAccountStatusEnum = "NONE" ) var mappingUserSummaryAccountStatusEnum = map[string]UserSummaryAccountStatusEnum{ - "OPEN": UserSummaryAccountStatusOpen, - "LOCKED": UserSummaryAccountStatusLocked, - "EXPIRED": UserSummaryAccountStatusExpired, - "EXPIRED_AND_LOCKED": UserSummaryAccountStatusExpiredAndLocked, - "NONE": UserSummaryAccountStatusNone, + "OPEN": UserSummaryAccountStatusOpen, + "LOCKED": UserSummaryAccountStatusLocked, + "EXPIRED": UserSummaryAccountStatusExpired, + "EXPIRED_AND_LOCKED": UserSummaryAccountStatusExpiredAndLocked, + "OPEN_AND_IN_ROLLOVER": UserSummaryAccountStatusOpenAndInRollover, + "EXPIRED_AND_IN_ROLLOVER": UserSummaryAccountStatusExpiredAndInRollover, + "LOCKED_AND_IN_ROLLOVER": UserSummaryAccountStatusLockedAndInRollover, + "EXPIRED_AND_LOCKED_AND_IN_ROLLOVER": UserSummaryAccountStatusExpiredAndLockedAndInRollover, + "LOCKED_TIMED_AND_IN_ROLLOVER": UserSummaryAccountStatusLockedTimedAndInRollover, + "EXPIRED_AND_LOCKED_TIMED_AND_IN_ROL": UserSummaryAccountStatusExpiredAndLockedTimedAndInRol, + "NONE": UserSummaryAccountStatusNone, } var mappingUserSummaryAccountStatusEnumLowerCase = map[string]UserSummaryAccountStatusEnum{ - "open": UserSummaryAccountStatusOpen, - "locked": UserSummaryAccountStatusLocked, - "expired": UserSummaryAccountStatusExpired, - "expired_and_locked": UserSummaryAccountStatusExpiredAndLocked, - "none": UserSummaryAccountStatusNone, + "open": UserSummaryAccountStatusOpen, + "locked": UserSummaryAccountStatusLocked, + "expired": UserSummaryAccountStatusExpired, + "expired_and_locked": UserSummaryAccountStatusExpiredAndLocked, + "open_and_in_rollover": UserSummaryAccountStatusOpenAndInRollover, + "expired_and_in_rollover": UserSummaryAccountStatusExpiredAndInRollover, + "locked_and_in_rollover": UserSummaryAccountStatusLockedAndInRollover, + "expired_and_locked_and_in_rollover": UserSummaryAccountStatusExpiredAndLockedAndInRollover, + "locked_timed_and_in_rollover": UserSummaryAccountStatusLockedTimedAndInRollover, + "expired_and_locked_timed_and_in_rol": UserSummaryAccountStatusExpiredAndLockedTimedAndInRol, + "none": UserSummaryAccountStatusNone, } // GetUserSummaryAccountStatusEnumValues Enumerates the set of values for UserSummaryAccountStatusEnum @@ -203,6 +221,12 @@ func GetUserSummaryAccountStatusEnumStringValues() []string { "LOCKED", "EXPIRED", "EXPIRED_AND_LOCKED", + "OPEN_AND_IN_ROLLOVER", + "EXPIRED_AND_IN_ROLLOVER", + "LOCKED_AND_IN_ROLLOVER", + "EXPIRED_AND_LOCKED_AND_IN_ROLLOVER", + "LOCKED_TIMED_AND_IN_ROLLOVER", + "EXPIRED_AND_LOCKED_TIMED_AND_IN_ROL", "NONE", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/work_request.go index e388659d6b6..814fe6f9716 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/work_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/work_request.go @@ -73,453 +73,573 @@ type WorkRequestOperationTypeEnum string // Set of constants representing the allowable values for WorkRequestOperationTypeEnum const ( - WorkRequestOperationTypeEnableDataSafeConfiguration WorkRequestOperationTypeEnum = "ENABLE_DATA_SAFE_CONFIGURATION" - WorkRequestOperationTypeCreatePrivateEndpoint WorkRequestOperationTypeEnum = "CREATE_PRIVATE_ENDPOINT" - WorkRequestOperationTypeUpdatePrivateEndpoint WorkRequestOperationTypeEnum = "UPDATE_PRIVATE_ENDPOINT" - WorkRequestOperationTypeDeletePrivateEndpoint WorkRequestOperationTypeEnum = "DELETE_PRIVATE_ENDPOINT" - WorkRequestOperationTypeChangePrivateEndpointCompartment WorkRequestOperationTypeEnum = "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT" - WorkRequestOperationTypeCreateOnpremConnector WorkRequestOperationTypeEnum = "CREATE_ONPREM_CONNECTOR" - WorkRequestOperationTypeUpdateOnpremConnector WorkRequestOperationTypeEnum = "UPDATE_ONPREM_CONNECTOR" - WorkRequestOperationTypeDeleteOnpremConnector WorkRequestOperationTypeEnum = "DELETE_ONPREM_CONNECTOR" - WorkRequestOperationTypeUpdateOnpremConnectorWallet WorkRequestOperationTypeEnum = "UPDATE_ONPREM_CONNECTOR_WALLET" - WorkRequestOperationTypeChangeOnpremConnectorCompartment WorkRequestOperationTypeEnum = "CHANGE_ONPREM_CONNECTOR_COMPARTMENT" - WorkRequestOperationTypeCreateTargetDatabase WorkRequestOperationTypeEnum = "CREATE_TARGET_DATABASE" - WorkRequestOperationTypeUpdateTargetDatabase WorkRequestOperationTypeEnum = "UPDATE_TARGET_DATABASE" - WorkRequestOperationTypeActivateTargetDatabase WorkRequestOperationTypeEnum = "ACTIVATE_TARGET_DATABASE" - WorkRequestOperationTypeDeactivateTargetDatabase WorkRequestOperationTypeEnum = "DEACTIVATE_TARGET_DATABASE" - WorkRequestOperationTypeDeleteTargetDatabase WorkRequestOperationTypeEnum = "DELETE_TARGET_DATABASE" - WorkRequestOperationTypeChangeTargetDatabaseCompartment WorkRequestOperationTypeEnum = "CHANGE_TARGET_DATABASE_COMPARTMENT" - WorkRequestOperationTypeCreatePeerTargetDatabase WorkRequestOperationTypeEnum = "CREATE_PEER_TARGET_DATABASE" - WorkRequestOperationTypeUpdatePeerTargetDatabase WorkRequestOperationTypeEnum = "UPDATE_PEER_TARGET_DATABASE" - WorkRequestOperationTypeDeletePeerTargetDatabase WorkRequestOperationTypeEnum = "DELETE_PEER_TARGET_DATABASE" - WorkRequestOperationTypeRefreshTargetDatabase WorkRequestOperationTypeEnum = "REFRESH_TARGET_DATABASE" - WorkRequestOperationTypeProvisionPolicy WorkRequestOperationTypeEnum = "PROVISION_POLICY" - WorkRequestOperationTypeRetrievePolicy WorkRequestOperationTypeEnum = "RETRIEVE_POLICY" - WorkRequestOperationTypeUpdatePolicy WorkRequestOperationTypeEnum = "UPDATE_POLICY" - WorkRequestOperationTypeChangePolicyCompartment WorkRequestOperationTypeEnum = "CHANGE_POLICY_COMPARTMENT" - WorkRequestOperationTypeCreateUserAssessment WorkRequestOperationTypeEnum = "CREATE_USER_ASSESSMENT" - WorkRequestOperationTypeAssessUserAssessment WorkRequestOperationTypeEnum = "ASSESS_USER_ASSESSMENT" - WorkRequestOperationTypeCreateSnapshotUserAssessment WorkRequestOperationTypeEnum = "CREATE_SNAPSHOT_USER_ASSESSMENT" - WorkRequestOperationTypeCreateScheduleUserAssessment WorkRequestOperationTypeEnum = "CREATE_SCHEDULE_USER_ASSESSMENT" - WorkRequestOperationTypeCompareWithBaselineUserAssessment WorkRequestOperationTypeEnum = "COMPARE_WITH_BASELINE_USER_ASSESSMENT" - WorkRequestOperationTypeDeleteUserAssessment WorkRequestOperationTypeEnum = "DELETE_USER_ASSESSMENT" - WorkRequestOperationTypeUpdateUserAssessment WorkRequestOperationTypeEnum = "UPDATE_USER_ASSESSMENT" - WorkRequestOperationTypeChangeUserAssessmentCompartment WorkRequestOperationTypeEnum = "CHANGE_USER_ASSESSMENT_COMPARTMENT" - WorkRequestOperationTypeSetUserAssessmentBaseline WorkRequestOperationTypeEnum = "SET_USER_ASSESSMENT_BASELINE" - WorkRequestOperationTypeUnsetUserAssessmentBaseline WorkRequestOperationTypeEnum = "UNSET_USER_ASSESSMENT_BASELINE" - WorkRequestOperationTypeGenerateUserAssessmentReport WorkRequestOperationTypeEnum = "GENERATE_USER_ASSESSMENT_REPORT" - WorkRequestOperationTypeCreateSecurityAssessment WorkRequestOperationTypeEnum = "CREATE_SECURITY_ASSESSMENT" - WorkRequestOperationTypeCreateSecurityAssessmentNow WorkRequestOperationTypeEnum = "CREATE_SECURITY_ASSESSMENT_NOW" - WorkRequestOperationTypeAssessSecurityAssessment WorkRequestOperationTypeEnum = "ASSESS_SECURITY_ASSESSMENT" - WorkRequestOperationTypeCreateSnapshotSecurityAssessment WorkRequestOperationTypeEnum = "CREATE_SNAPSHOT_SECURITY_ASSESSMENT" - WorkRequestOperationTypeCreateScheduleSecurityAssessment WorkRequestOperationTypeEnum = "CREATE_SCHEDULE_SECURITY_ASSESSMENT" - WorkRequestOperationTypeCompareWithBaselineSecurityAssessment WorkRequestOperationTypeEnum = "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT" - WorkRequestOperationTypeDeleteSecurityAssessment WorkRequestOperationTypeEnum = "DELETE_SECURITY_ASSESSMENT" - WorkRequestOperationTypeUpdateSecurityAssessment WorkRequestOperationTypeEnum = "UPDATE_SECURITY_ASSESSMENT" - WorkRequestOperationTypeUpdateFindingRisk WorkRequestOperationTypeEnum = "UPDATE_FINDING_RISK" - WorkRequestOperationTypeChangeSecurityAssessmentCompartment WorkRequestOperationTypeEnum = "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT" - WorkRequestOperationTypeSetSecurityAssessmentBaseline WorkRequestOperationTypeEnum = "SET_SECURITY_ASSESSMENT_BASELINE" - WorkRequestOperationTypeUnsetSecurityAssessmentBaseline WorkRequestOperationTypeEnum = "UNSET_SECURITY_ASSESSMENT_BASELINE" - WorkRequestOperationTypeGenerateSecurityAssessmentReport WorkRequestOperationTypeEnum = "GENERATE_SECURITY_ASSESSMENT_REPORT" - WorkRequestOperationTypeDeleteSqlFirewallAllowedSql WorkRequestOperationTypeEnum = "DELETE_SQL_FIREWALL_ALLOWED_SQL" - WorkRequestOperationTypeBulkCreateSqlFirewallAllowedSql WorkRequestOperationTypeEnum = "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL" - WorkRequestOperationTypeBulkDeleteSqlFirewallAllowedSql WorkRequestOperationTypeEnum = "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL" - WorkRequestOperationTypeCreateAuditProfile WorkRequestOperationTypeEnum = "CREATE_AUDIT_PROFILE" - WorkRequestOperationTypeCalculateVolume WorkRequestOperationTypeEnum = "CALCULATE_VOLUME" - WorkRequestOperationTypeCalculateCollectedVolume WorkRequestOperationTypeEnum = "CALCULATE_COLLECTED_VOLUME" - WorkRequestOperationTypeCreateDbSecurityConfig WorkRequestOperationTypeEnum = "CREATE_DB_SECURITY_CONFIG" - WorkRequestOperationTypeRefreshDbSecurityConfig WorkRequestOperationTypeEnum = "REFRESH_DB_SECURITY_CONFIG" - WorkRequestOperationTypeUpdateDbSecurityConfig WorkRequestOperationTypeEnum = "UPDATE_DB_SECURITY_CONFIG" - WorkRequestOperationTypeChangeDbSecurityConfigCompartment WorkRequestOperationTypeEnum = "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT" - WorkRequestOperationTypeGenerateFirewallPolicy WorkRequestOperationTypeEnum = "GENERATE_FIREWALL_POLICY" - WorkRequestOperationTypeUpdateFirewallPolicy WorkRequestOperationTypeEnum = "UPDATE_FIREWALL_POLICY" - WorkRequestOperationTypeChangeFirewallPolicyCompartment WorkRequestOperationTypeEnum = "CHANGE_FIREWALL_POLICY_COMPARTMENT" - WorkRequestOperationTypeDeleteFirewallPolicy WorkRequestOperationTypeEnum = "DELETE_FIREWALL_POLICY" - WorkRequestOperationTypeCreateSqlCollection WorkRequestOperationTypeEnum = "CREATE_SQL_COLLECTION" - WorkRequestOperationTypeUpdateSqlCollection WorkRequestOperationTypeEnum = "UPDATE_SQL_COLLECTION" - WorkRequestOperationTypeStartSqlCollection WorkRequestOperationTypeEnum = "START_SQL_COLLECTION" - WorkRequestOperationTypeStopSqlCollection WorkRequestOperationTypeEnum = "STOP_SQL_COLLECTION" - WorkRequestOperationTypeDeleteSqlCollection WorkRequestOperationTypeEnum = "DELETE_SQL_COLLECTION" - WorkRequestOperationTypeChangeSqlCollectionCompartment WorkRequestOperationTypeEnum = "CHANGE_SQL_COLLECTION_COMPARTMENT" - WorkRequestOperationTypeRefreshSqlCollectionLogInsights WorkRequestOperationTypeEnum = "REFRESH_SQL_COLLECTION_LOG_INSIGHTS" - WorkRequestOperationTypePurgeSqlCollectionLogs WorkRequestOperationTypeEnum = "PURGE_SQL_COLLECTION_LOGS" - WorkRequestOperationTypeRefreshViolations WorkRequestOperationTypeEnum = "REFRESH_VIOLATIONS" - WorkRequestOperationTypeCreateArchival WorkRequestOperationTypeEnum = "CREATE_ARCHIVAL" - WorkRequestOperationTypeUpdateSecurityPolicy WorkRequestOperationTypeEnum = "UPDATE_SECURITY_POLICY" - WorkRequestOperationTypeChangeSecurityPolicyCompartment WorkRequestOperationTypeEnum = "CHANGE_SECURITY_POLICY_COMPARTMENT" - WorkRequestOperationTypeUpdateSecurityPolicyDeployment WorkRequestOperationTypeEnum = "UPDATE_SECURITY_POLICY_DEPLOYMENT" - WorkRequestOperationTypeChangeSecurityPolicyDeploymentCompartment WorkRequestOperationTypeEnum = "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT" - WorkRequestOperationTypeAuditTrail WorkRequestOperationTypeEnum = "AUDIT_TRAIL" - WorkRequestOperationTypeDeleteAuditTrail WorkRequestOperationTypeEnum = "DELETE_AUDIT_TRAIL" - WorkRequestOperationTypeDiscoverAuditTrails WorkRequestOperationTypeEnum = "DISCOVER_AUDIT_TRAILS" - WorkRequestOperationTypeUpdateAuditTrail WorkRequestOperationTypeEnum = "UPDATE_AUDIT_TRAIL" - WorkRequestOperationTypeUpdateAuditProfile WorkRequestOperationTypeEnum = "UPDATE_AUDIT_PROFILE" - WorkRequestOperationTypeAuditChangeCompartment WorkRequestOperationTypeEnum = "AUDIT_CHANGE_COMPARTMENT" - WorkRequestOperationTypeCreateReportDefinition WorkRequestOperationTypeEnum = "CREATE_REPORT_DEFINITION" - WorkRequestOperationTypeUpdateReportDefinition WorkRequestOperationTypeEnum = "UPDATE_REPORT_DEFINITION" - WorkRequestOperationTypeChangeReportDefinitionCompartment WorkRequestOperationTypeEnum = "CHANGE_REPORT_DEFINITION_COMPARTMENT" - WorkRequestOperationTypeDeleteReportDefinition WorkRequestOperationTypeEnum = "DELETE_REPORT_DEFINITION" - WorkRequestOperationTypeGenerateReport WorkRequestOperationTypeEnum = "GENERATE_REPORT" - WorkRequestOperationTypeChangeReportCompartment WorkRequestOperationTypeEnum = "CHANGE_REPORT_COMPARTMENT" - WorkRequestOperationTypeDeleteArchiveRetrieval WorkRequestOperationTypeEnum = "DELETE_ARCHIVE_RETRIEVAL" - WorkRequestOperationTypeCreateArchiveRetrieval WorkRequestOperationTypeEnum = "CREATE_ARCHIVE_RETRIEVAL" - WorkRequestOperationTypeUpdateArchiveRetrieval WorkRequestOperationTypeEnum = "UPDATE_ARCHIVE_RETRIEVAL" - WorkRequestOperationTypeChangeArchiveRetrievalCompartment WorkRequestOperationTypeEnum = "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT" - WorkRequestOperationTypeUpdateAlert WorkRequestOperationTypeEnum = "UPDATE_ALERT" - WorkRequestOperationTypeTargetAlertPolicyAssociation WorkRequestOperationTypeEnum = "TARGET_ALERT_POLICY_ASSOCIATION" - WorkRequestOperationTypeCreateSensitiveDataModel WorkRequestOperationTypeEnum = "CREATE_SENSITIVE_DATA_MODEL" - WorkRequestOperationTypeUpdateSensitiveDataModel WorkRequestOperationTypeEnum = "UPDATE_SENSITIVE_DATA_MODEL" - WorkRequestOperationTypeDeleteSensitiveDataModel WorkRequestOperationTypeEnum = "DELETE_SENSITIVE_DATA_MODEL" - WorkRequestOperationTypeUploadSensitiveDataModel WorkRequestOperationTypeEnum = "UPLOAD_SENSITIVE_DATA_MODEL" - WorkRequestOperationTypeGenerateSensitiveDataModelForDownload WorkRequestOperationTypeEnum = "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD" - WorkRequestOperationTypeCreateSensitiveColumn WorkRequestOperationTypeEnum = "CREATE_SENSITIVE_COLUMN" - WorkRequestOperationTypeUpdateSensitiveColumn WorkRequestOperationTypeEnum = "UPDATE_SENSITIVE_COLUMN" - WorkRequestOperationTypePatchSensitiveColumns WorkRequestOperationTypeEnum = "PATCH_SENSITIVE_COLUMNS" - WorkRequestOperationTypeCreateDiscoveryJob WorkRequestOperationTypeEnum = "CREATE_DISCOVERY_JOB" - WorkRequestOperationTypeDeleteDiscoveryJob WorkRequestOperationTypeEnum = "DELETE_DISCOVERY_JOB" - WorkRequestOperationTypePatchDiscoveryJobResult WorkRequestOperationTypeEnum = "PATCH_DISCOVERY_JOB_RESULT" - WorkRequestOperationTypeApplyDiscoveryJobResult WorkRequestOperationTypeEnum = "APPLY_DISCOVERY_JOB_RESULT" - WorkRequestOperationTypeGenerateDiscoveryReport WorkRequestOperationTypeEnum = "GENERATE_DISCOVERY_REPORT" - WorkRequestOperationTypeCreateSensitiveType WorkRequestOperationTypeEnum = "CREATE_SENSITIVE_TYPE" - WorkRequestOperationTypeUpdateSensitiveType WorkRequestOperationTypeEnum = "UPDATE_SENSITIVE_TYPE" - WorkRequestOperationTypeCreateMaskingPolicy WorkRequestOperationTypeEnum = "CREATE_MASKING_POLICY" - WorkRequestOperationTypeUpdateMaskingPolicy WorkRequestOperationTypeEnum = "UPDATE_MASKING_POLICY" - WorkRequestOperationTypeDeleteMaskingPolicy WorkRequestOperationTypeEnum = "DELETE_MASKING_POLICY" - WorkRequestOperationTypeUploadMaskingPolicy WorkRequestOperationTypeEnum = "UPLOAD_MASKING_POLICY" - WorkRequestOperationTypeGenerateMaskingPolicyForDownload WorkRequestOperationTypeEnum = "GENERATE_MASKING_POLICY_FOR_DOWNLOAD" - WorkRequestOperationTypeCreateMaskingColumn WorkRequestOperationTypeEnum = "CREATE_MASKING_COLUMN" - WorkRequestOperationTypeUpdateMaskingColumn WorkRequestOperationTypeEnum = "UPDATE_MASKING_COLUMN" - WorkRequestOperationTypePatchMaskingColumns WorkRequestOperationTypeEnum = "PATCH_MASKING_COLUMNS" - WorkRequestOperationTypeGenerateMaskingReport WorkRequestOperationTypeEnum = "GENERATE_MASKING_REPORT" - WorkRequestOperationTypeCreateLibraryMaskingFormat WorkRequestOperationTypeEnum = "CREATE_LIBRARY_MASKING_FORMAT" - WorkRequestOperationTypeUpdateLibraryMaskingFormat WorkRequestOperationTypeEnum = "UPDATE_LIBRARY_MASKING_FORMAT" - WorkRequestOperationTypeAddColumnsFromSdm WorkRequestOperationTypeEnum = "ADD_COLUMNS_FROM_SDM" - WorkRequestOperationTypeMaskingJob WorkRequestOperationTypeEnum = "MASKING_JOB" - WorkRequestOperationTypeCreateDifference WorkRequestOperationTypeEnum = "CREATE_DIFFERENCE" - WorkRequestOperationTypeDeleteDifference WorkRequestOperationTypeEnum = "DELETE_DIFFERENCE" - WorkRequestOperationTypeUpdateDifference WorkRequestOperationTypeEnum = "UPDATE_DIFFERENCE" - WorkRequestOperationTypePatchDifference WorkRequestOperationTypeEnum = "PATCH_DIFFERENCE" - WorkRequestOperationTypeApplyDifference WorkRequestOperationTypeEnum = "APPLY_DIFFERENCE" - WorkRequestOperationTypeMaskPolicyGenerateHealthReport WorkRequestOperationTypeEnum = "MASK_POLICY_GENERATE_HEALTH_REPORT" - WorkRequestOperationTypeMaskPolicyDeleteHealthReport WorkRequestOperationTypeEnum = "MASK_POLICY_DELETE_HEALTH_REPORT" - WorkRequestOperationTypeCreateSensitiveTypesExport WorkRequestOperationTypeEnum = "CREATE_SENSITIVE_TYPES_EXPORT" - WorkRequestOperationTypeUpdateSensitiveTypesExport WorkRequestOperationTypeEnum = "UPDATE_SENSITIVE_TYPES_EXPORT" - WorkRequestOperationTypeBulkCreateSensitiveTypes WorkRequestOperationTypeEnum = "BULK_CREATE_SENSITIVE_TYPES" - WorkRequestOperationTypeAbortMasking WorkRequestOperationTypeEnum = "ABORT_MASKING" - WorkRequestOperationTypeCreateSecurityPolicyReport WorkRequestOperationTypeEnum = "CREATE_SECURITY_POLICY_REPORT" - WorkRequestOperationTypeRefreshSecurityPolicyCache WorkRequestOperationTypeEnum = "REFRESH_SECURITY_POLICY_CACHE" - WorkRequestOperationTypeDeleteSecurityPolicyCache WorkRequestOperationTypeEnum = "DELETE_SECURITY_POLICY_CACHE" - WorkRequestOperationTypeCreateSchedule WorkRequestOperationTypeEnum = "CREATE_SCHEDULE" - WorkRequestOperationTypeRemoveScheduleReport WorkRequestOperationTypeEnum = "REMOVE_SCHEDULE_REPORT" - WorkRequestOperationTypeUpdateAllAlert WorkRequestOperationTypeEnum = "UPDATE_ALL_ALERT" - WorkRequestOperationTypePatchTargetAlertPolicyAssociation WorkRequestOperationTypeEnum = "PATCH_TARGET_ALERT_POLICY_ASSOCIATION" - WorkRequestOperationTypeCreateAlertPolicy WorkRequestOperationTypeEnum = "CREATE_ALERT_POLICY" - WorkRequestOperationTypeUpdateAlertPolicy WorkRequestOperationTypeEnum = "UPDATE_ALERT_POLICY" - WorkRequestOperationTypeDeleteAlertPolicy WorkRequestOperationTypeEnum = "DELETE_ALERT_POLICY" - WorkRequestOperationTypeCreateAlertPolicyRule WorkRequestOperationTypeEnum = "CREATE_ALERT_POLICY_RULE" - WorkRequestOperationTypeUpdateAlertPolicyRule WorkRequestOperationTypeEnum = "UPDATE_ALERT_POLICY_RULE" - WorkRequestOperationTypeDeleteAlertPolicyRule WorkRequestOperationTypeEnum = "DELETE_ALERT_POLICY_RULE" - WorkRequestOperationTypeChangeAlertPolicyCompartment WorkRequestOperationTypeEnum = "CHANGE_ALERT_POLICY_COMPARTMENT" + WorkRequestOperationTypeEnableDataSafeConfiguration WorkRequestOperationTypeEnum = "ENABLE_DATA_SAFE_CONFIGURATION" + WorkRequestOperationTypeCreatePrivateEndpoint WorkRequestOperationTypeEnum = "CREATE_PRIVATE_ENDPOINT" + WorkRequestOperationTypeUpdatePrivateEndpoint WorkRequestOperationTypeEnum = "UPDATE_PRIVATE_ENDPOINT" + WorkRequestOperationTypeDeletePrivateEndpoint WorkRequestOperationTypeEnum = "DELETE_PRIVATE_ENDPOINT" + WorkRequestOperationTypeChangePrivateEndpointCompartment WorkRequestOperationTypeEnum = "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT" + WorkRequestOperationTypeCreateOnpremConnector WorkRequestOperationTypeEnum = "CREATE_ONPREM_CONNECTOR" + WorkRequestOperationTypeUpdateOnpremConnector WorkRequestOperationTypeEnum = "UPDATE_ONPREM_CONNECTOR" + WorkRequestOperationTypeDeleteOnpremConnector WorkRequestOperationTypeEnum = "DELETE_ONPREM_CONNECTOR" + WorkRequestOperationTypeUpdateOnpremConnectorWallet WorkRequestOperationTypeEnum = "UPDATE_ONPREM_CONNECTOR_WALLET" + WorkRequestOperationTypeChangeOnpremConnectorCompartment WorkRequestOperationTypeEnum = "CHANGE_ONPREM_CONNECTOR_COMPARTMENT" + WorkRequestOperationTypeCreateTargetDatabase WorkRequestOperationTypeEnum = "CREATE_TARGET_DATABASE" + WorkRequestOperationTypeUpdateTargetDatabase WorkRequestOperationTypeEnum = "UPDATE_TARGET_DATABASE" + WorkRequestOperationTypeActivateTargetDatabase WorkRequestOperationTypeEnum = "ACTIVATE_TARGET_DATABASE" + WorkRequestOperationTypeDeactivateTargetDatabase WorkRequestOperationTypeEnum = "DEACTIVATE_TARGET_DATABASE" + WorkRequestOperationTypeDeleteTargetDatabase WorkRequestOperationTypeEnum = "DELETE_TARGET_DATABASE" + WorkRequestOperationTypeChangeTargetDatabaseCompartment WorkRequestOperationTypeEnum = "CHANGE_TARGET_DATABASE_COMPARTMENT" + WorkRequestOperationTypeCreatePeerTargetDatabase WorkRequestOperationTypeEnum = "CREATE_PEER_TARGET_DATABASE" + WorkRequestOperationTypeUpdatePeerTargetDatabase WorkRequestOperationTypeEnum = "UPDATE_PEER_TARGET_DATABASE" + WorkRequestOperationTypeDeletePeerTargetDatabase WorkRequestOperationTypeEnum = "DELETE_PEER_TARGET_DATABASE" + WorkRequestOperationTypeRefreshTargetDatabase WorkRequestOperationTypeEnum = "REFRESH_TARGET_DATABASE" + WorkRequestOperationTypeProvisionPolicy WorkRequestOperationTypeEnum = "PROVISION_POLICY" + WorkRequestOperationTypeRetrievePolicy WorkRequestOperationTypeEnum = "RETRIEVE_POLICY" + WorkRequestOperationTypeUpdatePolicy WorkRequestOperationTypeEnum = "UPDATE_POLICY" + WorkRequestOperationTypeChangePolicyCompartment WorkRequestOperationTypeEnum = "CHANGE_POLICY_COMPARTMENT" + WorkRequestOperationTypeCreateUserAssessment WorkRequestOperationTypeEnum = "CREATE_USER_ASSESSMENT" + WorkRequestOperationTypeAssessUserAssessment WorkRequestOperationTypeEnum = "ASSESS_USER_ASSESSMENT" + WorkRequestOperationTypeCreateSnapshotUserAssessment WorkRequestOperationTypeEnum = "CREATE_SNAPSHOT_USER_ASSESSMENT" + WorkRequestOperationTypeCreateScheduleUserAssessment WorkRequestOperationTypeEnum = "CREATE_SCHEDULE_USER_ASSESSMENT" + WorkRequestOperationTypeCompareWithBaselineUserAssessment WorkRequestOperationTypeEnum = "COMPARE_WITH_BASELINE_USER_ASSESSMENT" + WorkRequestOperationTypeDeleteUserAssessment WorkRequestOperationTypeEnum = "DELETE_USER_ASSESSMENT" + WorkRequestOperationTypeUpdateUserAssessment WorkRequestOperationTypeEnum = "UPDATE_USER_ASSESSMENT" + WorkRequestOperationTypeChangeUserAssessmentCompartment WorkRequestOperationTypeEnum = "CHANGE_USER_ASSESSMENT_COMPARTMENT" + WorkRequestOperationTypeSetUserAssessmentBaseline WorkRequestOperationTypeEnum = "SET_USER_ASSESSMENT_BASELINE" + WorkRequestOperationTypeUnsetUserAssessmentBaseline WorkRequestOperationTypeEnum = "UNSET_USER_ASSESSMENT_BASELINE" + WorkRequestOperationTypeGenerateUserAssessmentReport WorkRequestOperationTypeEnum = "GENERATE_USER_ASSESSMENT_REPORT" + WorkRequestOperationTypeCreateSecurityAssessment WorkRequestOperationTypeEnum = "CREATE_SECURITY_ASSESSMENT" + WorkRequestOperationTypeCreateSecurityAssessmentNow WorkRequestOperationTypeEnum = "CREATE_SECURITY_ASSESSMENT_NOW" + WorkRequestOperationTypeAssessSecurityAssessment WorkRequestOperationTypeEnum = "ASSESS_SECURITY_ASSESSMENT" + WorkRequestOperationTypeCreateSnapshotSecurityAssessment WorkRequestOperationTypeEnum = "CREATE_SNAPSHOT_SECURITY_ASSESSMENT" + WorkRequestOperationTypeCreateScheduleSecurityAssessment WorkRequestOperationTypeEnum = "CREATE_SCHEDULE_SECURITY_ASSESSMENT" + WorkRequestOperationTypeCompareWithBaselineSecurityAssessment WorkRequestOperationTypeEnum = "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT" + WorkRequestOperationTypeDeleteSecurityAssessment WorkRequestOperationTypeEnum = "DELETE_SECURITY_ASSESSMENT" + WorkRequestOperationTypeUpdateSecurityAssessment WorkRequestOperationTypeEnum = "UPDATE_SECURITY_ASSESSMENT" + WorkRequestOperationTypePatchChecks WorkRequestOperationTypeEnum = "PATCH_CHECKS" + WorkRequestOperationTypeUpdateFindingSeverity WorkRequestOperationTypeEnum = "UPDATE_FINDING_SEVERITY" + WorkRequestOperationTypeApplyTemplate WorkRequestOperationTypeEnum = "APPLY_TEMPLATE" + WorkRequestOperationTypeFleetGenerateSecurityAssessmentReport WorkRequestOperationTypeEnum = "FLEET_GENERATE_SECURITY_ASSESSMENT_REPORT" + WorkRequestOperationTypeFleetGenerateUserAssessmentReport WorkRequestOperationTypeEnum = "FLEET_GENERATE_USER_ASSESSMENT_REPORT" + WorkRequestOperationTypeRefreshTargetDatabaseGroupWithChanges WorkRequestOperationTypeEnum = "REFRESH_TARGET_DATABASE_GROUP_WITH_CHANGES" + WorkRequestOperationTypeUpdateFindingRisk WorkRequestOperationTypeEnum = "UPDATE_FINDING_RISK" + WorkRequestOperationTypeChangeSecurityAssessmentCompartment WorkRequestOperationTypeEnum = "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT" + WorkRequestOperationTypeSetSecurityAssessmentBaseline WorkRequestOperationTypeEnum = "SET_SECURITY_ASSESSMENT_BASELINE" + WorkRequestOperationTypeUnsetSecurityAssessmentBaseline WorkRequestOperationTypeEnum = "UNSET_SECURITY_ASSESSMENT_BASELINE" + WorkRequestOperationTypeGenerateSecurityAssessmentReport WorkRequestOperationTypeEnum = "GENERATE_SECURITY_ASSESSMENT_REPORT" + WorkRequestOperationTypeDeleteSqlFirewallAllowedSql WorkRequestOperationTypeEnum = "DELETE_SQL_FIREWALL_ALLOWED_SQL" + WorkRequestOperationTypeBulkCreateSqlFirewallAllowedSql WorkRequestOperationTypeEnum = "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL" + WorkRequestOperationTypeBulkDeleteSqlFirewallAllowedSql WorkRequestOperationTypeEnum = "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL" + WorkRequestOperationTypeCreateAuditProfile WorkRequestOperationTypeEnum = "CREATE_AUDIT_PROFILE" + WorkRequestOperationTypeCalculateVolume WorkRequestOperationTypeEnum = "CALCULATE_VOLUME" + WorkRequestOperationTypeCalculateCollectedVolume WorkRequestOperationTypeEnum = "CALCULATE_COLLECTED_VOLUME" + WorkRequestOperationTypeCreateDbSecurityConfig WorkRequestOperationTypeEnum = "CREATE_DB_SECURITY_CONFIG" + WorkRequestOperationTypeRefreshDbSecurityConfig WorkRequestOperationTypeEnum = "REFRESH_DB_SECURITY_CONFIG" + WorkRequestOperationTypeUpdateDbSecurityConfig WorkRequestOperationTypeEnum = "UPDATE_DB_SECURITY_CONFIG" + WorkRequestOperationTypeChangeDbSecurityConfigCompartment WorkRequestOperationTypeEnum = "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT" + WorkRequestOperationTypeGenerateFirewallPolicy WorkRequestOperationTypeEnum = "GENERATE_FIREWALL_POLICY" + WorkRequestOperationTypeUpdateFirewallPolicy WorkRequestOperationTypeEnum = "UPDATE_FIREWALL_POLICY" + WorkRequestOperationTypeChangeFirewallPolicyCompartment WorkRequestOperationTypeEnum = "CHANGE_FIREWALL_POLICY_COMPARTMENT" + WorkRequestOperationTypeDeleteFirewallPolicy WorkRequestOperationTypeEnum = "DELETE_FIREWALL_POLICY" + WorkRequestOperationTypeCreateSqlCollection WorkRequestOperationTypeEnum = "CREATE_SQL_COLLECTION" + WorkRequestOperationTypeUpdateSqlCollection WorkRequestOperationTypeEnum = "UPDATE_SQL_COLLECTION" + WorkRequestOperationTypeStartSqlCollection WorkRequestOperationTypeEnum = "START_SQL_COLLECTION" + WorkRequestOperationTypeStopSqlCollection WorkRequestOperationTypeEnum = "STOP_SQL_COLLECTION" + WorkRequestOperationTypeDeleteSqlCollection WorkRequestOperationTypeEnum = "DELETE_SQL_COLLECTION" + WorkRequestOperationTypeChangeSqlCollectionCompartment WorkRequestOperationTypeEnum = "CHANGE_SQL_COLLECTION_COMPARTMENT" + WorkRequestOperationTypeRefreshSqlCollectionLogInsights WorkRequestOperationTypeEnum = "REFRESH_SQL_COLLECTION_LOG_INSIGHTS" + WorkRequestOperationTypePurgeSqlCollectionLogs WorkRequestOperationTypeEnum = "PURGE_SQL_COLLECTION_LOGS" + WorkRequestOperationTypeRefreshViolations WorkRequestOperationTypeEnum = "REFRESH_VIOLATIONS" + WorkRequestOperationTypeCreateArchival WorkRequestOperationTypeEnum = "CREATE_ARCHIVAL" + WorkRequestOperationTypeCreateSecurityPolicy WorkRequestOperationTypeEnum = "CREATE_SECURITY_POLICY" + WorkRequestOperationTypeDeleteSecurityPolicy WorkRequestOperationTypeEnum = "DELETE_SECURITY_POLICY" + WorkRequestOperationTypeSecurityPolicyDeploymentActions WorkRequestOperationTypeEnum = "SECURITY_POLICY_DEPLOYMENT_ACTIONS" + WorkRequestOperationTypeProvisionSecurityPolicyDeployment WorkRequestOperationTypeEnum = "PROVISION_SECURITY_POLICY_DEPLOYMENT" + WorkRequestOperationTypeUpdateSecurityPolicy WorkRequestOperationTypeEnum = "UPDATE_SECURITY_POLICY" + WorkRequestOperationTypeChangeSecurityPolicyCompartment WorkRequestOperationTypeEnum = "CHANGE_SECURITY_POLICY_COMPARTMENT" + WorkRequestOperationTypeUpdateSecurityPolicyDeployment WorkRequestOperationTypeEnum = "UPDATE_SECURITY_POLICY_DEPLOYMENT" + WorkRequestOperationTypeChangeSecurityPolicyDeploymentCompartment WorkRequestOperationTypeEnum = "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT" + WorkRequestOperationTypeAuditTrail WorkRequestOperationTypeEnum = "AUDIT_TRAIL" + WorkRequestOperationTypeDeleteAuditTrail WorkRequestOperationTypeEnum = "DELETE_AUDIT_TRAIL" + WorkRequestOperationTypeDiscoverAuditTrails WorkRequestOperationTypeEnum = "DISCOVER_AUDIT_TRAILS" + WorkRequestOperationTypeUpdateAuditTrail WorkRequestOperationTypeEnum = "UPDATE_AUDIT_TRAIL" + WorkRequestOperationTypeUpdateAuditProfile WorkRequestOperationTypeEnum = "UPDATE_AUDIT_PROFILE" + WorkRequestOperationTypeAuditChangeCompartment WorkRequestOperationTypeEnum = "AUDIT_CHANGE_COMPARTMENT" + WorkRequestOperationTypeCreateReportDefinition WorkRequestOperationTypeEnum = "CREATE_REPORT_DEFINITION" + WorkRequestOperationTypeUpdateReportDefinition WorkRequestOperationTypeEnum = "UPDATE_REPORT_DEFINITION" + WorkRequestOperationTypeChangeReportDefinitionCompartment WorkRequestOperationTypeEnum = "CHANGE_REPORT_DEFINITION_COMPARTMENT" + WorkRequestOperationTypeDeleteReportDefinition WorkRequestOperationTypeEnum = "DELETE_REPORT_DEFINITION" + WorkRequestOperationTypeGenerateReport WorkRequestOperationTypeEnum = "GENERATE_REPORT" + WorkRequestOperationTypeChangeReportCompartment WorkRequestOperationTypeEnum = "CHANGE_REPORT_COMPARTMENT" + WorkRequestOperationTypeDeleteArchiveRetrieval WorkRequestOperationTypeEnum = "DELETE_ARCHIVE_RETRIEVAL" + WorkRequestOperationTypeCreateArchiveRetrieval WorkRequestOperationTypeEnum = "CREATE_ARCHIVE_RETRIEVAL" + WorkRequestOperationTypeUpdateArchiveRetrieval WorkRequestOperationTypeEnum = "UPDATE_ARCHIVE_RETRIEVAL" + WorkRequestOperationTypeChangeArchiveRetrievalCompartment WorkRequestOperationTypeEnum = "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT" + WorkRequestOperationTypeUpdateAlert WorkRequestOperationTypeEnum = "UPDATE_ALERT" + WorkRequestOperationTypeTargetAlertPolicyAssociation WorkRequestOperationTypeEnum = "TARGET_ALERT_POLICY_ASSOCIATION" + WorkRequestOperationTypeCreateTargetDatabaseGroup WorkRequestOperationTypeEnum = "CREATE_TARGET_DATABASE_GROUP" + WorkRequestOperationTypeUpdateTargetDatabaseGroup WorkRequestOperationTypeEnum = "UPDATE_TARGET_DATABASE_GROUP" + WorkRequestOperationTypeDeleteTargetDatabaseGroup WorkRequestOperationTypeEnum = "DELETE_TARGET_DATABASE_GROUP" + WorkRequestOperationTypeChangeTargetDatabaseGroupCompartment WorkRequestOperationTypeEnum = "CHANGE_TARGET_DATABASE_GROUP_COMPARTMENT" + WorkRequestOperationTypeCreateSecurityPolicyConfig WorkRequestOperationTypeEnum = "CREATE_SECURITY_POLICY_CONFIG" + WorkRequestOperationTypeUpdateSecurityPolicyConfig WorkRequestOperationTypeEnum = "UPDATE_SECURITY_POLICY_CONFIG" + WorkRequestOperationTypeDeleteSecurityPolicyConfig WorkRequestOperationTypeEnum = "DELETE_SECURITY_POLICY_CONFIG" + WorkRequestOperationTypeChangeSecurityPolicyConfigCompartment WorkRequestOperationTypeEnum = "CHANGE_SECURITY_POLICY_CONFIG_COMPARTMENT" + WorkRequestOperationTypeCreateUnifiedAuditPolicy WorkRequestOperationTypeEnum = "CREATE_UNIFIED_AUDIT_POLICY" + WorkRequestOperationTypeUpdateUnifiedAuditPolicy WorkRequestOperationTypeEnum = "UPDATE_UNIFIED_AUDIT_POLICY" + WorkRequestOperationTypeDeleteUnifiedAuditPolicy WorkRequestOperationTypeEnum = "DELETE_UNIFIED_AUDIT_POLICY" + WorkRequestOperationTypeChangeUnifiedAuditPolicyCompartment WorkRequestOperationTypeEnum = "CHANGE_UNIFIED_AUDIT_POLICY_COMPARTMENT" + WorkRequestOperationTypeUpdateUnifiedAuditPolicyDefinition WorkRequestOperationTypeEnum = "UPDATE_UNIFIED_AUDIT_POLICY_DEFINITION" + WorkRequestOperationTypeDeleteUnifiedAuditPolicyDefinition WorkRequestOperationTypeEnum = "DELETE_UNIFIED_AUDIT_POLICY_DEFINITION" + WorkRequestOperationTypeChangeUnifiedAuditPolicyDefinitionCompartment WorkRequestOperationTypeEnum = "CHANGE_UNIFIED_AUDIT_POLICY_DEFINITION_COMPARTMENT" + WorkRequestOperationTypeFetchAuditPolicyDetails WorkRequestOperationTypeEnum = "FETCH_AUDIT_POLICY_DETAILS" + WorkRequestOperationTypeBulkCreateUnifiedAuditPolicy WorkRequestOperationTypeEnum = "BULK_CREATE_UNIFIED_AUDIT_POLICY" + WorkRequestOperationTypeCreateSensitiveDataModel WorkRequestOperationTypeEnum = "CREATE_SENSITIVE_DATA_MODEL" + WorkRequestOperationTypeUpdateSensitiveDataModel WorkRequestOperationTypeEnum = "UPDATE_SENSITIVE_DATA_MODEL" + WorkRequestOperationTypeDeleteSensitiveDataModel WorkRequestOperationTypeEnum = "DELETE_SENSITIVE_DATA_MODEL" + WorkRequestOperationTypeUploadSensitiveDataModel WorkRequestOperationTypeEnum = "UPLOAD_SENSITIVE_DATA_MODEL" + WorkRequestOperationTypeGenerateSensitiveDataModelForDownload WorkRequestOperationTypeEnum = "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD" + WorkRequestOperationTypeCreateSensitiveColumn WorkRequestOperationTypeEnum = "CREATE_SENSITIVE_COLUMN" + WorkRequestOperationTypeUpdateSensitiveColumn WorkRequestOperationTypeEnum = "UPDATE_SENSITIVE_COLUMN" + WorkRequestOperationTypePatchSensitiveColumns WorkRequestOperationTypeEnum = "PATCH_SENSITIVE_COLUMNS" + WorkRequestOperationTypeCreateDiscoveryJob WorkRequestOperationTypeEnum = "CREATE_DISCOVERY_JOB" + WorkRequestOperationTypeDeleteDiscoveryJob WorkRequestOperationTypeEnum = "DELETE_DISCOVERY_JOB" + WorkRequestOperationTypePatchDiscoveryJobResult WorkRequestOperationTypeEnum = "PATCH_DISCOVERY_JOB_RESULT" + WorkRequestOperationTypeApplyDiscoveryJobResult WorkRequestOperationTypeEnum = "APPLY_DISCOVERY_JOB_RESULT" + WorkRequestOperationTypeGenerateDiscoveryReport WorkRequestOperationTypeEnum = "GENERATE_DISCOVERY_REPORT" + WorkRequestOperationTypeCreateSensitiveType WorkRequestOperationTypeEnum = "CREATE_SENSITIVE_TYPE" + WorkRequestOperationTypeUpdateSensitiveType WorkRequestOperationTypeEnum = "UPDATE_SENSITIVE_TYPE" + WorkRequestOperationTypeCreateMaskingPolicy WorkRequestOperationTypeEnum = "CREATE_MASKING_POLICY" + WorkRequestOperationTypeUpdateMaskingPolicy WorkRequestOperationTypeEnum = "UPDATE_MASKING_POLICY" + WorkRequestOperationTypeDeleteMaskingPolicy WorkRequestOperationTypeEnum = "DELETE_MASKING_POLICY" + WorkRequestOperationTypeUploadMaskingPolicy WorkRequestOperationTypeEnum = "UPLOAD_MASKING_POLICY" + WorkRequestOperationTypeGenerateMaskingPolicyForDownload WorkRequestOperationTypeEnum = "GENERATE_MASKING_POLICY_FOR_DOWNLOAD" + WorkRequestOperationTypeCreateMaskingColumn WorkRequestOperationTypeEnum = "CREATE_MASKING_COLUMN" + WorkRequestOperationTypeUpdateMaskingColumn WorkRequestOperationTypeEnum = "UPDATE_MASKING_COLUMN" + WorkRequestOperationTypePatchMaskingColumns WorkRequestOperationTypeEnum = "PATCH_MASKING_COLUMNS" + WorkRequestOperationTypeGenerateMaskingReport WorkRequestOperationTypeEnum = "GENERATE_MASKING_REPORT" + WorkRequestOperationTypeCreateLibraryMaskingFormat WorkRequestOperationTypeEnum = "CREATE_LIBRARY_MASKING_FORMAT" + WorkRequestOperationTypeUpdateLibraryMaskingFormat WorkRequestOperationTypeEnum = "UPDATE_LIBRARY_MASKING_FORMAT" + WorkRequestOperationTypeAddColumnsFromSdm WorkRequestOperationTypeEnum = "ADD_COLUMNS_FROM_SDM" + WorkRequestOperationTypeMaskingJob WorkRequestOperationTypeEnum = "MASKING_JOB" + WorkRequestOperationTypeCreateDifference WorkRequestOperationTypeEnum = "CREATE_DIFFERENCE" + WorkRequestOperationTypeDeleteDifference WorkRequestOperationTypeEnum = "DELETE_DIFFERENCE" + WorkRequestOperationTypeUpdateDifference WorkRequestOperationTypeEnum = "UPDATE_DIFFERENCE" + WorkRequestOperationTypePatchDifference WorkRequestOperationTypeEnum = "PATCH_DIFFERENCE" + WorkRequestOperationTypeApplyDifference WorkRequestOperationTypeEnum = "APPLY_DIFFERENCE" + WorkRequestOperationTypeDeleteMaskingReport WorkRequestOperationTypeEnum = "DELETE_MASKING_REPORT" + WorkRequestOperationTypeMaskPolicyGenerateHealthReport WorkRequestOperationTypeEnum = "MASK_POLICY_GENERATE_HEALTH_REPORT" + WorkRequestOperationTypeMaskPolicyDeleteHealthReport WorkRequestOperationTypeEnum = "MASK_POLICY_DELETE_HEALTH_REPORT" + WorkRequestOperationTypeCreateSensitiveTypesExport WorkRequestOperationTypeEnum = "CREATE_SENSITIVE_TYPES_EXPORT" + WorkRequestOperationTypeUpdateSensitiveTypesExport WorkRequestOperationTypeEnum = "UPDATE_SENSITIVE_TYPES_EXPORT" + WorkRequestOperationTypeBulkCreateSensitiveTypes WorkRequestOperationTypeEnum = "BULK_CREATE_SENSITIVE_TYPES" + WorkRequestOperationTypeCreateSensitiveTypeGroup WorkRequestOperationTypeEnum = "CREATE_SENSITIVE_TYPE_GROUP" + WorkRequestOperationTypeUpdateSensitiveTypeGroup WorkRequestOperationTypeEnum = "UPDATE_SENSITIVE_TYPE_GROUP" + WorkRequestOperationTypeDeleteSensitiveTypeGroup WorkRequestOperationTypeEnum = "DELETE_SENSITIVE_TYPE_GROUP" + WorkRequestOperationTypeDeleteSensitiveType WorkRequestOperationTypeEnum = "DELETE_SENSITIVE_TYPE" + WorkRequestOperationTypePatchGroupedSensitiveTypes WorkRequestOperationTypeEnum = "PATCH_GROUPED_SENSITIVE_TYPES" + WorkRequestOperationTypeCreateRelation WorkRequestOperationTypeEnum = "CREATE_RELATION" + WorkRequestOperationTypeDeleteRelation WorkRequestOperationTypeEnum = "DELETE_RELATION" + WorkRequestOperationTypeAbortMasking WorkRequestOperationTypeEnum = "ABORT_MASKING" + WorkRequestOperationTypeCreateSecurityPolicyReport WorkRequestOperationTypeEnum = "CREATE_SECURITY_POLICY_REPORT" + WorkRequestOperationTypeRefreshSecurityPolicyCache WorkRequestOperationTypeEnum = "REFRESH_SECURITY_POLICY_CACHE" + WorkRequestOperationTypeDeleteSecurityPolicyCache WorkRequestOperationTypeEnum = "DELETE_SECURITY_POLICY_CACHE" + WorkRequestOperationTypeCreateSchedule WorkRequestOperationTypeEnum = "CREATE_SCHEDULE" + WorkRequestOperationTypeRemoveScheduleReport WorkRequestOperationTypeEnum = "REMOVE_SCHEDULE_REPORT" + WorkRequestOperationTypeUpdateAllAlert WorkRequestOperationTypeEnum = "UPDATE_ALL_ALERT" + WorkRequestOperationTypePatchTargetAlertPolicyAssociation WorkRequestOperationTypeEnum = "PATCH_TARGET_ALERT_POLICY_ASSOCIATION" + WorkRequestOperationTypeCreateAlertPolicy WorkRequestOperationTypeEnum = "CREATE_ALERT_POLICY" + WorkRequestOperationTypeUpdateAlertPolicy WorkRequestOperationTypeEnum = "UPDATE_ALERT_POLICY" + WorkRequestOperationTypeDeleteAlertPolicy WorkRequestOperationTypeEnum = "DELETE_ALERT_POLICY" + WorkRequestOperationTypeCreateAlertPolicyRule WorkRequestOperationTypeEnum = "CREATE_ALERT_POLICY_RULE" + WorkRequestOperationTypeUpdateAlertPolicyRule WorkRequestOperationTypeEnum = "UPDATE_ALERT_POLICY_RULE" + WorkRequestOperationTypeDeleteAlertPolicyRule WorkRequestOperationTypeEnum = "DELETE_ALERT_POLICY_RULE" + WorkRequestOperationTypeChangeAlertPolicyCompartment WorkRequestOperationTypeEnum = "CHANGE_ALERT_POLICY_COMPARTMENT" + WorkRequestOperationTypeUpdateTargetGroupAuditProfile WorkRequestOperationTypeEnum = "UPDATE_TARGET_GROUP_AUDIT_PROFILE" + WorkRequestOperationTypeCreateAttributeSet WorkRequestOperationTypeEnum = "CREATE_ATTRIBUTE_SET" + WorkRequestOperationTypeUpdateAttributeSet WorkRequestOperationTypeEnum = "UPDATE_ATTRIBUTE_SET" + WorkRequestOperationTypeDeleteAttributeSet WorkRequestOperationTypeEnum = "DELETE_ATTRIBUTE_SET" + WorkRequestOperationTypeChangeAttributeSetCompartment WorkRequestOperationTypeEnum = "CHANGE_ATTRIBUTE_SET_COMPARTMENT" ) var mappingWorkRequestOperationTypeEnum = map[string]WorkRequestOperationTypeEnum{ - "ENABLE_DATA_SAFE_CONFIGURATION": WorkRequestOperationTypeEnableDataSafeConfiguration, - "CREATE_PRIVATE_ENDPOINT": WorkRequestOperationTypeCreatePrivateEndpoint, - "UPDATE_PRIVATE_ENDPOINT": WorkRequestOperationTypeUpdatePrivateEndpoint, - "DELETE_PRIVATE_ENDPOINT": WorkRequestOperationTypeDeletePrivateEndpoint, - "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT": WorkRequestOperationTypeChangePrivateEndpointCompartment, - "CREATE_ONPREM_CONNECTOR": WorkRequestOperationTypeCreateOnpremConnector, - "UPDATE_ONPREM_CONNECTOR": WorkRequestOperationTypeUpdateOnpremConnector, - "DELETE_ONPREM_CONNECTOR": WorkRequestOperationTypeDeleteOnpremConnector, - "UPDATE_ONPREM_CONNECTOR_WALLET": WorkRequestOperationTypeUpdateOnpremConnectorWallet, - "CHANGE_ONPREM_CONNECTOR_COMPARTMENT": WorkRequestOperationTypeChangeOnpremConnectorCompartment, - "CREATE_TARGET_DATABASE": WorkRequestOperationTypeCreateTargetDatabase, - "UPDATE_TARGET_DATABASE": WorkRequestOperationTypeUpdateTargetDatabase, - "ACTIVATE_TARGET_DATABASE": WorkRequestOperationTypeActivateTargetDatabase, - "DEACTIVATE_TARGET_DATABASE": WorkRequestOperationTypeDeactivateTargetDatabase, - "DELETE_TARGET_DATABASE": WorkRequestOperationTypeDeleteTargetDatabase, - "CHANGE_TARGET_DATABASE_COMPARTMENT": WorkRequestOperationTypeChangeTargetDatabaseCompartment, - "CREATE_PEER_TARGET_DATABASE": WorkRequestOperationTypeCreatePeerTargetDatabase, - "UPDATE_PEER_TARGET_DATABASE": WorkRequestOperationTypeUpdatePeerTargetDatabase, - "DELETE_PEER_TARGET_DATABASE": WorkRequestOperationTypeDeletePeerTargetDatabase, - "REFRESH_TARGET_DATABASE": WorkRequestOperationTypeRefreshTargetDatabase, - "PROVISION_POLICY": WorkRequestOperationTypeProvisionPolicy, - "RETRIEVE_POLICY": WorkRequestOperationTypeRetrievePolicy, - "UPDATE_POLICY": WorkRequestOperationTypeUpdatePolicy, - "CHANGE_POLICY_COMPARTMENT": WorkRequestOperationTypeChangePolicyCompartment, - "CREATE_USER_ASSESSMENT": WorkRequestOperationTypeCreateUserAssessment, - "ASSESS_USER_ASSESSMENT": WorkRequestOperationTypeAssessUserAssessment, - "CREATE_SNAPSHOT_USER_ASSESSMENT": WorkRequestOperationTypeCreateSnapshotUserAssessment, - "CREATE_SCHEDULE_USER_ASSESSMENT": WorkRequestOperationTypeCreateScheduleUserAssessment, - "COMPARE_WITH_BASELINE_USER_ASSESSMENT": WorkRequestOperationTypeCompareWithBaselineUserAssessment, - "DELETE_USER_ASSESSMENT": WorkRequestOperationTypeDeleteUserAssessment, - "UPDATE_USER_ASSESSMENT": WorkRequestOperationTypeUpdateUserAssessment, - "CHANGE_USER_ASSESSMENT_COMPARTMENT": WorkRequestOperationTypeChangeUserAssessmentCompartment, - "SET_USER_ASSESSMENT_BASELINE": WorkRequestOperationTypeSetUserAssessmentBaseline, - "UNSET_USER_ASSESSMENT_BASELINE": WorkRequestOperationTypeUnsetUserAssessmentBaseline, - "GENERATE_USER_ASSESSMENT_REPORT": WorkRequestOperationTypeGenerateUserAssessmentReport, - "CREATE_SECURITY_ASSESSMENT": WorkRequestOperationTypeCreateSecurityAssessment, - "CREATE_SECURITY_ASSESSMENT_NOW": WorkRequestOperationTypeCreateSecurityAssessmentNow, - "ASSESS_SECURITY_ASSESSMENT": WorkRequestOperationTypeAssessSecurityAssessment, - "CREATE_SNAPSHOT_SECURITY_ASSESSMENT": WorkRequestOperationTypeCreateSnapshotSecurityAssessment, - "CREATE_SCHEDULE_SECURITY_ASSESSMENT": WorkRequestOperationTypeCreateScheduleSecurityAssessment, - "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT": WorkRequestOperationTypeCompareWithBaselineSecurityAssessment, - "DELETE_SECURITY_ASSESSMENT": WorkRequestOperationTypeDeleteSecurityAssessment, - "UPDATE_SECURITY_ASSESSMENT": WorkRequestOperationTypeUpdateSecurityAssessment, - "UPDATE_FINDING_RISK": WorkRequestOperationTypeUpdateFindingRisk, - "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT": WorkRequestOperationTypeChangeSecurityAssessmentCompartment, - "SET_SECURITY_ASSESSMENT_BASELINE": WorkRequestOperationTypeSetSecurityAssessmentBaseline, - "UNSET_SECURITY_ASSESSMENT_BASELINE": WorkRequestOperationTypeUnsetSecurityAssessmentBaseline, - "GENERATE_SECURITY_ASSESSMENT_REPORT": WorkRequestOperationTypeGenerateSecurityAssessmentReport, - "DELETE_SQL_FIREWALL_ALLOWED_SQL": WorkRequestOperationTypeDeleteSqlFirewallAllowedSql, - "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL": WorkRequestOperationTypeBulkCreateSqlFirewallAllowedSql, - "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL": WorkRequestOperationTypeBulkDeleteSqlFirewallAllowedSql, - "CREATE_AUDIT_PROFILE": WorkRequestOperationTypeCreateAuditProfile, - "CALCULATE_VOLUME": WorkRequestOperationTypeCalculateVolume, - "CALCULATE_COLLECTED_VOLUME": WorkRequestOperationTypeCalculateCollectedVolume, - "CREATE_DB_SECURITY_CONFIG": WorkRequestOperationTypeCreateDbSecurityConfig, - "REFRESH_DB_SECURITY_CONFIG": WorkRequestOperationTypeRefreshDbSecurityConfig, - "UPDATE_DB_SECURITY_CONFIG": WorkRequestOperationTypeUpdateDbSecurityConfig, - "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT": WorkRequestOperationTypeChangeDbSecurityConfigCompartment, - "GENERATE_FIREWALL_POLICY": WorkRequestOperationTypeGenerateFirewallPolicy, - "UPDATE_FIREWALL_POLICY": WorkRequestOperationTypeUpdateFirewallPolicy, - "CHANGE_FIREWALL_POLICY_COMPARTMENT": WorkRequestOperationTypeChangeFirewallPolicyCompartment, - "DELETE_FIREWALL_POLICY": WorkRequestOperationTypeDeleteFirewallPolicy, - "CREATE_SQL_COLLECTION": WorkRequestOperationTypeCreateSqlCollection, - "UPDATE_SQL_COLLECTION": WorkRequestOperationTypeUpdateSqlCollection, - "START_SQL_COLLECTION": WorkRequestOperationTypeStartSqlCollection, - "STOP_SQL_COLLECTION": WorkRequestOperationTypeStopSqlCollection, - "DELETE_SQL_COLLECTION": WorkRequestOperationTypeDeleteSqlCollection, - "CHANGE_SQL_COLLECTION_COMPARTMENT": WorkRequestOperationTypeChangeSqlCollectionCompartment, - "REFRESH_SQL_COLLECTION_LOG_INSIGHTS": WorkRequestOperationTypeRefreshSqlCollectionLogInsights, - "PURGE_SQL_COLLECTION_LOGS": WorkRequestOperationTypePurgeSqlCollectionLogs, - "REFRESH_VIOLATIONS": WorkRequestOperationTypeRefreshViolations, - "CREATE_ARCHIVAL": WorkRequestOperationTypeCreateArchival, - "UPDATE_SECURITY_POLICY": WorkRequestOperationTypeUpdateSecurityPolicy, - "CHANGE_SECURITY_POLICY_COMPARTMENT": WorkRequestOperationTypeChangeSecurityPolicyCompartment, - "UPDATE_SECURITY_POLICY_DEPLOYMENT": WorkRequestOperationTypeUpdateSecurityPolicyDeployment, - "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT": WorkRequestOperationTypeChangeSecurityPolicyDeploymentCompartment, - "AUDIT_TRAIL": WorkRequestOperationTypeAuditTrail, - "DELETE_AUDIT_TRAIL": WorkRequestOperationTypeDeleteAuditTrail, - "DISCOVER_AUDIT_TRAILS": WorkRequestOperationTypeDiscoverAuditTrails, - "UPDATE_AUDIT_TRAIL": WorkRequestOperationTypeUpdateAuditTrail, - "UPDATE_AUDIT_PROFILE": WorkRequestOperationTypeUpdateAuditProfile, - "AUDIT_CHANGE_COMPARTMENT": WorkRequestOperationTypeAuditChangeCompartment, - "CREATE_REPORT_DEFINITION": WorkRequestOperationTypeCreateReportDefinition, - "UPDATE_REPORT_DEFINITION": WorkRequestOperationTypeUpdateReportDefinition, - "CHANGE_REPORT_DEFINITION_COMPARTMENT": WorkRequestOperationTypeChangeReportDefinitionCompartment, - "DELETE_REPORT_DEFINITION": WorkRequestOperationTypeDeleteReportDefinition, - "GENERATE_REPORT": WorkRequestOperationTypeGenerateReport, - "CHANGE_REPORT_COMPARTMENT": WorkRequestOperationTypeChangeReportCompartment, - "DELETE_ARCHIVE_RETRIEVAL": WorkRequestOperationTypeDeleteArchiveRetrieval, - "CREATE_ARCHIVE_RETRIEVAL": WorkRequestOperationTypeCreateArchiveRetrieval, - "UPDATE_ARCHIVE_RETRIEVAL": WorkRequestOperationTypeUpdateArchiveRetrieval, - "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT": WorkRequestOperationTypeChangeArchiveRetrievalCompartment, - "UPDATE_ALERT": WorkRequestOperationTypeUpdateAlert, - "TARGET_ALERT_POLICY_ASSOCIATION": WorkRequestOperationTypeTargetAlertPolicyAssociation, - "CREATE_SENSITIVE_DATA_MODEL": WorkRequestOperationTypeCreateSensitiveDataModel, - "UPDATE_SENSITIVE_DATA_MODEL": WorkRequestOperationTypeUpdateSensitiveDataModel, - "DELETE_SENSITIVE_DATA_MODEL": WorkRequestOperationTypeDeleteSensitiveDataModel, - "UPLOAD_SENSITIVE_DATA_MODEL": WorkRequestOperationTypeUploadSensitiveDataModel, - "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD": WorkRequestOperationTypeGenerateSensitiveDataModelForDownload, - "CREATE_SENSITIVE_COLUMN": WorkRequestOperationTypeCreateSensitiveColumn, - "UPDATE_SENSITIVE_COLUMN": WorkRequestOperationTypeUpdateSensitiveColumn, - "PATCH_SENSITIVE_COLUMNS": WorkRequestOperationTypePatchSensitiveColumns, - "CREATE_DISCOVERY_JOB": WorkRequestOperationTypeCreateDiscoveryJob, - "DELETE_DISCOVERY_JOB": WorkRequestOperationTypeDeleteDiscoveryJob, - "PATCH_DISCOVERY_JOB_RESULT": WorkRequestOperationTypePatchDiscoveryJobResult, - "APPLY_DISCOVERY_JOB_RESULT": WorkRequestOperationTypeApplyDiscoveryJobResult, - "GENERATE_DISCOVERY_REPORT": WorkRequestOperationTypeGenerateDiscoveryReport, - "CREATE_SENSITIVE_TYPE": WorkRequestOperationTypeCreateSensitiveType, - "UPDATE_SENSITIVE_TYPE": WorkRequestOperationTypeUpdateSensitiveType, - "CREATE_MASKING_POLICY": WorkRequestOperationTypeCreateMaskingPolicy, - "UPDATE_MASKING_POLICY": WorkRequestOperationTypeUpdateMaskingPolicy, - "DELETE_MASKING_POLICY": WorkRequestOperationTypeDeleteMaskingPolicy, - "UPLOAD_MASKING_POLICY": WorkRequestOperationTypeUploadMaskingPolicy, - "GENERATE_MASKING_POLICY_FOR_DOWNLOAD": WorkRequestOperationTypeGenerateMaskingPolicyForDownload, - "CREATE_MASKING_COLUMN": WorkRequestOperationTypeCreateMaskingColumn, - "UPDATE_MASKING_COLUMN": WorkRequestOperationTypeUpdateMaskingColumn, - "PATCH_MASKING_COLUMNS": WorkRequestOperationTypePatchMaskingColumns, - "GENERATE_MASKING_REPORT": WorkRequestOperationTypeGenerateMaskingReport, - "CREATE_LIBRARY_MASKING_FORMAT": WorkRequestOperationTypeCreateLibraryMaskingFormat, - "UPDATE_LIBRARY_MASKING_FORMAT": WorkRequestOperationTypeUpdateLibraryMaskingFormat, - "ADD_COLUMNS_FROM_SDM": WorkRequestOperationTypeAddColumnsFromSdm, - "MASKING_JOB": WorkRequestOperationTypeMaskingJob, - "CREATE_DIFFERENCE": WorkRequestOperationTypeCreateDifference, - "DELETE_DIFFERENCE": WorkRequestOperationTypeDeleteDifference, - "UPDATE_DIFFERENCE": WorkRequestOperationTypeUpdateDifference, - "PATCH_DIFFERENCE": WorkRequestOperationTypePatchDifference, - "APPLY_DIFFERENCE": WorkRequestOperationTypeApplyDifference, - "MASK_POLICY_GENERATE_HEALTH_REPORT": WorkRequestOperationTypeMaskPolicyGenerateHealthReport, - "MASK_POLICY_DELETE_HEALTH_REPORT": WorkRequestOperationTypeMaskPolicyDeleteHealthReport, - "CREATE_SENSITIVE_TYPES_EXPORT": WorkRequestOperationTypeCreateSensitiveTypesExport, - "UPDATE_SENSITIVE_TYPES_EXPORT": WorkRequestOperationTypeUpdateSensitiveTypesExport, - "BULK_CREATE_SENSITIVE_TYPES": WorkRequestOperationTypeBulkCreateSensitiveTypes, - "ABORT_MASKING": WorkRequestOperationTypeAbortMasking, - "CREATE_SECURITY_POLICY_REPORT": WorkRequestOperationTypeCreateSecurityPolicyReport, - "REFRESH_SECURITY_POLICY_CACHE": WorkRequestOperationTypeRefreshSecurityPolicyCache, - "DELETE_SECURITY_POLICY_CACHE": WorkRequestOperationTypeDeleteSecurityPolicyCache, - "CREATE_SCHEDULE": WorkRequestOperationTypeCreateSchedule, - "REMOVE_SCHEDULE_REPORT": WorkRequestOperationTypeRemoveScheduleReport, - "UPDATE_ALL_ALERT": WorkRequestOperationTypeUpdateAllAlert, - "PATCH_TARGET_ALERT_POLICY_ASSOCIATION": WorkRequestOperationTypePatchTargetAlertPolicyAssociation, - "CREATE_ALERT_POLICY": WorkRequestOperationTypeCreateAlertPolicy, - "UPDATE_ALERT_POLICY": WorkRequestOperationTypeUpdateAlertPolicy, - "DELETE_ALERT_POLICY": WorkRequestOperationTypeDeleteAlertPolicy, - "CREATE_ALERT_POLICY_RULE": WorkRequestOperationTypeCreateAlertPolicyRule, - "UPDATE_ALERT_POLICY_RULE": WorkRequestOperationTypeUpdateAlertPolicyRule, - "DELETE_ALERT_POLICY_RULE": WorkRequestOperationTypeDeleteAlertPolicyRule, - "CHANGE_ALERT_POLICY_COMPARTMENT": WorkRequestOperationTypeChangeAlertPolicyCompartment, + "ENABLE_DATA_SAFE_CONFIGURATION": WorkRequestOperationTypeEnableDataSafeConfiguration, + "CREATE_PRIVATE_ENDPOINT": WorkRequestOperationTypeCreatePrivateEndpoint, + "UPDATE_PRIVATE_ENDPOINT": WorkRequestOperationTypeUpdatePrivateEndpoint, + "DELETE_PRIVATE_ENDPOINT": WorkRequestOperationTypeDeletePrivateEndpoint, + "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT": WorkRequestOperationTypeChangePrivateEndpointCompartment, + "CREATE_ONPREM_CONNECTOR": WorkRequestOperationTypeCreateOnpremConnector, + "UPDATE_ONPREM_CONNECTOR": WorkRequestOperationTypeUpdateOnpremConnector, + "DELETE_ONPREM_CONNECTOR": WorkRequestOperationTypeDeleteOnpremConnector, + "UPDATE_ONPREM_CONNECTOR_WALLET": WorkRequestOperationTypeUpdateOnpremConnectorWallet, + "CHANGE_ONPREM_CONNECTOR_COMPARTMENT": WorkRequestOperationTypeChangeOnpremConnectorCompartment, + "CREATE_TARGET_DATABASE": WorkRequestOperationTypeCreateTargetDatabase, + "UPDATE_TARGET_DATABASE": WorkRequestOperationTypeUpdateTargetDatabase, + "ACTIVATE_TARGET_DATABASE": WorkRequestOperationTypeActivateTargetDatabase, + "DEACTIVATE_TARGET_DATABASE": WorkRequestOperationTypeDeactivateTargetDatabase, + "DELETE_TARGET_DATABASE": WorkRequestOperationTypeDeleteTargetDatabase, + "CHANGE_TARGET_DATABASE_COMPARTMENT": WorkRequestOperationTypeChangeTargetDatabaseCompartment, + "CREATE_PEER_TARGET_DATABASE": WorkRequestOperationTypeCreatePeerTargetDatabase, + "UPDATE_PEER_TARGET_DATABASE": WorkRequestOperationTypeUpdatePeerTargetDatabase, + "DELETE_PEER_TARGET_DATABASE": WorkRequestOperationTypeDeletePeerTargetDatabase, + "REFRESH_TARGET_DATABASE": WorkRequestOperationTypeRefreshTargetDatabase, + "PROVISION_POLICY": WorkRequestOperationTypeProvisionPolicy, + "RETRIEVE_POLICY": WorkRequestOperationTypeRetrievePolicy, + "UPDATE_POLICY": WorkRequestOperationTypeUpdatePolicy, + "CHANGE_POLICY_COMPARTMENT": WorkRequestOperationTypeChangePolicyCompartment, + "CREATE_USER_ASSESSMENT": WorkRequestOperationTypeCreateUserAssessment, + "ASSESS_USER_ASSESSMENT": WorkRequestOperationTypeAssessUserAssessment, + "CREATE_SNAPSHOT_USER_ASSESSMENT": WorkRequestOperationTypeCreateSnapshotUserAssessment, + "CREATE_SCHEDULE_USER_ASSESSMENT": WorkRequestOperationTypeCreateScheduleUserAssessment, + "COMPARE_WITH_BASELINE_USER_ASSESSMENT": WorkRequestOperationTypeCompareWithBaselineUserAssessment, + "DELETE_USER_ASSESSMENT": WorkRequestOperationTypeDeleteUserAssessment, + "UPDATE_USER_ASSESSMENT": WorkRequestOperationTypeUpdateUserAssessment, + "CHANGE_USER_ASSESSMENT_COMPARTMENT": WorkRequestOperationTypeChangeUserAssessmentCompartment, + "SET_USER_ASSESSMENT_BASELINE": WorkRequestOperationTypeSetUserAssessmentBaseline, + "UNSET_USER_ASSESSMENT_BASELINE": WorkRequestOperationTypeUnsetUserAssessmentBaseline, + "GENERATE_USER_ASSESSMENT_REPORT": WorkRequestOperationTypeGenerateUserAssessmentReport, + "CREATE_SECURITY_ASSESSMENT": WorkRequestOperationTypeCreateSecurityAssessment, + "CREATE_SECURITY_ASSESSMENT_NOW": WorkRequestOperationTypeCreateSecurityAssessmentNow, + "ASSESS_SECURITY_ASSESSMENT": WorkRequestOperationTypeAssessSecurityAssessment, + "CREATE_SNAPSHOT_SECURITY_ASSESSMENT": WorkRequestOperationTypeCreateSnapshotSecurityAssessment, + "CREATE_SCHEDULE_SECURITY_ASSESSMENT": WorkRequestOperationTypeCreateScheduleSecurityAssessment, + "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT": WorkRequestOperationTypeCompareWithBaselineSecurityAssessment, + "DELETE_SECURITY_ASSESSMENT": WorkRequestOperationTypeDeleteSecurityAssessment, + "UPDATE_SECURITY_ASSESSMENT": WorkRequestOperationTypeUpdateSecurityAssessment, + "PATCH_CHECKS": WorkRequestOperationTypePatchChecks, + "UPDATE_FINDING_SEVERITY": WorkRequestOperationTypeUpdateFindingSeverity, + "APPLY_TEMPLATE": WorkRequestOperationTypeApplyTemplate, + "FLEET_GENERATE_SECURITY_ASSESSMENT_REPORT": WorkRequestOperationTypeFleetGenerateSecurityAssessmentReport, + "FLEET_GENERATE_USER_ASSESSMENT_REPORT": WorkRequestOperationTypeFleetGenerateUserAssessmentReport, + "REFRESH_TARGET_DATABASE_GROUP_WITH_CHANGES": WorkRequestOperationTypeRefreshTargetDatabaseGroupWithChanges, + "UPDATE_FINDING_RISK": WorkRequestOperationTypeUpdateFindingRisk, + "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT": WorkRequestOperationTypeChangeSecurityAssessmentCompartment, + "SET_SECURITY_ASSESSMENT_BASELINE": WorkRequestOperationTypeSetSecurityAssessmentBaseline, + "UNSET_SECURITY_ASSESSMENT_BASELINE": WorkRequestOperationTypeUnsetSecurityAssessmentBaseline, + "GENERATE_SECURITY_ASSESSMENT_REPORT": WorkRequestOperationTypeGenerateSecurityAssessmentReport, + "DELETE_SQL_FIREWALL_ALLOWED_SQL": WorkRequestOperationTypeDeleteSqlFirewallAllowedSql, + "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL": WorkRequestOperationTypeBulkCreateSqlFirewallAllowedSql, + "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL": WorkRequestOperationTypeBulkDeleteSqlFirewallAllowedSql, + "CREATE_AUDIT_PROFILE": WorkRequestOperationTypeCreateAuditProfile, + "CALCULATE_VOLUME": WorkRequestOperationTypeCalculateVolume, + "CALCULATE_COLLECTED_VOLUME": WorkRequestOperationTypeCalculateCollectedVolume, + "CREATE_DB_SECURITY_CONFIG": WorkRequestOperationTypeCreateDbSecurityConfig, + "REFRESH_DB_SECURITY_CONFIG": WorkRequestOperationTypeRefreshDbSecurityConfig, + "UPDATE_DB_SECURITY_CONFIG": WorkRequestOperationTypeUpdateDbSecurityConfig, + "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT": WorkRequestOperationTypeChangeDbSecurityConfigCompartment, + "GENERATE_FIREWALL_POLICY": WorkRequestOperationTypeGenerateFirewallPolicy, + "UPDATE_FIREWALL_POLICY": WorkRequestOperationTypeUpdateFirewallPolicy, + "CHANGE_FIREWALL_POLICY_COMPARTMENT": WorkRequestOperationTypeChangeFirewallPolicyCompartment, + "DELETE_FIREWALL_POLICY": WorkRequestOperationTypeDeleteFirewallPolicy, + "CREATE_SQL_COLLECTION": WorkRequestOperationTypeCreateSqlCollection, + "UPDATE_SQL_COLLECTION": WorkRequestOperationTypeUpdateSqlCollection, + "START_SQL_COLLECTION": WorkRequestOperationTypeStartSqlCollection, + "STOP_SQL_COLLECTION": WorkRequestOperationTypeStopSqlCollection, + "DELETE_SQL_COLLECTION": WorkRequestOperationTypeDeleteSqlCollection, + "CHANGE_SQL_COLLECTION_COMPARTMENT": WorkRequestOperationTypeChangeSqlCollectionCompartment, + "REFRESH_SQL_COLLECTION_LOG_INSIGHTS": WorkRequestOperationTypeRefreshSqlCollectionLogInsights, + "PURGE_SQL_COLLECTION_LOGS": WorkRequestOperationTypePurgeSqlCollectionLogs, + "REFRESH_VIOLATIONS": WorkRequestOperationTypeRefreshViolations, + "CREATE_ARCHIVAL": WorkRequestOperationTypeCreateArchival, + "CREATE_SECURITY_POLICY": WorkRequestOperationTypeCreateSecurityPolicy, + "DELETE_SECURITY_POLICY": WorkRequestOperationTypeDeleteSecurityPolicy, + "SECURITY_POLICY_DEPLOYMENT_ACTIONS": WorkRequestOperationTypeSecurityPolicyDeploymentActions, + "PROVISION_SECURITY_POLICY_DEPLOYMENT": WorkRequestOperationTypeProvisionSecurityPolicyDeployment, + "UPDATE_SECURITY_POLICY": WorkRequestOperationTypeUpdateSecurityPolicy, + "CHANGE_SECURITY_POLICY_COMPARTMENT": WorkRequestOperationTypeChangeSecurityPolicyCompartment, + "UPDATE_SECURITY_POLICY_DEPLOYMENT": WorkRequestOperationTypeUpdateSecurityPolicyDeployment, + "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT": WorkRequestOperationTypeChangeSecurityPolicyDeploymentCompartment, + "AUDIT_TRAIL": WorkRequestOperationTypeAuditTrail, + "DELETE_AUDIT_TRAIL": WorkRequestOperationTypeDeleteAuditTrail, + "DISCOVER_AUDIT_TRAILS": WorkRequestOperationTypeDiscoverAuditTrails, + "UPDATE_AUDIT_TRAIL": WorkRequestOperationTypeUpdateAuditTrail, + "UPDATE_AUDIT_PROFILE": WorkRequestOperationTypeUpdateAuditProfile, + "AUDIT_CHANGE_COMPARTMENT": WorkRequestOperationTypeAuditChangeCompartment, + "CREATE_REPORT_DEFINITION": WorkRequestOperationTypeCreateReportDefinition, + "UPDATE_REPORT_DEFINITION": WorkRequestOperationTypeUpdateReportDefinition, + "CHANGE_REPORT_DEFINITION_COMPARTMENT": WorkRequestOperationTypeChangeReportDefinitionCompartment, + "DELETE_REPORT_DEFINITION": WorkRequestOperationTypeDeleteReportDefinition, + "GENERATE_REPORT": WorkRequestOperationTypeGenerateReport, + "CHANGE_REPORT_COMPARTMENT": WorkRequestOperationTypeChangeReportCompartment, + "DELETE_ARCHIVE_RETRIEVAL": WorkRequestOperationTypeDeleteArchiveRetrieval, + "CREATE_ARCHIVE_RETRIEVAL": WorkRequestOperationTypeCreateArchiveRetrieval, + "UPDATE_ARCHIVE_RETRIEVAL": WorkRequestOperationTypeUpdateArchiveRetrieval, + "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT": WorkRequestOperationTypeChangeArchiveRetrievalCompartment, + "UPDATE_ALERT": WorkRequestOperationTypeUpdateAlert, + "TARGET_ALERT_POLICY_ASSOCIATION": WorkRequestOperationTypeTargetAlertPolicyAssociation, + "CREATE_TARGET_DATABASE_GROUP": WorkRequestOperationTypeCreateTargetDatabaseGroup, + "UPDATE_TARGET_DATABASE_GROUP": WorkRequestOperationTypeUpdateTargetDatabaseGroup, + "DELETE_TARGET_DATABASE_GROUP": WorkRequestOperationTypeDeleteTargetDatabaseGroup, + "CHANGE_TARGET_DATABASE_GROUP_COMPARTMENT": WorkRequestOperationTypeChangeTargetDatabaseGroupCompartment, + "CREATE_SECURITY_POLICY_CONFIG": WorkRequestOperationTypeCreateSecurityPolicyConfig, + "UPDATE_SECURITY_POLICY_CONFIG": WorkRequestOperationTypeUpdateSecurityPolicyConfig, + "DELETE_SECURITY_POLICY_CONFIG": WorkRequestOperationTypeDeleteSecurityPolicyConfig, + "CHANGE_SECURITY_POLICY_CONFIG_COMPARTMENT": WorkRequestOperationTypeChangeSecurityPolicyConfigCompartment, + "CREATE_UNIFIED_AUDIT_POLICY": WorkRequestOperationTypeCreateUnifiedAuditPolicy, + "UPDATE_UNIFIED_AUDIT_POLICY": WorkRequestOperationTypeUpdateUnifiedAuditPolicy, + "DELETE_UNIFIED_AUDIT_POLICY": WorkRequestOperationTypeDeleteUnifiedAuditPolicy, + "CHANGE_UNIFIED_AUDIT_POLICY_COMPARTMENT": WorkRequestOperationTypeChangeUnifiedAuditPolicyCompartment, + "UPDATE_UNIFIED_AUDIT_POLICY_DEFINITION": WorkRequestOperationTypeUpdateUnifiedAuditPolicyDefinition, + "DELETE_UNIFIED_AUDIT_POLICY_DEFINITION": WorkRequestOperationTypeDeleteUnifiedAuditPolicyDefinition, + "CHANGE_UNIFIED_AUDIT_POLICY_DEFINITION_COMPARTMENT": WorkRequestOperationTypeChangeUnifiedAuditPolicyDefinitionCompartment, + "FETCH_AUDIT_POLICY_DETAILS": WorkRequestOperationTypeFetchAuditPolicyDetails, + "BULK_CREATE_UNIFIED_AUDIT_POLICY": WorkRequestOperationTypeBulkCreateUnifiedAuditPolicy, + "CREATE_SENSITIVE_DATA_MODEL": WorkRequestOperationTypeCreateSensitiveDataModel, + "UPDATE_SENSITIVE_DATA_MODEL": WorkRequestOperationTypeUpdateSensitiveDataModel, + "DELETE_SENSITIVE_DATA_MODEL": WorkRequestOperationTypeDeleteSensitiveDataModel, + "UPLOAD_SENSITIVE_DATA_MODEL": WorkRequestOperationTypeUploadSensitiveDataModel, + "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD": WorkRequestOperationTypeGenerateSensitiveDataModelForDownload, + "CREATE_SENSITIVE_COLUMN": WorkRequestOperationTypeCreateSensitiveColumn, + "UPDATE_SENSITIVE_COLUMN": WorkRequestOperationTypeUpdateSensitiveColumn, + "PATCH_SENSITIVE_COLUMNS": WorkRequestOperationTypePatchSensitiveColumns, + "CREATE_DISCOVERY_JOB": WorkRequestOperationTypeCreateDiscoveryJob, + "DELETE_DISCOVERY_JOB": WorkRequestOperationTypeDeleteDiscoveryJob, + "PATCH_DISCOVERY_JOB_RESULT": WorkRequestOperationTypePatchDiscoveryJobResult, + "APPLY_DISCOVERY_JOB_RESULT": WorkRequestOperationTypeApplyDiscoveryJobResult, + "GENERATE_DISCOVERY_REPORT": WorkRequestOperationTypeGenerateDiscoveryReport, + "CREATE_SENSITIVE_TYPE": WorkRequestOperationTypeCreateSensitiveType, + "UPDATE_SENSITIVE_TYPE": WorkRequestOperationTypeUpdateSensitiveType, + "CREATE_MASKING_POLICY": WorkRequestOperationTypeCreateMaskingPolicy, + "UPDATE_MASKING_POLICY": WorkRequestOperationTypeUpdateMaskingPolicy, + "DELETE_MASKING_POLICY": WorkRequestOperationTypeDeleteMaskingPolicy, + "UPLOAD_MASKING_POLICY": WorkRequestOperationTypeUploadMaskingPolicy, + "GENERATE_MASKING_POLICY_FOR_DOWNLOAD": WorkRequestOperationTypeGenerateMaskingPolicyForDownload, + "CREATE_MASKING_COLUMN": WorkRequestOperationTypeCreateMaskingColumn, + "UPDATE_MASKING_COLUMN": WorkRequestOperationTypeUpdateMaskingColumn, + "PATCH_MASKING_COLUMNS": WorkRequestOperationTypePatchMaskingColumns, + "GENERATE_MASKING_REPORT": WorkRequestOperationTypeGenerateMaskingReport, + "CREATE_LIBRARY_MASKING_FORMAT": WorkRequestOperationTypeCreateLibraryMaskingFormat, + "UPDATE_LIBRARY_MASKING_FORMAT": WorkRequestOperationTypeUpdateLibraryMaskingFormat, + "ADD_COLUMNS_FROM_SDM": WorkRequestOperationTypeAddColumnsFromSdm, + "MASKING_JOB": WorkRequestOperationTypeMaskingJob, + "CREATE_DIFFERENCE": WorkRequestOperationTypeCreateDifference, + "DELETE_DIFFERENCE": WorkRequestOperationTypeDeleteDifference, + "UPDATE_DIFFERENCE": WorkRequestOperationTypeUpdateDifference, + "PATCH_DIFFERENCE": WorkRequestOperationTypePatchDifference, + "APPLY_DIFFERENCE": WorkRequestOperationTypeApplyDifference, + "DELETE_MASKING_REPORT": WorkRequestOperationTypeDeleteMaskingReport, + "MASK_POLICY_GENERATE_HEALTH_REPORT": WorkRequestOperationTypeMaskPolicyGenerateHealthReport, + "MASK_POLICY_DELETE_HEALTH_REPORT": WorkRequestOperationTypeMaskPolicyDeleteHealthReport, + "CREATE_SENSITIVE_TYPES_EXPORT": WorkRequestOperationTypeCreateSensitiveTypesExport, + "UPDATE_SENSITIVE_TYPES_EXPORT": WorkRequestOperationTypeUpdateSensitiveTypesExport, + "BULK_CREATE_SENSITIVE_TYPES": WorkRequestOperationTypeBulkCreateSensitiveTypes, + "CREATE_SENSITIVE_TYPE_GROUP": WorkRequestOperationTypeCreateSensitiveTypeGroup, + "UPDATE_SENSITIVE_TYPE_GROUP": WorkRequestOperationTypeUpdateSensitiveTypeGroup, + "DELETE_SENSITIVE_TYPE_GROUP": WorkRequestOperationTypeDeleteSensitiveTypeGroup, + "DELETE_SENSITIVE_TYPE": WorkRequestOperationTypeDeleteSensitiveType, + "PATCH_GROUPED_SENSITIVE_TYPES": WorkRequestOperationTypePatchGroupedSensitiveTypes, + "CREATE_RELATION": WorkRequestOperationTypeCreateRelation, + "DELETE_RELATION": WorkRequestOperationTypeDeleteRelation, + "ABORT_MASKING": WorkRequestOperationTypeAbortMasking, + "CREATE_SECURITY_POLICY_REPORT": WorkRequestOperationTypeCreateSecurityPolicyReport, + "REFRESH_SECURITY_POLICY_CACHE": WorkRequestOperationTypeRefreshSecurityPolicyCache, + "DELETE_SECURITY_POLICY_CACHE": WorkRequestOperationTypeDeleteSecurityPolicyCache, + "CREATE_SCHEDULE": WorkRequestOperationTypeCreateSchedule, + "REMOVE_SCHEDULE_REPORT": WorkRequestOperationTypeRemoveScheduleReport, + "UPDATE_ALL_ALERT": WorkRequestOperationTypeUpdateAllAlert, + "PATCH_TARGET_ALERT_POLICY_ASSOCIATION": WorkRequestOperationTypePatchTargetAlertPolicyAssociation, + "CREATE_ALERT_POLICY": WorkRequestOperationTypeCreateAlertPolicy, + "UPDATE_ALERT_POLICY": WorkRequestOperationTypeUpdateAlertPolicy, + "DELETE_ALERT_POLICY": WorkRequestOperationTypeDeleteAlertPolicy, + "CREATE_ALERT_POLICY_RULE": WorkRequestOperationTypeCreateAlertPolicyRule, + "UPDATE_ALERT_POLICY_RULE": WorkRequestOperationTypeUpdateAlertPolicyRule, + "DELETE_ALERT_POLICY_RULE": WorkRequestOperationTypeDeleteAlertPolicyRule, + "CHANGE_ALERT_POLICY_COMPARTMENT": WorkRequestOperationTypeChangeAlertPolicyCompartment, + "UPDATE_TARGET_GROUP_AUDIT_PROFILE": WorkRequestOperationTypeUpdateTargetGroupAuditProfile, + "CREATE_ATTRIBUTE_SET": WorkRequestOperationTypeCreateAttributeSet, + "UPDATE_ATTRIBUTE_SET": WorkRequestOperationTypeUpdateAttributeSet, + "DELETE_ATTRIBUTE_SET": WorkRequestOperationTypeDeleteAttributeSet, + "CHANGE_ATTRIBUTE_SET_COMPARTMENT": WorkRequestOperationTypeChangeAttributeSetCompartment, } var mappingWorkRequestOperationTypeEnumLowerCase = map[string]WorkRequestOperationTypeEnum{ - "enable_data_safe_configuration": WorkRequestOperationTypeEnableDataSafeConfiguration, - "create_private_endpoint": WorkRequestOperationTypeCreatePrivateEndpoint, - "update_private_endpoint": WorkRequestOperationTypeUpdatePrivateEndpoint, - "delete_private_endpoint": WorkRequestOperationTypeDeletePrivateEndpoint, - "change_private_endpoint_compartment": WorkRequestOperationTypeChangePrivateEndpointCompartment, - "create_onprem_connector": WorkRequestOperationTypeCreateOnpremConnector, - "update_onprem_connector": WorkRequestOperationTypeUpdateOnpremConnector, - "delete_onprem_connector": WorkRequestOperationTypeDeleteOnpremConnector, - "update_onprem_connector_wallet": WorkRequestOperationTypeUpdateOnpremConnectorWallet, - "change_onprem_connector_compartment": WorkRequestOperationTypeChangeOnpremConnectorCompartment, - "create_target_database": WorkRequestOperationTypeCreateTargetDatabase, - "update_target_database": WorkRequestOperationTypeUpdateTargetDatabase, - "activate_target_database": WorkRequestOperationTypeActivateTargetDatabase, - "deactivate_target_database": WorkRequestOperationTypeDeactivateTargetDatabase, - "delete_target_database": WorkRequestOperationTypeDeleteTargetDatabase, - "change_target_database_compartment": WorkRequestOperationTypeChangeTargetDatabaseCompartment, - "create_peer_target_database": WorkRequestOperationTypeCreatePeerTargetDatabase, - "update_peer_target_database": WorkRequestOperationTypeUpdatePeerTargetDatabase, - "delete_peer_target_database": WorkRequestOperationTypeDeletePeerTargetDatabase, - "refresh_target_database": WorkRequestOperationTypeRefreshTargetDatabase, - "provision_policy": WorkRequestOperationTypeProvisionPolicy, - "retrieve_policy": WorkRequestOperationTypeRetrievePolicy, - "update_policy": WorkRequestOperationTypeUpdatePolicy, - "change_policy_compartment": WorkRequestOperationTypeChangePolicyCompartment, - "create_user_assessment": WorkRequestOperationTypeCreateUserAssessment, - "assess_user_assessment": WorkRequestOperationTypeAssessUserAssessment, - "create_snapshot_user_assessment": WorkRequestOperationTypeCreateSnapshotUserAssessment, - "create_schedule_user_assessment": WorkRequestOperationTypeCreateScheduleUserAssessment, - "compare_with_baseline_user_assessment": WorkRequestOperationTypeCompareWithBaselineUserAssessment, - "delete_user_assessment": WorkRequestOperationTypeDeleteUserAssessment, - "update_user_assessment": WorkRequestOperationTypeUpdateUserAssessment, - "change_user_assessment_compartment": WorkRequestOperationTypeChangeUserAssessmentCompartment, - "set_user_assessment_baseline": WorkRequestOperationTypeSetUserAssessmentBaseline, - "unset_user_assessment_baseline": WorkRequestOperationTypeUnsetUserAssessmentBaseline, - "generate_user_assessment_report": WorkRequestOperationTypeGenerateUserAssessmentReport, - "create_security_assessment": WorkRequestOperationTypeCreateSecurityAssessment, - "create_security_assessment_now": WorkRequestOperationTypeCreateSecurityAssessmentNow, - "assess_security_assessment": WorkRequestOperationTypeAssessSecurityAssessment, - "create_snapshot_security_assessment": WorkRequestOperationTypeCreateSnapshotSecurityAssessment, - "create_schedule_security_assessment": WorkRequestOperationTypeCreateScheduleSecurityAssessment, - "compare_with_baseline_security_assessment": WorkRequestOperationTypeCompareWithBaselineSecurityAssessment, - "delete_security_assessment": WorkRequestOperationTypeDeleteSecurityAssessment, - "update_security_assessment": WorkRequestOperationTypeUpdateSecurityAssessment, - "update_finding_risk": WorkRequestOperationTypeUpdateFindingRisk, - "change_security_assessment_compartment": WorkRequestOperationTypeChangeSecurityAssessmentCompartment, - "set_security_assessment_baseline": WorkRequestOperationTypeSetSecurityAssessmentBaseline, - "unset_security_assessment_baseline": WorkRequestOperationTypeUnsetSecurityAssessmentBaseline, - "generate_security_assessment_report": WorkRequestOperationTypeGenerateSecurityAssessmentReport, - "delete_sql_firewall_allowed_sql": WorkRequestOperationTypeDeleteSqlFirewallAllowedSql, - "bulk_create_sql_firewall_allowed_sql": WorkRequestOperationTypeBulkCreateSqlFirewallAllowedSql, - "bulk_delete_sql_firewall_allowed_sql": WorkRequestOperationTypeBulkDeleteSqlFirewallAllowedSql, - "create_audit_profile": WorkRequestOperationTypeCreateAuditProfile, - "calculate_volume": WorkRequestOperationTypeCalculateVolume, - "calculate_collected_volume": WorkRequestOperationTypeCalculateCollectedVolume, - "create_db_security_config": WorkRequestOperationTypeCreateDbSecurityConfig, - "refresh_db_security_config": WorkRequestOperationTypeRefreshDbSecurityConfig, - "update_db_security_config": WorkRequestOperationTypeUpdateDbSecurityConfig, - "change_db_security_config_compartment": WorkRequestOperationTypeChangeDbSecurityConfigCompartment, - "generate_firewall_policy": WorkRequestOperationTypeGenerateFirewallPolicy, - "update_firewall_policy": WorkRequestOperationTypeUpdateFirewallPolicy, - "change_firewall_policy_compartment": WorkRequestOperationTypeChangeFirewallPolicyCompartment, - "delete_firewall_policy": WorkRequestOperationTypeDeleteFirewallPolicy, - "create_sql_collection": WorkRequestOperationTypeCreateSqlCollection, - "update_sql_collection": WorkRequestOperationTypeUpdateSqlCollection, - "start_sql_collection": WorkRequestOperationTypeStartSqlCollection, - "stop_sql_collection": WorkRequestOperationTypeStopSqlCollection, - "delete_sql_collection": WorkRequestOperationTypeDeleteSqlCollection, - "change_sql_collection_compartment": WorkRequestOperationTypeChangeSqlCollectionCompartment, - "refresh_sql_collection_log_insights": WorkRequestOperationTypeRefreshSqlCollectionLogInsights, - "purge_sql_collection_logs": WorkRequestOperationTypePurgeSqlCollectionLogs, - "refresh_violations": WorkRequestOperationTypeRefreshViolations, - "create_archival": WorkRequestOperationTypeCreateArchival, - "update_security_policy": WorkRequestOperationTypeUpdateSecurityPolicy, - "change_security_policy_compartment": WorkRequestOperationTypeChangeSecurityPolicyCompartment, - "update_security_policy_deployment": WorkRequestOperationTypeUpdateSecurityPolicyDeployment, - "change_security_policy_deployment_compartment": WorkRequestOperationTypeChangeSecurityPolicyDeploymentCompartment, - "audit_trail": WorkRequestOperationTypeAuditTrail, - "delete_audit_trail": WorkRequestOperationTypeDeleteAuditTrail, - "discover_audit_trails": WorkRequestOperationTypeDiscoverAuditTrails, - "update_audit_trail": WorkRequestOperationTypeUpdateAuditTrail, - "update_audit_profile": WorkRequestOperationTypeUpdateAuditProfile, - "audit_change_compartment": WorkRequestOperationTypeAuditChangeCompartment, - "create_report_definition": WorkRequestOperationTypeCreateReportDefinition, - "update_report_definition": WorkRequestOperationTypeUpdateReportDefinition, - "change_report_definition_compartment": WorkRequestOperationTypeChangeReportDefinitionCompartment, - "delete_report_definition": WorkRequestOperationTypeDeleteReportDefinition, - "generate_report": WorkRequestOperationTypeGenerateReport, - "change_report_compartment": WorkRequestOperationTypeChangeReportCompartment, - "delete_archive_retrieval": WorkRequestOperationTypeDeleteArchiveRetrieval, - "create_archive_retrieval": WorkRequestOperationTypeCreateArchiveRetrieval, - "update_archive_retrieval": WorkRequestOperationTypeUpdateArchiveRetrieval, - "change_archive_retrieval_compartment": WorkRequestOperationTypeChangeArchiveRetrievalCompartment, - "update_alert": WorkRequestOperationTypeUpdateAlert, - "target_alert_policy_association": WorkRequestOperationTypeTargetAlertPolicyAssociation, - "create_sensitive_data_model": WorkRequestOperationTypeCreateSensitiveDataModel, - "update_sensitive_data_model": WorkRequestOperationTypeUpdateSensitiveDataModel, - "delete_sensitive_data_model": WorkRequestOperationTypeDeleteSensitiveDataModel, - "upload_sensitive_data_model": WorkRequestOperationTypeUploadSensitiveDataModel, - "generate_sensitive_data_model_for_download": WorkRequestOperationTypeGenerateSensitiveDataModelForDownload, - "create_sensitive_column": WorkRequestOperationTypeCreateSensitiveColumn, - "update_sensitive_column": WorkRequestOperationTypeUpdateSensitiveColumn, - "patch_sensitive_columns": WorkRequestOperationTypePatchSensitiveColumns, - "create_discovery_job": WorkRequestOperationTypeCreateDiscoveryJob, - "delete_discovery_job": WorkRequestOperationTypeDeleteDiscoveryJob, - "patch_discovery_job_result": WorkRequestOperationTypePatchDiscoveryJobResult, - "apply_discovery_job_result": WorkRequestOperationTypeApplyDiscoveryJobResult, - "generate_discovery_report": WorkRequestOperationTypeGenerateDiscoveryReport, - "create_sensitive_type": WorkRequestOperationTypeCreateSensitiveType, - "update_sensitive_type": WorkRequestOperationTypeUpdateSensitiveType, - "create_masking_policy": WorkRequestOperationTypeCreateMaskingPolicy, - "update_masking_policy": WorkRequestOperationTypeUpdateMaskingPolicy, - "delete_masking_policy": WorkRequestOperationTypeDeleteMaskingPolicy, - "upload_masking_policy": WorkRequestOperationTypeUploadMaskingPolicy, - "generate_masking_policy_for_download": WorkRequestOperationTypeGenerateMaskingPolicyForDownload, - "create_masking_column": WorkRequestOperationTypeCreateMaskingColumn, - "update_masking_column": WorkRequestOperationTypeUpdateMaskingColumn, - "patch_masking_columns": WorkRequestOperationTypePatchMaskingColumns, - "generate_masking_report": WorkRequestOperationTypeGenerateMaskingReport, - "create_library_masking_format": WorkRequestOperationTypeCreateLibraryMaskingFormat, - "update_library_masking_format": WorkRequestOperationTypeUpdateLibraryMaskingFormat, - "add_columns_from_sdm": WorkRequestOperationTypeAddColumnsFromSdm, - "masking_job": WorkRequestOperationTypeMaskingJob, - "create_difference": WorkRequestOperationTypeCreateDifference, - "delete_difference": WorkRequestOperationTypeDeleteDifference, - "update_difference": WorkRequestOperationTypeUpdateDifference, - "patch_difference": WorkRequestOperationTypePatchDifference, - "apply_difference": WorkRequestOperationTypeApplyDifference, - "mask_policy_generate_health_report": WorkRequestOperationTypeMaskPolicyGenerateHealthReport, - "mask_policy_delete_health_report": WorkRequestOperationTypeMaskPolicyDeleteHealthReport, - "create_sensitive_types_export": WorkRequestOperationTypeCreateSensitiveTypesExport, - "update_sensitive_types_export": WorkRequestOperationTypeUpdateSensitiveTypesExport, - "bulk_create_sensitive_types": WorkRequestOperationTypeBulkCreateSensitiveTypes, - "abort_masking": WorkRequestOperationTypeAbortMasking, - "create_security_policy_report": WorkRequestOperationTypeCreateSecurityPolicyReport, - "refresh_security_policy_cache": WorkRequestOperationTypeRefreshSecurityPolicyCache, - "delete_security_policy_cache": WorkRequestOperationTypeDeleteSecurityPolicyCache, - "create_schedule": WorkRequestOperationTypeCreateSchedule, - "remove_schedule_report": WorkRequestOperationTypeRemoveScheduleReport, - "update_all_alert": WorkRequestOperationTypeUpdateAllAlert, - "patch_target_alert_policy_association": WorkRequestOperationTypePatchTargetAlertPolicyAssociation, - "create_alert_policy": WorkRequestOperationTypeCreateAlertPolicy, - "update_alert_policy": WorkRequestOperationTypeUpdateAlertPolicy, - "delete_alert_policy": WorkRequestOperationTypeDeleteAlertPolicy, - "create_alert_policy_rule": WorkRequestOperationTypeCreateAlertPolicyRule, - "update_alert_policy_rule": WorkRequestOperationTypeUpdateAlertPolicyRule, - "delete_alert_policy_rule": WorkRequestOperationTypeDeleteAlertPolicyRule, - "change_alert_policy_compartment": WorkRequestOperationTypeChangeAlertPolicyCompartment, + "enable_data_safe_configuration": WorkRequestOperationTypeEnableDataSafeConfiguration, + "create_private_endpoint": WorkRequestOperationTypeCreatePrivateEndpoint, + "update_private_endpoint": WorkRequestOperationTypeUpdatePrivateEndpoint, + "delete_private_endpoint": WorkRequestOperationTypeDeletePrivateEndpoint, + "change_private_endpoint_compartment": WorkRequestOperationTypeChangePrivateEndpointCompartment, + "create_onprem_connector": WorkRequestOperationTypeCreateOnpremConnector, + "update_onprem_connector": WorkRequestOperationTypeUpdateOnpremConnector, + "delete_onprem_connector": WorkRequestOperationTypeDeleteOnpremConnector, + "update_onprem_connector_wallet": WorkRequestOperationTypeUpdateOnpremConnectorWallet, + "change_onprem_connector_compartment": WorkRequestOperationTypeChangeOnpremConnectorCompartment, + "create_target_database": WorkRequestOperationTypeCreateTargetDatabase, + "update_target_database": WorkRequestOperationTypeUpdateTargetDatabase, + "activate_target_database": WorkRequestOperationTypeActivateTargetDatabase, + "deactivate_target_database": WorkRequestOperationTypeDeactivateTargetDatabase, + "delete_target_database": WorkRequestOperationTypeDeleteTargetDatabase, + "change_target_database_compartment": WorkRequestOperationTypeChangeTargetDatabaseCompartment, + "create_peer_target_database": WorkRequestOperationTypeCreatePeerTargetDatabase, + "update_peer_target_database": WorkRequestOperationTypeUpdatePeerTargetDatabase, + "delete_peer_target_database": WorkRequestOperationTypeDeletePeerTargetDatabase, + "refresh_target_database": WorkRequestOperationTypeRefreshTargetDatabase, + "provision_policy": WorkRequestOperationTypeProvisionPolicy, + "retrieve_policy": WorkRequestOperationTypeRetrievePolicy, + "update_policy": WorkRequestOperationTypeUpdatePolicy, + "change_policy_compartment": WorkRequestOperationTypeChangePolicyCompartment, + "create_user_assessment": WorkRequestOperationTypeCreateUserAssessment, + "assess_user_assessment": WorkRequestOperationTypeAssessUserAssessment, + "create_snapshot_user_assessment": WorkRequestOperationTypeCreateSnapshotUserAssessment, + "create_schedule_user_assessment": WorkRequestOperationTypeCreateScheduleUserAssessment, + "compare_with_baseline_user_assessment": WorkRequestOperationTypeCompareWithBaselineUserAssessment, + "delete_user_assessment": WorkRequestOperationTypeDeleteUserAssessment, + "update_user_assessment": WorkRequestOperationTypeUpdateUserAssessment, + "change_user_assessment_compartment": WorkRequestOperationTypeChangeUserAssessmentCompartment, + "set_user_assessment_baseline": WorkRequestOperationTypeSetUserAssessmentBaseline, + "unset_user_assessment_baseline": WorkRequestOperationTypeUnsetUserAssessmentBaseline, + "generate_user_assessment_report": WorkRequestOperationTypeGenerateUserAssessmentReport, + "create_security_assessment": WorkRequestOperationTypeCreateSecurityAssessment, + "create_security_assessment_now": WorkRequestOperationTypeCreateSecurityAssessmentNow, + "assess_security_assessment": WorkRequestOperationTypeAssessSecurityAssessment, + "create_snapshot_security_assessment": WorkRequestOperationTypeCreateSnapshotSecurityAssessment, + "create_schedule_security_assessment": WorkRequestOperationTypeCreateScheduleSecurityAssessment, + "compare_with_baseline_security_assessment": WorkRequestOperationTypeCompareWithBaselineSecurityAssessment, + "delete_security_assessment": WorkRequestOperationTypeDeleteSecurityAssessment, + "update_security_assessment": WorkRequestOperationTypeUpdateSecurityAssessment, + "patch_checks": WorkRequestOperationTypePatchChecks, + "update_finding_severity": WorkRequestOperationTypeUpdateFindingSeverity, + "apply_template": WorkRequestOperationTypeApplyTemplate, + "fleet_generate_security_assessment_report": WorkRequestOperationTypeFleetGenerateSecurityAssessmentReport, + "fleet_generate_user_assessment_report": WorkRequestOperationTypeFleetGenerateUserAssessmentReport, + "refresh_target_database_group_with_changes": WorkRequestOperationTypeRefreshTargetDatabaseGroupWithChanges, + "update_finding_risk": WorkRequestOperationTypeUpdateFindingRisk, + "change_security_assessment_compartment": WorkRequestOperationTypeChangeSecurityAssessmentCompartment, + "set_security_assessment_baseline": WorkRequestOperationTypeSetSecurityAssessmentBaseline, + "unset_security_assessment_baseline": WorkRequestOperationTypeUnsetSecurityAssessmentBaseline, + "generate_security_assessment_report": WorkRequestOperationTypeGenerateSecurityAssessmentReport, + "delete_sql_firewall_allowed_sql": WorkRequestOperationTypeDeleteSqlFirewallAllowedSql, + "bulk_create_sql_firewall_allowed_sql": WorkRequestOperationTypeBulkCreateSqlFirewallAllowedSql, + "bulk_delete_sql_firewall_allowed_sql": WorkRequestOperationTypeBulkDeleteSqlFirewallAllowedSql, + "create_audit_profile": WorkRequestOperationTypeCreateAuditProfile, + "calculate_volume": WorkRequestOperationTypeCalculateVolume, + "calculate_collected_volume": WorkRequestOperationTypeCalculateCollectedVolume, + "create_db_security_config": WorkRequestOperationTypeCreateDbSecurityConfig, + "refresh_db_security_config": WorkRequestOperationTypeRefreshDbSecurityConfig, + "update_db_security_config": WorkRequestOperationTypeUpdateDbSecurityConfig, + "change_db_security_config_compartment": WorkRequestOperationTypeChangeDbSecurityConfigCompartment, + "generate_firewall_policy": WorkRequestOperationTypeGenerateFirewallPolicy, + "update_firewall_policy": WorkRequestOperationTypeUpdateFirewallPolicy, + "change_firewall_policy_compartment": WorkRequestOperationTypeChangeFirewallPolicyCompartment, + "delete_firewall_policy": WorkRequestOperationTypeDeleteFirewallPolicy, + "create_sql_collection": WorkRequestOperationTypeCreateSqlCollection, + "update_sql_collection": WorkRequestOperationTypeUpdateSqlCollection, + "start_sql_collection": WorkRequestOperationTypeStartSqlCollection, + "stop_sql_collection": WorkRequestOperationTypeStopSqlCollection, + "delete_sql_collection": WorkRequestOperationTypeDeleteSqlCollection, + "change_sql_collection_compartment": WorkRequestOperationTypeChangeSqlCollectionCompartment, + "refresh_sql_collection_log_insights": WorkRequestOperationTypeRefreshSqlCollectionLogInsights, + "purge_sql_collection_logs": WorkRequestOperationTypePurgeSqlCollectionLogs, + "refresh_violations": WorkRequestOperationTypeRefreshViolations, + "create_archival": WorkRequestOperationTypeCreateArchival, + "create_security_policy": WorkRequestOperationTypeCreateSecurityPolicy, + "delete_security_policy": WorkRequestOperationTypeDeleteSecurityPolicy, + "security_policy_deployment_actions": WorkRequestOperationTypeSecurityPolicyDeploymentActions, + "provision_security_policy_deployment": WorkRequestOperationTypeProvisionSecurityPolicyDeployment, + "update_security_policy": WorkRequestOperationTypeUpdateSecurityPolicy, + "change_security_policy_compartment": WorkRequestOperationTypeChangeSecurityPolicyCompartment, + "update_security_policy_deployment": WorkRequestOperationTypeUpdateSecurityPolicyDeployment, + "change_security_policy_deployment_compartment": WorkRequestOperationTypeChangeSecurityPolicyDeploymentCompartment, + "audit_trail": WorkRequestOperationTypeAuditTrail, + "delete_audit_trail": WorkRequestOperationTypeDeleteAuditTrail, + "discover_audit_trails": WorkRequestOperationTypeDiscoverAuditTrails, + "update_audit_trail": WorkRequestOperationTypeUpdateAuditTrail, + "update_audit_profile": WorkRequestOperationTypeUpdateAuditProfile, + "audit_change_compartment": WorkRequestOperationTypeAuditChangeCompartment, + "create_report_definition": WorkRequestOperationTypeCreateReportDefinition, + "update_report_definition": WorkRequestOperationTypeUpdateReportDefinition, + "change_report_definition_compartment": WorkRequestOperationTypeChangeReportDefinitionCompartment, + "delete_report_definition": WorkRequestOperationTypeDeleteReportDefinition, + "generate_report": WorkRequestOperationTypeGenerateReport, + "change_report_compartment": WorkRequestOperationTypeChangeReportCompartment, + "delete_archive_retrieval": WorkRequestOperationTypeDeleteArchiveRetrieval, + "create_archive_retrieval": WorkRequestOperationTypeCreateArchiveRetrieval, + "update_archive_retrieval": WorkRequestOperationTypeUpdateArchiveRetrieval, + "change_archive_retrieval_compartment": WorkRequestOperationTypeChangeArchiveRetrievalCompartment, + "update_alert": WorkRequestOperationTypeUpdateAlert, + "target_alert_policy_association": WorkRequestOperationTypeTargetAlertPolicyAssociation, + "create_target_database_group": WorkRequestOperationTypeCreateTargetDatabaseGroup, + "update_target_database_group": WorkRequestOperationTypeUpdateTargetDatabaseGroup, + "delete_target_database_group": WorkRequestOperationTypeDeleteTargetDatabaseGroup, + "change_target_database_group_compartment": WorkRequestOperationTypeChangeTargetDatabaseGroupCompartment, + "create_security_policy_config": WorkRequestOperationTypeCreateSecurityPolicyConfig, + "update_security_policy_config": WorkRequestOperationTypeUpdateSecurityPolicyConfig, + "delete_security_policy_config": WorkRequestOperationTypeDeleteSecurityPolicyConfig, + "change_security_policy_config_compartment": WorkRequestOperationTypeChangeSecurityPolicyConfigCompartment, + "create_unified_audit_policy": WorkRequestOperationTypeCreateUnifiedAuditPolicy, + "update_unified_audit_policy": WorkRequestOperationTypeUpdateUnifiedAuditPolicy, + "delete_unified_audit_policy": WorkRequestOperationTypeDeleteUnifiedAuditPolicy, + "change_unified_audit_policy_compartment": WorkRequestOperationTypeChangeUnifiedAuditPolicyCompartment, + "update_unified_audit_policy_definition": WorkRequestOperationTypeUpdateUnifiedAuditPolicyDefinition, + "delete_unified_audit_policy_definition": WorkRequestOperationTypeDeleteUnifiedAuditPolicyDefinition, + "change_unified_audit_policy_definition_compartment": WorkRequestOperationTypeChangeUnifiedAuditPolicyDefinitionCompartment, + "fetch_audit_policy_details": WorkRequestOperationTypeFetchAuditPolicyDetails, + "bulk_create_unified_audit_policy": WorkRequestOperationTypeBulkCreateUnifiedAuditPolicy, + "create_sensitive_data_model": WorkRequestOperationTypeCreateSensitiveDataModel, + "update_sensitive_data_model": WorkRequestOperationTypeUpdateSensitiveDataModel, + "delete_sensitive_data_model": WorkRequestOperationTypeDeleteSensitiveDataModel, + "upload_sensitive_data_model": WorkRequestOperationTypeUploadSensitiveDataModel, + "generate_sensitive_data_model_for_download": WorkRequestOperationTypeGenerateSensitiveDataModelForDownload, + "create_sensitive_column": WorkRequestOperationTypeCreateSensitiveColumn, + "update_sensitive_column": WorkRequestOperationTypeUpdateSensitiveColumn, + "patch_sensitive_columns": WorkRequestOperationTypePatchSensitiveColumns, + "create_discovery_job": WorkRequestOperationTypeCreateDiscoveryJob, + "delete_discovery_job": WorkRequestOperationTypeDeleteDiscoveryJob, + "patch_discovery_job_result": WorkRequestOperationTypePatchDiscoveryJobResult, + "apply_discovery_job_result": WorkRequestOperationTypeApplyDiscoveryJobResult, + "generate_discovery_report": WorkRequestOperationTypeGenerateDiscoveryReport, + "create_sensitive_type": WorkRequestOperationTypeCreateSensitiveType, + "update_sensitive_type": WorkRequestOperationTypeUpdateSensitiveType, + "create_masking_policy": WorkRequestOperationTypeCreateMaskingPolicy, + "update_masking_policy": WorkRequestOperationTypeUpdateMaskingPolicy, + "delete_masking_policy": WorkRequestOperationTypeDeleteMaskingPolicy, + "upload_masking_policy": WorkRequestOperationTypeUploadMaskingPolicy, + "generate_masking_policy_for_download": WorkRequestOperationTypeGenerateMaskingPolicyForDownload, + "create_masking_column": WorkRequestOperationTypeCreateMaskingColumn, + "update_masking_column": WorkRequestOperationTypeUpdateMaskingColumn, + "patch_masking_columns": WorkRequestOperationTypePatchMaskingColumns, + "generate_masking_report": WorkRequestOperationTypeGenerateMaskingReport, + "create_library_masking_format": WorkRequestOperationTypeCreateLibraryMaskingFormat, + "update_library_masking_format": WorkRequestOperationTypeUpdateLibraryMaskingFormat, + "add_columns_from_sdm": WorkRequestOperationTypeAddColumnsFromSdm, + "masking_job": WorkRequestOperationTypeMaskingJob, + "create_difference": WorkRequestOperationTypeCreateDifference, + "delete_difference": WorkRequestOperationTypeDeleteDifference, + "update_difference": WorkRequestOperationTypeUpdateDifference, + "patch_difference": WorkRequestOperationTypePatchDifference, + "apply_difference": WorkRequestOperationTypeApplyDifference, + "delete_masking_report": WorkRequestOperationTypeDeleteMaskingReport, + "mask_policy_generate_health_report": WorkRequestOperationTypeMaskPolicyGenerateHealthReport, + "mask_policy_delete_health_report": WorkRequestOperationTypeMaskPolicyDeleteHealthReport, + "create_sensitive_types_export": WorkRequestOperationTypeCreateSensitiveTypesExport, + "update_sensitive_types_export": WorkRequestOperationTypeUpdateSensitiveTypesExport, + "bulk_create_sensitive_types": WorkRequestOperationTypeBulkCreateSensitiveTypes, + "create_sensitive_type_group": WorkRequestOperationTypeCreateSensitiveTypeGroup, + "update_sensitive_type_group": WorkRequestOperationTypeUpdateSensitiveTypeGroup, + "delete_sensitive_type_group": WorkRequestOperationTypeDeleteSensitiveTypeGroup, + "delete_sensitive_type": WorkRequestOperationTypeDeleteSensitiveType, + "patch_grouped_sensitive_types": WorkRequestOperationTypePatchGroupedSensitiveTypes, + "create_relation": WorkRequestOperationTypeCreateRelation, + "delete_relation": WorkRequestOperationTypeDeleteRelation, + "abort_masking": WorkRequestOperationTypeAbortMasking, + "create_security_policy_report": WorkRequestOperationTypeCreateSecurityPolicyReport, + "refresh_security_policy_cache": WorkRequestOperationTypeRefreshSecurityPolicyCache, + "delete_security_policy_cache": WorkRequestOperationTypeDeleteSecurityPolicyCache, + "create_schedule": WorkRequestOperationTypeCreateSchedule, + "remove_schedule_report": WorkRequestOperationTypeRemoveScheduleReport, + "update_all_alert": WorkRequestOperationTypeUpdateAllAlert, + "patch_target_alert_policy_association": WorkRequestOperationTypePatchTargetAlertPolicyAssociation, + "create_alert_policy": WorkRequestOperationTypeCreateAlertPolicy, + "update_alert_policy": WorkRequestOperationTypeUpdateAlertPolicy, + "delete_alert_policy": WorkRequestOperationTypeDeleteAlertPolicy, + "create_alert_policy_rule": WorkRequestOperationTypeCreateAlertPolicyRule, + "update_alert_policy_rule": WorkRequestOperationTypeUpdateAlertPolicyRule, + "delete_alert_policy_rule": WorkRequestOperationTypeDeleteAlertPolicyRule, + "change_alert_policy_compartment": WorkRequestOperationTypeChangeAlertPolicyCompartment, + "update_target_group_audit_profile": WorkRequestOperationTypeUpdateTargetGroupAuditProfile, + "create_attribute_set": WorkRequestOperationTypeCreateAttributeSet, + "update_attribute_set": WorkRequestOperationTypeUpdateAttributeSet, + "delete_attribute_set": WorkRequestOperationTypeDeleteAttributeSet, + "change_attribute_set_compartment": WorkRequestOperationTypeChangeAttributeSetCompartment, } // GetWorkRequestOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypeEnum @@ -577,6 +697,12 @@ func GetWorkRequestOperationTypeEnumStringValues() []string { "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", + "PATCH_CHECKS", + "UPDATE_FINDING_SEVERITY", + "APPLY_TEMPLATE", + "FLEET_GENERATE_SECURITY_ASSESSMENT_REPORT", + "FLEET_GENERATE_USER_ASSESSMENT_REPORT", + "REFRESH_TARGET_DATABASE_GROUP_WITH_CHANGES", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", @@ -606,6 +732,10 @@ func GetWorkRequestOperationTypeEnumStringValues() []string { "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", + "CREATE_SECURITY_POLICY", + "DELETE_SECURITY_POLICY", + "SECURITY_POLICY_DEPLOYMENT_ACTIONS", + "PROVISION_SECURITY_POLICY_DEPLOYMENT", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", @@ -628,6 +758,23 @@ func GetWorkRequestOperationTypeEnumStringValues() []string { "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", + "CREATE_TARGET_DATABASE_GROUP", + "UPDATE_TARGET_DATABASE_GROUP", + "DELETE_TARGET_DATABASE_GROUP", + "CHANGE_TARGET_DATABASE_GROUP_COMPARTMENT", + "CREATE_SECURITY_POLICY_CONFIG", + "UPDATE_SECURITY_POLICY_CONFIG", + "DELETE_SECURITY_POLICY_CONFIG", + "CHANGE_SECURITY_POLICY_CONFIG_COMPARTMENT", + "CREATE_UNIFIED_AUDIT_POLICY", + "UPDATE_UNIFIED_AUDIT_POLICY", + "DELETE_UNIFIED_AUDIT_POLICY", + "CHANGE_UNIFIED_AUDIT_POLICY_COMPARTMENT", + "UPDATE_UNIFIED_AUDIT_POLICY_DEFINITION", + "DELETE_UNIFIED_AUDIT_POLICY_DEFINITION", + "CHANGE_UNIFIED_AUDIT_POLICY_DEFINITION_COMPARTMENT", + "FETCH_AUDIT_POLICY_DETAILS", + "BULK_CREATE_UNIFIED_AUDIT_POLICY", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", @@ -661,11 +808,19 @@ func GetWorkRequestOperationTypeEnumStringValues() []string { "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", + "DELETE_MASKING_REPORT", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "CREATE_SENSITIVE_TYPES_EXPORT", "UPDATE_SENSITIVE_TYPES_EXPORT", "BULK_CREATE_SENSITIVE_TYPES", + "CREATE_SENSITIVE_TYPE_GROUP", + "UPDATE_SENSITIVE_TYPE_GROUP", + "DELETE_SENSITIVE_TYPE_GROUP", + "DELETE_SENSITIVE_TYPE", + "PATCH_GROUPED_SENSITIVE_TYPES", + "CREATE_RELATION", + "DELETE_RELATION", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", @@ -681,6 +836,11 @@ func GetWorkRequestOperationTypeEnumStringValues() []string { "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT", + "UPDATE_TARGET_GROUP_AUDIT_PROFILE", + "CREATE_ATTRIBUTE_SET", + "UPDATE_ATTRIBUTE_SET", + "DELETE_ATTRIBUTE_SET", + "CHANGE_ATTRIBUTE_SET_COMPARTMENT", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/work_request_summary.go index 0fa40da8377..777937ba609 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/work_request_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datasafe/work_request_summary.go @@ -73,450 +73,570 @@ type WorkRequestSummaryOperationTypeEnum string // Set of constants representing the allowable values for WorkRequestSummaryOperationTypeEnum const ( - WorkRequestSummaryOperationTypeEnableDataSafeConfiguration WorkRequestSummaryOperationTypeEnum = "ENABLE_DATA_SAFE_CONFIGURATION" - WorkRequestSummaryOperationTypeCreatePrivateEndpoint WorkRequestSummaryOperationTypeEnum = "CREATE_PRIVATE_ENDPOINT" - WorkRequestSummaryOperationTypeUpdatePrivateEndpoint WorkRequestSummaryOperationTypeEnum = "UPDATE_PRIVATE_ENDPOINT" - WorkRequestSummaryOperationTypeDeletePrivateEndpoint WorkRequestSummaryOperationTypeEnum = "DELETE_PRIVATE_ENDPOINT" - WorkRequestSummaryOperationTypeChangePrivateEndpointCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT" - WorkRequestSummaryOperationTypeCreateOnpremConnector WorkRequestSummaryOperationTypeEnum = "CREATE_ONPREM_CONNECTOR" - WorkRequestSummaryOperationTypeUpdateOnpremConnector WorkRequestSummaryOperationTypeEnum = "UPDATE_ONPREM_CONNECTOR" - WorkRequestSummaryOperationTypeDeleteOnpremConnector WorkRequestSummaryOperationTypeEnum = "DELETE_ONPREM_CONNECTOR" - WorkRequestSummaryOperationTypeUpdateOnpremConnectorWallet WorkRequestSummaryOperationTypeEnum = "UPDATE_ONPREM_CONNECTOR_WALLET" - WorkRequestSummaryOperationTypeChangeOnpremConnectorCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_ONPREM_CONNECTOR_COMPARTMENT" - WorkRequestSummaryOperationTypeProvisionPolicy WorkRequestSummaryOperationTypeEnum = "PROVISION_POLICY" - WorkRequestSummaryOperationTypeRetrievePolicy WorkRequestSummaryOperationTypeEnum = "RETRIEVE_POLICY" - WorkRequestSummaryOperationTypeUpdatePolicy WorkRequestSummaryOperationTypeEnum = "UPDATE_POLICY" - WorkRequestSummaryOperationTypeChangePolicyCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_POLICY_COMPARTMENT" - WorkRequestSummaryOperationTypeCreateTargetDatabase WorkRequestSummaryOperationTypeEnum = "CREATE_TARGET_DATABASE" - WorkRequestSummaryOperationTypeUpdateTargetDatabase WorkRequestSummaryOperationTypeEnum = "UPDATE_TARGET_DATABASE" - WorkRequestSummaryOperationTypeActivateTargetDatabase WorkRequestSummaryOperationTypeEnum = "ACTIVATE_TARGET_DATABASE" - WorkRequestSummaryOperationTypeDeactivateTargetDatabase WorkRequestSummaryOperationTypeEnum = "DEACTIVATE_TARGET_DATABASE" - WorkRequestSummaryOperationTypeDeleteTargetDatabase WorkRequestSummaryOperationTypeEnum = "DELETE_TARGET_DATABASE" - WorkRequestSummaryOperationTypeChangeTargetDatabaseCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_TARGET_DATABASE_COMPARTMENT" - WorkRequestSummaryOperationTypeCreatePeerTargetDatabase WorkRequestSummaryOperationTypeEnum = "CREATE_PEER_TARGET_DATABASE" - WorkRequestSummaryOperationTypeUpdatePeerTargetDatabase WorkRequestSummaryOperationTypeEnum = "UPDATE_PEER_TARGET_DATABASE" - WorkRequestSummaryOperationTypeDeletePeerTargetDatabase WorkRequestSummaryOperationTypeEnum = "DELETE_PEER_TARGET_DATABASE" - WorkRequestSummaryOperationTypeRefreshTargetDatabase WorkRequestSummaryOperationTypeEnum = "REFRESH_TARGET_DATABASE" - WorkRequestSummaryOperationTypeCreateUserAssessment WorkRequestSummaryOperationTypeEnum = "CREATE_USER_ASSESSMENT" - WorkRequestSummaryOperationTypeAssessUserAssessment WorkRequestSummaryOperationTypeEnum = "ASSESS_USER_ASSESSMENT" - WorkRequestSummaryOperationTypeCreateSnapshotUserAssessment WorkRequestSummaryOperationTypeEnum = "CREATE_SNAPSHOT_USER_ASSESSMENT" - WorkRequestSummaryOperationTypeCreateScheduleUserAssessment WorkRequestSummaryOperationTypeEnum = "CREATE_SCHEDULE_USER_ASSESSMENT" - WorkRequestSummaryOperationTypeCompareWithBaselineUserAssessment WorkRequestSummaryOperationTypeEnum = "COMPARE_WITH_BASELINE_USER_ASSESSMENT" - WorkRequestSummaryOperationTypeDeleteUserAssessment WorkRequestSummaryOperationTypeEnum = "DELETE_USER_ASSESSMENT" - WorkRequestSummaryOperationTypeUpdateUserAssessment WorkRequestSummaryOperationTypeEnum = "UPDATE_USER_ASSESSMENT" - WorkRequestSummaryOperationTypeChangeUserAssessmentCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_USER_ASSESSMENT_COMPARTMENT" - WorkRequestSummaryOperationTypeSetUserAssessmentBaseline WorkRequestSummaryOperationTypeEnum = "SET_USER_ASSESSMENT_BASELINE" - WorkRequestSummaryOperationTypeUnsetUserAssessmentBaseline WorkRequestSummaryOperationTypeEnum = "UNSET_USER_ASSESSMENT_BASELINE" - WorkRequestSummaryOperationTypeGenerateUserAssessmentReport WorkRequestSummaryOperationTypeEnum = "GENERATE_USER_ASSESSMENT_REPORT" - WorkRequestSummaryOperationTypeCreateSecurityAssessment WorkRequestSummaryOperationTypeEnum = "CREATE_SECURITY_ASSESSMENT" - WorkRequestSummaryOperationTypeCreateSecurityAssessmentNow WorkRequestSummaryOperationTypeEnum = "CREATE_SECURITY_ASSESSMENT_NOW" - WorkRequestSummaryOperationTypeAssessSecurityAssessment WorkRequestSummaryOperationTypeEnum = "ASSESS_SECURITY_ASSESSMENT" - WorkRequestSummaryOperationTypeCreateSnapshotSecurityAssessment WorkRequestSummaryOperationTypeEnum = "CREATE_SNAPSHOT_SECURITY_ASSESSMENT" - WorkRequestSummaryOperationTypeCreateScheduleSecurityAssessment WorkRequestSummaryOperationTypeEnum = "CREATE_SCHEDULE_SECURITY_ASSESSMENT" - WorkRequestSummaryOperationTypeCompareWithBaselineSecurityAssessment WorkRequestSummaryOperationTypeEnum = "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT" - WorkRequestSummaryOperationTypeDeleteSecurityAssessment WorkRequestSummaryOperationTypeEnum = "DELETE_SECURITY_ASSESSMENT" - WorkRequestSummaryOperationTypeUpdateSecurityAssessment WorkRequestSummaryOperationTypeEnum = "UPDATE_SECURITY_ASSESSMENT" - WorkRequestSummaryOperationTypeUpdateFindingRisk WorkRequestSummaryOperationTypeEnum = "UPDATE_FINDING_RISK" - WorkRequestSummaryOperationTypeChangeSecurityAssessmentCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT" - WorkRequestSummaryOperationTypeSetSecurityAssessmentBaseline WorkRequestSummaryOperationTypeEnum = "SET_SECURITY_ASSESSMENT_BASELINE" - WorkRequestSummaryOperationTypeUnsetSecurityAssessmentBaseline WorkRequestSummaryOperationTypeEnum = "UNSET_SECURITY_ASSESSMENT_BASELINE" - WorkRequestSummaryOperationTypeGenerateSecurityAssessmentReport WorkRequestSummaryOperationTypeEnum = "GENERATE_SECURITY_ASSESSMENT_REPORT" - WorkRequestSummaryOperationTypeDeleteSqlFirewallAllowedSql WorkRequestSummaryOperationTypeEnum = "DELETE_SQL_FIREWALL_ALLOWED_SQL" - WorkRequestSummaryOperationTypeBulkCreateSqlFirewallAllowedSql WorkRequestSummaryOperationTypeEnum = "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL" - WorkRequestSummaryOperationTypeBulkDeleteSqlFirewallAllowedSql WorkRequestSummaryOperationTypeEnum = "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL" - WorkRequestSummaryOperationTypeCalculateVolume WorkRequestSummaryOperationTypeEnum = "CALCULATE_VOLUME" - WorkRequestSummaryOperationTypeCalculateCollectedVolume WorkRequestSummaryOperationTypeEnum = "CALCULATE_COLLECTED_VOLUME" - WorkRequestSummaryOperationTypeCreateDbSecurityConfig WorkRequestSummaryOperationTypeEnum = "CREATE_DB_SECURITY_CONFIG" - WorkRequestSummaryOperationTypeRefreshDbSecurityConfig WorkRequestSummaryOperationTypeEnum = "REFRESH_DB_SECURITY_CONFIG" - WorkRequestSummaryOperationTypeUpdateDbSecurityConfig WorkRequestSummaryOperationTypeEnum = "UPDATE_DB_SECURITY_CONFIG" - WorkRequestSummaryOperationTypeChangeDbSecurityConfigCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT" - WorkRequestSummaryOperationTypeGenerateFirewallPolicy WorkRequestSummaryOperationTypeEnum = "GENERATE_FIREWALL_POLICY" - WorkRequestSummaryOperationTypeUpdateFirewallPolicy WorkRequestSummaryOperationTypeEnum = "UPDATE_FIREWALL_POLICY" - WorkRequestSummaryOperationTypeChangeFirewallPolicyCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_FIREWALL_POLICY_COMPARTMENT" - WorkRequestSummaryOperationTypeDeleteFirewallPolicy WorkRequestSummaryOperationTypeEnum = "DELETE_FIREWALL_POLICY" - WorkRequestSummaryOperationTypeCreateSqlCollection WorkRequestSummaryOperationTypeEnum = "CREATE_SQL_COLLECTION" - WorkRequestSummaryOperationTypeUpdateSqlCollection WorkRequestSummaryOperationTypeEnum = "UPDATE_SQL_COLLECTION" - WorkRequestSummaryOperationTypeStartSqlCollection WorkRequestSummaryOperationTypeEnum = "START_SQL_COLLECTION" - WorkRequestSummaryOperationTypeStopSqlCollection WorkRequestSummaryOperationTypeEnum = "STOP_SQL_COLLECTION" - WorkRequestSummaryOperationTypeDeleteSqlCollection WorkRequestSummaryOperationTypeEnum = "DELETE_SQL_COLLECTION" - WorkRequestSummaryOperationTypeChangeSqlCollectionCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_SQL_COLLECTION_COMPARTMENT" - WorkRequestSummaryOperationTypeRefreshSqlCollectionLogInsights WorkRequestSummaryOperationTypeEnum = "REFRESH_SQL_COLLECTION_LOG_INSIGHTS" - WorkRequestSummaryOperationTypePurgeSqlCollectionLogs WorkRequestSummaryOperationTypeEnum = "PURGE_SQL_COLLECTION_LOGS" - WorkRequestSummaryOperationTypeRefreshViolations WorkRequestSummaryOperationTypeEnum = "REFRESH_VIOLATIONS" - WorkRequestSummaryOperationTypeCreateArchival WorkRequestSummaryOperationTypeEnum = "CREATE_ARCHIVAL" - WorkRequestSummaryOperationTypeUpdateSecurityPolicy WorkRequestSummaryOperationTypeEnum = "UPDATE_SECURITY_POLICY" - WorkRequestSummaryOperationTypeChangeSecurityPolicyCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_SECURITY_POLICY_COMPARTMENT" - WorkRequestSummaryOperationTypeUpdateSecurityPolicyDeployment WorkRequestSummaryOperationTypeEnum = "UPDATE_SECURITY_POLICY_DEPLOYMENT" - WorkRequestSummaryOperationTypeChangeSecurityPolicyDeploymentCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT" - WorkRequestSummaryOperationTypeAuditTrail WorkRequestSummaryOperationTypeEnum = "AUDIT_TRAIL" - WorkRequestSummaryOperationTypeDeleteAuditTrail WorkRequestSummaryOperationTypeEnum = "DELETE_AUDIT_TRAIL" - WorkRequestSummaryOperationTypeDiscoverAuditTrails WorkRequestSummaryOperationTypeEnum = "DISCOVER_AUDIT_TRAILS" - WorkRequestSummaryOperationTypeUpdateAuditTrail WorkRequestSummaryOperationTypeEnum = "UPDATE_AUDIT_TRAIL" - WorkRequestSummaryOperationTypeUpdateAuditProfile WorkRequestSummaryOperationTypeEnum = "UPDATE_AUDIT_PROFILE" - WorkRequestSummaryOperationTypeAuditChangeCompartment WorkRequestSummaryOperationTypeEnum = "AUDIT_CHANGE_COMPARTMENT" - WorkRequestSummaryOperationTypeCreateReportDefinition WorkRequestSummaryOperationTypeEnum = "CREATE_REPORT_DEFINITION" - WorkRequestSummaryOperationTypeUpdateReportDefinition WorkRequestSummaryOperationTypeEnum = "UPDATE_REPORT_DEFINITION" - WorkRequestSummaryOperationTypeChangeReportDefinitionCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_REPORT_DEFINITION_COMPARTMENT" - WorkRequestSummaryOperationTypeDeleteReportDefinition WorkRequestSummaryOperationTypeEnum = "DELETE_REPORT_DEFINITION" - WorkRequestSummaryOperationTypeGenerateReport WorkRequestSummaryOperationTypeEnum = "GENERATE_REPORT" - WorkRequestSummaryOperationTypeChangeReportCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_REPORT_COMPARTMENT" - WorkRequestSummaryOperationTypeDeleteArchiveRetrieval WorkRequestSummaryOperationTypeEnum = "DELETE_ARCHIVE_RETRIEVAL" - WorkRequestSummaryOperationTypeCreateArchiveRetrieval WorkRequestSummaryOperationTypeEnum = "CREATE_ARCHIVE_RETRIEVAL" - WorkRequestSummaryOperationTypeUpdateArchiveRetrieval WorkRequestSummaryOperationTypeEnum = "UPDATE_ARCHIVE_RETRIEVAL" - WorkRequestSummaryOperationTypeChangeArchiveRetrievalCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT" - WorkRequestSummaryOperationTypeUpdateAlert WorkRequestSummaryOperationTypeEnum = "UPDATE_ALERT" - WorkRequestSummaryOperationTypeTargetAlertPolicyAssociation WorkRequestSummaryOperationTypeEnum = "TARGET_ALERT_POLICY_ASSOCIATION" - WorkRequestSummaryOperationTypeCreateSensitiveDataModel WorkRequestSummaryOperationTypeEnum = "CREATE_SENSITIVE_DATA_MODEL" - WorkRequestSummaryOperationTypeUpdateSensitiveDataModel WorkRequestSummaryOperationTypeEnum = "UPDATE_SENSITIVE_DATA_MODEL" - WorkRequestSummaryOperationTypeDeleteSensitiveDataModel WorkRequestSummaryOperationTypeEnum = "DELETE_SENSITIVE_DATA_MODEL" - WorkRequestSummaryOperationTypeUploadSensitiveDataModel WorkRequestSummaryOperationTypeEnum = "UPLOAD_SENSITIVE_DATA_MODEL" - WorkRequestSummaryOperationTypeGenerateSensitiveDataModelForDownload WorkRequestSummaryOperationTypeEnum = "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD" - WorkRequestSummaryOperationTypeCreateSensitiveColumn WorkRequestSummaryOperationTypeEnum = "CREATE_SENSITIVE_COLUMN" - WorkRequestSummaryOperationTypeUpdateSensitiveColumn WorkRequestSummaryOperationTypeEnum = "UPDATE_SENSITIVE_COLUMN" - WorkRequestSummaryOperationTypePatchSensitiveColumns WorkRequestSummaryOperationTypeEnum = "PATCH_SENSITIVE_COLUMNS" - WorkRequestSummaryOperationTypeCreateDiscoveryJob WorkRequestSummaryOperationTypeEnum = "CREATE_DISCOVERY_JOB" - WorkRequestSummaryOperationTypeDeleteDiscoveryJob WorkRequestSummaryOperationTypeEnum = "DELETE_DISCOVERY_JOB" - WorkRequestSummaryOperationTypePatchDiscoveryJobResult WorkRequestSummaryOperationTypeEnum = "PATCH_DISCOVERY_JOB_RESULT" - WorkRequestSummaryOperationTypeApplyDiscoveryJobResult WorkRequestSummaryOperationTypeEnum = "APPLY_DISCOVERY_JOB_RESULT" - WorkRequestSummaryOperationTypeGenerateDiscoveryReport WorkRequestSummaryOperationTypeEnum = "GENERATE_DISCOVERY_REPORT" - WorkRequestSummaryOperationTypeCreateSensitiveType WorkRequestSummaryOperationTypeEnum = "CREATE_SENSITIVE_TYPE" - WorkRequestSummaryOperationTypeUpdateSensitiveType WorkRequestSummaryOperationTypeEnum = "UPDATE_SENSITIVE_TYPE" - WorkRequestSummaryOperationTypeCreateMaskingPolicy WorkRequestSummaryOperationTypeEnum = "CREATE_MASKING_POLICY" - WorkRequestSummaryOperationTypeUpdateMaskingPolicy WorkRequestSummaryOperationTypeEnum = "UPDATE_MASKING_POLICY" - WorkRequestSummaryOperationTypeDeleteMaskingPolicy WorkRequestSummaryOperationTypeEnum = "DELETE_MASKING_POLICY" - WorkRequestSummaryOperationTypeUploadMaskingPolicy WorkRequestSummaryOperationTypeEnum = "UPLOAD_MASKING_POLICY" - WorkRequestSummaryOperationTypeGenerateMaskingPolicyForDownload WorkRequestSummaryOperationTypeEnum = "GENERATE_MASKING_POLICY_FOR_DOWNLOAD" - WorkRequestSummaryOperationTypeCreateMaskingColumn WorkRequestSummaryOperationTypeEnum = "CREATE_MASKING_COLUMN" - WorkRequestSummaryOperationTypeUpdateMaskingColumn WorkRequestSummaryOperationTypeEnum = "UPDATE_MASKING_COLUMN" - WorkRequestSummaryOperationTypePatchMaskingColumns WorkRequestSummaryOperationTypeEnum = "PATCH_MASKING_COLUMNS" - WorkRequestSummaryOperationTypeGenerateMaskingReport WorkRequestSummaryOperationTypeEnum = "GENERATE_MASKING_REPORT" - WorkRequestSummaryOperationTypeCreateLibraryMaskingFormat WorkRequestSummaryOperationTypeEnum = "CREATE_LIBRARY_MASKING_FORMAT" - WorkRequestSummaryOperationTypeUpdateLibraryMaskingFormat WorkRequestSummaryOperationTypeEnum = "UPDATE_LIBRARY_MASKING_FORMAT" - WorkRequestSummaryOperationTypeAddColumnsFromSdm WorkRequestSummaryOperationTypeEnum = "ADD_COLUMNS_FROM_SDM" - WorkRequestSummaryOperationTypeMaskingJob WorkRequestSummaryOperationTypeEnum = "MASKING_JOB" - WorkRequestSummaryOperationTypeCreateDifference WorkRequestSummaryOperationTypeEnum = "CREATE_DIFFERENCE" - WorkRequestSummaryOperationTypeDeleteDifference WorkRequestSummaryOperationTypeEnum = "DELETE_DIFFERENCE" - WorkRequestSummaryOperationTypeUpdateDifference WorkRequestSummaryOperationTypeEnum = "UPDATE_DIFFERENCE" - WorkRequestSummaryOperationTypePatchDifference WorkRequestSummaryOperationTypeEnum = "PATCH_DIFFERENCE" - WorkRequestSummaryOperationTypeApplyDifference WorkRequestSummaryOperationTypeEnum = "APPLY_DIFFERENCE" - WorkRequestSummaryOperationTypeMaskPolicyGenerateHealthReport WorkRequestSummaryOperationTypeEnum = "MASK_POLICY_GENERATE_HEALTH_REPORT" - WorkRequestSummaryOperationTypeMaskPolicyDeleteHealthReport WorkRequestSummaryOperationTypeEnum = "MASK_POLICY_DELETE_HEALTH_REPORT" - WorkRequestSummaryOperationTypeCreateSensitiveTypesExport WorkRequestSummaryOperationTypeEnum = "CREATE_SENSITIVE_TYPES_EXPORT" - WorkRequestSummaryOperationTypeUpdateSensitiveTypesExport WorkRequestSummaryOperationTypeEnum = "UPDATE_SENSITIVE_TYPES_EXPORT" - WorkRequestSummaryOperationTypeBulkCreateSensitiveTypes WorkRequestSummaryOperationTypeEnum = "BULK_CREATE_SENSITIVE_TYPES" - WorkRequestSummaryOperationTypeAbortMasking WorkRequestSummaryOperationTypeEnum = "ABORT_MASKING" - WorkRequestSummaryOperationTypeCreateSecurityPolicyReport WorkRequestSummaryOperationTypeEnum = "CREATE_SECURITY_POLICY_REPORT" - WorkRequestSummaryOperationTypeRefreshSecurityPolicyCache WorkRequestSummaryOperationTypeEnum = "REFRESH_SECURITY_POLICY_CACHE" - WorkRequestSummaryOperationTypeDeleteSecurityPolicyCache WorkRequestSummaryOperationTypeEnum = "DELETE_SECURITY_POLICY_CACHE" - WorkRequestSummaryOperationTypeCreateSchedule WorkRequestSummaryOperationTypeEnum = "CREATE_SCHEDULE" - WorkRequestSummaryOperationTypeRemoveScheduleReport WorkRequestSummaryOperationTypeEnum = "REMOVE_SCHEDULE_REPORT" - WorkRequestSummaryOperationTypeUpdateAllAlert WorkRequestSummaryOperationTypeEnum = "UPDATE_ALL_ALERT" - WorkRequestSummaryOperationTypePatchTargetAlertPolicyAssociation WorkRequestSummaryOperationTypeEnum = "PATCH_TARGET_ALERT_POLICY_ASSOCIATION" - WorkRequestSummaryOperationTypeCreateAlertPolicy WorkRequestSummaryOperationTypeEnum = "CREATE_ALERT_POLICY" - WorkRequestSummaryOperationTypeUpdateAlertPolicy WorkRequestSummaryOperationTypeEnum = "UPDATE_ALERT_POLICY" - WorkRequestSummaryOperationTypeDeleteAlertPolicy WorkRequestSummaryOperationTypeEnum = "DELETE_ALERT_POLICY" - WorkRequestSummaryOperationTypeCreateAlertPolicyRule WorkRequestSummaryOperationTypeEnum = "CREATE_ALERT_POLICY_RULE" - WorkRequestSummaryOperationTypeUpdateAlertPolicyRule WorkRequestSummaryOperationTypeEnum = "UPDATE_ALERT_POLICY_RULE" - WorkRequestSummaryOperationTypeDeleteAlertPolicyRule WorkRequestSummaryOperationTypeEnum = "DELETE_ALERT_POLICY_RULE" - WorkRequestSummaryOperationTypeChangeAlertPolicyCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_ALERT_POLICY_COMPARTMENT" + WorkRequestSummaryOperationTypeEnableDataSafeConfiguration WorkRequestSummaryOperationTypeEnum = "ENABLE_DATA_SAFE_CONFIGURATION" + WorkRequestSummaryOperationTypeCreatePrivateEndpoint WorkRequestSummaryOperationTypeEnum = "CREATE_PRIVATE_ENDPOINT" + WorkRequestSummaryOperationTypeUpdatePrivateEndpoint WorkRequestSummaryOperationTypeEnum = "UPDATE_PRIVATE_ENDPOINT" + WorkRequestSummaryOperationTypeDeletePrivateEndpoint WorkRequestSummaryOperationTypeEnum = "DELETE_PRIVATE_ENDPOINT" + WorkRequestSummaryOperationTypeChangePrivateEndpointCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT" + WorkRequestSummaryOperationTypeCreateOnpremConnector WorkRequestSummaryOperationTypeEnum = "CREATE_ONPREM_CONNECTOR" + WorkRequestSummaryOperationTypeUpdateOnpremConnector WorkRequestSummaryOperationTypeEnum = "UPDATE_ONPREM_CONNECTOR" + WorkRequestSummaryOperationTypeDeleteOnpremConnector WorkRequestSummaryOperationTypeEnum = "DELETE_ONPREM_CONNECTOR" + WorkRequestSummaryOperationTypeUpdateOnpremConnectorWallet WorkRequestSummaryOperationTypeEnum = "UPDATE_ONPREM_CONNECTOR_WALLET" + WorkRequestSummaryOperationTypeChangeOnpremConnectorCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_ONPREM_CONNECTOR_COMPARTMENT" + WorkRequestSummaryOperationTypeProvisionPolicy WorkRequestSummaryOperationTypeEnum = "PROVISION_POLICY" + WorkRequestSummaryOperationTypeRetrievePolicy WorkRequestSummaryOperationTypeEnum = "RETRIEVE_POLICY" + WorkRequestSummaryOperationTypeUpdatePolicy WorkRequestSummaryOperationTypeEnum = "UPDATE_POLICY" + WorkRequestSummaryOperationTypeChangePolicyCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_POLICY_COMPARTMENT" + WorkRequestSummaryOperationTypeCreateTargetDatabase WorkRequestSummaryOperationTypeEnum = "CREATE_TARGET_DATABASE" + WorkRequestSummaryOperationTypeUpdateTargetDatabase WorkRequestSummaryOperationTypeEnum = "UPDATE_TARGET_DATABASE" + WorkRequestSummaryOperationTypeActivateTargetDatabase WorkRequestSummaryOperationTypeEnum = "ACTIVATE_TARGET_DATABASE" + WorkRequestSummaryOperationTypeDeactivateTargetDatabase WorkRequestSummaryOperationTypeEnum = "DEACTIVATE_TARGET_DATABASE" + WorkRequestSummaryOperationTypeDeleteTargetDatabase WorkRequestSummaryOperationTypeEnum = "DELETE_TARGET_DATABASE" + WorkRequestSummaryOperationTypeChangeTargetDatabaseCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_TARGET_DATABASE_COMPARTMENT" + WorkRequestSummaryOperationTypeCreatePeerTargetDatabase WorkRequestSummaryOperationTypeEnum = "CREATE_PEER_TARGET_DATABASE" + WorkRequestSummaryOperationTypeUpdatePeerTargetDatabase WorkRequestSummaryOperationTypeEnum = "UPDATE_PEER_TARGET_DATABASE" + WorkRequestSummaryOperationTypeDeletePeerTargetDatabase WorkRequestSummaryOperationTypeEnum = "DELETE_PEER_TARGET_DATABASE" + WorkRequestSummaryOperationTypeRefreshTargetDatabase WorkRequestSummaryOperationTypeEnum = "REFRESH_TARGET_DATABASE" + WorkRequestSummaryOperationTypeCreateUserAssessment WorkRequestSummaryOperationTypeEnum = "CREATE_USER_ASSESSMENT" + WorkRequestSummaryOperationTypeAssessUserAssessment WorkRequestSummaryOperationTypeEnum = "ASSESS_USER_ASSESSMENT" + WorkRequestSummaryOperationTypeCreateSnapshotUserAssessment WorkRequestSummaryOperationTypeEnum = "CREATE_SNAPSHOT_USER_ASSESSMENT" + WorkRequestSummaryOperationTypeCreateScheduleUserAssessment WorkRequestSummaryOperationTypeEnum = "CREATE_SCHEDULE_USER_ASSESSMENT" + WorkRequestSummaryOperationTypeCompareWithBaselineUserAssessment WorkRequestSummaryOperationTypeEnum = "COMPARE_WITH_BASELINE_USER_ASSESSMENT" + WorkRequestSummaryOperationTypeDeleteUserAssessment WorkRequestSummaryOperationTypeEnum = "DELETE_USER_ASSESSMENT" + WorkRequestSummaryOperationTypeUpdateUserAssessment WorkRequestSummaryOperationTypeEnum = "UPDATE_USER_ASSESSMENT" + WorkRequestSummaryOperationTypeChangeUserAssessmentCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_USER_ASSESSMENT_COMPARTMENT" + WorkRequestSummaryOperationTypeSetUserAssessmentBaseline WorkRequestSummaryOperationTypeEnum = "SET_USER_ASSESSMENT_BASELINE" + WorkRequestSummaryOperationTypeUnsetUserAssessmentBaseline WorkRequestSummaryOperationTypeEnum = "UNSET_USER_ASSESSMENT_BASELINE" + WorkRequestSummaryOperationTypeGenerateUserAssessmentReport WorkRequestSummaryOperationTypeEnum = "GENERATE_USER_ASSESSMENT_REPORT" + WorkRequestSummaryOperationTypeCreateSecurityAssessment WorkRequestSummaryOperationTypeEnum = "CREATE_SECURITY_ASSESSMENT" + WorkRequestSummaryOperationTypeCreateSecurityAssessmentNow WorkRequestSummaryOperationTypeEnum = "CREATE_SECURITY_ASSESSMENT_NOW" + WorkRequestSummaryOperationTypeAssessSecurityAssessment WorkRequestSummaryOperationTypeEnum = "ASSESS_SECURITY_ASSESSMENT" + WorkRequestSummaryOperationTypeCreateSnapshotSecurityAssessment WorkRequestSummaryOperationTypeEnum = "CREATE_SNAPSHOT_SECURITY_ASSESSMENT" + WorkRequestSummaryOperationTypeCreateScheduleSecurityAssessment WorkRequestSummaryOperationTypeEnum = "CREATE_SCHEDULE_SECURITY_ASSESSMENT" + WorkRequestSummaryOperationTypeCompareWithBaselineSecurityAssessment WorkRequestSummaryOperationTypeEnum = "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT" + WorkRequestSummaryOperationTypeDeleteSecurityAssessment WorkRequestSummaryOperationTypeEnum = "DELETE_SECURITY_ASSESSMENT" + WorkRequestSummaryOperationTypeUpdateSecurityAssessment WorkRequestSummaryOperationTypeEnum = "UPDATE_SECURITY_ASSESSMENT" + WorkRequestSummaryOperationTypeUpdateFindingRisk WorkRequestSummaryOperationTypeEnum = "UPDATE_FINDING_RISK" + WorkRequestSummaryOperationTypeChangeSecurityAssessmentCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT" + WorkRequestSummaryOperationTypeSetSecurityAssessmentBaseline WorkRequestSummaryOperationTypeEnum = "SET_SECURITY_ASSESSMENT_BASELINE" + WorkRequestSummaryOperationTypeUnsetSecurityAssessmentBaseline WorkRequestSummaryOperationTypeEnum = "UNSET_SECURITY_ASSESSMENT_BASELINE" + WorkRequestSummaryOperationTypeGenerateSecurityAssessmentReport WorkRequestSummaryOperationTypeEnum = "GENERATE_SECURITY_ASSESSMENT_REPORT" + WorkRequestSummaryOperationTypePatchChecks WorkRequestSummaryOperationTypeEnum = "PATCH_CHECKS" + WorkRequestSummaryOperationTypeUpdateFindingSeverity WorkRequestSummaryOperationTypeEnum = "UPDATE_FINDING_SEVERITY" + WorkRequestSummaryOperationTypeApplyTemplate WorkRequestSummaryOperationTypeEnum = "APPLY_TEMPLATE" + WorkRequestSummaryOperationTypeDeleteSqlFirewallAllowedSql WorkRequestSummaryOperationTypeEnum = "DELETE_SQL_FIREWALL_ALLOWED_SQL" + WorkRequestSummaryOperationTypeBulkCreateSqlFirewallAllowedSql WorkRequestSummaryOperationTypeEnum = "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL" + WorkRequestSummaryOperationTypeBulkDeleteSqlFirewallAllowedSql WorkRequestSummaryOperationTypeEnum = "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL" + WorkRequestSummaryOperationTypeCalculateVolume WorkRequestSummaryOperationTypeEnum = "CALCULATE_VOLUME" + WorkRequestSummaryOperationTypeCalculateCollectedVolume WorkRequestSummaryOperationTypeEnum = "CALCULATE_COLLECTED_VOLUME" + WorkRequestSummaryOperationTypeCreateDbSecurityConfig WorkRequestSummaryOperationTypeEnum = "CREATE_DB_SECURITY_CONFIG" + WorkRequestSummaryOperationTypeRefreshDbSecurityConfig WorkRequestSummaryOperationTypeEnum = "REFRESH_DB_SECURITY_CONFIG" + WorkRequestSummaryOperationTypeUpdateDbSecurityConfig WorkRequestSummaryOperationTypeEnum = "UPDATE_DB_SECURITY_CONFIG" + WorkRequestSummaryOperationTypeChangeDbSecurityConfigCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT" + WorkRequestSummaryOperationTypeGenerateFirewallPolicy WorkRequestSummaryOperationTypeEnum = "GENERATE_FIREWALL_POLICY" + WorkRequestSummaryOperationTypeUpdateFirewallPolicy WorkRequestSummaryOperationTypeEnum = "UPDATE_FIREWALL_POLICY" + WorkRequestSummaryOperationTypeChangeFirewallPolicyCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_FIREWALL_POLICY_COMPARTMENT" + WorkRequestSummaryOperationTypeDeleteFirewallPolicy WorkRequestSummaryOperationTypeEnum = "DELETE_FIREWALL_POLICY" + WorkRequestSummaryOperationTypeCreateSqlCollection WorkRequestSummaryOperationTypeEnum = "CREATE_SQL_COLLECTION" + WorkRequestSummaryOperationTypeUpdateSqlCollection WorkRequestSummaryOperationTypeEnum = "UPDATE_SQL_COLLECTION" + WorkRequestSummaryOperationTypeStartSqlCollection WorkRequestSummaryOperationTypeEnum = "START_SQL_COLLECTION" + WorkRequestSummaryOperationTypeStopSqlCollection WorkRequestSummaryOperationTypeEnum = "STOP_SQL_COLLECTION" + WorkRequestSummaryOperationTypeDeleteSqlCollection WorkRequestSummaryOperationTypeEnum = "DELETE_SQL_COLLECTION" + WorkRequestSummaryOperationTypeChangeSqlCollectionCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_SQL_COLLECTION_COMPARTMENT" + WorkRequestSummaryOperationTypeRefreshSqlCollectionLogInsights WorkRequestSummaryOperationTypeEnum = "REFRESH_SQL_COLLECTION_LOG_INSIGHTS" + WorkRequestSummaryOperationTypePurgeSqlCollectionLogs WorkRequestSummaryOperationTypeEnum = "PURGE_SQL_COLLECTION_LOGS" + WorkRequestSummaryOperationTypeRefreshViolations WorkRequestSummaryOperationTypeEnum = "REFRESH_VIOLATIONS" + WorkRequestSummaryOperationTypeCreateArchival WorkRequestSummaryOperationTypeEnum = "CREATE_ARCHIVAL" + WorkRequestSummaryOperationTypeCreateSecurityPolicy WorkRequestSummaryOperationTypeEnum = "CREATE_SECURITY_POLICY" + WorkRequestSummaryOperationTypeDeleteSecurityPolicy WorkRequestSummaryOperationTypeEnum = "DELETE_SECURITY_POLICY" + WorkRequestSummaryOperationTypeUpdateSecurityPolicy WorkRequestSummaryOperationTypeEnum = "UPDATE_SECURITY_POLICY" + WorkRequestSummaryOperationTypeChangeSecurityPolicyCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_SECURITY_POLICY_COMPARTMENT" + WorkRequestSummaryOperationTypeUpdateSecurityPolicyDeployment WorkRequestSummaryOperationTypeEnum = "UPDATE_SECURITY_POLICY_DEPLOYMENT" + WorkRequestSummaryOperationTypeChangeSecurityPolicyDeploymentCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT" + WorkRequestSummaryOperationTypeAuditTrail WorkRequestSummaryOperationTypeEnum = "AUDIT_TRAIL" + WorkRequestSummaryOperationTypeDeleteAuditTrail WorkRequestSummaryOperationTypeEnum = "DELETE_AUDIT_TRAIL" + WorkRequestSummaryOperationTypeDiscoverAuditTrails WorkRequestSummaryOperationTypeEnum = "DISCOVER_AUDIT_TRAILS" + WorkRequestSummaryOperationTypeUpdateAuditTrail WorkRequestSummaryOperationTypeEnum = "UPDATE_AUDIT_TRAIL" + WorkRequestSummaryOperationTypeUpdateAuditProfile WorkRequestSummaryOperationTypeEnum = "UPDATE_AUDIT_PROFILE" + WorkRequestSummaryOperationTypeAuditChangeCompartment WorkRequestSummaryOperationTypeEnum = "AUDIT_CHANGE_COMPARTMENT" + WorkRequestSummaryOperationTypeCreateReportDefinition WorkRequestSummaryOperationTypeEnum = "CREATE_REPORT_DEFINITION" + WorkRequestSummaryOperationTypeUpdateReportDefinition WorkRequestSummaryOperationTypeEnum = "UPDATE_REPORT_DEFINITION" + WorkRequestSummaryOperationTypeChangeReportDefinitionCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_REPORT_DEFINITION_COMPARTMENT" + WorkRequestSummaryOperationTypeDeleteReportDefinition WorkRequestSummaryOperationTypeEnum = "DELETE_REPORT_DEFINITION" + WorkRequestSummaryOperationTypeGenerateReport WorkRequestSummaryOperationTypeEnum = "GENERATE_REPORT" + WorkRequestSummaryOperationTypeChangeReportCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_REPORT_COMPARTMENT" + WorkRequestSummaryOperationTypeDeleteArchiveRetrieval WorkRequestSummaryOperationTypeEnum = "DELETE_ARCHIVE_RETRIEVAL" + WorkRequestSummaryOperationTypeCreateArchiveRetrieval WorkRequestSummaryOperationTypeEnum = "CREATE_ARCHIVE_RETRIEVAL" + WorkRequestSummaryOperationTypeUpdateArchiveRetrieval WorkRequestSummaryOperationTypeEnum = "UPDATE_ARCHIVE_RETRIEVAL" + WorkRequestSummaryOperationTypeChangeArchiveRetrievalCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT" + WorkRequestSummaryOperationTypeUpdateAlert WorkRequestSummaryOperationTypeEnum = "UPDATE_ALERT" + WorkRequestSummaryOperationTypeTargetAlertPolicyAssociation WorkRequestSummaryOperationTypeEnum = "TARGET_ALERT_POLICY_ASSOCIATION" + WorkRequestSummaryOperationTypeCreateTargetDatabaseGroup WorkRequestSummaryOperationTypeEnum = "CREATE_TARGET_DATABASE_GROUP" + WorkRequestSummaryOperationTypeUpdateTargetDatabaseGroup WorkRequestSummaryOperationTypeEnum = "UPDATE_TARGET_DATABASE_GROUP" + WorkRequestSummaryOperationTypeDeleteTargetDatabaseGroup WorkRequestSummaryOperationTypeEnum = "DELETE_TARGET_DATABASE_GROUP" + WorkRequestSummaryOperationTypeChangeTargetDatabaseGroupCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_TARGET_DATABASE_GROUP_COMPARTMENT" + WorkRequestSummaryOperationTypeCreateSecurityPolicyConfig WorkRequestSummaryOperationTypeEnum = "CREATE_SECURITY_POLICY_CONFIG" + WorkRequestSummaryOperationTypeUpdateSecurityPolicyConfig WorkRequestSummaryOperationTypeEnum = "UPDATE_SECURITY_POLICY_CONFIG" + WorkRequestSummaryOperationTypeDeleteSecurityPolicyConfig WorkRequestSummaryOperationTypeEnum = "DELETE_SECURITY_POLICY_CONFIG" + WorkRequestSummaryOperationTypeChangeSecurityPolicyConfigCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_SECURITY_POLICY_CONFIG_COMPARTMENT" + WorkRequestSummaryOperationTypeCreateUnifiedAuditPolicy WorkRequestSummaryOperationTypeEnum = "CREATE_UNIFIED_AUDIT_POLICY" + WorkRequestSummaryOperationTypeUpdateUnifiedAuditPolicy WorkRequestSummaryOperationTypeEnum = "UPDATE_UNIFIED_AUDIT_POLICY" + WorkRequestSummaryOperationTypeDeleteUnifiedAuditPolicy WorkRequestSummaryOperationTypeEnum = "DELETE_UNIFIED_AUDIT_POLICY" + WorkRequestSummaryOperationTypeChangeUnifiedAuditPolicyCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_UNIFIED_AUDIT_POLICY_COMPARTMENT" + WorkRequestSummaryOperationTypeUpdateUnifiedAuditPolicyDefinition WorkRequestSummaryOperationTypeEnum = "UPDATE_UNIFIED_AUDIT_POLICY_DEFINITION" + WorkRequestSummaryOperationTypeDeleteUnifiedAuditPolicyDefinition WorkRequestSummaryOperationTypeEnum = "DELETE_UNIFIED_AUDIT_POLICY_DEFINITION" + WorkRequestSummaryOperationTypeChangeUnifiedAuditPolicyDefinitionCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_UNIFIED_AUDIT_POLICY_DEFINITION_COMPARTMENT" + WorkRequestSummaryOperationTypeFleetGenerateSecurityAssessmentReport WorkRequestSummaryOperationTypeEnum = "FLEET_GENERATE_SECURITY_ASSESSMENT_REPORT" + WorkRequestSummaryOperationTypeFleetGenerateUserAssessmentReport WorkRequestSummaryOperationTypeEnum = "FLEET_GENERATE_USER_ASSESSMENT_REPORT" + WorkRequestSummaryOperationTypeRefreshTargetDatabaseGroupWithChanges WorkRequestSummaryOperationTypeEnum = "REFRESH_TARGET_DATABASE_GROUP_WITH_CHANGES" + WorkRequestSummaryOperationTypeFetchAuditPolicyDetails WorkRequestSummaryOperationTypeEnum = "FETCH_AUDIT_POLICY_DETAILS" + WorkRequestSummaryOperationTypeBulkCreateUnifiedAuditPolicy WorkRequestSummaryOperationTypeEnum = "BULK_CREATE_UNIFIED_AUDIT_POLICY" + WorkRequestSummaryOperationTypeSecurityPolicyDeploymentActions WorkRequestSummaryOperationTypeEnum = "SECURITY_POLICY_DEPLOYMENT_ACTIONS" + WorkRequestSummaryOperationTypeProvisionSecurityPolicyDeployment WorkRequestSummaryOperationTypeEnum = "PROVISION_SECURITY_POLICY_DEPLOYMENT" + WorkRequestSummaryOperationTypeCreateSensitiveDataModel WorkRequestSummaryOperationTypeEnum = "CREATE_SENSITIVE_DATA_MODEL" + WorkRequestSummaryOperationTypeUpdateSensitiveDataModel WorkRequestSummaryOperationTypeEnum = "UPDATE_SENSITIVE_DATA_MODEL" + WorkRequestSummaryOperationTypeDeleteSensitiveDataModel WorkRequestSummaryOperationTypeEnum = "DELETE_SENSITIVE_DATA_MODEL" + WorkRequestSummaryOperationTypeUploadSensitiveDataModel WorkRequestSummaryOperationTypeEnum = "UPLOAD_SENSITIVE_DATA_MODEL" + WorkRequestSummaryOperationTypeGenerateSensitiveDataModelForDownload WorkRequestSummaryOperationTypeEnum = "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD" + WorkRequestSummaryOperationTypeCreateSensitiveColumn WorkRequestSummaryOperationTypeEnum = "CREATE_SENSITIVE_COLUMN" + WorkRequestSummaryOperationTypeUpdateSensitiveColumn WorkRequestSummaryOperationTypeEnum = "UPDATE_SENSITIVE_COLUMN" + WorkRequestSummaryOperationTypePatchSensitiveColumns WorkRequestSummaryOperationTypeEnum = "PATCH_SENSITIVE_COLUMNS" + WorkRequestSummaryOperationTypeCreateDiscoveryJob WorkRequestSummaryOperationTypeEnum = "CREATE_DISCOVERY_JOB" + WorkRequestSummaryOperationTypeDeleteDiscoveryJob WorkRequestSummaryOperationTypeEnum = "DELETE_DISCOVERY_JOB" + WorkRequestSummaryOperationTypePatchDiscoveryJobResult WorkRequestSummaryOperationTypeEnum = "PATCH_DISCOVERY_JOB_RESULT" + WorkRequestSummaryOperationTypeApplyDiscoveryJobResult WorkRequestSummaryOperationTypeEnum = "APPLY_DISCOVERY_JOB_RESULT" + WorkRequestSummaryOperationTypeGenerateDiscoveryReport WorkRequestSummaryOperationTypeEnum = "GENERATE_DISCOVERY_REPORT" + WorkRequestSummaryOperationTypeCreateSensitiveType WorkRequestSummaryOperationTypeEnum = "CREATE_SENSITIVE_TYPE" + WorkRequestSummaryOperationTypeUpdateSensitiveType WorkRequestSummaryOperationTypeEnum = "UPDATE_SENSITIVE_TYPE" + WorkRequestSummaryOperationTypeCreateMaskingPolicy WorkRequestSummaryOperationTypeEnum = "CREATE_MASKING_POLICY" + WorkRequestSummaryOperationTypeUpdateMaskingPolicy WorkRequestSummaryOperationTypeEnum = "UPDATE_MASKING_POLICY" + WorkRequestSummaryOperationTypeDeleteMaskingPolicy WorkRequestSummaryOperationTypeEnum = "DELETE_MASKING_POLICY" + WorkRequestSummaryOperationTypeUploadMaskingPolicy WorkRequestSummaryOperationTypeEnum = "UPLOAD_MASKING_POLICY" + WorkRequestSummaryOperationTypeGenerateMaskingPolicyForDownload WorkRequestSummaryOperationTypeEnum = "GENERATE_MASKING_POLICY_FOR_DOWNLOAD" + WorkRequestSummaryOperationTypeCreateMaskingColumn WorkRequestSummaryOperationTypeEnum = "CREATE_MASKING_COLUMN" + WorkRequestSummaryOperationTypeUpdateMaskingColumn WorkRequestSummaryOperationTypeEnum = "UPDATE_MASKING_COLUMN" + WorkRequestSummaryOperationTypePatchMaskingColumns WorkRequestSummaryOperationTypeEnum = "PATCH_MASKING_COLUMNS" + WorkRequestSummaryOperationTypeGenerateMaskingReport WorkRequestSummaryOperationTypeEnum = "GENERATE_MASKING_REPORT" + WorkRequestSummaryOperationTypeCreateLibraryMaskingFormat WorkRequestSummaryOperationTypeEnum = "CREATE_LIBRARY_MASKING_FORMAT" + WorkRequestSummaryOperationTypeUpdateLibraryMaskingFormat WorkRequestSummaryOperationTypeEnum = "UPDATE_LIBRARY_MASKING_FORMAT" + WorkRequestSummaryOperationTypeAddColumnsFromSdm WorkRequestSummaryOperationTypeEnum = "ADD_COLUMNS_FROM_SDM" + WorkRequestSummaryOperationTypeMaskingJob WorkRequestSummaryOperationTypeEnum = "MASKING_JOB" + WorkRequestSummaryOperationTypeCreateDifference WorkRequestSummaryOperationTypeEnum = "CREATE_DIFFERENCE" + WorkRequestSummaryOperationTypeDeleteDifference WorkRequestSummaryOperationTypeEnum = "DELETE_DIFFERENCE" + WorkRequestSummaryOperationTypeUpdateDifference WorkRequestSummaryOperationTypeEnum = "UPDATE_DIFFERENCE" + WorkRequestSummaryOperationTypePatchDifference WorkRequestSummaryOperationTypeEnum = "PATCH_DIFFERENCE" + WorkRequestSummaryOperationTypeApplyDifference WorkRequestSummaryOperationTypeEnum = "APPLY_DIFFERENCE" + WorkRequestSummaryOperationTypeDeleteMaskingReport WorkRequestSummaryOperationTypeEnum = "DELETE_MASKING_REPORT" + WorkRequestSummaryOperationTypeMaskPolicyGenerateHealthReport WorkRequestSummaryOperationTypeEnum = "MASK_POLICY_GENERATE_HEALTH_REPORT" + WorkRequestSummaryOperationTypeMaskPolicyDeleteHealthReport WorkRequestSummaryOperationTypeEnum = "MASK_POLICY_DELETE_HEALTH_REPORT" + WorkRequestSummaryOperationTypeCreateSensitiveTypesExport WorkRequestSummaryOperationTypeEnum = "CREATE_SENSITIVE_TYPES_EXPORT" + WorkRequestSummaryOperationTypeUpdateSensitiveTypesExport WorkRequestSummaryOperationTypeEnum = "UPDATE_SENSITIVE_TYPES_EXPORT" + WorkRequestSummaryOperationTypeBulkCreateSensitiveTypes WorkRequestSummaryOperationTypeEnum = "BULK_CREATE_SENSITIVE_TYPES" + WorkRequestSummaryOperationTypeCreateSensitiveTypeGroup WorkRequestSummaryOperationTypeEnum = "CREATE_SENSITIVE_TYPE_GROUP" + WorkRequestSummaryOperationTypeUpdateSensitiveTypeGroup WorkRequestSummaryOperationTypeEnum = "UPDATE_SENSITIVE_TYPE_GROUP" + WorkRequestSummaryOperationTypeDeleteSensitiveTypeGroup WorkRequestSummaryOperationTypeEnum = "DELETE_SENSITIVE_TYPE_GROUP" + WorkRequestSummaryOperationTypeDeleteSensitiveType WorkRequestSummaryOperationTypeEnum = "DELETE_SENSITIVE_TYPE" + WorkRequestSummaryOperationTypePatchGroupedSensitiveTypes WorkRequestSummaryOperationTypeEnum = "PATCH_GROUPED_SENSITIVE_TYPES" + WorkRequestSummaryOperationTypeCreateRelation WorkRequestSummaryOperationTypeEnum = "CREATE_RELATION" + WorkRequestSummaryOperationTypeDeleteRelation WorkRequestSummaryOperationTypeEnum = "DELETE_RELATION" + WorkRequestSummaryOperationTypeAbortMasking WorkRequestSummaryOperationTypeEnum = "ABORT_MASKING" + WorkRequestSummaryOperationTypeCreateSecurityPolicyReport WorkRequestSummaryOperationTypeEnum = "CREATE_SECURITY_POLICY_REPORT" + WorkRequestSummaryOperationTypeRefreshSecurityPolicyCache WorkRequestSummaryOperationTypeEnum = "REFRESH_SECURITY_POLICY_CACHE" + WorkRequestSummaryOperationTypeDeleteSecurityPolicyCache WorkRequestSummaryOperationTypeEnum = "DELETE_SECURITY_POLICY_CACHE" + WorkRequestSummaryOperationTypeCreateSchedule WorkRequestSummaryOperationTypeEnum = "CREATE_SCHEDULE" + WorkRequestSummaryOperationTypeRemoveScheduleReport WorkRequestSummaryOperationTypeEnum = "REMOVE_SCHEDULE_REPORT" + WorkRequestSummaryOperationTypeUpdateAllAlert WorkRequestSummaryOperationTypeEnum = "UPDATE_ALL_ALERT" + WorkRequestSummaryOperationTypePatchTargetAlertPolicyAssociation WorkRequestSummaryOperationTypeEnum = "PATCH_TARGET_ALERT_POLICY_ASSOCIATION" + WorkRequestSummaryOperationTypeCreateAlertPolicy WorkRequestSummaryOperationTypeEnum = "CREATE_ALERT_POLICY" + WorkRequestSummaryOperationTypeUpdateAlertPolicy WorkRequestSummaryOperationTypeEnum = "UPDATE_ALERT_POLICY" + WorkRequestSummaryOperationTypeDeleteAlertPolicy WorkRequestSummaryOperationTypeEnum = "DELETE_ALERT_POLICY" + WorkRequestSummaryOperationTypeCreateAlertPolicyRule WorkRequestSummaryOperationTypeEnum = "CREATE_ALERT_POLICY_RULE" + WorkRequestSummaryOperationTypeUpdateAlertPolicyRule WorkRequestSummaryOperationTypeEnum = "UPDATE_ALERT_POLICY_RULE" + WorkRequestSummaryOperationTypeDeleteAlertPolicyRule WorkRequestSummaryOperationTypeEnum = "DELETE_ALERT_POLICY_RULE" + WorkRequestSummaryOperationTypeChangeAlertPolicyCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_ALERT_POLICY_COMPARTMENT" + WorkRequestSummaryOperationTypeUpdateTargetGroupAuditProfile WorkRequestSummaryOperationTypeEnum = "UPDATE_TARGET_GROUP_AUDIT_PROFILE" + WorkRequestSummaryOperationTypeCreateAttributeSet WorkRequestSummaryOperationTypeEnum = "CREATE_ATTRIBUTE_SET" + WorkRequestSummaryOperationTypeUpdateAttributeSet WorkRequestSummaryOperationTypeEnum = "UPDATE_ATTRIBUTE_SET" + WorkRequestSummaryOperationTypeDeleteAttributeSet WorkRequestSummaryOperationTypeEnum = "DELETE_ATTRIBUTE_SET" + WorkRequestSummaryOperationTypeChangeAttributeSetCompartment WorkRequestSummaryOperationTypeEnum = "CHANGE_ATTRIBUTE_SET_COMPARTMENT" ) var mappingWorkRequestSummaryOperationTypeEnum = map[string]WorkRequestSummaryOperationTypeEnum{ - "ENABLE_DATA_SAFE_CONFIGURATION": WorkRequestSummaryOperationTypeEnableDataSafeConfiguration, - "CREATE_PRIVATE_ENDPOINT": WorkRequestSummaryOperationTypeCreatePrivateEndpoint, - "UPDATE_PRIVATE_ENDPOINT": WorkRequestSummaryOperationTypeUpdatePrivateEndpoint, - "DELETE_PRIVATE_ENDPOINT": WorkRequestSummaryOperationTypeDeletePrivateEndpoint, - "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT": WorkRequestSummaryOperationTypeChangePrivateEndpointCompartment, - "CREATE_ONPREM_CONNECTOR": WorkRequestSummaryOperationTypeCreateOnpremConnector, - "UPDATE_ONPREM_CONNECTOR": WorkRequestSummaryOperationTypeUpdateOnpremConnector, - "DELETE_ONPREM_CONNECTOR": WorkRequestSummaryOperationTypeDeleteOnpremConnector, - "UPDATE_ONPREM_CONNECTOR_WALLET": WorkRequestSummaryOperationTypeUpdateOnpremConnectorWallet, - "CHANGE_ONPREM_CONNECTOR_COMPARTMENT": WorkRequestSummaryOperationTypeChangeOnpremConnectorCompartment, - "PROVISION_POLICY": WorkRequestSummaryOperationTypeProvisionPolicy, - "RETRIEVE_POLICY": WorkRequestSummaryOperationTypeRetrievePolicy, - "UPDATE_POLICY": WorkRequestSummaryOperationTypeUpdatePolicy, - "CHANGE_POLICY_COMPARTMENT": WorkRequestSummaryOperationTypeChangePolicyCompartment, - "CREATE_TARGET_DATABASE": WorkRequestSummaryOperationTypeCreateTargetDatabase, - "UPDATE_TARGET_DATABASE": WorkRequestSummaryOperationTypeUpdateTargetDatabase, - "ACTIVATE_TARGET_DATABASE": WorkRequestSummaryOperationTypeActivateTargetDatabase, - "DEACTIVATE_TARGET_DATABASE": WorkRequestSummaryOperationTypeDeactivateTargetDatabase, - "DELETE_TARGET_DATABASE": WorkRequestSummaryOperationTypeDeleteTargetDatabase, - "CHANGE_TARGET_DATABASE_COMPARTMENT": WorkRequestSummaryOperationTypeChangeTargetDatabaseCompartment, - "CREATE_PEER_TARGET_DATABASE": WorkRequestSummaryOperationTypeCreatePeerTargetDatabase, - "UPDATE_PEER_TARGET_DATABASE": WorkRequestSummaryOperationTypeUpdatePeerTargetDatabase, - "DELETE_PEER_TARGET_DATABASE": WorkRequestSummaryOperationTypeDeletePeerTargetDatabase, - "REFRESH_TARGET_DATABASE": WorkRequestSummaryOperationTypeRefreshTargetDatabase, - "CREATE_USER_ASSESSMENT": WorkRequestSummaryOperationTypeCreateUserAssessment, - "ASSESS_USER_ASSESSMENT": WorkRequestSummaryOperationTypeAssessUserAssessment, - "CREATE_SNAPSHOT_USER_ASSESSMENT": WorkRequestSummaryOperationTypeCreateSnapshotUserAssessment, - "CREATE_SCHEDULE_USER_ASSESSMENT": WorkRequestSummaryOperationTypeCreateScheduleUserAssessment, - "COMPARE_WITH_BASELINE_USER_ASSESSMENT": WorkRequestSummaryOperationTypeCompareWithBaselineUserAssessment, - "DELETE_USER_ASSESSMENT": WorkRequestSummaryOperationTypeDeleteUserAssessment, - "UPDATE_USER_ASSESSMENT": WorkRequestSummaryOperationTypeUpdateUserAssessment, - "CHANGE_USER_ASSESSMENT_COMPARTMENT": WorkRequestSummaryOperationTypeChangeUserAssessmentCompartment, - "SET_USER_ASSESSMENT_BASELINE": WorkRequestSummaryOperationTypeSetUserAssessmentBaseline, - "UNSET_USER_ASSESSMENT_BASELINE": WorkRequestSummaryOperationTypeUnsetUserAssessmentBaseline, - "GENERATE_USER_ASSESSMENT_REPORT": WorkRequestSummaryOperationTypeGenerateUserAssessmentReport, - "CREATE_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeCreateSecurityAssessment, - "CREATE_SECURITY_ASSESSMENT_NOW": WorkRequestSummaryOperationTypeCreateSecurityAssessmentNow, - "ASSESS_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeAssessSecurityAssessment, - "CREATE_SNAPSHOT_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeCreateSnapshotSecurityAssessment, - "CREATE_SCHEDULE_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeCreateScheduleSecurityAssessment, - "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeCompareWithBaselineSecurityAssessment, - "DELETE_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeDeleteSecurityAssessment, - "UPDATE_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeUpdateSecurityAssessment, - "UPDATE_FINDING_RISK": WorkRequestSummaryOperationTypeUpdateFindingRisk, - "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT": WorkRequestSummaryOperationTypeChangeSecurityAssessmentCompartment, - "SET_SECURITY_ASSESSMENT_BASELINE": WorkRequestSummaryOperationTypeSetSecurityAssessmentBaseline, - "UNSET_SECURITY_ASSESSMENT_BASELINE": WorkRequestSummaryOperationTypeUnsetSecurityAssessmentBaseline, - "GENERATE_SECURITY_ASSESSMENT_REPORT": WorkRequestSummaryOperationTypeGenerateSecurityAssessmentReport, - "DELETE_SQL_FIREWALL_ALLOWED_SQL": WorkRequestSummaryOperationTypeDeleteSqlFirewallAllowedSql, - "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL": WorkRequestSummaryOperationTypeBulkCreateSqlFirewallAllowedSql, - "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL": WorkRequestSummaryOperationTypeBulkDeleteSqlFirewallAllowedSql, - "CALCULATE_VOLUME": WorkRequestSummaryOperationTypeCalculateVolume, - "CALCULATE_COLLECTED_VOLUME": WorkRequestSummaryOperationTypeCalculateCollectedVolume, - "CREATE_DB_SECURITY_CONFIG": WorkRequestSummaryOperationTypeCreateDbSecurityConfig, - "REFRESH_DB_SECURITY_CONFIG": WorkRequestSummaryOperationTypeRefreshDbSecurityConfig, - "UPDATE_DB_SECURITY_CONFIG": WorkRequestSummaryOperationTypeUpdateDbSecurityConfig, - "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT": WorkRequestSummaryOperationTypeChangeDbSecurityConfigCompartment, - "GENERATE_FIREWALL_POLICY": WorkRequestSummaryOperationTypeGenerateFirewallPolicy, - "UPDATE_FIREWALL_POLICY": WorkRequestSummaryOperationTypeUpdateFirewallPolicy, - "CHANGE_FIREWALL_POLICY_COMPARTMENT": WorkRequestSummaryOperationTypeChangeFirewallPolicyCompartment, - "DELETE_FIREWALL_POLICY": WorkRequestSummaryOperationTypeDeleteFirewallPolicy, - "CREATE_SQL_COLLECTION": WorkRequestSummaryOperationTypeCreateSqlCollection, - "UPDATE_SQL_COLLECTION": WorkRequestSummaryOperationTypeUpdateSqlCollection, - "START_SQL_COLLECTION": WorkRequestSummaryOperationTypeStartSqlCollection, - "STOP_SQL_COLLECTION": WorkRequestSummaryOperationTypeStopSqlCollection, - "DELETE_SQL_COLLECTION": WorkRequestSummaryOperationTypeDeleteSqlCollection, - "CHANGE_SQL_COLLECTION_COMPARTMENT": WorkRequestSummaryOperationTypeChangeSqlCollectionCompartment, - "REFRESH_SQL_COLLECTION_LOG_INSIGHTS": WorkRequestSummaryOperationTypeRefreshSqlCollectionLogInsights, - "PURGE_SQL_COLLECTION_LOGS": WorkRequestSummaryOperationTypePurgeSqlCollectionLogs, - "REFRESH_VIOLATIONS": WorkRequestSummaryOperationTypeRefreshViolations, - "CREATE_ARCHIVAL": WorkRequestSummaryOperationTypeCreateArchival, - "UPDATE_SECURITY_POLICY": WorkRequestSummaryOperationTypeUpdateSecurityPolicy, - "CHANGE_SECURITY_POLICY_COMPARTMENT": WorkRequestSummaryOperationTypeChangeSecurityPolicyCompartment, - "UPDATE_SECURITY_POLICY_DEPLOYMENT": WorkRequestSummaryOperationTypeUpdateSecurityPolicyDeployment, - "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT": WorkRequestSummaryOperationTypeChangeSecurityPolicyDeploymentCompartment, - "AUDIT_TRAIL": WorkRequestSummaryOperationTypeAuditTrail, - "DELETE_AUDIT_TRAIL": WorkRequestSummaryOperationTypeDeleteAuditTrail, - "DISCOVER_AUDIT_TRAILS": WorkRequestSummaryOperationTypeDiscoverAuditTrails, - "UPDATE_AUDIT_TRAIL": WorkRequestSummaryOperationTypeUpdateAuditTrail, - "UPDATE_AUDIT_PROFILE": WorkRequestSummaryOperationTypeUpdateAuditProfile, - "AUDIT_CHANGE_COMPARTMENT": WorkRequestSummaryOperationTypeAuditChangeCompartment, - "CREATE_REPORT_DEFINITION": WorkRequestSummaryOperationTypeCreateReportDefinition, - "UPDATE_REPORT_DEFINITION": WorkRequestSummaryOperationTypeUpdateReportDefinition, - "CHANGE_REPORT_DEFINITION_COMPARTMENT": WorkRequestSummaryOperationTypeChangeReportDefinitionCompartment, - "DELETE_REPORT_DEFINITION": WorkRequestSummaryOperationTypeDeleteReportDefinition, - "GENERATE_REPORT": WorkRequestSummaryOperationTypeGenerateReport, - "CHANGE_REPORT_COMPARTMENT": WorkRequestSummaryOperationTypeChangeReportCompartment, - "DELETE_ARCHIVE_RETRIEVAL": WorkRequestSummaryOperationTypeDeleteArchiveRetrieval, - "CREATE_ARCHIVE_RETRIEVAL": WorkRequestSummaryOperationTypeCreateArchiveRetrieval, - "UPDATE_ARCHIVE_RETRIEVAL": WorkRequestSummaryOperationTypeUpdateArchiveRetrieval, - "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT": WorkRequestSummaryOperationTypeChangeArchiveRetrievalCompartment, - "UPDATE_ALERT": WorkRequestSummaryOperationTypeUpdateAlert, - "TARGET_ALERT_POLICY_ASSOCIATION": WorkRequestSummaryOperationTypeTargetAlertPolicyAssociation, - "CREATE_SENSITIVE_DATA_MODEL": WorkRequestSummaryOperationTypeCreateSensitiveDataModel, - "UPDATE_SENSITIVE_DATA_MODEL": WorkRequestSummaryOperationTypeUpdateSensitiveDataModel, - "DELETE_SENSITIVE_DATA_MODEL": WorkRequestSummaryOperationTypeDeleteSensitiveDataModel, - "UPLOAD_SENSITIVE_DATA_MODEL": WorkRequestSummaryOperationTypeUploadSensitiveDataModel, - "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD": WorkRequestSummaryOperationTypeGenerateSensitiveDataModelForDownload, - "CREATE_SENSITIVE_COLUMN": WorkRequestSummaryOperationTypeCreateSensitiveColumn, - "UPDATE_SENSITIVE_COLUMN": WorkRequestSummaryOperationTypeUpdateSensitiveColumn, - "PATCH_SENSITIVE_COLUMNS": WorkRequestSummaryOperationTypePatchSensitiveColumns, - "CREATE_DISCOVERY_JOB": WorkRequestSummaryOperationTypeCreateDiscoveryJob, - "DELETE_DISCOVERY_JOB": WorkRequestSummaryOperationTypeDeleteDiscoveryJob, - "PATCH_DISCOVERY_JOB_RESULT": WorkRequestSummaryOperationTypePatchDiscoveryJobResult, - "APPLY_DISCOVERY_JOB_RESULT": WorkRequestSummaryOperationTypeApplyDiscoveryJobResult, - "GENERATE_DISCOVERY_REPORT": WorkRequestSummaryOperationTypeGenerateDiscoveryReport, - "CREATE_SENSITIVE_TYPE": WorkRequestSummaryOperationTypeCreateSensitiveType, - "UPDATE_SENSITIVE_TYPE": WorkRequestSummaryOperationTypeUpdateSensitiveType, - "CREATE_MASKING_POLICY": WorkRequestSummaryOperationTypeCreateMaskingPolicy, - "UPDATE_MASKING_POLICY": WorkRequestSummaryOperationTypeUpdateMaskingPolicy, - "DELETE_MASKING_POLICY": WorkRequestSummaryOperationTypeDeleteMaskingPolicy, - "UPLOAD_MASKING_POLICY": WorkRequestSummaryOperationTypeUploadMaskingPolicy, - "GENERATE_MASKING_POLICY_FOR_DOWNLOAD": WorkRequestSummaryOperationTypeGenerateMaskingPolicyForDownload, - "CREATE_MASKING_COLUMN": WorkRequestSummaryOperationTypeCreateMaskingColumn, - "UPDATE_MASKING_COLUMN": WorkRequestSummaryOperationTypeUpdateMaskingColumn, - "PATCH_MASKING_COLUMNS": WorkRequestSummaryOperationTypePatchMaskingColumns, - "GENERATE_MASKING_REPORT": WorkRequestSummaryOperationTypeGenerateMaskingReport, - "CREATE_LIBRARY_MASKING_FORMAT": WorkRequestSummaryOperationTypeCreateLibraryMaskingFormat, - "UPDATE_LIBRARY_MASKING_FORMAT": WorkRequestSummaryOperationTypeUpdateLibraryMaskingFormat, - "ADD_COLUMNS_FROM_SDM": WorkRequestSummaryOperationTypeAddColumnsFromSdm, - "MASKING_JOB": WorkRequestSummaryOperationTypeMaskingJob, - "CREATE_DIFFERENCE": WorkRequestSummaryOperationTypeCreateDifference, - "DELETE_DIFFERENCE": WorkRequestSummaryOperationTypeDeleteDifference, - "UPDATE_DIFFERENCE": WorkRequestSummaryOperationTypeUpdateDifference, - "PATCH_DIFFERENCE": WorkRequestSummaryOperationTypePatchDifference, - "APPLY_DIFFERENCE": WorkRequestSummaryOperationTypeApplyDifference, - "MASK_POLICY_GENERATE_HEALTH_REPORT": WorkRequestSummaryOperationTypeMaskPolicyGenerateHealthReport, - "MASK_POLICY_DELETE_HEALTH_REPORT": WorkRequestSummaryOperationTypeMaskPolicyDeleteHealthReport, - "CREATE_SENSITIVE_TYPES_EXPORT": WorkRequestSummaryOperationTypeCreateSensitiveTypesExport, - "UPDATE_SENSITIVE_TYPES_EXPORT": WorkRequestSummaryOperationTypeUpdateSensitiveTypesExport, - "BULK_CREATE_SENSITIVE_TYPES": WorkRequestSummaryOperationTypeBulkCreateSensitiveTypes, - "ABORT_MASKING": WorkRequestSummaryOperationTypeAbortMasking, - "CREATE_SECURITY_POLICY_REPORT": WorkRequestSummaryOperationTypeCreateSecurityPolicyReport, - "REFRESH_SECURITY_POLICY_CACHE": WorkRequestSummaryOperationTypeRefreshSecurityPolicyCache, - "DELETE_SECURITY_POLICY_CACHE": WorkRequestSummaryOperationTypeDeleteSecurityPolicyCache, - "CREATE_SCHEDULE": WorkRequestSummaryOperationTypeCreateSchedule, - "REMOVE_SCHEDULE_REPORT": WorkRequestSummaryOperationTypeRemoveScheduleReport, - "UPDATE_ALL_ALERT": WorkRequestSummaryOperationTypeUpdateAllAlert, - "PATCH_TARGET_ALERT_POLICY_ASSOCIATION": WorkRequestSummaryOperationTypePatchTargetAlertPolicyAssociation, - "CREATE_ALERT_POLICY": WorkRequestSummaryOperationTypeCreateAlertPolicy, - "UPDATE_ALERT_POLICY": WorkRequestSummaryOperationTypeUpdateAlertPolicy, - "DELETE_ALERT_POLICY": WorkRequestSummaryOperationTypeDeleteAlertPolicy, - "CREATE_ALERT_POLICY_RULE": WorkRequestSummaryOperationTypeCreateAlertPolicyRule, - "UPDATE_ALERT_POLICY_RULE": WorkRequestSummaryOperationTypeUpdateAlertPolicyRule, - "DELETE_ALERT_POLICY_RULE": WorkRequestSummaryOperationTypeDeleteAlertPolicyRule, - "CHANGE_ALERT_POLICY_COMPARTMENT": WorkRequestSummaryOperationTypeChangeAlertPolicyCompartment, + "ENABLE_DATA_SAFE_CONFIGURATION": WorkRequestSummaryOperationTypeEnableDataSafeConfiguration, + "CREATE_PRIVATE_ENDPOINT": WorkRequestSummaryOperationTypeCreatePrivateEndpoint, + "UPDATE_PRIVATE_ENDPOINT": WorkRequestSummaryOperationTypeUpdatePrivateEndpoint, + "DELETE_PRIVATE_ENDPOINT": WorkRequestSummaryOperationTypeDeletePrivateEndpoint, + "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT": WorkRequestSummaryOperationTypeChangePrivateEndpointCompartment, + "CREATE_ONPREM_CONNECTOR": WorkRequestSummaryOperationTypeCreateOnpremConnector, + "UPDATE_ONPREM_CONNECTOR": WorkRequestSummaryOperationTypeUpdateOnpremConnector, + "DELETE_ONPREM_CONNECTOR": WorkRequestSummaryOperationTypeDeleteOnpremConnector, + "UPDATE_ONPREM_CONNECTOR_WALLET": WorkRequestSummaryOperationTypeUpdateOnpremConnectorWallet, + "CHANGE_ONPREM_CONNECTOR_COMPARTMENT": WorkRequestSummaryOperationTypeChangeOnpremConnectorCompartment, + "PROVISION_POLICY": WorkRequestSummaryOperationTypeProvisionPolicy, + "RETRIEVE_POLICY": WorkRequestSummaryOperationTypeRetrievePolicy, + "UPDATE_POLICY": WorkRequestSummaryOperationTypeUpdatePolicy, + "CHANGE_POLICY_COMPARTMENT": WorkRequestSummaryOperationTypeChangePolicyCompartment, + "CREATE_TARGET_DATABASE": WorkRequestSummaryOperationTypeCreateTargetDatabase, + "UPDATE_TARGET_DATABASE": WorkRequestSummaryOperationTypeUpdateTargetDatabase, + "ACTIVATE_TARGET_DATABASE": WorkRequestSummaryOperationTypeActivateTargetDatabase, + "DEACTIVATE_TARGET_DATABASE": WorkRequestSummaryOperationTypeDeactivateTargetDatabase, + "DELETE_TARGET_DATABASE": WorkRequestSummaryOperationTypeDeleteTargetDatabase, + "CHANGE_TARGET_DATABASE_COMPARTMENT": WorkRequestSummaryOperationTypeChangeTargetDatabaseCompartment, + "CREATE_PEER_TARGET_DATABASE": WorkRequestSummaryOperationTypeCreatePeerTargetDatabase, + "UPDATE_PEER_TARGET_DATABASE": WorkRequestSummaryOperationTypeUpdatePeerTargetDatabase, + "DELETE_PEER_TARGET_DATABASE": WorkRequestSummaryOperationTypeDeletePeerTargetDatabase, + "REFRESH_TARGET_DATABASE": WorkRequestSummaryOperationTypeRefreshTargetDatabase, + "CREATE_USER_ASSESSMENT": WorkRequestSummaryOperationTypeCreateUserAssessment, + "ASSESS_USER_ASSESSMENT": WorkRequestSummaryOperationTypeAssessUserAssessment, + "CREATE_SNAPSHOT_USER_ASSESSMENT": WorkRequestSummaryOperationTypeCreateSnapshotUserAssessment, + "CREATE_SCHEDULE_USER_ASSESSMENT": WorkRequestSummaryOperationTypeCreateScheduleUserAssessment, + "COMPARE_WITH_BASELINE_USER_ASSESSMENT": WorkRequestSummaryOperationTypeCompareWithBaselineUserAssessment, + "DELETE_USER_ASSESSMENT": WorkRequestSummaryOperationTypeDeleteUserAssessment, + "UPDATE_USER_ASSESSMENT": WorkRequestSummaryOperationTypeUpdateUserAssessment, + "CHANGE_USER_ASSESSMENT_COMPARTMENT": WorkRequestSummaryOperationTypeChangeUserAssessmentCompartment, + "SET_USER_ASSESSMENT_BASELINE": WorkRequestSummaryOperationTypeSetUserAssessmentBaseline, + "UNSET_USER_ASSESSMENT_BASELINE": WorkRequestSummaryOperationTypeUnsetUserAssessmentBaseline, + "GENERATE_USER_ASSESSMENT_REPORT": WorkRequestSummaryOperationTypeGenerateUserAssessmentReport, + "CREATE_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeCreateSecurityAssessment, + "CREATE_SECURITY_ASSESSMENT_NOW": WorkRequestSummaryOperationTypeCreateSecurityAssessmentNow, + "ASSESS_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeAssessSecurityAssessment, + "CREATE_SNAPSHOT_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeCreateSnapshotSecurityAssessment, + "CREATE_SCHEDULE_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeCreateScheduleSecurityAssessment, + "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeCompareWithBaselineSecurityAssessment, + "DELETE_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeDeleteSecurityAssessment, + "UPDATE_SECURITY_ASSESSMENT": WorkRequestSummaryOperationTypeUpdateSecurityAssessment, + "UPDATE_FINDING_RISK": WorkRequestSummaryOperationTypeUpdateFindingRisk, + "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT": WorkRequestSummaryOperationTypeChangeSecurityAssessmentCompartment, + "SET_SECURITY_ASSESSMENT_BASELINE": WorkRequestSummaryOperationTypeSetSecurityAssessmentBaseline, + "UNSET_SECURITY_ASSESSMENT_BASELINE": WorkRequestSummaryOperationTypeUnsetSecurityAssessmentBaseline, + "GENERATE_SECURITY_ASSESSMENT_REPORT": WorkRequestSummaryOperationTypeGenerateSecurityAssessmentReport, + "PATCH_CHECKS": WorkRequestSummaryOperationTypePatchChecks, + "UPDATE_FINDING_SEVERITY": WorkRequestSummaryOperationTypeUpdateFindingSeverity, + "APPLY_TEMPLATE": WorkRequestSummaryOperationTypeApplyTemplate, + "DELETE_SQL_FIREWALL_ALLOWED_SQL": WorkRequestSummaryOperationTypeDeleteSqlFirewallAllowedSql, + "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL": WorkRequestSummaryOperationTypeBulkCreateSqlFirewallAllowedSql, + "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL": WorkRequestSummaryOperationTypeBulkDeleteSqlFirewallAllowedSql, + "CALCULATE_VOLUME": WorkRequestSummaryOperationTypeCalculateVolume, + "CALCULATE_COLLECTED_VOLUME": WorkRequestSummaryOperationTypeCalculateCollectedVolume, + "CREATE_DB_SECURITY_CONFIG": WorkRequestSummaryOperationTypeCreateDbSecurityConfig, + "REFRESH_DB_SECURITY_CONFIG": WorkRequestSummaryOperationTypeRefreshDbSecurityConfig, + "UPDATE_DB_SECURITY_CONFIG": WorkRequestSummaryOperationTypeUpdateDbSecurityConfig, + "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT": WorkRequestSummaryOperationTypeChangeDbSecurityConfigCompartment, + "GENERATE_FIREWALL_POLICY": WorkRequestSummaryOperationTypeGenerateFirewallPolicy, + "UPDATE_FIREWALL_POLICY": WorkRequestSummaryOperationTypeUpdateFirewallPolicy, + "CHANGE_FIREWALL_POLICY_COMPARTMENT": WorkRequestSummaryOperationTypeChangeFirewallPolicyCompartment, + "DELETE_FIREWALL_POLICY": WorkRequestSummaryOperationTypeDeleteFirewallPolicy, + "CREATE_SQL_COLLECTION": WorkRequestSummaryOperationTypeCreateSqlCollection, + "UPDATE_SQL_COLLECTION": WorkRequestSummaryOperationTypeUpdateSqlCollection, + "START_SQL_COLLECTION": WorkRequestSummaryOperationTypeStartSqlCollection, + "STOP_SQL_COLLECTION": WorkRequestSummaryOperationTypeStopSqlCollection, + "DELETE_SQL_COLLECTION": WorkRequestSummaryOperationTypeDeleteSqlCollection, + "CHANGE_SQL_COLLECTION_COMPARTMENT": WorkRequestSummaryOperationTypeChangeSqlCollectionCompartment, + "REFRESH_SQL_COLLECTION_LOG_INSIGHTS": WorkRequestSummaryOperationTypeRefreshSqlCollectionLogInsights, + "PURGE_SQL_COLLECTION_LOGS": WorkRequestSummaryOperationTypePurgeSqlCollectionLogs, + "REFRESH_VIOLATIONS": WorkRequestSummaryOperationTypeRefreshViolations, + "CREATE_ARCHIVAL": WorkRequestSummaryOperationTypeCreateArchival, + "CREATE_SECURITY_POLICY": WorkRequestSummaryOperationTypeCreateSecurityPolicy, + "DELETE_SECURITY_POLICY": WorkRequestSummaryOperationTypeDeleteSecurityPolicy, + "UPDATE_SECURITY_POLICY": WorkRequestSummaryOperationTypeUpdateSecurityPolicy, + "CHANGE_SECURITY_POLICY_COMPARTMENT": WorkRequestSummaryOperationTypeChangeSecurityPolicyCompartment, + "UPDATE_SECURITY_POLICY_DEPLOYMENT": WorkRequestSummaryOperationTypeUpdateSecurityPolicyDeployment, + "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT": WorkRequestSummaryOperationTypeChangeSecurityPolicyDeploymentCompartment, + "AUDIT_TRAIL": WorkRequestSummaryOperationTypeAuditTrail, + "DELETE_AUDIT_TRAIL": WorkRequestSummaryOperationTypeDeleteAuditTrail, + "DISCOVER_AUDIT_TRAILS": WorkRequestSummaryOperationTypeDiscoverAuditTrails, + "UPDATE_AUDIT_TRAIL": WorkRequestSummaryOperationTypeUpdateAuditTrail, + "UPDATE_AUDIT_PROFILE": WorkRequestSummaryOperationTypeUpdateAuditProfile, + "AUDIT_CHANGE_COMPARTMENT": WorkRequestSummaryOperationTypeAuditChangeCompartment, + "CREATE_REPORT_DEFINITION": WorkRequestSummaryOperationTypeCreateReportDefinition, + "UPDATE_REPORT_DEFINITION": WorkRequestSummaryOperationTypeUpdateReportDefinition, + "CHANGE_REPORT_DEFINITION_COMPARTMENT": WorkRequestSummaryOperationTypeChangeReportDefinitionCompartment, + "DELETE_REPORT_DEFINITION": WorkRequestSummaryOperationTypeDeleteReportDefinition, + "GENERATE_REPORT": WorkRequestSummaryOperationTypeGenerateReport, + "CHANGE_REPORT_COMPARTMENT": WorkRequestSummaryOperationTypeChangeReportCompartment, + "DELETE_ARCHIVE_RETRIEVAL": WorkRequestSummaryOperationTypeDeleteArchiveRetrieval, + "CREATE_ARCHIVE_RETRIEVAL": WorkRequestSummaryOperationTypeCreateArchiveRetrieval, + "UPDATE_ARCHIVE_RETRIEVAL": WorkRequestSummaryOperationTypeUpdateArchiveRetrieval, + "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT": WorkRequestSummaryOperationTypeChangeArchiveRetrievalCompartment, + "UPDATE_ALERT": WorkRequestSummaryOperationTypeUpdateAlert, + "TARGET_ALERT_POLICY_ASSOCIATION": WorkRequestSummaryOperationTypeTargetAlertPolicyAssociation, + "CREATE_TARGET_DATABASE_GROUP": WorkRequestSummaryOperationTypeCreateTargetDatabaseGroup, + "UPDATE_TARGET_DATABASE_GROUP": WorkRequestSummaryOperationTypeUpdateTargetDatabaseGroup, + "DELETE_TARGET_DATABASE_GROUP": WorkRequestSummaryOperationTypeDeleteTargetDatabaseGroup, + "CHANGE_TARGET_DATABASE_GROUP_COMPARTMENT": WorkRequestSummaryOperationTypeChangeTargetDatabaseGroupCompartment, + "CREATE_SECURITY_POLICY_CONFIG": WorkRequestSummaryOperationTypeCreateSecurityPolicyConfig, + "UPDATE_SECURITY_POLICY_CONFIG": WorkRequestSummaryOperationTypeUpdateSecurityPolicyConfig, + "DELETE_SECURITY_POLICY_CONFIG": WorkRequestSummaryOperationTypeDeleteSecurityPolicyConfig, + "CHANGE_SECURITY_POLICY_CONFIG_COMPARTMENT": WorkRequestSummaryOperationTypeChangeSecurityPolicyConfigCompartment, + "CREATE_UNIFIED_AUDIT_POLICY": WorkRequestSummaryOperationTypeCreateUnifiedAuditPolicy, + "UPDATE_UNIFIED_AUDIT_POLICY": WorkRequestSummaryOperationTypeUpdateUnifiedAuditPolicy, + "DELETE_UNIFIED_AUDIT_POLICY": WorkRequestSummaryOperationTypeDeleteUnifiedAuditPolicy, + "CHANGE_UNIFIED_AUDIT_POLICY_COMPARTMENT": WorkRequestSummaryOperationTypeChangeUnifiedAuditPolicyCompartment, + "UPDATE_UNIFIED_AUDIT_POLICY_DEFINITION": WorkRequestSummaryOperationTypeUpdateUnifiedAuditPolicyDefinition, + "DELETE_UNIFIED_AUDIT_POLICY_DEFINITION": WorkRequestSummaryOperationTypeDeleteUnifiedAuditPolicyDefinition, + "CHANGE_UNIFIED_AUDIT_POLICY_DEFINITION_COMPARTMENT": WorkRequestSummaryOperationTypeChangeUnifiedAuditPolicyDefinitionCompartment, + "FLEET_GENERATE_SECURITY_ASSESSMENT_REPORT": WorkRequestSummaryOperationTypeFleetGenerateSecurityAssessmentReport, + "FLEET_GENERATE_USER_ASSESSMENT_REPORT": WorkRequestSummaryOperationTypeFleetGenerateUserAssessmentReport, + "REFRESH_TARGET_DATABASE_GROUP_WITH_CHANGES": WorkRequestSummaryOperationTypeRefreshTargetDatabaseGroupWithChanges, + "FETCH_AUDIT_POLICY_DETAILS": WorkRequestSummaryOperationTypeFetchAuditPolicyDetails, + "BULK_CREATE_UNIFIED_AUDIT_POLICY": WorkRequestSummaryOperationTypeBulkCreateUnifiedAuditPolicy, + "SECURITY_POLICY_DEPLOYMENT_ACTIONS": WorkRequestSummaryOperationTypeSecurityPolicyDeploymentActions, + "PROVISION_SECURITY_POLICY_DEPLOYMENT": WorkRequestSummaryOperationTypeProvisionSecurityPolicyDeployment, + "CREATE_SENSITIVE_DATA_MODEL": WorkRequestSummaryOperationTypeCreateSensitiveDataModel, + "UPDATE_SENSITIVE_DATA_MODEL": WorkRequestSummaryOperationTypeUpdateSensitiveDataModel, + "DELETE_SENSITIVE_DATA_MODEL": WorkRequestSummaryOperationTypeDeleteSensitiveDataModel, + "UPLOAD_SENSITIVE_DATA_MODEL": WorkRequestSummaryOperationTypeUploadSensitiveDataModel, + "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD": WorkRequestSummaryOperationTypeGenerateSensitiveDataModelForDownload, + "CREATE_SENSITIVE_COLUMN": WorkRequestSummaryOperationTypeCreateSensitiveColumn, + "UPDATE_SENSITIVE_COLUMN": WorkRequestSummaryOperationTypeUpdateSensitiveColumn, + "PATCH_SENSITIVE_COLUMNS": WorkRequestSummaryOperationTypePatchSensitiveColumns, + "CREATE_DISCOVERY_JOB": WorkRequestSummaryOperationTypeCreateDiscoveryJob, + "DELETE_DISCOVERY_JOB": WorkRequestSummaryOperationTypeDeleteDiscoveryJob, + "PATCH_DISCOVERY_JOB_RESULT": WorkRequestSummaryOperationTypePatchDiscoveryJobResult, + "APPLY_DISCOVERY_JOB_RESULT": WorkRequestSummaryOperationTypeApplyDiscoveryJobResult, + "GENERATE_DISCOVERY_REPORT": WorkRequestSummaryOperationTypeGenerateDiscoveryReport, + "CREATE_SENSITIVE_TYPE": WorkRequestSummaryOperationTypeCreateSensitiveType, + "UPDATE_SENSITIVE_TYPE": WorkRequestSummaryOperationTypeUpdateSensitiveType, + "CREATE_MASKING_POLICY": WorkRequestSummaryOperationTypeCreateMaskingPolicy, + "UPDATE_MASKING_POLICY": WorkRequestSummaryOperationTypeUpdateMaskingPolicy, + "DELETE_MASKING_POLICY": WorkRequestSummaryOperationTypeDeleteMaskingPolicy, + "UPLOAD_MASKING_POLICY": WorkRequestSummaryOperationTypeUploadMaskingPolicy, + "GENERATE_MASKING_POLICY_FOR_DOWNLOAD": WorkRequestSummaryOperationTypeGenerateMaskingPolicyForDownload, + "CREATE_MASKING_COLUMN": WorkRequestSummaryOperationTypeCreateMaskingColumn, + "UPDATE_MASKING_COLUMN": WorkRequestSummaryOperationTypeUpdateMaskingColumn, + "PATCH_MASKING_COLUMNS": WorkRequestSummaryOperationTypePatchMaskingColumns, + "GENERATE_MASKING_REPORT": WorkRequestSummaryOperationTypeGenerateMaskingReport, + "CREATE_LIBRARY_MASKING_FORMAT": WorkRequestSummaryOperationTypeCreateLibraryMaskingFormat, + "UPDATE_LIBRARY_MASKING_FORMAT": WorkRequestSummaryOperationTypeUpdateLibraryMaskingFormat, + "ADD_COLUMNS_FROM_SDM": WorkRequestSummaryOperationTypeAddColumnsFromSdm, + "MASKING_JOB": WorkRequestSummaryOperationTypeMaskingJob, + "CREATE_DIFFERENCE": WorkRequestSummaryOperationTypeCreateDifference, + "DELETE_DIFFERENCE": WorkRequestSummaryOperationTypeDeleteDifference, + "UPDATE_DIFFERENCE": WorkRequestSummaryOperationTypeUpdateDifference, + "PATCH_DIFFERENCE": WorkRequestSummaryOperationTypePatchDifference, + "APPLY_DIFFERENCE": WorkRequestSummaryOperationTypeApplyDifference, + "DELETE_MASKING_REPORT": WorkRequestSummaryOperationTypeDeleteMaskingReport, + "MASK_POLICY_GENERATE_HEALTH_REPORT": WorkRequestSummaryOperationTypeMaskPolicyGenerateHealthReport, + "MASK_POLICY_DELETE_HEALTH_REPORT": WorkRequestSummaryOperationTypeMaskPolicyDeleteHealthReport, + "CREATE_SENSITIVE_TYPES_EXPORT": WorkRequestSummaryOperationTypeCreateSensitiveTypesExport, + "UPDATE_SENSITIVE_TYPES_EXPORT": WorkRequestSummaryOperationTypeUpdateSensitiveTypesExport, + "BULK_CREATE_SENSITIVE_TYPES": WorkRequestSummaryOperationTypeBulkCreateSensitiveTypes, + "CREATE_SENSITIVE_TYPE_GROUP": WorkRequestSummaryOperationTypeCreateSensitiveTypeGroup, + "UPDATE_SENSITIVE_TYPE_GROUP": WorkRequestSummaryOperationTypeUpdateSensitiveTypeGroup, + "DELETE_SENSITIVE_TYPE_GROUP": WorkRequestSummaryOperationTypeDeleteSensitiveTypeGroup, + "DELETE_SENSITIVE_TYPE": WorkRequestSummaryOperationTypeDeleteSensitiveType, + "PATCH_GROUPED_SENSITIVE_TYPES": WorkRequestSummaryOperationTypePatchGroupedSensitiveTypes, + "CREATE_RELATION": WorkRequestSummaryOperationTypeCreateRelation, + "DELETE_RELATION": WorkRequestSummaryOperationTypeDeleteRelation, + "ABORT_MASKING": WorkRequestSummaryOperationTypeAbortMasking, + "CREATE_SECURITY_POLICY_REPORT": WorkRequestSummaryOperationTypeCreateSecurityPolicyReport, + "REFRESH_SECURITY_POLICY_CACHE": WorkRequestSummaryOperationTypeRefreshSecurityPolicyCache, + "DELETE_SECURITY_POLICY_CACHE": WorkRequestSummaryOperationTypeDeleteSecurityPolicyCache, + "CREATE_SCHEDULE": WorkRequestSummaryOperationTypeCreateSchedule, + "REMOVE_SCHEDULE_REPORT": WorkRequestSummaryOperationTypeRemoveScheduleReport, + "UPDATE_ALL_ALERT": WorkRequestSummaryOperationTypeUpdateAllAlert, + "PATCH_TARGET_ALERT_POLICY_ASSOCIATION": WorkRequestSummaryOperationTypePatchTargetAlertPolicyAssociation, + "CREATE_ALERT_POLICY": WorkRequestSummaryOperationTypeCreateAlertPolicy, + "UPDATE_ALERT_POLICY": WorkRequestSummaryOperationTypeUpdateAlertPolicy, + "DELETE_ALERT_POLICY": WorkRequestSummaryOperationTypeDeleteAlertPolicy, + "CREATE_ALERT_POLICY_RULE": WorkRequestSummaryOperationTypeCreateAlertPolicyRule, + "UPDATE_ALERT_POLICY_RULE": WorkRequestSummaryOperationTypeUpdateAlertPolicyRule, + "DELETE_ALERT_POLICY_RULE": WorkRequestSummaryOperationTypeDeleteAlertPolicyRule, + "CHANGE_ALERT_POLICY_COMPARTMENT": WorkRequestSummaryOperationTypeChangeAlertPolicyCompartment, + "UPDATE_TARGET_GROUP_AUDIT_PROFILE": WorkRequestSummaryOperationTypeUpdateTargetGroupAuditProfile, + "CREATE_ATTRIBUTE_SET": WorkRequestSummaryOperationTypeCreateAttributeSet, + "UPDATE_ATTRIBUTE_SET": WorkRequestSummaryOperationTypeUpdateAttributeSet, + "DELETE_ATTRIBUTE_SET": WorkRequestSummaryOperationTypeDeleteAttributeSet, + "CHANGE_ATTRIBUTE_SET_COMPARTMENT": WorkRequestSummaryOperationTypeChangeAttributeSetCompartment, } var mappingWorkRequestSummaryOperationTypeEnumLowerCase = map[string]WorkRequestSummaryOperationTypeEnum{ - "enable_data_safe_configuration": WorkRequestSummaryOperationTypeEnableDataSafeConfiguration, - "create_private_endpoint": WorkRequestSummaryOperationTypeCreatePrivateEndpoint, - "update_private_endpoint": WorkRequestSummaryOperationTypeUpdatePrivateEndpoint, - "delete_private_endpoint": WorkRequestSummaryOperationTypeDeletePrivateEndpoint, - "change_private_endpoint_compartment": WorkRequestSummaryOperationTypeChangePrivateEndpointCompartment, - "create_onprem_connector": WorkRequestSummaryOperationTypeCreateOnpremConnector, - "update_onprem_connector": WorkRequestSummaryOperationTypeUpdateOnpremConnector, - "delete_onprem_connector": WorkRequestSummaryOperationTypeDeleteOnpremConnector, - "update_onprem_connector_wallet": WorkRequestSummaryOperationTypeUpdateOnpremConnectorWallet, - "change_onprem_connector_compartment": WorkRequestSummaryOperationTypeChangeOnpremConnectorCompartment, - "provision_policy": WorkRequestSummaryOperationTypeProvisionPolicy, - "retrieve_policy": WorkRequestSummaryOperationTypeRetrievePolicy, - "update_policy": WorkRequestSummaryOperationTypeUpdatePolicy, - "change_policy_compartment": WorkRequestSummaryOperationTypeChangePolicyCompartment, - "create_target_database": WorkRequestSummaryOperationTypeCreateTargetDatabase, - "update_target_database": WorkRequestSummaryOperationTypeUpdateTargetDatabase, - "activate_target_database": WorkRequestSummaryOperationTypeActivateTargetDatabase, - "deactivate_target_database": WorkRequestSummaryOperationTypeDeactivateTargetDatabase, - "delete_target_database": WorkRequestSummaryOperationTypeDeleteTargetDatabase, - "change_target_database_compartment": WorkRequestSummaryOperationTypeChangeTargetDatabaseCompartment, - "create_peer_target_database": WorkRequestSummaryOperationTypeCreatePeerTargetDatabase, - "update_peer_target_database": WorkRequestSummaryOperationTypeUpdatePeerTargetDatabase, - "delete_peer_target_database": WorkRequestSummaryOperationTypeDeletePeerTargetDatabase, - "refresh_target_database": WorkRequestSummaryOperationTypeRefreshTargetDatabase, - "create_user_assessment": WorkRequestSummaryOperationTypeCreateUserAssessment, - "assess_user_assessment": WorkRequestSummaryOperationTypeAssessUserAssessment, - "create_snapshot_user_assessment": WorkRequestSummaryOperationTypeCreateSnapshotUserAssessment, - "create_schedule_user_assessment": WorkRequestSummaryOperationTypeCreateScheduleUserAssessment, - "compare_with_baseline_user_assessment": WorkRequestSummaryOperationTypeCompareWithBaselineUserAssessment, - "delete_user_assessment": WorkRequestSummaryOperationTypeDeleteUserAssessment, - "update_user_assessment": WorkRequestSummaryOperationTypeUpdateUserAssessment, - "change_user_assessment_compartment": WorkRequestSummaryOperationTypeChangeUserAssessmentCompartment, - "set_user_assessment_baseline": WorkRequestSummaryOperationTypeSetUserAssessmentBaseline, - "unset_user_assessment_baseline": WorkRequestSummaryOperationTypeUnsetUserAssessmentBaseline, - "generate_user_assessment_report": WorkRequestSummaryOperationTypeGenerateUserAssessmentReport, - "create_security_assessment": WorkRequestSummaryOperationTypeCreateSecurityAssessment, - "create_security_assessment_now": WorkRequestSummaryOperationTypeCreateSecurityAssessmentNow, - "assess_security_assessment": WorkRequestSummaryOperationTypeAssessSecurityAssessment, - "create_snapshot_security_assessment": WorkRequestSummaryOperationTypeCreateSnapshotSecurityAssessment, - "create_schedule_security_assessment": WorkRequestSummaryOperationTypeCreateScheduleSecurityAssessment, - "compare_with_baseline_security_assessment": WorkRequestSummaryOperationTypeCompareWithBaselineSecurityAssessment, - "delete_security_assessment": WorkRequestSummaryOperationTypeDeleteSecurityAssessment, - "update_security_assessment": WorkRequestSummaryOperationTypeUpdateSecurityAssessment, - "update_finding_risk": WorkRequestSummaryOperationTypeUpdateFindingRisk, - "change_security_assessment_compartment": WorkRequestSummaryOperationTypeChangeSecurityAssessmentCompartment, - "set_security_assessment_baseline": WorkRequestSummaryOperationTypeSetSecurityAssessmentBaseline, - "unset_security_assessment_baseline": WorkRequestSummaryOperationTypeUnsetSecurityAssessmentBaseline, - "generate_security_assessment_report": WorkRequestSummaryOperationTypeGenerateSecurityAssessmentReport, - "delete_sql_firewall_allowed_sql": WorkRequestSummaryOperationTypeDeleteSqlFirewallAllowedSql, - "bulk_create_sql_firewall_allowed_sql": WorkRequestSummaryOperationTypeBulkCreateSqlFirewallAllowedSql, - "bulk_delete_sql_firewall_allowed_sql": WorkRequestSummaryOperationTypeBulkDeleteSqlFirewallAllowedSql, - "calculate_volume": WorkRequestSummaryOperationTypeCalculateVolume, - "calculate_collected_volume": WorkRequestSummaryOperationTypeCalculateCollectedVolume, - "create_db_security_config": WorkRequestSummaryOperationTypeCreateDbSecurityConfig, - "refresh_db_security_config": WorkRequestSummaryOperationTypeRefreshDbSecurityConfig, - "update_db_security_config": WorkRequestSummaryOperationTypeUpdateDbSecurityConfig, - "change_db_security_config_compartment": WorkRequestSummaryOperationTypeChangeDbSecurityConfigCompartment, - "generate_firewall_policy": WorkRequestSummaryOperationTypeGenerateFirewallPolicy, - "update_firewall_policy": WorkRequestSummaryOperationTypeUpdateFirewallPolicy, - "change_firewall_policy_compartment": WorkRequestSummaryOperationTypeChangeFirewallPolicyCompartment, - "delete_firewall_policy": WorkRequestSummaryOperationTypeDeleteFirewallPolicy, - "create_sql_collection": WorkRequestSummaryOperationTypeCreateSqlCollection, - "update_sql_collection": WorkRequestSummaryOperationTypeUpdateSqlCollection, - "start_sql_collection": WorkRequestSummaryOperationTypeStartSqlCollection, - "stop_sql_collection": WorkRequestSummaryOperationTypeStopSqlCollection, - "delete_sql_collection": WorkRequestSummaryOperationTypeDeleteSqlCollection, - "change_sql_collection_compartment": WorkRequestSummaryOperationTypeChangeSqlCollectionCompartment, - "refresh_sql_collection_log_insights": WorkRequestSummaryOperationTypeRefreshSqlCollectionLogInsights, - "purge_sql_collection_logs": WorkRequestSummaryOperationTypePurgeSqlCollectionLogs, - "refresh_violations": WorkRequestSummaryOperationTypeRefreshViolations, - "create_archival": WorkRequestSummaryOperationTypeCreateArchival, - "update_security_policy": WorkRequestSummaryOperationTypeUpdateSecurityPolicy, - "change_security_policy_compartment": WorkRequestSummaryOperationTypeChangeSecurityPolicyCompartment, - "update_security_policy_deployment": WorkRequestSummaryOperationTypeUpdateSecurityPolicyDeployment, - "change_security_policy_deployment_compartment": WorkRequestSummaryOperationTypeChangeSecurityPolicyDeploymentCompartment, - "audit_trail": WorkRequestSummaryOperationTypeAuditTrail, - "delete_audit_trail": WorkRequestSummaryOperationTypeDeleteAuditTrail, - "discover_audit_trails": WorkRequestSummaryOperationTypeDiscoverAuditTrails, - "update_audit_trail": WorkRequestSummaryOperationTypeUpdateAuditTrail, - "update_audit_profile": WorkRequestSummaryOperationTypeUpdateAuditProfile, - "audit_change_compartment": WorkRequestSummaryOperationTypeAuditChangeCompartment, - "create_report_definition": WorkRequestSummaryOperationTypeCreateReportDefinition, - "update_report_definition": WorkRequestSummaryOperationTypeUpdateReportDefinition, - "change_report_definition_compartment": WorkRequestSummaryOperationTypeChangeReportDefinitionCompartment, - "delete_report_definition": WorkRequestSummaryOperationTypeDeleteReportDefinition, - "generate_report": WorkRequestSummaryOperationTypeGenerateReport, - "change_report_compartment": WorkRequestSummaryOperationTypeChangeReportCompartment, - "delete_archive_retrieval": WorkRequestSummaryOperationTypeDeleteArchiveRetrieval, - "create_archive_retrieval": WorkRequestSummaryOperationTypeCreateArchiveRetrieval, - "update_archive_retrieval": WorkRequestSummaryOperationTypeUpdateArchiveRetrieval, - "change_archive_retrieval_compartment": WorkRequestSummaryOperationTypeChangeArchiveRetrievalCompartment, - "update_alert": WorkRequestSummaryOperationTypeUpdateAlert, - "target_alert_policy_association": WorkRequestSummaryOperationTypeTargetAlertPolicyAssociation, - "create_sensitive_data_model": WorkRequestSummaryOperationTypeCreateSensitiveDataModel, - "update_sensitive_data_model": WorkRequestSummaryOperationTypeUpdateSensitiveDataModel, - "delete_sensitive_data_model": WorkRequestSummaryOperationTypeDeleteSensitiveDataModel, - "upload_sensitive_data_model": WorkRequestSummaryOperationTypeUploadSensitiveDataModel, - "generate_sensitive_data_model_for_download": WorkRequestSummaryOperationTypeGenerateSensitiveDataModelForDownload, - "create_sensitive_column": WorkRequestSummaryOperationTypeCreateSensitiveColumn, - "update_sensitive_column": WorkRequestSummaryOperationTypeUpdateSensitiveColumn, - "patch_sensitive_columns": WorkRequestSummaryOperationTypePatchSensitiveColumns, - "create_discovery_job": WorkRequestSummaryOperationTypeCreateDiscoveryJob, - "delete_discovery_job": WorkRequestSummaryOperationTypeDeleteDiscoveryJob, - "patch_discovery_job_result": WorkRequestSummaryOperationTypePatchDiscoveryJobResult, - "apply_discovery_job_result": WorkRequestSummaryOperationTypeApplyDiscoveryJobResult, - "generate_discovery_report": WorkRequestSummaryOperationTypeGenerateDiscoveryReport, - "create_sensitive_type": WorkRequestSummaryOperationTypeCreateSensitiveType, - "update_sensitive_type": WorkRequestSummaryOperationTypeUpdateSensitiveType, - "create_masking_policy": WorkRequestSummaryOperationTypeCreateMaskingPolicy, - "update_masking_policy": WorkRequestSummaryOperationTypeUpdateMaskingPolicy, - "delete_masking_policy": WorkRequestSummaryOperationTypeDeleteMaskingPolicy, - "upload_masking_policy": WorkRequestSummaryOperationTypeUploadMaskingPolicy, - "generate_masking_policy_for_download": WorkRequestSummaryOperationTypeGenerateMaskingPolicyForDownload, - "create_masking_column": WorkRequestSummaryOperationTypeCreateMaskingColumn, - "update_masking_column": WorkRequestSummaryOperationTypeUpdateMaskingColumn, - "patch_masking_columns": WorkRequestSummaryOperationTypePatchMaskingColumns, - "generate_masking_report": WorkRequestSummaryOperationTypeGenerateMaskingReport, - "create_library_masking_format": WorkRequestSummaryOperationTypeCreateLibraryMaskingFormat, - "update_library_masking_format": WorkRequestSummaryOperationTypeUpdateLibraryMaskingFormat, - "add_columns_from_sdm": WorkRequestSummaryOperationTypeAddColumnsFromSdm, - "masking_job": WorkRequestSummaryOperationTypeMaskingJob, - "create_difference": WorkRequestSummaryOperationTypeCreateDifference, - "delete_difference": WorkRequestSummaryOperationTypeDeleteDifference, - "update_difference": WorkRequestSummaryOperationTypeUpdateDifference, - "patch_difference": WorkRequestSummaryOperationTypePatchDifference, - "apply_difference": WorkRequestSummaryOperationTypeApplyDifference, - "mask_policy_generate_health_report": WorkRequestSummaryOperationTypeMaskPolicyGenerateHealthReport, - "mask_policy_delete_health_report": WorkRequestSummaryOperationTypeMaskPolicyDeleteHealthReport, - "create_sensitive_types_export": WorkRequestSummaryOperationTypeCreateSensitiveTypesExport, - "update_sensitive_types_export": WorkRequestSummaryOperationTypeUpdateSensitiveTypesExport, - "bulk_create_sensitive_types": WorkRequestSummaryOperationTypeBulkCreateSensitiveTypes, - "abort_masking": WorkRequestSummaryOperationTypeAbortMasking, - "create_security_policy_report": WorkRequestSummaryOperationTypeCreateSecurityPolicyReport, - "refresh_security_policy_cache": WorkRequestSummaryOperationTypeRefreshSecurityPolicyCache, - "delete_security_policy_cache": WorkRequestSummaryOperationTypeDeleteSecurityPolicyCache, - "create_schedule": WorkRequestSummaryOperationTypeCreateSchedule, - "remove_schedule_report": WorkRequestSummaryOperationTypeRemoveScheduleReport, - "update_all_alert": WorkRequestSummaryOperationTypeUpdateAllAlert, - "patch_target_alert_policy_association": WorkRequestSummaryOperationTypePatchTargetAlertPolicyAssociation, - "create_alert_policy": WorkRequestSummaryOperationTypeCreateAlertPolicy, - "update_alert_policy": WorkRequestSummaryOperationTypeUpdateAlertPolicy, - "delete_alert_policy": WorkRequestSummaryOperationTypeDeleteAlertPolicy, - "create_alert_policy_rule": WorkRequestSummaryOperationTypeCreateAlertPolicyRule, - "update_alert_policy_rule": WorkRequestSummaryOperationTypeUpdateAlertPolicyRule, - "delete_alert_policy_rule": WorkRequestSummaryOperationTypeDeleteAlertPolicyRule, - "change_alert_policy_compartment": WorkRequestSummaryOperationTypeChangeAlertPolicyCompartment, + "enable_data_safe_configuration": WorkRequestSummaryOperationTypeEnableDataSafeConfiguration, + "create_private_endpoint": WorkRequestSummaryOperationTypeCreatePrivateEndpoint, + "update_private_endpoint": WorkRequestSummaryOperationTypeUpdatePrivateEndpoint, + "delete_private_endpoint": WorkRequestSummaryOperationTypeDeletePrivateEndpoint, + "change_private_endpoint_compartment": WorkRequestSummaryOperationTypeChangePrivateEndpointCompartment, + "create_onprem_connector": WorkRequestSummaryOperationTypeCreateOnpremConnector, + "update_onprem_connector": WorkRequestSummaryOperationTypeUpdateOnpremConnector, + "delete_onprem_connector": WorkRequestSummaryOperationTypeDeleteOnpremConnector, + "update_onprem_connector_wallet": WorkRequestSummaryOperationTypeUpdateOnpremConnectorWallet, + "change_onprem_connector_compartment": WorkRequestSummaryOperationTypeChangeOnpremConnectorCompartment, + "provision_policy": WorkRequestSummaryOperationTypeProvisionPolicy, + "retrieve_policy": WorkRequestSummaryOperationTypeRetrievePolicy, + "update_policy": WorkRequestSummaryOperationTypeUpdatePolicy, + "change_policy_compartment": WorkRequestSummaryOperationTypeChangePolicyCompartment, + "create_target_database": WorkRequestSummaryOperationTypeCreateTargetDatabase, + "update_target_database": WorkRequestSummaryOperationTypeUpdateTargetDatabase, + "activate_target_database": WorkRequestSummaryOperationTypeActivateTargetDatabase, + "deactivate_target_database": WorkRequestSummaryOperationTypeDeactivateTargetDatabase, + "delete_target_database": WorkRequestSummaryOperationTypeDeleteTargetDatabase, + "change_target_database_compartment": WorkRequestSummaryOperationTypeChangeTargetDatabaseCompartment, + "create_peer_target_database": WorkRequestSummaryOperationTypeCreatePeerTargetDatabase, + "update_peer_target_database": WorkRequestSummaryOperationTypeUpdatePeerTargetDatabase, + "delete_peer_target_database": WorkRequestSummaryOperationTypeDeletePeerTargetDatabase, + "refresh_target_database": WorkRequestSummaryOperationTypeRefreshTargetDatabase, + "create_user_assessment": WorkRequestSummaryOperationTypeCreateUserAssessment, + "assess_user_assessment": WorkRequestSummaryOperationTypeAssessUserAssessment, + "create_snapshot_user_assessment": WorkRequestSummaryOperationTypeCreateSnapshotUserAssessment, + "create_schedule_user_assessment": WorkRequestSummaryOperationTypeCreateScheduleUserAssessment, + "compare_with_baseline_user_assessment": WorkRequestSummaryOperationTypeCompareWithBaselineUserAssessment, + "delete_user_assessment": WorkRequestSummaryOperationTypeDeleteUserAssessment, + "update_user_assessment": WorkRequestSummaryOperationTypeUpdateUserAssessment, + "change_user_assessment_compartment": WorkRequestSummaryOperationTypeChangeUserAssessmentCompartment, + "set_user_assessment_baseline": WorkRequestSummaryOperationTypeSetUserAssessmentBaseline, + "unset_user_assessment_baseline": WorkRequestSummaryOperationTypeUnsetUserAssessmentBaseline, + "generate_user_assessment_report": WorkRequestSummaryOperationTypeGenerateUserAssessmentReport, + "create_security_assessment": WorkRequestSummaryOperationTypeCreateSecurityAssessment, + "create_security_assessment_now": WorkRequestSummaryOperationTypeCreateSecurityAssessmentNow, + "assess_security_assessment": WorkRequestSummaryOperationTypeAssessSecurityAssessment, + "create_snapshot_security_assessment": WorkRequestSummaryOperationTypeCreateSnapshotSecurityAssessment, + "create_schedule_security_assessment": WorkRequestSummaryOperationTypeCreateScheduleSecurityAssessment, + "compare_with_baseline_security_assessment": WorkRequestSummaryOperationTypeCompareWithBaselineSecurityAssessment, + "delete_security_assessment": WorkRequestSummaryOperationTypeDeleteSecurityAssessment, + "update_security_assessment": WorkRequestSummaryOperationTypeUpdateSecurityAssessment, + "update_finding_risk": WorkRequestSummaryOperationTypeUpdateFindingRisk, + "change_security_assessment_compartment": WorkRequestSummaryOperationTypeChangeSecurityAssessmentCompartment, + "set_security_assessment_baseline": WorkRequestSummaryOperationTypeSetSecurityAssessmentBaseline, + "unset_security_assessment_baseline": WorkRequestSummaryOperationTypeUnsetSecurityAssessmentBaseline, + "generate_security_assessment_report": WorkRequestSummaryOperationTypeGenerateSecurityAssessmentReport, + "patch_checks": WorkRequestSummaryOperationTypePatchChecks, + "update_finding_severity": WorkRequestSummaryOperationTypeUpdateFindingSeverity, + "apply_template": WorkRequestSummaryOperationTypeApplyTemplate, + "delete_sql_firewall_allowed_sql": WorkRequestSummaryOperationTypeDeleteSqlFirewallAllowedSql, + "bulk_create_sql_firewall_allowed_sql": WorkRequestSummaryOperationTypeBulkCreateSqlFirewallAllowedSql, + "bulk_delete_sql_firewall_allowed_sql": WorkRequestSummaryOperationTypeBulkDeleteSqlFirewallAllowedSql, + "calculate_volume": WorkRequestSummaryOperationTypeCalculateVolume, + "calculate_collected_volume": WorkRequestSummaryOperationTypeCalculateCollectedVolume, + "create_db_security_config": WorkRequestSummaryOperationTypeCreateDbSecurityConfig, + "refresh_db_security_config": WorkRequestSummaryOperationTypeRefreshDbSecurityConfig, + "update_db_security_config": WorkRequestSummaryOperationTypeUpdateDbSecurityConfig, + "change_db_security_config_compartment": WorkRequestSummaryOperationTypeChangeDbSecurityConfigCompartment, + "generate_firewall_policy": WorkRequestSummaryOperationTypeGenerateFirewallPolicy, + "update_firewall_policy": WorkRequestSummaryOperationTypeUpdateFirewallPolicy, + "change_firewall_policy_compartment": WorkRequestSummaryOperationTypeChangeFirewallPolicyCompartment, + "delete_firewall_policy": WorkRequestSummaryOperationTypeDeleteFirewallPolicy, + "create_sql_collection": WorkRequestSummaryOperationTypeCreateSqlCollection, + "update_sql_collection": WorkRequestSummaryOperationTypeUpdateSqlCollection, + "start_sql_collection": WorkRequestSummaryOperationTypeStartSqlCollection, + "stop_sql_collection": WorkRequestSummaryOperationTypeStopSqlCollection, + "delete_sql_collection": WorkRequestSummaryOperationTypeDeleteSqlCollection, + "change_sql_collection_compartment": WorkRequestSummaryOperationTypeChangeSqlCollectionCompartment, + "refresh_sql_collection_log_insights": WorkRequestSummaryOperationTypeRefreshSqlCollectionLogInsights, + "purge_sql_collection_logs": WorkRequestSummaryOperationTypePurgeSqlCollectionLogs, + "refresh_violations": WorkRequestSummaryOperationTypeRefreshViolations, + "create_archival": WorkRequestSummaryOperationTypeCreateArchival, + "create_security_policy": WorkRequestSummaryOperationTypeCreateSecurityPolicy, + "delete_security_policy": WorkRequestSummaryOperationTypeDeleteSecurityPolicy, + "update_security_policy": WorkRequestSummaryOperationTypeUpdateSecurityPolicy, + "change_security_policy_compartment": WorkRequestSummaryOperationTypeChangeSecurityPolicyCompartment, + "update_security_policy_deployment": WorkRequestSummaryOperationTypeUpdateSecurityPolicyDeployment, + "change_security_policy_deployment_compartment": WorkRequestSummaryOperationTypeChangeSecurityPolicyDeploymentCompartment, + "audit_trail": WorkRequestSummaryOperationTypeAuditTrail, + "delete_audit_trail": WorkRequestSummaryOperationTypeDeleteAuditTrail, + "discover_audit_trails": WorkRequestSummaryOperationTypeDiscoverAuditTrails, + "update_audit_trail": WorkRequestSummaryOperationTypeUpdateAuditTrail, + "update_audit_profile": WorkRequestSummaryOperationTypeUpdateAuditProfile, + "audit_change_compartment": WorkRequestSummaryOperationTypeAuditChangeCompartment, + "create_report_definition": WorkRequestSummaryOperationTypeCreateReportDefinition, + "update_report_definition": WorkRequestSummaryOperationTypeUpdateReportDefinition, + "change_report_definition_compartment": WorkRequestSummaryOperationTypeChangeReportDefinitionCompartment, + "delete_report_definition": WorkRequestSummaryOperationTypeDeleteReportDefinition, + "generate_report": WorkRequestSummaryOperationTypeGenerateReport, + "change_report_compartment": WorkRequestSummaryOperationTypeChangeReportCompartment, + "delete_archive_retrieval": WorkRequestSummaryOperationTypeDeleteArchiveRetrieval, + "create_archive_retrieval": WorkRequestSummaryOperationTypeCreateArchiveRetrieval, + "update_archive_retrieval": WorkRequestSummaryOperationTypeUpdateArchiveRetrieval, + "change_archive_retrieval_compartment": WorkRequestSummaryOperationTypeChangeArchiveRetrievalCompartment, + "update_alert": WorkRequestSummaryOperationTypeUpdateAlert, + "target_alert_policy_association": WorkRequestSummaryOperationTypeTargetAlertPolicyAssociation, + "create_target_database_group": WorkRequestSummaryOperationTypeCreateTargetDatabaseGroup, + "update_target_database_group": WorkRequestSummaryOperationTypeUpdateTargetDatabaseGroup, + "delete_target_database_group": WorkRequestSummaryOperationTypeDeleteTargetDatabaseGroup, + "change_target_database_group_compartment": WorkRequestSummaryOperationTypeChangeTargetDatabaseGroupCompartment, + "create_security_policy_config": WorkRequestSummaryOperationTypeCreateSecurityPolicyConfig, + "update_security_policy_config": WorkRequestSummaryOperationTypeUpdateSecurityPolicyConfig, + "delete_security_policy_config": WorkRequestSummaryOperationTypeDeleteSecurityPolicyConfig, + "change_security_policy_config_compartment": WorkRequestSummaryOperationTypeChangeSecurityPolicyConfigCompartment, + "create_unified_audit_policy": WorkRequestSummaryOperationTypeCreateUnifiedAuditPolicy, + "update_unified_audit_policy": WorkRequestSummaryOperationTypeUpdateUnifiedAuditPolicy, + "delete_unified_audit_policy": WorkRequestSummaryOperationTypeDeleteUnifiedAuditPolicy, + "change_unified_audit_policy_compartment": WorkRequestSummaryOperationTypeChangeUnifiedAuditPolicyCompartment, + "update_unified_audit_policy_definition": WorkRequestSummaryOperationTypeUpdateUnifiedAuditPolicyDefinition, + "delete_unified_audit_policy_definition": WorkRequestSummaryOperationTypeDeleteUnifiedAuditPolicyDefinition, + "change_unified_audit_policy_definition_compartment": WorkRequestSummaryOperationTypeChangeUnifiedAuditPolicyDefinitionCompartment, + "fleet_generate_security_assessment_report": WorkRequestSummaryOperationTypeFleetGenerateSecurityAssessmentReport, + "fleet_generate_user_assessment_report": WorkRequestSummaryOperationTypeFleetGenerateUserAssessmentReport, + "refresh_target_database_group_with_changes": WorkRequestSummaryOperationTypeRefreshTargetDatabaseGroupWithChanges, + "fetch_audit_policy_details": WorkRequestSummaryOperationTypeFetchAuditPolicyDetails, + "bulk_create_unified_audit_policy": WorkRequestSummaryOperationTypeBulkCreateUnifiedAuditPolicy, + "security_policy_deployment_actions": WorkRequestSummaryOperationTypeSecurityPolicyDeploymentActions, + "provision_security_policy_deployment": WorkRequestSummaryOperationTypeProvisionSecurityPolicyDeployment, + "create_sensitive_data_model": WorkRequestSummaryOperationTypeCreateSensitiveDataModel, + "update_sensitive_data_model": WorkRequestSummaryOperationTypeUpdateSensitiveDataModel, + "delete_sensitive_data_model": WorkRequestSummaryOperationTypeDeleteSensitiveDataModel, + "upload_sensitive_data_model": WorkRequestSummaryOperationTypeUploadSensitiveDataModel, + "generate_sensitive_data_model_for_download": WorkRequestSummaryOperationTypeGenerateSensitiveDataModelForDownload, + "create_sensitive_column": WorkRequestSummaryOperationTypeCreateSensitiveColumn, + "update_sensitive_column": WorkRequestSummaryOperationTypeUpdateSensitiveColumn, + "patch_sensitive_columns": WorkRequestSummaryOperationTypePatchSensitiveColumns, + "create_discovery_job": WorkRequestSummaryOperationTypeCreateDiscoveryJob, + "delete_discovery_job": WorkRequestSummaryOperationTypeDeleteDiscoveryJob, + "patch_discovery_job_result": WorkRequestSummaryOperationTypePatchDiscoveryJobResult, + "apply_discovery_job_result": WorkRequestSummaryOperationTypeApplyDiscoveryJobResult, + "generate_discovery_report": WorkRequestSummaryOperationTypeGenerateDiscoveryReport, + "create_sensitive_type": WorkRequestSummaryOperationTypeCreateSensitiveType, + "update_sensitive_type": WorkRequestSummaryOperationTypeUpdateSensitiveType, + "create_masking_policy": WorkRequestSummaryOperationTypeCreateMaskingPolicy, + "update_masking_policy": WorkRequestSummaryOperationTypeUpdateMaskingPolicy, + "delete_masking_policy": WorkRequestSummaryOperationTypeDeleteMaskingPolicy, + "upload_masking_policy": WorkRequestSummaryOperationTypeUploadMaskingPolicy, + "generate_masking_policy_for_download": WorkRequestSummaryOperationTypeGenerateMaskingPolicyForDownload, + "create_masking_column": WorkRequestSummaryOperationTypeCreateMaskingColumn, + "update_masking_column": WorkRequestSummaryOperationTypeUpdateMaskingColumn, + "patch_masking_columns": WorkRequestSummaryOperationTypePatchMaskingColumns, + "generate_masking_report": WorkRequestSummaryOperationTypeGenerateMaskingReport, + "create_library_masking_format": WorkRequestSummaryOperationTypeCreateLibraryMaskingFormat, + "update_library_masking_format": WorkRequestSummaryOperationTypeUpdateLibraryMaskingFormat, + "add_columns_from_sdm": WorkRequestSummaryOperationTypeAddColumnsFromSdm, + "masking_job": WorkRequestSummaryOperationTypeMaskingJob, + "create_difference": WorkRequestSummaryOperationTypeCreateDifference, + "delete_difference": WorkRequestSummaryOperationTypeDeleteDifference, + "update_difference": WorkRequestSummaryOperationTypeUpdateDifference, + "patch_difference": WorkRequestSummaryOperationTypePatchDifference, + "apply_difference": WorkRequestSummaryOperationTypeApplyDifference, + "delete_masking_report": WorkRequestSummaryOperationTypeDeleteMaskingReport, + "mask_policy_generate_health_report": WorkRequestSummaryOperationTypeMaskPolicyGenerateHealthReport, + "mask_policy_delete_health_report": WorkRequestSummaryOperationTypeMaskPolicyDeleteHealthReport, + "create_sensitive_types_export": WorkRequestSummaryOperationTypeCreateSensitiveTypesExport, + "update_sensitive_types_export": WorkRequestSummaryOperationTypeUpdateSensitiveTypesExport, + "bulk_create_sensitive_types": WorkRequestSummaryOperationTypeBulkCreateSensitiveTypes, + "create_sensitive_type_group": WorkRequestSummaryOperationTypeCreateSensitiveTypeGroup, + "update_sensitive_type_group": WorkRequestSummaryOperationTypeUpdateSensitiveTypeGroup, + "delete_sensitive_type_group": WorkRequestSummaryOperationTypeDeleteSensitiveTypeGroup, + "delete_sensitive_type": WorkRequestSummaryOperationTypeDeleteSensitiveType, + "patch_grouped_sensitive_types": WorkRequestSummaryOperationTypePatchGroupedSensitiveTypes, + "create_relation": WorkRequestSummaryOperationTypeCreateRelation, + "delete_relation": WorkRequestSummaryOperationTypeDeleteRelation, + "abort_masking": WorkRequestSummaryOperationTypeAbortMasking, + "create_security_policy_report": WorkRequestSummaryOperationTypeCreateSecurityPolicyReport, + "refresh_security_policy_cache": WorkRequestSummaryOperationTypeRefreshSecurityPolicyCache, + "delete_security_policy_cache": WorkRequestSummaryOperationTypeDeleteSecurityPolicyCache, + "create_schedule": WorkRequestSummaryOperationTypeCreateSchedule, + "remove_schedule_report": WorkRequestSummaryOperationTypeRemoveScheduleReport, + "update_all_alert": WorkRequestSummaryOperationTypeUpdateAllAlert, + "patch_target_alert_policy_association": WorkRequestSummaryOperationTypePatchTargetAlertPolicyAssociation, + "create_alert_policy": WorkRequestSummaryOperationTypeCreateAlertPolicy, + "update_alert_policy": WorkRequestSummaryOperationTypeUpdateAlertPolicy, + "delete_alert_policy": WorkRequestSummaryOperationTypeDeleteAlertPolicy, + "create_alert_policy_rule": WorkRequestSummaryOperationTypeCreateAlertPolicyRule, + "update_alert_policy_rule": WorkRequestSummaryOperationTypeUpdateAlertPolicyRule, + "delete_alert_policy_rule": WorkRequestSummaryOperationTypeDeleteAlertPolicyRule, + "change_alert_policy_compartment": WorkRequestSummaryOperationTypeChangeAlertPolicyCompartment, + "update_target_group_audit_profile": WorkRequestSummaryOperationTypeUpdateTargetGroupAuditProfile, + "create_attribute_set": WorkRequestSummaryOperationTypeCreateAttributeSet, + "update_attribute_set": WorkRequestSummaryOperationTypeUpdateAttributeSet, + "delete_attribute_set": WorkRequestSummaryOperationTypeDeleteAttributeSet, + "change_attribute_set_compartment": WorkRequestSummaryOperationTypeChangeAttributeSetCompartment, } // GetWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for WorkRequestSummaryOperationTypeEnum @@ -579,6 +699,9 @@ func GetWorkRequestSummaryOperationTypeEnumStringValues() []string { "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", + "PATCH_CHECKS", + "UPDATE_FINDING_SEVERITY", + "APPLY_TEMPLATE", "DELETE_SQL_FIREWALL_ALLOWED_SQL", "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL", "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL", @@ -602,6 +725,8 @@ func GetWorkRequestSummaryOperationTypeEnumStringValues() []string { "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", + "CREATE_SECURITY_POLICY", + "DELETE_SECURITY_POLICY", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", @@ -624,6 +749,28 @@ func GetWorkRequestSummaryOperationTypeEnumStringValues() []string { "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", + "CREATE_TARGET_DATABASE_GROUP", + "UPDATE_TARGET_DATABASE_GROUP", + "DELETE_TARGET_DATABASE_GROUP", + "CHANGE_TARGET_DATABASE_GROUP_COMPARTMENT", + "CREATE_SECURITY_POLICY_CONFIG", + "UPDATE_SECURITY_POLICY_CONFIG", + "DELETE_SECURITY_POLICY_CONFIG", + "CHANGE_SECURITY_POLICY_CONFIG_COMPARTMENT", + "CREATE_UNIFIED_AUDIT_POLICY", + "UPDATE_UNIFIED_AUDIT_POLICY", + "DELETE_UNIFIED_AUDIT_POLICY", + "CHANGE_UNIFIED_AUDIT_POLICY_COMPARTMENT", + "UPDATE_UNIFIED_AUDIT_POLICY_DEFINITION", + "DELETE_UNIFIED_AUDIT_POLICY_DEFINITION", + "CHANGE_UNIFIED_AUDIT_POLICY_DEFINITION_COMPARTMENT", + "FLEET_GENERATE_SECURITY_ASSESSMENT_REPORT", + "FLEET_GENERATE_USER_ASSESSMENT_REPORT", + "REFRESH_TARGET_DATABASE_GROUP_WITH_CHANGES", + "FETCH_AUDIT_POLICY_DETAILS", + "BULK_CREATE_UNIFIED_AUDIT_POLICY", + "SECURITY_POLICY_DEPLOYMENT_ACTIONS", + "PROVISION_SECURITY_POLICY_DEPLOYMENT", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", @@ -657,11 +804,19 @@ func GetWorkRequestSummaryOperationTypeEnumStringValues() []string { "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", + "DELETE_MASKING_REPORT", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "CREATE_SENSITIVE_TYPES_EXPORT", "UPDATE_SENSITIVE_TYPES_EXPORT", "BULK_CREATE_SENSITIVE_TYPES", + "CREATE_SENSITIVE_TYPE_GROUP", + "UPDATE_SENSITIVE_TYPE_GROUP", + "DELETE_SENSITIVE_TYPE_GROUP", + "DELETE_SENSITIVE_TYPE", + "PATCH_GROUPED_SENSITIVE_TYPES", + "CREATE_RELATION", + "DELETE_RELATION", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", @@ -677,6 +832,11 @@ func GetWorkRequestSummaryOperationTypeEnumStringValues() []string { "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT", + "UPDATE_TARGET_GROUP_AUDIT_PROFILE", + "CREATE_ATTRIBUTE_SET", + "UPDATE_ATTRIBUTE_SET", + "DELETE_ATTRIBUTE_SET", + "CHANGE_ATTRIBUTE_SET_COMPARTMENT", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_job_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_job_details.go index 9eb6816f5db..b0a9aa6052c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_job_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_job_details.go @@ -25,16 +25,16 @@ type CreateJobDetails struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the job. CompartmentId *string `mandatory:"true" json:"compartmentId"` - JobConfigurationDetails JobConfigurationDetails `mandatory:"true" json:"jobConfigurationDetails"` - - JobInfrastructureConfigurationDetails JobInfrastructureConfigurationDetails `mandatory:"true" json:"jobInfrastructureConfigurationDetails"` - // A user-friendly display name for the resource. DisplayName *string `mandatory:"false" json:"displayName"` // A short description of the job. Description *string `mandatory:"false" json:"description"` + JobConfigurationDetails JobConfigurationDetails `mandatory:"false" json:"jobConfigurationDetails"` + + JobInfrastructureConfigurationDetails JobInfrastructureConfigurationDetails `mandatory:"false" json:"jobInfrastructureConfigurationDetails"` + JobEnvironmentConfigurationDetails JobEnvironmentConfigurationDetails `mandatory:"false" json:"jobEnvironmentConfigurationDetails"` JobLogConfigurationDetails *JobLogConfigurationDetails `mandatory:"false" json:"jobLogConfigurationDetails"` @@ -42,6 +42,8 @@ type CreateJobDetails struct { // Collection of JobStorageMountConfigurationDetails. JobStorageMountConfigurationDetailsList []StorageMountConfigurationDetails `mandatory:"false" json:"jobStorageMountConfigurationDetailsList"` + JobNodeConfigurationDetails JobNodeConfigurationDetails `mandatory:"false" json:"jobNodeConfigurationDetails"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -72,15 +74,16 @@ func (m *CreateJobDetails) UnmarshalJSON(data []byte) (e error) { model := struct { DisplayName *string `json:"displayName"` Description *string `json:"description"` + JobConfigurationDetails jobconfigurationdetails `json:"jobConfigurationDetails"` + JobInfrastructureConfigurationDetails jobinfrastructureconfigurationdetails `json:"jobInfrastructureConfigurationDetails"` JobEnvironmentConfigurationDetails jobenvironmentconfigurationdetails `json:"jobEnvironmentConfigurationDetails"` JobLogConfigurationDetails *JobLogConfigurationDetails `json:"jobLogConfigurationDetails"` JobStorageMountConfigurationDetailsList []storagemountconfigurationdetails `json:"jobStorageMountConfigurationDetailsList"` + JobNodeConfigurationDetails jobnodeconfigurationdetails `json:"jobNodeConfigurationDetails"` FreeformTags map[string]string `json:"freeformTags"` DefinedTags map[string]map[string]interface{} `json:"definedTags"` ProjectId *string `json:"projectId"` CompartmentId *string `json:"compartmentId"` - JobConfigurationDetails jobconfigurationdetails `json:"jobConfigurationDetails"` - JobInfrastructureConfigurationDetails jobinfrastructureconfigurationdetails `json:"jobInfrastructureConfigurationDetails"` }{} e = json.Unmarshal(data, &model) @@ -92,6 +95,26 @@ func (m *CreateJobDetails) UnmarshalJSON(data []byte) (e error) { m.Description = model.Description + nn, e = model.JobConfigurationDetails.UnmarshalPolymorphicJSON(model.JobConfigurationDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.JobConfigurationDetails = nn.(JobConfigurationDetails) + } else { + m.JobConfigurationDetails = nil + } + + nn, e = model.JobInfrastructureConfigurationDetails.UnmarshalPolymorphicJSON(model.JobInfrastructureConfigurationDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.JobInfrastructureConfigurationDetails = nn.(JobInfrastructureConfigurationDetails) + } else { + m.JobInfrastructureConfigurationDetails = nil + } + nn, e = model.JobEnvironmentConfigurationDetails.UnmarshalPolymorphicJSON(model.JobEnvironmentConfigurationDetails.JsonData) if e != nil { return @@ -116,33 +139,23 @@ func (m *CreateJobDetails) UnmarshalJSON(data []byte) (e error) { m.JobStorageMountConfigurationDetailsList[i] = nil } } - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.ProjectId = model.ProjectId - - m.CompartmentId = model.CompartmentId - - nn, e = model.JobConfigurationDetails.UnmarshalPolymorphicJSON(model.JobConfigurationDetails.JsonData) + nn, e = model.JobNodeConfigurationDetails.UnmarshalPolymorphicJSON(model.JobNodeConfigurationDetails.JsonData) if e != nil { return } if nn != nil { - m.JobConfigurationDetails = nn.(JobConfigurationDetails) + m.JobNodeConfigurationDetails = nn.(JobNodeConfigurationDetails) } else { - m.JobConfigurationDetails = nil + m.JobNodeConfigurationDetails = nil } - nn, e = model.JobInfrastructureConfigurationDetails.UnmarshalPolymorphicJSON(model.JobInfrastructureConfigurationDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.JobInfrastructureConfigurationDetails = nn.(JobInfrastructureConfigurationDetails) - } else { - m.JobInfrastructureConfigurationDetails = nil - } + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.ProjectId = model.ProjectId + + m.CompartmentId = model.CompartmentId return } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_job_run_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_job_run_details.go index 7f49a15543c..b6196e650bc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_job_run_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_job_run_details.go @@ -37,6 +37,10 @@ type CreateJobRunDetails struct { JobEnvironmentConfigurationOverrideDetails JobEnvironmentConfigurationDetails `mandatory:"false" json:"jobEnvironmentConfigurationOverrideDetails"` + JobInfrastructureConfigurationOverrideDetails JobInfrastructureConfigurationDetails `mandatory:"false" json:"jobInfrastructureConfigurationOverrideDetails"` + + JobNodeConfigurationOverrideDetails JobNodeConfigurationDetails `mandatory:"false" json:"jobNodeConfigurationOverrideDetails"` + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -65,15 +69,17 @@ func (m CreateJobRunDetails) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *CreateJobRunDetails) UnmarshalJSON(data []byte) (e error) { model := struct { - DisplayName *string `json:"displayName"` - JobConfigurationOverrideDetails jobconfigurationdetails `json:"jobConfigurationOverrideDetails"` - JobLogConfigurationOverrideDetails *JobLogConfigurationDetails `json:"jobLogConfigurationOverrideDetails"` - JobEnvironmentConfigurationOverrideDetails jobenvironmentconfigurationdetails `json:"jobEnvironmentConfigurationOverrideDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - ProjectId *string `json:"projectId"` - CompartmentId *string `json:"compartmentId"` - JobId *string `json:"jobId"` + DisplayName *string `json:"displayName"` + JobConfigurationOverrideDetails jobconfigurationdetails `json:"jobConfigurationOverrideDetails"` + JobLogConfigurationOverrideDetails *JobLogConfigurationDetails `json:"jobLogConfigurationOverrideDetails"` + JobEnvironmentConfigurationOverrideDetails jobenvironmentconfigurationdetails `json:"jobEnvironmentConfigurationOverrideDetails"` + JobInfrastructureConfigurationOverrideDetails jobinfrastructureconfigurationdetails `json:"jobInfrastructureConfigurationOverrideDetails"` + JobNodeConfigurationOverrideDetails jobnodeconfigurationdetails `json:"jobNodeConfigurationOverrideDetails"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + ProjectId *string `json:"projectId"` + CompartmentId *string `json:"compartmentId"` + JobId *string `json:"jobId"` }{} e = json.Unmarshal(data, &model) @@ -105,6 +111,26 @@ func (m *CreateJobRunDetails) UnmarshalJSON(data []byte) (e error) { m.JobEnvironmentConfigurationOverrideDetails = nil } + nn, e = model.JobInfrastructureConfigurationOverrideDetails.UnmarshalPolymorphicJSON(model.JobInfrastructureConfigurationOverrideDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.JobInfrastructureConfigurationOverrideDetails = nn.(JobInfrastructureConfigurationDetails) + } else { + m.JobInfrastructureConfigurationOverrideDetails = nil + } + + nn, e = model.JobNodeConfigurationOverrideDetails.UnmarshalPolymorphicJSON(model.JobNodeConfigurationOverrideDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.JobNodeConfigurationOverrideDetails = nn.(JobNodeConfigurationDetails) + } else { + m.JobNodeConfigurationOverrideDetails = nil + } + m.FreeformTags = model.FreeformTags m.DefinedTags = model.DefinedTags diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_pipeline_run_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_pipeline_run_details.go index 5ccadd6660e..55f38b09ac8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_pipeline_run_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/create_pipeline_run_details.go @@ -35,6 +35,8 @@ type CreatePipelineRunDetails struct { LogConfigurationOverrideDetails *PipelineLogConfigurationDetails `mandatory:"false" json:"logConfigurationOverrideDetails"` + InfrastructureConfigurationOverrideDetails *PipelineInfrastructureConfigurationDetails `mandatory:"false" json:"infrastructureConfigurationOverrideDetails"` + // Array of step override details. Only Step Configuration is allowed to be overridden. StepOverrideDetails []PipelineStepOverrideDetails `mandatory:"false" json:"stepOverrideDetails"` @@ -70,16 +72,17 @@ func (m CreatePipelineRunDetails) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *CreatePipelineRunDetails) UnmarshalJSON(data []byte) (e error) { model := struct { - ProjectId *string `json:"projectId"` - DisplayName *string `json:"displayName"` - ConfigurationOverrideDetails pipelineconfigurationdetails `json:"configurationOverrideDetails"` - LogConfigurationOverrideDetails *PipelineLogConfigurationDetails `json:"logConfigurationOverrideDetails"` - StepOverrideDetails []PipelineStepOverrideDetails `json:"stepOverrideDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - CompartmentId *string `json:"compartmentId"` - PipelineId *string `json:"pipelineId"` + ProjectId *string `json:"projectId"` + DisplayName *string `json:"displayName"` + ConfigurationOverrideDetails pipelineconfigurationdetails `json:"configurationOverrideDetails"` + LogConfigurationOverrideDetails *PipelineLogConfigurationDetails `json:"logConfigurationOverrideDetails"` + InfrastructureConfigurationOverrideDetails *PipelineInfrastructureConfigurationDetails `json:"infrastructureConfigurationOverrideDetails"` + StepOverrideDetails []PipelineStepOverrideDetails `json:"stepOverrideDetails"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + CompartmentId *string `json:"compartmentId"` + PipelineId *string `json:"pipelineId"` }{} e = json.Unmarshal(data, &model) @@ -103,6 +106,8 @@ func (m *CreatePipelineRunDetails) UnmarshalJSON(data []byte) (e error) { m.LogConfigurationOverrideDetails = model.LogConfigurationOverrideDetails + m.InfrastructureConfigurationOverrideDetails = model.InfrastructureConfigurationOverrideDetails + m.StepOverrideDetails = make([]PipelineStepOverrideDetails, len(model.StepOverrideDetails)) copy(m.StepOverrideDetails, model.StepOverrideDetails) m.FreeformTags = model.FreeformTags diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/default_job_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/default_job_configuration_details.go index f592fd46979..b7d7da09a20 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/default_job_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/default_job_configuration_details.go @@ -27,6 +27,8 @@ type DefaultJobConfigurationDetails struct { // A time bound for the execution of the job. Timer starts when the job becomes active. MaximumRuntimeInMinutes *int64 `mandatory:"false" json:"maximumRuntimeInMinutes"` + + StartupProbeDetails JobProbeDetails `mandatory:"false" json:"startupProbeDetails"` } func (m DefaultJobConfigurationDetails) String() string { @@ -58,3 +60,36 @@ func (m DefaultJobConfigurationDetails) MarshalJSON() (buff []byte, e error) { return json.Marshal(&s) } + +// UnmarshalJSON unmarshals from json +func (m *DefaultJobConfigurationDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + EnvironmentVariables map[string]string `json:"environmentVariables"` + CommandLineArguments *string `json:"commandLineArguments"` + MaximumRuntimeInMinutes *int64 `json:"maximumRuntimeInMinutes"` + StartupProbeDetails jobprobedetails `json:"startupProbeDetails"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.EnvironmentVariables = model.EnvironmentVariables + + m.CommandLineArguments = model.CommandLineArguments + + m.MaximumRuntimeInMinutes = model.MaximumRuntimeInMinutes + + nn, e = model.StartupProbeDetails.UnmarshalPolymorphicJSON(model.StartupProbeDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.StartupProbeDetails = nn.(JobProbeDetails) + } else { + m.StartupProbeDetails = nil + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/empty_job_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/empty_job_configuration_details.go new file mode 100644 index 00000000000..579c4f17849 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/empty_job_configuration_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EmptyJobConfigurationDetails The empty job configuration. +type EmptyJobConfigurationDetails struct { +} + +func (m EmptyJobConfigurationDetails) 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 EmptyJobConfigurationDetails) 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 EmptyJobConfigurationDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeEmptyJobConfigurationDetails EmptyJobConfigurationDetails + s := struct { + DiscriminatorParam string `json:"jobType"` + MarshalTypeEmptyJobConfigurationDetails + }{ + "EMPTY", + (MarshalTypeEmptyJobConfigurationDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/empty_job_infrastructure_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/empty_job_infrastructure_configuration_details.go new file mode 100644 index 00000000000..413b237105d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/empty_job_infrastructure_configuration_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EmptyJobInfrastructureConfigurationDetails The Empty job infrastructure configuration. +type EmptyJobInfrastructureConfigurationDetails struct { +} + +func (m EmptyJobInfrastructureConfigurationDetails) 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 EmptyJobInfrastructureConfigurationDetails) 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 EmptyJobInfrastructureConfigurationDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeEmptyJobInfrastructureConfigurationDetails EmptyJobInfrastructureConfigurationDetails + s := struct { + DiscriminatorParam string `json:"jobInfrastructureType"` + MarshalTypeEmptyJobInfrastructureConfigurationDetails + }{ + "EMPTY", + (MarshalTypeEmptyJobInfrastructureConfigurationDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job.go index c03a4aa765a..d46eccbf1e4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job.go @@ -55,6 +55,8 @@ type Job struct { // Collection of JobStorageMountConfigurationDetails. JobStorageMountConfigurationDetailsList []StorageMountConfigurationDetails `mandatory:"false" json:"jobStorageMountConfigurationDetailsList"` + JobNodeConfigurationDetails JobNodeConfigurationDetails `mandatory:"false" json:"jobNodeConfigurationDetails"` + // The state of the job. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` @@ -94,6 +96,7 @@ func (m *Job) UnmarshalJSON(data []byte) (e error) { JobEnvironmentConfigurationDetails jobenvironmentconfigurationdetails `json:"jobEnvironmentConfigurationDetails"` JobLogConfigurationDetails *JobLogConfigurationDetails `json:"jobLogConfigurationDetails"` JobStorageMountConfigurationDetailsList []storagemountconfigurationdetails `json:"jobStorageMountConfigurationDetailsList"` + JobNodeConfigurationDetails jobnodeconfigurationdetails `json:"jobNodeConfigurationDetails"` LifecycleDetails *string `json:"lifecycleDetails"` FreeformTags map[string]string `json:"freeformTags"` DefinedTags map[string]map[string]interface{} `json:"definedTags"` @@ -140,6 +143,16 @@ func (m *Job) UnmarshalJSON(data []byte) (e error) { m.JobStorageMountConfigurationDetailsList[i] = nil } } + nn, e = model.JobNodeConfigurationDetails.UnmarshalPolymorphicJSON(model.JobNodeConfigurationDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.JobNodeConfigurationDetails = nn.(JobNodeConfigurationDetails) + } else { + m.JobNodeConfigurationDetails = nil + } + m.LifecycleDetails = model.LifecycleDetails m.FreeformTags = model.FreeformTags diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_configuration_details.go index 96989d61499..355e14c11f0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_configuration_details.go @@ -50,6 +50,10 @@ func (m *jobconfigurationdetails) UnmarshalPolymorphicJSON(data []byte) (interfa var err error switch m.JobType { + case "EMPTY": + mm := EmptyJobConfigurationDetails{} + err = json.Unmarshal(data, &mm) + return mm, err case "DEFAULT": mm := DefaultJobConfigurationDetails{} err = json.Unmarshal(data, &mm) @@ -82,14 +86,17 @@ type JobConfigurationDetailsJobTypeEnum string // Set of constants representing the allowable values for JobConfigurationDetailsJobTypeEnum const ( JobConfigurationDetailsJobTypeDefault JobConfigurationDetailsJobTypeEnum = "DEFAULT" + JobConfigurationDetailsJobTypeEmpty JobConfigurationDetailsJobTypeEnum = "EMPTY" ) var mappingJobConfigurationDetailsJobTypeEnum = map[string]JobConfigurationDetailsJobTypeEnum{ "DEFAULT": JobConfigurationDetailsJobTypeDefault, + "EMPTY": JobConfigurationDetailsJobTypeEmpty, } var mappingJobConfigurationDetailsJobTypeEnumLowerCase = map[string]JobConfigurationDetailsJobTypeEnum{ "default": JobConfigurationDetailsJobTypeDefault, + "empty": JobConfigurationDetailsJobTypeEmpty, } // GetJobConfigurationDetailsJobTypeEnumValues Enumerates the set of values for JobConfigurationDetailsJobTypeEnum @@ -105,6 +112,7 @@ func GetJobConfigurationDetailsJobTypeEnumValues() []JobConfigurationDetailsJobT func GetJobConfigurationDetailsJobTypeEnumStringValues() []string { return []string{ "DEFAULT", + "EMPTY", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_custom_network_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_custom_network_configuration.go new file mode 100644 index 00000000000..b38c2b23c54 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_custom_network_configuration.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// JobCustomNetworkConfiguration The job custom network configuration details +type JobCustomNetworkConfiguration struct { + + // The custom subnet id + SubnetId *string `mandatory:"true" json:"subnetId"` +} + +func (m JobCustomNetworkConfiguration) 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 JobCustomNetworkConfiguration) 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 JobCustomNetworkConfiguration) MarshalJSON() (buff []byte, e error) { + type MarshalTypeJobCustomNetworkConfiguration JobCustomNetworkConfiguration + s := struct { + DiscriminatorParam string `json:"jobNetworkType"` + MarshalTypeJobCustomNetworkConfiguration + }{ + "CUSTOM_NETWORK", + (MarshalTypeJobCustomNetworkConfiguration)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_default_network_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_default_network_configuration.go new file mode 100644 index 00000000000..bc6d07978cd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_default_network_configuration.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// JobDefaultNetworkConfiguration The job default network configuration details +type JobDefaultNetworkConfiguration struct { +} + +func (m JobDefaultNetworkConfiguration) 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 JobDefaultNetworkConfiguration) 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 JobDefaultNetworkConfiguration) MarshalJSON() (buff []byte, e error) { + type MarshalTypeJobDefaultNetworkConfiguration JobDefaultNetworkConfiguration + s := struct { + DiscriminatorParam string `json:"jobNetworkType"` + MarshalTypeJobDefaultNetworkConfiguration + }{ + "DEFAULT_NETWORK", + (MarshalTypeJobDefaultNetworkConfiguration)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_exec_probe_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_exec_probe_details.go new file mode 100644 index 00000000000..a275fec9436 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_exec_probe_details.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// JobExecProbeDetails Runs a command in the job run to check whether application is healthy or not. +type JobExecProbeDetails struct { + + // The commands to run in the target job run to perform the startup probe + Command []string `mandatory:"true" json:"command"` + + // Number of seconds how often the job run should perform a startup probe + PeriodInSeconds *int `mandatory:"false" json:"periodInSeconds"` + + // How many times the job will try before giving up when a probe fails. + FailureThreshold *int `mandatory:"false" json:"failureThreshold"` + + // Number of seconds after the job run has started before a startup probe is initiated. + InitialDelayInSeconds *int `mandatory:"false" json:"initialDelayInSeconds"` +} + +func (m JobExecProbeDetails) 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 JobExecProbeDetails) 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 JobExecProbeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeJobExecProbeDetails JobExecProbeDetails + s := struct { + DiscriminatorParam string `json:"jobProbeCheckType"` + MarshalTypeJobExecProbeDetails + }{ + "EXEC", + (MarshalTypeJobExecProbeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_infrastructure_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_infrastructure_configuration_details.go index ca5d44b5844..9a9fa34e33c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_infrastructure_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_infrastructure_configuration_details.go @@ -50,6 +50,14 @@ func (m *jobinfrastructureconfigurationdetails) UnmarshalPolymorphicJSON(data [] var err error switch m.JobInfrastructureType { + case "MULTI_NODE": + mm := MultiNodeJobInfrastructureConfigurationDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "EMPTY": + mm := EmptyJobInfrastructureConfigurationDetails{} + err = json.Unmarshal(data, &mm) + return mm, err case "ME_STANDALONE": mm := ManagedEgressStandaloneJobInfrastructureConfigurationDetails{} err = json.Unmarshal(data, &mm) @@ -87,16 +95,22 @@ type JobInfrastructureConfigurationDetailsJobInfrastructureTypeEnum string const ( JobInfrastructureConfigurationDetailsJobInfrastructureTypeStandalone JobInfrastructureConfigurationDetailsJobInfrastructureTypeEnum = "STANDALONE" JobInfrastructureConfigurationDetailsJobInfrastructureTypeMeStandalone JobInfrastructureConfigurationDetailsJobInfrastructureTypeEnum = "ME_STANDALONE" + JobInfrastructureConfigurationDetailsJobInfrastructureTypeMultiNode JobInfrastructureConfigurationDetailsJobInfrastructureTypeEnum = "MULTI_NODE" + JobInfrastructureConfigurationDetailsJobInfrastructureTypeEmpty JobInfrastructureConfigurationDetailsJobInfrastructureTypeEnum = "EMPTY" ) var mappingJobInfrastructureConfigurationDetailsJobInfrastructureTypeEnum = map[string]JobInfrastructureConfigurationDetailsJobInfrastructureTypeEnum{ "STANDALONE": JobInfrastructureConfigurationDetailsJobInfrastructureTypeStandalone, "ME_STANDALONE": JobInfrastructureConfigurationDetailsJobInfrastructureTypeMeStandalone, + "MULTI_NODE": JobInfrastructureConfigurationDetailsJobInfrastructureTypeMultiNode, + "EMPTY": JobInfrastructureConfigurationDetailsJobInfrastructureTypeEmpty, } var mappingJobInfrastructureConfigurationDetailsJobInfrastructureTypeEnumLowerCase = map[string]JobInfrastructureConfigurationDetailsJobInfrastructureTypeEnum{ "standalone": JobInfrastructureConfigurationDetailsJobInfrastructureTypeStandalone, "me_standalone": JobInfrastructureConfigurationDetailsJobInfrastructureTypeMeStandalone, + "multi_node": JobInfrastructureConfigurationDetailsJobInfrastructureTypeMultiNode, + "empty": JobInfrastructureConfigurationDetailsJobInfrastructureTypeEmpty, } // GetJobInfrastructureConfigurationDetailsJobInfrastructureTypeEnumValues Enumerates the set of values for JobInfrastructureConfigurationDetailsJobInfrastructureTypeEnum @@ -113,6 +127,8 @@ func GetJobInfrastructureConfigurationDetailsJobInfrastructureTypeEnumStringValu return []string{ "STANDALONE", "ME_STANDALONE", + "MULTI_NODE", + "EMPTY", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_network_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_network_configuration.go new file mode 100644 index 00000000000..939bbf86a86 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_network_configuration.go @@ -0,0 +1,123 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// JobNetworkConfiguration The job network configuration details +type JobNetworkConfiguration interface { +} + +type jobnetworkconfiguration struct { + JsonData []byte + JobNetworkType string `json:"jobNetworkType"` +} + +// UnmarshalJSON unmarshals json +func (m *jobnetworkconfiguration) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerjobnetworkconfiguration jobnetworkconfiguration + s := struct { + Model Unmarshalerjobnetworkconfiguration + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.JobNetworkType = s.Model.JobNetworkType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *jobnetworkconfiguration) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.JobNetworkType { + case "CUSTOM_NETWORK": + mm := JobCustomNetworkConfiguration{} + err = json.Unmarshal(data, &mm) + return mm, err + case "DEFAULT_NETWORK": + mm := JobDefaultNetworkConfiguration{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for JobNetworkConfiguration: %s.", m.JobNetworkType) + return *m, nil + } +} + +func (m jobnetworkconfiguration) 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 jobnetworkconfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// JobNetworkConfigurationJobNetworkTypeEnum Enum with underlying type: string +type JobNetworkConfigurationJobNetworkTypeEnum string + +// Set of constants representing the allowable values for JobNetworkConfigurationJobNetworkTypeEnum +const ( + JobNetworkConfigurationJobNetworkTypeCustomNetwork JobNetworkConfigurationJobNetworkTypeEnum = "CUSTOM_NETWORK" + JobNetworkConfigurationJobNetworkTypeDefaultNetwork JobNetworkConfigurationJobNetworkTypeEnum = "DEFAULT_NETWORK" +) + +var mappingJobNetworkConfigurationJobNetworkTypeEnum = map[string]JobNetworkConfigurationJobNetworkTypeEnum{ + "CUSTOM_NETWORK": JobNetworkConfigurationJobNetworkTypeCustomNetwork, + "DEFAULT_NETWORK": JobNetworkConfigurationJobNetworkTypeDefaultNetwork, +} + +var mappingJobNetworkConfigurationJobNetworkTypeEnumLowerCase = map[string]JobNetworkConfigurationJobNetworkTypeEnum{ + "custom_network": JobNetworkConfigurationJobNetworkTypeCustomNetwork, + "default_network": JobNetworkConfigurationJobNetworkTypeDefaultNetwork, +} + +// GetJobNetworkConfigurationJobNetworkTypeEnumValues Enumerates the set of values for JobNetworkConfigurationJobNetworkTypeEnum +func GetJobNetworkConfigurationJobNetworkTypeEnumValues() []JobNetworkConfigurationJobNetworkTypeEnum { + values := make([]JobNetworkConfigurationJobNetworkTypeEnum, 0) + for _, v := range mappingJobNetworkConfigurationJobNetworkTypeEnum { + values = append(values, v) + } + return values +} + +// GetJobNetworkConfigurationJobNetworkTypeEnumStringValues Enumerates the set of values in String for JobNetworkConfigurationJobNetworkTypeEnum +func GetJobNetworkConfigurationJobNetworkTypeEnumStringValues() []string { + return []string{ + "CUSTOM_NETWORK", + "DEFAULT_NETWORK", + } +} + +// GetMappingJobNetworkConfigurationJobNetworkTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingJobNetworkConfigurationJobNetworkTypeEnum(val string) (JobNetworkConfigurationJobNetworkTypeEnum, bool) { + enum, ok := mappingJobNetworkConfigurationJobNetworkTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_node_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_node_configuration_details.go new file mode 100644 index 00000000000..f949327caaf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_node_configuration_details.go @@ -0,0 +1,115 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// JobNodeConfigurationDetails The job node configuration details +type JobNodeConfigurationDetails interface { +} + +type jobnodeconfigurationdetails struct { + JsonData []byte + JobNodeType string `json:"jobNodeType"` +} + +// UnmarshalJSON unmarshals json +func (m *jobnodeconfigurationdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerjobnodeconfigurationdetails jobnodeconfigurationdetails + s := struct { + Model Unmarshalerjobnodeconfigurationdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.JobNodeType = s.Model.JobNodeType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *jobnodeconfigurationdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.JobNodeType { + case "MULTI_NODE": + mm := MultiNodeJobNodeConfigurationDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for JobNodeConfigurationDetails: %s.", m.JobNodeType) + return *m, nil + } +} + +func (m jobnodeconfigurationdetails) 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 jobnodeconfigurationdetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// JobNodeConfigurationDetailsJobNodeTypeEnum Enum with underlying type: string +type JobNodeConfigurationDetailsJobNodeTypeEnum string + +// Set of constants representing the allowable values for JobNodeConfigurationDetailsJobNodeTypeEnum +const ( + JobNodeConfigurationDetailsJobNodeTypeMultiNode JobNodeConfigurationDetailsJobNodeTypeEnum = "MULTI_NODE" +) + +var mappingJobNodeConfigurationDetailsJobNodeTypeEnum = map[string]JobNodeConfigurationDetailsJobNodeTypeEnum{ + "MULTI_NODE": JobNodeConfigurationDetailsJobNodeTypeMultiNode, +} + +var mappingJobNodeConfigurationDetailsJobNodeTypeEnumLowerCase = map[string]JobNodeConfigurationDetailsJobNodeTypeEnum{ + "multi_node": JobNodeConfigurationDetailsJobNodeTypeMultiNode, +} + +// GetJobNodeConfigurationDetailsJobNodeTypeEnumValues Enumerates the set of values for JobNodeConfigurationDetailsJobNodeTypeEnum +func GetJobNodeConfigurationDetailsJobNodeTypeEnumValues() []JobNodeConfigurationDetailsJobNodeTypeEnum { + values := make([]JobNodeConfigurationDetailsJobNodeTypeEnum, 0) + for _, v := range mappingJobNodeConfigurationDetailsJobNodeTypeEnum { + values = append(values, v) + } + return values +} + +// GetJobNodeConfigurationDetailsJobNodeTypeEnumStringValues Enumerates the set of values in String for JobNodeConfigurationDetailsJobNodeTypeEnum +func GetJobNodeConfigurationDetailsJobNodeTypeEnumStringValues() []string { + return []string{ + "MULTI_NODE", + } +} + +// GetMappingJobNodeConfigurationDetailsJobNodeTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingJobNodeConfigurationDetailsJobNodeTypeEnum(val string) (JobNodeConfigurationDetailsJobNodeTypeEnum, bool) { + enum, ok := mappingJobNodeConfigurationDetailsJobNodeTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_node_group_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_node_group_configuration_details.go new file mode 100644 index 00000000000..b37cbf010fd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_node_group_configuration_details.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// JobNodeGroupConfigurationDetails Details of Job Node Group Configuration +type JobNodeGroupConfigurationDetails struct { + + // node group name. + Name *string `mandatory:"true" json:"name"` + + // The number of nodes. + Replicas *int `mandatory:"false" json:"replicas"` + + // The minimum threshold of successful replicas for node group to be successful. All replicas need to succeed if this is not specified. + MinimumSuccessReplicas *int `mandatory:"false" json:"minimumSuccessReplicas"` + + JobInfrastructureConfigurationDetails JobInfrastructureConfigurationDetails `mandatory:"false" json:"jobInfrastructureConfigurationDetails"` + + JobConfigurationDetails JobConfigurationDetails `mandatory:"false" json:"jobConfigurationDetails"` + + JobEnvironmentConfigurationDetails JobEnvironmentConfigurationDetails `mandatory:"false" json:"jobEnvironmentConfigurationDetails"` +} + +func (m JobNodeGroupConfigurationDetails) 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 JobNodeGroupConfigurationDetails) 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 *JobNodeGroupConfigurationDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + Replicas *int `json:"replicas"` + MinimumSuccessReplicas *int `json:"minimumSuccessReplicas"` + JobInfrastructureConfigurationDetails jobinfrastructureconfigurationdetails `json:"jobInfrastructureConfigurationDetails"` + JobConfigurationDetails jobconfigurationdetails `json:"jobConfigurationDetails"` + JobEnvironmentConfigurationDetails jobenvironmentconfigurationdetails `json:"jobEnvironmentConfigurationDetails"` + Name *string `json:"name"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Replicas = model.Replicas + + m.MinimumSuccessReplicas = model.MinimumSuccessReplicas + + nn, e = model.JobInfrastructureConfigurationDetails.UnmarshalPolymorphicJSON(model.JobInfrastructureConfigurationDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.JobInfrastructureConfigurationDetails = nn.(JobInfrastructureConfigurationDetails) + } else { + m.JobInfrastructureConfigurationDetails = nil + } + + nn, e = model.JobConfigurationDetails.UnmarshalPolymorphicJSON(model.JobConfigurationDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.JobConfigurationDetails = nn.(JobConfigurationDetails) + } else { + m.JobConfigurationDetails = nil + } + + nn, e = model.JobEnvironmentConfigurationDetails.UnmarshalPolymorphicJSON(model.JobEnvironmentConfigurationDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.JobEnvironmentConfigurationDetails = nn.(JobEnvironmentConfigurationDetails) + } else { + m.JobEnvironmentConfigurationDetails = nil + } + + m.Name = model.Name + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_probe_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_probe_details.go new file mode 100644 index 00000000000..d0feb2b06a4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_probe_details.go @@ -0,0 +1,115 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// JobProbeDetails The probe indicates whether the application within the job run has started. +type JobProbeDetails interface { +} + +type jobprobedetails struct { + JsonData []byte + JobProbeCheckType string `json:"jobProbeCheckType"` +} + +// UnmarshalJSON unmarshals json +func (m *jobprobedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerjobprobedetails jobprobedetails + s := struct { + Model Unmarshalerjobprobedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.JobProbeCheckType = s.Model.JobProbeCheckType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *jobprobedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.JobProbeCheckType { + case "EXEC": + mm := JobExecProbeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Received unsupported enum value for JobProbeDetails: %s.", m.JobProbeCheckType) + return *m, nil + } +} + +func (m jobprobedetails) 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 jobprobedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// JobProbeDetailsJobProbeCheckTypeEnum Enum with underlying type: string +type JobProbeDetailsJobProbeCheckTypeEnum string + +// Set of constants representing the allowable values for JobProbeDetailsJobProbeCheckTypeEnum +const ( + JobProbeDetailsJobProbeCheckTypeExec JobProbeDetailsJobProbeCheckTypeEnum = "EXEC" +) + +var mappingJobProbeDetailsJobProbeCheckTypeEnum = map[string]JobProbeDetailsJobProbeCheckTypeEnum{ + "EXEC": JobProbeDetailsJobProbeCheckTypeExec, +} + +var mappingJobProbeDetailsJobProbeCheckTypeEnumLowerCase = map[string]JobProbeDetailsJobProbeCheckTypeEnum{ + "exec": JobProbeDetailsJobProbeCheckTypeExec, +} + +// GetJobProbeDetailsJobProbeCheckTypeEnumValues Enumerates the set of values for JobProbeDetailsJobProbeCheckTypeEnum +func GetJobProbeDetailsJobProbeCheckTypeEnumValues() []JobProbeDetailsJobProbeCheckTypeEnum { + values := make([]JobProbeDetailsJobProbeCheckTypeEnum, 0) + for _, v := range mappingJobProbeDetailsJobProbeCheckTypeEnum { + values = append(values, v) + } + return values +} + +// GetJobProbeDetailsJobProbeCheckTypeEnumStringValues Enumerates the set of values in String for JobProbeDetailsJobProbeCheckTypeEnum +func GetJobProbeDetailsJobProbeCheckTypeEnumStringValues() []string { + return []string{ + "EXEC", + } +} + +// GetMappingJobProbeDetailsJobProbeCheckTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingJobProbeDetailsJobProbeCheckTypeEnum(val string) (JobProbeDetailsJobProbeCheckTypeEnum, bool) { + enum, ok := mappingJobProbeDetailsJobProbeCheckTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_run.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_run.go index e8e07caaf6d..4ab91d30703 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_run.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/job_run.go @@ -62,6 +62,13 @@ type JobRun struct { LogDetails *JobRunLogDetails `mandatory:"false" json:"logDetails"` + JobInfrastructureConfigurationOverrideDetails JobInfrastructureConfigurationDetails `mandatory:"false" json:"jobInfrastructureConfigurationOverrideDetails"` + + JobNodeConfigurationOverrideDetails JobNodeConfigurationDetails `mandatory:"false" json:"jobNodeConfigurationOverrideDetails"` + + // Collection of NodeGroupDetails + NodeGroupDetailsList []NodeGroupDetails `mandatory:"false" json:"nodeGroupDetailsList"` + // Details of the state of the job run. LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` @@ -96,25 +103,28 @@ func (m JobRun) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *JobRun) UnmarshalJSON(data []byte) (e error) { model := struct { - TimeStarted *common.SDKTime `json:"timeStarted"` - TimeFinished *common.SDKTime `json:"timeFinished"` - DisplayName *string `json:"displayName"` - JobEnvironmentConfigurationOverrideDetails jobenvironmentconfigurationdetails `json:"jobEnvironmentConfigurationOverrideDetails"` - JobLogConfigurationOverrideDetails *JobLogConfigurationDetails `json:"jobLogConfigurationOverrideDetails"` - JobStorageMountConfigurationDetailsList []storagemountconfigurationdetails `json:"jobStorageMountConfigurationDetailsList"` - LogDetails *JobRunLogDetails `json:"logDetails"` - LifecycleDetails *string `json:"lifecycleDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - Id *string `json:"id"` - TimeAccepted *common.SDKTime `json:"timeAccepted"` - CreatedBy *string `json:"createdBy"` - ProjectId *string `json:"projectId"` - CompartmentId *string `json:"compartmentId"` - JobId *string `json:"jobId"` - JobConfigurationOverrideDetails jobconfigurationdetails `json:"jobConfigurationOverrideDetails"` - JobInfrastructureConfigurationDetails jobinfrastructureconfigurationdetails `json:"jobInfrastructureConfigurationDetails"` - LifecycleState JobRunLifecycleStateEnum `json:"lifecycleState"` + TimeStarted *common.SDKTime `json:"timeStarted"` + TimeFinished *common.SDKTime `json:"timeFinished"` + DisplayName *string `json:"displayName"` + JobEnvironmentConfigurationOverrideDetails jobenvironmentconfigurationdetails `json:"jobEnvironmentConfigurationOverrideDetails"` + JobLogConfigurationOverrideDetails *JobLogConfigurationDetails `json:"jobLogConfigurationOverrideDetails"` + JobStorageMountConfigurationDetailsList []storagemountconfigurationdetails `json:"jobStorageMountConfigurationDetailsList"` + LogDetails *JobRunLogDetails `json:"logDetails"` + JobInfrastructureConfigurationOverrideDetails jobinfrastructureconfigurationdetails `json:"jobInfrastructureConfigurationOverrideDetails"` + JobNodeConfigurationOverrideDetails jobnodeconfigurationdetails `json:"jobNodeConfigurationOverrideDetails"` + NodeGroupDetailsList []NodeGroupDetails `json:"nodeGroupDetailsList"` + LifecycleDetails *string `json:"lifecycleDetails"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + Id *string `json:"id"` + TimeAccepted *common.SDKTime `json:"timeAccepted"` + CreatedBy *string `json:"createdBy"` + ProjectId *string `json:"projectId"` + CompartmentId *string `json:"compartmentId"` + JobId *string `json:"jobId"` + JobConfigurationOverrideDetails jobconfigurationdetails `json:"jobConfigurationOverrideDetails"` + JobInfrastructureConfigurationDetails jobinfrastructureconfigurationdetails `json:"jobInfrastructureConfigurationDetails"` + LifecycleState JobRunLifecycleStateEnum `json:"lifecycleState"` }{} e = json.Unmarshal(data, &model) @@ -154,6 +164,28 @@ func (m *JobRun) UnmarshalJSON(data []byte) (e error) { } m.LogDetails = model.LogDetails + nn, e = model.JobInfrastructureConfigurationOverrideDetails.UnmarshalPolymorphicJSON(model.JobInfrastructureConfigurationOverrideDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.JobInfrastructureConfigurationOverrideDetails = nn.(JobInfrastructureConfigurationDetails) + } else { + m.JobInfrastructureConfigurationOverrideDetails = nil + } + + nn, e = model.JobNodeConfigurationOverrideDetails.UnmarshalPolymorphicJSON(model.JobNodeConfigurationOverrideDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.JobNodeConfigurationOverrideDetails = nn.(JobNodeConfigurationDetails) + } else { + m.JobNodeConfigurationOverrideDetails = nil + } + + m.NodeGroupDetailsList = make([]NodeGroupDetails, len(model.NodeGroupDetailsList)) + copy(m.NodeGroupDetailsList, model.NodeGroupDetailsList) m.LifecycleDetails = model.LifecycleDetails m.FreeformTags = model.FreeformTags diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/managed_egress_standalone_job_infrastructure_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/managed_egress_standalone_job_infrastructure_configuration_details.go index 5ab96d543af..f43c042280c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/managed_egress_standalone_job_infrastructure_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/managed_egress_standalone_job_infrastructure_configuration_details.go @@ -16,7 +16,7 @@ import ( "strings" ) -// ManagedEgressStandaloneJobInfrastructureConfigurationDetails The standalone job infrastructure configuration with network egress settings preconfigured. +// ManagedEgressStandaloneJobInfrastructureConfigurationDetails This type should only be used at the top level infrastructure configuration field for configuring single-node jobs. type ManagedEgressStandaloneJobInfrastructureConfigurationDetails struct { // The shape used to launch the job run instances. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/multi_node_job_infrastructure_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/multi_node_job_infrastructure_configuration_details.go new file mode 100644 index 00000000000..468a035c1dc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/multi_node_job_infrastructure_configuration_details.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MultiNodeJobInfrastructureConfigurationDetails This type should only be used for the infrastructure configuration within node group configuration details for configuring multi-node jobs. +type MultiNodeJobInfrastructureConfigurationDetails struct { + + // The name that corresponds to the JobShapeSummary to use for the job node + ShapeName *string `mandatory:"true" json:"shapeName"` + + // The size of the block storage volume to attach to the instance running the job + BlockStorageSizeInGBs *int `mandatory:"true" json:"blockStorageSizeInGBs"` + + JobShapeConfigDetails *JobShapeConfigDetails `mandatory:"false" json:"jobShapeConfigDetails"` +} + +func (m MultiNodeJobInfrastructureConfigurationDetails) 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 MultiNodeJobInfrastructureConfigurationDetails) 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 MultiNodeJobInfrastructureConfigurationDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeMultiNodeJobInfrastructureConfigurationDetails MultiNodeJobInfrastructureConfigurationDetails + s := struct { + DiscriminatorParam string `json:"jobInfrastructureType"` + MarshalTypeMultiNodeJobInfrastructureConfigurationDetails + }{ + "MULTI_NODE", + (MarshalTypeMultiNodeJobInfrastructureConfigurationDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/multi_node_job_node_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/multi_node_job_node_configuration_details.go new file mode 100644 index 00000000000..05b714e115f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/multi_node_job_node_configuration_details.go @@ -0,0 +1,140 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MultiNodeJobNodeConfigurationDetails MultiNodeJobNodeConfigurationDetails +type MultiNodeJobNodeConfigurationDetails struct { + + // A time bound for the execution of the job run. Timer starts when the job run is in progress. + MaximumRuntimeInMinutes *int64 `mandatory:"false" json:"maximumRuntimeInMinutes"` + + JobNetworkConfiguration JobNetworkConfiguration `mandatory:"false" json:"jobNetworkConfiguration"` + + // List of JobNodeGroupConfigurationDetails + JobNodeGroupConfigurationDetailsList []JobNodeGroupConfigurationDetails `mandatory:"false" json:"jobNodeGroupConfigurationDetailsList"` + + // The execution order of node groups + StartupOrder MultiNodeJobNodeConfigurationDetailsStartupOrderEnum `mandatory:"false" json:"startupOrder,omitempty"` +} + +func (m MultiNodeJobNodeConfigurationDetails) 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 MultiNodeJobNodeConfigurationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingMultiNodeJobNodeConfigurationDetailsStartupOrderEnum(string(m.StartupOrder)); !ok && m.StartupOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for StartupOrder: %s. Supported values are: %s.", m.StartupOrder, strings.Join(GetMultiNodeJobNodeConfigurationDetailsStartupOrderEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m MultiNodeJobNodeConfigurationDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeMultiNodeJobNodeConfigurationDetails MultiNodeJobNodeConfigurationDetails + s := struct { + DiscriminatorParam string `json:"jobNodeType"` + MarshalTypeMultiNodeJobNodeConfigurationDetails + }{ + "MULTI_NODE", + (MarshalTypeMultiNodeJobNodeConfigurationDetails)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *MultiNodeJobNodeConfigurationDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + StartupOrder MultiNodeJobNodeConfigurationDetailsStartupOrderEnum `json:"startupOrder"` + MaximumRuntimeInMinutes *int64 `json:"maximumRuntimeInMinutes"` + JobNetworkConfiguration jobnetworkconfiguration `json:"jobNetworkConfiguration"` + JobNodeGroupConfigurationDetailsList []JobNodeGroupConfigurationDetails `json:"jobNodeGroupConfigurationDetailsList"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.StartupOrder = model.StartupOrder + + m.MaximumRuntimeInMinutes = model.MaximumRuntimeInMinutes + + nn, e = model.JobNetworkConfiguration.UnmarshalPolymorphicJSON(model.JobNetworkConfiguration.JsonData) + if e != nil { + return + } + if nn != nil { + m.JobNetworkConfiguration = nn.(JobNetworkConfiguration) + } else { + m.JobNetworkConfiguration = nil + } + + m.JobNodeGroupConfigurationDetailsList = make([]JobNodeGroupConfigurationDetails, len(model.JobNodeGroupConfigurationDetailsList)) + copy(m.JobNodeGroupConfigurationDetailsList, model.JobNodeGroupConfigurationDetailsList) + return +} + +// MultiNodeJobNodeConfigurationDetailsStartupOrderEnum Enum with underlying type: string +type MultiNodeJobNodeConfigurationDetailsStartupOrderEnum string + +// Set of constants representing the allowable values for MultiNodeJobNodeConfigurationDetailsStartupOrderEnum +const ( + MultiNodeJobNodeConfigurationDetailsStartupOrderOrder MultiNodeJobNodeConfigurationDetailsStartupOrderEnum = "IN_ORDER" + MultiNodeJobNodeConfigurationDetailsStartupOrderParallel MultiNodeJobNodeConfigurationDetailsStartupOrderEnum = "IN_PARALLEL" +) + +var mappingMultiNodeJobNodeConfigurationDetailsStartupOrderEnum = map[string]MultiNodeJobNodeConfigurationDetailsStartupOrderEnum{ + "IN_ORDER": MultiNodeJobNodeConfigurationDetailsStartupOrderOrder, + "IN_PARALLEL": MultiNodeJobNodeConfigurationDetailsStartupOrderParallel, +} + +var mappingMultiNodeJobNodeConfigurationDetailsStartupOrderEnumLowerCase = map[string]MultiNodeJobNodeConfigurationDetailsStartupOrderEnum{ + "in_order": MultiNodeJobNodeConfigurationDetailsStartupOrderOrder, + "in_parallel": MultiNodeJobNodeConfigurationDetailsStartupOrderParallel, +} + +// GetMultiNodeJobNodeConfigurationDetailsStartupOrderEnumValues Enumerates the set of values for MultiNodeJobNodeConfigurationDetailsStartupOrderEnum +func GetMultiNodeJobNodeConfigurationDetailsStartupOrderEnumValues() []MultiNodeJobNodeConfigurationDetailsStartupOrderEnum { + values := make([]MultiNodeJobNodeConfigurationDetailsStartupOrderEnum, 0) + for _, v := range mappingMultiNodeJobNodeConfigurationDetailsStartupOrderEnum { + values = append(values, v) + } + return values +} + +// GetMultiNodeJobNodeConfigurationDetailsStartupOrderEnumStringValues Enumerates the set of values in String for MultiNodeJobNodeConfigurationDetailsStartupOrderEnum +func GetMultiNodeJobNodeConfigurationDetailsStartupOrderEnumStringValues() []string { + return []string{ + "IN_ORDER", + "IN_PARALLEL", + } +} + +// GetMappingMultiNodeJobNodeConfigurationDetailsStartupOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMultiNodeJobNodeConfigurationDetailsStartupOrderEnum(val string) (MultiNodeJobNodeConfigurationDetailsStartupOrderEnum, bool) { + enum, ok := mappingMultiNodeJobNodeConfigurationDetailsStartupOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/node_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/node_group_details.go new file mode 100644 index 00000000000..e3fd5723eb3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/node_group_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NodeGroupDetails Details of Node Group +type NodeGroupDetails struct { + + // node group name. + Name *string `mandatory:"true" json:"name"` + + // The state of the node group. + LifecycleState NodeGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The state details of the node group. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` +} + +func (m NodeGroupDetails) 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 NodeGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNodeGroupLifecycleStateEnum(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(GetNodeGroupLifecycleStateEnumStringValues(), ","))) + } + + 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/datascience/node_group_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/node_group_lifecycle_state.go new file mode 100644 index 00000000000..47d7c4deecf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/node_group_lifecycle_state.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2025, 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 Science API +// +// Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see Data Science (https://docs.oracle.com/iaas/data-science/using/data-science.htm). +// + +package datascience + +import ( + "strings" +) + +// NodeGroupLifecycleStateEnum Enum with underlying type: string +type NodeGroupLifecycleStateEnum string + +// Set of constants representing the allowable values for NodeGroupLifecycleStateEnum +const ( + NodeGroupLifecycleStateCreating NodeGroupLifecycleStateEnum = "CREATING" + NodeGroupLifecycleStateActive NodeGroupLifecycleStateEnum = "ACTIVE" + NodeGroupLifecycleStateDeleting NodeGroupLifecycleStateEnum = "DELETING" + NodeGroupLifecycleStateDeleted NodeGroupLifecycleStateEnum = "DELETED" + NodeGroupLifecycleStateFailed NodeGroupLifecycleStateEnum = "FAILED" +) + +var mappingNodeGroupLifecycleStateEnum = map[string]NodeGroupLifecycleStateEnum{ + "CREATING": NodeGroupLifecycleStateCreating, + "ACTIVE": NodeGroupLifecycleStateActive, + "DELETING": NodeGroupLifecycleStateDeleting, + "DELETED": NodeGroupLifecycleStateDeleted, + "FAILED": NodeGroupLifecycleStateFailed, +} + +var mappingNodeGroupLifecycleStateEnumLowerCase = map[string]NodeGroupLifecycleStateEnum{ + "creating": NodeGroupLifecycleStateCreating, + "active": NodeGroupLifecycleStateActive, + "deleting": NodeGroupLifecycleStateDeleting, + "deleted": NodeGroupLifecycleStateDeleted, + "failed": NodeGroupLifecycleStateFailed, +} + +// GetNodeGroupLifecycleStateEnumValues Enumerates the set of values for NodeGroupLifecycleStateEnum +func GetNodeGroupLifecycleStateEnumValues() []NodeGroupLifecycleStateEnum { + values := make([]NodeGroupLifecycleStateEnum, 0) + for _, v := range mappingNodeGroupLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetNodeGroupLifecycleStateEnumStringValues Enumerates the set of values in String for NodeGroupLifecycleStateEnum +func GetNodeGroupLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingNodeGroupLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNodeGroupLifecycleStateEnum(val string) (NodeGroupLifecycleStateEnum, bool) { + enum, ok := mappingNodeGroupLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/pipeline_run.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/pipeline_run.go index 6faff151424..1fc9878f30e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/pipeline_run.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/pipeline_run.go @@ -61,6 +61,8 @@ type PipelineRun struct { LogConfigurationOverrideDetails *PipelineLogConfigurationDetails `mandatory:"false" json:"logConfigurationOverrideDetails"` + InfrastructureConfigurationOverrideDetails *PipelineInfrastructureConfigurationDetails `mandatory:"false" json:"infrastructureConfigurationOverrideDetails"` + // Array of step override details. Only Step Configuration is allowed to be overridden. StepOverrideDetails []PipelineStepOverrideDetails `mandatory:"false" json:"stepOverrideDetails"` @@ -104,27 +106,28 @@ func (m PipelineRun) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *PipelineRun) UnmarshalJSON(data []byte) (e error) { model := struct { - TimeStarted *common.SDKTime `json:"timeStarted"` - TimeUpdated *common.SDKTime `json:"timeUpdated"` - TimeFinished *common.SDKTime `json:"timeFinished"` - ConfigurationDetails pipelineconfigurationdetails `json:"configurationDetails"` - ConfigurationOverrideDetails pipelineconfigurationdetails `json:"configurationOverrideDetails"` - LogConfigurationOverrideDetails *PipelineLogConfigurationDetails `json:"logConfigurationOverrideDetails"` - StepOverrideDetails []PipelineStepOverrideDetails `json:"stepOverrideDetails"` - LogDetails *PipelineRunLogDetails `json:"logDetails"` - LifecycleDetails *string `json:"lifecycleDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - Id *string `json:"id"` - TimeAccepted *common.SDKTime `json:"timeAccepted"` - CreatedBy *string `json:"createdBy"` - ProjectId *string `json:"projectId"` - CompartmentId *string `json:"compartmentId"` - PipelineId *string `json:"pipelineId"` - DisplayName *string `json:"displayName"` - StepRuns []pipelinesteprun `json:"stepRuns"` - LifecycleState PipelineRunLifecycleStateEnum `json:"lifecycleState"` + TimeStarted *common.SDKTime `json:"timeStarted"` + TimeUpdated *common.SDKTime `json:"timeUpdated"` + TimeFinished *common.SDKTime `json:"timeFinished"` + ConfigurationDetails pipelineconfigurationdetails `json:"configurationDetails"` + ConfigurationOverrideDetails pipelineconfigurationdetails `json:"configurationOverrideDetails"` + LogConfigurationOverrideDetails *PipelineLogConfigurationDetails `json:"logConfigurationOverrideDetails"` + InfrastructureConfigurationOverrideDetails *PipelineInfrastructureConfigurationDetails `json:"infrastructureConfigurationOverrideDetails"` + StepOverrideDetails []PipelineStepOverrideDetails `json:"stepOverrideDetails"` + LogDetails *PipelineRunLogDetails `json:"logDetails"` + LifecycleDetails *string `json:"lifecycleDetails"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + Id *string `json:"id"` + TimeAccepted *common.SDKTime `json:"timeAccepted"` + CreatedBy *string `json:"createdBy"` + ProjectId *string `json:"projectId"` + CompartmentId *string `json:"compartmentId"` + PipelineId *string `json:"pipelineId"` + DisplayName *string `json:"displayName"` + StepRuns []pipelinesteprun `json:"stepRuns"` + LifecycleState PipelineRunLifecycleStateEnum `json:"lifecycleState"` }{} e = json.Unmarshal(data, &model) @@ -160,6 +163,8 @@ func (m *PipelineRun) UnmarshalJSON(data []byte) (e error) { m.LogConfigurationOverrideDetails = model.LogConfigurationOverrideDetails + m.InfrastructureConfigurationOverrideDetails = model.InfrastructureConfigurationOverrideDetails + m.StepOverrideDetails = make([]PipelineStepOverrideDetails, len(model.StepOverrideDetails)) copy(m.StepOverrideDetails, model.StepOverrideDetails) m.LogDetails = model.LogDetails diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/pipeline_step_override_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/pipeline_step_override_details.go index 3f7eecf2c4b..a164e91f045 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/pipeline_step_override_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/pipeline_step_override_details.go @@ -27,6 +27,8 @@ type PipelineStepOverrideDetails struct { StepContainerConfigurationDetails PipelineContainerConfigurationDetails `mandatory:"false" json:"stepContainerConfigurationDetails"` StepDataflowConfigurationDetails *PipelineDataflowConfigurationDetails `mandatory:"false" json:"stepDataflowConfigurationDetails"` + + StepInfrastructureConfigurationDetails *PipelineInfrastructureConfigurationDetails `mandatory:"false" json:"stepInfrastructureConfigurationDetails"` } func (m PipelineStepOverrideDetails) String() string { @@ -48,10 +50,11 @@ func (m PipelineStepOverrideDetails) ValidateEnumValue() (bool, error) { // UnmarshalJSON unmarshals from json func (m *PipelineStepOverrideDetails) UnmarshalJSON(data []byte) (e error) { model := struct { - StepContainerConfigurationDetails pipelinecontainerconfigurationdetails `json:"stepContainerConfigurationDetails"` - StepDataflowConfigurationDetails *PipelineDataflowConfigurationDetails `json:"stepDataflowConfigurationDetails"` - StepName *string `json:"stepName"` - StepConfigurationDetails *PipelineStepConfigurationDetails `json:"stepConfigurationDetails"` + StepContainerConfigurationDetails pipelinecontainerconfigurationdetails `json:"stepContainerConfigurationDetails"` + StepDataflowConfigurationDetails *PipelineDataflowConfigurationDetails `json:"stepDataflowConfigurationDetails"` + StepInfrastructureConfigurationDetails *PipelineInfrastructureConfigurationDetails `json:"stepInfrastructureConfigurationDetails"` + StepName *string `json:"stepName"` + StepConfigurationDetails *PipelineStepConfigurationDetails `json:"stepConfigurationDetails"` }{} e = json.Unmarshal(data, &model) @@ -71,6 +74,8 @@ func (m *PipelineStepOverrideDetails) UnmarshalJSON(data []byte) (e error) { m.StepDataflowConfigurationDetails = model.StepDataflowConfigurationDetails + m.StepInfrastructureConfigurationDetails = model.StepInfrastructureConfigurationDetails + m.StepName = model.StepName m.StepConfigurationDetails = model.StepConfigurationDetails diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/standalone_job_infrastructure_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/standalone_job_infrastructure_configuration_details.go index 159545449eb..9e0fd7e9472 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/datascience/standalone_job_infrastructure_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/datascience/standalone_job_infrastructure_configuration_details.go @@ -16,7 +16,7 @@ import ( "strings" ) -// StandaloneJobInfrastructureConfigurationDetails The standalone job infrastructure configuration. +// StandaloneJobInfrastructureConfigurationDetails This type should only be used at the top level infrastructure configuration field for configuring single-node jobs. type StandaloneJobInfrastructureConfigurationDetails struct { // The shape used to launch the job run instances. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/devops/build_stage.go b/vendor/github.com/oracle/oci-go-sdk/v65/devops/build_stage.go index c02a409efbf..1814cd26483 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/devops/build_stage.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/devops/build_stage.go @@ -283,14 +283,17 @@ type BuildStageImageEnum string // Set of constants representing the allowable values for BuildStageImageEnum const ( BuildStageImageOl7X8664Standard10 BuildStageImageEnum = "OL7_X86_64_STANDARD_10" + BuildStageImageOl8X8664Standard10 BuildStageImageEnum = "OL8_X86_64_STANDARD_10" ) var mappingBuildStageImageEnum = map[string]BuildStageImageEnum{ "OL7_X86_64_STANDARD_10": BuildStageImageOl7X8664Standard10, + "OL8_X86_64_STANDARD_10": BuildStageImageOl8X8664Standard10, } var mappingBuildStageImageEnumLowerCase = map[string]BuildStageImageEnum{ "ol7_x86_64_standard_10": BuildStageImageOl7X8664Standard10, + "ol8_x86_64_standard_10": BuildStageImageOl8X8664Standard10, } // GetBuildStageImageEnumValues Enumerates the set of values for BuildStageImageEnum @@ -306,6 +309,7 @@ func GetBuildStageImageEnumValues() []BuildStageImageEnum { func GetBuildStageImageEnumStringValues() []string { return []string{ "OL7_X86_64_STANDARD_10", + "OL8_X86_64_STANDARD_10", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/devops/build_stage_run_progress.go b/vendor/github.com/oracle/oci-go-sdk/v65/devops/build_stage_run_progress.go index e899ae5baf0..d43b5797ec6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/devops/build_stage_run_progress.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/devops/build_stage_run_progress.go @@ -203,14 +203,17 @@ type BuildStageRunProgressImageEnum string // Set of constants representing the allowable values for BuildStageRunProgressImageEnum const ( BuildStageRunProgressImageOl7X8664Standard10 BuildStageRunProgressImageEnum = "OL7_X86_64_STANDARD_10" + BuildStageRunProgressImageOl8X8664Standard10 BuildStageRunProgressImageEnum = "OL8_X86_64_STANDARD_10" ) var mappingBuildStageRunProgressImageEnum = map[string]BuildStageRunProgressImageEnum{ "OL7_X86_64_STANDARD_10": BuildStageRunProgressImageOl7X8664Standard10, + "OL8_X86_64_STANDARD_10": BuildStageRunProgressImageOl8X8664Standard10, } var mappingBuildStageRunProgressImageEnumLowerCase = map[string]BuildStageRunProgressImageEnum{ "ol7_x86_64_standard_10": BuildStageRunProgressImageOl7X8664Standard10, + "ol8_x86_64_standard_10": BuildStageRunProgressImageOl8X8664Standard10, } // GetBuildStageRunProgressImageEnumValues Enumerates the set of values for BuildStageRunProgressImageEnum @@ -226,6 +229,7 @@ func GetBuildStageRunProgressImageEnumValues() []BuildStageRunProgressImageEnum func GetBuildStageRunProgressImageEnumStringValues() []string { return []string{ "OL7_X86_64_STANDARD_10", + "OL8_X86_64_STANDARD_10", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/devops/create_or_update_protected_branch_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/devops/create_or_update_protected_branch_details.go index 224e2d3df82..98843a31be2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/devops/create_or_update_protected_branch_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/devops/create_or_update_protected_branch_details.go @@ -18,7 +18,7 @@ import ( // CreateOrUpdateProtectedBranchDetails Information to create a protected branch type CreateOrUpdateProtectedBranchDetails struct { - // Name of a branch to protect. + // The branchName can either be exact branch name or branch pattern. BranchName *string `mandatory:"true" json:"branchName"` // Level of protection to add on a branch. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/devops/delete_protected_branch_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/devops/delete_protected_branch_details.go index 0d7530d4174..05e676959fe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/devops/delete_protected_branch_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/devops/delete_protected_branch_details.go @@ -18,7 +18,7 @@ import ( // DeleteProtectedBranchDetails Information to delete a protected branch type DeleteProtectedBranchDetails struct { - // Name of a protected branch. + // The branchName can either be exact branch name or branch pattern. BranchName *string `mandatory:"true" json:"branchName"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/devops/devops_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/devops/devops_client.go index 56c0413a4b2..ac4e785a589 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/devops/devops_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/devops/devops_client.go @@ -6845,6 +6845,122 @@ func (client DevopsClient) reopenPullRequest(ctx context.Context, request common return response, err } +// ReopenPullRequestComment Reopen a PullRequest Comment +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/devops/ReopenPullRequestComment.go.html to see an example of how to use ReopenPullRequestComment API. +// A default retry strategy applies to this operation ReopenPullRequestComment() +func (client DevopsClient) ReopenPullRequestComment(ctx context.Context, request ReopenPullRequestCommentRequest) (response ReopenPullRequestCommentResponse, 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.reopenPullRequestComment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ReopenPullRequestCommentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ReopenPullRequestCommentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ReopenPullRequestCommentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ReopenPullRequestCommentResponse") + } + return +} + +// reopenPullRequestComment implements the OCIOperation interface (enables retrying operations) +func (client DevopsClient) reopenPullRequestComment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/pullRequests/{pullRequestId}/comments/{commentId}/actions/reopen", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ReopenPullRequestCommentResponse + 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/devops/20210630/PullRequest/ReopenPullRequestComment" + err = common.PostProcessServiceError(err, "Devops", "ReopenPullRequestComment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ResolvePullRequestComment Resolve a PullRequest Comment +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/devops/ResolvePullRequestComment.go.html to see an example of how to use ResolvePullRequestComment API. +// A default retry strategy applies to this operation ResolvePullRequestComment() +func (client DevopsClient) ResolvePullRequestComment(ctx context.Context, request ResolvePullRequestCommentRequest) (response ResolvePullRequestCommentResponse, 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.resolvePullRequestComment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ResolvePullRequestCommentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ResolvePullRequestCommentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ResolvePullRequestCommentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ResolvePullRequestCommentResponse") + } + return +} + +// resolvePullRequestComment implements the OCIOperation interface (enables retrying operations) +func (client DevopsClient) resolvePullRequestComment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/pullRequests/{pullRequestId}/comments/{commentId}/actions/resolve", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ResolvePullRequestCommentResponse + 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/devops/20210630/PullRequest/ResolvePullRequestComment" + err = common.PostProcessServiceError(err, "Devops", "ResolvePullRequestComment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ReviewPullRequest Review a PullRequest // // # See also diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/devops/merge_settings.go b/vendor/github.com/oracle/oci-go-sdk/v65/devops/merge_settings.go index bad437245de..cfe1a3599cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/devops/merge_settings.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/devops/merge_settings.go @@ -19,10 +19,10 @@ import ( type MergeSettings struct { // Default type of merge strategy associated with the a Project or Repository. - DefaultMergeStrategy MergeStrategyEnum `mandatory:"true" json:"defaultMergeStrategy"` + DefaultMergeStrategy MergeStrategyEnum `mandatory:"false" json:"defaultMergeStrategy,omitempty"` // List of merge strategies which are allowed for a Project or Repository. - AllowedMergeStrategies []MergeStrategyEnum `mandatory:"true" json:"allowedMergeStrategies"` + AllowedMergeStrategies []MergeStrategyEnum `mandatory:"false" json:"allowedMergeStrategies"` } func (m MergeSettings) String() string { @@ -34,10 +34,10 @@ func (m MergeSettings) String() string { // Not recommended for calling this function directly func (m MergeSettings) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingMergeStrategyEnum(string(m.DefaultMergeStrategy)); !ok && m.DefaultMergeStrategy != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DefaultMergeStrategy: %s. Supported values are: %s.", m.DefaultMergeStrategy, strings.Join(GetMergeStrategyEnumStringValues(), ","))) } - if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/devops/protected_branch.go b/vendor/github.com/oracle/oci-go-sdk/v65/devops/protected_branch.go index ae7bf781f1b..c0ad918d960 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/devops/protected_branch.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/devops/protected_branch.go @@ -18,7 +18,7 @@ import ( // ProtectedBranch Holds information used to restrict certain actions on branches type ProtectedBranch struct { - // Branch name inside a repository. + // The branchName can either be exact branch name or branch pattern. BranchName *string `mandatory:"true" json:"branchName"` // Protection levels to be added on the branch. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/devops/pull_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/devops/pull_request.go index 3abeb942fa7..ab0050f612b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/devops/pull_request.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/devops/pull_request.go @@ -77,6 +77,9 @@ type PullRequest struct { // List of Reviewers. Reviewers []Reviewer `mandatory:"false" json:"reviewers"` + // The commit ID when the Pull Request was merged. + MergedCommitId *string `mandatory:"false" json:"mergedCommitId"` + MergeChecks *MergeCheckCollection `mandatory:"false" json:"mergeChecks"` MergedBy *PrincipalDetails `mandatory:"false" json:"mergedBy"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/devops/reopen_pull_request_comment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/devops/reopen_pull_request_comment_request_response.go new file mode 100644 index 00000000000..755a5ded58b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/devops/reopen_pull_request_comment_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2025, 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 devops + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ReopenPullRequestCommentRequest wrapper for the ReopenPullRequestComment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/devops/ReopenPullRequestComment.go.html to see an example of how to use ReopenPullRequestCommentRequest. +type ReopenPullRequestCommentRequest struct { + + // unique PullRequest identifier + PullRequestId *string `mandatory:"true" contributesTo:"path" name:"pullRequestId"` + + // unique PullRequest Comment identifier + CommentId *string `mandatory:"true" contributesTo:"path" name:"commentId"` + + // 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 Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ReopenPullRequestCommentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ReopenPullRequestCommentRequest) 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 ReopenPullRequestCommentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ReopenPullRequestCommentRequest) 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 ReopenPullRequestCommentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReopenPullRequestCommentResponse wrapper for the ReopenPullRequestComment operation +type ReopenPullRequestCommentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The PullRequestComment instance + PullRequestComment `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response ReopenPullRequestCommentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ReopenPullRequestCommentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/devops/repository_commit.go b/vendor/github.com/oracle/oci-go-sdk/v65/devops/repository_commit.go index 83c852ef3d8..786573581fa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/devops/repository_commit.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/devops/repository_commit.go @@ -36,6 +36,9 @@ type RepositoryCommit struct { // Email of who creates the commit. CommitterEmail *string `mandatory:"false" json:"committerEmail"` + // Id of the PullRequest that this commit was merged with. + MergedPullRequestId *string `mandatory:"false" json:"mergedPullRequestId"` + // An array of parent commit IDs of created commit. ParentCommitIds []string `mandatory:"false" json:"parentCommitIds"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/devops/resolve_pull_request_comment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/devops/resolve_pull_request_comment_request_response.go new file mode 100644 index 00000000000..699f12753c0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/devops/resolve_pull_request_comment_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2025, 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 devops + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ResolvePullRequestCommentRequest wrapper for the ResolvePullRequestComment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/devops/ResolvePullRequestComment.go.html to see an example of how to use ResolvePullRequestCommentRequest. +type ResolvePullRequestCommentRequest struct { + + // unique PullRequest identifier + PullRequestId *string `mandatory:"true" contributesTo:"path" name:"pullRequestId"` + + // unique PullRequest Comment identifier + CommentId *string `mandatory:"true" contributesTo:"path" name:"commentId"` + + // 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 Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ResolvePullRequestCommentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ResolvePullRequestCommentRequest) 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 ResolvePullRequestCommentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ResolvePullRequestCommentRequest) 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 ResolvePullRequestCommentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ResolvePullRequestCommentResponse wrapper for the ResolvePullRequestComment operation +type ResolvePullRequestCommentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The PullRequestComment instance + PullRequestComment `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response ResolvePullRequestCommentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ResolvePullRequestCommentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_kinesis_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_kinesis_connection.go index 9c43ef2d6c3..aca42e66baa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_kinesis_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_kinesis_connection.go @@ -91,6 +91,16 @@ type AmazonKinesisConnection struct { // Note: When provided, 'secretAccessKey' field must not be provided. SecretAccessKeySecretId *string `mandatory:"false" json:"secretAccessKeySecretId"` + // The endpoint URL of the Amazon Kinesis service. + // e.g.: 'https://kinesis.us-east-1.amazonaws.com' + // If not provided, GoldenGate will default to 'https://kinesis..amazonaws.com'. + Endpoint *string `mandatory:"false" json:"endpoint"` + + // The name of the AWS region. + // If not provided, GoldenGate will default to 'us-west-1'. + // Note: this property will become mandatory after July 30, 2026. + Region *string `mandatory:"false" json:"region"` + // The Amazon Kinesis technology type. TechnologyType AmazonKinesisConnectionTechnologyTypeEnum `mandatory:"true" json:"technologyType"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_kinesis_connection_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_kinesis_connection_summary.go index 8f52b60e7a0..35748841604 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_kinesis_connection_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_kinesis_connection_summary.go @@ -91,6 +91,16 @@ type AmazonKinesisConnectionSummary struct { // Note: When provided, 'secretAccessKey' field must not be provided. SecretAccessKeySecretId *string `mandatory:"false" json:"secretAccessKeySecretId"` + // The endpoint URL of the Amazon Kinesis service. + // e.g.: 'https://kinesis.us-east-1.amazonaws.com' + // If not provided, GoldenGate will default to 'https://kinesis..amazonaws.com'. + Endpoint *string `mandatory:"false" json:"endpoint"` + + // The name of the AWS region. + // If not provided, GoldenGate will default to 'us-west-1'. + // Note: this property will become mandatory after July 30, 2026. + Region *string `mandatory:"false" json:"region"` + // Possible lifecycle states for connection. LifecycleState ConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_s3_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_s3_connection.go index b0d83c0ae0b..369b9a53dbe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_s3_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_s3_connection.go @@ -94,9 +94,12 @@ type AmazonS3Connection struct { // The Amazon Endpoint for S3. // e.g.: 'https://my-bucket.s3.us-east-1.amazonaws.com' + // If not provided, GoldenGate will default to 'https://s3..amazonaws.com'. Endpoint *string `mandatory:"false" json:"endpoint"` - // The name of the region where the bucket is created. + // The name of the AWS region where the bucket is created. + // If not provided, GoldenGate will default to 'us-west-2'. + // Note: this property will become mandatory after May 20, 2026. Region *string `mandatory:"false" json:"region"` // The Amazon S3 technology type. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_s3_connection_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_s3_connection_summary.go index d12ba745c38..9f5e0d2b877 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_s3_connection_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/amazon_s3_connection_summary.go @@ -94,9 +94,12 @@ type AmazonS3ConnectionSummary struct { // The Amazon Endpoint for S3. // e.g.: 'https://my-bucket.s3.us-east-1.amazonaws.com' + // If not provided, GoldenGate will default to 'https://s3..amazonaws.com'. Endpoint *string `mandatory:"false" json:"endpoint"` - // The name of the region where the bucket is created. + // The name of the AWS region where the bucket is created. + // If not provided, GoldenGate will default to 'us-west-2'. + // Note: this property will become mandatory after May 20, 2026. Region *string `mandatory:"false" json:"region"` // Possible lifecycle states for connection. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/azure_data_lake_storage_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/azure_data_lake_storage_connection.go index 031744cb666..09bb844b3c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/azure_data_lake_storage_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/azure_data_lake_storage_connection.go @@ -111,6 +111,13 @@ type AzureDataLakeStorageConnection struct { // Note: When provided, 'clientSecret' field must not be provided. ClientSecretSecretId *string `mandatory:"false" json:"clientSecretSecretId"` + // The endpoint used for authentication with Microsoft Entra ID (formerly Azure Active Directory). + // Default value: https://login.microsoftonline.com + // When connecting to a non-public Azure Cloud, the endpoint must be provided, eg: + // * Azure China: https://login.chinacloudapi.cn/ + // * Azure US Government: https://login.microsoftonline.us/ + AzureAuthorityHost *string `mandatory:"false" json:"azureAuthorityHost"` + // The Azure Data Lake Storage technology type. TechnologyType AzureDataLakeStorageConnectionTechnologyTypeEnum `mandatory:"true" json:"technologyType"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/azure_data_lake_storage_connection_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/azure_data_lake_storage_connection_summary.go index 2b23858c16d..ccc2f17cd5f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/azure_data_lake_storage_connection_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/azure_data_lake_storage_connection_summary.go @@ -111,6 +111,13 @@ type AzureDataLakeStorageConnectionSummary struct { // Note: When provided, 'clientSecret' field must not be provided. ClientSecretSecretId *string `mandatory:"false" json:"clientSecretSecretId"` + // The endpoint used for authentication with Microsoft Entra ID (formerly Azure Active Directory). + // Default value: https://login.microsoftonline.com + // When connecting to a non-public Azure Cloud, the endpoint must be provided, eg: + // * Azure China: https://login.chinacloudapi.cn/ + // * Azure US Government: https://login.microsoftonline.us/ + AzureAuthorityHost *string `mandatory:"false" json:"azureAuthorityHost"` + // Possible lifecycle states for connection. LifecycleState ConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_amazon_kinesis_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_amazon_kinesis_connection_details.go index 4124179a1b5..1013ac38c9d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_amazon_kinesis_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_amazon_kinesis_connection_details.go @@ -69,6 +69,16 @@ type CreateAmazonKinesisConnectionDetails struct { // Note: When provided, 'secretAccessKey' field must not be provided. SecretAccessKeySecretId *string `mandatory:"false" json:"secretAccessKeySecretId"` + // The endpoint URL of the Amazon Kinesis service. + // e.g.: 'https://kinesis.us-east-1.amazonaws.com' + // If not provided, GoldenGate will default to 'https://kinesis..amazonaws.com'. + Endpoint *string `mandatory:"false" json:"endpoint"` + + // The name of the AWS region. + // If not provided, GoldenGate will default to 'us-west-1'. + // Note: this property will become mandatory after July 30, 2026. + Region *string `mandatory:"false" json:"region"` + // Controls the network traffic direction to the target: // SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. // SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_amazon_s3_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_amazon_s3_connection_details.go index 6d4932760d6..4bc297d5dc5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_amazon_s3_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_amazon_s3_connection_details.go @@ -73,9 +73,12 @@ type CreateAmazonS3ConnectionDetails struct { // The Amazon Endpoint for S3. // e.g.: 'https://my-bucket.s3.us-east-1.amazonaws.com' + // If not provided, GoldenGate will default to 'https://s3..amazonaws.com'. Endpoint *string `mandatory:"false" json:"endpoint"` - // The name of the region where the bucket is created. + // The name of the AWS region where the bucket is created. + // If not provided, GoldenGate will default to 'us-west-2'. + // Note: this property will become mandatory after May 20, 2026. Region *string `mandatory:"false" json:"region"` // Controls the network traffic direction to the target: diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_azure_data_lake_storage_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_azure_data_lake_storage_connection_details.go index 2e61f0800a2..431e26991f6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_azure_data_lake_storage_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_azure_data_lake_storage_connection_details.go @@ -101,6 +101,13 @@ type CreateAzureDataLakeStorageConnectionDetails struct { // e.g: https://test.blob.core.windows.net Endpoint *string `mandatory:"false" json:"endpoint"` + // The endpoint used for authentication with Microsoft Entra ID (formerly Azure Active Directory). + // Default value: https://login.microsoftonline.com + // When connecting to a non-public Azure Cloud, the endpoint must be provided, eg: + // * Azure China: https://login.chinacloudapi.cn/ + // * Azure US Government: https://login.microsoftonline.us/ + AzureAuthorityHost *string `mandatory:"false" json:"azureAuthorityHost"` + // Controls the network traffic direction to the target: // SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. // SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_db2_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_db2_connection_details.go index a19a85f4797..3888e664612 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_db2_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_db2_connection_details.go @@ -85,20 +85,24 @@ type CreateDb2ConnectionDetails struct { AdditionalAttributes []NameValuePair `mandatory:"false" json:"additionalAttributes"` // The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. + // This property is not supported for IBM Db2 for i, as client TLS mode is not available. // Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". This field will be removed after February 15 2026. SslClientKeystoredb *string `mandatory:"false" json:"sslClientKeystoredb"` // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, // which created at the client containing the server certificate / CA root certificate. + // This property is not supported for IBM Db2 for i, as client TLS mode is not available. // Note: When provided, 'sslClientKeystoredb' field must not be provided. SslClientKeystoredbSecretId *string `mandatory:"false" json:"sslClientKeystoredbSecretId"` // The base64 encoded keystash file which contains the encrypted password to the key database file. + // This property is not supported for IBM Db2 for i, as client TLS mode is not available. // Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". This field will be removed after February 15 2026. SslClientKeystash *string `mandatory:"false" json:"sslClientKeystash"` // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, // which contains the encrypted password to the key database file. + // This property is not supported for IBM Db2 for i, as client TLS mode is not available. // Note: When provided, 'sslClientKeystash' field must not be provided. SslClientKeystashSecretId *string `mandatory:"false" json:"sslClientKeystashSecretId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_google_pub_sub_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_google_pub_sub_connection_details.go index 90b51bd32d4..d4ab370b7bd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_google_pub_sub_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_google_pub_sub_connection_details.go @@ -25,11 +25,6 @@ type CreateGooglePubSubConnectionDetails struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment being referenced. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The base64 encoded content of the service account key file containing - // the credentials required to use Google PubSub. - // Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. - ServiceAccountKeyFile *string `mandatory:"true" json:"serviceAccountKeyFile"` - // Metadata about this specific object. Description *string `mandatory:"false" json:"description"` @@ -63,6 +58,11 @@ type CreateGooglePubSubConnectionDetails struct { // Indicates that sensitive attributes are provided via Secrets. DoesUseSecretIds *bool `mandatory:"false" json:"doesUseSecretIds"` + // The base64 encoded content of the service account key file containing + // the credentials required to use Google PubSub. + // Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. + ServiceAccountKeyFile *string `mandatory:"false" json:"serviceAccountKeyFile"` + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, // which contains the credentials required to use Google PubSub. // Note: When provided, 'serviceAccountKeyFile' field must not be provided. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_java_message_service_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_java_message_service_connection_details.go index d085c9d0391..c8d89490db6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_java_message_service_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_java_message_service_connection_details.go @@ -86,7 +86,7 @@ type CreateJavaMessageServiceConnectionDetails struct { // Note: When provided, 'jndiSecurityCredentials' field must not be provided. JndiSecurityCredentialsSecretId *string `mandatory:"false" json:"jndiSecurityCredentialsSecretId"` - // Connectin URL of the Java Message Service, specifying the protocol, host, and port. + // Connection URL of the Java Message Service, specifying the protocol, host, and port. // e.g.: 'mq://myjms.host.domain:7676' ConnectionUrl *string `mandatory:"false" json:"connectionUrl"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_oci_object_storage_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_oci_object_storage_connection_details.go index 744d146f94f..42d8b15f58c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_oci_object_storage_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_oci_object_storage_connection_details.go @@ -92,7 +92,8 @@ type CreateOciObjectStorageConnectionDetails struct { // See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm PublicKeyFingerprint *string `mandatory:"false" json:"publicKeyFingerprint"` - // Indicates that the user intents to connect to the instance through resource principal. + // Specifies that the user intends to authenticate to the instance using a resource principal. + // Default: false ShouldUseResourcePrincipal *bool `mandatory:"false" json:"shouldUseResourcePrincipal"` // Controls the network traffic direction to the target: diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_oracle_nosql_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_oracle_nosql_connection_details.go index 5316ab4b7ad..617fcac4c1b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_oracle_nosql_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/create_oracle_nosql_connection_details.go @@ -92,7 +92,8 @@ type CreateOracleNosqlConnectionDetails struct { // See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm PublicKeyFingerprint *string `mandatory:"false" json:"publicKeyFingerprint"` - // Indicates that the user intents to connect to the instance through resource principal. + // Specifies that the user intends to authenticate to the instance using a resource principal. + // Default: false ShouldUseResourcePrincipal *bool `mandatory:"false" json:"shouldUseResourcePrincipal"` // Controls the network traffic direction to the target: diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/db2_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/db2_connection.go index aa3e3b42307..2ef01e49a0d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/db2_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/db2_connection.go @@ -108,11 +108,13 @@ type Db2Connection struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, // which created at the client containing the server certificate / CA root certificate. + // This property is not supported for IBM Db2 for i, as client TLS mode is not available. // Note: When provided, 'sslClientKeystoredb' field must not be provided. SslClientKeystoredbSecretId *string `mandatory:"false" json:"sslClientKeystoredbSecretId"` // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, // which contains the encrypted password to the key database file. + // This property is not supported for IBM Db2 for i, as client TLS mode is not available. // Note: When provided, 'sslClientKeystash' field must not be provided. SslClientKeystashSecretId *string `mandatory:"false" json:"sslClientKeystashSecretId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/db2_connection_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/db2_connection_summary.go index 93eee1e0909..56bdeb6e666 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/db2_connection_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/db2_connection_summary.go @@ -108,11 +108,13 @@ type Db2ConnectionSummary struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, // which created at the client containing the server certificate / CA root certificate. + // This property is not supported for IBM Db2 for i, as client TLS mode is not available. // Note: When provided, 'sslClientKeystoredb' field must not be provided. SslClientKeystoredbSecretId *string `mandatory:"false" json:"sslClientKeystoredbSecretId"` // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, // which contains the encrypted password to the key database file. + // This property is not supported for IBM Db2 for i, as client TLS mode is not available. // Note: When provided, 'sslClientKeystash' field must not be provided. SslClientKeystashSecretId *string `mandatory:"false" json:"sslClientKeystashSecretId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/java_message_service_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/java_message_service_connection.go index 163a11b60f0..f131bbd6d80 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/java_message_service_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/java_message_service_connection.go @@ -104,7 +104,7 @@ type JavaMessageServiceConnection struct { // e.g.: 'admin2' JndiSecurityPrincipal *string `mandatory:"false" json:"jndiSecurityPrincipal"` - // Connectin URL of the Java Message Service, specifying the protocol, host, and port. + // Connection URL of the Java Message Service, specifying the protocol, host, and port. // e.g.: 'mq://myjms.host.domain:7676' ConnectionUrl *string `mandatory:"false" json:"connectionUrl"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/java_message_service_connection_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/java_message_service_connection_summary.go index c42564d191b..eb2a05fd442 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/java_message_service_connection_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/java_message_service_connection_summary.go @@ -104,7 +104,7 @@ type JavaMessageServiceConnectionSummary struct { // e.g.: 'admin2' JndiSecurityPrincipal *string `mandatory:"false" json:"jndiSecurityPrincipal"` - // Connectin URL of the Java Message Service, specifying the protocol, host, and port. + // Connection URL of the Java Message Service, specifying the protocol, host, and port. // e.g.: 'mq://myjms.host.domain:7676' ConnectionUrl *string `mandatory:"false" json:"connectionUrl"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oci_object_storage_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oci_object_storage_connection.go index 131606bec85..aec783c2aef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oci_object_storage_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oci_object_storage_connection.go @@ -105,7 +105,12 @@ type OciObjectStorageConnection struct { // Note: When provided, 'privateKeyPassphrase' field must not be provided. PrivateKeyPassphraseSecretId *string `mandatory:"false" json:"privateKeyPassphraseSecretId"` - // Indicates that the user intents to connect to the instance through resource principal. + // The fingerprint of the API Key of the user specified by the userId. + // See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + PublicKeyFingerprint *string `mandatory:"false" json:"publicKeyFingerprint"` + + // Specifies that the user intends to authenticate to the instance using a resource principal. + // Default: false ShouldUseResourcePrincipal *bool `mandatory:"false" json:"shouldUseResourcePrincipal"` // The OCI Object Storage technology type. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oci_object_storage_connection_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oci_object_storage_connection_summary.go index dfce73743f8..936d1b7c912 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oci_object_storage_connection_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oci_object_storage_connection_summary.go @@ -105,7 +105,12 @@ type OciObjectStorageConnectionSummary struct { // Note: When provided, 'privateKeyPassphrase' field must not be provided. PrivateKeyPassphraseSecretId *string `mandatory:"false" json:"privateKeyPassphraseSecretId"` - // Indicates that the user intents to connect to the instance through resource principal. + // The fingerprint of the API Key of the user specified by the userId. + // See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + PublicKeyFingerprint *string `mandatory:"false" json:"publicKeyFingerprint"` + + // Specifies that the user intends to authenticate to the instance using a resource principal. + // Default: false ShouldUseResourcePrincipal *bool `mandatory:"false" json:"shouldUseResourcePrincipal"` // Possible lifecycle states for connection. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oracle_nosql_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oracle_nosql_connection.go index ef029bc99b3..ba63c0a9b39 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oracle_nosql_connection.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oracle_nosql_connection.go @@ -109,7 +109,8 @@ type OracleNosqlConnection struct { // See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm PublicKeyFingerprint *string `mandatory:"false" json:"publicKeyFingerprint"` - // Indicates that the user intents to connect to the instance through resource principal. + // Specifies that the user intends to authenticate to the instance using a resource principal. + // Default: false ShouldUseResourcePrincipal *bool `mandatory:"false" json:"shouldUseResourcePrincipal"` // The Oracle NoSQL technology type. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oracle_nosql_connection_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oracle_nosql_connection_summary.go index d308be82282..7e5f291a60b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oracle_nosql_connection_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/oracle_nosql_connection_summary.go @@ -105,7 +105,12 @@ type OracleNosqlConnectionSummary struct { // Note: When provided, 'privateKeyPassphrase' field must not be provided. PrivateKeyPassphraseSecretId *string `mandatory:"false" json:"privateKeyPassphraseSecretId"` - // Indicates that the user intents to connect to the instance through resource principal. + // The fingerprint of the API Key of the user specified by the userId. + // See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm + PublicKeyFingerprint *string `mandatory:"false" json:"publicKeyFingerprint"` + + // Specifies that the user intends to authenticate to the instance using a resource principal. + // Default: false ShouldUseResourcePrincipal *bool `mandatory:"false" json:"shouldUseResourcePrincipal"` // Possible lifecycle states for connection. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/process_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/process_options.go index 66fc34f3d98..0b84c20be44 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/process_options.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/process_options.go @@ -24,7 +24,7 @@ type ProcessOptions struct { // If ENABLED, then the replication process restarts itself upon failure. This option applies when creating or updating a pipeline. ShouldRestartOnFailure ProcessOptionsShouldRestartOnFailureEnum `mandatory:"true" json:"shouldRestartOnFailure"` - // If ENABLED, then the pipeline is started as part of pipeline creation. It uses default mapping. This option applies when creating or updating a pipeline. + // If ENABLED, then the pipeline is started as part of pipeline creation. It uses default mapping. This option only applies when creating a pipeline and is not applicable while updating a pipeline. StartUsingDefaultMapping ProcessOptionsStartUsingDefaultMappingEnum `mandatory:"false" json:"startUsingDefaultMapping,omitempty"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/supported_capabilities.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/supported_capabilities.go index 8d42c9fbedd..82a5f24beaf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/supported_capabilities.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/supported_capabilities.go @@ -25,6 +25,7 @@ const ( SupportedCapabilitiesPlacement SupportedCapabilitiesEnum = "PLACEMENT" SupportedCapabilitiesDisasterRecovery SupportedCapabilitiesEnum = "DISASTER_RECOVERY" SupportedCapabilitiesScheduleManualBackup SupportedCapabilitiesEnum = "SCHEDULE_MANUAL_BACKUP" + SupportedCapabilitiesMulticloud SupportedCapabilitiesEnum = "MULTICLOUD" ) var mappingSupportedCapabilitiesEnum = map[string]SupportedCapabilitiesEnum{ @@ -35,6 +36,7 @@ var mappingSupportedCapabilitiesEnum = map[string]SupportedCapabilitiesEnum{ "PLACEMENT": SupportedCapabilitiesPlacement, "DISASTER_RECOVERY": SupportedCapabilitiesDisasterRecovery, "SCHEDULE_MANUAL_BACKUP": SupportedCapabilitiesScheduleManualBackup, + "MULTICLOUD": SupportedCapabilitiesMulticloud, } var mappingSupportedCapabilitiesEnumLowerCase = map[string]SupportedCapabilitiesEnum{ @@ -45,6 +47,7 @@ var mappingSupportedCapabilitiesEnumLowerCase = map[string]SupportedCapabilities "placement": SupportedCapabilitiesPlacement, "disaster_recovery": SupportedCapabilitiesDisasterRecovery, "schedule_manual_backup": SupportedCapabilitiesScheduleManualBackup, + "multicloud": SupportedCapabilitiesMulticloud, } // GetSupportedCapabilitiesEnumValues Enumerates the set of values for SupportedCapabilitiesEnum @@ -66,6 +69,7 @@ func GetSupportedCapabilitiesEnumStringValues() []string { "PLACEMENT", "DISASTER_RECOVERY", "SCHEDULE_MANUAL_BACKUP", + "MULTICLOUD", } } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_amazon_kinesis_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_amazon_kinesis_connection_details.go index 4015e33fbea..c8fed62b606 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_amazon_kinesis_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_amazon_kinesis_connection_details.go @@ -63,6 +63,16 @@ type UpdateAmazonKinesisConnectionDetails struct { // Note: When provided, 'secretAccessKey' field must not be provided. SecretAccessKeySecretId *string `mandatory:"false" json:"secretAccessKeySecretId"` + // The endpoint URL of the Amazon Kinesis service. + // e.g.: 'https://kinesis.us-east-1.amazonaws.com' + // If not provided, GoldenGate will default to 'https://kinesis..amazonaws.com'. + Endpoint *string `mandatory:"false" json:"endpoint"` + + // The name of the AWS region. + // If not provided, GoldenGate will default to 'us-west-1'. + // Note: this property will become mandatory after July 30, 2026. + Region *string `mandatory:"false" json:"region"` + // Controls the network traffic direction to the target: // SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. // SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_amazon_s3_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_amazon_s3_connection_details.go index a587b0cefa1..df0da700c82 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_amazon_s3_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_amazon_s3_connection_details.go @@ -67,9 +67,12 @@ type UpdateAmazonS3ConnectionDetails struct { // The Amazon Endpoint for S3. // e.g.: 'https://my-bucket.s3.us-east-1.amazonaws.com' + // If not provided, GoldenGate will default to 'https://s3..amazonaws.com'. Endpoint *string `mandatory:"false" json:"endpoint"` - // The name of the region where the bucket is created. + // The name of the AWS region where the bucket is created. + // If not provided, GoldenGate will default to 'us-west-2'. + // Note: this property will become mandatory after May 20, 2026. Region *string `mandatory:"false" json:"region"` // Controls the network traffic direction to the target: diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_azure_data_lake_storage_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_azure_data_lake_storage_connection_details.go index b4e2d278602..eaee1aa4360 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_azure_data_lake_storage_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_azure_data_lake_storage_connection_details.go @@ -95,6 +95,13 @@ type UpdateAzureDataLakeStorageConnectionDetails struct { // e.g: https://test.blob.core.windows.net Endpoint *string `mandatory:"false" json:"endpoint"` + // The endpoint used for authentication with Microsoft Entra ID (formerly Azure Active Directory). + // Default value: https://login.microsoftonline.com + // When connecting to a non-public Azure Cloud, the endpoint must be provided, eg: + // * Azure China: https://login.chinacloudapi.cn/ + // * Azure US Government: https://login.microsoftonline.us/ + AzureAuthorityHost *string `mandatory:"false" json:"azureAuthorityHost"` + // Controls the network traffic direction to the target: // SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. // SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_db2_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_db2_connection_details.go index 96dcb508cb3..e0d0903df84 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_db2_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_db2_connection_details.go @@ -79,20 +79,24 @@ type UpdateDb2ConnectionDetails struct { AdditionalAttributes []NameValuePair `mandatory:"false" json:"additionalAttributes"` // The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. + // This property is not supported for IBM Db2 for i, as client TLS mode is not available. // Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". This field will be removed after February 15 2026. SslClientKeystoredb *string `mandatory:"false" json:"sslClientKeystoredb"` // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, // which created at the client containing the server certificate / CA root certificate. + // This property is not supported for IBM Db2 for i, as client TLS mode is not available. // Note: When provided, 'sslClientKeystoredb' field must not be provided. SslClientKeystoredbSecretId *string `mandatory:"false" json:"sslClientKeystoredbSecretId"` // The base64 encoded keystash file which contains the encrypted password to the key database file. + // This property is not supported for IBM Db2 for i, as client TLS mode is not available. // Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". This field will be removed after February 15 2026. SslClientKeystash *string `mandatory:"false" json:"sslClientKeystash"` // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, // which contains the encrypted password to the key database file. + // This property is not supported for IBM Db2 for i, as client TLS mode is not available. // Note: When provided, 'sslClientKeystash' field must not be provided. SslClientKeystashSecretId *string `mandatory:"false" json:"sslClientKeystashSecretId"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_java_message_service_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_java_message_service_connection_details.go index 0208d214e25..60153a00668 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_java_message_service_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_java_message_service_connection_details.go @@ -80,7 +80,7 @@ type UpdateJavaMessageServiceConnectionDetails struct { // Note: When provided, 'jndiSecurityCredentials' field must not be provided. JndiSecurityCredentialsSecretId *string `mandatory:"false" json:"jndiSecurityCredentialsSecretId"` - // Connectin URL of the Java Message Service, specifying the protocol, host, and port. + // Connection URL of the Java Message Service, specifying the protocol, host, and port. // e.g.: 'mq://myjms.host.domain:7676' ConnectionUrl *string `mandatory:"false" json:"connectionUrl"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_oci_object_storage_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_oci_object_storage_connection_details.go index 43df339d897..077629a1d04 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_oci_object_storage_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_oci_object_storage_connection_details.go @@ -86,7 +86,8 @@ type UpdateOciObjectStorageConnectionDetails struct { // See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm PublicKeyFingerprint *string `mandatory:"false" json:"publicKeyFingerprint"` - // Indicates that the user intents to connect to the instance through resource principal. + // Specifies that the user intends to authenticate to the instance using a resource principal. + // Default: false ShouldUseResourcePrincipal *bool `mandatory:"false" json:"shouldUseResourcePrincipal"` // Controls the network traffic direction to the target: diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_oracle_nosql_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_oracle_nosql_connection_details.go index 936d9bb1fb8..93d1eba12bc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_oracle_nosql_connection_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/goldengate/update_oracle_nosql_connection_details.go @@ -86,7 +86,8 @@ type UpdateOracleNosqlConnectionDetails struct { // See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm PublicKeyFingerprint *string `mandatory:"false" json:"publicKeyFingerprint"` - // Indicates that the user intents to connect to the instance through resource principal. + // Specifies that the user intends to authenticate to the instance using a resource principal. + // Default: false ShouldUseResourcePrincipal *bool `mandatory:"false" json:"shouldUseResourcePrincipal"` // Controls the network traffic direction to the target: diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/associated_oci_cache_cluster_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/associated_oci_cache_cluster_collection.go new file mode 100644 index 00000000000..8e60b63ea81 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/associated_oci_cache_cluster_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AssociatedOciCacheClusterCollection Associated OCI Cache Clusters to which the OCI Cache Config Set is associated. +type AssociatedOciCacheClusterCollection struct { + + // List of clusters with the same OCI Cache Config Set ID. + Items []AssociatedOciCacheClusterSummary `mandatory:"true" json:"items"` +} + +func (m AssociatedOciCacheClusterCollection) 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 AssociatedOciCacheClusterCollection) 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/redis/associated_oci_cache_cluster_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/associated_oci_cache_cluster_summary.go new file mode 100644 index 00000000000..7781298e26c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/associated_oci_cache_cluster_summary.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AssociatedOciCacheClusterSummary Summary of the Clusters associated with an OCI Cache Config Set. +type AssociatedOciCacheClusterSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. + Id *string `mandatory:"true" json:"id"` +} + +func (m AssociatedOciCacheClusterSummary) 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 AssociatedOciCacheClusterSummary) 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/redis/change_oci_cache_config_set_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/change_oci_cache_config_set_compartment_details.go new file mode 100644 index 00000000000..2226a139938 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/change_oci_cache_config_set_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeOciCacheConfigSetCompartmentDetails The information for the move operation. +type ChangeOciCacheConfigSetCompartmentDetails struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // into which the resource should be moved. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeOciCacheConfigSetCompartmentDetails) 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 ChangeOciCacheConfigSetCompartmentDetails) 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/redis/change_oci_cache_config_set_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/change_oci_cache_config_set_compartment_request_response.go new file mode 100644 index 00000000000..74493fabc88 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/change_oci_cache_config_set_compartment_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2025, 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 redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeOciCacheConfigSetCompartmentRequest wrapper for the ChangeOciCacheConfigSetCompartment operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/ChangeOciCacheConfigSetCompartment.go.html to see an example of how to use ChangeOciCacheConfigSetCompartmentRequest. +type ChangeOciCacheConfigSetCompartmentRequest struct { + + // Unique OCI Cache Config Set identifier. + OciCacheConfigSetId *string `mandatory:"true" contributesTo:"path" name:"ociCacheConfigSetId"` + + // The information to be updated. + ChangeOciCacheConfigSetCompartmentDetails `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 ChangeOciCacheConfigSetCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeOciCacheConfigSetCompartmentRequest) 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 ChangeOciCacheConfigSetCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeOciCacheConfigSetCompartmentRequest) 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 ChangeOciCacheConfigSetCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeOciCacheConfigSetCompartmentResponse wrapper for the ChangeOciCacheConfigSetCompartment operation +type ChangeOciCacheConfigSetCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ChangeOciCacheConfigSetCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeOciCacheConfigSetCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/configuration_details.go new file mode 100644 index 00000000000..36d35916283 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/configuration_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ConfigurationDetails List of OCI Cache Config Set Values. +type ConfigurationDetails struct { + + // List of ConfigurationInfo objects. + Items []ConfigurationInfo `mandatory:"true" json:"items"` +} + +func (m ConfigurationDetails) 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 ConfigurationDetails) 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/redis/configuration_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/configuration_info.go new file mode 100644 index 00000000000..9de0e96f3ee --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/configuration_info.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ConfigurationInfo Details of a configuration setting in the OCI Cache Config Set. +type ConfigurationInfo struct { + + // Key is the configuration key. + ConfigKey *string `mandatory:"true" json:"configKey"` + + // Value of the configuration as a string. Can represent a string, boolean, or number. + // Example: "true", "42", or "someString". + ConfigValue *string `mandatory:"true" json:"configValue"` +} + +func (m ConfigurationInfo) 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 ConfigurationInfo) 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/redis/create_oci_cache_config_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/create_oci_cache_config_set_details.go new file mode 100644 index 00000000000..bec26674818 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/create_oci_cache_config_set_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateOciCacheConfigSetDetails The information to create a new OCI Cache Config Set. +type CreateOciCacheConfigSetDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the OCI Cache Config Set. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCI Cache engine version that the cluster is running. + SoftwareVersion OciCacheConfigSetSoftwareVersionEnum `mandatory:"true" json:"softwareVersion"` + + ConfigurationDetails *ConfigurationDetails `mandatory:"true" json:"configurationDetails"` + + // Description for the custom OCI Cache Config Set. + Description *string `mandatory:"false" json:"description"` + + // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + // Example: `{"bar-key": "value"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateOciCacheConfigSetDetails) 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 CreateOciCacheConfigSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOciCacheConfigSetSoftwareVersionEnum(string(m.SoftwareVersion)); !ok && m.SoftwareVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SoftwareVersion: %s. Supported values are: %s.", m.SoftwareVersion, strings.Join(GetOciCacheConfigSetSoftwareVersionEnumStringValues(), ","))) + } + + 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/redis/create_oci_cache_config_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/create_oci_cache_config_set_request_response.go new file mode 100644 index 00000000000..be7d128f6ae --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/create_oci_cache_config_set_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2025, 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 redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateOciCacheConfigSetRequest wrapper for the CreateOciCacheConfigSet operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/CreateOciCacheConfigSet.go.html to see an example of how to use CreateOciCacheConfigSetRequest. +type CreateOciCacheConfigSetRequest struct { + + // Details for the new OCI Cache Config Set. + CreateOciCacheConfigSetDetails `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 + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The client request ID for tracing. + 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 CreateOciCacheConfigSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateOciCacheConfigSetRequest) 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 CreateOciCacheConfigSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateOciCacheConfigSetRequest) 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 CreateOciCacheConfigSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateOciCacheConfigSetResponse wrapper for the CreateOciCacheConfigSet operation +type CreateOciCacheConfigSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OciCacheConfigSet instance + OciCacheConfigSet `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateOciCacheConfigSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateOciCacheConfigSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/create_redis_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/create_redis_cluster_details.go index c73c5156236..b5837bd5d95 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/redis/create_redis_cluster_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/create_redis_cluster_details.go @@ -36,6 +36,9 @@ type CreateRedisClusterDetails struct { // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster's subnet. SubnetId *string `mandatory:"true" json:"subnetId"` + // The ID of the corresponding OCI Cache Config Set for the cluster. + OciCacheConfigSetId *string `mandatory:"false" json:"ociCacheConfigSetId"` + // Specifies whether the cluster is sharded or non-sharded. ClusterMode RedisClusterClusterModeEnum `mandatory:"false" json:"clusterMode,omitempty"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/default_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/default_configuration_details.go new file mode 100644 index 00000000000..0239cd4c571 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/default_configuration_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DefaultConfigurationDetails List of OCI Cache Default Config Set Values. +type DefaultConfigurationDetails struct { + + // List of DefaultConfigurationInfo objects. + Items []DefaultConfigurationInfo `mandatory:"true" json:"items"` +} + +func (m DefaultConfigurationDetails) 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 DefaultConfigurationDetails) 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/redis/default_configuration_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/default_configuration_info.go new file mode 100644 index 00000000000..b3c623ff714 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/default_configuration_info.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DefaultConfigurationInfo Details of a configuration setting in the OCI Cache Default Config Set. +type DefaultConfigurationInfo struct { + + // The key of the configuration setting. + ConfigKey *string `mandatory:"true" json:"configKey"` + + // The default value for the configuration setting. + DefaultConfigValue *string `mandatory:"true" json:"defaultConfigValue"` + + // The data type of the configuration setting. + DataType *string `mandatory:"true" json:"dataType"` + + // Indicates if the configuration is modifiable. + IsModifiable *bool `mandatory:"true" json:"isModifiable"` + + // Allowed values for the configuration setting. + AllowedValues *string `mandatory:"false" json:"allowedValues"` + + // Description of the configuration setting. + Description *string `mandatory:"false" json:"description"` +} + +func (m DefaultConfigurationInfo) 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 DefaultConfigurationInfo) 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/redis/delete_oci_cache_config_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/delete_oci_cache_config_set_request_response.go new file mode 100644 index 00000000000..9db4c781bf1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/delete_oci_cache_config_set_request_response.go @@ -0,0 +1,97 @@ +// Copyright (c) 2016, 2018, 2025, 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 redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteOciCacheConfigSetRequest wrapper for the DeleteOciCacheConfigSet operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/DeleteOciCacheConfigSet.go.html to see an example of how to use DeleteOciCacheConfigSetRequest. +type DeleteOciCacheConfigSetRequest struct { + + // Unique OCI Cache Config Set identifier. + OciCacheConfigSetId *string `mandatory:"true" contributesTo:"path" name:"ociCacheConfigSetId"` + + // 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"` + + // 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 DeleteOciCacheConfigSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteOciCacheConfigSetRequest) 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 DeleteOciCacheConfigSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteOciCacheConfigSetRequest) 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 DeleteOciCacheConfigSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteOciCacheConfigSetResponse wrapper for the DeleteOciCacheConfigSet operation +type DeleteOciCacheConfigSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteOciCacheConfigSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteOciCacheConfigSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/get_oci_cache_config_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/get_oci_cache_config_set_request_response.go new file mode 100644 index 00000000000..e7c92615b48 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/get_oci_cache_config_set_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2025, 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 redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetOciCacheConfigSetRequest wrapper for the GetOciCacheConfigSet operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/GetOciCacheConfigSet.go.html to see an example of how to use GetOciCacheConfigSetRequest. +type GetOciCacheConfigSetRequest struct { + + // Unique OCI Cache Config Set identifier. + OciCacheConfigSetId *string `mandatory:"true" contributesTo:"path" name:"ociCacheConfigSetId"` + + // The client request ID for tracing. + 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 GetOciCacheConfigSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetOciCacheConfigSetRequest) 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 GetOciCacheConfigSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetOciCacheConfigSetRequest) 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 GetOciCacheConfigSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetOciCacheConfigSetResponse wrapper for the GetOciCacheConfigSet operation +type GetOciCacheConfigSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OciCacheConfigSet instance + OciCacheConfigSet `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetOciCacheConfigSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetOciCacheConfigSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/get_oci_cache_default_config_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/get_oci_cache_default_config_set_request_response.go new file mode 100644 index 00000000000..bedf42067fe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/get_oci_cache_default_config_set_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2025, 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 redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetOciCacheDefaultConfigSetRequest wrapper for the GetOciCacheDefaultConfigSet operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/GetOciCacheDefaultConfigSet.go.html to see an example of how to use GetOciCacheDefaultConfigSetRequest. +type GetOciCacheDefaultConfigSetRequest struct { + + // The unique identifier for the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Unique OCI Cache Default Config Set identifier. + OciCacheDefaultConfigSetId *string `mandatory:"true" contributesTo:"path" name:"ociCacheDefaultConfigSetId"` + + // The client request ID for tracing. + 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 GetOciCacheDefaultConfigSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetOciCacheDefaultConfigSetRequest) 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 GetOciCacheDefaultConfigSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetOciCacheDefaultConfigSetRequest) 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 GetOciCacheDefaultConfigSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetOciCacheDefaultConfigSetResponse wrapper for the GetOciCacheDefaultConfigSet operation +type GetOciCacheDefaultConfigSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OciCacheDefaultConfigSet instance + OciCacheDefaultConfigSet `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetOciCacheDefaultConfigSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetOciCacheDefaultConfigSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/list_associated_oci_cache_clusters_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/list_associated_oci_cache_clusters_request_response.go new file mode 100644 index 00000000000..4729ed1898b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/list_associated_oci_cache_clusters_request_response.go @@ -0,0 +1,197 @@ +// Copyright (c) 2016, 2018, 2025, 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 redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListAssociatedOciCacheClustersRequest wrapper for the ListAssociatedOciCacheClusters operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/ListAssociatedOciCacheClusters.go.html to see an example of how to use ListAssociatedOciCacheClustersRequest. +type ListAssociatedOciCacheClustersRequest struct { + + // Unique OCI Cache Config Set identifier. + OciCacheConfigSetId *string `mandatory:"true" contributesTo:"path" name:"ociCacheConfigSetId"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'ASC' or 'DESC'. + SortOrder ListAssociatedOciCacheClustersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + SortBy ListAssociatedOciCacheClustersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The client request ID for tracing. + 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 ListAssociatedOciCacheClustersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAssociatedOciCacheClustersRequest) 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 ListAssociatedOciCacheClustersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAssociatedOciCacheClustersRequest) 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 ListAssociatedOciCacheClustersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListAssociatedOciCacheClustersSortOrderEnum(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(GetListAssociatedOciCacheClustersSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListAssociatedOciCacheClustersSortByEnum(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(GetListAssociatedOciCacheClustersSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListAssociatedOciCacheClustersResponse wrapper for the ListAssociatedOciCacheClusters operation +type ListAssociatedOciCacheClustersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of AssociatedOciCacheClusterCollection instances + AssociatedOciCacheClusterCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListAssociatedOciCacheClustersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAssociatedOciCacheClustersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAssociatedOciCacheClustersSortOrderEnum Enum with underlying type: string +type ListAssociatedOciCacheClustersSortOrderEnum string + +// Set of constants representing the allowable values for ListAssociatedOciCacheClustersSortOrderEnum +const ( + ListAssociatedOciCacheClustersSortOrderAsc ListAssociatedOciCacheClustersSortOrderEnum = "ASC" + ListAssociatedOciCacheClustersSortOrderDesc ListAssociatedOciCacheClustersSortOrderEnum = "DESC" +) + +var mappingListAssociatedOciCacheClustersSortOrderEnum = map[string]ListAssociatedOciCacheClustersSortOrderEnum{ + "ASC": ListAssociatedOciCacheClustersSortOrderAsc, + "DESC": ListAssociatedOciCacheClustersSortOrderDesc, +} + +var mappingListAssociatedOciCacheClustersSortOrderEnumLowerCase = map[string]ListAssociatedOciCacheClustersSortOrderEnum{ + "asc": ListAssociatedOciCacheClustersSortOrderAsc, + "desc": ListAssociatedOciCacheClustersSortOrderDesc, +} + +// GetListAssociatedOciCacheClustersSortOrderEnumValues Enumerates the set of values for ListAssociatedOciCacheClustersSortOrderEnum +func GetListAssociatedOciCacheClustersSortOrderEnumValues() []ListAssociatedOciCacheClustersSortOrderEnum { + values := make([]ListAssociatedOciCacheClustersSortOrderEnum, 0) + for _, v := range mappingListAssociatedOciCacheClustersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListAssociatedOciCacheClustersSortOrderEnumStringValues Enumerates the set of values in String for ListAssociatedOciCacheClustersSortOrderEnum +func GetListAssociatedOciCacheClustersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListAssociatedOciCacheClustersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAssociatedOciCacheClustersSortOrderEnum(val string) (ListAssociatedOciCacheClustersSortOrderEnum, bool) { + enum, ok := mappingListAssociatedOciCacheClustersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListAssociatedOciCacheClustersSortByEnum Enum with underlying type: string +type ListAssociatedOciCacheClustersSortByEnum string + +// Set of constants representing the allowable values for ListAssociatedOciCacheClustersSortByEnum +const ( + ListAssociatedOciCacheClustersSortByTimecreated ListAssociatedOciCacheClustersSortByEnum = "timeCreated" + ListAssociatedOciCacheClustersSortByDisplayname ListAssociatedOciCacheClustersSortByEnum = "displayName" +) + +var mappingListAssociatedOciCacheClustersSortByEnum = map[string]ListAssociatedOciCacheClustersSortByEnum{ + "timeCreated": ListAssociatedOciCacheClustersSortByTimecreated, + "displayName": ListAssociatedOciCacheClustersSortByDisplayname, +} + +var mappingListAssociatedOciCacheClustersSortByEnumLowerCase = map[string]ListAssociatedOciCacheClustersSortByEnum{ + "timecreated": ListAssociatedOciCacheClustersSortByTimecreated, + "displayname": ListAssociatedOciCacheClustersSortByDisplayname, +} + +// GetListAssociatedOciCacheClustersSortByEnumValues Enumerates the set of values for ListAssociatedOciCacheClustersSortByEnum +func GetListAssociatedOciCacheClustersSortByEnumValues() []ListAssociatedOciCacheClustersSortByEnum { + values := make([]ListAssociatedOciCacheClustersSortByEnum, 0) + for _, v := range mappingListAssociatedOciCacheClustersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListAssociatedOciCacheClustersSortByEnumStringValues Enumerates the set of values in String for ListAssociatedOciCacheClustersSortByEnum +func GetListAssociatedOciCacheClustersSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListAssociatedOciCacheClustersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAssociatedOciCacheClustersSortByEnum(val string) (ListAssociatedOciCacheClustersSortByEnum, bool) { + enum, ok := mappingListAssociatedOciCacheClustersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/list_oci_cache_config_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/list_oci_cache_config_sets_request_response.go new file mode 100644 index 00000000000..287616380f0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/list_oci_cache_config_sets_request_response.go @@ -0,0 +1,215 @@ +// Copyright (c) 2016, 2018, 2025, 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 redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListOciCacheConfigSetsRequest wrapper for the ListOciCacheConfigSets operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/ListOciCacheConfigSets.go.html to see an example of how to use ListOciCacheConfigSetsRequest. +type ListOciCacheConfigSetsRequest struct { + + // The ID of the compartment in which to list resources. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // A filter to return the OCI Cache Config Set resources, whose lifecycle state matches with the given lifecycle state. + LifecycleState OciCacheConfigSetLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return the OCI Cache Config Set resources, whose software version matches with the given software version. + SoftwareVersion OciCacheConfigSetSoftwareVersionEnum `mandatory:"false" contributesTo:"query" name:"softwareVersion" omitEmpty:"true"` + + // A filter to return only resources that match the entire display name given. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Unique OCI Cache Config Set identifier. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'ASC' or 'DESC'. + SortOrder ListOciCacheConfigSetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + SortBy ListOciCacheConfigSetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The client request ID for tracing. + 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 ListOciCacheConfigSetsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListOciCacheConfigSetsRequest) 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 ListOciCacheConfigSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListOciCacheConfigSetsRequest) 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 ListOciCacheConfigSetsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOciCacheConfigSetLifecycleStateEnum(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(GetOciCacheConfigSetLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingOciCacheConfigSetSoftwareVersionEnum(string(request.SoftwareVersion)); !ok && request.SoftwareVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SoftwareVersion: %s. Supported values are: %s.", request.SoftwareVersion, strings.Join(GetOciCacheConfigSetSoftwareVersionEnumStringValues(), ","))) + } + if _, ok := GetMappingListOciCacheConfigSetsSortOrderEnum(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(GetListOciCacheConfigSetsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListOciCacheConfigSetsSortByEnum(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(GetListOciCacheConfigSetsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListOciCacheConfigSetsResponse wrapper for the ListOciCacheConfigSets operation +type ListOciCacheConfigSetsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of OciCacheConfigSetCollection instances + OciCacheConfigSetCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListOciCacheConfigSetsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListOciCacheConfigSetsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListOciCacheConfigSetsSortOrderEnum Enum with underlying type: string +type ListOciCacheConfigSetsSortOrderEnum string + +// Set of constants representing the allowable values for ListOciCacheConfigSetsSortOrderEnum +const ( + ListOciCacheConfigSetsSortOrderAsc ListOciCacheConfigSetsSortOrderEnum = "ASC" + ListOciCacheConfigSetsSortOrderDesc ListOciCacheConfigSetsSortOrderEnum = "DESC" +) + +var mappingListOciCacheConfigSetsSortOrderEnum = map[string]ListOciCacheConfigSetsSortOrderEnum{ + "ASC": ListOciCacheConfigSetsSortOrderAsc, + "DESC": ListOciCacheConfigSetsSortOrderDesc, +} + +var mappingListOciCacheConfigSetsSortOrderEnumLowerCase = map[string]ListOciCacheConfigSetsSortOrderEnum{ + "asc": ListOciCacheConfigSetsSortOrderAsc, + "desc": ListOciCacheConfigSetsSortOrderDesc, +} + +// GetListOciCacheConfigSetsSortOrderEnumValues Enumerates the set of values for ListOciCacheConfigSetsSortOrderEnum +func GetListOciCacheConfigSetsSortOrderEnumValues() []ListOciCacheConfigSetsSortOrderEnum { + values := make([]ListOciCacheConfigSetsSortOrderEnum, 0) + for _, v := range mappingListOciCacheConfigSetsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListOciCacheConfigSetsSortOrderEnumStringValues Enumerates the set of values in String for ListOciCacheConfigSetsSortOrderEnum +func GetListOciCacheConfigSetsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListOciCacheConfigSetsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListOciCacheConfigSetsSortOrderEnum(val string) (ListOciCacheConfigSetsSortOrderEnum, bool) { + enum, ok := mappingListOciCacheConfigSetsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListOciCacheConfigSetsSortByEnum Enum with underlying type: string +type ListOciCacheConfigSetsSortByEnum string + +// Set of constants representing the allowable values for ListOciCacheConfigSetsSortByEnum +const ( + ListOciCacheConfigSetsSortByTimecreated ListOciCacheConfigSetsSortByEnum = "timeCreated" + ListOciCacheConfigSetsSortByDisplayname ListOciCacheConfigSetsSortByEnum = "displayName" +) + +var mappingListOciCacheConfigSetsSortByEnum = map[string]ListOciCacheConfigSetsSortByEnum{ + "timeCreated": ListOciCacheConfigSetsSortByTimecreated, + "displayName": ListOciCacheConfigSetsSortByDisplayname, +} + +var mappingListOciCacheConfigSetsSortByEnumLowerCase = map[string]ListOciCacheConfigSetsSortByEnum{ + "timecreated": ListOciCacheConfigSetsSortByTimecreated, + "displayname": ListOciCacheConfigSetsSortByDisplayname, +} + +// GetListOciCacheConfigSetsSortByEnumValues Enumerates the set of values for ListOciCacheConfigSetsSortByEnum +func GetListOciCacheConfigSetsSortByEnumValues() []ListOciCacheConfigSetsSortByEnum { + values := make([]ListOciCacheConfigSetsSortByEnum, 0) + for _, v := range mappingListOciCacheConfigSetsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListOciCacheConfigSetsSortByEnumStringValues Enumerates the set of values in String for ListOciCacheConfigSetsSortByEnum +func GetListOciCacheConfigSetsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListOciCacheConfigSetsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListOciCacheConfigSetsSortByEnum(val string) (ListOciCacheConfigSetsSortByEnum, bool) { + enum, ok := mappingListOciCacheConfigSetsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/list_oci_cache_default_config_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/list_oci_cache_default_config_sets_request_response.go new file mode 100644 index 00000000000..12359151e7e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/list_oci_cache_default_config_sets_request_response.go @@ -0,0 +1,215 @@ +// Copyright (c) 2016, 2018, 2025, 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 redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListOciCacheDefaultConfigSetsRequest wrapper for the ListOciCacheDefaultConfigSets operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/ListOciCacheDefaultConfigSets.go.html to see an example of how to use ListOciCacheDefaultConfigSetsRequest. +type ListOciCacheDefaultConfigSetsRequest struct { + + // The unique identifier for the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Unique OCI Cache Default Config Set identifier. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // A filter to return the OCI Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state. + LifecycleState OciCacheDefaultConfigSetLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return the OCI Cache Config Set resources, whose software version matches with the given software version. + SoftwareVersion OciCacheConfigSetSoftwareVersionEnum `mandatory:"false" contributesTo:"query" name:"softwareVersion" omitEmpty:"true"` + + // A filter to return only resources that match the entire display name given. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + SortBy ListOciCacheDefaultConfigSetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'ASC' or 'DESC'. + SortOrder ListOciCacheDefaultConfigSetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The client request ID for tracing. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The maximum number of items to return. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListOciCacheDefaultConfigSetsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListOciCacheDefaultConfigSetsRequest) 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 ListOciCacheDefaultConfigSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListOciCacheDefaultConfigSetsRequest) 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 ListOciCacheDefaultConfigSetsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOciCacheDefaultConfigSetLifecycleStateEnum(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(GetOciCacheDefaultConfigSetLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingOciCacheConfigSetSoftwareVersionEnum(string(request.SoftwareVersion)); !ok && request.SoftwareVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SoftwareVersion: %s. Supported values are: %s.", request.SoftwareVersion, strings.Join(GetOciCacheConfigSetSoftwareVersionEnumStringValues(), ","))) + } + if _, ok := GetMappingListOciCacheDefaultConfigSetsSortByEnum(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(GetListOciCacheDefaultConfigSetsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListOciCacheDefaultConfigSetsSortOrderEnum(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(GetListOciCacheDefaultConfigSetsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListOciCacheDefaultConfigSetsResponse wrapper for the ListOciCacheDefaultConfigSets operation +type ListOciCacheDefaultConfigSetsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of OciCacheDefaultConfigSetCollection instances + OciCacheDefaultConfigSetCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListOciCacheDefaultConfigSetsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListOciCacheDefaultConfigSetsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListOciCacheDefaultConfigSetsSortByEnum Enum with underlying type: string +type ListOciCacheDefaultConfigSetsSortByEnum string + +// Set of constants representing the allowable values for ListOciCacheDefaultConfigSetsSortByEnum +const ( + ListOciCacheDefaultConfigSetsSortByTimecreated ListOciCacheDefaultConfigSetsSortByEnum = "timeCreated" + ListOciCacheDefaultConfigSetsSortByDisplayname ListOciCacheDefaultConfigSetsSortByEnum = "displayName" +) + +var mappingListOciCacheDefaultConfigSetsSortByEnum = map[string]ListOciCacheDefaultConfigSetsSortByEnum{ + "timeCreated": ListOciCacheDefaultConfigSetsSortByTimecreated, + "displayName": ListOciCacheDefaultConfigSetsSortByDisplayname, +} + +var mappingListOciCacheDefaultConfigSetsSortByEnumLowerCase = map[string]ListOciCacheDefaultConfigSetsSortByEnum{ + "timecreated": ListOciCacheDefaultConfigSetsSortByTimecreated, + "displayname": ListOciCacheDefaultConfigSetsSortByDisplayname, +} + +// GetListOciCacheDefaultConfigSetsSortByEnumValues Enumerates the set of values for ListOciCacheDefaultConfigSetsSortByEnum +func GetListOciCacheDefaultConfigSetsSortByEnumValues() []ListOciCacheDefaultConfigSetsSortByEnum { + values := make([]ListOciCacheDefaultConfigSetsSortByEnum, 0) + for _, v := range mappingListOciCacheDefaultConfigSetsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListOciCacheDefaultConfigSetsSortByEnumStringValues Enumerates the set of values in String for ListOciCacheDefaultConfigSetsSortByEnum +func GetListOciCacheDefaultConfigSetsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListOciCacheDefaultConfigSetsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListOciCacheDefaultConfigSetsSortByEnum(val string) (ListOciCacheDefaultConfigSetsSortByEnum, bool) { + enum, ok := mappingListOciCacheDefaultConfigSetsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListOciCacheDefaultConfigSetsSortOrderEnum Enum with underlying type: string +type ListOciCacheDefaultConfigSetsSortOrderEnum string + +// Set of constants representing the allowable values for ListOciCacheDefaultConfigSetsSortOrderEnum +const ( + ListOciCacheDefaultConfigSetsSortOrderAsc ListOciCacheDefaultConfigSetsSortOrderEnum = "ASC" + ListOciCacheDefaultConfigSetsSortOrderDesc ListOciCacheDefaultConfigSetsSortOrderEnum = "DESC" +) + +var mappingListOciCacheDefaultConfigSetsSortOrderEnum = map[string]ListOciCacheDefaultConfigSetsSortOrderEnum{ + "ASC": ListOciCacheDefaultConfigSetsSortOrderAsc, + "DESC": ListOciCacheDefaultConfigSetsSortOrderDesc, +} + +var mappingListOciCacheDefaultConfigSetsSortOrderEnumLowerCase = map[string]ListOciCacheDefaultConfigSetsSortOrderEnum{ + "asc": ListOciCacheDefaultConfigSetsSortOrderAsc, + "desc": ListOciCacheDefaultConfigSetsSortOrderDesc, +} + +// GetListOciCacheDefaultConfigSetsSortOrderEnumValues Enumerates the set of values for ListOciCacheDefaultConfigSetsSortOrderEnum +func GetListOciCacheDefaultConfigSetsSortOrderEnumValues() []ListOciCacheDefaultConfigSetsSortOrderEnum { + values := make([]ListOciCacheDefaultConfigSetsSortOrderEnum, 0) + for _, v := range mappingListOciCacheDefaultConfigSetsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListOciCacheDefaultConfigSetsSortOrderEnumStringValues Enumerates the set of values in String for ListOciCacheDefaultConfigSetsSortOrderEnum +func GetListOciCacheDefaultConfigSetsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListOciCacheDefaultConfigSetsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListOciCacheDefaultConfigSetsSortOrderEnum(val string) (ListOciCacheDefaultConfigSetsSortOrderEnum, bool) { + enum, ok := mappingListOciCacheDefaultConfigSetsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_config_set.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_config_set.go new file mode 100644 index 00000000000..5b955cf81d2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_config_set.go @@ -0,0 +1,187 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OciCacheConfigSet Configurations for OCI Cache to manage the behavior, performance, and functionality of the underlying cache engine. +type OciCacheConfigSet struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the OCI Cache Config Set. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the OCI Cache Config Set. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The current state of the OCI Cache Config Set. + LifecycleState OciCacheConfigSetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCI Cache engine version that the cluster is running. + SoftwareVersion OciCacheConfigSetSoftwareVersionEnum `mandatory:"true" json:"softwareVersion"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the default OCI Cache Config Set which the custom OCI Cache Config Set is based upon. + DefaultConfigSetId *string `mandatory:"false" json:"defaultConfigSetId"` + + // A description of the OCI Cache Config Set. + Description *string `mandatory:"false" json:"description"` + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The date and time the OCI Cache Config Set was created. An RFC3339 (https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The date and time the OCI Cache Config Set was updated. An RFC3339 (https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + ConfigurationDetails *ConfigurationDetails `mandatory:"false" json:"configurationDetails"` + + // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + // Example: `{"bar-key": "value"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m OciCacheConfigSet) 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 OciCacheConfigSet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOciCacheConfigSetLifecycleStateEnum(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(GetOciCacheConfigSetLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingOciCacheConfigSetSoftwareVersionEnum(string(m.SoftwareVersion)); !ok && m.SoftwareVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SoftwareVersion: %s. Supported values are: %s.", m.SoftwareVersion, strings.Join(GetOciCacheConfigSetSoftwareVersionEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// OciCacheConfigSetLifecycleStateEnum Enum with underlying type: string +type OciCacheConfigSetLifecycleStateEnum string + +// Set of constants representing the allowable values for OciCacheConfigSetLifecycleStateEnum +const ( + OciCacheConfigSetLifecycleStateCreating OciCacheConfigSetLifecycleStateEnum = "CREATING" + OciCacheConfigSetLifecycleStateUpdating OciCacheConfigSetLifecycleStateEnum = "UPDATING" + OciCacheConfigSetLifecycleStateActive OciCacheConfigSetLifecycleStateEnum = "ACTIVE" + OciCacheConfigSetLifecycleStateDeleting OciCacheConfigSetLifecycleStateEnum = "DELETING" + OciCacheConfigSetLifecycleStateDeleted OciCacheConfigSetLifecycleStateEnum = "DELETED" + OciCacheConfigSetLifecycleStateFailed OciCacheConfigSetLifecycleStateEnum = "FAILED" +) + +var mappingOciCacheConfigSetLifecycleStateEnum = map[string]OciCacheConfigSetLifecycleStateEnum{ + "CREATING": OciCacheConfigSetLifecycleStateCreating, + "UPDATING": OciCacheConfigSetLifecycleStateUpdating, + "ACTIVE": OciCacheConfigSetLifecycleStateActive, + "DELETING": OciCacheConfigSetLifecycleStateDeleting, + "DELETED": OciCacheConfigSetLifecycleStateDeleted, + "FAILED": OciCacheConfigSetLifecycleStateFailed, +} + +var mappingOciCacheConfigSetLifecycleStateEnumLowerCase = map[string]OciCacheConfigSetLifecycleStateEnum{ + "creating": OciCacheConfigSetLifecycleStateCreating, + "updating": OciCacheConfigSetLifecycleStateUpdating, + "active": OciCacheConfigSetLifecycleStateActive, + "deleting": OciCacheConfigSetLifecycleStateDeleting, + "deleted": OciCacheConfigSetLifecycleStateDeleted, + "failed": OciCacheConfigSetLifecycleStateFailed, +} + +// GetOciCacheConfigSetLifecycleStateEnumValues Enumerates the set of values for OciCacheConfigSetLifecycleStateEnum +func GetOciCacheConfigSetLifecycleStateEnumValues() []OciCacheConfigSetLifecycleStateEnum { + values := make([]OciCacheConfigSetLifecycleStateEnum, 0) + for _, v := range mappingOciCacheConfigSetLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetOciCacheConfigSetLifecycleStateEnumStringValues Enumerates the set of values in String for OciCacheConfigSetLifecycleStateEnum +func GetOciCacheConfigSetLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingOciCacheConfigSetLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOciCacheConfigSetLifecycleStateEnum(val string) (OciCacheConfigSetLifecycleStateEnum, bool) { + enum, ok := mappingOciCacheConfigSetLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// OciCacheConfigSetSoftwareVersionEnum Enum with underlying type: string +type OciCacheConfigSetSoftwareVersionEnum string + +// Set of constants representing the allowable values for OciCacheConfigSetSoftwareVersionEnum +const ( + OciCacheConfigSetSoftwareVersionV705 OciCacheConfigSetSoftwareVersionEnum = "V7_0_5" + OciCacheConfigSetSoftwareVersionRedis70 OciCacheConfigSetSoftwareVersionEnum = "REDIS_7_0" + OciCacheConfigSetSoftwareVersionValkey72 OciCacheConfigSetSoftwareVersionEnum = "VALKEY_7_2" +) + +var mappingOciCacheConfigSetSoftwareVersionEnum = map[string]OciCacheConfigSetSoftwareVersionEnum{ + "V7_0_5": OciCacheConfigSetSoftwareVersionV705, + "REDIS_7_0": OciCacheConfigSetSoftwareVersionRedis70, + "VALKEY_7_2": OciCacheConfigSetSoftwareVersionValkey72, +} + +var mappingOciCacheConfigSetSoftwareVersionEnumLowerCase = map[string]OciCacheConfigSetSoftwareVersionEnum{ + "v7_0_5": OciCacheConfigSetSoftwareVersionV705, + "redis_7_0": OciCacheConfigSetSoftwareVersionRedis70, + "valkey_7_2": OciCacheConfigSetSoftwareVersionValkey72, +} + +// GetOciCacheConfigSetSoftwareVersionEnumValues Enumerates the set of values for OciCacheConfigSetSoftwareVersionEnum +func GetOciCacheConfigSetSoftwareVersionEnumValues() []OciCacheConfigSetSoftwareVersionEnum { + values := make([]OciCacheConfigSetSoftwareVersionEnum, 0) + for _, v := range mappingOciCacheConfigSetSoftwareVersionEnum { + values = append(values, v) + } + return values +} + +// GetOciCacheConfigSetSoftwareVersionEnumStringValues Enumerates the set of values in String for OciCacheConfigSetSoftwareVersionEnum +func GetOciCacheConfigSetSoftwareVersionEnumStringValues() []string { + return []string{ + "V7_0_5", + "REDIS_7_0", + "VALKEY_7_2", + } +} + +// GetMappingOciCacheConfigSetSoftwareVersionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOciCacheConfigSetSoftwareVersionEnum(val string) (OciCacheConfigSetSoftwareVersionEnum, bool) { + enum, ok := mappingOciCacheConfigSetSoftwareVersionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_config_set_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_config_set_collection.go new file mode 100644 index 00000000000..cd973fc8e5f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_config_set_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OciCacheConfigSetCollection A list of OCI Cache Config Sets that match filter criteria, if any. +type OciCacheConfigSetCollection struct { + + // List of OCI Cache Config Sets. + Items []OciCacheConfigSetSummary `mandatory:"true" json:"items"` +} + +func (m OciCacheConfigSetCollection) 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 OciCacheConfigSetCollection) 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/redis/oci_cache_config_set_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_config_set_summary.go new file mode 100644 index 00000000000..4db15b7bfa9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_config_set_summary.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OciCacheConfigSetSummary Summary of information about the OCI Cache Config Set. +type OciCacheConfigSetSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the OCI Cache Config Set. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the OCI Cache Config Set. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the default OCI Cache Config Set which the custom OCI Cache Config Set is based upon. + DefaultConfigSetId *string `mandatory:"false" json:"defaultConfigSetId"` + + // A user-friendly name of the OCI Cache Config Set. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The current state of the OCI Cache Config Set. + LifecycleState OciCacheConfigSetLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The engine version of the OCI Cache Config Set. + SoftwareVersion OciCacheConfigSetSoftwareVersionEnum `mandatory:"false" json:"softwareVersion,omitempty"` + + // The date and time the configuration was created. An RFC3339 (https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The date and time the configuration was updated. An RFC3339 (https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + // Example: `{"bar-key": "value"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m OciCacheConfigSetSummary) 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 OciCacheConfigSetSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingOciCacheConfigSetLifecycleStateEnum(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(GetOciCacheConfigSetLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingOciCacheConfigSetSoftwareVersionEnum(string(m.SoftwareVersion)); !ok && m.SoftwareVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SoftwareVersion: %s. Supported values are: %s.", m.SoftwareVersion, strings.Join(GetOciCacheConfigSetSoftwareVersionEnumStringValues(), ","))) + } + 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/redis/oci_cache_default_config_set.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_default_config_set.go new file mode 100644 index 00000000000..f65ec3be948 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_default_config_set.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OciCacheDefaultConfigSet Default configurations for OCI Cache to manage the behavior, performance, and functionality of the underlying cache engine. +type OciCacheDefaultConfigSet struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the OCI Cache Default Config Set. + Id *string `mandatory:"true" json:"id"` + + // The engine version of the OCI Cache Default Config Set. + SoftwareVersion OciCacheConfigSetSoftwareVersionEnum `mandatory:"true" json:"softwareVersion"` + + // A user-friendly name of the OCI Cache Default Config Set. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Description of the OCI Cache Default Config Set. + Description *string `mandatory:"false" json:"description"` + + // The date and time the OCI Cache Default Config Set was created. An RFC3339 (https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The current state of the OCI Cache Default Config Set. + LifecycleState OciCacheDefaultConfigSetLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + DefaultConfigurationDetails *DefaultConfigurationDetails `mandatory:"false" json:"defaultConfigurationDetails"` +} + +func (m OciCacheDefaultConfigSet) 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 OciCacheDefaultConfigSet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOciCacheConfigSetSoftwareVersionEnum(string(m.SoftwareVersion)); !ok && m.SoftwareVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SoftwareVersion: %s. Supported values are: %s.", m.SoftwareVersion, strings.Join(GetOciCacheConfigSetSoftwareVersionEnumStringValues(), ","))) + } + + if _, ok := GetMappingOciCacheDefaultConfigSetLifecycleStateEnum(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(GetOciCacheDefaultConfigSetLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// OciCacheDefaultConfigSetLifecycleStateEnum Enum with underlying type: string +type OciCacheDefaultConfigSetLifecycleStateEnum string + +// Set of constants representing the allowable values for OciCacheDefaultConfigSetLifecycleStateEnum +const ( + OciCacheDefaultConfigSetLifecycleStateActive OciCacheDefaultConfigSetLifecycleStateEnum = "ACTIVE" + OciCacheDefaultConfigSetLifecycleStateInactive OciCacheDefaultConfigSetLifecycleStateEnum = "INACTIVE" +) + +var mappingOciCacheDefaultConfigSetLifecycleStateEnum = map[string]OciCacheDefaultConfigSetLifecycleStateEnum{ + "ACTIVE": OciCacheDefaultConfigSetLifecycleStateActive, + "INACTIVE": OciCacheDefaultConfigSetLifecycleStateInactive, +} + +var mappingOciCacheDefaultConfigSetLifecycleStateEnumLowerCase = map[string]OciCacheDefaultConfigSetLifecycleStateEnum{ + "active": OciCacheDefaultConfigSetLifecycleStateActive, + "inactive": OciCacheDefaultConfigSetLifecycleStateInactive, +} + +// GetOciCacheDefaultConfigSetLifecycleStateEnumValues Enumerates the set of values for OciCacheDefaultConfigSetLifecycleStateEnum +func GetOciCacheDefaultConfigSetLifecycleStateEnumValues() []OciCacheDefaultConfigSetLifecycleStateEnum { + values := make([]OciCacheDefaultConfigSetLifecycleStateEnum, 0) + for _, v := range mappingOciCacheDefaultConfigSetLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetOciCacheDefaultConfigSetLifecycleStateEnumStringValues Enumerates the set of values in String for OciCacheDefaultConfigSetLifecycleStateEnum +func GetOciCacheDefaultConfigSetLifecycleStateEnumStringValues() []string { + return []string{ + "ACTIVE", + "INACTIVE", + } +} + +// GetMappingOciCacheDefaultConfigSetLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOciCacheDefaultConfigSetLifecycleStateEnum(val string) (OciCacheDefaultConfigSetLifecycleStateEnum, bool) { + enum, ok := mappingOciCacheDefaultConfigSetLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_default_config_set_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_default_config_set_collection.go new file mode 100644 index 00000000000..97e576bd97b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_default_config_set_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OciCacheDefaultConfigSetCollection A list of OCI Cache Default Config Sets. +type OciCacheDefaultConfigSetCollection struct { + + // List of OCI Cache Default Config Sets. + Items []OciCacheDefaultConfigSetSummary `mandatory:"true" json:"items"` +} + +func (m OciCacheDefaultConfigSetCollection) 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 OciCacheDefaultConfigSetCollection) 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/redis/oci_cache_default_config_set_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_default_config_set_summary.go new file mode 100644 index 00000000000..df00b25d77e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/oci_cache_default_config_set_summary.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OciCacheDefaultConfigSetSummary Summary of information about an OCI Cache Default Config Set. +type OciCacheDefaultConfigSetSummary struct { + + // The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the OCI Cache Default Config Set. + Id *string `mandatory:"true" json:"id"` + + // The engine version of the OCI Cache Default Config Set. + SoftwareVersion OciCacheConfigSetSoftwareVersionEnum `mandatory:"true" json:"softwareVersion"` + + // A user-friendly name of the OCI Cache Default Config Set. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The current state of the OCI Cache Default Config Set. + LifecycleState OciCacheDefaultConfigSetLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The date and time the configuration was created. An RFC3339 (https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m OciCacheDefaultConfigSetSummary) 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 OciCacheDefaultConfigSetSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOciCacheConfigSetSoftwareVersionEnum(string(m.SoftwareVersion)); !ok && m.SoftwareVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SoftwareVersion: %s. Supported values are: %s.", m.SoftwareVersion, strings.Join(GetOciCacheConfigSetSoftwareVersionEnumStringValues(), ","))) + } + + if _, ok := GetMappingOciCacheDefaultConfigSetLifecycleStateEnum(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(GetOciCacheDefaultConfigSetLifecycleStateEnumStringValues(), ","))) + } + 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/redis/redis_cluster.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_cluster.go index df5e314f0a6..29a5af33e9d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_cluster.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_cluster.go @@ -65,6 +65,9 @@ type RedisCluster struct { // The date and time the cluster was updated. An RFC3339 (https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + // The ID of the corresponding OCI Cache Config Set for the cluster. + OciCacheConfigSetId *string `mandatory:"false" json:"ociCacheConfigSetId"` + // Specifies whether the cluster is sharded or non-sharded. ClusterMode RedisClusterClusterModeEnum `mandatory:"false" json:"clusterMode,omitempty"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_cluster_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_cluster_summary.go index d1eaadab36b..a32bc371052 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_cluster_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_cluster_summary.go @@ -63,6 +63,9 @@ type RedisClusterSummary struct { // The date and time the cluster was updated. An RFC3339 (https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + // The ID of the corresponding OCI Cache Config Set for the cluster. + OciCacheConfigSetId *string `mandatory:"false" json:"ociCacheConfigSetId"` + // Specifies whether the cluster is sharded or non-sharded. ClusterMode RedisClusterClusterModeEnum `mandatory:"false" json:"clusterMode,omitempty"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_ocicacheconfigset_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_ocicacheconfigset_client.go new file mode 100644 index 00000000000..0f662bdd89b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_ocicacheconfigset_client.go @@ -0,0 +1,508 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// OciCacheConfigSetClient a client for OciCacheConfigSet +type OciCacheConfigSetClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewOciCacheConfigSetClientWithConfigurationProvider Creates a new default OciCacheConfigSet client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewOciCacheConfigSetClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OciCacheConfigSetClient, err error) { + if enabled := common.CheckForEnabledServices("redis"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newOciCacheConfigSetClientFromBaseClient(baseClient, provider) +} + +// NewOciCacheConfigSetClientWithOboToken Creates a new default OciCacheConfigSet client with the given configuration provider. +// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer +// +// as well as reading the region +func NewOciCacheConfigSetClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OciCacheConfigSetClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newOciCacheConfigSetClientFromBaseClient(baseClient, configProvider) +} + +func newOciCacheConfigSetClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client OciCacheConfigSetClient, err error) { + // OciCacheConfigSet service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("OciCacheConfigSet")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = OciCacheConfigSetClient{BaseClient: baseClient} + client.BasePath = "20220315" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *OciCacheConfigSetClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("redis", "https://redis.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *OciCacheConfigSetClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *OciCacheConfigSetClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// ChangeOciCacheConfigSetCompartment Moves an OCI Cache Config Set into a different compartment within the same tenancy. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/ChangeOciCacheConfigSetCompartment.go.html to see an example of how to use ChangeOciCacheConfigSetCompartment API. +// A default retry strategy applies to this operation ChangeOciCacheConfigSetCompartment() +func (client OciCacheConfigSetClient) ChangeOciCacheConfigSetCompartment(ctx context.Context, request ChangeOciCacheConfigSetCompartmentRequest) (response ChangeOciCacheConfigSetCompartmentResponse, 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.changeOciCacheConfigSetCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeOciCacheConfigSetCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeOciCacheConfigSetCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeOciCacheConfigSetCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeOciCacheConfigSetCompartmentResponse") + } + return +} + +// changeOciCacheConfigSetCompartment implements the OCIOperation interface (enables retrying operations) +func (client OciCacheConfigSetClient) changeOciCacheConfigSetCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/ociCacheConfigSets/{ociCacheConfigSetId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeOciCacheConfigSetCompartmentResponse + 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/ocicache/20220315/OciCacheConfigSet/ChangeOciCacheConfigSetCompartment" + err = common.PostProcessServiceError(err, "OciCacheConfigSet", "ChangeOciCacheConfigSetCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateOciCacheConfigSet Create a new OCI Cache Config Set for the given OCI cache engine version. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/CreateOciCacheConfigSet.go.html to see an example of how to use CreateOciCacheConfigSet API. +// A default retry strategy applies to this operation CreateOciCacheConfigSet() +func (client OciCacheConfigSetClient) CreateOciCacheConfigSet(ctx context.Context, request CreateOciCacheConfigSetRequest) (response CreateOciCacheConfigSetResponse, 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.createOciCacheConfigSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateOciCacheConfigSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateOciCacheConfigSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateOciCacheConfigSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateOciCacheConfigSetResponse") + } + return +} + +// createOciCacheConfigSet implements the OCIOperation interface (enables retrying operations) +func (client OciCacheConfigSetClient) createOciCacheConfigSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/ociCacheConfigSets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateOciCacheConfigSetResponse + 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/ocicache/20220315/OciCacheConfigSet/CreateOciCacheConfigSet" + err = common.PostProcessServiceError(err, "OciCacheConfigSet", "CreateOciCacheConfigSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteOciCacheConfigSet Deletes the specified OCI Cache Config Set. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/DeleteOciCacheConfigSet.go.html to see an example of how to use DeleteOciCacheConfigSet API. +// A default retry strategy applies to this operation DeleteOciCacheConfigSet() +func (client OciCacheConfigSetClient) DeleteOciCacheConfigSet(ctx context.Context, request DeleteOciCacheConfigSetRequest) (response DeleteOciCacheConfigSetResponse, 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.deleteOciCacheConfigSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteOciCacheConfigSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteOciCacheConfigSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteOciCacheConfigSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteOciCacheConfigSetResponse") + } + return +} + +// deleteOciCacheConfigSet implements the OCIOperation interface (enables retrying operations) +func (client OciCacheConfigSetClient) deleteOciCacheConfigSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/ociCacheConfigSets/{ociCacheConfigSetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteOciCacheConfigSetResponse + 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/ocicache/20220315/OciCacheConfigSet/DeleteOciCacheConfigSet" + err = common.PostProcessServiceError(err, "OciCacheConfigSet", "DeleteOciCacheConfigSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetOciCacheConfigSet Retrieves the specified OCI Cache Config Set. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/GetOciCacheConfigSet.go.html to see an example of how to use GetOciCacheConfigSet API. +// A default retry strategy applies to this operation GetOciCacheConfigSet() +func (client OciCacheConfigSetClient) GetOciCacheConfigSet(ctx context.Context, request GetOciCacheConfigSetRequest) (response GetOciCacheConfigSetResponse, 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.getOciCacheConfigSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetOciCacheConfigSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetOciCacheConfigSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetOciCacheConfigSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetOciCacheConfigSetResponse") + } + return +} + +// getOciCacheConfigSet implements the OCIOperation interface (enables retrying operations) +func (client OciCacheConfigSetClient) getOciCacheConfigSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/ociCacheConfigSets/{ociCacheConfigSetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetOciCacheConfigSetResponse + 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/ocicache/20220315/OciCacheConfigSet/GetOciCacheConfigSet" + err = common.PostProcessServiceError(err, "OciCacheConfigSet", "GetOciCacheConfigSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAssociatedOciCacheClusters Gets a list of associated OCI Cache clusters for an OCI Cache Config Set. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/ListAssociatedOciCacheClusters.go.html to see an example of how to use ListAssociatedOciCacheClusters API. +// A default retry strategy applies to this operation ListAssociatedOciCacheClusters() +func (client OciCacheConfigSetClient) ListAssociatedOciCacheClusters(ctx context.Context, request ListAssociatedOciCacheClustersRequest) (response ListAssociatedOciCacheClustersResponse, 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.listAssociatedOciCacheClusters, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListAssociatedOciCacheClustersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListAssociatedOciCacheClustersResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListAssociatedOciCacheClustersResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListAssociatedOciCacheClustersResponse") + } + return +} + +// listAssociatedOciCacheClusters implements the OCIOperation interface (enables retrying operations) +func (client OciCacheConfigSetClient) listAssociatedOciCacheClusters(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/ociCacheConfigSets/{ociCacheConfigSetId}/actions/listAssociatedOciCacheClusters", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListAssociatedOciCacheClustersResponse + 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/ocicache/20220315/AssociatedOciCacheClusterSummary/ListAssociatedOciCacheClusters" + err = common.PostProcessServiceError(err, "OciCacheConfigSet", "ListAssociatedOciCacheClusters", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListOciCacheConfigSets Lists the OCI Cache Config Sets in the specified compartment. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/ListOciCacheConfigSets.go.html to see an example of how to use ListOciCacheConfigSets API. +// A default retry strategy applies to this operation ListOciCacheConfigSets() +func (client OciCacheConfigSetClient) ListOciCacheConfigSets(ctx context.Context, request ListOciCacheConfigSetsRequest) (response ListOciCacheConfigSetsResponse, 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.listOciCacheConfigSets, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListOciCacheConfigSetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListOciCacheConfigSetsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListOciCacheConfigSetsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListOciCacheConfigSetsResponse") + } + return +} + +// listOciCacheConfigSets implements the OCIOperation interface (enables retrying operations) +func (client OciCacheConfigSetClient) listOciCacheConfigSets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/ociCacheConfigSets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListOciCacheConfigSetsResponse + 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/ocicache/20220315/OciCacheConfigSetSummary/ListOciCacheConfigSets" + err = common.PostProcessServiceError(err, "OciCacheConfigSet", "ListOciCacheConfigSets", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateOciCacheConfigSet Updates the specified OCI Cache Config Set. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/UpdateOciCacheConfigSet.go.html to see an example of how to use UpdateOciCacheConfigSet API. +// A default retry strategy applies to this operation UpdateOciCacheConfigSet() +func (client OciCacheConfigSetClient) UpdateOciCacheConfigSet(ctx context.Context, request UpdateOciCacheConfigSetRequest) (response UpdateOciCacheConfigSetResponse, 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.updateOciCacheConfigSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateOciCacheConfigSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateOciCacheConfigSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateOciCacheConfigSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateOciCacheConfigSetResponse") + } + return +} + +// updateOciCacheConfigSet implements the OCIOperation interface (enables retrying operations) +func (client OciCacheConfigSetClient) updateOciCacheConfigSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/ociCacheConfigSets/{ociCacheConfigSetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateOciCacheConfigSetResponse + 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/ocicache/20220315/OciCacheConfigSet/UpdateOciCacheConfigSet" + err = common.PostProcessServiceError(err, "OciCacheConfigSet", "UpdateOciCacheConfigSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_ocicachedefaultconfigset_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_ocicachedefaultconfigset_client.go new file mode 100644 index 00000000000..22367f8bd13 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/redis_ocicachedefaultconfigset_client.go @@ -0,0 +1,208 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// OciCacheDefaultConfigSetClient a client for OciCacheDefaultConfigSet +type OciCacheDefaultConfigSetClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewOciCacheDefaultConfigSetClientWithConfigurationProvider Creates a new default OciCacheDefaultConfigSet client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewOciCacheDefaultConfigSetClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OciCacheDefaultConfigSetClient, err error) { + if enabled := common.CheckForEnabledServices("redis"); !enabled { + return client, fmt.Errorf("the Developer Tool configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local developer-tool-configuration.json file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newOciCacheDefaultConfigSetClientFromBaseClient(baseClient, provider) +} + +// NewOciCacheDefaultConfigSetClientWithOboToken Creates a new default OciCacheDefaultConfigSet client with the given configuration provider. +// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer +// +// as well as reading the region +func NewOciCacheDefaultConfigSetClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OciCacheDefaultConfigSetClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newOciCacheDefaultConfigSetClientFromBaseClient(baseClient, configProvider) +} + +func newOciCacheDefaultConfigSetClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client OciCacheDefaultConfigSetClient, err error) { + // OciCacheDefaultConfigSet service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("OciCacheDefaultConfigSet")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = OciCacheDefaultConfigSetClient{BaseClient: baseClient} + client.BasePath = "20220315" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *OciCacheDefaultConfigSetClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("redis", "https://redis.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *OciCacheDefaultConfigSetClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *OciCacheDefaultConfigSetClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// GetOciCacheDefaultConfigSet Retrieves the specified OCI Cache Default Config Set. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/GetOciCacheDefaultConfigSet.go.html to see an example of how to use GetOciCacheDefaultConfigSet API. +// A default retry strategy applies to this operation GetOciCacheDefaultConfigSet() +func (client OciCacheDefaultConfigSetClient) GetOciCacheDefaultConfigSet(ctx context.Context, request GetOciCacheDefaultConfigSetRequest) (response GetOciCacheDefaultConfigSetResponse, 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.getOciCacheDefaultConfigSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetOciCacheDefaultConfigSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetOciCacheDefaultConfigSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetOciCacheDefaultConfigSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetOciCacheDefaultConfigSetResponse") + } + return +} + +// getOciCacheDefaultConfigSet implements the OCIOperation interface (enables retrying operations) +func (client OciCacheDefaultConfigSetClient) getOciCacheDefaultConfigSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/ociCacheDefaultConfigSets/{ociCacheDefaultConfigSetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetOciCacheDefaultConfigSetResponse + 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/ocicache/20220315/OciCacheDefaultConfigSet/GetOciCacheDefaultConfigSet" + err = common.PostProcessServiceError(err, "OciCacheDefaultConfigSet", "GetOciCacheDefaultConfigSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListOciCacheDefaultConfigSets Lists the OCI Cache Default Config Sets in the specified compartment. +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/ListOciCacheDefaultConfigSets.go.html to see an example of how to use ListOciCacheDefaultConfigSets API. +// A default retry strategy applies to this operation ListOciCacheDefaultConfigSets() +func (client OciCacheDefaultConfigSetClient) ListOciCacheDefaultConfigSets(ctx context.Context, request ListOciCacheDefaultConfigSetsRequest) (response ListOciCacheDefaultConfigSetsResponse, 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.listOciCacheDefaultConfigSets, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListOciCacheDefaultConfigSetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListOciCacheDefaultConfigSetsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListOciCacheDefaultConfigSetsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListOciCacheDefaultConfigSetsResponse") + } + return +} + +// listOciCacheDefaultConfigSets implements the OCIOperation interface (enables retrying operations) +func (client OciCacheDefaultConfigSetClient) listOciCacheDefaultConfigSets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/ociCacheDefaultConfigSets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListOciCacheDefaultConfigSetsResponse + 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/ocicache/20220315/OciCacheDefaultConfigSetSummary/ListOciCacheDefaultConfigSets" + err = common.PostProcessServiceError(err, "OciCacheDefaultConfigSet", "ListOciCacheDefaultConfigSets", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/update_oci_cache_config_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/update_oci_cache_config_set_details.go new file mode 100644 index 00000000000..66a333c0c1e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/update_oci_cache_config_set_details.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2025, 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. + +// OCI Cache API +// +// Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see OCI Cache (https://docs.oracle.com/iaas/Content/ocicache/home.htm). +// + +package redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateOciCacheConfigSetDetails The information to be updated for an existing OCI Cache Config Set. +type UpdateOciCacheConfigSetDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Description for the custom OCI Cache Config Set. + Description *string `mandatory:"false" json:"description"` + + // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + // Example: `{"bar-key": "value"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateOciCacheConfigSetDetails) 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 UpdateOciCacheConfigSetDetails) 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/redis/update_oci_cache_config_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/update_oci_cache_config_set_request_response.go new file mode 100644 index 00000000000..3c8c854b273 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/update_oci_cache_config_set_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2025, 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 redis + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateOciCacheConfigSetRequest wrapper for the UpdateOciCacheConfigSet operation +// +// # See also +// +// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/redis/UpdateOciCacheConfigSet.go.html to see an example of how to use UpdateOciCacheConfigSetRequest. +type UpdateOciCacheConfigSetRequest struct { + + // Unique OCI Cache Config Set identifier. + OciCacheConfigSetId *string `mandatory:"true" contributesTo:"path" name:"ociCacheConfigSetId"` + + // The information to be updated for OCI Cache Config Set. + UpdateOciCacheConfigSetDetails `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"` + + // 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 UpdateOciCacheConfigSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateOciCacheConfigSetRequest) 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 UpdateOciCacheConfigSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateOciCacheConfigSetRequest) 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 UpdateOciCacheConfigSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateOciCacheConfigSetResponse wrapper for the UpdateOciCacheConfigSet operation +type UpdateOciCacheConfigSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateOciCacheConfigSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateOciCacheConfigSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/redis/update_redis_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/redis/update_redis_cluster_details.go index d6233f20ff5..4ea8ff42f66 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v65/redis/update_redis_cluster_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/redis/update_redis_cluster_details.go @@ -18,6 +18,9 @@ import ( // UpdateRedisClusterDetails The configuration to update for an existing cluster. type UpdateRedisClusterDetails struct { + // The ID of the corresponding OCI Cache Config Set for the cluster. + OciCacheConfigSetId *string `mandatory:"false" json:"ociCacheConfigSetId"` + // The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED. ShardCount *int `mandatory:"false" json:"shardCount"` diff --git a/vendor/modules.txt b/vendor/modules.txt index 008e4a8dca1..1e145eeb4ef 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -288,7 +288,7 @@ github.com/mitchellh/reflectwalk # github.com/oklog/run v1.1.0 ## explicit; go 1.13 github.com/oklog/run -# github.com/oracle/oci-go-sdk/v65 v65.97.1 +# github.com/oracle/oci-go-sdk/v65 v65.98.0 ## explicit; go 1.13 github.com/oracle/oci-go-sdk/v65/adm github.com/oracle/oci-go-sdk/v65/aidocument diff --git a/website/docs/d/core_instance_configuration.html.markdown b/website/docs/d/core_instance_configuration.html.markdown index 2017a7806ef..67edaa99ca7 100644 --- a/website/docs/d/core_instance_configuration.html.markdown +++ b/website/docs/d/core_instance_configuration.html.markdown @@ -116,6 +116,7 @@ The following attributes are exported: * `capacity_reservation_id` - The OCID of the compute capacity reservation this instance is launched under. * `cluster_placement_group_id` - The OCID of the cluster placement group of the instance. * `compartment_id` - The OCID of the compartment containing the instance. Instances created from instance configurations are placed in the same compartment as the instance that was used to create the instance configuration. + * `compute_cluster_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the [compute cluster](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. * `create_vnic_details` - Contains the properties of the VNIC for an instance configuration. See [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) and [Instance Configurations](https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm#config) for more information. * `assign_ipv6ip` - Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet. Default: False. When provided you may optionally provide an IPv6 prefix (`ipv6SubnetCidr`) of your choice to assign the IPv6 address from. If `ipv6SubnetCidr` is not provided then an IPv6 prefix is chosen for you. * `assign_private_dns_record` - Whether the VNIC should be assigned a private DNS record. See the `assignPrivateDnsRecord` attribute of [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) for more information. @@ -221,6 +222,9 @@ The following attributes are exported: You'll get back a response that includes all the instance information; only the metadata information; or the metadata information for the specified key name, respectively. The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes. + * `placement_constraint_details` - The details for providing placement constraints. + * `compute_host_group_id` - The OCID of the compute host group. This is only available for dedicated capacity customers. + * `type` - The type for the placement constraints. Use `HOST_GROUP` when specifying the compute host group OCID. * `platform_config` - The platform configuration requested for the instance. If you provide the parameter, the instance is created with the platform configuration that you specify. For any values that you omit, the instance uses the default configuration values for the `shape` that you specify. If you don't provide the parameter, the default values for the `shape` are used. @@ -354,6 +358,7 @@ The following attributes are exported: * `capacity_reservation_id` - The OCID of the compute capacity reservation this instance is launched under. * `cluster_placement_group_id` - The OCID of the cluster placement group of the instance. * `compartment_id` - The OCID of the compartment containing the instance. Instances created from instance configurations are placed in the same compartment as the instance that was used to create the instance configuration. + * `compute_cluster_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the [compute cluster](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. * `create_vnic_details` - Contains the properties of the VNIC for an instance configuration. See [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) and [Instance Configurations](https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm#config) for more information. * `assign_private_dns_record` - Whether the VNIC should be assigned a private DNS record. See the `assignPrivateDnsRecord` attribute of [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) for more information. * `assign_public_ip` - Whether the VNIC should be assigned a public IP address. See the `assignPublicIp` attribute of [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) for more information. @@ -455,6 +460,9 @@ The following attributes are exported: You'll get back a response that includes all the instance information; only the metadata information; or the metadata information for the specified key name, respectively. The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes. + * `placement_constraint_details` - The details for providing placement constraints. + * `compute_host_group_id` - The OCID of the compute host group. This is only available for dedicated capacity customers. + * `type` - The type for the placement constraints. Use `HOST_GROUP` when specifying the compute host group OCID. * `platform_config` - The platform configuration requested for the instance. If you provide the parameter, the instance is created with the platform configuration that you specify. For any values that you omit, the instance uses the default configuration values for the `shape` that you specify. If you don't provide the parameter, the default values for the `shape` are used. diff --git a/website/docs/d/core_instance_configurations.html.markdown b/website/docs/d/core_instance_configurations.html.markdown index 194b0f11791..94ab8c9a9a5 100644 --- a/website/docs/d/core_instance_configurations.html.markdown +++ b/website/docs/d/core_instance_configurations.html.markdown @@ -122,7 +122,8 @@ The following attributes are exported: * `availability_domain` - The availability domain of the instance. Example: `Uocm:PHX-AD-1` * `capacity_reservation_id` - The OCID of the compute capacity reservation this instance is launched under. * `cluster_placement_group_id` - The OCID of the cluster placement group of the instance. - * `compartment_id` - The OCID of the compartment containing the instance. Instances created from instance configurations are placed in the same compartment as the instance that was used to create the instance configuration. + * `compartment_id` - The OCID of the compartment containing the instance. Instances created from instance configurations are placed in the same compartment as the instance that was used to create the instance configuration. + * `compute_cluster_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the [compute cluster](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. * `create_vnic_details` - Contains the properties of the VNIC for an instance configuration. See [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) and [Instance Configurations](https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm#config) for more information. * `assign_ipv6ip` - Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet. Default: False. When provided you may optionally provide an IPv6 prefix (`ipv6SubnetCidr`) of your choice to assign the IPv6 address from. If `ipv6SubnetCidr` is not provided then an IPv6 prefix is chosen for you. * `assign_private_dns_record` - Whether the VNIC should be assigned a private DNS record. See the `assignPrivateDnsRecord` attribute of [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) for more information. @@ -228,6 +229,9 @@ The following attributes are exported: You'll get back a response that includes all the instance information; only the metadata information; or the metadata information for the specified key name, respectively. The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes. + * `placement_constraint_details` - The details for providing placement constraints. + * `compute_host_group_id` - The OCID of the compute host group. This is only available for dedicated capacity customers. + * `type` - The type for the placement constraints. Use `HOST_GROUP` when specifying the compute host group OCID. * `platform_config` - The platform configuration requested for the instance. If you provide the parameter, the instance is created with the platform configuration that you specify. For any values that you omit, the instance uses the default configuration values for the `shape` that you specify. If you don't provide the parameter, the default values for the `shape` are used. @@ -361,6 +365,7 @@ The following attributes are exported: * `capacity_reservation_id` - The OCID of the compute capacity reservation this instance is launched under. * `cluster_placement_group_id` - The OCID of the cluster placement group of the instance. * `compartment_id` - The OCID of the compartment containing the instance. Instances created from instance configurations are placed in the same compartment as the instance that was used to create the instance configuration. + * `compute_cluster_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the [compute cluster](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. * `create_vnic_details` - Contains the properties of the VNIC for an instance configuration. See [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) and [Instance Configurations](https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm#config) for more information. * `assign_private_dns_record` - Whether the VNIC should be assigned a private DNS record. See the `assignPrivateDnsRecord` attribute of [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) for more information. * `assign_public_ip` - Whether the VNIC should be assigned a public IP address. See the `assignPublicIp` attribute of [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) for more information. @@ -462,6 +467,9 @@ The following attributes are exported: You'll get back a response that includes all the instance information; only the metadata information; or the metadata information for the specified key name, respectively. The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes. + * `placement_constraint_details` - The details for providing placement constraints. + * `compute_host_group_id` - The OCID of the compute host group. This is only available for dedicated capacity customers. + * `type` - The type for the placement constraints. Use `HOST_GROUP` when specifying the compute host group OCID. * `platform_config` - The platform configuration requested for the instance. If you provide the parameter, the instance is created with the platform configuration that you specify. For any values that you omit, the instance uses the default configuration values for the `shape` that you specify. If you don't provide the parameter, the default values for the `shape` are used. diff --git a/website/docs/d/data_safe_security_assessment_comparison.html.markdown b/website/docs/d/data_safe_security_assessment_comparison.html.markdown index 33f5f67aff2..58e8f7a8dd0 100644 --- a/website/docs/d/data_safe_security_assessment_comparison.html.markdown +++ b/website/docs/d/data_safe_security_assessment_comparison.html.markdown @@ -53,6 +53,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -75,6 +76,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -102,6 +104,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -124,6 +127,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -153,6 +157,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -175,6 +180,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -202,6 +208,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -224,6 +231,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -251,6 +259,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -273,6 +282,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -300,6 +310,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -322,6 +333,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -349,6 +361,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. @@ -371,6 +384,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding. diff --git a/website/docs/d/data_safe_security_assessment_finding_analytics.html.markdown b/website/docs/d/data_safe_security_assessment_finding_analytics.html.markdown index 28d8e0c37ba..9b77fe0e698 100644 --- a/website/docs/d/data_safe_security_assessment_finding_analytics.html.markdown +++ b/website/docs/d/data_safe_security_assessment_finding_analytics.html.markdown @@ -52,7 +52,9 @@ The following arguments are supported: * `is_top_finding` - (Optional) A filter to return only the findings that are marked as top findings. * `severity` - (Optional) A filter to return only findings of a particular risk level. * `top_finding_status` - (Optional) An optional filter to return only the top finding that match the specified status. - +* `scim_query` - (Optional) The scimQuery query parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at [RFC3339](https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.) + **Example:** | scimQuery=(severity eq 'high') and (targetId eq 'target_1') scimQuery=(category eq "Users") and (targetId eq "target_1") scimQuery=(reference eq 'CIS') and (targetId eq 'target_1') + Supported fields: severity reference title category targetId targetName ## Attributes Reference diff --git a/website/docs/d/data_safe_security_assessment_findings.html.markdown b/website/docs/d/data_safe_security_assessment_findings.html.markdown index 963a465d97f..911ad978390 100644 --- a/website/docs/d/data_safe_security_assessment_findings.html.markdown +++ b/website/docs/d/data_safe_security_assessment_findings.html.markdown @@ -48,7 +48,7 @@ The following arguments are supported: * `scim_query` - (Optional) The scimQuery query parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 of the System for Cross-Domain Identity Management (SCIM) specification, which is available at [RFC3339](https://tools.ietf.org/html/draft-ietf-scim-api-12). In SCIM filtering expressions, text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. (Numeric and boolean values should not be quoted.) **Example:** | scimQuery=(severity eq 'high') and (targetId eq 'target_1') scimQuery=(category eq "Users") and (targetId eq "target_1") scimQuery=(reference eq 'CIS') and (targetId eq 'target_1') - Supported fields: severity findingKey reference targetId isTopFinding title category remarks details summary isRiskModified + Supported fields: severity findingKey reference targetId targetName isTopFinding title category remarks details summary isRiskModified * `security_assessment_id` - (Required) The OCID of the security assessment. * `severity` - (Optional) A filter to return only findings of a particular risk level. * `state` - (Optional) A filter to return only the findings that match the specified lifecycle states. @@ -67,6 +67,7 @@ The following attributes are exported: * `assessment_id` - The OCID of the assessment that generated this finding. * `details` - The details of the finding. Provides detailed information to explain the finding summary, typically results from the assessed database, followed by any recommendations for changes. +* `doclink` - Documentation link provided by Oracle that explains a specific security finding or check. * `is_top_finding` - Indicates whether a given finding is marked as topFinding or not. * `has_target_db_risk_level_changed` - Determines if this risk level has changed on the target database since the last time 'severity' was modified by user. * `is_risk_modified` - Determines if this risk level was modified by user. @@ -79,6 +80,7 @@ The following attributes are exported: * `cis` - Relevant section from CIS. * `gdpr` - Relevant section from GDPR. * `obp` - Relevant section from OBP. + * `orp` - Relevant section from ORP. * `stig` - Relevant section from STIG. * `remarks` - The explanation of the issue in this finding. It explains the reason for the rule and, if a risk is reported, it may also explain the recommended actions for remediation. * `severity` - The severity of the finding as determined by security assessment and is same as oracleDefinedSeverity, unless modified by user. diff --git a/website/docs/d/data_safe_security_assessments.html.markdown b/website/docs/d/data_safe_security_assessments.html.markdown index 853598002fb..c3c4b4c6c0b 100644 --- a/website/docs/d/data_safe_security_assessments.html.markdown +++ b/website/docs/d/data_safe_security_assessments.html.markdown @@ -69,7 +69,7 @@ The following arguments are supported: * `time_created_less_than` - (Optional) Search for resources that were created before a specific date. Specifying this parameter corresponding `timeCreatedLessThan` parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339. **Example:** 2016-12-19T16:39:57.600Z -* `triggered_by` - (Optional) A filter to return only security asessments that were created by either user or system. +* `triggered_by` - (Optional) A filter to return only security assessments that were created by either user or system. * `type` - (Optional) A filter to return only items that match the specified security assessment type. diff --git a/website/docs/d/datascience_job.html.markdown b/website/docs/d/datascience_job.html.markdown index f6f409b44ac..e7869e41d45 100644 --- a/website/docs/d/datascience_job.html.markdown +++ b/website/docs/d/datascience_job.html.markdown @@ -44,6 +44,12 @@ The following attributes are exported: * `environment_variables` - Environment variables to set for the job. * `job_type` - The type of job. * `maximum_runtime_in_minutes` - A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - The probe indicates whether the application within the job run has started. + * `command` - The commands to run in the target job run to perform the startup probe + * `failure_threshold` - How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - Number of seconds how often the job run should perform a startup probe * `job_environment_configuration_details` - Environment configuration to capture job runtime dependencies. * `cmd` - The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. * `entrypoint` - The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). @@ -58,13 +64,50 @@ The following attributes are exported: * `cpu_baseline` - The baseline OCPU utilization for a subcore burstable VM instance. If this attribute is left blank, it will default to `BASELINE_1_1`. The following values are supported: BASELINE_1_8 - baseline usage is 1/8 of an OCPU. BASELINE_1_2 - baseline usage is 1/2 of an OCPU. BASELINE_1_1 - baseline usage is an entire OCPU. This represents a non-burstable instance. * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. * `ocpus` - The total number of OCPUs available to the job run instance. - * `shape_name` - The shape used to launch the job run instances. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job * `job_log_configuration_details` - Logging configuration for resource. * `enable_auto_log_creation` - If automatic on-behalf-of log object creation is enabled for job runs. * `enable_logging` - If customer logging is enabled for job runs. * `log_group_id` - The log group id for where log objects are for job runs. * `log_id` - The log id the job run will push logs too. +* `job_node_configuration_details` - The job node configuration details + * `job_network_configuration` - The job network configuration details + * `job_network_type` - job network type + * `subnet_id` - The custom subnet id + * `job_node_group_configuration_details_list` - List of JobNodeGroupConfigurationDetails + * `job_configuration_details` - The job configuration details + * `command_line_arguments` - The arguments to pass to the job. + * `environment_variables` - Environment variables to set for the job. + * `job_type` - The type of job. + * `maximum_runtime_in_minutes` - A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - The probe indicates whether the application within the job run has started. + * `command` - The commands to run in the target job run to perform the startup probe + * `failure_threshold` - How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - Number of seconds how often the job run should perform a startup probe + * `job_environment_configuration_details` - Environment configuration to capture job runtime dependencies. + * `cmd` - The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. + * `entrypoint` - The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * `image` - The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: `.ocir.io//:` `.ocir.io//:@digest` + * `image_digest` - The digest of the container image. For example, `sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030` + * `image_signature_id` - OCID of the container image signature + * `job_environment_type` - The environment configuration type used for job runtime. + * `job_infrastructure_configuration_details` - The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance running the job + * `job_infrastructure_type` - The infrastructure type used for job run. + * `job_shape_config_details` - Details for the job run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - The total number of OCPUs available to the job run instance. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job + * `minimum_success_replicas` - The minimum threshold of successful replicas for node group to be successful. All replicas need to succeed if this is not specified. + * `name` - node group name. + * `replicas` - The number of nodes. + * `job_node_type` - The node type used for job run. + * `maximum_runtime_in_minutes` - A time bound for the execution of the job run. Timer starts when the job run is in progress. + * `startup_order` - The execution order of node groups * `job_storage_mount_configuration_details_list` - Collection of JobStorageMountConfigurationDetails. * `bucket` - The object storage bucket * `destination_directory_name` - The local directory name to be mounted diff --git a/website/docs/d/datascience_job_run.html.markdown b/website/docs/d/datascience_job_run.html.markdown index bad303372b9..10b29f4a900 100644 --- a/website/docs/d/datascience_job_run.html.markdown +++ b/website/docs/d/datascience_job_run.html.markdown @@ -43,6 +43,12 @@ The following attributes are exported: * `environment_variables` - Environment variables to set for the job. * `job_type` - The type of job. * `maximum_runtime_in_minutes` - A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - The probe indicates whether the application within the job run has started. + * `command` - The commands to run in the target job run to perform the startup probe + * `failure_threshold` - How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - Number of seconds how often the job run should perform a startup probe * `job_environment_configuration_override_details` - Environment configuration to capture job runtime dependencies. * `cmd` - The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. * `entrypoint` - The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). @@ -58,13 +64,58 @@ The following attributes are exported: * `cpu_baseline` - The baseline OCPU utilization for a subcore burstable VM instance. If this attribute is left blank, it will default to `BASELINE_1_1`. The following values are supported: BASELINE_1_8 - baseline usage is 1/8 of an OCPU. BASELINE_1_2 - baseline usage is 1/2 of an OCPU. BASELINE_1_1 - baseline usage is an entire OCPU. This represents a non-burstable instance. * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. * `ocpus` - The total number of OCPUs available to the job run instance. - * `shape_name` - The shape used to launch the job run instances. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job +* `job_infrastructure_configuration_override_details` - The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance running the job + * `job_infrastructure_type` - The infrastructure type used for job run. + * `job_shape_config_details` - Details for the job run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - The total number of OCPUs available to the job run instance. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job * `job_log_configuration_override_details` - Logging configuration for resource. * `enable_auto_log_creation` - If automatic on-behalf-of log object creation is enabled for job runs. * `enable_logging` - If customer logging is enabled for job runs. * `log_group_id` - The log group id for where log objects are for job runs. * `log_id` - The log id the job run will push logs too. +* `job_node_configuration_override_details` - The job node configuration details + * `job_network_configuration` - The job network configuration details + * `job_network_type` - job network type + * `subnet_id` - The custom subnet id + * `job_node_group_configuration_details_list` - List of JobNodeGroupConfigurationDetails + * `job_configuration_details` - The job configuration details + * `command_line_arguments` - The arguments to pass to the job. + * `environment_variables` - Environment variables to set for the job. + * `job_type` - The type of job. + * `maximum_runtime_in_minutes` - A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - The probe indicates whether the application within the job run has started. + * `command` - The commands to run in the target job run to perform the startup probe + * `failure_threshold` - How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - Number of seconds how often the job run should perform a startup probe + * `job_environment_configuration_details` - Environment configuration to capture job runtime dependencies. + * `cmd` - The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. + * `entrypoint` - The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * `image` - The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: `.ocir.io//:` `.ocir.io//:@digest` + * `image_digest` - The digest of the container image. For example, `sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030` + * `image_signature_id` - OCID of the container image signature + * `job_environment_type` - The environment configuration type used for job runtime. + * `job_infrastructure_configuration_details` - The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance running the job + * `job_infrastructure_type` - The infrastructure type used for job run. + * `job_shape_config_details` - Details for the job run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - The total number of OCPUs available to the job run instance. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job + * `minimum_success_replicas` - The minimum threshold of successful replicas for node group to be successful. All replicas need to succeed if this is not specified. + * `name` - node group name. + * `replicas` - The number of nodes. + * `job_node_type` - The node type used for job run. + * `maximum_runtime_in_minutes` - A time bound for the execution of the job run. Timer starts when the job run is in progress. + * `startup_order` - The execution order of node groups * `job_storage_mount_configuration_details_list` - Collection of JobStorageMountConfigurationDetails. * `bucket` - The object storage bucket * `destination_directory_name` - The local directory name to be mounted @@ -78,6 +129,10 @@ The following attributes are exported: * `log_details` - Customer logging details for job run. * `log_group_id` - The log group id for where log objects will be for job runs. * `log_id` - The log id of the log object the job run logs will be shipped to. +* `node_group_details_list` - Collection of NodeGroupDetails + * `lifecycle_details` - The state details of the node group. + * `name` - node group name. + * `state` - The state of the node group. * `project_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the job run with. * `state` - The state of the job run. * `time_accepted` - The date and time the job run was accepted in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). diff --git a/website/docs/d/datascience_job_runs.html.markdown b/website/docs/d/datascience_job_runs.html.markdown index 98103169f59..b592bbdc737 100644 --- a/website/docs/d/datascience_job_runs.html.markdown +++ b/website/docs/d/datascience_job_runs.html.markdown @@ -61,6 +61,12 @@ The following attributes are exported: * `environment_variables` - Environment variables to set for the job. * `job_type` - The type of job. * `maximum_runtime_in_minutes` - A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - The probe indicates whether the application within the job run has started. + * `command` - The commands to run in the target job run to perform the startup probe + * `failure_threshold` - How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - Number of seconds how often the job run should perform a startup probe * `job_environment_configuration_override_details` - Environment configuration to capture job runtime dependencies. * `cmd` - The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. * `entrypoint` - The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). @@ -76,13 +82,58 @@ The following attributes are exported: * `cpu_baseline` - The baseline OCPU utilization for a subcore burstable VM instance. If this attribute is left blank, it will default to `BASELINE_1_1`. The following values are supported: BASELINE_1_8 - baseline usage is 1/8 of an OCPU. BASELINE_1_2 - baseline usage is 1/2 of an OCPU. BASELINE_1_1 - baseline usage is an entire OCPU. This represents a non-burstable instance. * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. * `ocpus` - The total number of OCPUs available to the job run instance. - * `shape_name` - The shape used to launch the job run instances. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job +* `job_infrastructure_configuration_override_details` - The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance running the job + * `job_infrastructure_type` - The infrastructure type used for job run. + * `job_shape_config_details` - Details for the job run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - The total number of OCPUs available to the job run instance. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job * `job_log_configuration_override_details` - Logging configuration for resource. * `enable_auto_log_creation` - If automatic on-behalf-of log object creation is enabled for job runs. * `enable_logging` - If customer logging is enabled for job runs. * `log_group_id` - The log group id for where log objects are for job runs. * `log_id` - The log id the job run will push logs too. +* `job_node_configuration_override_details` - The job node configuration details + * `job_network_configuration` - The job network configuration details + * `job_network_type` - job network type + * `subnet_id` - The custom subnet id + * `job_node_group_configuration_details_list` - List of JobNodeGroupConfigurationDetails + * `job_configuration_details` - The job configuration details + * `command_line_arguments` - The arguments to pass to the job. + * `environment_variables` - Environment variables to set for the job. + * `job_type` - The type of job. + * `maximum_runtime_in_minutes` - A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - The probe indicates whether the application within the job run has started. + * `command` - The commands to run in the target job run to perform the startup probe + * `failure_threshold` - How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - Number of seconds how often the job run should perform a startup probe + * `job_environment_configuration_details` - Environment configuration to capture job runtime dependencies. + * `cmd` - The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. + * `entrypoint` - The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * `image` - The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: `.ocir.io//:` `.ocir.io//:@digest` + * `image_digest` - The digest of the container image. For example, `sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030` + * `image_signature_id` - OCID of the container image signature + * `job_environment_type` - The environment configuration type used for job runtime. + * `job_infrastructure_configuration_details` - The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance running the job + * `job_infrastructure_type` - The infrastructure type used for job run. + * `job_shape_config_details` - Details for the job run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - The total number of OCPUs available to the job run instance. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job + * `minimum_success_replicas` - The minimum threshold of successful replicas for node group to be successful. All replicas need to succeed if this is not specified. + * `name` - node group name. + * `replicas` - The number of nodes. + * `job_node_type` - The node type used for job run. + * `maximum_runtime_in_minutes` - A time bound for the execution of the job run. Timer starts when the job run is in progress. + * `startup_order` - The execution order of node groups * `job_storage_mount_configuration_details_list` - Collection of JobStorageMountConfigurationDetails. * `bucket` - The object storage bucket * `destination_directory_name` - The local directory name to be mounted @@ -96,6 +147,10 @@ The following attributes are exported: * `log_details` - Customer logging details for job run. * `log_group_id` - The log group id for where log objects will be for job runs. * `log_id` - The log id of the log object the job run logs will be shipped to. +* `node_group_details_list` - Collection of NodeGroupDetails + * `lifecycle_details` - The state details of the node group. + * `name` - node group name. + * `state` - The state of the node group. * `project_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the job run with. * `state` - The state of the job run. * `time_accepted` - The date and time the job run was accepted in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). diff --git a/website/docs/d/datascience_jobs.html.markdown b/website/docs/d/datascience_jobs.html.markdown index 6004c38fdba..a33ad8f2678 100644 --- a/website/docs/d/datascience_jobs.html.markdown +++ b/website/docs/d/datascience_jobs.html.markdown @@ -62,6 +62,12 @@ The following attributes are exported: * `environment_variables` - Environment variables to set for the job. * `job_type` - The type of job. * `maximum_runtime_in_minutes` - A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - The probe indicates whether the application within the job run has started. + * `command` - The commands to run in the target job run to perform the startup probe + * `failure_threshold` - How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - Number of seconds how often the job run should perform a startup probe * `job_environment_configuration_details` - Environment configuration to capture job runtime dependencies. * `cmd` - The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. * `entrypoint` - The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). @@ -76,13 +82,50 @@ The following attributes are exported: * `cpu_baseline` - The baseline OCPU utilization for a subcore burstable VM instance. If this attribute is left blank, it will default to `BASELINE_1_1`. The following values are supported: BASELINE_1_8 - baseline usage is 1/8 of an OCPU. BASELINE_1_2 - baseline usage is 1/2 of an OCPU. BASELINE_1_1 - baseline usage is an entire OCPU. This represents a non-burstable instance. * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. * `ocpus` - The total number of OCPUs available to the job run instance. - * `shape_name` - The shape used to launch the job run instances. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job * `job_log_configuration_details` - Logging configuration for resource. * `enable_auto_log_creation` - If automatic on-behalf-of log object creation is enabled for job runs. * `enable_logging` - If customer logging is enabled for job runs. * `log_group_id` - The log group id for where log objects are for job runs. * `log_id` - The log id the job run will push logs too. +* `job_node_configuration_details` - The job node configuration details + * `job_network_configuration` - The job network configuration details + * `job_network_type` - job network type + * `subnet_id` - The custom subnet id + * `job_node_group_configuration_details_list` - List of JobNodeGroupConfigurationDetails + * `job_configuration_details` - The job configuration details + * `command_line_arguments` - The arguments to pass to the job. + * `environment_variables` - Environment variables to set for the job. + * `job_type` - The type of job. + * `maximum_runtime_in_minutes` - A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - The probe indicates whether the application within the job run has started. + * `command` - The commands to run in the target job run to perform the startup probe + * `failure_threshold` - How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - Number of seconds how often the job run should perform a startup probe + * `job_environment_configuration_details` - Environment configuration to capture job runtime dependencies. + * `cmd` - The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. + * `entrypoint` - The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * `image` - The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: `.ocir.io//:` `.ocir.io//:@digest` + * `image_digest` - The digest of the container image. For example, `sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030` + * `image_signature_id` - OCID of the container image signature + * `job_environment_type` - The environment configuration type used for job runtime. + * `job_infrastructure_configuration_details` - The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance running the job + * `job_infrastructure_type` - The infrastructure type used for job run. + * `job_shape_config_details` - Details for the job run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - The total number of OCPUs available to the job run instance. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job + * `minimum_success_replicas` - The minimum threshold of successful replicas for node group to be successful. All replicas need to succeed if this is not specified. + * `name` - node group name. + * `replicas` - The number of nodes. + * `job_node_type` - The node type used for job run. + * `maximum_runtime_in_minutes` - A time bound for the execution of the job run. Timer starts when the job run is in progress. + * `startup_order` - The execution order of node groups * `job_storage_mount_configuration_details_list` - Collection of JobStorageMountConfigurationDetails. * `bucket` - The object storage bucket * `destination_directory_name` - The local directory name to be mounted diff --git a/website/docs/d/datascience_pipeline_run.html.markdown b/website/docs/d/datascience_pipeline_run.html.markdown index 79b1cf87949..97d6b695177 100644 --- a/website/docs/d/datascience_pipeline_run.html.markdown +++ b/website/docs/d/datascience_pipeline_run.html.markdown @@ -48,6 +48,13 @@ The following attributes are exported: * `display_name` - A user-friendly display name for the resource. * `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. 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 pipeline run. +* `infrastructure_configuration_override_details` - The infrastructure configuration details of a pipeline or a step. + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance. + * `shape_config_details` - Details for the pipeline step run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - A pipeline step run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs. + * `ocpus` - A pipeline step run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified. + * `shape_name` - The shape used to launch the instance for all step runs in the pipeline. + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the pipeline step. * `lifecycle_details` - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'Failed' state. * `log_configuration_override_details` - The pipeline log configuration details. * `enable_auto_log_creation` - If automatic on-behalf-of log object creation is enabled for pipeline runs. @@ -88,6 +95,13 @@ The following attributes are exported: * `logs_bucket_uri` - An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. * `num_executors` - The number of executor VMs requested. * `warehouse_bucket_uri` - An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. + * `step_infrastructure_configuration_details` - The infrastructure configuration details of a pipeline or a step. + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance. + * `shape_config_details` - Details for the pipeline step run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - A pipeline step run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs. + * `ocpus` - A pipeline step run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified. + * `shape_name` - The shape used to launch the instance for all step runs in the pipeline. + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the pipeline step. * `step_name` - The name of the step. * `step_runs` - Array of StepRun object for each step. * `dataflow_run_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dataflow run triggered for this step run. diff --git a/website/docs/d/datascience_pipeline_runs.html.markdown b/website/docs/d/datascience_pipeline_runs.html.markdown index 3f05dd21c8f..cb212de5218 100644 --- a/website/docs/d/datascience_pipeline_runs.html.markdown +++ b/website/docs/d/datascience_pipeline_runs.html.markdown @@ -66,6 +66,13 @@ The following attributes are exported: * `display_name` - A user-friendly display name for the resource. * `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. 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 pipeline run. +* `infrastructure_configuration_override_details` - The infrastructure configuration details of a pipeline or a step. + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance. + * `shape_config_details` - Details for the pipeline step run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - A pipeline step run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs. + * `ocpus` - A pipeline step run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified. + * `shape_name` - The shape used to launch the instance for all step runs in the pipeline. + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the pipeline step. * `lifecycle_details` - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'Failed' state. * `log_configuration_override_details` - The pipeline log configuration details. * `enable_auto_log_creation` - If automatic on-behalf-of log object creation is enabled for pipeline runs. @@ -105,6 +112,13 @@ The following attributes are exported: * `logs_bucket_uri` - An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. * `num_executors` - The number of executor VMs requested. * `warehouse_bucket_uri` - An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. + * `step_infrastructure_configuration_details` - The infrastructure configuration details of a pipeline or a step. + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance. + * `shape_config_details` - Details for the pipeline step run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - A pipeline step run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs. + * `ocpus` - A pipeline step run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified. + * `shape_name` - The shape used to launch the instance for all step runs in the pipeline. + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the pipeline step. * `step_name` - The name of the step. * `step_runs` - Array of StepRun object for each step. * `dataflow_run_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dataflow run triggered for this step run. diff --git a/website/docs/d/golden_gate_connection.html.markdown b/website/docs/d/golden_gate_connection.html.markdown index 32087c9c376..80039d1d1b7 100644 --- a/website/docs/d/golden_gate_connection.html.markdown +++ b/website/docs/d/golden_gate_connection.html.markdown @@ -50,6 +50,9 @@ The following attributes are exported: * DATABRICKS - Required fields by authentication types: * PERSONAL_ACCESS_TOKEN: username is always 'token', user must enter password * OAUTH_M2M: user must enter clientId and clientSecret +* `azure_authority_host` - The endpoint used for authentication with Microsoft Entra ID (formerly Azure Active Directory). Default value: https://login.microsoftonline.com When connecting to a non-public Azure Cloud, the endpoint must be provided, eg: + * Azure China: https://login.chinacloudapi.cn/ + * Azure US Government: https://login.microsoftonline.us/ * `azure_tenant_id` - Azure tenant ID of the application. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. e.g.: 14593954-d337-4a61-a364-9f758c64f97f * `bootstrap_servers` - Kafka bootstrap. Equivalent of bootstrap.servers configuration property in Kafka: list of KafkaBootstrapServer objects specified by host/port. Used for establishing the initial connection to the Kafka cluster. Example: `"server1.example.com:9092,server2.example.com:9092"` * `host` - The name or address of a host. @@ -91,6 +94,7 @@ The following attributes are exported: * `display_name` - An object's Display Name. * `does_use_secret_ids` - Indicates that sensitive attributes are provided via Secrets. * `endpoint` + * AMAZON_KINESIS: The endpoint URL of the Amazon Kinesis service. e.g.: 'https://kinesis.us-east-1.amazonaws.com' If not provided, GoldenGate will default to 'https://kinesis..amazonaws.com'. * AMAZON_S3: The Amazon Endpoint for S3. e.g.: 'https://my-bucket.s3.us-east-1.amazonaws.com' * AZURE_DATA_LAKE_STORAGE: Azure Storage service endpoint. e.g: https://test.blob.core.windows.net * MICROSOFT_FABRIC: Optional Microsoft Fabric service endpoint. Default value: https://onelake.dfs.fabric.microsoft.com @@ -126,7 +130,9 @@ The following attributes are exported: * `producer_properties` - The base64 encoded content of the producer.properties file. * `public_key_fingerprint` - The fingerprint of the API Key of the user specified by the userId. See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm * `redis_cluster_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Redis cluster. -* `region` - The name of the region. e.g.: us-ashburn-1 If the region is not provided, backend will default to the default region. +* `region` - The name of the region: + * OCI_OBJECT_STORAGE, ORACLE_NOSQL - OCI region, e.g.: 'us-ashburn-1' + * AMAZON_KINESIS, AMAZON_S3 - region of the 3rd party cloud service, e.g. 'us-west-2' * `routing_method` - Controls the network traffic direction to the target: SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. DEDICATED_ENDPOINT: A dedicated private endpoint is created in the target VCN subnet for the connection. The subnetId is required when DEDICATED_ENDPOINT networking is selected. * `sas_token_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the sas token is stored. Note: When provided, 'sasToken' field must not be provided. * `secret_access_key_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the secret access key is stored. Note: When provided, 'secretAccessKey' field must not be provided. @@ -138,12 +144,16 @@ The following attributes are exported: * `service_account_key_file_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, which contains the credentials required to use Google Cloud Storage. Note: When provided, 'serviceAccountKeyFile' field must not be provided. * `session_mode` - The mode of the database connection session to be established by the data client. 'REDIRECT' - for a RAC database, 'DIRECT' - for a non-RAC database. Connection to a RAC database involves a redirection received from the SCAN listeners to the database node to connect to. By default the mode would be DIRECT. * `should_use_jndi` - If set to true, Java Naming and Directory Interface (JNDI) properties should be provided. -* `should_use_resource_principal` - Indicates that the user intents to connect to the instance through resource principal. +* `should_use_resource_principal` - Specifies that the user intends to authenticate to the instance using a resource principal. Default: false * `should_validate_server_certificate` - If set to true, the driver validates the certificate that is sent by the database server. * `ssl_ca` - Database Certificate - The base64 encoded content of a .pem or .crt file. containing the server public key (for 1-way SSL). The supported file formats are .pem and .crt. In case of MYSQL and POSTGRESQL connections it is not included in GET responses if the `view=COMPACT` query parameter is specified. * `ssl_cert` - Client Certificate - The base64 encoded content of a .pem or .crt file containing the client public key (for 2-way SSL). It is not included in GET responses if the `view=COMPACT` query parameter is specified. -* `ssl_client_keystash_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, which contains the encrypted password to the key database file. Note: When provided, 'sslClientKeystash' field must not be provided. -* `ssl_client_keystoredb_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, which created at the client containing the server certificate / CA root certificate. Note: When provided, 'sslClientKeystoredb' field must not be provided. +* `ssl_client_keystash_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, which contains the encrypted password to the key database file. This property is not supported for IBM Db2 for i, as client TLS mode is not available. + + Note: When provided, 'sslClientKeystash' field must not be provided. +* `ssl_client_keystoredb_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, which created at the client containing the server certificate / CA root certificate. This property is not supported for IBM Db2 for i, as client TLS mode is not available. + + Note: When provided, 'sslClientKeystoredb' field must not be provided. * `ssl_crl` - The base64 encoded list of certificates revoked by the trusted certificate authorities (Trusted CA). Note: This is an optional property and only applicable if TLS/MTLS option is selected. It is not included in GET responses if the `view=COMPACT` query parameter is specified. * `ssl_key_password_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored for the cert inside of the Keystore. In case it differs from the KeyStore password, it should be provided. Note: When provided, 'sslKeyPassword' field must not be provided. * `ssl_key_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the Client Key diff --git a/website/docs/d/golden_gate_connections.html.markdown b/website/docs/d/golden_gate_connections.html.markdown index b8c047f1edb..f34097c5667 100644 --- a/website/docs/d/golden_gate_connections.html.markdown +++ b/website/docs/d/golden_gate_connections.html.markdown @@ -68,6 +68,9 @@ The following attributes are exported: * DATABRICKS - Required fields by authentication types: * PERSONAL_ACCESS_TOKEN: username is always 'token', user must enter password * OAUTH_M2M: user must enter clientId and clientSecret +* `azure_authority_host` - The endpoint used for authentication with Microsoft Entra ID (formerly Azure Active Directory). Default value: https://login.microsoftonline.com When connecting to a non-public Azure Cloud, the endpoint must be provided, eg: + * Azure China: https://login.chinacloudapi.cn/ + * Azure US Government: https://login.microsoftonline.us/ * `azure_tenant_id` - Azure tenant ID of the application. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. e.g.: 14593954-d337-4a61-a364-9f758c64f97f * `bootstrap_servers` - Kafka bootstrap. Equivalent of bootstrap.servers configuration property in Kafka: list of KafkaBootstrapServer objects specified by host/port. Used for establishing the initial connection to the Kafka cluster. Example: `"server1.example.com:9092,server2.example.com:9092"` * `host` - The name or address of a host. @@ -108,9 +111,11 @@ The following attributes are exported: * `description` - Metadata about this specific object. * `does_use_secret_ids` - Indicates that sensitive attributes are provided via Secrets. * `endpoint` + * AMAZON_KINESIS: The endpoint URL of the Amazon Kinesis service. e.g.: 'https://kinesis.us-east-1.amazonaws.com' If not provided, GoldenGate will default to 'https://kinesis..amazonaws.com'. * AMAZON_S3: The Amazon Endpoint for S3. e.g.: 'https://my-bucket.s3.us-east-1.amazonaws.com' * AZURE_DATA_LAKE_STORAGE: Azure Storage service endpoint. e.g: https://test.blob.core.windows.net * MICROSOFT_FABRIC: Optional Microsoft Fabric service endpoint. Default value: https://onelake.dfs.fabric.microsoft.com +* `fingerprint` - Fingerprint required by TLS security protocol. E.g.: '6152b2dfbff200f973c5074a5b91d06ab3b472c07c09a1ea57bb7fd406cdce9c' * `freeform_tags` - A simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` * `host` - The name or address of a host. In case of Generic connection type it represents the Host and port separated by colon. Example: `"server.example.com:1234"` @@ -142,7 +147,7 @@ The following attributes are exported: * `producer_properties` - The base64 encoded content of the producer.properties file. * `public_key_fingerprint` - The fingerprint of the API Key of the user specified by the userId. See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm * `redis_cluster_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Redis cluster. -* `region` - The name of the region. e.g.: us-ashburn-1 If the region is not provided, backend will default to the default region. +* `region` - The name of the AWS region where the bucket is created. If not provided, GoldenGate will default to 'us-west-2'. Note: this property will become mandatory after May 20, 2026. * `routing_method` - Controls the network traffic direction to the target: SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. DEDICATED_ENDPOINT: A dedicated private endpoint is created in the target VCN subnet for the connection. The subnetId is required when DEDICATED_ENDPOINT networking is selected. * `sas_token_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the sas token is stored. Note: When provided, 'sasToken' field must not be provided. * `secret_access_key_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the secret access key is stored. Note: When provided, 'secretAccessKey' field must not be provided. @@ -154,7 +159,7 @@ The following attributes are exported: * `service_account_key_file_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, which contains the credentials required to use Google Cloud Storage. Note: When provided, 'serviceAccountKeyFile' field must not be provided. * `session_mode` - The mode of the database connection session to be established by the data client. 'REDIRECT' - for a RAC database, 'DIRECT' - for a non-RAC database. Connection to a RAC database involves a redirection received from the SCAN listeners to the database node to connect to. By default the mode would be DIRECT. * `should_use_jndi` - If set to true, Java Naming and Directory Interface (JNDI) properties should be provided. -* `should_use_resource_principal` - Indicates that the user intents to connect to the instance through resource principal. +* `should_use_resource_principal` - Specifies that the user intends to authenticate to the instance using a resource principal. Default: false * `should_validate_server_certificate` - If set to true, the driver validates the certificate that is sent by the database server. * `ssl_ca` - Database Certificate - The base64 encoded content of a .pem or .crt file. containing the server public key (for 1-way SSL). The supported file formats are .pem and .crt. In case of MYSQL and POSTGRESQL connections it is not included in GET responses if the `view=COMPACT` query parameter is specified. * `ssl_cert` - Client Certificate - The base64 encoded content of a .pem or .crt file containing the client public key (for 2-way SSL). It is not included in GET responses if the `view=COMPACT` query parameter is specified. diff --git a/website/docs/d/golden_gate_pipeline.html.markdown b/website/docs/d/golden_gate_pipeline.html.markdown index ab029e0068a..b8ba6637ae6 100644 --- a/website/docs/d/golden_gate_pipeline.html.markdown +++ b/website/docs/d/golden_gate_pipeline.html.markdown @@ -68,7 +68,7 @@ The following attributes are exported: * `action_on_dml_error` - Action upon DML Error (active only if 'Replicate schema changes (DDL)' is selected) i.e canReplicateSchemaChange=true * `can_replicate_schema_change` - If ENABLED, then addition or removal of schema is also replicated, apart from individual tables and records when creating or updating the pipeline. * `should_restart_on_failure` - If ENABLED, then the replication process restarts itself upon failure. This option applies when creating or updating a pipeline. - * `start_using_default_mapping` - If ENABLED, then the pipeline is started as part of pipeline creation. It uses default mapping. This option applies when creating or updating a pipeline. + * `start_using_default_mapping` - If ENABLED, then the pipeline is started as part of pipeline creation. It uses default mapping. This option only applies when creating a pipeline and is not applicable while updating a pipeline. * `recipe_type` - The type of the recipe * `source_connection_details` - The source connection details for creating a pipeline. * `connection_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the connection being referenced. diff --git a/website/docs/d/golden_gate_pipelines.html.markdown b/website/docs/d/golden_gate_pipelines.html.markdown index 42dd471bf22..18900301add 100644 --- a/website/docs/d/golden_gate_pipelines.html.markdown +++ b/website/docs/d/golden_gate_pipelines.html.markdown @@ -82,7 +82,7 @@ The following attributes are exported: * `action_on_dml_error` - Action upon DML Error (active only if 'Replicate schema changes (DDL)' is selected) i.e canReplicateSchemaChange=true * `can_replicate_schema_change` - If ENABLED, then addition or removal of schema is also replicated, apart from individual tables and records when creating or updating the pipeline. * `should_restart_on_failure` - If ENABLED, then the replication process restarts itself upon failure. This option applies when creating or updating a pipeline. - * `start_using_default_mapping` - If ENABLED, then the pipeline is started as part of pipeline creation. It uses default mapping. This option applies when creating or updating a pipeline. + * `start_using_default_mapping` - If ENABLED, then the pipeline is started as part of pipeline creation. It uses default mapping. This option only applies when creating a pipeline and is not applicable while updating a pipeline. * `recipe_type` - The type of the recipe * `source_connection_details` - The source connection details for creating a pipeline. * `connection_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the connection being referenced. diff --git a/website/docs/d/redis_oci_cache_config_set.html.markdown b/website/docs/d/redis_oci_cache_config_set.html.markdown new file mode 100644 index 00000000000..ce2c27c4b15 --- /dev/null +++ b/website/docs/d/redis_oci_cache_config_set.html.markdown @@ -0,0 +1,51 @@ +--- +subcategory: "Redis" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_redis_oci_cache_config_set" +sidebar_current: "docs-oci-datasource-redis-oci_cache_config_set" +description: |- + Provides details about a specific Oci Cache Config Set in Oracle Cloud Infrastructure Redis service +--- + +# Data Source: oci_redis_oci_cache_config_set +This data source provides details about a specific Oci Cache Config Set resource in Oracle Cloud Infrastructure Redis service. + +Retrieves the specified Oracle Cloud Infrastructure Cache Config Set. + +## Example Usage + +```hcl +data "oci_redis_oci_cache_config_set" "test_oci_cache_config_set" { + #Required + oci_cache_config_set_id = oci_redis_oci_cache_config_set.test_oci_cache_config_set.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `oci_cache_config_set_id` - (Required) Unique Oracle Cloud Infrastructure Cache Config Set identifier. + + +## Attributes Reference + +The following attributes are exported: + +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the Oracle Cloud Infrastructure Cache Config Set. +* `configuration_details` - List of Oracle Cloud Infrastructure Cache Config Set Values. + * `items` - List of ConfigurationInfo objects. + * `config_key` - Key is the configuration key. + * `config_value` - Value of the configuration as a string. Can represent a string, boolean, or number. Example: "true", "42", or "someString". +* `default_config_set_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the default Oracle Cloud Infrastructure Cache Config Set which the custom Oracle Cloud Infrastructure Cache Config Set is based upon. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - A description of the Oracle Cloud Infrastructure Cache Config Set. +* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `freeform_tags` - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Oracle Cloud Infrastructure Cache Config Set. +* `software_version` - The Oracle Cloud Infrastructure Cache engine version that the cluster is running. +* `state` - The current state of the Oracle Cloud Infrastructure Cache Config Set. +* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `time_created` - The date and time the Oracle Cloud Infrastructure Cache Config Set was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. +* `time_updated` - The date and time the Oracle Cloud Infrastructure Cache Config Set was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + diff --git a/website/docs/d/redis_oci_cache_config_sets.html.markdown b/website/docs/d/redis_oci_cache_config_sets.html.markdown new file mode 100644 index 00000000000..733bd9b8934 --- /dev/null +++ b/website/docs/d/redis_oci_cache_config_sets.html.markdown @@ -0,0 +1,67 @@ +--- +subcategory: "Redis" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_redis_oci_cache_config_sets" +sidebar_current: "docs-oci-datasource-redis-oci_cache_config_sets" +description: |- + Provides the list of Oci Cache Config Sets in Oracle Cloud Infrastructure Redis service +--- + +# Data Source: oci_redis_oci_cache_config_sets +This data source provides the list of Oci Cache Config Sets in Oracle Cloud Infrastructure Redis service. + +Lists the Oracle Cloud Infrastructure Cache Config Sets in the specified compartment. + + +## Example Usage + +```hcl +data "oci_redis_oci_cache_config_sets" "test_oci_cache_config_sets" { + + #Optional + compartment_id = var.compartment_id + display_name = var.oci_cache_config_set_display_name + id = var.oci_cache_config_set_id + software_version = var.oci_cache_config_set_software_version + state = var.oci_cache_config_set_state +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Optional) The ID of the compartment in which to list resources. +* `display_name` - (Optional) A filter to return only resources that match the entire display name given. +* `id` - (Optional) Unique Oracle Cloud Infrastructure Cache Config Set identifier. +* `software_version` - (Optional) A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version. +* `state` - (Optional) A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose lifecycle state matches with the given lifecycle state. + + +## Attributes Reference + +The following attributes are exported: + +* `oci_cache_config_set_collection` - The list of oci_cache_config_set_collection. + +### OciCacheConfigSet Reference + +The following attributes are exported: + +* `compartment_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the Oracle Cloud Infrastructure Cache Config Set. +* `configuration_details` - List of Oracle Cloud Infrastructure Cache Config Set Values. + * `items` - List of ConfigurationInfo objects. + * `config_key` - Key is the configuration key. + * `config_value` - Value of the configuration as a string. Can represent a string, boolean, or number. Example: "true", "42", or "someString". +* `default_config_set_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the default Oracle Cloud Infrastructure Cache Config Set which the custom Oracle Cloud Infrastructure Cache Config Set is based upon. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - A description of the Oracle Cloud Infrastructure Cache Config Set. +* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `freeform_tags` - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Oracle Cloud Infrastructure Cache Config Set. +* `software_version` - The Oracle Cloud Infrastructure Cache engine version that the cluster is running. +* `state` - The current state of the Oracle Cloud Infrastructure Cache Config Set. +* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `time_created` - The date and time the Oracle Cloud Infrastructure Cache Config Set was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. +* `time_updated` - The date and time the Oracle Cloud Infrastructure Cache Config Set was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + diff --git a/website/docs/d/redis_oci_cache_default_config_set.html.markdown b/website/docs/d/redis_oci_cache_default_config_set.html.markdown new file mode 100644 index 00000000000..a6619942ea5 --- /dev/null +++ b/website/docs/d/redis_oci_cache_default_config_set.html.markdown @@ -0,0 +1,51 @@ +--- +subcategory: "Redis" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_redis_oci_cache_default_config_set" +sidebar_current: "docs-oci-datasource-redis-oci_cache_default_config_set" +description: |- + Provides details about a specific Oci Cache Default Config Set in Oracle Cloud Infrastructure Redis service +--- + +# Data Source: oci_redis_oci_cache_default_config_set +This data source provides details about a specific Oci Cache Default Config Set resource in Oracle Cloud Infrastructure Redis service. + +Retrieves the specified Oracle Cloud Infrastructure Cache Default Config Set. + +## Example Usage + +```hcl +data "oci_redis_oci_cache_default_config_set" "test_oci_cache_default_config_set" { + #Required + compartment_id = var.compartment_id + oci_cache_default_config_set_id = oci_redis_oci_cache_default_config_set.test_oci_cache_default_config_set.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Required) The unique identifier for the compartment. +* `oci_cache_default_config_set_id` - (Required) Unique Oracle Cloud Infrastructure Cache Default Config Set identifier. + + +## Attributes Reference + +The following attributes are exported: + +* `default_configuration_details` - List of Oracle Cloud Infrastructure Cache Default Config Set Values. + * `items` - List of DefaultConfigurationInfo objects. + * `allowed_values` - Allowed values for the configuration setting. + * `config_key` - The key of the configuration setting. + * `data_type` - The data type of the configuration setting. + * `default_config_value` - The default value for the configuration setting. + * `description` - Description of the configuration setting. + * `is_modifiable` - Indicates if the configuration is modifiable. +* `description` - Description of the Oracle Cloud Infrastructure Cache Default Config Set. +* `display_name` - A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set. +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Oracle Cloud Infrastructure Cache Default Config Set. +* `software_version` - The engine version of the Oracle Cloud Infrastructure Cache Default Config Set. +* `state` - The current state of the Oracle Cloud Infrastructure Cache Default Config Set. +* `time_created` - The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + diff --git a/website/docs/d/redis_oci_cache_default_config_sets.html.markdown b/website/docs/d/redis_oci_cache_default_config_sets.html.markdown new file mode 100644 index 00000000000..05ffa0b0d02 --- /dev/null +++ b/website/docs/d/redis_oci_cache_default_config_sets.html.markdown @@ -0,0 +1,65 @@ +--- +subcategory: "Redis" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_redis_oci_cache_default_config_sets" +sidebar_current: "docs-oci-datasource-redis-oci_cache_default_config_sets" +description: |- + Provides the list of Oci Cache Default Config Sets in Oracle Cloud Infrastructure Redis service +--- + +# Data Source: oci_redis_oci_cache_default_config_sets +This data source provides the list of Oci Cache Default Config Sets in Oracle Cloud Infrastructure Redis service. + +Lists the Oracle Cloud Infrastructure Cache Default Config Sets in the specified compartment. + +## Example Usage + +```hcl +data "oci_redis_oci_cache_default_config_sets" "test_oci_cache_default_config_sets" { + #Required + compartment_id = var.compartment_id + + #Optional + display_name = var.oci_cache_default_config_set_display_name + id = var.oci_cache_default_config_set_id + software_version = var.oci_cache_default_config_set_software_version + state = var.oci_cache_default_config_set_state +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Required) The unique identifier for the compartment. +* `display_name` - (Optional) A filter to return only resources that match the entire display name given. +* `id` - (Optional) Unique Oracle Cloud Infrastructure Cache Default Config Set identifier. +* `software_version` - (Optional) A filter to return the Oracle Cloud Infrastructure Cache Config Set resources, whose software version matches with the given software version. +* `state` - (Optional) A filter to return the Oracle Cloud Infrastructure Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state. + + +## Attributes Reference + +The following attributes are exported: + +* `oci_cache_default_config_set_collection` - The list of oci_cache_default_config_set_collection. + +### OciCacheDefaultConfigSet Reference + +The following attributes are exported: + +* `default_configuration_details` - List of Oracle Cloud Infrastructure Cache Default Config Set Values. + * `items` - List of DefaultConfigurationInfo objects. + * `allowed_values` - Allowed values for the configuration setting. + * `config_key` - The key of the configuration setting. + * `data_type` - The data type of the configuration setting. + * `default_config_value` - The default value for the configuration setting. + * `description` - Description of the configuration setting. + * `is_modifiable` - Indicates if the configuration is modifiable. +* `description` - Description of the Oracle Cloud Infrastructure Cache Default Config Set. +* `display_name` - A user-friendly name of the Oracle Cloud Infrastructure Cache Default Config Set. +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Oracle Cloud Infrastructure Cache Default Config Set. +* `software_version` - The engine version of the Oracle Cloud Infrastructure Cache Default Config Set. +* `state` - The current state of the Oracle Cloud Infrastructure Cache Default Config Set. +* `time_created` - The date and time the Oracle Cloud Infrastructure Cache Default Config Set was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + diff --git a/website/docs/d/redis_redis_cluster.html.markdown b/website/docs/d/redis_redis_cluster.html.markdown index 2e00486fa12..65ab5abf34e 100644 --- a/website/docs/d/redis_redis_cluster.html.markdown +++ b/website/docs/d/redis_redis_cluster.html.markdown @@ -47,6 +47,7 @@ The following attributes are exported: * `node_count` - The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED. * `node_memory_in_gbs` - The amount of memory allocated to the cluster's nodes, in gigabytes. * `nsg_ids` - A list of Network Security Group (NSG) [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this cluster. For more information, see [Using an NSG for Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). +* `oci_cache_config_set_id` - The ID of the corresponding Oracle Cloud Infrastructure Cache Config Set for the cluster. * `primary_endpoint_ip_address` - The private IP address of the API endpoint for the cluster's primary node. * `primary_fqdn` - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node. * `replicas_endpoint_ip_address` - The private IP address of the API endpoint for the cluster's replica nodes. diff --git a/website/docs/d/redis_redis_clusters.html.markdown b/website/docs/d/redis_redis_clusters.html.markdown index 79feb148b15..105732780f7 100644 --- a/website/docs/d/redis_redis_clusters.html.markdown +++ b/website/docs/d/redis_redis_clusters.html.markdown @@ -61,6 +61,7 @@ The following attributes are exported: * `node_count` - The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED. * `node_memory_in_gbs` - The amount of memory allocated to the cluster's nodes, in gigabytes. * `nsg_ids` - A list of Network Security Group (NSG) [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this cluster. For more information, see [Using an NSG for Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). +* `oci_cache_config_set_id` - The ID of the corresponding Oracle Cloud Infrastructure Cache Config Set for the cluster. * `primary_endpoint_ip_address` - The private IP address of the API endpoint for the cluster's primary node. * `primary_fqdn` - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node. * `replicas_endpoint_ip_address` - The private IP address of the API endpoint for the cluster's replica nodes. diff --git a/website/docs/guides/resource_discovery.html.markdown b/website/docs/guides/resource_discovery.html.markdown index c7443a3e419..5c31f2ff842 100644 --- a/website/docs/guides/resource_discovery.html.markdown +++ b/website/docs/guides/resource_discovery.html.markdown @@ -1242,6 +1242,7 @@ redis * oci\_redis\_redis\_cluster * oci\_redis\_oci\_cache\_user +* oci\_redis\_oci\_cache\_config\_set resource_scheduler diff --git a/website/docs/r/core_instance_configuration.html.markdown b/website/docs/r/core_instance_configuration.html.markdown index 8cf026f470b..1d428bafb3d 100644 --- a/website/docs/r/core_instance_configuration.html.markdown +++ b/website/docs/r/core_instance_configuration.html.markdown @@ -111,6 +111,7 @@ resource "oci_core_instance_configuration" "test_instance_configuration" { capacity_reservation_id = oci_core_capacity_reservation.test_capacity_reservation.id cluster_placement_group_id = oci_identity_group.test_group.id compartment_id = var.compartment_id + compute_cluster_id = oci_core_compute_cluster.test_compute_cluster.id create_vnic_details { #Optional @@ -165,6 +166,11 @@ resource "oci_core_instance_configuration" "test_instance_configuration" { license_type = var.instance_configuration_instance_details_launch_details_licensing_configs_license_type } metadata = var.instance_configuration_instance_details_launch_details_metadata + placement_constraint_details { + #Required + compute_host_group_id = oci_core_compute_host_group.test_compute_host_group.id + type = var.instance_configuration_instance_details_launch_details_placement_constraint_details_type + } platform_config { #Required type = var.instance_configuration_instance_details_launch_details_platform_config_type @@ -301,6 +307,7 @@ resource "oci_core_instance_configuration" "test_instance_configuration" { capacity_reservation_id = oci_core_capacity_reservation.test_capacity_reservation.id cluster_placement_group_id = oci_identity_group.test_group.id compartment_id = var.compartment_id + compute_cluster_id = oci_core_compute_cluster.test_compute_cluster.id create_vnic_details { #Optional @@ -355,6 +362,11 @@ resource "oci_core_instance_configuration" "test_instance_configuration" { license_type = var.instance_configuration_instance_details_options_launch_details_licensing_configs_license_type } metadata = var.instance_configuration_instance_details_options_launch_details_metadata + placement_constraint_details { + #Required + compute_host_group_id = oci_core_compute_host_group.test_compute_host_group.id + type = var.instance_configuration_instance_details_options_launch_details_placement_constraint_details_type + } platform_config { #Required type = var.instance_configuration_instance_details_options_launch_details_platform_config_type @@ -553,6 +565,7 @@ The following arguments are supported: * `capacity_reservation_id` - (Applicable when instance_type=compute) The OCID of the compute capacity reservation this instance is launched under. * `cluster_placement_group_id` - (Applicable when instance_type=compute) The OCID of the cluster placement group of the instance. * `compartment_id` - (Applicable when instance_type=compute) The OCID of the compartment containing the instance. Instances created from instance configurations are placed in the same compartment as the instance that was used to create the instance configuration. + * `compute_cluster_id` - (Applicable when instance_type=compute) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the [compute cluster](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. * `create_vnic_details` - (Applicable when instance_type=compute) Contains the properties of the VNIC for an instance configuration. See [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) and [Instance Configurations](https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm#config) for more information. * `assign_ipv6ip` - (Applicable when instance_type=compute) Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet. Default: False. When provided you may optionally provide an IPv6 prefix (`ipv6SubnetCidr`) of your choice to assign the IPv6 address from. If `ipv6SubnetCidr` is not provided then an IPv6 prefix is chosen for you. * `assign_private_dns_record` - (Applicable when instance_type=compute) Whether the VNIC should be assigned a private DNS record. See the `assignPrivateDnsRecord` attribute of [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) for more information. @@ -654,6 +667,9 @@ The following arguments are supported: You'll get back a response that includes all the instance information; only the metadata information; or the metadata information for the specified key name, respectively. The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes. + * `placement_constraint_details` - (Applicable when instance_type=compute) The details for providing placement constraints. + * `compute_host_group_id` - (Required) The OCID of the compute host group. This is only available for dedicated capacity customers. + * `type` - (Required) The type for the placement constraints. Use `HOST_GROUP` when specifying the compute host group OCID. * `platform_config` - (Applicable when instance_type=compute) (Optional) (Updatable only for VM's) The platform configuration requested for the instance. If you provide the parameter, the instance is created with the platform configuration that you specify. For any values that you omit, the instance uses the default configuration values for the `shape` that you specify. If you don't provide the parameter, the default values for the `shape` are used. @@ -790,6 +806,7 @@ The following arguments are supported: * `availability_domain` - (Applicable when instance_type=instance_options) The availability domain of the instance. Example: `Uocm:PHX-AD-1` * `capacity_reservation_id` - (Applicable when instance_type=instance_options) The OCID of the compute capacity reservation this instance is launched under. * `compartment_id` - (Applicable when instance_type=instance_options) (Updatable) The OCID of the compartment containing the instance. Instances created from instance configurations are placed in the same compartment as the instance that was used to create the instance configuration. + * `compute_cluster_id` - (Applicable when instance_type=instance_options) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the [compute cluster](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. * `create_vnic_details` - (Applicable when instance_type=instance_options) Contains the properties of the VNIC for an instance configuration. See [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) and [Instance Configurations](https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm#config) for more information. * `assign_ipv6ip` - (Optional) Whether to allocate an IPv6 address at instance and VNIC creation from an IPv6 enabled subnet. Default: False. When provided you may optionally provide an IPv6 prefix (`ipv6SubnetCidr`) of your choice to assign the IPv6 address from. If `ipv6SubnetCidr` is not provided then an IPv6 prefix is chosen for you. * `ipv6address_ipv6subnet_cidr_pair_details` - (Optional) A list of IPv6 prefix ranges from which the VNIC should be assigned an IPv6 address. You can provide only the prefix ranges and Oracle Cloud Infrastructure selects an available address from the range. You can optionally choose to leave the prefix range empty and instead provide the specific IPv6 address that should be used from within that range. @@ -894,7 +911,10 @@ The following arguments are supported: You'll get back a response that includes all the instance information; only the metadata information; or the metadata information for the specified key name, respectively. - The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes. + The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes. + * `placement_constraint_details` - (Applicable when instance_type=instance_options) The details for providing placement constraints. + * `compute_host_group_id` - (Required) The OCID of the compute host group. This is only available for dedicated capacity customers. + * `type` - (Required) The type for the placement constraints. Use `HOST_GROUP` when specifying the compute host group OCID. * `platform_config` - (Applicable when instance_type=instance_options) The platform configuration requested for the instance. If you provide the parameter, the instance is created with the platform configuration that you specify. For any values that you omit, the instance uses the default configuration values for the `shape` that you specify. If you don't provide the parameter, the default values for the `shape` are used. @@ -1091,6 +1111,7 @@ The following attributes are exported: * `availability_domain` - The availability domain of the instance. Example: `Uocm:PHX-AD-1` * `capacity_reservation_id` - The OCID of the compute capacity reservation this instance is launched under. * `compartment_id` - The OCID of the compartment containing the instance. Instances created from instance configurations are placed in the same compartment as the instance that was used to create the instance configuration. + * `compute_cluster_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the [compute cluster](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. * `create_vnic_details` - Contains the properties of the VNIC for an instance configuration. See [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) and [Instance Configurations](https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm#config) for more information. * `assign_private_dns_record` - Whether the VNIC should be assigned a private DNS record. See the `assignPrivateDnsRecord` attribute of [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/CreateVnicDetails/) for more information. * `assign_public_ip` - Whether the VNIC should be assigned a public IP address. See the `assignPublicIp` attribute of [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) for more information. @@ -1187,6 +1208,9 @@ The following attributes are exported: You'll get back a response that includes all the instance information; only the metadata information; or the metadata information for the specified key name, respectively. The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes. + * `placement_constraint_details` - The details for providing placement constraints. + * `compute_host_group_id` - The OCID of the compute host group. This is only available for dedicated capacity customers. + * `type` - The type for the placement constraints. Use `HOST_GROUP` when specifying the compute host group OCID. * `platform_config` - The platform configuration requested for the instance. If you provide the parameter, the instance is created with the platform configuration that you specify. For any values that you omit, the instance uses the default configuration values for the `shape` that you specify. If you don't provide the parameter, the default values for the `shape` are used. @@ -1321,6 +1345,7 @@ The following attributes are exported: * `availability_domain` - The availability domain of the instance. Example: `Uocm:PHX-AD-1` * `capacity_reservation_id` - The OCID of the compute capacity reservation this instance is launched under. * `compartment_id` - The OCID of the compartment containing the instance. Instances created from instance configurations are placed in the same compartment as the instance that was used to create the instance configuration. + * `compute_cluster_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the [compute cluster](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. * `create_vnic_details` - Contains the properties of the VNIC for an instance configuration. See [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) and [Instance Configurations](https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm#config) for more information. * `assign_private_dns_record` - Whether the VNIC should be assigned a private DNS record. See the `assignPrivateDnsRecord` attribute of [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) for more information. * `assign_public_ip` - Whether the VNIC should be assigned a public IP address. See the `assignPublicIp` attribute of [CreateVnicDetails](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/CreateVnicDetails/) for more information. @@ -1421,7 +1446,10 @@ The following attributes are exported: You'll get back a response that includes all the instance information; only the metadata information; or the metadata information for the specified key name, respectively. - The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes. + The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes. + * `placement_constraint_details` - The details for providing placement constraints. + * `compute_host_group_id` - The OCID of the compute host group. This is only available for dedicated capacity customers. + * `type` - The type for the placement constraints. Use `HOST_GROUP` when specifying the compute host group OCID. * `platform_config` - The platform configuration requested for the instance. If you provide the parameter, the instance is created with the platform configuration that you specify. For any values that you omit, the instance uses the default configuration values for the `shape` that you specify. If you don't provide the parameter, the default values for the `shape` are used. diff --git a/website/docs/r/datascience_job.html.markdown b/website/docs/r/datascience_job.html.markdown index e94edca00fa..701a722faea 100644 --- a/website/docs/r/datascience_job.html.markdown +++ b/website/docs/r/datascience_job.html.markdown @@ -18,6 +18,13 @@ Creates a job. resource "oci_datascience_job" "test_job" { #Required compartment_id = var.compartment_id + project_id = oci_datascience_project.test_project.id + + #Optional + defined_tags = {"Operations.CostCenter"= "42"} + description = var.job_description + display_name = var.job_display_name + freeform_tags = {"Department"= "Finance"} job_configuration_details { #Required job_type = var.job_job_configuration_details_job_type @@ -26,30 +33,20 @@ resource "oci_datascience_job" "test_job" { command_line_arguments = var.job_job_configuration_details_command_line_arguments environment_variables = var.job_job_configuration_details_environment_variables maximum_runtime_in_minutes = var.job_job_configuration_details_maximum_runtime_in_minutes - } - job_infrastructure_configuration_details { - #Required - block_storage_size_in_gbs = var.job_job_infrastructure_configuration_details_block_storage_size_in_gbs - job_infrastructure_type = var.job_job_infrastructure_configuration_details_job_infrastructure_type - shape_name = oci_core_shape.test_shape.name - - #Optional - job_shape_config_details { + startup_probe_details { + #Required + command = var.job_job_configuration_details_startup_probe_details_command + job_probe_check_type = var.job_job_configuration_details_startup_probe_details_job_probe_check_type #Optional cpu_baseline = var.job_job_infrastructure_configuration_details_job_shape_config_details_cpu_baseline + failure_threshold = var.job_job_configuration_details_startup_probe_details_failure_threshold + initial_delay_in_seconds = var.job_job_configuration_details_startup_probe_details_initial_delay_in_seconds memory_in_gbs = var.job_job_infrastructure_configuration_details_job_shape_config_details_memory_in_gbs ocpus = var.job_job_infrastructure_configuration_details_job_shape_config_details_ocpus + period_in_seconds = var.job_job_configuration_details_startup_probe_details_period_in_seconds } - subnet_id = oci_core_subnet.test_subnet.id } - project_id = oci_datascience_project.test_project.id - - #Optional - defined_tags = {"Operations.CostCenter"= "42"} - description = var.job_description - display_name = var.job_display_name - freeform_tags = {"Department"= "Finance"} job_environment_configuration_details { #Required image = var.job_job_environment_configuration_details_image @@ -61,6 +58,21 @@ resource "oci_datascience_job" "test_job" { image_digest = var.job_job_environment_configuration_details_image_digest image_signature_id = oci_datascience_image_signature.test_image_signature.id } + job_infrastructure_configuration_details { + #Required + job_infrastructure_type = var.job_job_infrastructure_configuration_details_job_infrastructure_type + + #Optional + block_storage_size_in_gbs = var.job_job_infrastructure_configuration_details_block_storage_size_in_gbs + job_shape_config_details { + + #Optional + memory_in_gbs = var.job_job_infrastructure_configuration_details_job_shape_config_details_memory_in_gbs + ocpus = var.job_job_infrastructure_configuration_details_job_shape_config_details_ocpus + } + shape_name = oci_core_shape.test_shape.name + subnet_id = oci_core_subnet.test_subnet.id + } job_log_configuration_details { #Optional @@ -69,6 +81,74 @@ resource "oci_datascience_job" "test_job" { log_group_id = oci_logging_log_group.test_log_group.id log_id = oci_logging_log.test_log.id } + job_node_configuration_details { + #Required + job_node_type = var.job_job_node_configuration_details_job_node_type + + #Optional + job_network_configuration { + #Required + job_network_type = var.job_job_node_configuration_details_job_network_configuration_job_network_type + + #Optional + subnet_id = oci_core_subnet.test_subnet.id + } + job_node_group_configuration_details_list { + #Required + name = var.job_job_node_configuration_details_job_node_group_configuration_details_list_name + + #Optional + job_configuration_details { + #Required + job_type = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_configuration_details_job_type + + #Optional + command_line_arguments = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_configuration_details_command_line_arguments + environment_variables = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_configuration_details_environment_variables + maximum_runtime_in_minutes = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_configuration_details_maximum_runtime_in_minutes + startup_probe_details { + #Required + command = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_configuration_details_startup_probe_details_command + job_probe_check_type = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_configuration_details_startup_probe_details_job_probe_check_type + + #Optional + failure_threshold = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_configuration_details_startup_probe_details_failure_threshold + initial_delay_in_seconds = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_configuration_details_startup_probe_details_initial_delay_in_seconds + period_in_seconds = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_configuration_details_startup_probe_details_period_in_seconds + } + } + job_environment_configuration_details { + #Required + image = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_environment_configuration_details_image + job_environment_type = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_environment_configuration_details_job_environment_type + + #Optional + cmd = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_environment_configuration_details_cmd + entrypoint = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_environment_configuration_details_entrypoint + image_digest = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_environment_configuration_details_image_digest + image_signature_id = oci_datascience_image_signature.test_image_signature.id + } + job_infrastructure_configuration_details { + #Required + job_infrastructure_type = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_infrastructure_configuration_details_job_infrastructure_type + + #Optional + block_storage_size_in_gbs = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_infrastructure_configuration_details_block_storage_size_in_gbs + job_shape_config_details { + + #Optional + memory_in_gbs = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_infrastructure_configuration_details_job_shape_config_details_memory_in_gbs + ocpus = var.job_job_node_configuration_details_job_node_group_configuration_details_list_job_infrastructure_configuration_details_job_shape_config_details_ocpus + } + shape_name = oci_core_shape.test_shape.name + subnet_id = oci_core_subnet.test_subnet.id + } + minimum_success_replicas = var.job_job_node_configuration_details_job_node_group_configuration_details_list_minimum_success_replicas + replicas = var.job_job_node_configuration_details_job_node_group_configuration_details_list_replicas + } + maximum_runtime_in_minutes = var.job_job_node_configuration_details_maximum_runtime_in_minutes + startup_order = var.job_job_node_configuration_details_startup_order + } job_storage_mount_configuration_details_list { #Required destination_directory_name = var.job_job_storage_mount_configuration_details_list_destination_directory_name @@ -95,11 +175,17 @@ The following arguments are supported: * `delete_related_job_runs` - (Optional) (Updatable) Delete all related JobRuns upon deletion of the Job. * `display_name` - (Optional) (Updatable) A user-friendly display name for the resource. * `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. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` -* `job_configuration_details` - (Required) The job configuration details - * `command_line_arguments` - (Optional) The arguments to pass to the job. - * `environment_variables` - (Optional) Environment variables to set for the job. +* `job_configuration_details` - (Optional) The job configuration details + * `command_line_arguments` - (Applicable when job_type=DEFAULT) The arguments to pass to the job. + * `environment_variables` - (Applicable when job_type=DEFAULT) Environment variables to set for the job. * `job_type` - (Required) The type of job. - * `maximum_runtime_in_minutes` - (Optional) A time bound for the execution of the job. Timer starts when the job becomes active. + * `maximum_runtime_in_minutes` - (Applicable when job_type=DEFAULT) A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - (Applicable when job_type=DEFAULT) The probe indicates whether the application within the job run has started. + * `command` - (Required) The commands to run in the target job run to perform the startup probe + * `failure_threshold` - (Optional) How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - (Optional) Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - (Required) The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - (Optional) Number of seconds how often the job run should perform a startup probe * `job_environment_configuration_details` - (Optional) Environment configuration to capture job runtime dependencies. * `cmd` - (Optional) The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. * `entrypoint` - (Optional) The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). @@ -107,20 +193,57 @@ The following arguments are supported: * `image_digest` - (Optional) The digest of the container image. For example, `sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030` * `image_signature_id` - (Optional) OCID of the container image signature * `job_environment_type` - (Required) The environment configuration type used for job runtime. -* `job_infrastructure_configuration_details` - (Required) (Updatable) The job infrastructure configuration details (shape, block storage, etc.) - * `block_storage_size_in_gbs` - (Required) (Updatable) The size of the block storage volume to attach to the instance running the job +* `job_infrastructure_configuration_details` - (Optional) (Updatable) The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - (Required when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) (Updatable) The size of the block storage volume to attach to the instance running the job * `job_infrastructure_type` - (Required) (Updatable) The infrastructure type used for job run. - * `job_shape_config_details` - (Optional) (Updatable) Details for the job run shape configuration. Specify only when a flex shape is selected. + * `job_shape_config_details` - (Applicable when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) (Updatable) Details for the job run shape configuration. Specify only when a flex shape is selected. * `cpu_baseline` - (Applicable when job_infrastructure_type=ME_STANDALONE | STANDALONE) (Updatable) The baseline OCPU utilization for a subcore burstable VM instance. If this attribute is left blank, it will default to `BASELINE_1_1`. The following values are supported: BASELINE_1_8 - baseline usage is 1/8 of an OCPU. BASELINE_1_2 - baseline usage is 1/2 of an OCPU. BASELINE_1_1 - baseline usage is an entire OCPU. This represents a non-burstable instance. - * `memory_in_gbs` - (Applicable when job_infrastructure_type=ME_STANDALONE | STANDALONE) (Updatable) The total amount of memory available to the job run instance, in gigabytes. - * `ocpus` - (Applicable when job_infrastructure_type=ME_STANDALONE | STANDALONE) (Updatable) The total number of OCPUs available to the job run instance. - * `shape_name` - (Required) (Updatable) The shape used to launch the job run instances. + * `memory_in_gbs` - (Applicable when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) (Updatable) The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - (Applicable when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) (Updatable) The total number of OCPUs available to the job run instance. + * `shape_name` - (Required when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) (Updatable) The name that corresponds to the JobShapeSummary to use for the job node * `subnet_id` - (Required when job_infrastructure_type=STANDALONE) (Updatable) The subnet to create a secondary vnic in to attach to the instance running the job * `job_log_configuration_details` - (Optional) Logging configuration for resource. * `enable_auto_log_creation` - (Optional) If automatic on-behalf-of log object creation is enabled for job runs. * `enable_logging` - (Optional) If customer logging is enabled for job runs. * `log_group_id` - (Optional) The log group id for where log objects are for job runs. * `log_id` - (Optional) The log id the job run will push logs too. +* `job_node_configuration_details` - (Optional) The job node configuration details + * `job_network_configuration` - (Optional) The job network configuration details + * `job_network_type` - (Required) job network type + * `subnet_id` - (Required when job_network_type=CUSTOM_NETWORK) The custom subnet id + * `job_node_group_configuration_details_list` - (Optional) List of JobNodeGroupConfigurationDetails + * `job_configuration_details` - (Optional) The job configuration details + * `command_line_arguments` - (Applicable when job_type=DEFAULT) The arguments to pass to the job. + * `environment_variables` - (Applicable when job_type=DEFAULT) Environment variables to set for the job. + * `job_type` - (Required) The type of job. + * `maximum_runtime_in_minutes` - (Applicable when job_type=DEFAULT) A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - (Applicable when job_type=DEFAULT) The probe indicates whether the application within the job run has started. + * `command` - (Required) The commands to run in the target job run to perform the startup probe + * `failure_threshold` - (Optional) How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - (Optional) Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - (Required) The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - (Optional) Number of seconds how often the job run should perform a startup probe + * `job_environment_configuration_details` - (Optional) Environment configuration to capture job runtime dependencies. + * `cmd` - (Optional) The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. + * `entrypoint` - (Optional) The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * `image` - (Required) The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: `.ocir.io//:` `.ocir.io//:@digest` + * `image_digest` - (Optional) The digest of the container image. For example, `sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030` + * `image_signature_id` - (Optional) OCID of the container image signature + * `job_environment_type` - (Required) The environment configuration type used for job runtime. + * `job_infrastructure_configuration_details` - (Optional) The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - (Required when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) The size of the block storage volume to attach to the instance running the job + * `job_infrastructure_type` - (Required) The infrastructure type used for job run. + * `job_shape_config_details` - (Applicable when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) Details for the job run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - (Applicable when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - (Applicable when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) The total number of OCPUs available to the job run instance. + * `shape_name` - (Required when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) The name that corresponds to the JobShapeSummary to use for the job node + * `subnet_id` - (Required when job_infrastructure_type=STANDALONE) The subnet to create a secondary vnic in to attach to the instance running the job + * `minimum_success_replicas` - (Optional) The minimum threshold of successful replicas for node group to be successful. All replicas need to succeed if this is not specified. + * `name` - (Required) node group name. + * `replicas` - (Optional) The number of nodes. + * `job_node_type` - (Required) The node type used for job run. + * `maximum_runtime_in_minutes` - (Optional) A time bound for the execution of the job run. Timer starts when the job run is in progress. + * `startup_order` - (Optional) The execution order of node groups * `job_storage_mount_configuration_details_list` - (Optional) (Updatable) Collection of JobStorageMountConfigurationDetails. * `bucket` - (Required when storage_type=OBJECT_STORAGE) (Updatable) The object storage bucket * `destination_directory_name` - (Required) (Updatable) The local directory name to be mounted @@ -155,6 +278,12 @@ The following attributes are exported: * `environment_variables` - Environment variables to set for the job. * `job_type` - The type of job. * `maximum_runtime_in_minutes` - A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - The probe indicates whether the application within the job run has started. + * `command` - The commands to run in the target job run to perform the startup probe + * `failure_threshold` - How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - Number of seconds how often the job run should perform a startup probe * `job_environment_configuration_details` - Environment configuration to capture job runtime dependencies. * `cmd` - The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. * `entrypoint` - The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). @@ -169,13 +298,50 @@ The following attributes are exported: * `cpu_baseline` - The baseline OCPU utilization for a subcore burstable VM instance. If this attribute is left blank, it will default to `BASELINE_1_1`. The following values are supported: BASELINE_1_8 - baseline usage is 1/8 of an OCPU. BASELINE_1_2 - baseline usage is 1/2 of an OCPU. BASELINE_1_1 - baseline usage is an entire OCPU. This represents a non-burstable instance. * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. * `ocpus` - The total number of OCPUs available to the job run instance. - * `shape_name` - The shape used to launch the job run instances. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job * `job_log_configuration_details` - Logging configuration for resource. * `enable_auto_log_creation` - If automatic on-behalf-of log object creation is enabled for job runs. * `enable_logging` - If customer logging is enabled for job runs. * `log_group_id` - The log group id for where log objects are for job runs. * `log_id` - The log id the job run will push logs too. +* `job_node_configuration_details` - The job node configuration details + * `job_network_configuration` - The job network configuration details + * `job_network_type` - job network type + * `subnet_id` - The custom subnet id + * `job_node_group_configuration_details_list` - List of JobNodeGroupConfigurationDetails + * `job_configuration_details` - The job configuration details + * `command_line_arguments` - The arguments to pass to the job. + * `environment_variables` - Environment variables to set for the job. + * `job_type` - The type of job. + * `maximum_runtime_in_minutes` - A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - The probe indicates whether the application within the job run has started. + * `command` - The commands to run in the target job run to perform the startup probe + * `failure_threshold` - How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - Number of seconds how often the job run should perform a startup probe + * `job_environment_configuration_details` - Environment configuration to capture job runtime dependencies. + * `cmd` - The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. + * `entrypoint` - The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * `image` - The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: `.ocir.io//:` `.ocir.io//:@digest` + * `image_digest` - The digest of the container image. For example, `sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030` + * `image_signature_id` - OCID of the container image signature + * `job_environment_type` - The environment configuration type used for job runtime. + * `job_infrastructure_configuration_details` - The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance running the job + * `job_infrastructure_type` - The infrastructure type used for job run. + * `job_shape_config_details` - Details for the job run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - The total number of OCPUs available to the job run instance. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job + * `minimum_success_replicas` - The minimum threshold of successful replicas for node group to be successful. All replicas need to succeed if this is not specified. + * `name` - node group name. + * `replicas` - The number of nodes. + * `job_node_type` - The node type used for job run. + * `maximum_runtime_in_minutes` - A time bound for the execution of the job run. Timer starts when the job run is in progress. + * `startup_order` - The execution order of node groups * `job_storage_mount_configuration_details_list` - Collection of JobStorageMountConfigurationDetails. * `bucket` - The object storage bucket * `destination_directory_name` - The local directory name to be mounted diff --git a/website/docs/r/datascience_job_run.html.markdown b/website/docs/r/datascience_job_run.html.markdown index d614d5d3a73..96f17f9ffcd 100644 --- a/website/docs/r/datascience_job_run.html.markdown +++ b/website/docs/r/datascience_job_run.html.markdown @@ -34,6 +34,16 @@ resource "oci_datascience_job_run" "test_job_run" { command_line_arguments = var.job_run_job_configuration_override_details_command_line_arguments environment_variables = var.job_run_job_configuration_override_details_environment_variables maximum_runtime_in_minutes = var.job_run_job_configuration_override_details_maximum_runtime_in_minutes + startup_probe_details { + #Required + command = var.job_run_job_configuration_override_details_startup_probe_details_command + job_probe_check_type = var.job_run_job_configuration_override_details_startup_probe_details_job_probe_check_type + + #Optional + failure_threshold = var.job_run_job_configuration_override_details_startup_probe_details_failure_threshold + initial_delay_in_seconds = var.job_run_job_configuration_override_details_startup_probe_details_initial_delay_in_seconds + period_in_seconds = var.job_run_job_configuration_override_details_startup_probe_details_period_in_seconds + } } job_environment_configuration_override_details { #Required @@ -46,6 +56,21 @@ resource "oci_datascience_job_run" "test_job_run" { image_digest = var.job_run_job_environment_configuration_override_details_image_digest image_signature_id = oci_datascience_image_signature.test_image_signature.id } + job_infrastructure_configuration_override_details { + #Required + job_infrastructure_type = var.job_run_job_infrastructure_configuration_override_details_job_infrastructure_type + + #Optional + block_storage_size_in_gbs = var.job_run_job_infrastructure_configuration_override_details_block_storage_size_in_gbs + job_shape_config_details { + + #Optional + memory_in_gbs = var.job_run_job_infrastructure_configuration_override_details_job_shape_config_details_memory_in_gbs + ocpus = var.job_run_job_infrastructure_configuration_override_details_job_shape_config_details_ocpus + } + shape_name = oci_core_shape.test_shape.name + subnet_id = oci_core_subnet.test_subnet.id + } job_log_configuration_override_details { #Optional @@ -54,6 +79,74 @@ resource "oci_datascience_job_run" "test_job_run" { log_group_id = oci_logging_log_group.test_log_group.id log_id = oci_logging_log.test_log.id } + job_node_configuration_override_details { + #Required + job_node_type = var.job_run_job_node_configuration_override_details_job_node_type + + #Optional + job_network_configuration { + #Required + job_network_type = var.job_run_job_node_configuration_override_details_job_network_configuration_job_network_type + + #Optional + subnet_id = oci_core_subnet.test_subnet.id + } + job_node_group_configuration_details_list { + #Required + name = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_name + + #Optional + job_configuration_details { + #Required + job_type = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_configuration_details_job_type + + #Optional + command_line_arguments = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_configuration_details_command_line_arguments + environment_variables = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_configuration_details_environment_variables + maximum_runtime_in_minutes = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_configuration_details_maximum_runtime_in_minutes + startup_probe_details { + #Required + command = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_configuration_details_startup_probe_details_command + job_probe_check_type = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_configuration_details_startup_probe_details_job_probe_check_type + + #Optional + failure_threshold = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_configuration_details_startup_probe_details_failure_threshold + initial_delay_in_seconds = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_configuration_details_startup_probe_details_initial_delay_in_seconds + period_in_seconds = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_configuration_details_startup_probe_details_period_in_seconds + } + } + job_environment_configuration_details { + #Required + image = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_environment_configuration_details_image + job_environment_type = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_environment_configuration_details_job_environment_type + + #Optional + cmd = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_environment_configuration_details_cmd + entrypoint = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_environment_configuration_details_entrypoint + image_digest = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_environment_configuration_details_image_digest + image_signature_id = oci_datascience_image_signature.test_image_signature.id + } + job_infrastructure_configuration_details { + #Required + job_infrastructure_type = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_infrastructure_configuration_details_job_infrastructure_type + + #Optional + block_storage_size_in_gbs = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_infrastructure_configuration_details_block_storage_size_in_gbs + job_shape_config_details { + + #Optional + memory_in_gbs = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_infrastructure_configuration_details_job_shape_config_details_memory_in_gbs + ocpus = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_job_infrastructure_configuration_details_job_shape_config_details_ocpus + } + shape_name = oci_core_shape.test_shape.name + subnet_id = oci_core_subnet.test_subnet.id + } + minimum_success_replicas = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_minimum_success_replicas + replicas = var.job_run_job_node_configuration_override_details_job_node_group_configuration_details_list_replicas + } + maximum_runtime_in_minutes = var.job_run_job_node_configuration_override_details_maximum_runtime_in_minutes + startup_order = var.job_run_job_node_configuration_override_details_startup_order + } opc_parent_rpt_url = var.job_run_opc_parent_rpt_url } ``` @@ -68,10 +161,16 @@ The following arguments are supported: * `display_name` - (Optional) (Updatable) A user-friendly display name for the resource. * `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. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` * `job_configuration_override_details` - (Optional) The job configuration details - * `command_line_arguments` - (Optional) The arguments to pass to the job. - * `environment_variables` - (Optional) Environment variables to set for the job. + * `command_line_arguments` - (Applicable when job_type=DEFAULT) The arguments to pass to the job. + * `environment_variables` - (Applicable when job_type=DEFAULT) Environment variables to set for the job. * `job_type` - (Required) The type of job. - * `maximum_runtime_in_minutes` - (Optional) A time bound for the execution of the job. Timer starts when the job becomes active. + * `maximum_runtime_in_minutes` - (Applicable when job_type=DEFAULT) A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - (Applicable when job_type=DEFAULT) The probe indicates whether the application within the job run has started. + * `command` - (Required) The commands to run in the target job run to perform the startup probe + * `failure_threshold` - (Optional) How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - (Optional) Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - (Required) The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - (Optional) Number of seconds how often the job run should perform a startup probe * `job_environment_configuration_override_details` - (Optional) Environment configuration to capture job runtime dependencies. * `cmd` - (Optional) The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. * `entrypoint` - (Optional) The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). @@ -80,11 +179,56 @@ The following arguments are supported: * `image_signature_id` - (Optional) OCID of the container image signature * `job_environment_type` - (Required) The environment configuration type used for job runtime. * `job_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the job to create a run for. +* `job_infrastructure_configuration_override_details` - (Optional) The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - (Required when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) The size of the block storage volume to attach to the instance running the job + * `job_infrastructure_type` - (Required) The infrastructure type used for job run. + * `job_shape_config_details` - (Applicable when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) Details for the job run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - (Applicable when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - (Applicable when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) The total number of OCPUs available to the job run instance. + * `shape_name` - (Required when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) The name that corresponds to the JobShapeSummary to use for the job node + * `subnet_id` - (Required when job_infrastructure_type=STANDALONE) The subnet to create a secondary vnic in to attach to the instance running the job * `job_log_configuration_override_details` - (Optional) Logging configuration for resource. * `enable_auto_log_creation` - (Optional) If automatic on-behalf-of log object creation is enabled for job runs. * `enable_logging` - (Optional) If customer logging is enabled for job runs. * `log_group_id` - (Optional) The log group id for where log objects are for job runs. * `log_id` - (Optional) The log id the job run will push logs too. +* `job_node_configuration_override_details` - (Optional) The job node configuration details + * `job_network_configuration` - (Optional) The job network configuration details + * `job_network_type` - (Required) job network type + * `subnet_id` - (Required when job_network_type=CUSTOM_NETWORK) The custom subnet id + * `job_node_group_configuration_details_list` - (Optional) List of JobNodeGroupConfigurationDetails + * `job_configuration_details` - (Optional) The job configuration details + * `command_line_arguments` - (Applicable when job_type=DEFAULT) The arguments to pass to the job. + * `environment_variables` - (Applicable when job_type=DEFAULT) Environment variables to set for the job. + * `job_type` - (Required) The type of job. + * `maximum_runtime_in_minutes` - (Applicable when job_type=DEFAULT) A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - (Applicable when job_type=DEFAULT) The probe indicates whether the application within the job run has started. + * `command` - (Required) The commands to run in the target job run to perform the startup probe + * `failure_threshold` - (Optional) How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - (Optional) Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - (Required) The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - (Optional) Number of seconds how often the job run should perform a startup probe + * `job_environment_configuration_details` - (Optional) Environment configuration to capture job runtime dependencies. + * `cmd` - (Optional) The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. + * `entrypoint` - (Optional) The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * `image` - (Required) The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: `.ocir.io//:` `.ocir.io//:@digest` + * `image_digest` - (Optional) The digest of the container image. For example, `sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030` + * `image_signature_id` - (Optional) OCID of the container image signature + * `job_environment_type` - (Required) The environment configuration type used for job runtime. + * `job_infrastructure_configuration_details` - (Optional) The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - (Required when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) The size of the block storage volume to attach to the instance running the job + * `job_infrastructure_type` - (Required) The infrastructure type used for job run. + * `job_shape_config_details` - (Applicable when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) Details for the job run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - (Applicable when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - (Applicable when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) The total number of OCPUs available to the job run instance. + * `shape_name` - (Required when job_infrastructure_type=ME_STANDALONE | MULTI_NODE | STANDALONE) The name that corresponds to the JobShapeSummary to use for the job node + * `subnet_id` - (Required when job_infrastructure_type=STANDALONE) The subnet to create a secondary vnic in to attach to the instance running the job + * `minimum_success_replicas` - (Optional) The minimum threshold of successful replicas for node group to be successful. All replicas need to succeed if this is not specified. + * `name` - (Required) node group name. + * `replicas` - (Optional) The number of nodes. + * `job_node_type` - (Required) The node type used for job run. + * `maximum_runtime_in_minutes` - (Optional) A time bound for the execution of the job run. Timer starts when the job run is in progress. + * `startup_order` - (Optional) The execution order of node groups * `opc_parent_rpt_url` - (Optional) URL to fetch the Resource Principal Token from the parent resource. * `project_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the job run with. @@ -107,6 +251,12 @@ The following attributes are exported: * `environment_variables` - Environment variables to set for the job. * `job_type` - The type of job. * `maximum_runtime_in_minutes` - A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - The probe indicates whether the application within the job run has started. + * `command` - The commands to run in the target job run to perform the startup probe + * `failure_threshold` - How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - Number of seconds how often the job run should perform a startup probe * `job_environment_configuration_override_details` - Environment configuration to capture job runtime dependencies. * `cmd` - The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. * `entrypoint` - The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). @@ -122,13 +272,58 @@ The following attributes are exported: * `cpu_baseline` - The baseline OCPU utilization for a subcore burstable VM instance. If this attribute is left blank, it will default to `BASELINE_1_1`. The following values are supported: BASELINE_1_8 - baseline usage is 1/8 of an OCPU. BASELINE_1_2 - baseline usage is 1/2 of an OCPU. BASELINE_1_1 - baseline usage is an entire OCPU. This represents a non-burstable instance. * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. * `ocpus` - The total number of OCPUs available to the job run instance. - * `shape_name` - The shape used to launch the job run instances. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job +* `job_infrastructure_configuration_override_details` - The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance running the job + * `job_infrastructure_type` - The infrastructure type used for job run. + * `job_shape_config_details` - Details for the job run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - The total number of OCPUs available to the job run instance. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job * `job_log_configuration_override_details` - Logging configuration for resource. * `enable_auto_log_creation` - If automatic on-behalf-of log object creation is enabled for job runs. * `enable_logging` - If customer logging is enabled for job runs. * `log_group_id` - The log group id for where log objects are for job runs. * `log_id` - The log id the job run will push logs too. +* `job_node_configuration_override_details` - The job node configuration details + * `job_network_configuration` - The job network configuration details + * `job_network_type` - job network type + * `subnet_id` - The custom subnet id + * `job_node_group_configuration_details_list` - List of JobNodeGroupConfigurationDetails + * `job_configuration_details` - The job configuration details + * `command_line_arguments` - The arguments to pass to the job. + * `environment_variables` - Environment variables to set for the job. + * `job_type` - The type of job. + * `maximum_runtime_in_minutes` - A time bound for the execution of the job. Timer starts when the job becomes active. + * `startup_probe_details` - The probe indicates whether the application within the job run has started. + * `command` - The commands to run in the target job run to perform the startup probe + * `failure_threshold` - How many times the job will try before giving up when a probe fails. + * `initial_delay_in_seconds` - Number of seconds after the job run has started before a startup probe is initiated. + * `job_probe_check_type` - The probe check type to perform the startup probe and specifies the type of health check for a job. + * `period_in_seconds` - Number of seconds how often the job run should perform a startup probe + * `job_environment_configuration_details` - Environment configuration to capture job runtime dependencies. + * `cmd` - The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a list of strings. Use `CMD` as arguments to the `ENTRYPOINT` or the only command to run in the absence of an `ENTRYPOINT`. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. + * `entrypoint` - The container image run [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of strings. Accept the `CMD` as extra arguments. The combined size of `CMD` and `ENTRYPOINT` must be less than 2048 bytes. More information on how `CMD` and `ENTRYPOINT` interact are [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * `image` - The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: `.ocir.io//:` `.ocir.io//:@digest` + * `image_digest` - The digest of the container image. For example, `sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030` + * `image_signature_id` - OCID of the container image signature + * `job_environment_type` - The environment configuration type used for job runtime. + * `job_infrastructure_configuration_details` - The job infrastructure configuration details (shape, block storage, etc.) + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance running the job + * `job_infrastructure_type` - The infrastructure type used for job run. + * `job_shape_config_details` - Details for the job run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - The total amount of memory available to the job run instance, in gigabytes. + * `ocpus` - The total number of OCPUs available to the job run instance. + * `shape_name` - The name that corresponds to the JobShapeSummary to use for the job node + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the job + * `minimum_success_replicas` - The minimum threshold of successful replicas for node group to be successful. All replicas need to succeed if this is not specified. + * `name` - node group name. + * `replicas` - The number of nodes. + * `job_node_type` - The node type used for job run. + * `maximum_runtime_in_minutes` - A time bound for the execution of the job run. Timer starts when the job run is in progress. + * `startup_order` - The execution order of node groups * `job_storage_mount_configuration_details_list` - Collection of JobStorageMountConfigurationDetails. * `bucket` - The object storage bucket * `destination_directory_name` - The local directory name to be mounted @@ -142,6 +337,10 @@ The following attributes are exported: * `log_details` - Customer logging details for job run. * `log_group_id` - The log group id for where log objects will be for job runs. * `log_id` - The log id of the log object the job run logs will be shipped to. +* `node_group_details_list` - Collection of NodeGroupDetails + * `lifecycle_details` - The state details of the node group. + * `name` - node group name. + * `state` - The state of the node group. * `project_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the job run with. * `state` - The state of the job run. * `time_accepted` - The date and time the job run was accepted in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). diff --git a/website/docs/r/datascience_pipeline_run.html.markdown b/website/docs/r/datascience_pipeline_run.html.markdown index a5e060478a8..6ad1ac0e181 100644 --- a/website/docs/r/datascience_pipeline_run.html.markdown +++ b/website/docs/r/datascience_pipeline_run.html.markdown @@ -34,6 +34,20 @@ resource "oci_datascience_pipeline_run" "test_pipeline_run" { defined_tags = {"Operations.CostCenter"= "42"} display_name = var.pipeline_run_display_name freeform_tags = {"Department"= "Finance"} + infrastructure_configuration_override_details { + #Required + block_storage_size_in_gbs = var.pipeline_run_infrastructure_configuration_override_details_block_storage_size_in_gbs + shape_name = oci_core_shape.test_shape.name + + #Optional + shape_config_details { + + #Optional + memory_in_gbs = var.pipeline_run_infrastructure_configuration_override_details_shape_config_details_memory_in_gbs + ocpus = var.pipeline_run_infrastructure_configuration_override_details_shape_config_details_ocpus + } + subnet_id = oci_core_subnet.test_subnet.id + } log_configuration_override_details { #Optional @@ -91,6 +105,20 @@ resource "oci_datascience_pipeline_run" "test_pipeline_run" { num_executors = var.pipeline_run_step_override_details_step_dataflow_configuration_details_num_executors warehouse_bucket_uri = var.pipeline_run_step_override_details_step_dataflow_configuration_details_warehouse_bucket_uri } + step_infrastructure_configuration_details { + #Required + block_storage_size_in_gbs = var.pipeline_run_step_override_details_step_infrastructure_configuration_details_block_storage_size_in_gbs + shape_name = oci_core_shape.test_shape.name + + #Optional + shape_config_details { + + #Optional + memory_in_gbs = var.pipeline_run_step_override_details_step_infrastructure_configuration_details_shape_config_details_memory_in_gbs + ocpus = var.pipeline_run_step_override_details_step_infrastructure_configuration_details_shape_config_details_ocpus + } + subnet_id = oci_core_subnet.test_subnet.id + } } system_tags = var.pipeline_run_system_tags } @@ -109,6 +137,13 @@ The following arguments are supported: * `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` * `display_name` - (Optional) (Updatable) A user-friendly display name for the resource. * `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. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +* `infrastructure_configuration_override_details` - (Optional) The infrastructure configuration details of a pipeline or a step. + * `block_storage_size_in_gbs` - (Required) The size of the block storage volume to attach to the instance. + * `shape_config_details` - (Optional) Details for the pipeline step run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - (Optional) A pipeline step run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs. + * `ocpus` - (Optional) A pipeline step run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified. + * `shape_name` - (Required) The shape used to launch the instance for all step runs in the pipeline. + * `subnet_id` - (Optional) The subnet to create a secondary vnic in to attach to the instance running the pipeline step. * `log_configuration_override_details` - (Optional) The pipeline log configuration details. * `enable_auto_log_creation` - (Optional) If automatic on-behalf-of log object creation is enabled for pipeline runs. * `enable_logging` - (Optional) If customer logging is enabled for pipeline. @@ -144,6 +179,13 @@ The following arguments are supported: * `logs_bucket_uri` - (Optional) An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. * `num_executors` - (Optional) The number of executor VMs requested. * `warehouse_bucket_uri` - (Optional) An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. + * `step_infrastructure_configuration_details` - (Optional) The infrastructure configuration details of a pipeline or a step. + * `block_storage_size_in_gbs` - (Required) The size of the block storage volume to attach to the instance. + * `shape_config_details` - (Optional) Details for the pipeline step run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - (Optional) A pipeline step run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs. + * `ocpus` - (Optional) A pipeline step run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified. + * `shape_name` - (Required) The shape used to launch the instance for all step runs in the pipeline. + * `subnet_id` - (Optional) The subnet to create a secondary vnic in to attach to the instance running the pipeline step. * `step_name` - (Required) The name of the step. * `system_tags` - (Optional) Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` @@ -171,6 +213,13 @@ The following attributes are exported: * `display_name` - A user-friendly display name for the resource. * `freeform_tags` - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. 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 pipeline run. +* `infrastructure_configuration_override_details` - The infrastructure configuration details of a pipeline or a step. + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance. + * `shape_config_details` - Details for the pipeline step run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - A pipeline step run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs. + * `ocpus` - A pipeline step run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified. + * `shape_name` - The shape used to launch the instance for all step runs in the pipeline. + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the pipeline step. * `lifecycle_details` - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'Failed' state. * `log_configuration_override_details` - The pipeline log configuration details. * `enable_auto_log_creation` - If automatic on-behalf-of log object creation is enabled for pipeline runs. @@ -210,6 +259,13 @@ The following attributes are exported: * `logs_bucket_uri` - An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. * `num_executors` - The number of executor VMs requested. * `warehouse_bucket_uri` - An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory for BATCH SQL runs. + * `step_infrastructure_configuration_details` - The infrastructure configuration details of a pipeline or a step. + * `block_storage_size_in_gbs` - The size of the block storage volume to attach to the instance. + * `shape_config_details` - Details for the pipeline step run shape configuration. Specify only when a flex shape is selected. + * `memory_in_gbs` - A pipeline step run instance of type VM.Standard.E3.Flex allows memory to be specified. This specifies the size of the memory in GBs. + * `ocpus` - A pipeline step run instance of type VM.Standard.E3.Flex allows the ocpu count to be specified. + * `shape_name` - The shape used to launch the instance for all step runs in the pipeline. + * `subnet_id` - The subnet to create a secondary vnic in to attach to the instance running the pipeline step. * `step_name` - The name of the step. * `step_runs` - Array of StepRun object for each step. * `dataflow_run_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dataflow run triggered for this step run. diff --git a/website/docs/r/golden_gate_connection.html.markdown b/website/docs/r/golden_gate_connection.html.markdown index c117cfa969b..e26530298ad 100644 --- a/website/docs/r/golden_gate_connection.html.markdown +++ b/website/docs/r/golden_gate_connection.html.markdown @@ -36,6 +36,7 @@ resource "oci_golden_gate_connection" "test_connection" { } authentication_mode = var.connection_authentication_mode authentication_type = var.connection_authentication_type + azure_authority_host = var.connection_azure_authority_host azure_tenant_id = oci_golden_gate_azure_tenant.test_azure_tenant.id bootstrap_servers { @@ -188,6 +189,9 @@ The following arguments are supported: * `value` - (Required when connection_type=DB2 | MICROSOFT_SQLSERVER | MYSQL | POSTGRESQL) (Updatable) The value of the property entry. * `authentication_mode` - (Applicable when connection_type=ORACLE) (Updatable) Authentication mode. It can be provided at creation of Oracle Autonomous Database Serverless connections, when a databaseId is provided. The default value is MTLS. * `authentication_type` - (Required when connection_type=AZURE_DATA_LAKE_STORAGE | DATABRICKS | ELASTICSEARCH | JAVA_MESSAGE_SERVICE | KAFKA_SCHEMA_REGISTRY | REDIS | SNOWFLAKE) (Updatable) Authentication type for Java Message Service. If not provided, default is NONE. Optional until 2024-06-27, in the release after it will be made required. +* `azure_authority_host` - (Applicable when connection_type=AZURE_DATA_LAKE_STORAGE) (Updatable) The endpoint used for authentication with Microsoft Entra ID (formerly Azure Active Directory). Default value: https://login.microsoftonline.com When connecting to a non-public Azure Cloud, the endpoint must be provided, eg: + * Azure China: https://login.chinacloudapi.cn/ + * Azure US Government: https://login.microsoftonline.us/ * `azure_tenant_id` - (Applicable when connection_type=AZURE_DATA_LAKE_STORAGE) (Updatable) Azure tenant ID of the application. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. e.g.: 14593954-d337-4a61-a364-9f758c64f97f * `bootstrap_servers` - (Applicable when connection_type=KAFKA) (Updatable) Kafka bootstrap. Equivalent of bootstrap.servers configuration property in Kafka: list of KafkaBootstrapServer objects specified by host/port. Used for establishing the initial connection to the Kafka cluster. Example: `"server1.example.com:9092,server2.example.com:9092"` * `host` - (Required when connection_type=KAFKA) (Updatable) The name or address of a host. @@ -223,8 +227,8 @@ The following arguments are supported: * `description` - (Optional) (Updatable) Metadata about this specific object. * `display_name` - (Required) (Updatable) An object's Display Name. * `does_use_secret_ids` - (Optional) (Updatable) Indicates that sensitive attributes are provided via Secrets. -* `endpoint` - (Applicable when connection_type=AMAZON_S3 | AZURE_DATA_LAKE_STORAGE | MICROSOFT_FABRIC) (Updatable) Optional Microsoft Fabric service endpoint. Default value: https://onelake.dfs.fabric.microsoft.com -* `fingerprint` - (Applicable when connection_type=ELASTICSEARCH) (Updatable) Fingerprint required by TLS security protocol. Eg.: '6152b2dfbff200f973c5074a5b91d06ab3b472c07c09a1ea57bb7fd406cdce9c' +* `endpoint` - (Applicable when connection_type=AMAZON_KINESIS | AMAZON_S3 | AZURE_DATA_LAKE_STORAGE | MICROSOFT_FABRIC) (Updatable) The endpoint URL of the 3rd party cloud service. e.g.: 'https://kinesis.us-east-1.amazonaws.com' If not provided, GoldenGate will default to the default endpoint in the `region`. +* `fingerprint` - (Applicable when connection_type=ELASTICSEARCH) (Updatable) Fingerprint required by TLS security protocol. E.g.: '6152b2dfbff200f973c5074a5b91d06ab3b472c07c09a1ea57bb7fd406cdce9c' * `freeform_tags` - (Optional) (Updatable) A simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` * `host` - (Required when connection_type=DB2 |GENERIC | GOLDENGATE | MICROSOFT_SQLSERVER | MYSQL | POSTGRESQL) (Updatable) The name or address of a host. In case of Generic connection type host and port separated by colon. Example: `"server.example.com:1234"` For multiple hosts, provide a comma separated list. Example: `"server1.example.com:1000,server1.example.com:2000"` @@ -256,7 +260,7 @@ The following arguments are supported: * `producer_properties` - (Applicable when connection_type=KAFKA) (Updatable) The base64 encoded content of the producer.properties file. * `public_key_fingerprint` - (Applicable when connection_type=OCI_OBJECT_STORAGE | ORACLE_NOSQL) (Updatable) The fingerprint of the API Key of the user specified by the userId. See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm * `redis_cluster_id` - (Applicable when connection_type=REDIS) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Redis cluster. -* `region` - (Applicable when connection_type=AMAZON_S3 | OCI_OBJECT_STORAGE | ORACLE_NOSQL) (Updatable) The name of the region. e.g.: us-ashburn-1 If the region is not provided, backend will default to the default region. +* `region` - (Applicable when connection_type=AMAZON_KINESIS | AMAZON_S3 | OCI_OBJECT_STORAGE | ORACLE_NOSQL) (Updatable) The name of the AWS region where the bucket is created. If not provided, GoldenGate will default to 'us-west-2'. Note: this property will become mandatory after May 20, 2026. * `routing_method` - (Optional) (Updatable) Controls the network traffic direction to the target: SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. DEDICATED_ENDPOINT: A dedicated private endpoint is created in the target VCN subnet for the connection. The subnetId is required when DEDICATED_ENDPOINT networking is selected. * `sas_token` - (Applicable when connection_type=AZURE_DATA_LAKE_STORAGE) (Updatable) Credential that uses a shared access signature (SAS) to authenticate to an Azure Service. This property is required when 'authenticationType' is set to 'SHARED_ACCESS_SIGNATURE'. e.g.: ?sv=2020-06-08&ss=bfqt&srt=sco&sp=rwdlacupyx&se=2020-09-10T20:27:28Z&st=2022-08-05T12:27:28Z&spr=https&sig=C1IgHsiLBmTSStYkXXGLTP8it0xBrArcgCqOsZbXwIQ%3D Deprecated: This field is deprecated and replaced by "sasTokenSecretId". This field will be removed after February 15 2026. * `sas_token_secret_id` - (Applicable when connection_type=AZURE_DATA_LAKE_STORAGE) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the sas token is stored. Note: When provided, 'sasToken' field must not be provided. @@ -264,18 +268,26 @@ The following arguments are supported: * `secret_access_key_secret_id` - (Applicable when connection_type=AMAZON_KINESIS | AMAZON_S3) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the secret access key is stored. Note: When provided, 'secretAccessKey' field must not be provided. * `security_protocol` - (Required when connection_type=DB2 | ELASTICSEARCH | JAVA_MESSAGE_SERVICE | KAFKA | MICROSOFT_SQLSERVER | MONGODB | MYSQL | POSTGRESQL | REDIS) (Updatable) Security protocol for Java Message Service. If not provided, default is PLAIN. Optional until 2024-06-27, in the release after it will be made required. * `servers` - (Required when connection_type=ELASTICSEARCH | REDIS) (Updatable) Comma separated list of Elasticsearch server addresses, specified as host:port entries, where :port is optional. If port is not specified, it defaults to 9200. Used for establishing the initial connection to the Elasticsearch cluster. Example: `"server1.example.com:4000,server2.example.com:4000"` -* `service_account_key_file` - (Required when connection_type=GOOGLE_BIGQUERY | GOOGLE_CLOUD_STORAGE | GOOGLE_PUBSUB) (Updatable) The base64 encoded content of the service account key file containing the credentials required to use Google Cloud Storage. Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. +* `service_account_key_file` - (Applicable when connection_type=GOOGLE_BIGQUERY | GOOGLE_CLOUD_STORAGE | GOOGLE_PUBSUB) (Updatable) The base64 encoded content of the service account key file containing the credentials required to use Google Cloud Storage. Deprecated: This field is deprecated and replaced by "serviceAccountKeyFileSecretId". This field will be removed after February 15 2026. * `service_account_key_file_secret_id` - (Applicable when connection_type=GOOGLE_BIGQUERY | GOOGLE_CLOUD_STORAGE | GOOGLE_PUBSUB) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, which contains the credentials required to use Google Cloud Storage. Note: When provided, 'serviceAccountKeyFile' field must not be provided. * `session_mode` - (Applicable when connection_type=ORACLE) (Updatable) The mode of the database connection session to be established by the data client. 'REDIRECT' - for a RAC database, 'DIRECT' - for a non-RAC database. Connection to a RAC database involves a redirection received from the SCAN listeners to the database node to connect to. By default the mode would be DIRECT. * `should_use_jndi` - (Required when connection_type=JAVA_MESSAGE_SERVICE) (Updatable) If set to true, Java Naming and Directory Interface (JNDI) properties should be provided. -* `should_use_resource_principal` - (Applicable when connection_type=OCI_OBJECT_STORAGE | ORACLE_NOSQL) (Updatable) Indicates that the user intents to connect to the instance through resource principal. +* `should_use_resource_principal` - (Applicable when connection_type=OCI_OBJECT_STORAGE | ORACLE_NOSQL) (Updatable) Specifies that the user intends to authenticate to the instance using a resource principal. Default: false * `should_validate_server_certificate` - (Applicable when connection_type=MICROSOFT_SQLSERVER) (Updatable) If set to true, the driver validates the certificate that is sent by the database server. * `ssl_ca` - (Applicable when connection_type=MICROSOFT_SQLSERVER | MYSQL | POSTGRESQL) (Updatable) The base64 encoded certificate of the trusted certificate authorities (Trusted CA) for PostgreSQL. The supported file formats are .pem and .crt. It is not included in GET responses if the `view=COMPACT` query parameter is specified. * `ssl_cert` - (Applicable when connection_type=MYSQL | POSTGRESQL) (Updatable) Client Certificate - The base64 encoded content of a .pem or .crt file containing the client public key (for 2-way SSL). It is not included in GET responses if the `view=COMPACT` query parameter is specified. -* `ssl_client_keystash` - (Applicable when connection_type=DB2) (Updatable) The base64 encoded keystash file which contains the encrypted password to the key database file. Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". This field will be removed after February 15 2026. -* `ssl_client_keystash_secret_id` - (Applicable when connection_type=DB2) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, which contains the encrypted password to the key database file. Note: When provided, 'sslClientKeystash' field must not be provided. -* `ssl_client_keystoredb` - (Applicable when connection_type=DB2) (Updatable) The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". This field will be removed after February 15 2026. -* `ssl_client_keystoredb_secret_id` - (Applicable when connection_type=DB2) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, which created at the client containing the server certificate / CA root certificate. Note: When provided, 'sslClientKeystoredb' field must not be provided. +* `ssl_client_keystash` - (Applicable when connection_type=DB2) (Updatable) The base64 encoded keystash file which contains the encrypted password to the key database file. This property is not supported for IBM Db2 for i, as client TLS mode is not available. + + Deprecated: This field is deprecated and replaced by "sslClientKeystashSecretId". This field will be removed after February 15 2026. +* `ssl_client_keystash_secret_id` - (Applicable when connection_type=DB2) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, which contains the encrypted password to the key database file. This property is not supported for IBM Db2 for i, as client TLS mode is not available. + + Note: When provided, 'sslClientKeystash' field must not be provided. +* `ssl_client_keystoredb` - (Applicable when connection_type=DB2) (Updatable) The base64 encoded keystore file created at the client containing the server certificate / CA root certificate. This property is not supported for IBM Db2 for i, as client TLS mode is not available. + + Deprecated: This field is deprecated and replaced by "sslClientKeystoredbSecretId". This field will be removed after February 15 2026. +* `ssl_client_keystoredb_secret_id` - (Applicable when connection_type=DB2) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, which created at the client containing the server certificate / CA root certificate. This property is not supported for IBM Db2 for i, as client TLS mode is not available. + + Note: When provided, 'sslClientKeystoredb' field must not be provided. * `ssl_crl` - (Applicable when connection_type=MYSQL | POSTGRESQL) (Updatable) The base64 encoded list of certificates revoked by the trusted certificate authorities (Trusted CA). Note: This is an optional property and only applicable if TLS/MTLS option is selected. It is not included in GET responses if the `view=COMPACT` query parameter is specified. * `ssl_key` - (Applicable when connection_type=MYSQL | POSTGRESQL) (Updatable) Client Key - The base64 encoded content of a .pem or .crt file containing the client private key (for 2-way SSL). Deprecated: This field is deprecated and replaced by "sslKeySecretId". This field will be removed after February 15 2026. * `ssl_key_password` - (Applicable when connection_type=JAVA_MESSAGE_SERVICE | KAFKA | KAFKA_SCHEMA_REGISTRY) (Updatable) The password for the cert inside of the KeyStore. In case it differs from the KeyStore password, it should be provided. Deprecated: This field is deprecated and replaced by "sslKeyPasswordSecretId". This field will be removed after February 15 2026. @@ -339,6 +351,9 @@ The following attributes are exported: * `authentication_type` - Used authentication mechanism to access Databricks. Required fields by authentication types: * PERSONAL_ACCESS_TOKEN: username is always 'token', user must enter password * OAUTH_M2M: user must enter clientId and clientSecret +* `azure_authority_host` - The endpoint used for authentication with Microsoft Entra ID (formerly Azure Active Directory). Default value: https://login.microsoftonline.com When connecting to a non-public Azure Cloud, the endpoint must be provided, eg: + * Azure China: https://login.chinacloudapi.cn/ + * Azure US Government: https://login.microsoftonline.us/ * `azure_tenant_id` - Azure tenant ID of the application. This property is required when 'authenticationType' is set to 'AZURE_ACTIVE_DIRECTORY'. e.g.: 14593954-d337-4a61-a364-9f758c64f97f * `bootstrap_servers` - Kafka bootstrap. Equivalent of bootstrap.servers configuration property in Kafka: list of KafkaBootstrapServer objects specified by host/port. Used for establishing the initial connection to the Kafka cluster. Example: `"server1.example.com:9092,server2.example.com:9092"` * `host` - The name or address of a host. @@ -373,8 +388,8 @@ The following attributes are exported: * `description` - Metadata about this specific object. * `display_name` - An object's Display Name. * `does_use_secret_ids` - Indicates that sensitive attributes are provided via Secrets. -* `endpoint` - Service endpoint. Optional for Microsoft Fabric, default value: https://onelake.dfs.fabric.microsoft.com, for Azure Storage e.g: https://test.blob.core.windows.net, for Amazon S3 e.g.: 'https://s3.amazonaws.com' -* `fingerprint` - Fingerprint required by TLS security protocol. Eg.: '6152b2dfbff200f973c5074a5b91d06ab3b472c07c09a1ea57bb7fd406cdce9c' +* `endpoint` - Service endpoint. Optional for Microsoft Fabric, default value: https://onelake.dfs.fabric.microsoft.com, for Azure Storage e.g: https://test.blob.core.windows.net, for Amazon S3 e.g.: 'https://s3.amazonaws.com', for Amazon Kinesis e.g.: 'https://kinesis.us-east-1.amazonaws.com' +* `fingerprint` - Fingerprint required by TLS security protocol. E.g.: '6152b2dfbff200f973c5074a5b91d06ab3b472c07c09a1ea57bb7fd406cdce9c' * `freeform_tags` - A simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` * `host` - Host and port separated by colon. Example: `"server.example.com:1234"` @@ -407,7 +422,7 @@ The following attributes are exported: * `producer_properties` - The base64 encoded content of the producer.properties file. * `public_key_fingerprint` - The fingerprint of the API Key of the user specified by the userId. See documentation: https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm * `redis_cluster_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Redis cluster. -* `region` - The name of the region. e.g.: us-ashburn-1 If the region is not provided, backend will default to the default region. +* `region` - The name of the AWS region where the bucket is created. If not provided, GoldenGate will default to 'us-west-2'. Note: this property will become mandatory after May 20, 2026. * `routing_method` - Controls the network traffic direction to the target: SHARED_SERVICE_ENDPOINT: Traffic flows through the Goldengate Service's network to public hosts. Cannot be used for private targets. SHARED_DEPLOYMENT_ENDPOINT: Network traffic flows from the assigned deployment's private endpoint through the deployment's subnet. DEDICATED_ENDPOINT: A dedicated private endpoint is created in the target VCN subnet for the connection. The subnetId is required when DEDICATED_ENDPOINT networking is selected. * `sas_token_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the sas token is stored. Note: When provided, 'sasToken' field must not be provided. * `secret_access_key_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the secret access key is stored. Note: When provided, 'secretAccessKey' field must not be provided. @@ -416,12 +431,16 @@ The following attributes are exported: * `service_account_key_file_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the content of the service account key file is stored, which contains the credentials required to use Google Cloud Storage. Note: When provided, 'serviceAccountKeyFile' field must not be provided. * `session_mode` - The mode of the database connection session to be established by the data client. 'REDIRECT' - for a RAC database, 'DIRECT' - for a non-RAC database. Connection to a RAC database involves a redirection received from the SCAN listeners to the database node to connect to. By default the mode would be DIRECT. * `should_use_jndi` - If set to true, Java Naming and Directory Interface (JNDI) properties should be provided. -* `should_use_resource_principal` - Indicates that the user intents to connect to the instance through resource principal. +* `should_use_resource_principal` - Specifies that the user intends to authenticate to the instance using a resource principal. Default: false * `should_validate_server_certificate` - If set to true, the driver validates the certificate that is sent by the database server. * `ssl_ca` - The base64 encoded certificate of the trusted certificate authorities (Trusted CA). The supported file formats are .pem and .crt. In case of MYSQL and POSTGRESQL connections it is not included in GET responses if the `view=COMPACT` query parameter is specified. * `ssl_cert` - Client Certificate - The base64 encoded content of a .pem or .crt file containing the client public key (for 2-way SSL). It is not included in GET responses if the `view=COMPACT` query parameter is specified. -* `ssl_client_keystash_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, which contains the encrypted password to the key database file. Note: When provided, 'sslClientKeystash' field must not be provided. -* `ssl_client_keystoredb_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, which created at the client containing the server certificate / CA root certificate. Note: When provided, 'sslClientKeystoredb' field must not be provided. +* `ssl_client_keystash_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, which contains the encrypted password to the key database file. This property is not supported for IBM Db2 for i, as client TLS mode is not available. + + Note: When provided, 'sslClientKeystash' field must not be provided. +* `ssl_client_keystoredb_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, which created at the client containing the server certificate / CA root certificate. This property is not supported for IBM Db2 for i, as client TLS mode is not available. + + Note: When provided, 'sslClientKeystoredb' field must not be provided. * `ssl_crl` - The base64 encoded list of certificates revoked by the trusted certificate authorities (Trusted CA). Note: This is an optional property and only applicable if TLS/MTLS option is selected. It is not included in GET responses if the `view=COMPACT` query parameter is specified. * `ssl_key_password_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored for the cert inside of the Keystore. In case it differs from the KeyStore password, it should be provided. Note: When provided, 'sslKeyPassword' field must not be provided. * `ssl_key_secret_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret that stores the Client Key diff --git a/website/docs/r/golden_gate_pipeline.html.markdown b/website/docs/r/golden_gate_pipeline.html.markdown index c29c217e718..3f64dea0f65 100644 --- a/website/docs/r/golden_gate_pipeline.html.markdown +++ b/website/docs/r/golden_gate_pipeline.html.markdown @@ -93,7 +93,7 @@ The following arguments are supported: * `action_on_dml_error` - (Optional) (Updatable) Action upon DML Error (active only if 'Replicate schema changes (DDL)' is selected) i.e canReplicateSchemaChange=true * `can_replicate_schema_change` - (Required) (Updatable) If ENABLED, then addition or removal of schema is also replicated, apart from individual tables and records when creating or updating the pipeline. * `should_restart_on_failure` - (Required) (Updatable) If ENABLED, then the replication process restarts itself upon failure. This option applies when creating or updating a pipeline. - * `start_using_default_mapping` - (Optional) (Updatable) If ENABLED, then the pipeline is started as part of pipeline creation. It uses default mapping. This option applies when creating or updating a pipeline. + * `start_using_default_mapping` - (Optional) (Updatable) If ENABLED, then the pipeline is started as part of pipeline creation. It uses default mapping. This option only applies when creating a pipeline and is not applicable while updating a pipeline. * `recipe_type` - (Required) (Updatable) The type of the recipe * `source_connection_details` - (Required) The source connection details for creating a pipeline. * `connection_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the connection being referenced. @@ -143,7 +143,7 @@ The following attributes are exported: * `action_on_dml_error` - Action upon DML Error (active only if 'Replicate schema changes (DDL)' is selected) i.e canReplicateSchemaChange=true * `can_replicate_schema_change` - If ENABLED, then addition or removal of schema is also replicated, apart from individual tables and records when creating or updating the pipeline. * `should_restart_on_failure` - If ENABLED, then the replication process restarts itself upon failure. This option applies when creating or updating a pipeline. - * `start_using_default_mapping` - If ENABLED, then the pipeline is started as part of pipeline creation. It uses default mapping. This option applies when creating or updating a pipeline. + * `start_using_default_mapping` - If ENABLED, then the pipeline is started as part of pipeline creation. It uses default mapping. This option only applies when creating a pipeline and is not applicable while updating a pipeline. * `recipe_type` - The type of the recipe * `source_connection_details` - The source connection details for creating a pipeline. * `connection_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the connection being referenced. diff --git a/website/docs/r/redis_oci_cache_config_set.html.markdown b/website/docs/r/redis_oci_cache_config_set.html.markdown new file mode 100644 index 00000000000..f81175f4009 --- /dev/null +++ b/website/docs/r/redis_oci_cache_config_set.html.markdown @@ -0,0 +1,95 @@ +--- +subcategory: "Redis" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_redis_oci_cache_config_set" +sidebar_current: "docs-oci-resource-redis-oci_cache_config_set" +description: |- + Provides the Oci Cache Config Set resource in Oracle Cloud Infrastructure Redis service +--- + +# oci_redis_oci_cache_config_set +This resource provides the Oci Cache Config Set resource in Oracle Cloud Infrastructure Redis service. + +Create a new Oracle Cloud Infrastructure Cache Config Set for the given Oracle Cloud Infrastructure cache engine version. + + +## Example Usage + +```hcl +resource "oci_redis_oci_cache_config_set" "test_oci_cache_config_set" { + #Required + compartment_id = var.compartment_id + configuration_details { + #Required + items { + #Required + config_key = var.oci_cache_config_set_configuration_details_items_config_key + config_value = var.oci_cache_config_set_configuration_details_items_config_value + } + } + display_name = var.oci_cache_config_set_display_name + software_version = var.oci_cache_config_set_software_version + + #Optional + defined_tags = {"foo-namespace.bar-key"= "value"} + description = var.oci_cache_config_set_description + freeform_tags = {"bar-key"= "value"} +} +``` + +## Argument Reference + +The following arguments are supported: + +* `compartment_id` - (Required) (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the Oracle Cloud Infrastructure Cache Config Set. +* `configuration_details` - (Required) List of Oracle Cloud Infrastructure Cache Config Set Values. + * `items` - (Required) List of ConfigurationInfo objects. + * `config_key` - (Required) Key is the configuration key. + * `config_value` - (Required) Value of the configuration as a string. Can represent a string, boolean, or number. Example: "true", "42", or "someString". +* `defined_tags` - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - (Optional) (Updatable) Description for the custom Oracle Cloud Infrastructure Cache Config Set. +* `display_name` - (Required) (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `freeform_tags` - (Optional) (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` +* `software_version` - (Required) The Oracle Cloud Infrastructure Cache engine version that the cluster is running. + + +** 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the Oracle Cloud Infrastructure Cache Config Set. +* `configuration_details` - List of Oracle Cloud Infrastructure Cache Config Set Values. + * `items` - List of ConfigurationInfo objects. + * `config_key` - Key is the configuration key. + * `config_value` - Value of the configuration as a string. Can represent a string, boolean, or number. Example: "true", "42", or "someString". +* `default_config_set_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the default Oracle Cloud Infrastructure Cache Config Set which the custom Oracle Cloud Infrastructure Cache Config Set is based upon. +* `defined_tags` - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` +* `description` - A description of the Oracle Cloud Infrastructure Cache Config Set. +* `display_name` - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. +* `freeform_tags` - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` +* `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Oracle Cloud Infrastructure Cache Config Set. +* `software_version` - The Oracle Cloud Infrastructure Cache engine version that the cluster is running. +* `state` - The current state of the Oracle Cloud Infrastructure Cache Config Set. +* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` +* `time_created` - The date and time the Oracle Cloud Infrastructure Cache Config Set was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. +* `time_updated` - The date and time the Oracle Cloud Infrastructure Cache Config Set was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + +## 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 Oci Cache Config Set + * `update` - (Defaults to 20 minutes), when updating the Oci Cache Config Set + * `delete` - (Defaults to 20 minutes), when destroying the Oci Cache Config Set + + +## Import + +OciCacheConfigSets can be imported using the `id`, e.g. + +``` +$ terraform import oci_redis_oci_cache_config_set.test_oci_cache_config_set "id" +``` + diff --git a/website/docs/r/redis_oci_cache_config_setlist_associated_oci_cache_cluster.html.markdown b/website/docs/r/redis_oci_cache_config_setlist_associated_oci_cache_cluster.html.markdown new file mode 100644 index 00000000000..d1b5580e2af --- /dev/null +++ b/website/docs/r/redis_oci_cache_config_setlist_associated_oci_cache_cluster.html.markdown @@ -0,0 +1,53 @@ +--- +subcategory: "Redis" +layout: "oci" +page_title: "Oracle Cloud Infrastructure: oci_redis_oci_cache_config_setlist_associated_oci_cache_cluster" +sidebar_current: "docs-oci-resource-redis-oci_cache_config_setlist_associated_oci_cache_cluster" +description: |- + Provides the Oci Cache Config Setlist Associated Oci Cache Cluster resource in Oracle Cloud Infrastructure Redis service +--- + +# oci_redis_oci_cache_config_setlist_associated_oci_cache_cluster +This resource provides the Oci Cache Config Setlist Associated Oci Cache Cluster resource in Oracle Cloud Infrastructure Redis service. + +Gets a list of associated Oracle Cloud Infrastructure Cache clusters for an Oracle Cloud Infrastructure Cache Config Set. + + +## Example Usage + +```hcl +resource "oci_redis_oci_cache_config_setlist_associated_oci_cache_cluster" "test_oci_cache_config_setlist_associated_oci_cache_cluster" { + #Required + oci_cache_config_set_id = oci_redis_oci_cache_config_set.test_oci_cache_config_set.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `oci_cache_config_set_id` - (Required) Unique Oracle Cloud Infrastructure Cache Config Set identifier. + + +** 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: + +* `items` - List of clusters with the same Oracle Cloud Infrastructure Cache Config Set ID. + * `id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. + +## 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 Oci Cache Config Setlist Associated Oci Cache Cluster + * `update` - (Defaults to 20 minutes), when updating the Oci Cache Config Setlist Associated Oci Cache Cluster + * `delete` - (Defaults to 20 minutes), when destroying the Oci Cache Config Setlist Associated Oci Cache Cluster + + +## Import + +Import is not supported for this resource. + diff --git a/website/docs/r/redis_redis_cluster.html.markdown b/website/docs/r/redis_redis_cluster.html.markdown index 71963c58fb3..b487a1bedb9 100644 --- a/website/docs/r/redis_redis_cluster.html.markdown +++ b/website/docs/r/redis_redis_cluster.html.markdown @@ -30,6 +30,7 @@ resource "oci_redis_redis_cluster" "test_redis_cluster" { defined_tags = {"foo-namespace.bar-key"= "value"} freeform_tags = {"bar-key"= "value"} nsg_ids = var.redis_cluster_nsg_ids + oci_cache_config_set_id = oci_redis_oci_cache_config_set.test_oci_cache_config_set.id shard_count = var.redis_cluster_shard_count } ``` @@ -46,6 +47,7 @@ The following arguments are supported: * `node_count` - (Required) (Updatable) The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED. * `node_memory_in_gbs` - (Required) (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes. * `nsg_ids` - (Optional) (Updatable) A list of Network Security Group (NSG) [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this cluster. For more information, see [Using an NSG for Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). +* `oci_cache_config_set_id` - (Optional) (Updatable) The ID of the corresponding Oracle Cloud Infrastructure Cache Config Set for the cluster. * `shard_count` - (Optional) (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED. * `software_version` - (Required) (Updatable) The Oracle Cloud Infrastructure Cache engine version that the cluster is running. * `subnet_id` - (Required) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster's subnet. @@ -73,6 +75,7 @@ The following attributes are exported: * `node_count` - The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED. * `node_memory_in_gbs` - The amount of memory allocated to the cluster's nodes, in gigabytes. * `nsg_ids` - A list of Network Security Group (NSG) [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this cluster. For more information, see [Using an NSG for Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). +* `oci_cache_config_set_id` - The ID of the corresponding Oracle Cloud Infrastructure Cache Config Set for the cluster. * `primary_endpoint_ip_address` - The private IP address of the API endpoint for the cluster's primary node. * `primary_fqdn` - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node. * `replicas_endpoint_ip_address` - The private IP address of the API endpoint for the cluster's replica nodes. diff --git a/website/oci.erb b/website/oci.erb index cfd5e05080c..fe0d0a58412 100644 --- a/website/oci.erb +++ b/website/oci.erb @@ -229,6 +229,30 @@
  • oci_ai_vision_projects
  • +
  • + oci_ai_vision_stream_group +
  • +
  • + oci_ai_vision_stream_groups +
  • +
  • + oci_ai_vision_stream_job +
  • +
  • + oci_ai_vision_stream_jobs +
  • +
  • + oci_ai_vision_stream_source +
  • +
  • + oci_ai_vision_stream_sources +
  • +
  • + oci_ai_vision_vision_private_endpoint +
  • +
  • + oci_ai_vision_vision_private_endpoints +
  • > @@ -240,6 +264,18 @@
  • oci_ai_vision_project
  • +
  • + oci_ai_vision_stream_group +
  • +
  • + oci_ai_vision_stream_job +
  • +
  • + oci_ai_vision_stream_source +
  • +
  • + oci_ai_vision_vision_private_endpoint +
  • @@ -9367,6 +9403,18 @@ > Data Sources