diff --git a/CHANGELOG.md b/CHANGELOG.md
index dbf035a021e..f791f9c1b6f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,259 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/).
+## 2.79.0 - 2024-12-10
+### Added
+- Support for Bring Your Own Key (BYOK) in the Database service
+- Support for refreshing disaster recovery plans in the Disaster Recovery service
+- Support for private access to service instances in the Visual Builder service
+- Support for exadata fleet update and rollback maintenance cycle in the Fleet Application Management service
+- Support for Bring Your Own License (BYOL) for windows virtual machines in the Compute service
+- Support for cascading deletion of applications and runs in the Data Flow service
+- Support for on-demand translation and auto language detection during file translation in the AI Language service
+- Support for alias for endpoints in custom model flow and custom anonymization in the AI Language service
+- Removed fallback to the deprecated Instance Metadata service (IMDS) V1 endpoint
+
+### Breaking Changes
+- Method `public java.util.List getAttachments()` has been removed from model `com.oracle.bmc.visualbuilder.model.VbInstance` in the the Visual Builder service
+- Method `public com.oracle.bmc.visualbuilder.model.IdcsInfoDetails getIdcsInfo()` has been removed from `com.oracle.bmc.visualbuilder.model.VbInstance` in the the Visual Builder service
+- Class `com.oracle.bmc.visualbuilder.model.AttachmentDetails` has been removed in the the Visual Builder service
+- Class `com.oracle.bmc.visualbuilder.model.IdcsInfoDetails` has been removed in the the Visual Builder service
+
+## 2.78.0 - 2024-11-19
+### Added
+- Support for calling Oracle Cloud Infrastructure services in the `me-alain-1` region
+- Support for connection refresh in the GoldenGate service
+- Support for secret compartment id in import and export operations of deployment wallet in the GoldenGate service
+- Support for creating metadata only backups in the GoldenGate service
+- Support for Llama 3.2 unit shape in Generative AI service
+- Support for Llama 3.2 vision in Generative AI Inference service
+- Support for Cohere CommandR response format in Generative AI Inference service
+- Support for optional parameters for unified auditing in the Database service
+- Support for user groups for creating technical requests in the Support Management service
+- Support for additional checksum algorithms (SHA-256, SHA-384, CRC32C) in the Object Storage service
+- Support for single Read Only (RO) endpoint for the read replicas in the PostgreSQL service
+- Support for exascale database vaults in the Database service
+- Support for virtual machine clusters with database vaults in the Database service
+- Support for N3-Gi version in the Database service
+### Breaking Changes
+- Method `public com.oracle.bmc.cims.model.CreateLimitItemDetails$LimitStatus getLimitStatus()` has been removed from the model `com.oracle.bmc.cims.model.CreateLimitItemDetails` in the Customer Incident Management Service
+- Class `com.oracle.bmc.cims.model.CreateLimitItemDetails$LimitStatus` has been removed from the Customer Incident Management Service
+- Class `com.oracle.bmc.cims.model.ServiceCategories` removed has been removed from the Customer Incident Management Service
+- Method `public java.util.List getSubComponents()` has been removed from model `com.oracle.bmc.cims.model.SubCategories` in the Customer Incident Management Service
+
+## 2.77.0 - 2024-11-05
+### Added
+- Support for calling Oracle Cloud Infrastructure services in the `us-somerset-1` region
+- Support for calling Oracle Cloud Infrastructure services in the `us-thames-1` region
+- Support for calling Oracle Cloud Infrastructure services in the `ap-seoul-2` region
+- Support for calling Oracle Cloud Infrastructure services in the `ap-suwon-1` region
+- Support for calling Oracle Cloud Infrastructure services in the `ap-chuncheon-2` region
+- Support for Generative AI Agent service
+- Support for undeleting autonomous databases in the Database service
+- Support for assigning key versions for the pluggable databases in the Database service
+- Support for lifecycle states on list autonomous database operation in the Database service
+- Support for data masking parameter on list refresh activity operation in the Fusion Application as a Service
+- Support for configuring custom endpoints on an instance in the Integration Cloud service
+- Support for updating channel schedules on instance create operation in the Analytics service
+- Support for ExaCC via management agents in the Operations Insights service
+- Support for appending and deleting allowed SQLs from SQL firewall policies in the Data Safe service
+- Support for alarm suppressions with compartment targets and recurring schedules in the Monitoring service
+- Support for Security Attribute service
+- Support for Zero Trust Packet Routing service
+- Support for zero trust packet routing security attributes in the Database service
+- Support for zero trust packet routing security attributes in the Networking service
+- Support for zero trust packet routing security attributes in the Network Load Balancer service
+- Support for disaster recovery failover in the Integration Cloud service
+- Support for OCI Secure Desktops service
+- Support for window preferences on cloud automation tooling updates on ExaCC and ExaCS VM clusters in the Database service
+- Support for maintenance windows in the Stack Monitoring service
+- Renamed service OCI Container Engine to OCI Kubernetes Engine
+- Support for password as an optional parameter on creating admin users in the Fusion Apps as a Service
+- Support for IAM credentials for autonomous databases in the Operations Insights service
+- Support for open id connect discovery in the Oracle Kubernetes Engine service
+- Support for DNS security extensions (DNSSEC) in the DNS service
+- Support for restoring delta between backups to a new volume in the Block Volume service
+- Support for cross region backup copy and replication for volumes encrypted with customer keys in the Block Volume service
+- Support for list operation on deployment environments in the GoldenGate service
+- Support for defining environment types for deployments in the GoldenGate service
+- Support for resource locking in the File storage service
+- Support for customer managed keys via Azure key vault and Amazon Web Services key vault in the Database service
+- Support for generated tokens on create secret operations in the Identity Domains service
+- Support for creating and updating Amazon Web Services asset-sources, EC2 and EBS assets in the Cloud Bridge service
+- Support for listing Amazon Web Services regions which are available for discovery and migration in the Cloud Bridge service
+- Support for model backup retention and restore in the Data Science service
+- Support for host capacity planning for host IO metrics in the Operations Insight service
+- Support for FastConnect redundancy in the Compute service
+- Support for create, publish, clone and delete operations on runbooks in the Fleet Application Management service
+- Support for platform configurations and metadata management in the Fleet Application Management service
+- Support for management of compliance policy rules in the Fleet Application Management service
+- Support for compliance report details based on compliance policy in the Fleet Application Management service
+- Support for administrative settings like auto discovery frequency in the Fleet Application Management service
+- Support for L3IP (Layer 3 IP) listeners in the Network Load Balancing service
+- Support for overriding an existing add-on installation in the Kubernetes Engine service
+- Support for MFA Enablement v2 in the Identity Domains service
+- Support for starting, stopping and updating min/max executor count for SQL Endpoints in the Data Flow service
+- Support for customer message in the Customer Incident Management Service
+- Support for REJECTED limitStatus in the Customer Incident Management Service
+
+### Breaking Changes
+- Field `Standby` has been removed from the model `com.oracle.bmc.integration.model.IntegrationInstance$LifecycleState` in the Integration Cloud service
+- Field `Standby` has been removed from the model `com.oracle.bmc.integration.model.IntegrationInstanceSummary$LifecycleState` in the model Integration Cloud service
+- Field `Standby` has been removed from the request `com.oracle.bmc.integration.requests.ListIntegrationInstancesRequest$LifecycleState` in the Integration Cloud service
+- Return type of method `public com.oracle.bmc.goldengate.model.DeploymentTypeSummary$Category getCategory()` has been changed to `com.oracle.bmc.goldengate.model.DeploymentCategory` in the model `com.oracle.bmc.goldengate.model.DeploymentTypeSummary` in the GoldenGate service
+- Enum `com.oracle.bmc.goldengate.model.DeploymentTypeSummary$Category` has been removed in the GoldenGate service
+- Model `com.oracle.bmc.opsi.model.HostPerformanceMetricGroup` has been removed from the list of superclasses from `com.oracle.bmc.opsi.model.HostContainers` in the Operations Insight service
+- Field `HostContainers` has been removed from the model `com.oracle.bmc.opsi.model.HostPerformanceMetricGroup$MetricName` in the Operations Insight service
+- Method `public com.oracle.bmc.cloudbridge.responses.UpdatePluginResponse updatePlugin(com.oracle.bmc.cloudbridge.requests.UpdatePluginRequest)` has been removed from `com.oracle.bmc.cloudbridge.OcbAgentSvc` in the Cloud Bridge service
+- Class `com.oracle.bmc.cloudbridge.model.UpdatePluginDetails` has been removed from the model `com.oracle.bmc.cloudbridge.model.UpdatePluginDetails` in the Cloud Bridge service
+- Class `com.oracle.bmc.cloudbridge.requests.UpdatePluginRequest` has been removed from `com.oracle.bmc.cloudbridge.requests.UpdatePluginRequest` in the Cloud Bridge service
+- Class `com.oracle.bmc.cloudbridge.responses.UpdatePluginResponse` has been removed from `com.oracle.bmc.cloudbridge.responses.UpdatePluginResponse` in the Cloud Bridge service
+- The retry strategy for getting the X509 token from Identity service was modified and is now protected via circuit breaker
+- Method `public com.oracle.bmc.cims.responses.GetCsiNumberResponse getCsiNumber(com.oracle.bmc.cims.requests.GetCsiNumberRequest)` has been removed from model `com.oracle.bmc.cims.Incident` in the Customer Incident Management Service
+- Method `public com.oracle.bmc.cims.responses.GetStatusResponse getStatus(com.oracle.bmc.cims.requests.GetStatusRequest)` has been removed from model `com.oracle.bmc.cims.Incident` in the Customer Incident Management Service
+- Method `public java.util.List getServiceCategories()` has been removed from model `com.oracle.bmc.cims.model.IncidentResourceType` in the Customer Incident Management Service
+- Method `public java.util.Map getIssueType()` has been removed from model `com.oracle.bmc.cims.model.ServiceCategories` in the Customer Incident Management Service
+- Method `public java.util.Map getServiceCategory()` has been removed from model `com.oracle.bmc.cims.model.ServiceCategories` in the Customer Incident Management Service
+- Class `com.oracle.bmc.cims.requests.GetCsiNumberRequest` has been removed from the the Customer Incident Management Service
+- Class `com.oracle.bmc.cims.requests.GetStatusRequest` has been removed from the Customer Incident Management Service
+- Class `com.oracle.bmc.cims.responses.GetCsiNumberResponse` has been removed from the Customer Incident Management Service
+- Class `com.oracle.bmc.cims.responses.GetStatusResponse` has been removed from the Customer Incident Management Service
+
+## 2.76.0 - 2024-09-17
+### Added
+- Support for calling Oracle Cloud Infrastructure services in the eu-crissier-1 region
+- Support for dedicated AI cluster unit shapes in the Generative AI service
+- Support for ticket numbers when creating access requests in the Managed Access service
+- Support for 23ai database, cloud VM clusters and VM cluster patching in the Exadata Fleet Update service
+- Support for text to speech feature in the AI Speech service
+- Support for notifications and transfer of capacity requests in the OCI Control Center service
+- Support for Delegate Access Control service
+- Support for upgrade and downgrade of shapes of high performance mount targets in the File Storage service
+- Support for private endpoints in the Object Storage service
+- Support for create, update, list and delete operations on scheduling policies and scheduling windows in the Database service
+- Support for specifying domains while creating data guard associations in the Database service
+- Support for provision of developer autonomous databases in the Database service
+- Support for upgrade of developer autonomous databases to paid autonomous databases in the Database service
+- Support for scheduling plans, actions, execution windows and execution actions for maintenance scheduling in the Database service
+- Support for cross-region replication of virtual vaults in the Key Management service
+- Support for listing all active service summaries in the Announcements service
+- Support for VMware major and minor version upgrades in VMware Solution service
+- Support for updating protected database subscriptions in the Autonomous Recovery service
+- Support for health insurance id as an allowed document type in the Document Understanding service
+- Support for advanced database management features for autonomous databases in the Database Management service
+- Support for propagating request ids to load balancer servers in the Load balancer service
+- Support for automatic update orders in Fusion Application as a Service
+
+### Breaking Changes
+- The field `occCustomerGroupId` was made mandatory for the `ListOccAvailabilityCatalogsInternalRequest` call in the OCI Control Center service
+- Method `public java.lang.String getDocumentId()` has been removed from the model `com.oracle.bmc.aidocument.model.DetectedDocumentType` in the Document Understanding service
+- Method `public java.lang.String getTenancyId()` has been removed from the model `com.oracle.bmc.aidocument.model.DocumentClassificationFeature` in the Document Understanding service
+- Method `public java.lang.String getTenancyId()` has been removed from the model `com.oracle.bmc.aidocument.model.DocumentKeyValueExtractionFeature` in the Document Understanding service
+- Field `InsuranceClaim` has been removed from the model `com.oracle.bmc.aidocument.model.DocumentType` in the Document Understanding service
+
+## 2.75.1 - 2024-09-05
+### Added
+- Support for calling Oracle Cloud Infrastructure services in the `eu-crissier-1` region
+
+### Fixed
+- Fixed a bug in `com.oracle.bmc.auth.AbstractFederationClientAuthenticationDetailsProviderBuilder` that could cause `java.lang.IllegalStateException: Client instance has been closed.` if `executeInstanceFallback` failed, rendering `autoDetectEndpointUsingMetadataUrl` unable to auto-detect the authentication endpoint.
+
+## 2.75.0 - 2024-08-28
+### Added
+- Support for Fleet Application Management service
+- Support for creating maintenance runs using autonomous database software images in the Database service
+- Support for Object Storage buckets, Oracle databases, Oracle databases on exascale Infrastructure, autonomous container databases, and autonomous container databases on Cloud at Customer in the Disaster Recovery service
+- Support for multiple sharing modes in the OCI Cache service
+- Support for extended data retention periods for instances in the Integration Cloud service
+- Support for SQL watch and lifecycle management in the Database management service
+- Support for identity domains and feature sets in the Analytics Cloud service
+- Support for automatically extending the storage space for MySQL DB systems in pre-defined increments in the MySQL Database service
+- Support for Delegate Access Control service
+- Support for upgrade and downgrade of shapes of high performance mount targets in the File Storage service
+- Support for private endpoints in the Object Storage service
+- Support for create, update, list and delete operations on scheduling policies and scheduling windows in the Database service
+- Support for specifying domains while creating data guard associations in the Database service
+- Support for provision of developer autonomous databases in the Database service
+- Support for upgrade of developer autonomous databases to paid autonomous databases in the Database service
+- Support for scheduling plans, actions, execution windows and execution actions for maintenance scheduling in the Database service
+- Support for cross-region replication of virtual vaults in the Key Management service
+- Support for listing all active service summaries in the Announcements service
+- Support for VMware major and minor version upgrades in VMware Solution service
+- Support for updating protected database subscriptions in the Autonomous Recovery service
+- Support for health insurance id as an allowed document type in the Document Understanding service
+- Support for advanced database management features for autonomous databases in the Database Management service
+- Support for propagating request ids to load balancer servers in the Load balancer service
+- Support for automatic update orders in Fusion Application as a Service
+
+### Breaking Changes
+- Method `public com.oracle.bmc.disasterrecovery.model.DrPlanExecutionType getDrPlanExecutionType()` has been removed from `com.oracle.bmc.disasterrecovery.requests.ListDrPlanExecutionsRequest` in the Disaster Recovery service
+- Method `public java.lang.String getDocumentId()` has been removed from the model `com.oracle.bmc.aidocument.model.DetectedDocumentType` in the Document Understanding service
+- Method `public java.lang.String getTenancyId()` has been removed from the model `com.oracle.bmc.aidocument.model.DocumentClassificationFeature` in the Document Understanding service
+- Method `public java.lang.String getTenancyId()` has been removed from the model `com.oracle.bmc.aidocument.model.DocumentKeyValueExtractionFeature` in the Document Understanding service
+- Field `InsuranceClaim` has been removed from the model `com.oracle.bmc.aidocument.model.DocumentType` in the Document Understanding service
+
+## 2.74.0 - 2024-08-13
+### Added
+- Support for cluster placement groups on get operations in the Database service
+- Support for baseline metric for imported resources and metric extensions in the Stack Monitoring service
+- Support for implicit JIT and group membership provisioning during OpenID connect flow in the Identity Domains service
+- Support for realtime speech and customizations in the AI Speech service
+- Support for self-service instance maintenance API in the Compute service
+- Support for GoldenGate suspend phase in the Database Migration service
+- Support for creating custom alert policies in the Data Safe service
+- Support for tunnel inspection in the Network firewall service
+- Support for diagnostics collection preferences and custom GI images in the Exadata Fleet Update service
+- Support for calling Oracle Cloud Infrastructure services in the `me-riyadh-1` region
+- Support for vertically scaling a Database system in the PostgreSQL service
+- Support for flex shapes in the PostgreSQL service
+- Support for new fork repository feature in the Source Code Management service
+- Support for Developer Charts in the Source Code Management service
+- Support for pull requests and merge in Source Code Management service
+- Support for limiting custom and versioned custom software source content to the latest package versions in the OS Management service
+- Support for Open Data Hub (ODH) patching in a staged manner in the Big Data service
+- Support for Autoscale Memory Utilization in the Big Data service
+- Support for Resource Principal configuration feature in the Big Data service
+- Support for a new optional parameter compartment ID in the Java Management service
+- Support for Agent Installer in the Java Management service
+- Support for Java migration analysis request of deployed applications in the Java Management service
+- Support for JmsPlugin in the Java Management service
+- Support for improved cryptographic analysis result listing in the Java Management service
+- Support for improved fleet agent configuration setting in the Java Management service
+- Support for improved Java migration analysis result listing in the Java Management service
+- Support for improved library usage summary in the Java Management service
+- Support for improved performance tuning analysis result listing in the Java Management service
+- Support for improved work request listing in the Java Management service
+- Support for calling Oracle Cloud Infrastructure services in the `me-abudhabi-4` region
+- Support for viewing subscription limits in the Limits service
+- Support for TCP idle timeout on network load balancer create and update operations in the Network Load Balancing service
+- Support for creating integration instances of type Healthcare in the Integration Cloud service
+
+### Breaking Changes
+- Method `public java.util.List getServicePrincipals()` has been removed from the model `com.oracle.bmc.identitydomains.model.IdentityPropagationTrust` in the Identity Domains service
+- The property `credentials` was made required in the model `CreateDbSystemDetails` in the PostgreSQL service
+
+
+## 2.73.2 - 2024-07-23
+### Added
+- Support for subscription id attribute in Cloud Exadata Infrastructure and Cloud VM Clusters in the Database service
+- Support for SQL and FTP monitors on create and update operations in the Application Performance Monitoring service
+- Support for MySQL Heatwave database systems in the Operations Insights service
+- Support for creating and updating schedules for user assessments and security assessments in the Data Safe service
+- Support for creating and updating sensitive data models of the tables for discovery in the Data Safe service
+- Support for additional optional parameters on autonomous database create and update operations in the Database service
+
+## 2.73.1 - 2024-07-16
+### Added
+- Support for calling Oracle Cloud Infrastructure services in the `ap-singapore-2` and `me-abudhabi-2` regions
+- Support for additional parameters in list and delete operations in the File Storage service
+- Support for host capacity planning to analyze disabled and deleted resources in the Operations Insights service
+- Support for title and description updates in the Capacity Management service
+- Support for listing parameters for migrations in the Database Migration service
+- Support for Oracle exadata database service on exascale Infrastructure (ExaDB-XS) in the Database service
+
+### Fixed
+Fixed endpoint templates for multiple service parameters
+
## 2.73.0 - 2024-06-25
### Added
- Support for Demand Signal service
diff --git a/THIRD_PARTY_LICENSES.txt b/THIRD_PARTY_LICENSES.txt
index 8a40ca718c4..4041ae2f7e2 100644
--- a/THIRD_PARTY_LICENSES.txt
+++ b/THIRD_PARTY_LICENSES.txt
@@ -4,7 +4,6 @@
------------------------------- Licenses -------------------------------
- Apache License 2.0
- BSD 3-Clause
-- BSD 2-Clause
- Common Development and Distribution License (CDDL)
- Eclipse Distribution License 1.0
- Eclipse Public License 2.0
@@ -577,35 +576,6 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-------------------------------------------------------------------------
-
------------------------------ BSD 2-Clause -----------------------------
-
-Redistribution and use in source and binary forms, with or without
-modification,are permitted provided that the following conditions are
-met:
-
- 1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
------------------------------------------------------------------------
---------- Common Development and Distribution License (CDDL) ----------
@@ -2317,90 +2287,7 @@ http://www.w3.org/Consortium/Legal/
========================= Fourth Party Notices =========================
-------------------------------------------------------------------------
-
--- FastDoubleParser
-
-This is a Java port of Daniel Lemire's fast_float project.
-This project provides parsers for double, float, BigDecimal and BigInteger values.
-
-## Copyright
-
-Copyright © 2023 Werner Randelshofer, Switzerland.
-
-## Licensing
-
-This code is licensed under MIT License.
-
-Some portions of the code have been derived from other projects.
-All these projects require that we include a copyright notice, and
-some require that we also include some text of their license file.
-
-fast_double_parser, Copyright (c) 2022 Daniel Lemire. BSL License.
-
-fast_float, Copyright (c) 2021 The fast_float authors. MIT License.
-
-bigint, Copyright 2020 Tim Buktu. 2-clause BSD License.
-
-https://github.com/lemire/fast_double_parser
-
-Copyright (c) Daniel Lemire
-
-Copyright 2022 Tim Buktu
-
----
-Boost Software License - Version 1.0 - August 17th, 2003
-
-Permission is hereby granted, free of charge, to any person or organization
-obtaining a copy of the software and accompanying documentation covered by
-this license (the "Software") to use, reproduce, display, distribute,
-execute, and transmit the Software, and to prepare derivative works of the
-Software, and to permit third-parties to whom the Software is furnished to
-do so, all subject to the following:
-
-The copyright notices in the Software and this entire statement, including
-the above license grant, this restriction and the following disclaimer,
-must be included in all copies of the Software, in whole or in part, and
-all derivative works of the Software, unless such copies or derivative
-works are solely in the form of machine-executable object code generated by
-a source language processor.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
-SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
-FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
----
-
-https://github.com/tbuktu/bigint/tree/floatfft
-
-The following files are licensed under a 2-clause BSD license:
-
- https://github.com/tbuktu/bigint/tree/floatfft/src/main/java/java/math/BigInteger.java.diff
- https://github.com/tbuktu/bigint/tree/floatfft/src/main/java/java/math/MutableBigInteger.java.diff
- https://github.com/tbuktu/bigint/tree/floatfft/src/main/java/java/math/BigDecimal.java.diff
- https://github.com/tbuktu/bigint/tree/floatfft/src/main/java/MultBenchmark.java
- https://github.com/tbuktu/bigint/tree/floatfft/src/main/java/DivBenchmark.java
- https://github.com/tbuktu/bigint/tree/floatfft/src/test/java/BigIntegerTest.java.diff
- https://github.com/tbuktu/bigint/tree/floatfft/src/test/java/BigIntegerTestOld.java
-
-The following files are licensed under the General Public License 2.0 (GPL v2):
-
- https://github.com/tbuktu/bigint/tree/floatfft/src/main/java/java/math/BigInteger.java
- https://github.com/tbuktu/bigint/tree/floatfft/src/main/java/java/math/BigDecimal.java
- https://github.com/tbuktu/bigint/tree/floatfft/src/main/java/java/math/MutableBigInteger.java
- https://github.com/tbuktu/bigint/tree/floatfft/src/test/java/BigIntegerTest.java
-
-(We only use those portions of the bigint project that can be licensed
-under 2-clause BSD License.) (The file 'thirdparty-LICENSE' is
-included in the sources and classes Jar files that are released by
-this project - as is required by that license.)
-
-------------------------------------------------------------------------
-
--- commons-logging
+commons-logging
Apache Commons Logging
Copyright 2003-2016 The Apache Software Foundation
@@ -2410,7 +2297,7 @@ The Apache Software Foundation (http://www.apache.org/).
------------------------------------------------------------------------
--- jakarta.validation-api
+jakarta.validation-api
Notices for Eclipse Jakarta Bean Validation
diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml
index 9ae4de6fd44..63bd0ac45f6 100644
--- a/bmc-accessgovernancecp/pom.xml
+++ b/bmc-accessgovernancecp/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 2.73.0
+ 2.79.0
../pom.xml
oci-java-sdk-accessgovernancecp
@@ -16,7 +16,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 2.73.0
+ 2.79.0
\ No newline at end of file
diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml
index 5d0745f661e..2ff007ff169 100644
--- a/bmc-addons/bmc-apache-connector-provider/pom.xml
+++ b/bmc-addons/bmc-apache-connector-provider/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk-addons
- 2.73.0
+ 2.79.0
../pom.xml
@@ -18,7 +18,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 2.73.0
+ 2.79.0
diff --git a/bmc-addons/bmc-graalvm-addon/pom.xml b/bmc-addons/bmc-graalvm-addon/pom.xml
index ca0b7143776..87125dd478e 100644
--- a/bmc-addons/bmc-graalvm-addon/pom.xml
+++ b/bmc-addons/bmc-graalvm-addon/pom.xml
@@ -4,7 +4,7 @@
oci-java-sdk-addons
com.oracle.oci.sdk
- 2.73.0
+ 2.79.0
../pom.xml
oci-java-sdk-addons-graalvm
@@ -132,30 +132,24 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 2.73.0
+ 2.79.0
com.oracle.oci.sdk
oci-java-sdk-objectstorage-extensions
- 2.73.0
+ 2.79.0
test
com.oracle.oci.sdk
oci-java-sdk-identity
- 2.73.0
- test
-
-
- com.oracle.oci.sdk
- oci-java-sdk-objectstorage-extensions
- 2.73.0
+ 2.79.0
test
com.oracle.oci.sdk
oci-java-sdk-core
- 2.73.0
+ 2.79.0
test
diff --git a/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java b/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java
index 6d8ee976db3..51ef3080865 100644
--- a/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java
+++ b/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java
@@ -51,6 +51,7 @@
"com.oracle.bmc.datalabelingservicedataplane.SdkClientsMetadata",
"com.oracle.bmc.datasafe.SdkClientsMetadata",
"com.oracle.bmc.datascience.SdkClientsMetadata",
+ "com.oracle.bmc.delegateaccesscontrol.SdkClientsMetadata",
"com.oracle.bmc.demandsignal.SdkClientsMetadata",
"com.oracle.bmc.desktops.SdkClientsMetadata",
"com.oracle.bmc.devops.SdkClientsMetadata",
@@ -62,10 +63,13 @@
"com.oracle.bmc.emwarehouse.SdkClientsMetadata",
"com.oracle.bmc.events.SdkClientsMetadata",
"com.oracle.bmc.filestorage.SdkClientsMetadata",
+ "com.oracle.bmc.fleetappsmanagement.SdkClientsMetadata",
"com.oracle.bmc.fleetsoftwareupdate.SdkClientsMetadata",
"com.oracle.bmc.functions.SdkClientsMetadata",
"com.oracle.bmc.fusionapps.SdkClientsMetadata",
"com.oracle.bmc.generativeai.SdkClientsMetadata",
+ "com.oracle.bmc.generativeaiagent.SdkClientsMetadata",
+ "com.oracle.bmc.generativeaiagentruntime.SdkClientsMetadata",
"com.oracle.bmc.generativeaiinference.SdkClientsMetadata",
"com.oracle.bmc.genericartifactscontent.SdkClientsMetadata",
"com.oracle.bmc.globallydistributeddatabase.SdkClientsMetadata",
@@ -126,6 +130,7 @@
"com.oracle.bmc.rover.SdkClientsMetadata",
"com.oracle.bmc.sch.SdkClientsMetadata",
"com.oracle.bmc.secrets.SdkClientsMetadata",
+ "com.oracle.bmc.securityattribute.SdkClientsMetadata",
"com.oracle.bmc.servicecatalog.SdkClientsMetadata",
"com.oracle.bmc.servicemanagerproxy.SdkClientsMetadata",
"com.oracle.bmc.servicemesh.SdkClientsMetadata",
@@ -143,6 +148,7 @@
"com.oracle.bmc.waa.SdkClientsMetadata",
"com.oracle.bmc.waas.SdkClientsMetadata",
"com.oracle.bmc.waf.SdkClientsMetadata",
- "com.oracle.bmc.workrequests.SdkClientsMetadata"
+ "com.oracle.bmc.workrequests.SdkClientsMetadata",
+ "com.oracle.bmc.zpr.SdkClientsMetadata"
})
final class SdkAutomaticFeatureMetadata {}
diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml
index dc6d40013d8..5f09c73fc9e 100644
--- a/bmc-addons/bmc-oke-workload-identity/pom.xml
+++ b/bmc-addons/bmc-oke-workload-identity/pom.xml
@@ -4,7 +4,7 @@
oci-java-sdk-addons
com.oracle.oci.sdk
- 2.73.0
+ 2.79.0
4.0.0
@@ -38,31 +38,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 2.73.0
-
-
- com.oracle.oci.sdk
- oci-java-sdk-core
- 2.73.0
- test
-
-
- com.oracle.oci.sdk
- oci-java-sdk-identity
- 2.73.0
- test
-
-
- com.oracle.oci.sdk
- oci-java-sdk-keymanagement
- 2.73.0
- test
-
-
- io.specto
- hoverfly-java
- 0.11.1
- test
+ 2.79.0
diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml
index d11d2e2b795..09c9e3f3c9b 100644
--- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml
+++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk-addons
- 2.73.0
+ 2.79.0
../pom.xml
@@ -25,7 +25,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 2.73.0
+ 2.79.0
diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml
index 29c5f3c4347..cf8e7ace579 100644
--- a/bmc-addons/bmc-sasl/pom.xml
+++ b/bmc-addons/bmc-sasl/pom.xml
@@ -7,7 +7,7 @@
oci-java-sdk-addons
com.oracle.oci.sdk
- 2.73.0
+ 2.79.0
../pom.xml
@@ -57,12 +57,12 @@
com.google.protobuf
protobuf-java
- 3.19.6
+ 3.25.5
com.oracle.oci.sdk
oci-java-sdk-common
- 2.73.0
+ 2.79.0
diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml
index 58915bbb406..d4dfda6dba7 100644
--- a/bmc-addons/pom.xml
+++ b/bmc-addons/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 2.73.0
+ 2.79.0
../pom.xml
diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml
index 17c57b638a5..1262d802260 100644
--- a/bmc-adm/pom.xml
+++ b/bmc-adm/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 2.73.0
+ 2.79.0
../pom.xml
oci-java-sdk-adm
@@ -16,7 +16,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 2.73.0
+ 2.79.0
\ No newline at end of file
diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml
index b72ec9b837f..865e98ee4c3 100644
--- a/bmc-aianomalydetection/pom.xml
+++ b/bmc-aianomalydetection/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 2.73.0
+ 2.79.0
../pom.xml
oci-java-sdk-aianomalydetection
@@ -16,7 +16,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 2.73.0
+ 2.79.0
\ No newline at end of file
diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml
index 487c8dc0977..9b2ad628ec3 100644
--- a/bmc-aidocument/pom.xml
+++ b/bmc-aidocument/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 2.73.0
+ 2.79.0
../pom.xml
oci-java-sdk-aidocument
@@ -16,7 +16,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 2.73.0
+ 2.79.0
\ No newline at end of file
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocument.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocument.java
index cce57b2abb9..c1fc1b44213 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocument.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocument.java
@@ -59,6 +59,30 @@ public interface AIServiceDocument extends AutoCloseable {
*/
void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled);
+ /**
+ * Adds a lock to a resource.
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use AddModelLock API.
+ */
+ AddModelLockResponse addModelLock(AddModelLockRequest request);
+
+ /**
+ * Adds a lock to a resource.
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use AddProjectLock API.
+ */
+ AddProjectLockResponse addProjectLock(AddProjectLockRequest request);
+
/**
* Perform different types of document analysis.
*
@@ -311,6 +335,30 @@ ChangeProjectCompartmentResponse changeProjectCompartment(
*/
PatchModelResponse patchModel(PatchModelRequest request);
+ /**
+ * Remove a lock from a resource.
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use RemoveModelLock API.
+ */
+ RemoveModelLockResponse removeModelLock(RemoveModelLockRequest request);
+
+ /**
+ * Remove a lock from a resource.
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use RemoveProjectLock API.
+ */
+ RemoveProjectLockResponse removeProjectLock(RemoveProjectLockRequest request);
+
/**
* Updates the model metadata.
* @param request The request object containing the details to send
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsync.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsync.java
index a4d05508d83..e55439d760e 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsync.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsync.java
@@ -58,6 +58,36 @@ public interface AIServiceDocumentAsync extends AutoCloseable {
*/
void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled);
+ /**
+ * Adds a lock to a resource.
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future addModelLock(
+ AddModelLockRequest request,
+ com.oracle.bmc.responses.AsyncHandler
+ handler);
+
+ /**
+ * Adds a lock to a resource.
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future addProjectLock(
+ AddProjectLockRequest request,
+ com.oracle.bmc.responses.AsyncHandler
+ handler);
+
/**
* Perform different types of document analysis.
*
@@ -370,6 +400,37 @@ java.util.concurrent.Future patchModel(
PatchModelRequest request,
com.oracle.bmc.responses.AsyncHandler handler);
+ /**
+ * Remove a lock from a resource.
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future removeModelLock(
+ RemoveModelLockRequest request,
+ com.oracle.bmc.responses.AsyncHandler
+ handler);
+
+ /**
+ * Remove a lock from a resource.
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future removeProjectLock(
+ RemoveProjectLockRequest request,
+ com.oracle.bmc.responses.AsyncHandler<
+ RemoveProjectLockRequest, RemoveProjectLockResponse>
+ handler);
+
/**
* Updates the model metadata.
*
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsyncClient.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsyncClient.java
index f795e24fa82..b2e65393801 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsyncClient.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsyncClient.java
@@ -459,6 +459,107 @@ public void close() {
client.close();
}
+ @Override
+ public java.util.concurrent.Future addModelLock(
+ AddModelLockRequest request,
+ final com.oracle.bmc.responses.AsyncHandler
+ handler) {
+ LOG.trace("Called async addModelLock");
+ final AddModelLockRequest interceptedRequest =
+ AddModelLockConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ AddModelLockConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceDocument",
+ "AddModelLock",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Model/AddModelLock");
+ final java.util.function.Function
+ transformer =
+ AddModelLockConverter.fromResponse(java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler
+ handlerToUse = handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ AddModelLockRequest, AddModelLockResponse>,
+ java.util.concurrent.Future>
+ futureSupplier =
+ client.postFutureSupplier(
+ interceptedRequest,
+ interceptedRequest.getAddModelLockDetails(),
+ ib,
+ transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ AddModelLockRequest, AddModelLockResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
+ @Override
+ public java.util.concurrent.Future addProjectLock(
+ AddProjectLockRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ AddProjectLockRequest, AddProjectLockResponse>
+ handler) {
+ LOG.trace("Called async addProjectLock");
+ final AddProjectLockRequest interceptedRequest =
+ AddProjectLockConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ AddProjectLockConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceDocument",
+ "AddProjectLock",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Project/AddProjectLock");
+ final java.util.function.Function
+ transformer =
+ AddProjectLockConverter.fromResponse(java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler
+ handlerToUse = handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ AddProjectLockRequest, AddProjectLockResponse>,
+ java.util.concurrent.Future>
+ futureSupplier =
+ client.postFutureSupplier(
+ interceptedRequest,
+ interceptedRequest.getAddProjectLockDetails(),
+ ib,
+ transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ AddProjectLockRequest, AddProjectLockResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
@Override
public java.util.concurrent.Future analyzeDocument(
AnalyzeDocumentRequest request,
@@ -1391,6 +1492,110 @@ protected void beforeRetryAction() {}
}
}
+ @Override
+ public java.util.concurrent.Future removeModelLock(
+ RemoveModelLockRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ RemoveModelLockRequest, RemoveModelLockResponse>
+ handler) {
+ LOG.trace("Called async removeModelLock");
+ final RemoveModelLockRequest interceptedRequest =
+ RemoveModelLockConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ RemoveModelLockConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceDocument",
+ "RemoveModelLock",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Model/RemoveModelLock");
+ final java.util.function.Function
+ transformer =
+ RemoveModelLockConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler
+ handlerToUse = handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ RemoveModelLockRequest, RemoveModelLockResponse>,
+ java.util.concurrent.Future>
+ futureSupplier =
+ client.postFutureSupplier(
+ interceptedRequest,
+ interceptedRequest.getRemoveModelLockDetails(),
+ ib,
+ transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ RemoveModelLockRequest, RemoveModelLockResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
+ @Override
+ public java.util.concurrent.Future removeProjectLock(
+ RemoveProjectLockRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ RemoveProjectLockRequest, RemoveProjectLockResponse>
+ handler) {
+ LOG.trace("Called async removeProjectLock");
+ final RemoveProjectLockRequest interceptedRequest =
+ RemoveProjectLockConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ RemoveProjectLockConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceDocument",
+ "RemoveProjectLock",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Project/RemoveProjectLock");
+ final java.util.function.Function
+ transformer =
+ RemoveProjectLockConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler
+ handlerToUse = handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ RemoveProjectLockRequest, RemoveProjectLockResponse>,
+ java.util.concurrent.Future>
+ futureSupplier =
+ client.postFutureSupplier(
+ interceptedRequest,
+ interceptedRequest.getRemoveProjectLockDetails(),
+ ib,
+ transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ RemoveProjectLockRequest, RemoveProjectLockResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
@Override
public java.util.concurrent.Future updateModel(
UpdateModelRequest request,
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentClient.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentClient.java
index 4f4a8c6a56a..278306c65c4 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentClient.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentClient.java
@@ -548,6 +548,86 @@ public void close() {
client.close();
}
+ @Override
+ public AddModelLockResponse addModelLock(AddModelLockRequest request) {
+ LOG.trace("Called addModelLock");
+ final AddModelLockRequest interceptedRequest =
+ AddModelLockConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ AddModelLockConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, true);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceDocument",
+ "AddModelLock",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Model/AddModelLock");
+ java.util.function.Function transformer =
+ AddModelLockConverter.fromResponse(java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response =
+ client.post(
+ ib,
+ retriedRequest.getAddModelLockDetails(),
+ retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
+ @Override
+ public AddProjectLockResponse addProjectLock(AddProjectLockRequest request) {
+ LOG.trace("Called addProjectLock");
+ final AddProjectLockRequest interceptedRequest =
+ AddProjectLockConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ AddProjectLockConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, true);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceDocument",
+ "AddProjectLock",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Project/AddProjectLock");
+ java.util.function.Function transformer =
+ AddProjectLockConverter.fromResponse(java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response =
+ client.post(
+ ib,
+ retriedRequest.getAddProjectLockDetails(),
+ retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
@Override
public AnalyzeDocumentResponse analyzeDocument(AnalyzeDocumentRequest request) {
LOG.trace("Called analyzeDocument");
@@ -1296,6 +1376,90 @@ public PatchModelResponse patchModel(PatchModelRequest request) {
});
}
+ @Override
+ public RemoveModelLockResponse removeModelLock(RemoveModelLockRequest request) {
+ LOG.trace("Called removeModelLock");
+ final RemoveModelLockRequest interceptedRequest =
+ RemoveModelLockConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ RemoveModelLockConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, true);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceDocument",
+ "RemoveModelLock",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Model/RemoveModelLock");
+ java.util.function.Function
+ transformer =
+ RemoveModelLockConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response =
+ client.post(
+ ib,
+ retriedRequest.getRemoveModelLockDetails(),
+ retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
+ @Override
+ public RemoveProjectLockResponse removeProjectLock(RemoveProjectLockRequest request) {
+ LOG.trace("Called removeProjectLock");
+ final RemoveProjectLockRequest interceptedRequest =
+ RemoveProjectLockConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ RemoveProjectLockConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, true);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceDocument",
+ "RemoveProjectLock",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Project/RemoveProjectLock");
+ java.util.function.Function
+ transformer =
+ RemoveProjectLockConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response =
+ client.post(
+ ib,
+ retriedRequest.getRemoveProjectLockDetails(),
+ retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
@Override
public UpdateModelResponse updateModel(UpdateModelRequest request) {
LOG.trace("Called updateModel");
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/AddModelLockConverter.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/AddModelLockConverter.java
new file mode 100644
index 00000000000..72342a42d2a
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/AddModelLockConverter.java
@@ -0,0 +1,158 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.internal.http;
+
+import com.oracle.bmc.http.internal.ResponseHelper;
+import com.oracle.bmc.aidocument.model.*;
+import com.oracle.bmc.aidocument.requests.*;
+import com.oracle.bmc.aidocument.responses.*;
+import com.oracle.bmc.util.internal.Validate;
+
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+public class AddModelLockConverter {
+ private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2
+ RESPONSE_CONVERSION_FACTORY =
+ new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2();
+
+ private static final org.slf4j.Logger LOG =
+ org.slf4j.LoggerFactory.getLogger(AddModelLockConverter.class);
+
+ public static com.oracle.bmc.aidocument.requests.AddModelLockRequest interceptRequest(
+ com.oracle.bmc.aidocument.requests.AddModelLockRequest request) {
+
+ return request;
+ }
+
+ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
+ com.oracle.bmc.http.internal.RestClient client,
+ com.oracle.bmc.aidocument.requests.AddModelLockRequest request) {
+ Validate.notNull(request, "request instance is required");
+ Validate.notBlank(request.getModelId(), "modelId must not be blank");
+ Validate.notNull(request.getAddModelLockDetails(), "addModelLockDetails is required");
+
+ com.oracle.bmc.http.internal.WrappedWebTarget target =
+ client.getBaseTarget()
+ .path("/20221109")
+ .path("models")
+ .path(
+ com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
+ request.getModelId()))
+ .path("actions")
+ .path("addLock");
+
+ if (request.getIsLockOverride() != null) {
+ target =
+ target.queryParam(
+ "isLockOverride",
+ com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam(
+ request.getIsLockOverride()));
+ }
+
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request();
+
+ ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON);
+
+ if (request.getOpcRetryToken() != null) {
+ ib.header("opc-retry-token", request.getOpcRetryToken());
+ }
+
+ if (request.getOpcRequestId() != null) {
+ ib.header("opc-request-id", request.getOpcRequestId());
+ }
+
+ if (request.getIfMatch() != null) {
+ ib.header("if-match", request.getIfMatch());
+ }
+
+ if (client.getClientConfigurator() != null) {
+ client.getClientConfigurator().customizeRequest(request, ib);
+ }
+ return ib;
+ }
+
+ public static java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.AddModelLockResponse>
+ fromResponse() {
+ return fromResponse(java.util.Optional.empty());
+ }
+
+ public static java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.AddModelLockResponse>
+ fromResponse(java.util.Optional serviceDetails) {
+ final java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.AddModelLockResponse>
+ transformer =
+ new java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.AddModelLockResponse>() {
+ @Override
+ public com.oracle.bmc.aidocument.responses.AddModelLockResponse apply(
+ javax.ws.rs.core.Response rawResponse) {
+ LOG.trace(
+ "Transform function invoked for com.oracle.bmc.aidocument.responses.AddModelLockResponse");
+ final java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.http.internal.WithHeaders<
+ com.oracle.bmc.aidocument.model.Model>>
+ responseFn;
+ if (serviceDetails.isPresent()) {
+ responseFn =
+ RESPONSE_CONVERSION_FACTORY.create(
+ com.oracle.bmc.aidocument.model.Model.class,
+ serviceDetails.get());
+ } else {
+ responseFn =
+ RESPONSE_CONVERSION_FACTORY.create(
+ com.oracle.bmc.aidocument.model.Model.class);
+ }
+
+ com.oracle.bmc.http.internal.WithHeaders<
+ com.oracle.bmc.aidocument.model.Model>
+ response = responseFn.apply(rawResponse);
+ javax.ws.rs.core.MultivaluedMap headers =
+ response.getHeaders();
+
+ com.oracle.bmc.aidocument.responses.AddModelLockResponse.Builder
+ builder =
+ com.oracle.bmc.aidocument.responses
+ .AddModelLockResponse.builder()
+ .__httpStatusCode__(rawResponse.getStatus())
+ .headers(headers);
+
+ builder.model(response.getItem());
+
+ java.util.Optional> etagHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName(
+ headers, "etag");
+ if (etagHeader.isPresent()) {
+ builder.etag(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "etag", etagHeader.get().get(0), String.class));
+ }
+
+ java.util.Optional> opcRequestIdHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName(
+ headers, "opc-request-id");
+ if (opcRequestIdHeader.isPresent()) {
+ builder.opcRequestId(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-request-id",
+ opcRequestIdHeader.get().get(0),
+ String.class));
+ }
+
+ com.oracle.bmc.aidocument.responses.AddModelLockResponse
+ responseWrapper = builder.build();
+
+ ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse);
+ return responseWrapper;
+ }
+ };
+ return transformer;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/AddProjectLockConverter.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/AddProjectLockConverter.java
new file mode 100644
index 00000000000..09f7c60df52
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/AddProjectLockConverter.java
@@ -0,0 +1,158 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.internal.http;
+
+import com.oracle.bmc.http.internal.ResponseHelper;
+import com.oracle.bmc.aidocument.model.*;
+import com.oracle.bmc.aidocument.requests.*;
+import com.oracle.bmc.aidocument.responses.*;
+import com.oracle.bmc.util.internal.Validate;
+
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+public class AddProjectLockConverter {
+ private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2
+ RESPONSE_CONVERSION_FACTORY =
+ new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2();
+
+ private static final org.slf4j.Logger LOG =
+ org.slf4j.LoggerFactory.getLogger(AddProjectLockConverter.class);
+
+ public static com.oracle.bmc.aidocument.requests.AddProjectLockRequest interceptRequest(
+ com.oracle.bmc.aidocument.requests.AddProjectLockRequest request) {
+
+ return request;
+ }
+
+ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
+ com.oracle.bmc.http.internal.RestClient client,
+ com.oracle.bmc.aidocument.requests.AddProjectLockRequest request) {
+ Validate.notNull(request, "request instance is required");
+ Validate.notBlank(request.getProjectId(), "projectId must not be blank");
+ Validate.notNull(request.getAddProjectLockDetails(), "addProjectLockDetails is required");
+
+ com.oracle.bmc.http.internal.WrappedWebTarget target =
+ client.getBaseTarget()
+ .path("/20221109")
+ .path("projects")
+ .path(
+ com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
+ request.getProjectId()))
+ .path("actions")
+ .path("addLock");
+
+ if (request.getIsLockOverride() != null) {
+ target =
+ target.queryParam(
+ "isLockOverride",
+ com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam(
+ request.getIsLockOverride()));
+ }
+
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request();
+
+ ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON);
+
+ if (request.getOpcRetryToken() != null) {
+ ib.header("opc-retry-token", request.getOpcRetryToken());
+ }
+
+ if (request.getOpcRequestId() != null) {
+ ib.header("opc-request-id", request.getOpcRequestId());
+ }
+
+ if (request.getIfMatch() != null) {
+ ib.header("if-match", request.getIfMatch());
+ }
+
+ if (client.getClientConfigurator() != null) {
+ client.getClientConfigurator().customizeRequest(request, ib);
+ }
+ return ib;
+ }
+
+ public static java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.AddProjectLockResponse>
+ fromResponse() {
+ return fromResponse(java.util.Optional.empty());
+ }
+
+ public static java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.AddProjectLockResponse>
+ fromResponse(java.util.Optional serviceDetails) {
+ final java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.AddProjectLockResponse>
+ transformer =
+ new java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.AddProjectLockResponse>() {
+ @Override
+ public com.oracle.bmc.aidocument.responses.AddProjectLockResponse apply(
+ javax.ws.rs.core.Response rawResponse) {
+ LOG.trace(
+ "Transform function invoked for com.oracle.bmc.aidocument.responses.AddProjectLockResponse");
+ final java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.http.internal.WithHeaders<
+ com.oracle.bmc.aidocument.model.Project>>
+ responseFn;
+ if (serviceDetails.isPresent()) {
+ responseFn =
+ RESPONSE_CONVERSION_FACTORY.create(
+ com.oracle.bmc.aidocument.model.Project.class,
+ serviceDetails.get());
+ } else {
+ responseFn =
+ RESPONSE_CONVERSION_FACTORY.create(
+ com.oracle.bmc.aidocument.model.Project.class);
+ }
+
+ com.oracle.bmc.http.internal.WithHeaders<
+ com.oracle.bmc.aidocument.model.Project>
+ response = responseFn.apply(rawResponse);
+ javax.ws.rs.core.MultivaluedMap headers =
+ response.getHeaders();
+
+ com.oracle.bmc.aidocument.responses.AddProjectLockResponse.Builder
+ builder =
+ com.oracle.bmc.aidocument.responses
+ .AddProjectLockResponse.builder()
+ .__httpStatusCode__(rawResponse.getStatus())
+ .headers(headers);
+
+ builder.project(response.getItem());
+
+ java.util.Optional> etagHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName(
+ headers, "etag");
+ if (etagHeader.isPresent()) {
+ builder.etag(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "etag", etagHeader.get().get(0), String.class));
+ }
+
+ java.util.Optional> opcRequestIdHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName(
+ headers, "opc-request-id");
+ if (opcRequestIdHeader.isPresent()) {
+ builder.opcRequestId(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-request-id",
+ opcRequestIdHeader.get().get(0),
+ String.class));
+ }
+
+ com.oracle.bmc.aidocument.responses.AddProjectLockResponse
+ responseWrapper = builder.build();
+
+ ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse);
+ return responseWrapper;
+ }
+ };
+ return transformer;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/ChangeModelCompartmentConverter.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/ChangeModelCompartmentConverter.java
index 384f432557b..a31fa7d6b31 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/ChangeModelCompartmentConverter.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/ChangeModelCompartmentConverter.java
@@ -44,6 +44,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
.path("actions")
.path("changeCompartment");
+ if (request.getIsLockOverride() != null) {
+ target =
+ target.queryParam(
+ "isLockOverride",
+ com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam(
+ request.getIsLockOverride()));
+ }
+
com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request();
ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON);
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/ChangeProjectCompartmentConverter.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/ChangeProjectCompartmentConverter.java
index d38c9a79d6b..2f6ff6a3698 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/ChangeProjectCompartmentConverter.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/ChangeProjectCompartmentConverter.java
@@ -45,6 +45,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
.path("actions")
.path("changeCompartment");
+ if (request.getIsLockOverride() != null) {
+ target =
+ target.queryParam(
+ "isLockOverride",
+ com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam(
+ request.getIsLockOverride()));
+ }
+
com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request();
ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON);
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/DeleteModelConverter.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/DeleteModelConverter.java
index 8122b611f60..e5e6904047b 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/DeleteModelConverter.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/DeleteModelConverter.java
@@ -39,6 +39,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
request.getModelId()));
+ if (request.getIsLockOverride() != null) {
+ target =
+ target.queryParam(
+ "isLockOverride",
+ com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam(
+ request.getIsLockOverride()));
+ }
+
com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request();
ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON);
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/DeleteProjectConverter.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/DeleteProjectConverter.java
index 54c6ae64d5c..0573bd3f950 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/DeleteProjectConverter.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/DeleteProjectConverter.java
@@ -39,6 +39,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
request.getProjectId()));
+ if (request.getIsLockOverride() != null) {
+ target =
+ target.queryParam(
+ "isLockOverride",
+ com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam(
+ request.getIsLockOverride()));
+ }
+
com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request();
ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON);
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/RemoveModelLockConverter.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/RemoveModelLockConverter.java
new file mode 100644
index 00000000000..5f8e24b0b78
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/RemoveModelLockConverter.java
@@ -0,0 +1,158 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.internal.http;
+
+import com.oracle.bmc.http.internal.ResponseHelper;
+import com.oracle.bmc.aidocument.model.*;
+import com.oracle.bmc.aidocument.requests.*;
+import com.oracle.bmc.aidocument.responses.*;
+import com.oracle.bmc.util.internal.Validate;
+
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+public class RemoveModelLockConverter {
+ private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2
+ RESPONSE_CONVERSION_FACTORY =
+ new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2();
+
+ private static final org.slf4j.Logger LOG =
+ org.slf4j.LoggerFactory.getLogger(RemoveModelLockConverter.class);
+
+ public static com.oracle.bmc.aidocument.requests.RemoveModelLockRequest interceptRequest(
+ com.oracle.bmc.aidocument.requests.RemoveModelLockRequest request) {
+
+ return request;
+ }
+
+ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
+ com.oracle.bmc.http.internal.RestClient client,
+ com.oracle.bmc.aidocument.requests.RemoveModelLockRequest request) {
+ Validate.notNull(request, "request instance is required");
+ Validate.notBlank(request.getModelId(), "modelId must not be blank");
+ Validate.notNull(request.getRemoveModelLockDetails(), "removeModelLockDetails is required");
+
+ com.oracle.bmc.http.internal.WrappedWebTarget target =
+ client.getBaseTarget()
+ .path("/20221109")
+ .path("models")
+ .path(
+ com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
+ request.getModelId()))
+ .path("actions")
+ .path("removeLock");
+
+ if (request.getIsLockOverride() != null) {
+ target =
+ target.queryParam(
+ "isLockOverride",
+ com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam(
+ request.getIsLockOverride()));
+ }
+
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request();
+
+ ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON);
+
+ if (request.getOpcRetryToken() != null) {
+ ib.header("opc-retry-token", request.getOpcRetryToken());
+ }
+
+ if (request.getOpcRequestId() != null) {
+ ib.header("opc-request-id", request.getOpcRequestId());
+ }
+
+ if (request.getIfMatch() != null) {
+ ib.header("if-match", request.getIfMatch());
+ }
+
+ if (client.getClientConfigurator() != null) {
+ client.getClientConfigurator().customizeRequest(request, ib);
+ }
+ return ib;
+ }
+
+ public static java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.RemoveModelLockResponse>
+ fromResponse() {
+ return fromResponse(java.util.Optional.empty());
+ }
+
+ public static java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.RemoveModelLockResponse>
+ fromResponse(java.util.Optional serviceDetails) {
+ final java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.RemoveModelLockResponse>
+ transformer =
+ new java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.RemoveModelLockResponse>() {
+ @Override
+ public com.oracle.bmc.aidocument.responses.RemoveModelLockResponse
+ apply(javax.ws.rs.core.Response rawResponse) {
+ LOG.trace(
+ "Transform function invoked for com.oracle.bmc.aidocument.responses.RemoveModelLockResponse");
+ final java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.http.internal.WithHeaders<
+ com.oracle.bmc.aidocument.model.Model>>
+ responseFn;
+ if (serviceDetails.isPresent()) {
+ responseFn =
+ RESPONSE_CONVERSION_FACTORY.create(
+ com.oracle.bmc.aidocument.model.Model.class,
+ serviceDetails.get());
+ } else {
+ responseFn =
+ RESPONSE_CONVERSION_FACTORY.create(
+ com.oracle.bmc.aidocument.model.Model.class);
+ }
+
+ com.oracle.bmc.http.internal.WithHeaders<
+ com.oracle.bmc.aidocument.model.Model>
+ response = responseFn.apply(rawResponse);
+ javax.ws.rs.core.MultivaluedMap headers =
+ response.getHeaders();
+
+ com.oracle.bmc.aidocument.responses.RemoveModelLockResponse.Builder
+ builder =
+ com.oracle.bmc.aidocument.responses
+ .RemoveModelLockResponse.builder()
+ .__httpStatusCode__(rawResponse.getStatus())
+ .headers(headers);
+
+ builder.model(response.getItem());
+
+ java.util.Optional> etagHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName(
+ headers, "etag");
+ if (etagHeader.isPresent()) {
+ builder.etag(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "etag", etagHeader.get().get(0), String.class));
+ }
+
+ java.util.Optional> opcRequestIdHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName(
+ headers, "opc-request-id");
+ if (opcRequestIdHeader.isPresent()) {
+ builder.opcRequestId(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-request-id",
+ opcRequestIdHeader.get().get(0),
+ String.class));
+ }
+
+ com.oracle.bmc.aidocument.responses.RemoveModelLockResponse
+ responseWrapper = builder.build();
+
+ ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse);
+ return responseWrapper;
+ }
+ };
+ return transformer;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/RemoveProjectLockConverter.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/RemoveProjectLockConverter.java
new file mode 100644
index 00000000000..d4eb090ca0b
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/RemoveProjectLockConverter.java
@@ -0,0 +1,160 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.internal.http;
+
+import com.oracle.bmc.http.internal.ResponseHelper;
+import com.oracle.bmc.aidocument.model.*;
+import com.oracle.bmc.aidocument.requests.*;
+import com.oracle.bmc.aidocument.responses.*;
+import com.oracle.bmc.util.internal.Validate;
+
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+public class RemoveProjectLockConverter {
+ private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2
+ RESPONSE_CONVERSION_FACTORY =
+ new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2();
+
+ private static final org.slf4j.Logger LOG =
+ org.slf4j.LoggerFactory.getLogger(RemoveProjectLockConverter.class);
+
+ public static com.oracle.bmc.aidocument.requests.RemoveProjectLockRequest interceptRequest(
+ com.oracle.bmc.aidocument.requests.RemoveProjectLockRequest request) {
+
+ return request;
+ }
+
+ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
+ com.oracle.bmc.http.internal.RestClient client,
+ com.oracle.bmc.aidocument.requests.RemoveProjectLockRequest request) {
+ Validate.notNull(request, "request instance is required");
+ Validate.notBlank(request.getProjectId(), "projectId must not be blank");
+ Validate.notNull(
+ request.getRemoveProjectLockDetails(), "removeProjectLockDetails is required");
+
+ com.oracle.bmc.http.internal.WrappedWebTarget target =
+ client.getBaseTarget()
+ .path("/20221109")
+ .path("projects")
+ .path(
+ com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
+ request.getProjectId()))
+ .path("actions")
+ .path("removeLock");
+
+ if (request.getIsLockOverride() != null) {
+ target =
+ target.queryParam(
+ "isLockOverride",
+ com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam(
+ request.getIsLockOverride()));
+ }
+
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request();
+
+ ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON);
+
+ if (request.getOpcRetryToken() != null) {
+ ib.header("opc-retry-token", request.getOpcRetryToken());
+ }
+
+ if (request.getOpcRequestId() != null) {
+ ib.header("opc-request-id", request.getOpcRequestId());
+ }
+
+ if (request.getIfMatch() != null) {
+ ib.header("if-match", request.getIfMatch());
+ }
+
+ if (client.getClientConfigurator() != null) {
+ client.getClientConfigurator().customizeRequest(request, ib);
+ }
+ return ib;
+ }
+
+ public static java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.RemoveProjectLockResponse>
+ fromResponse() {
+ return fromResponse(java.util.Optional.empty());
+ }
+
+ public static java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.RemoveProjectLockResponse>
+ fromResponse(java.util.Optional serviceDetails) {
+ final java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.RemoveProjectLockResponse>
+ transformer =
+ new java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.aidocument.responses.RemoveProjectLockResponse>() {
+ @Override
+ public com.oracle.bmc.aidocument.responses.RemoveProjectLockResponse
+ apply(javax.ws.rs.core.Response rawResponse) {
+ LOG.trace(
+ "Transform function invoked for com.oracle.bmc.aidocument.responses.RemoveProjectLockResponse");
+ final java.util.function.Function<
+ javax.ws.rs.core.Response,
+ com.oracle.bmc.http.internal.WithHeaders<
+ com.oracle.bmc.aidocument.model.Project>>
+ responseFn;
+ if (serviceDetails.isPresent()) {
+ responseFn =
+ RESPONSE_CONVERSION_FACTORY.create(
+ com.oracle.bmc.aidocument.model.Project.class,
+ serviceDetails.get());
+ } else {
+ responseFn =
+ RESPONSE_CONVERSION_FACTORY.create(
+ com.oracle.bmc.aidocument.model.Project.class);
+ }
+
+ com.oracle.bmc.http.internal.WithHeaders<
+ com.oracle.bmc.aidocument.model.Project>
+ response = responseFn.apply(rawResponse);
+ javax.ws.rs.core.MultivaluedMap headers =
+ response.getHeaders();
+
+ com.oracle.bmc.aidocument.responses.RemoveProjectLockResponse
+ .Builder
+ builder =
+ com.oracle.bmc.aidocument.responses
+ .RemoveProjectLockResponse.builder()
+ .__httpStatusCode__(rawResponse.getStatus())
+ .headers(headers);
+
+ builder.project(response.getItem());
+
+ java.util.Optional> etagHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName(
+ headers, "etag");
+ if (etagHeader.isPresent()) {
+ builder.etag(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "etag", etagHeader.get().get(0), String.class));
+ }
+
+ java.util.Optional> opcRequestIdHeader =
+ com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName(
+ headers, "opc-request-id");
+ if (opcRequestIdHeader.isPresent()) {
+ builder.opcRequestId(
+ com.oracle.bmc.http.internal.HeaderUtils.toValue(
+ "opc-request-id",
+ opcRequestIdHeader.get().get(0),
+ String.class));
+ }
+
+ com.oracle.bmc.aidocument.responses.RemoveProjectLockResponse
+ responseWrapper = builder.build();
+
+ ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse);
+ return responseWrapper;
+ }
+ };
+ return transformer;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/UpdateModelConverter.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/UpdateModelConverter.java
index c902fa1da64..ffeb77c20c7 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/UpdateModelConverter.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/UpdateModelConverter.java
@@ -40,6 +40,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
request.getModelId()));
+ if (request.getIsLockOverride() != null) {
+ target =
+ target.queryParam(
+ "isLockOverride",
+ com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam(
+ request.getIsLockOverride()));
+ }
+
com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request();
ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON);
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/UpdateProjectConverter.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/UpdateProjectConverter.java
index e1c8f7add09..ca8966fc9c2 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/UpdateProjectConverter.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/internal/http/UpdateProjectConverter.java
@@ -40,6 +40,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
request.getProjectId()));
+ if (request.getIsLockOverride() != null) {
+ target =
+ target.queryParam(
+ "isLockOverride",
+ com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam(
+ request.getIsLockOverride()));
+ }
+
com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request();
ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON);
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddModelLockDetails.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddModelLockDetails.java
new file mode 100644
index 00000000000..934939d2f7e
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddModelLockDetails.java
@@ -0,0 +1,247 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.model;
+
+/**
+ * Request payload to add lock to the resource.
+ *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
+ * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in
+ * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called
+ * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take
+ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__}
+ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}).
+ **/
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = AddModelLockDetails.Builder.class
+)
+@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
+public final class AddModelLockDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({"type", "relatedResourceId", "message"})
+ public AddModelLockDetails(Type type, String relatedResourceId, String message) {
+ super();
+ this.type = type;
+ this.relatedResourceId = relatedResourceId;
+ this.message = message;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /**
+ * Type of the lock.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private Type type;
+
+ /**
+ * Type of the lock.
+ * @param type the value to set
+ * @return this builder
+ **/
+ public Builder type(Type type) {
+ this.type = type;
+ this.__explicitlySet__.add("type");
+ return this;
+ }
+ /**
+ * The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId")
+ private String relatedResourceId;
+
+ /**
+ * The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
+ * @param relatedResourceId the value to set
+ * @return this builder
+ **/
+ public Builder relatedResourceId(String relatedResourceId) {
+ this.relatedResourceId = relatedResourceId;
+ this.__explicitlySet__.add("relatedResourceId");
+ return this;
+ }
+ /**
+ * A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("message")
+ private String message;
+
+ /**
+ * A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
+ * @param message the value to set
+ * @return this builder
+ **/
+ public Builder message(String message) {
+ this.message = message;
+ this.__explicitlySet__.add("message");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public AddModelLockDetails build() {
+ AddModelLockDetails model =
+ new AddModelLockDetails(this.type, this.relatedResourceId, this.message);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(AddModelLockDetails model) {
+ if (model.wasPropertyExplicitlySet("type")) {
+ this.type(model.getType());
+ }
+ if (model.wasPropertyExplicitlySet("relatedResourceId")) {
+ this.relatedResourceId(model.getRelatedResourceId());
+ }
+ if (model.wasPropertyExplicitlySet("message")) {
+ this.message(model.getMessage());
+ }
+ return this;
+ }
+ }
+
+ /**
+ * Create a new builder.
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /**
+ * Type of the lock.
+ **/
+ public enum Type {
+ Full("FULL"),
+ Delete("DELETE"),
+ ;
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (Type v : Type.values()) {
+ map.put(v.getValue(), v);
+ }
+ }
+
+ Type(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static Type create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ throw new IllegalArgumentException("Invalid Type: " + key);
+ }
+ };
+ /**
+ * Type of the lock.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private final Type type;
+
+ /**
+ * Type of the lock.
+ * @return the value
+ **/
+ public Type getType() {
+ return type;
+ }
+
+ /**
+ * The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId")
+ private final String relatedResourceId;
+
+ /**
+ * The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
+ * @return the value
+ **/
+ public String getRelatedResourceId() {
+ return relatedResourceId;
+ }
+
+ /**
+ * A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("message")
+ private final String message;
+
+ /**
+ * A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
+ * @return the value
+ **/
+ public String getMessage() {
+ return message;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("AddModelLockDetails(");
+ sb.append("super=").append(super.toString());
+ sb.append("type=").append(String.valueOf(this.type));
+ sb.append(", relatedResourceId=").append(String.valueOf(this.relatedResourceId));
+ sb.append(", message=").append(String.valueOf(this.message));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof AddModelLockDetails)) {
+ return false;
+ }
+
+ AddModelLockDetails other = (AddModelLockDetails) o;
+ return java.util.Objects.equals(this.type, other.type)
+ && java.util.Objects.equals(this.relatedResourceId, other.relatedResourceId)
+ && java.util.Objects.equals(this.message, other.message)
+ && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode());
+ result =
+ (result * PRIME)
+ + (this.relatedResourceId == null ? 43 : this.relatedResourceId.hashCode());
+ result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddProjectLockDetails.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddProjectLockDetails.java
new file mode 100644
index 00000000000..0c4a53e2385
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddProjectLockDetails.java
@@ -0,0 +1,248 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.model;
+
+/**
+ * Request payload to add lock to the resource.
+ *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
+ * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in
+ * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called
+ * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take
+ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__}
+ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}).
+ **/
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = AddProjectLockDetails.Builder.class
+)
+@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
+public final class AddProjectLockDetails
+ extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({"type", "relatedResourceId", "message"})
+ public AddProjectLockDetails(Type type, String relatedResourceId, String message) {
+ super();
+ this.type = type;
+ this.relatedResourceId = relatedResourceId;
+ this.message = message;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /**
+ * Type of the lock.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private Type type;
+
+ /**
+ * Type of the lock.
+ * @param type the value to set
+ * @return this builder
+ **/
+ public Builder type(Type type) {
+ this.type = type;
+ this.__explicitlySet__.add("type");
+ return this;
+ }
+ /**
+ * The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId")
+ private String relatedResourceId;
+
+ /**
+ * The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
+ * @param relatedResourceId the value to set
+ * @return this builder
+ **/
+ public Builder relatedResourceId(String relatedResourceId) {
+ this.relatedResourceId = relatedResourceId;
+ this.__explicitlySet__.add("relatedResourceId");
+ return this;
+ }
+ /**
+ * A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("message")
+ private String message;
+
+ /**
+ * A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
+ * @param message the value to set
+ * @return this builder
+ **/
+ public Builder message(String message) {
+ this.message = message;
+ this.__explicitlySet__.add("message");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public AddProjectLockDetails build() {
+ AddProjectLockDetails model =
+ new AddProjectLockDetails(this.type, this.relatedResourceId, this.message);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(AddProjectLockDetails model) {
+ if (model.wasPropertyExplicitlySet("type")) {
+ this.type(model.getType());
+ }
+ if (model.wasPropertyExplicitlySet("relatedResourceId")) {
+ this.relatedResourceId(model.getRelatedResourceId());
+ }
+ if (model.wasPropertyExplicitlySet("message")) {
+ this.message(model.getMessage());
+ }
+ return this;
+ }
+ }
+
+ /**
+ * Create a new builder.
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /**
+ * Type of the lock.
+ **/
+ public enum Type {
+ Full("FULL"),
+ Delete("DELETE"),
+ ;
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (Type v : Type.values()) {
+ map.put(v.getValue(), v);
+ }
+ }
+
+ Type(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static Type create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ throw new IllegalArgumentException("Invalid Type: " + key);
+ }
+ };
+ /**
+ * Type of the lock.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private final Type type;
+
+ /**
+ * Type of the lock.
+ * @return the value
+ **/
+ public Type getType() {
+ return type;
+ }
+
+ /**
+ * The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId")
+ private final String relatedResourceId;
+
+ /**
+ * The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
+ * @return the value
+ **/
+ public String getRelatedResourceId() {
+ return relatedResourceId;
+ }
+
+ /**
+ * A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("message")
+ private final String message;
+
+ /**
+ * A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
+ * @return the value
+ **/
+ public String getMessage() {
+ return message;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("AddProjectLockDetails(");
+ sb.append("super=").append(super.toString());
+ sb.append("type=").append(String.valueOf(this.type));
+ sb.append(", relatedResourceId=").append(String.valueOf(this.relatedResourceId));
+ sb.append(", message=").append(String.valueOf(this.message));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof AddProjectLockDetails)) {
+ return false;
+ }
+
+ AddProjectLockDetails other = (AddProjectLockDetails) o;
+ return java.util.Objects.equals(this.type, other.type)
+ && java.util.Objects.equals(this.relatedResourceId, other.relatedResourceId)
+ && java.util.Objects.equals(this.message, other.message)
+ && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode());
+ result =
+ (result * PRIME)
+ + (this.relatedResourceId == null ? 43 : this.relatedResourceId.hashCode());
+ result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DetectedDocumentType.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DetectedDocumentType.java
index 4e5f106df0d..feed0bba18e 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DetectedDocumentType.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DetectedDocumentType.java
@@ -21,11 +21,10 @@
@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
public final class DetectedDocumentType extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
@Deprecated
- @java.beans.ConstructorProperties({"documentType", "documentId", "confidence"})
- public DetectedDocumentType(String documentType, String documentId, Float confidence) {
+ @java.beans.ConstructorProperties({"documentType", "confidence"})
+ public DetectedDocumentType(String documentType, Float confidence) {
super();
this.documentType = documentType;
- this.documentId = documentId;
this.confidence = confidence;
}
@@ -47,22 +46,6 @@ public Builder documentType(String documentType) {
this.__explicitlySet__.add("documentType");
return this;
}
- /**
- * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Key-Value Extraction model that was used to extract the key-value pairs.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("documentId")
- private String documentId;
-
- /**
- * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Key-Value Extraction model that was used to extract the key-value pairs.
- * @param documentId the value to set
- * @return this builder
- **/
- public Builder documentId(String documentId) {
- this.documentId = documentId;
- this.__explicitlySet__.add("documentId");
- return this;
- }
/**
* The confidence score between 0 and 1.
**/
@@ -85,7 +68,7 @@ public Builder confidence(Float confidence) {
public DetectedDocumentType build() {
DetectedDocumentType model =
- new DetectedDocumentType(this.documentType, this.documentId, this.confidence);
+ new DetectedDocumentType(this.documentType, this.confidence);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -97,9 +80,6 @@ public Builder copy(DetectedDocumentType model) {
if (model.wasPropertyExplicitlySet("documentType")) {
this.documentType(model.getDocumentType());
}
- if (model.wasPropertyExplicitlySet("documentId")) {
- this.documentId(model.getDocumentId());
- }
if (model.wasPropertyExplicitlySet("confidence")) {
this.confidence(model.getConfidence());
}
@@ -132,20 +112,6 @@ public String getDocumentType() {
return documentType;
}
- /**
- * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Key-Value Extraction model that was used to extract the key-value pairs.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("documentId")
- private final String documentId;
-
- /**
- * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Key-Value Extraction model that was used to extract the key-value pairs.
- * @return the value
- **/
- public String getDocumentId() {
- return documentId;
- }
-
/**
* The confidence score between 0 and 1.
**/
@@ -175,7 +141,6 @@ public String toString(boolean includeByteArrayContents) {
sb.append("DetectedDocumentType(");
sb.append("super=").append(super.toString());
sb.append("documentType=").append(String.valueOf(this.documentType));
- sb.append(", documentId=").append(String.valueOf(this.documentId));
sb.append(", confidence=").append(String.valueOf(this.confidence));
sb.append(")");
return sb.toString();
@@ -192,7 +157,6 @@ public boolean equals(Object o) {
DetectedDocumentType other = (DetectedDocumentType) o;
return java.util.Objects.equals(this.documentType, other.documentType)
- && java.util.Objects.equals(this.documentId, other.documentId)
&& java.util.Objects.equals(this.confidence, other.confidence)
&& super.equals(other);
}
@@ -202,7 +166,6 @@ public int hashCode() {
final int PRIME = 59;
int result = 1;
result = (result * PRIME) + (this.documentType == null ? 43 : this.documentType.hashCode());
- result = (result * PRIME) + (this.documentId == null ? 43 : this.documentId.hashCode());
result = (result * PRIME) + (this.confidence == null ? 43 : this.confidence.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentClassificationFeature.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentClassificationFeature.java
index db6ff2856a8..d7e932be601 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentClassificationFeature.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentClassificationFeature.java
@@ -59,30 +59,13 @@ public Builder modelId(String modelId) {
this.__explicitlySet__.add("modelId");
return this;
}
- /**
- * The custom model tenancy ID when modelId represents aliasName.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("tenancyId")
- private String tenancyId;
-
- /**
- * The custom model tenancy ID when modelId represents aliasName.
- * @param tenancyId the value to set
- * @return this builder
- **/
- public Builder tenancyId(String tenancyId) {
- this.tenancyId = tenancyId;
- this.__explicitlySet__.add("tenancyId");
- return this;
- }
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public DocumentClassificationFeature build() {
DocumentClassificationFeature model =
- new DocumentClassificationFeature(
- this.maxResults, this.modelId, this.tenancyId);
+ new DocumentClassificationFeature(this.maxResults, this.modelId);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -97,9 +80,6 @@ public Builder copy(DocumentClassificationFeature model) {
if (model.wasPropertyExplicitlySet("modelId")) {
this.modelId(model.getModelId());
}
- if (model.wasPropertyExplicitlySet("tenancyId")) {
- this.tenancyId(model.getTenancyId());
- }
return this;
}
}
@@ -116,11 +96,10 @@ public Builder toBuilder() {
}
@Deprecated
- public DocumentClassificationFeature(Integer maxResults, String modelId, String tenancyId) {
+ public DocumentClassificationFeature(Integer maxResults, String modelId) {
super();
this.maxResults = maxResults;
this.modelId = modelId;
- this.tenancyId = tenancyId;
}
/**
@@ -151,20 +130,6 @@ public String getModelId() {
return modelId;
}
- /**
- * The custom model tenancy ID when modelId represents aliasName.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("tenancyId")
- private final String tenancyId;
-
- /**
- * The custom model tenancy ID when modelId represents aliasName.
- * @return the value
- **/
- public String getTenancyId() {
- return tenancyId;
- }
-
@Override
public String toString() {
return this.toString(true);
@@ -181,7 +146,6 @@ public String toString(boolean includeByteArrayContents) {
sb.append("super=").append(super.toString(includeByteArrayContents));
sb.append(", maxResults=").append(String.valueOf(this.maxResults));
sb.append(", modelId=").append(String.valueOf(this.modelId));
- sb.append(", tenancyId=").append(String.valueOf(this.tenancyId));
sb.append(")");
return sb.toString();
}
@@ -198,7 +162,6 @@ public boolean equals(Object o) {
DocumentClassificationFeature other = (DocumentClassificationFeature) o;
return java.util.Objects.equals(this.maxResults, other.maxResults)
&& java.util.Objects.equals(this.modelId, other.modelId)
- && java.util.Objects.equals(this.tenancyId, other.tenancyId)
&& super.equals(other);
}
@@ -208,7 +171,6 @@ public int hashCode() {
int result = super.hashCode();
result = (result * PRIME) + (this.maxResults == null ? 43 : this.maxResults.hashCode());
result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode());
- result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode());
return result;
}
}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentKeyValueExtractionFeature.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentKeyValueExtractionFeature.java
index 31ec6024ca6..0bd4ef90fb3 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentKeyValueExtractionFeature.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentKeyValueExtractionFeature.java
@@ -43,29 +43,13 @@ public Builder modelId(String modelId) {
this.__explicitlySet__.add("modelId");
return this;
}
- /**
- * The custom model tenancy ID when modelId represents aliasName.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("tenancyId")
- private String tenancyId;
-
- /**
- * The custom model tenancy ID when modelId represents aliasName.
- * @param tenancyId the value to set
- * @return this builder
- **/
- public Builder tenancyId(String tenancyId) {
- this.tenancyId = tenancyId;
- this.__explicitlySet__.add("tenancyId");
- return this;
- }
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public DocumentKeyValueExtractionFeature build() {
DocumentKeyValueExtractionFeature model =
- new DocumentKeyValueExtractionFeature(this.modelId, this.tenancyId);
+ new DocumentKeyValueExtractionFeature(this.modelId);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -77,9 +61,6 @@ public Builder copy(DocumentKeyValueExtractionFeature model) {
if (model.wasPropertyExplicitlySet("modelId")) {
this.modelId(model.getModelId());
}
- if (model.wasPropertyExplicitlySet("tenancyId")) {
- this.tenancyId(model.getTenancyId());
- }
return this;
}
}
@@ -96,10 +77,9 @@ public Builder toBuilder() {
}
@Deprecated
- public DocumentKeyValueExtractionFeature(String modelId, String tenancyId) {
+ public DocumentKeyValueExtractionFeature(String modelId) {
super();
this.modelId = modelId;
- this.tenancyId = tenancyId;
}
/**
@@ -116,20 +96,6 @@ public String getModelId() {
return modelId;
}
- /**
- * The custom model tenancy ID when modelId represents aliasName.
- **/
- @com.fasterxml.jackson.annotation.JsonProperty("tenancyId")
- private final String tenancyId;
-
- /**
- * The custom model tenancy ID when modelId represents aliasName.
- * @return the value
- **/
- public String getTenancyId() {
- return tenancyId;
- }
-
@Override
public String toString() {
return this.toString(true);
@@ -145,7 +111,6 @@ public String toString(boolean includeByteArrayContents) {
sb.append("DocumentKeyValueExtractionFeature(");
sb.append("super=").append(super.toString(includeByteArrayContents));
sb.append(", modelId=").append(String.valueOf(this.modelId));
- sb.append(", tenancyId=").append(String.valueOf(this.tenancyId));
sb.append(")");
return sb.toString();
}
@@ -160,9 +125,7 @@ public boolean equals(Object o) {
}
DocumentKeyValueExtractionFeature other = (DocumentKeyValueExtractionFeature) o;
- return java.util.Objects.equals(this.modelId, other.modelId)
- && java.util.Objects.equals(this.tenancyId, other.tenancyId)
- && super.equals(other);
+ return java.util.Objects.equals(this.modelId, other.modelId) && super.equals(other);
}
@Override
@@ -170,7 +133,6 @@ public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode());
- result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode());
return result;
}
}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentType.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentType.java
index 0db817f4b03..f98c3d24af2 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentType.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentType.java
@@ -19,7 +19,7 @@ public enum DocumentType {
Check("CHECK"),
Payslip("PAYSLIP"),
Others("OTHERS"),
- InsuranceClaim("INSURANCE_CLAIM"),
+ HealthInsuranceId("HEALTH_INSURANCE_ID"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Model.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Model.java
index b1b9d101223..a094482b0fe 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Model.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Model.java
@@ -45,7 +45,8 @@ public final class Model extends com.oracle.bmc.http.internal.ExplicitlySetBmcMo
"metrics",
"freeformTags",
"definedTags",
- "systemTags"
+ "systemTags",
+ "locks"
})
public Model(
String id,
@@ -73,7 +74,8 @@ public Model(
ModelMetrics metrics,
java.util.Map freeformTags,
java.util.Map> definedTags,
- java.util.Map> systemTags) {
+ java.util.Map> systemTags,
+ java.util.List locks) {
super();
this.id = id;
this.displayName = displayName;
@@ -101,6 +103,7 @@ public Model(
this.freeformTags = freeformTags;
this.definedTags = definedTags;
this.systemTags = systemTags;
+ this.locks = locks;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@@ -506,6 +509,22 @@ public Builder systemTags(java.util.Map> s
this.__explicitlySet__.add("systemTags");
return this;
}
+ /**
+ * Locks associated with this resource.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("locks")
+ private java.util.List locks;
+
+ /**
+ * Locks associated with this resource.
+ * @param locks the value to set
+ * @return this builder
+ **/
+ public Builder locks(java.util.List locks) {
+ this.locks = locks;
+ this.__explicitlySet__.add("locks");
+ return this;
+ }
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -538,7 +557,8 @@ public Model build() {
this.metrics,
this.freeformTags,
this.definedTags,
- this.systemTags);
+ this.systemTags,
+ this.locks);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -625,6 +645,9 @@ public Builder copy(Model model) {
if (model.wasPropertyExplicitlySet("systemTags")) {
this.systemTags(model.getSystemTags());
}
+ if (model.wasPropertyExplicitlySet("locks")) {
+ this.locks(model.getLocks());
+ }
return this;
}
}
@@ -1088,6 +1111,20 @@ public java.util.Map> getSystemTags() {
return systemTags;
}
+ /**
+ * Locks associated with this resource.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("locks")
+ private final java.util.List locks;
+
+ /**
+ * Locks associated with this resource.
+ * @return the value
+ **/
+ public java.util.List getLocks() {
+ return locks;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -1128,6 +1165,7 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", freeformTags=").append(String.valueOf(this.freeformTags));
sb.append(", definedTags=").append(String.valueOf(this.definedTags));
sb.append(", systemTags=").append(String.valueOf(this.systemTags));
+ sb.append(", locks=").append(String.valueOf(this.locks));
sb.append(")");
return sb.toString();
}
@@ -1169,6 +1207,7 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.freeformTags, other.freeformTags)
&& java.util.Objects.equals(this.definedTags, other.definedTags)
&& java.util.Objects.equals(this.systemTags, other.systemTags)
+ && java.util.Objects.equals(this.locks, other.locks)
&& super.equals(other);
}
@@ -1226,6 +1265,7 @@ public int hashCode() {
result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode());
result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode());
result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode());
+ result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ModelSummary.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ModelSummary.java
index 0c7e02249d2..a6fd772de3a 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ModelSummary.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ModelSummary.java
@@ -41,7 +41,8 @@ public final class ModelSummary extends com.oracle.bmc.http.internal.ExplicitlyS
"isComposedModel",
"freeformTags",
"definedTags",
- "systemTags"
+ "systemTags",
+ "locks"
})
public ModelSummary(
String id,
@@ -65,7 +66,8 @@ public ModelSummary(
Boolean isComposedModel,
java.util.Map freeformTags,
java.util.Map> definedTags,
- java.util.Map> systemTags) {
+ java.util.Map> systemTags,
+ java.util.List locks) {
super();
this.id = id;
this.displayName = displayName;
@@ -89,6 +91,7 @@ public ModelSummary(
this.freeformTags = freeformTags;
this.definedTags = definedTags;
this.systemTags = systemTags;
+ this.locks = locks;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@@ -437,6 +440,22 @@ public Builder systemTags(java.util.Map> s
this.__explicitlySet__.add("systemTags");
return this;
}
+ /**
+ * Locks associated with this resource.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("locks")
+ private java.util.List locks;
+
+ /**
+ * Locks associated with this resource.
+ * @param locks the value to set
+ * @return this builder
+ **/
+ public Builder locks(java.util.List locks) {
+ this.locks = locks;
+ this.__explicitlySet__.add("locks");
+ return this;
+ }
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -465,7 +484,8 @@ public ModelSummary build() {
this.isComposedModel,
this.freeformTags,
this.definedTags,
- this.systemTags);
+ this.systemTags,
+ this.locks);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -540,6 +560,9 @@ public Builder copy(ModelSummary model) {
if (model.wasPropertyExplicitlySet("systemTags")) {
this.systemTags(model.getSystemTags());
}
+ if (model.wasPropertyExplicitlySet("locks")) {
+ this.locks(model.getLocks());
+ }
return this;
}
}
@@ -854,6 +877,20 @@ public java.util.Map> getSystemTags() {
return systemTags;
}
+ /**
+ * Locks associated with this resource.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("locks")
+ private final java.util.List locks;
+
+ /**
+ * Locks associated with this resource.
+ * @return the value
+ **/
+ public java.util.List getLocks() {
+ return locks;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -890,6 +927,7 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", freeformTags=").append(String.valueOf(this.freeformTags));
sb.append(", definedTags=").append(String.valueOf(this.definedTags));
sb.append(", systemTags=").append(String.valueOf(this.systemTags));
+ sb.append(", locks=").append(String.valueOf(this.locks));
sb.append(")");
return sb.toString();
}
@@ -926,6 +964,7 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.freeformTags, other.freeformTags)
&& java.util.Objects.equals(this.definedTags, other.definedTags)
&& java.util.Objects.equals(this.systemTags, other.systemTags)
+ && java.util.Objects.equals(this.locks, other.locks)
&& super.equals(other);
}
@@ -971,6 +1010,7 @@ public int hashCode() {
result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode());
result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode());
result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode());
+ result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/OutputLocation.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/OutputLocation.java
index 00506173f14..9b269f26a10 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/OutputLocation.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/OutputLocation.java
@@ -5,7 +5,7 @@
package com.oracle.bmc.aidocument.model;
/**
- * The object storage location where to store analysis results.
+ * The Object Storage Location.
*
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
* that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Project.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Project.java
index b1e59a4f25b..1bc03ee3ecd 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Project.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Project.java
@@ -30,7 +30,8 @@ public final class Project extends com.oracle.bmc.http.internal.ExplicitlySetBmc
"lifecycleDetails",
"freeformTags",
"definedTags",
- "systemTags"
+ "systemTags",
+ "locks"
})
public Project(
String id,
@@ -43,7 +44,8 @@ public Project(
String lifecycleDetails,
java.util.Map freeformTags,
java.util.Map> definedTags,
- java.util.Map> systemTags) {
+ java.util.Map> systemTags,
+ java.util.List locks) {
super();
this.id = id;
this.displayName = displayName;
@@ -56,6 +58,7 @@ public Project(
this.freeformTags = freeformTags;
this.definedTags = definedTags;
this.systemTags = systemTags;
+ this.locks = locks;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@@ -249,6 +252,22 @@ public Builder systemTags(java.util.Map> s
this.__explicitlySet__.add("systemTags");
return this;
}
+ /**
+ * Locks associated with this resource.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("locks")
+ private java.util.List locks;
+
+ /**
+ * Locks associated with this resource.
+ * @param locks the value to set
+ * @return this builder
+ **/
+ public Builder locks(java.util.List locks) {
+ this.locks = locks;
+ this.__explicitlySet__.add("locks");
+ return this;
+ }
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -266,7 +285,8 @@ public Project build() {
this.lifecycleDetails,
this.freeformTags,
this.definedTags,
- this.systemTags);
+ this.systemTags,
+ this.locks);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -308,6 +328,9 @@ public Builder copy(Project model) {
if (model.wasPropertyExplicitlySet("systemTags")) {
this.systemTags(model.getSystemTags());
}
+ if (model.wasPropertyExplicitlySet("locks")) {
+ this.locks(model.getLocks());
+ }
return this;
}
}
@@ -541,6 +564,20 @@ public java.util.Map> getSystemTags() {
return systemTags;
}
+ /**
+ * Locks associated with this resource.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("locks")
+ private final java.util.List locks;
+
+ /**
+ * Locks associated with this resource.
+ * @return the value
+ **/
+ public java.util.List getLocks() {
+ return locks;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -566,6 +603,7 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", freeformTags=").append(String.valueOf(this.freeformTags));
sb.append(", definedTags=").append(String.valueOf(this.definedTags));
sb.append(", systemTags=").append(String.valueOf(this.systemTags));
+ sb.append(", locks=").append(String.valueOf(this.locks));
sb.append(")");
return sb.toString();
}
@@ -591,6 +629,7 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.freeformTags, other.freeformTags)
&& java.util.Objects.equals(this.definedTags, other.definedTags)
&& java.util.Objects.equals(this.systemTags, other.systemTags)
+ && java.util.Objects.equals(this.locks, other.locks)
&& super.equals(other);
}
@@ -615,6 +654,7 @@ public int hashCode() {
result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode());
result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode());
result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode());
+ result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveModelLockDetails.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveModelLockDetails.java
new file mode 100644
index 00000000000..7e68fd320c4
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveModelLockDetails.java
@@ -0,0 +1,170 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.model;
+
+/**
+ * Request payload to remove lock to the resource.
+ *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
+ * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in
+ * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called
+ * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take
+ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__}
+ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}).
+ **/
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = RemoveModelLockDetails.Builder.class
+)
+@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
+public final class RemoveModelLockDetails
+ extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({"type"})
+ public RemoveModelLockDetails(Type type) {
+ super();
+ this.type = type;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /**
+ * Type of the lock.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private Type type;
+
+ /**
+ * Type of the lock.
+ * @param type the value to set
+ * @return this builder
+ **/
+ public Builder type(Type type) {
+ this.type = type;
+ this.__explicitlySet__.add("type");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public RemoveModelLockDetails build() {
+ RemoveModelLockDetails model = new RemoveModelLockDetails(this.type);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(RemoveModelLockDetails model) {
+ if (model.wasPropertyExplicitlySet("type")) {
+ this.type(model.getType());
+ }
+ return this;
+ }
+ }
+
+ /**
+ * Create a new builder.
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /**
+ * Type of the lock.
+ **/
+ public enum Type {
+ Full("FULL"),
+ Delete("DELETE"),
+ ;
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (Type v : Type.values()) {
+ map.put(v.getValue(), v);
+ }
+ }
+
+ Type(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static Type create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ throw new IllegalArgumentException("Invalid Type: " + key);
+ }
+ };
+ /**
+ * Type of the lock.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private final Type type;
+
+ /**
+ * Type of the lock.
+ * @return the value
+ **/
+ public Type getType() {
+ return type;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("RemoveModelLockDetails(");
+ sb.append("super=").append(super.toString());
+ sb.append("type=").append(String.valueOf(this.type));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof RemoveModelLockDetails)) {
+ return false;
+ }
+
+ RemoveModelLockDetails other = (RemoveModelLockDetails) o;
+ return java.util.Objects.equals(this.type, other.type) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveProjectLockDetails.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveProjectLockDetails.java
new file mode 100644
index 00000000000..bc5c5a0e40f
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveProjectLockDetails.java
@@ -0,0 +1,170 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.model;
+
+/**
+ * Request payload to remove lock to the resource.
+ *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
+ * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in
+ * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called
+ * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take
+ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__}
+ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}).
+ **/
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = RemoveProjectLockDetails.Builder.class
+)
+@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
+public final class RemoveProjectLockDetails
+ extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({"type"})
+ public RemoveProjectLockDetails(Type type) {
+ super();
+ this.type = type;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /**
+ * Type of the lock.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private Type type;
+
+ /**
+ * Type of the lock.
+ * @param type the value to set
+ * @return this builder
+ **/
+ public Builder type(Type type) {
+ this.type = type;
+ this.__explicitlySet__.add("type");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public RemoveProjectLockDetails build() {
+ RemoveProjectLockDetails model = new RemoveProjectLockDetails(this.type);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(RemoveProjectLockDetails model) {
+ if (model.wasPropertyExplicitlySet("type")) {
+ this.type(model.getType());
+ }
+ return this;
+ }
+ }
+
+ /**
+ * Create a new builder.
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /**
+ * Type of the lock.
+ **/
+ public enum Type {
+ Full("FULL"),
+ Delete("DELETE"),
+ ;
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (Type v : Type.values()) {
+ map.put(v.getValue(), v);
+ }
+ }
+
+ Type(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static Type create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ throw new IllegalArgumentException("Invalid Type: " + key);
+ }
+ };
+ /**
+ * Type of the lock.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private final Type type;
+
+ /**
+ * Type of the lock.
+ * @return the value
+ **/
+ public Type getType() {
+ return type;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("RemoveProjectLockDetails(");
+ sb.append("super=").append(super.toString());
+ sb.append("type=").append(String.valueOf(this.type));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof RemoveProjectLockDetails)) {
+ return false;
+ }
+
+ RemoveProjectLockDetails other = (RemoveProjectLockDetails) o;
+ return java.util.Objects.equals(this.type, other.type) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ResourceLock.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ResourceLock.java
new file mode 100644
index 00000000000..f6a94b5952e
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ResourceLock.java
@@ -0,0 +1,363 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.model;
+
+/**
+ * Resource locks prevent certain APIs from being called for the resource.
+ * A full lock prevents both updating and deleting the resource. A lock delete
+ * prevents deleting the resource.
+ *
+ *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
+ * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in
+ * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called
+ * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take
+ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__}
+ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}).
+ **/
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ResourceLock.Builder.class)
+@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
+public final class ResourceLock extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({
+ "type",
+ "compartmentId",
+ "relatedResourceId",
+ "message",
+ "timeCreated"
+ })
+ public ResourceLock(
+ Type type,
+ String compartmentId,
+ String relatedResourceId,
+ String message,
+ java.util.Date timeCreated) {
+ super();
+ this.type = type;
+ this.compartmentId = compartmentId;
+ this.relatedResourceId = relatedResourceId;
+ this.message = message;
+ this.timeCreated = timeCreated;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /**
+ * Lock type.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private Type type;
+
+ /**
+ * Lock type.
+ * @param type the value to set
+ * @return this builder
+ **/
+ public Builder type(Type type) {
+ this.type = type;
+ this.__explicitlySet__.add("type");
+ return this;
+ }
+ /**
+ * The lock compartment ID.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
+ private String compartmentId;
+
+ /**
+ * The lock compartment ID.
+ * @param compartmentId the value to set
+ * @return this builder
+ **/
+ public Builder compartmentId(String compartmentId) {
+ this.compartmentId = compartmentId;
+ this.__explicitlySet__.add("compartmentId");
+ return this;
+ }
+ /**
+ * The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
+ *
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId")
+ private String relatedResourceId;
+
+ /**
+ * The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
+ *
+ * @param relatedResourceId the value to set
+ * @return this builder
+ **/
+ public Builder relatedResourceId(String relatedResourceId) {
+ this.relatedResourceId = relatedResourceId;
+ this.__explicitlySet__.add("relatedResourceId");
+ return this;
+ }
+ /**
+ * A message added by the lock creator. The message typically gives an
+ * indication of why the resource is locked.
+ *
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("message")
+ private String message;
+
+ /**
+ * A message added by the lock creator. The message typically gives an
+ * indication of why the resource is locked.
+ *
+ * @param message the value to set
+ * @return this builder
+ **/
+ public Builder message(String message) {
+ this.message = message;
+ this.__explicitlySet__.add("message");
+ return this;
+ }
+ /**
+ * Indicates when the lock was created, in the format defined by RFC 3339.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
+ private java.util.Date timeCreated;
+
+ /**
+ * Indicates when the lock was created, in the format defined by RFC 3339.
+ * @param timeCreated the value to set
+ * @return this builder
+ **/
+ public Builder timeCreated(java.util.Date timeCreated) {
+ this.timeCreated = timeCreated;
+ this.__explicitlySet__.add("timeCreated");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public ResourceLock build() {
+ ResourceLock model =
+ new ResourceLock(
+ this.type,
+ this.compartmentId,
+ this.relatedResourceId,
+ this.message,
+ this.timeCreated);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(ResourceLock model) {
+ if (model.wasPropertyExplicitlySet("type")) {
+ this.type(model.getType());
+ }
+ if (model.wasPropertyExplicitlySet("compartmentId")) {
+ this.compartmentId(model.getCompartmentId());
+ }
+ if (model.wasPropertyExplicitlySet("relatedResourceId")) {
+ this.relatedResourceId(model.getRelatedResourceId());
+ }
+ if (model.wasPropertyExplicitlySet("message")) {
+ this.message(model.getMessage());
+ }
+ if (model.wasPropertyExplicitlySet("timeCreated")) {
+ this.timeCreated(model.getTimeCreated());
+ }
+ return this;
+ }
+ }
+
+ /**
+ * Create a new builder.
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /**
+ * Lock type.
+ **/
+ public enum Type {
+ Full("FULL"),
+ Delete("DELETE"),
+
+ /**
+ * This value is used if a service returns a value for this enum that is not recognized by this
+ * version of the SDK.
+ */
+ UnknownEnumValue(null);
+
+ private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class);
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (Type v : Type.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
+
+ Type(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static Type create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key);
+ return UnknownEnumValue;
+ }
+ };
+ /**
+ * Lock type.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("type")
+ private final Type type;
+
+ /**
+ * Lock type.
+ * @return the value
+ **/
+ public Type getType() {
+ return type;
+ }
+
+ /**
+ * The lock compartment ID.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
+ private final String compartmentId;
+
+ /**
+ * The lock compartment ID.
+ * @return the value
+ **/
+ public String getCompartmentId() {
+ return compartmentId;
+ }
+
+ /**
+ * The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
+ *
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId")
+ private final String relatedResourceId;
+
+ /**
+ * The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
+ *
+ * @return the value
+ **/
+ public String getRelatedResourceId() {
+ return relatedResourceId;
+ }
+
+ /**
+ * A message added by the lock creator. The message typically gives an
+ * indication of why the resource is locked.
+ *
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("message")
+ private final String message;
+
+ /**
+ * A message added by the lock creator. The message typically gives an
+ * indication of why the resource is locked.
+ *
+ * @return the value
+ **/
+ public String getMessage() {
+ return message;
+ }
+
+ /**
+ * Indicates when the lock was created, in the format defined by RFC 3339.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
+ private final java.util.Date timeCreated;
+
+ /**
+ * Indicates when the lock was created, in the format defined by RFC 3339.
+ * @return the value
+ **/
+ public java.util.Date getTimeCreated() {
+ return timeCreated;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("ResourceLock(");
+ sb.append("super=").append(super.toString());
+ sb.append("type=").append(String.valueOf(this.type));
+ sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
+ sb.append(", relatedResourceId=").append(String.valueOf(this.relatedResourceId));
+ sb.append(", message=").append(String.valueOf(this.message));
+ sb.append(", timeCreated=").append(String.valueOf(this.timeCreated));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof ResourceLock)) {
+ return false;
+ }
+
+ ResourceLock other = (ResourceLock) o;
+ return java.util.Objects.equals(this.type, other.type)
+ && java.util.Objects.equals(this.compartmentId, other.compartmentId)
+ && java.util.Objects.equals(this.relatedResourceId, other.relatedResourceId)
+ && java.util.Objects.equals(this.message, other.message)
+ && java.util.Objects.equals(this.timeCreated, other.timeCreated)
+ && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode());
+ result =
+ (result * PRIME)
+ + (this.compartmentId == null ? 43 : this.compartmentId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.relatedResourceId == null ? 43 : this.relatedResourceId.hashCode());
+ result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode());
+ result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddModelLockRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddModelLockRequest.java
new file mode 100644
index 00000000000..9a0c8893017
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddModelLockRequest.java
@@ -0,0 +1,399 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.requests;
+
+import com.oracle.bmc.aidocument.model.*;
+/**
+ * Example: Click here to see how to use AddModelLockRequest.
+ */
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+public class AddModelLockRequest
+ extends com.oracle.bmc.requests.BmcRequest<
+ com.oracle.bmc.aidocument.model.AddModelLockDetails> {
+
+ /**
+ * A unique model identifier.
+ */
+ private String modelId;
+
+ /**
+ * A unique model identifier.
+ */
+ public String getModelId() {
+ return modelId;
+ }
+ /**
+ * Request payload to add lock to the resource.
+ *
+ */
+ private com.oracle.bmc.aidocument.model.AddModelLockDetails addModelLockDetails;
+
+ /**
+ * Request payload to add lock to the resource.
+ *
+ */
+ public com.oracle.bmc.aidocument.model.AddModelLockDetails getAddModelLockDetails() {
+ return addModelLockDetails;
+ }
+ /**
+ * 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.
+ *
+ */
+ private String opcRetryToken;
+
+ /**
+ * 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.
+ *
+ */
+ public String getOpcRetryToken() {
+ return opcRetryToken;
+ }
+ /**
+ * The client request ID for tracing.
+ */
+ private String opcRequestId;
+
+ /**
+ * The client request ID for tracing.
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code 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.
+ *
+ */
+ private String ifMatch;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code 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.
+ *
+ */
+ public String getIfMatch() {
+ return ifMatch;
+ }
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride;
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ public Boolean getIsLockOverride() {
+ return isLockOverride;
+ }
+
+ /**
+ * Alternative accessor for the body parameter.
+ * @return body parameter
+ */
+ @Override
+ @com.oracle.bmc.InternalSdk
+ public com.oracle.bmc.aidocument.model.AddModelLockDetails getBody$() {
+ return addModelLockDetails;
+ }
+
+ public static class Builder
+ implements com.oracle.bmc.requests.BmcRequest.Builder<
+ AddModelLockRequest, com.oracle.bmc.aidocument.model.AddModelLockDetails> {
+ private com.oracle.bmc.util.internal.Consumer
+ invocationCallback = null;
+ private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null;
+
+ /**
+ * A unique model identifier.
+ */
+ private String modelId = null;
+
+ /**
+ * A unique model identifier.
+ * @param modelId the value to set
+ * @return this builder instance
+ */
+ public Builder modelId(String modelId) {
+ this.modelId = modelId;
+ return this;
+ }
+
+ /**
+ * Request payload to add lock to the resource.
+ *
+ */
+ private com.oracle.bmc.aidocument.model.AddModelLockDetails addModelLockDetails = null;
+
+ /**
+ * Request payload to add lock to the resource.
+ *
+ * @param addModelLockDetails the value to set
+ * @return this builder instance
+ */
+ public Builder addModelLockDetails(
+ com.oracle.bmc.aidocument.model.AddModelLockDetails addModelLockDetails) {
+ this.addModelLockDetails = addModelLockDetails;
+ return this;
+ }
+
+ /**
+ * 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.
+ *
+ */
+ private String opcRetryToken = null;
+
+ /**
+ * 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.
+ *
+ * @param opcRetryToken the value to set
+ * @return this builder instance
+ */
+ public Builder opcRetryToken(String opcRetryToken) {
+ this.opcRetryToken = opcRetryToken;
+ return this;
+ }
+
+ /**
+ * The client request ID for tracing.
+ */
+ private String opcRequestId = null;
+
+ /**
+ * The client request ID for tracing.
+ * @param opcRequestId the value to set
+ * @return this builder instance
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code 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.
+ *
+ */
+ private String ifMatch = null;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code if-match} parameter to the value of the
+ * etag from a previous GET or POST response for that resource.
+ * The resource will be updated or deleted only if the etag you
+ * provide matches the resource's current etag value.
+ *
+ * @param ifMatch the value to set
+ * @return this builder instance
+ */
+ public Builder ifMatch(String ifMatch) {
+ this.ifMatch = ifMatch;
+ return this;
+ }
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride = null;
+
+ /**
+ * Whether to override locks (if any exist).
+ * @param isLockOverride the value to set
+ * @return this builder instance
+ */
+ public Builder isLockOverride(Boolean isLockOverride) {
+ this.isLockOverride = isLockOverride;
+ return this;
+ }
+
+ /**
+ * Set the invocation callback for the request to be built.
+ * @param invocationCallback the invocation callback to be set for the request
+ * @return this builder instance
+ */
+ public Builder invocationCallback(
+ com.oracle.bmc.util.internal.Consumer
+ invocationCallback) {
+ this.invocationCallback = invocationCallback;
+ return this;
+ }
+
+ /**
+ * Set the retry configuration for the request to be built.
+ * @param retryConfiguration the retry configuration to be used for the request
+ * @return this builder instance
+ */
+ public Builder retryConfiguration(
+ com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) {
+ this.retryConfiguration = retryConfiguration;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ * @return this builder instance
+ */
+ public Builder copy(AddModelLockRequest o) {
+ modelId(o.getModelId());
+ addModelLockDetails(o.getAddModelLockDetails());
+ opcRetryToken(o.getOpcRetryToken());
+ opcRequestId(o.getOpcRequestId());
+ ifMatch(o.getIfMatch());
+ isLockOverride(o.getIsLockOverride());
+ invocationCallback(o.getInvocationCallback());
+ retryConfiguration(o.getRetryConfiguration());
+ return this;
+ }
+
+ /**
+ * Build the instance of AddModelLockRequest as configured by this builder
+ *
+ * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account,
+ * while the method {@link Builder#buildWithoutInvocationCallback} does not.
+ *
+ * This is the preferred method to build an instance.
+ *
+ * @return instance of AddModelLockRequest
+ */
+ public AddModelLockRequest build() {
+ AddModelLockRequest request = buildWithoutInvocationCallback();
+ request.setInvocationCallback(invocationCallback);
+ request.setRetryConfiguration(retryConfiguration);
+ return request;
+ }
+
+ /**
+ * Alternative setter for the body parameter.
+ * @param body the body parameter
+ * @return this builder instance
+ */
+ @com.oracle.bmc.InternalSdk
+ public Builder body$(com.oracle.bmc.aidocument.model.AddModelLockDetails body) {
+ addModelLockDetails(body);
+ return this;
+ }
+
+ /**
+ * Build the instance of AddModelLockRequest as configured by this builder
+ *
+ * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account,
+ * while the method {@link Builder#build} does
+ *
+ * @return instance of AddModelLockRequest
+ */
+ public AddModelLockRequest buildWithoutInvocationCallback() {
+ AddModelLockRequest request = new AddModelLockRequest();
+ request.modelId = modelId;
+ request.addModelLockDetails = addModelLockDetails;
+ request.opcRetryToken = opcRetryToken;
+ request.opcRequestId = opcRequestId;
+ request.ifMatch = ifMatch;
+ request.isLockOverride = isLockOverride;
+ return request;
+ // new AddModelLockRequest(modelId, addModelLockDetails, opcRetryToken, opcRequestId, ifMatch, isLockOverride);
+ }
+ }
+
+ /**
+ * Return an instance of {@link Builder} that allows you to modify request properties.
+ * @return instance of {@link Builder} that allows you to modify request properties.
+ */
+ public Builder toBuilder() {
+ return new Builder()
+ .modelId(modelId)
+ .addModelLockDetails(addModelLockDetails)
+ .opcRetryToken(opcRetryToken)
+ .opcRequestId(opcRequestId)
+ .ifMatch(ifMatch)
+ .isLockOverride(isLockOverride);
+ }
+
+ /**
+ * Return a new builder for this request object.
+ * @return builder for the request object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",modelId=").append(String.valueOf(this.modelId));
+ sb.append(",addModelLockDetails=").append(String.valueOf(this.addModelLockDetails));
+ sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken));
+ sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
+ sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof AddModelLockRequest)) {
+ return false;
+ }
+
+ AddModelLockRequest other = (AddModelLockRequest) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.modelId, other.modelId)
+ && java.util.Objects.equals(this.addModelLockDetails, other.addModelLockDetails)
+ && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.ifMatch, other.ifMatch)
+ && java.util.Objects.equals(this.isLockOverride, other.isLockOverride);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.addModelLockDetails == null
+ ? 43
+ : this.addModelLockDetails.hashCode());
+ result =
+ (result * PRIME)
+ + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddProjectLockRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddProjectLockRequest.java
new file mode 100644
index 00000000000..cd1be819f80
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddProjectLockRequest.java
@@ -0,0 +1,399 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.requests;
+
+import com.oracle.bmc.aidocument.model.*;
+/**
+ * Example: Click here to see how to use AddProjectLockRequest.
+ */
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+public class AddProjectLockRequest
+ extends com.oracle.bmc.requests.BmcRequest<
+ com.oracle.bmc.aidocument.model.AddProjectLockDetails> {
+
+ /**
+ * A unique project identifier.
+ */
+ private String projectId;
+
+ /**
+ * A unique project identifier.
+ */
+ public String getProjectId() {
+ return projectId;
+ }
+ /**
+ * Request payload to add lock to the resource.
+ *
+ */
+ private com.oracle.bmc.aidocument.model.AddProjectLockDetails addProjectLockDetails;
+
+ /**
+ * Request payload to add lock to the resource.
+ *
+ */
+ public com.oracle.bmc.aidocument.model.AddProjectLockDetails getAddProjectLockDetails() {
+ return addProjectLockDetails;
+ }
+ /**
+ * 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.
+ *
+ */
+ private String opcRetryToken;
+
+ /**
+ * 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.
+ *
+ */
+ public String getOpcRetryToken() {
+ return opcRetryToken;
+ }
+ /**
+ * The client request ID for tracing.
+ */
+ private String opcRequestId;
+
+ /**
+ * The client request ID for tracing.
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code 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.
+ *
+ */
+ private String ifMatch;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code 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.
+ *
+ */
+ public String getIfMatch() {
+ return ifMatch;
+ }
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride;
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ public Boolean getIsLockOverride() {
+ return isLockOverride;
+ }
+
+ /**
+ * Alternative accessor for the body parameter.
+ * @return body parameter
+ */
+ @Override
+ @com.oracle.bmc.InternalSdk
+ public com.oracle.bmc.aidocument.model.AddProjectLockDetails getBody$() {
+ return addProjectLockDetails;
+ }
+
+ public static class Builder
+ implements com.oracle.bmc.requests.BmcRequest.Builder<
+ AddProjectLockRequest, com.oracle.bmc.aidocument.model.AddProjectLockDetails> {
+ private com.oracle.bmc.util.internal.Consumer
+ invocationCallback = null;
+ private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null;
+
+ /**
+ * A unique project identifier.
+ */
+ private String projectId = null;
+
+ /**
+ * A unique project identifier.
+ * @param projectId the value to set
+ * @return this builder instance
+ */
+ public Builder projectId(String projectId) {
+ this.projectId = projectId;
+ return this;
+ }
+
+ /**
+ * Request payload to add lock to the resource.
+ *
+ */
+ private com.oracle.bmc.aidocument.model.AddProjectLockDetails addProjectLockDetails = null;
+
+ /**
+ * Request payload to add lock to the resource.
+ *
+ * @param addProjectLockDetails the value to set
+ * @return this builder instance
+ */
+ public Builder addProjectLockDetails(
+ com.oracle.bmc.aidocument.model.AddProjectLockDetails addProjectLockDetails) {
+ this.addProjectLockDetails = addProjectLockDetails;
+ return this;
+ }
+
+ /**
+ * 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.
+ *
+ */
+ private String opcRetryToken = null;
+
+ /**
+ * 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.
+ *
+ * @param opcRetryToken the value to set
+ * @return this builder instance
+ */
+ public Builder opcRetryToken(String opcRetryToken) {
+ this.opcRetryToken = opcRetryToken;
+ return this;
+ }
+
+ /**
+ * The client request ID for tracing.
+ */
+ private String opcRequestId = null;
+
+ /**
+ * The client request ID for tracing.
+ * @param opcRequestId the value to set
+ * @return this builder instance
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code 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.
+ *
+ */
+ private String ifMatch = null;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code if-match} parameter to the value of the
+ * etag from a previous GET or POST response for that resource.
+ * The resource will be updated or deleted only if the etag you
+ * provide matches the resource's current etag value.
+ *
+ * @param ifMatch the value to set
+ * @return this builder instance
+ */
+ public Builder ifMatch(String ifMatch) {
+ this.ifMatch = ifMatch;
+ return this;
+ }
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride = null;
+
+ /**
+ * Whether to override locks (if any exist).
+ * @param isLockOverride the value to set
+ * @return this builder instance
+ */
+ public Builder isLockOverride(Boolean isLockOverride) {
+ this.isLockOverride = isLockOverride;
+ return this;
+ }
+
+ /**
+ * Set the invocation callback for the request to be built.
+ * @param invocationCallback the invocation callback to be set for the request
+ * @return this builder instance
+ */
+ public Builder invocationCallback(
+ com.oracle.bmc.util.internal.Consumer
+ invocationCallback) {
+ this.invocationCallback = invocationCallback;
+ return this;
+ }
+
+ /**
+ * Set the retry configuration for the request to be built.
+ * @param retryConfiguration the retry configuration to be used for the request
+ * @return this builder instance
+ */
+ public Builder retryConfiguration(
+ com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) {
+ this.retryConfiguration = retryConfiguration;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ * @return this builder instance
+ */
+ public Builder copy(AddProjectLockRequest o) {
+ projectId(o.getProjectId());
+ addProjectLockDetails(o.getAddProjectLockDetails());
+ opcRetryToken(o.getOpcRetryToken());
+ opcRequestId(o.getOpcRequestId());
+ ifMatch(o.getIfMatch());
+ isLockOverride(o.getIsLockOverride());
+ invocationCallback(o.getInvocationCallback());
+ retryConfiguration(o.getRetryConfiguration());
+ return this;
+ }
+
+ /**
+ * Build the instance of AddProjectLockRequest as configured by this builder
+ *
+ * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account,
+ * while the method {@link Builder#buildWithoutInvocationCallback} does not.
+ *
+ * This is the preferred method to build an instance.
+ *
+ * @return instance of AddProjectLockRequest
+ */
+ public AddProjectLockRequest build() {
+ AddProjectLockRequest request = buildWithoutInvocationCallback();
+ request.setInvocationCallback(invocationCallback);
+ request.setRetryConfiguration(retryConfiguration);
+ return request;
+ }
+
+ /**
+ * Alternative setter for the body parameter.
+ * @param body the body parameter
+ * @return this builder instance
+ */
+ @com.oracle.bmc.InternalSdk
+ public Builder body$(com.oracle.bmc.aidocument.model.AddProjectLockDetails body) {
+ addProjectLockDetails(body);
+ return this;
+ }
+
+ /**
+ * Build the instance of AddProjectLockRequest as configured by this builder
+ *
+ * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account,
+ * while the method {@link Builder#build} does
+ *
+ * @return instance of AddProjectLockRequest
+ */
+ public AddProjectLockRequest buildWithoutInvocationCallback() {
+ AddProjectLockRequest request = new AddProjectLockRequest();
+ request.projectId = projectId;
+ request.addProjectLockDetails = addProjectLockDetails;
+ request.opcRetryToken = opcRetryToken;
+ request.opcRequestId = opcRequestId;
+ request.ifMatch = ifMatch;
+ request.isLockOverride = isLockOverride;
+ return request;
+ // new AddProjectLockRequest(projectId, addProjectLockDetails, opcRetryToken, opcRequestId, ifMatch, isLockOverride);
+ }
+ }
+
+ /**
+ * Return an instance of {@link Builder} that allows you to modify request properties.
+ * @return instance of {@link Builder} that allows you to modify request properties.
+ */
+ public Builder toBuilder() {
+ return new Builder()
+ .projectId(projectId)
+ .addProjectLockDetails(addProjectLockDetails)
+ .opcRetryToken(opcRetryToken)
+ .opcRequestId(opcRequestId)
+ .ifMatch(ifMatch)
+ .isLockOverride(isLockOverride);
+ }
+
+ /**
+ * Return a new builder for this request object.
+ * @return builder for the request object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",projectId=").append(String.valueOf(this.projectId));
+ sb.append(",addProjectLockDetails=").append(String.valueOf(this.addProjectLockDetails));
+ sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken));
+ sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
+ sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof AddProjectLockRequest)) {
+ return false;
+ }
+
+ AddProjectLockRequest other = (AddProjectLockRequest) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.projectId, other.projectId)
+ && java.util.Objects.equals(this.addProjectLockDetails, other.addProjectLockDetails)
+ && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.ifMatch, other.ifMatch)
+ && java.util.Objects.equals(this.isLockOverride, other.isLockOverride);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.projectId == null ? 43 : this.projectId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.addProjectLockDetails == null
+ ? 43
+ : this.addProjectLockDetails.hashCode());
+ result =
+ (result * PRIME)
+ + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeModelCompartmentRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeModelCompartmentRequest.java
index 1d7b39b4670..9e3c04e8edb 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeModelCompartmentRequest.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeModelCompartmentRequest.java
@@ -69,6 +69,17 @@ public String getIfMatch() {
public String getOpcRequestId() {
return opcRequestId;
}
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride;
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ public Boolean getIsLockOverride() {
+ return isLockOverride;
+ }
/**
* Alternative accessor for the body parameter.
@@ -161,6 +172,21 @@ public Builder opcRequestId(String opcRequestId) {
return this;
}
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride = null;
+
+ /**
+ * Whether to override locks (if any exist).
+ * @param isLockOverride the value to set
+ * @return this builder instance
+ */
+ public Builder isLockOverride(Boolean isLockOverride) {
+ this.isLockOverride = isLockOverride;
+ return this;
+ }
+
/**
* Set the invocation callback for the request to be built.
* @param invocationCallback the invocation callback to be set for the request
@@ -193,6 +219,7 @@ public Builder copy(ChangeModelCompartmentRequest o) {
changeModelCompartmentDetails(o.getChangeModelCompartmentDetails());
ifMatch(o.getIfMatch());
opcRequestId(o.getOpcRequestId());
+ isLockOverride(o.getIsLockOverride());
invocationCallback(o.getInvocationCallback());
retryConfiguration(o.getRetryConfiguration());
return this;
@@ -240,8 +267,9 @@ public ChangeModelCompartmentRequest buildWithoutInvocationCallback() {
request.changeModelCompartmentDetails = changeModelCompartmentDetails;
request.ifMatch = ifMatch;
request.opcRequestId = opcRequestId;
+ request.isLockOverride = isLockOverride;
return request;
- // new ChangeModelCompartmentRequest(modelId, changeModelCompartmentDetails, ifMatch, opcRequestId);
+ // new ChangeModelCompartmentRequest(modelId, changeModelCompartmentDetails, ifMatch, opcRequestId, isLockOverride);
}
}
@@ -254,7 +282,8 @@ public Builder toBuilder() {
.modelId(modelId)
.changeModelCompartmentDetails(changeModelCompartmentDetails)
.ifMatch(ifMatch)
- .opcRequestId(opcRequestId);
+ .opcRequestId(opcRequestId)
+ .isLockOverride(isLockOverride);
}
/**
@@ -275,6 +304,7 @@ public String toString() {
.append(String.valueOf(this.changeModelCompartmentDetails));
sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride));
sb.append(")");
return sb.toString();
}
@@ -294,7 +324,8 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(
this.changeModelCompartmentDetails, other.changeModelCompartmentDetails)
&& java.util.Objects.equals(this.ifMatch, other.ifMatch)
- && java.util.Objects.equals(this.opcRequestId, other.opcRequestId);
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.isLockOverride, other.isLockOverride);
}
@Override
@@ -309,6 +340,9 @@ public int hashCode() {
: this.changeModelCompartmentDetails.hashCode());
result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode());
return result;
}
}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeProjectCompartmentRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeProjectCompartmentRequest.java
index 1f8903d910b..c01d2ff796c 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeProjectCompartmentRequest.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeProjectCompartmentRequest.java
@@ -69,6 +69,17 @@ public String getIfMatch() {
public String getOpcRequestId() {
return opcRequestId;
}
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride;
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ public Boolean getIsLockOverride() {
+ return isLockOverride;
+ }
/**
* Alternative accessor for the body parameter.
@@ -161,6 +172,21 @@ public Builder opcRequestId(String opcRequestId) {
return this;
}
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride = null;
+
+ /**
+ * Whether to override locks (if any exist).
+ * @param isLockOverride the value to set
+ * @return this builder instance
+ */
+ public Builder isLockOverride(Boolean isLockOverride) {
+ this.isLockOverride = isLockOverride;
+ return this;
+ }
+
/**
* Set the invocation callback for the request to be built.
* @param invocationCallback the invocation callback to be set for the request
@@ -193,6 +219,7 @@ public Builder copy(ChangeProjectCompartmentRequest o) {
changeProjectCompartmentDetails(o.getChangeProjectCompartmentDetails());
ifMatch(o.getIfMatch());
opcRequestId(o.getOpcRequestId());
+ isLockOverride(o.getIsLockOverride());
invocationCallback(o.getInvocationCallback());
retryConfiguration(o.getRetryConfiguration());
return this;
@@ -240,8 +267,9 @@ public ChangeProjectCompartmentRequest buildWithoutInvocationCallback() {
request.changeProjectCompartmentDetails = changeProjectCompartmentDetails;
request.ifMatch = ifMatch;
request.opcRequestId = opcRequestId;
+ request.isLockOverride = isLockOverride;
return request;
- // new ChangeProjectCompartmentRequest(projectId, changeProjectCompartmentDetails, ifMatch, opcRequestId);
+ // new ChangeProjectCompartmentRequest(projectId, changeProjectCompartmentDetails, ifMatch, opcRequestId, isLockOverride);
}
}
@@ -254,7 +282,8 @@ public Builder toBuilder() {
.projectId(projectId)
.changeProjectCompartmentDetails(changeProjectCompartmentDetails)
.ifMatch(ifMatch)
- .opcRequestId(opcRequestId);
+ .opcRequestId(opcRequestId)
+ .isLockOverride(isLockOverride);
}
/**
@@ -275,6 +304,7 @@ public String toString() {
.append(String.valueOf(this.changeProjectCompartmentDetails));
sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride));
sb.append(")");
return sb.toString();
}
@@ -294,7 +324,8 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(
this.changeProjectCompartmentDetails, other.changeProjectCompartmentDetails)
&& java.util.Objects.equals(this.ifMatch, other.ifMatch)
- && java.util.Objects.equals(this.opcRequestId, other.opcRequestId);
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.isLockOverride, other.isLockOverride);
}
@Override
@@ -309,6 +340,9 @@ public int hashCode() {
: this.changeProjectCompartmentDetails.hashCode());
result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode());
return result;
}
}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteModelRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteModelRequest.java
index ce3910d020a..7c2da7a5a10 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteModelRequest.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteModelRequest.java
@@ -54,6 +54,17 @@ public String getIfMatch() {
public String getOpcRequestId() {
return opcRequestId;
}
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride;
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ public Boolean getIsLockOverride() {
+ return isLockOverride;
+ }
public static class Builder
implements com.oracle.bmc.requests.BmcRequest.Builder<
@@ -117,6 +128,21 @@ public Builder opcRequestId(String opcRequestId) {
return this;
}
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride = null;
+
+ /**
+ * Whether to override locks (if any exist).
+ * @param isLockOverride the value to set
+ * @return this builder instance
+ */
+ public Builder isLockOverride(Boolean isLockOverride) {
+ this.isLockOverride = isLockOverride;
+ return this;
+ }
+
/**
* Set the invocation callback for the request to be built.
* @param invocationCallback the invocation callback to be set for the request
@@ -148,6 +174,7 @@ public Builder copy(DeleteModelRequest o) {
modelId(o.getModelId());
ifMatch(o.getIfMatch());
opcRequestId(o.getOpcRequestId());
+ isLockOverride(o.getIsLockOverride());
invocationCallback(o.getInvocationCallback());
retryConfiguration(o.getRetryConfiguration());
return this;
@@ -183,8 +210,9 @@ public DeleteModelRequest buildWithoutInvocationCallback() {
request.modelId = modelId;
request.ifMatch = ifMatch;
request.opcRequestId = opcRequestId;
+ request.isLockOverride = isLockOverride;
return request;
- // new DeleteModelRequest(modelId, ifMatch, opcRequestId);
+ // new DeleteModelRequest(modelId, ifMatch, opcRequestId, isLockOverride);
}
}
@@ -193,7 +221,11 @@ public DeleteModelRequest buildWithoutInvocationCallback() {
* @return instance of {@link Builder} that allows you to modify request properties.
*/
public Builder toBuilder() {
- return new Builder().modelId(modelId).ifMatch(ifMatch).opcRequestId(opcRequestId);
+ return new Builder()
+ .modelId(modelId)
+ .ifMatch(ifMatch)
+ .opcRequestId(opcRequestId)
+ .isLockOverride(isLockOverride);
}
/**
@@ -212,6 +244,7 @@ public String toString() {
sb.append(",modelId=").append(String.valueOf(this.modelId));
sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride));
sb.append(")");
return sb.toString();
}
@@ -229,7 +262,8 @@ public boolean equals(Object o) {
return super.equals(o)
&& java.util.Objects.equals(this.modelId, other.modelId)
&& java.util.Objects.equals(this.ifMatch, other.ifMatch)
- && java.util.Objects.equals(this.opcRequestId, other.opcRequestId);
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.isLockOverride, other.isLockOverride);
}
@Override
@@ -239,6 +273,9 @@ public int hashCode() {
result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode());
result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode());
return result;
}
}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteProjectRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteProjectRequest.java
index 0db5d7c9d0d..de0fcdffd4a 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteProjectRequest.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteProjectRequest.java
@@ -54,6 +54,17 @@ public String getIfMatch() {
public String getOpcRequestId() {
return opcRequestId;
}
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride;
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ public Boolean getIsLockOverride() {
+ return isLockOverride;
+ }
public static class Builder
implements com.oracle.bmc.requests.BmcRequest.Builder<
@@ -117,6 +128,21 @@ public Builder opcRequestId(String opcRequestId) {
return this;
}
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride = null;
+
+ /**
+ * Whether to override locks (if any exist).
+ * @param isLockOverride the value to set
+ * @return this builder instance
+ */
+ public Builder isLockOverride(Boolean isLockOverride) {
+ this.isLockOverride = isLockOverride;
+ return this;
+ }
+
/**
* Set the invocation callback for the request to be built.
* @param invocationCallback the invocation callback to be set for the request
@@ -148,6 +174,7 @@ public Builder copy(DeleteProjectRequest o) {
projectId(o.getProjectId());
ifMatch(o.getIfMatch());
opcRequestId(o.getOpcRequestId());
+ isLockOverride(o.getIsLockOverride());
invocationCallback(o.getInvocationCallback());
retryConfiguration(o.getRetryConfiguration());
return this;
@@ -183,8 +210,9 @@ public DeleteProjectRequest buildWithoutInvocationCallback() {
request.projectId = projectId;
request.ifMatch = ifMatch;
request.opcRequestId = opcRequestId;
+ request.isLockOverride = isLockOverride;
return request;
- // new DeleteProjectRequest(projectId, ifMatch, opcRequestId);
+ // new DeleteProjectRequest(projectId, ifMatch, opcRequestId, isLockOverride);
}
}
@@ -193,7 +221,11 @@ public DeleteProjectRequest buildWithoutInvocationCallback() {
* @return instance of {@link Builder} that allows you to modify request properties.
*/
public Builder toBuilder() {
- return new Builder().projectId(projectId).ifMatch(ifMatch).opcRequestId(opcRequestId);
+ return new Builder()
+ .projectId(projectId)
+ .ifMatch(ifMatch)
+ .opcRequestId(opcRequestId)
+ .isLockOverride(isLockOverride);
}
/**
@@ -212,6 +244,7 @@ public String toString() {
sb.append(",projectId=").append(String.valueOf(this.projectId));
sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride));
sb.append(")");
return sb.toString();
}
@@ -229,7 +262,8 @@ public boolean equals(Object o) {
return super.equals(o)
&& java.util.Objects.equals(this.projectId, other.projectId)
&& java.util.Objects.equals(this.ifMatch, other.ifMatch)
- && java.util.Objects.equals(this.opcRequestId, other.opcRequestId);
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.isLockOverride, other.isLockOverride);
}
@Override
@@ -239,6 +273,9 @@ public int hashCode() {
result = (result * PRIME) + (this.projectId == null ? 43 : this.projectId.hashCode());
result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode());
return result;
}
}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveModelLockRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveModelLockRequest.java
new file mode 100644
index 00000000000..f6689fddd00
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveModelLockRequest.java
@@ -0,0 +1,402 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.requests;
+
+import com.oracle.bmc.aidocument.model.*;
+/**
+ * Example: Click here to see how to use RemoveModelLockRequest.
+ */
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+public class RemoveModelLockRequest
+ extends com.oracle.bmc.requests.BmcRequest<
+ com.oracle.bmc.aidocument.model.RemoveModelLockDetails> {
+
+ /**
+ * A unique model identifier.
+ */
+ private String modelId;
+
+ /**
+ * A unique model identifier.
+ */
+ public String getModelId() {
+ return modelId;
+ }
+ /**
+ * Request payload to remove lock to the resource.
+ *
+ */
+ private com.oracle.bmc.aidocument.model.RemoveModelLockDetails removeModelLockDetails;
+
+ /**
+ * Request payload to remove lock to the resource.
+ *
+ */
+ public com.oracle.bmc.aidocument.model.RemoveModelLockDetails getRemoveModelLockDetails() {
+ return removeModelLockDetails;
+ }
+ /**
+ * 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.
+ *
+ */
+ private String opcRetryToken;
+
+ /**
+ * 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.
+ *
+ */
+ public String getOpcRetryToken() {
+ return opcRetryToken;
+ }
+ /**
+ * The client request ID for tracing.
+ */
+ private String opcRequestId;
+
+ /**
+ * The client request ID for tracing.
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code 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.
+ *
+ */
+ private String ifMatch;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code 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.
+ *
+ */
+ public String getIfMatch() {
+ return ifMatch;
+ }
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride;
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ public Boolean getIsLockOverride() {
+ return isLockOverride;
+ }
+
+ /**
+ * Alternative accessor for the body parameter.
+ * @return body parameter
+ */
+ @Override
+ @com.oracle.bmc.InternalSdk
+ public com.oracle.bmc.aidocument.model.RemoveModelLockDetails getBody$() {
+ return removeModelLockDetails;
+ }
+
+ public static class Builder
+ implements com.oracle.bmc.requests.BmcRequest.Builder<
+ RemoveModelLockRequest,
+ com.oracle.bmc.aidocument.model.RemoveModelLockDetails> {
+ private com.oracle.bmc.util.internal.Consumer
+ invocationCallback = null;
+ private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null;
+
+ /**
+ * A unique model identifier.
+ */
+ private String modelId = null;
+
+ /**
+ * A unique model identifier.
+ * @param modelId the value to set
+ * @return this builder instance
+ */
+ public Builder modelId(String modelId) {
+ this.modelId = modelId;
+ return this;
+ }
+
+ /**
+ * Request payload to remove lock to the resource.
+ *
+ */
+ private com.oracle.bmc.aidocument.model.RemoveModelLockDetails removeModelLockDetails =
+ null;
+
+ /**
+ * Request payload to remove lock to the resource.
+ *
+ * @param removeModelLockDetails the value to set
+ * @return this builder instance
+ */
+ public Builder removeModelLockDetails(
+ com.oracle.bmc.aidocument.model.RemoveModelLockDetails removeModelLockDetails) {
+ this.removeModelLockDetails = removeModelLockDetails;
+ return this;
+ }
+
+ /**
+ * 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.
+ *
+ */
+ private String opcRetryToken = null;
+
+ /**
+ * 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.
+ *
+ * @param opcRetryToken the value to set
+ * @return this builder instance
+ */
+ public Builder opcRetryToken(String opcRetryToken) {
+ this.opcRetryToken = opcRetryToken;
+ return this;
+ }
+
+ /**
+ * The client request ID for tracing.
+ */
+ private String opcRequestId = null;
+
+ /**
+ * The client request ID for tracing.
+ * @param opcRequestId the value to set
+ * @return this builder instance
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code 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.
+ *
+ */
+ private String ifMatch = null;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code if-match} parameter to the value of the
+ * etag from a previous GET or POST response for that resource.
+ * The resource will be updated or deleted only if the etag you
+ * provide matches the resource's current etag value.
+ *
+ * @param ifMatch the value to set
+ * @return this builder instance
+ */
+ public Builder ifMatch(String ifMatch) {
+ this.ifMatch = ifMatch;
+ return this;
+ }
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride = null;
+
+ /**
+ * Whether to override locks (if any exist).
+ * @param isLockOverride the value to set
+ * @return this builder instance
+ */
+ public Builder isLockOverride(Boolean isLockOverride) {
+ this.isLockOverride = isLockOverride;
+ return this;
+ }
+
+ /**
+ * Set the invocation callback for the request to be built.
+ * @param invocationCallback the invocation callback to be set for the request
+ * @return this builder instance
+ */
+ public Builder invocationCallback(
+ com.oracle.bmc.util.internal.Consumer
+ invocationCallback) {
+ this.invocationCallback = invocationCallback;
+ return this;
+ }
+
+ /**
+ * Set the retry configuration for the request to be built.
+ * @param retryConfiguration the retry configuration to be used for the request
+ * @return this builder instance
+ */
+ public Builder retryConfiguration(
+ com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) {
+ this.retryConfiguration = retryConfiguration;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ * @return this builder instance
+ */
+ public Builder copy(RemoveModelLockRequest o) {
+ modelId(o.getModelId());
+ removeModelLockDetails(o.getRemoveModelLockDetails());
+ opcRetryToken(o.getOpcRetryToken());
+ opcRequestId(o.getOpcRequestId());
+ ifMatch(o.getIfMatch());
+ isLockOverride(o.getIsLockOverride());
+ invocationCallback(o.getInvocationCallback());
+ retryConfiguration(o.getRetryConfiguration());
+ return this;
+ }
+
+ /**
+ * Build the instance of RemoveModelLockRequest as configured by this builder
+ *
+ * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account,
+ * while the method {@link Builder#buildWithoutInvocationCallback} does not.
+ *
+ * This is the preferred method to build an instance.
+ *
+ * @return instance of RemoveModelLockRequest
+ */
+ public RemoveModelLockRequest build() {
+ RemoveModelLockRequest request = buildWithoutInvocationCallback();
+ request.setInvocationCallback(invocationCallback);
+ request.setRetryConfiguration(retryConfiguration);
+ return request;
+ }
+
+ /**
+ * Alternative setter for the body parameter.
+ * @param body the body parameter
+ * @return this builder instance
+ */
+ @com.oracle.bmc.InternalSdk
+ public Builder body$(com.oracle.bmc.aidocument.model.RemoveModelLockDetails body) {
+ removeModelLockDetails(body);
+ return this;
+ }
+
+ /**
+ * Build the instance of RemoveModelLockRequest as configured by this builder
+ *
+ * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account,
+ * while the method {@link Builder#build} does
+ *
+ * @return instance of RemoveModelLockRequest
+ */
+ public RemoveModelLockRequest buildWithoutInvocationCallback() {
+ RemoveModelLockRequest request = new RemoveModelLockRequest();
+ request.modelId = modelId;
+ request.removeModelLockDetails = removeModelLockDetails;
+ request.opcRetryToken = opcRetryToken;
+ request.opcRequestId = opcRequestId;
+ request.ifMatch = ifMatch;
+ request.isLockOverride = isLockOverride;
+ return request;
+ // new RemoveModelLockRequest(modelId, removeModelLockDetails, opcRetryToken, opcRequestId, ifMatch, isLockOverride);
+ }
+ }
+
+ /**
+ * Return an instance of {@link Builder} that allows you to modify request properties.
+ * @return instance of {@link Builder} that allows you to modify request properties.
+ */
+ public Builder toBuilder() {
+ return new Builder()
+ .modelId(modelId)
+ .removeModelLockDetails(removeModelLockDetails)
+ .opcRetryToken(opcRetryToken)
+ .opcRequestId(opcRequestId)
+ .ifMatch(ifMatch)
+ .isLockOverride(isLockOverride);
+ }
+
+ /**
+ * Return a new builder for this request object.
+ * @return builder for the request object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",modelId=").append(String.valueOf(this.modelId));
+ sb.append(",removeModelLockDetails=").append(String.valueOf(this.removeModelLockDetails));
+ sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken));
+ sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
+ sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof RemoveModelLockRequest)) {
+ return false;
+ }
+
+ RemoveModelLockRequest other = (RemoveModelLockRequest) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.modelId, other.modelId)
+ && java.util.Objects.equals(
+ this.removeModelLockDetails, other.removeModelLockDetails)
+ && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.ifMatch, other.ifMatch)
+ && java.util.Objects.equals(this.isLockOverride, other.isLockOverride);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.removeModelLockDetails == null
+ ? 43
+ : this.removeModelLockDetails.hashCode());
+ result =
+ (result * PRIME)
+ + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveProjectLockRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveProjectLockRequest.java
new file mode 100644
index 00000000000..75afe23ed10
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveProjectLockRequest.java
@@ -0,0 +1,403 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.requests;
+
+import com.oracle.bmc.aidocument.model.*;
+/**
+ * Example: Click here to see how to use RemoveProjectLockRequest.
+ */
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+public class RemoveProjectLockRequest
+ extends com.oracle.bmc.requests.BmcRequest<
+ com.oracle.bmc.aidocument.model.RemoveProjectLockDetails> {
+
+ /**
+ * A unique project identifier.
+ */
+ private String projectId;
+
+ /**
+ * A unique project identifier.
+ */
+ public String getProjectId() {
+ return projectId;
+ }
+ /**
+ * Request payload to remove lock to the resource.
+ *
+ */
+ private com.oracle.bmc.aidocument.model.RemoveProjectLockDetails removeProjectLockDetails;
+
+ /**
+ * Request payload to remove lock to the resource.
+ *
+ */
+ public com.oracle.bmc.aidocument.model.RemoveProjectLockDetails getRemoveProjectLockDetails() {
+ return removeProjectLockDetails;
+ }
+ /**
+ * 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.
+ *
+ */
+ private String opcRetryToken;
+
+ /**
+ * 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.
+ *
+ */
+ public String getOpcRetryToken() {
+ return opcRetryToken;
+ }
+ /**
+ * The client request ID for tracing.
+ */
+ private String opcRequestId;
+
+ /**
+ * The client request ID for tracing.
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code 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.
+ *
+ */
+ private String ifMatch;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code 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.
+ *
+ */
+ public String getIfMatch() {
+ return ifMatch;
+ }
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride;
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ public Boolean getIsLockOverride() {
+ return isLockOverride;
+ }
+
+ /**
+ * Alternative accessor for the body parameter.
+ * @return body parameter
+ */
+ @Override
+ @com.oracle.bmc.InternalSdk
+ public com.oracle.bmc.aidocument.model.RemoveProjectLockDetails getBody$() {
+ return removeProjectLockDetails;
+ }
+
+ public static class Builder
+ implements com.oracle.bmc.requests.BmcRequest.Builder<
+ RemoveProjectLockRequest,
+ com.oracle.bmc.aidocument.model.RemoveProjectLockDetails> {
+ private com.oracle.bmc.util.internal.Consumer
+ invocationCallback = null;
+ private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null;
+
+ /**
+ * A unique project identifier.
+ */
+ private String projectId = null;
+
+ /**
+ * A unique project identifier.
+ * @param projectId the value to set
+ * @return this builder instance
+ */
+ public Builder projectId(String projectId) {
+ this.projectId = projectId;
+ return this;
+ }
+
+ /**
+ * Request payload to remove lock to the resource.
+ *
+ */
+ private com.oracle.bmc.aidocument.model.RemoveProjectLockDetails removeProjectLockDetails =
+ null;
+
+ /**
+ * Request payload to remove lock to the resource.
+ *
+ * @param removeProjectLockDetails the value to set
+ * @return this builder instance
+ */
+ public Builder removeProjectLockDetails(
+ com.oracle.bmc.aidocument.model.RemoveProjectLockDetails removeProjectLockDetails) {
+ this.removeProjectLockDetails = removeProjectLockDetails;
+ return this;
+ }
+
+ /**
+ * 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.
+ *
+ */
+ private String opcRetryToken = null;
+
+ /**
+ * 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.
+ *
+ * @param opcRetryToken the value to set
+ * @return this builder instance
+ */
+ public Builder opcRetryToken(String opcRetryToken) {
+ this.opcRetryToken = opcRetryToken;
+ return this;
+ }
+
+ /**
+ * The client request ID for tracing.
+ */
+ private String opcRequestId = null;
+
+ /**
+ * The client request ID for tracing.
+ * @param opcRequestId the value to set
+ * @return this builder instance
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code 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.
+ *
+ */
+ private String ifMatch = null;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call
+ * for a resource, set the {@code if-match} parameter to the value of the
+ * etag from a previous GET or POST response for that resource.
+ * The resource will be updated or deleted only if the etag you
+ * provide matches the resource's current etag value.
+ *
+ * @param ifMatch the value to set
+ * @return this builder instance
+ */
+ public Builder ifMatch(String ifMatch) {
+ this.ifMatch = ifMatch;
+ return this;
+ }
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride = null;
+
+ /**
+ * Whether to override locks (if any exist).
+ * @param isLockOverride the value to set
+ * @return this builder instance
+ */
+ public Builder isLockOverride(Boolean isLockOverride) {
+ this.isLockOverride = isLockOverride;
+ return this;
+ }
+
+ /**
+ * Set the invocation callback for the request to be built.
+ * @param invocationCallback the invocation callback to be set for the request
+ * @return this builder instance
+ */
+ public Builder invocationCallback(
+ com.oracle.bmc.util.internal.Consumer
+ invocationCallback) {
+ this.invocationCallback = invocationCallback;
+ return this;
+ }
+
+ /**
+ * Set the retry configuration for the request to be built.
+ * @param retryConfiguration the retry configuration to be used for the request
+ * @return this builder instance
+ */
+ public Builder retryConfiguration(
+ com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) {
+ this.retryConfiguration = retryConfiguration;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ * @return this builder instance
+ */
+ public Builder copy(RemoveProjectLockRequest o) {
+ projectId(o.getProjectId());
+ removeProjectLockDetails(o.getRemoveProjectLockDetails());
+ opcRetryToken(o.getOpcRetryToken());
+ opcRequestId(o.getOpcRequestId());
+ ifMatch(o.getIfMatch());
+ isLockOverride(o.getIsLockOverride());
+ invocationCallback(o.getInvocationCallback());
+ retryConfiguration(o.getRetryConfiguration());
+ return this;
+ }
+
+ /**
+ * Build the instance of RemoveProjectLockRequest as configured by this builder
+ *
+ * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account,
+ * while the method {@link Builder#buildWithoutInvocationCallback} does not.
+ *
+ * This is the preferred method to build an instance.
+ *
+ * @return instance of RemoveProjectLockRequest
+ */
+ public RemoveProjectLockRequest build() {
+ RemoveProjectLockRequest request = buildWithoutInvocationCallback();
+ request.setInvocationCallback(invocationCallback);
+ request.setRetryConfiguration(retryConfiguration);
+ return request;
+ }
+
+ /**
+ * Alternative setter for the body parameter.
+ * @param body the body parameter
+ * @return this builder instance
+ */
+ @com.oracle.bmc.InternalSdk
+ public Builder body$(com.oracle.bmc.aidocument.model.RemoveProjectLockDetails body) {
+ removeProjectLockDetails(body);
+ return this;
+ }
+
+ /**
+ * Build the instance of RemoveProjectLockRequest as configured by this builder
+ *
+ * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account,
+ * while the method {@link Builder#build} does
+ *
+ * @return instance of RemoveProjectLockRequest
+ */
+ public RemoveProjectLockRequest buildWithoutInvocationCallback() {
+ RemoveProjectLockRequest request = new RemoveProjectLockRequest();
+ request.projectId = projectId;
+ request.removeProjectLockDetails = removeProjectLockDetails;
+ request.opcRetryToken = opcRetryToken;
+ request.opcRequestId = opcRequestId;
+ request.ifMatch = ifMatch;
+ request.isLockOverride = isLockOverride;
+ return request;
+ // new RemoveProjectLockRequest(projectId, removeProjectLockDetails, opcRetryToken, opcRequestId, ifMatch, isLockOverride);
+ }
+ }
+
+ /**
+ * Return an instance of {@link Builder} that allows you to modify request properties.
+ * @return instance of {@link Builder} that allows you to modify request properties.
+ */
+ public Builder toBuilder() {
+ return new Builder()
+ .projectId(projectId)
+ .removeProjectLockDetails(removeProjectLockDetails)
+ .opcRetryToken(opcRetryToken)
+ .opcRequestId(opcRequestId)
+ .ifMatch(ifMatch)
+ .isLockOverride(isLockOverride);
+ }
+
+ /**
+ * Return a new builder for this request object.
+ * @return builder for the request object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",projectId=").append(String.valueOf(this.projectId));
+ sb.append(",removeProjectLockDetails=")
+ .append(String.valueOf(this.removeProjectLockDetails));
+ sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken));
+ sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
+ sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof RemoveProjectLockRequest)) {
+ return false;
+ }
+
+ RemoveProjectLockRequest other = (RemoveProjectLockRequest) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.projectId, other.projectId)
+ && java.util.Objects.equals(
+ this.removeProjectLockDetails, other.removeProjectLockDetails)
+ && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.ifMatch, other.ifMatch)
+ && java.util.Objects.equals(this.isLockOverride, other.isLockOverride);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.projectId == null ? 43 : this.projectId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.removeProjectLockDetails == null
+ ? 43
+ : this.removeProjectLockDetails.hashCode());
+ result =
+ (result * PRIME)
+ + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateModelRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateModelRequest.java
index cfe2a6fa3d9..846351f55d0 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateModelRequest.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateModelRequest.java
@@ -67,6 +67,17 @@ public String getIfMatch() {
public String getOpcRequestId() {
return opcRequestId;
}
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride;
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ public Boolean getIsLockOverride() {
+ return isLockOverride;
+ }
/**
* Alternative accessor for the body parameter.
@@ -156,6 +167,21 @@ public Builder opcRequestId(String opcRequestId) {
return this;
}
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride = null;
+
+ /**
+ * Whether to override locks (if any exist).
+ * @param isLockOverride the value to set
+ * @return this builder instance
+ */
+ public Builder isLockOverride(Boolean isLockOverride) {
+ this.isLockOverride = isLockOverride;
+ return this;
+ }
+
/**
* Set the invocation callback for the request to be built.
* @param invocationCallback the invocation callback to be set for the request
@@ -188,6 +214,7 @@ public Builder copy(UpdateModelRequest o) {
updateModelDetails(o.getUpdateModelDetails());
ifMatch(o.getIfMatch());
opcRequestId(o.getOpcRequestId());
+ isLockOverride(o.getIsLockOverride());
invocationCallback(o.getInvocationCallback());
retryConfiguration(o.getRetryConfiguration());
return this;
@@ -235,8 +262,9 @@ public UpdateModelRequest buildWithoutInvocationCallback() {
request.updateModelDetails = updateModelDetails;
request.ifMatch = ifMatch;
request.opcRequestId = opcRequestId;
+ request.isLockOverride = isLockOverride;
return request;
- // new UpdateModelRequest(modelId, updateModelDetails, ifMatch, opcRequestId);
+ // new UpdateModelRequest(modelId, updateModelDetails, ifMatch, opcRequestId, isLockOverride);
}
}
@@ -249,7 +277,8 @@ public Builder toBuilder() {
.modelId(modelId)
.updateModelDetails(updateModelDetails)
.ifMatch(ifMatch)
- .opcRequestId(opcRequestId);
+ .opcRequestId(opcRequestId)
+ .isLockOverride(isLockOverride);
}
/**
@@ -269,6 +298,7 @@ public String toString() {
sb.append(",updateModelDetails=").append(String.valueOf(this.updateModelDetails));
sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride));
sb.append(")");
return sb.toString();
}
@@ -287,7 +317,8 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.modelId, other.modelId)
&& java.util.Objects.equals(this.updateModelDetails, other.updateModelDetails)
&& java.util.Objects.equals(this.ifMatch, other.ifMatch)
- && java.util.Objects.equals(this.opcRequestId, other.opcRequestId);
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.isLockOverride, other.isLockOverride);
}
@Override
@@ -302,6 +333,9 @@ public int hashCode() {
: this.updateModelDetails.hashCode());
result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode());
return result;
}
}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateProjectRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateProjectRequest.java
index da7f9077e7b..e922cedff75 100644
--- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateProjectRequest.java
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateProjectRequest.java
@@ -67,6 +67,17 @@ public String getIfMatch() {
public String getOpcRequestId() {
return opcRequestId;
}
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride;
+
+ /**
+ * Whether to override locks (if any exist).
+ */
+ public Boolean getIsLockOverride() {
+ return isLockOverride;
+ }
/**
* Alternative accessor for the body parameter.
@@ -156,6 +167,21 @@ public Builder opcRequestId(String opcRequestId) {
return this;
}
+ /**
+ * Whether to override locks (if any exist).
+ */
+ private Boolean isLockOverride = null;
+
+ /**
+ * Whether to override locks (if any exist).
+ * @param isLockOverride the value to set
+ * @return this builder instance
+ */
+ public Builder isLockOverride(Boolean isLockOverride) {
+ this.isLockOverride = isLockOverride;
+ return this;
+ }
+
/**
* Set the invocation callback for the request to be built.
* @param invocationCallback the invocation callback to be set for the request
@@ -188,6 +214,7 @@ public Builder copy(UpdateProjectRequest o) {
updateProjectDetails(o.getUpdateProjectDetails());
ifMatch(o.getIfMatch());
opcRequestId(o.getOpcRequestId());
+ isLockOverride(o.getIsLockOverride());
invocationCallback(o.getInvocationCallback());
retryConfiguration(o.getRetryConfiguration());
return this;
@@ -235,8 +262,9 @@ public UpdateProjectRequest buildWithoutInvocationCallback() {
request.updateProjectDetails = updateProjectDetails;
request.ifMatch = ifMatch;
request.opcRequestId = opcRequestId;
+ request.isLockOverride = isLockOverride;
return request;
- // new UpdateProjectRequest(projectId, updateProjectDetails, ifMatch, opcRequestId);
+ // new UpdateProjectRequest(projectId, updateProjectDetails, ifMatch, opcRequestId, isLockOverride);
}
}
@@ -249,7 +277,8 @@ public Builder toBuilder() {
.projectId(projectId)
.updateProjectDetails(updateProjectDetails)
.ifMatch(ifMatch)
- .opcRequestId(opcRequestId);
+ .opcRequestId(opcRequestId)
+ .isLockOverride(isLockOverride);
}
/**
@@ -269,6 +298,7 @@ public String toString() {
sb.append(",updateProjectDetails=").append(String.valueOf(this.updateProjectDetails));
sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride));
sb.append(")");
return sb.toString();
}
@@ -287,7 +317,8 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.projectId, other.projectId)
&& java.util.Objects.equals(this.updateProjectDetails, other.updateProjectDetails)
&& java.util.Objects.equals(this.ifMatch, other.ifMatch)
- && java.util.Objects.equals(this.opcRequestId, other.opcRequestId);
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.isLockOverride, other.isLockOverride);
}
@Override
@@ -302,6 +333,9 @@ public int hashCode() {
: this.updateProjectDetails.hashCode());
result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode());
return result;
}
}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddModelLockResponse.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddModelLockResponse.java
new file mode 100644
index 00000000000..7f81bf1fc21
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddModelLockResponse.java
@@ -0,0 +1,209 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.responses;
+
+import com.oracle.bmc.aidocument.model.*;
+
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+public class AddModelLockResponse extends com.oracle.bmc.responses.BmcResponse {
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @return the value
+ */
+ public String getEtag() {
+ return etag;
+ }
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ */
+ private String opcRequestId;
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ * @return the value
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+
+ /**
+ * The returned Model instance.
+ */
+ private com.oracle.bmc.aidocument.model.Model model;
+
+ /**
+ * The returned Model instance.
+ * @return the value
+ */
+ public com.oracle.bmc.aidocument.model.Model getModel() {
+ return model;
+ }
+
+ @java.beans.ConstructorProperties({
+ "__httpStatusCode__",
+ "headers",
+ "etag",
+ "opcRequestId",
+ "model"
+ })
+ private AddModelLockResponse(
+ int __httpStatusCode__,
+ javax.ws.rs.core.MultivaluedMap headers,
+ String etag,
+ String opcRequestId,
+ com.oracle.bmc.aidocument.model.Model model) {
+ super(__httpStatusCode__, headers);
+ this.etag = etag;
+ this.opcRequestId = opcRequestId;
+ this.model = model;
+ }
+
+ public static class Builder {
+ private int __httpStatusCode__;
+
+ public Builder __httpStatusCode__(int __httpStatusCode__) {
+ this.__httpStatusCode__ = __httpStatusCode__;
+ return this;
+ }
+
+ private javax.ws.rs.core.MultivaluedMap headers;
+
+ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) {
+ this.headers = headers;
+ return this;
+ }
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @param etag the value to set
+ * @return this builder
+ */
+ public Builder etag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ */
+ private String opcRequestId;
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ * @param opcRequestId the value to set
+ * @return this builder
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /**
+ * The returned Model instance.
+ */
+ private com.oracle.bmc.aidocument.model.Model model;
+
+ /**
+ * The returned Model instance.
+ * @param model the value to set
+ * @return this builder
+ */
+ public Builder model(com.oracle.bmc.aidocument.model.Model model) {
+ this.model = model;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ * @return this builder instance
+ */
+ public Builder copy(AddModelLockResponse o) {
+ __httpStatusCode__(o.get__httpStatusCode__());
+ headers(o.getHeaders());
+ etag(o.getEtag());
+ opcRequestId(o.getOpcRequestId());
+ model(o.getModel());
+
+ return this;
+ }
+
+ /**
+ * Build the response object.
+ * @return the response object
+ */
+ public AddModelLockResponse build() {
+ return new AddModelLockResponse(__httpStatusCode__, headers, etag, opcRequestId, model);
+ }
+ }
+
+ /**
+ * Return a new builder for this response object.
+ * @return builder for the response object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",etag=").append(String.valueOf(etag));
+ sb.append(",opcRequestId=").append(String.valueOf(opcRequestId));
+ sb.append(",model=").append(String.valueOf(model));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof AddModelLockResponse)) {
+ return false;
+ }
+
+ AddModelLockResponse other = (AddModelLockResponse) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.etag, other.etag)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.model, other.model);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result = (result * PRIME) + (this.model == null ? 43 : this.model.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddProjectLockResponse.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddProjectLockResponse.java
new file mode 100644
index 00000000000..b366ac99a2b
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddProjectLockResponse.java
@@ -0,0 +1,210 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.responses;
+
+import com.oracle.bmc.aidocument.model.*;
+
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+public class AddProjectLockResponse extends com.oracle.bmc.responses.BmcResponse {
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @return the value
+ */
+ public String getEtag() {
+ return etag;
+ }
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ */
+ private String opcRequestId;
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ * @return the value
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+
+ /**
+ * The returned Project instance.
+ */
+ private com.oracle.bmc.aidocument.model.Project project;
+
+ /**
+ * The returned Project instance.
+ * @return the value
+ */
+ public com.oracle.bmc.aidocument.model.Project getProject() {
+ return project;
+ }
+
+ @java.beans.ConstructorProperties({
+ "__httpStatusCode__",
+ "headers",
+ "etag",
+ "opcRequestId",
+ "project"
+ })
+ private AddProjectLockResponse(
+ int __httpStatusCode__,
+ javax.ws.rs.core.MultivaluedMap headers,
+ String etag,
+ String opcRequestId,
+ com.oracle.bmc.aidocument.model.Project project) {
+ super(__httpStatusCode__, headers);
+ this.etag = etag;
+ this.opcRequestId = opcRequestId;
+ this.project = project;
+ }
+
+ public static class Builder {
+ private int __httpStatusCode__;
+
+ public Builder __httpStatusCode__(int __httpStatusCode__) {
+ this.__httpStatusCode__ = __httpStatusCode__;
+ return this;
+ }
+
+ private javax.ws.rs.core.MultivaluedMap headers;
+
+ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) {
+ this.headers = headers;
+ return this;
+ }
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @param etag the value to set
+ * @return this builder
+ */
+ public Builder etag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ */
+ private String opcRequestId;
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ * @param opcRequestId the value to set
+ * @return this builder
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /**
+ * The returned Project instance.
+ */
+ private com.oracle.bmc.aidocument.model.Project project;
+
+ /**
+ * The returned Project instance.
+ * @param project the value to set
+ * @return this builder
+ */
+ public Builder project(com.oracle.bmc.aidocument.model.Project project) {
+ this.project = project;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ * @return this builder instance
+ */
+ public Builder copy(AddProjectLockResponse o) {
+ __httpStatusCode__(o.get__httpStatusCode__());
+ headers(o.getHeaders());
+ etag(o.getEtag());
+ opcRequestId(o.getOpcRequestId());
+ project(o.getProject());
+
+ return this;
+ }
+
+ /**
+ * Build the response object.
+ * @return the response object
+ */
+ public AddProjectLockResponse build() {
+ return new AddProjectLockResponse(
+ __httpStatusCode__, headers, etag, opcRequestId, project);
+ }
+ }
+
+ /**
+ * Return a new builder for this response object.
+ * @return builder for the response object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",etag=").append(String.valueOf(etag));
+ sb.append(",opcRequestId=").append(String.valueOf(opcRequestId));
+ sb.append(",project=").append(String.valueOf(project));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof AddProjectLockResponse)) {
+ return false;
+ }
+
+ AddProjectLockResponse other = (AddProjectLockResponse) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.etag, other.etag)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.project, other.project);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result = (result * PRIME) + (this.project == null ? 43 : this.project.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveModelLockResponse.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveModelLockResponse.java
new file mode 100644
index 00000000000..8fdf6df3606
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveModelLockResponse.java
@@ -0,0 +1,210 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.responses;
+
+import com.oracle.bmc.aidocument.model.*;
+
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+public class RemoveModelLockResponse extends com.oracle.bmc.responses.BmcResponse {
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @return the value
+ */
+ public String getEtag() {
+ return etag;
+ }
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ */
+ private String opcRequestId;
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ * @return the value
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+
+ /**
+ * The returned Model instance.
+ */
+ private com.oracle.bmc.aidocument.model.Model model;
+
+ /**
+ * The returned Model instance.
+ * @return the value
+ */
+ public com.oracle.bmc.aidocument.model.Model getModel() {
+ return model;
+ }
+
+ @java.beans.ConstructorProperties({
+ "__httpStatusCode__",
+ "headers",
+ "etag",
+ "opcRequestId",
+ "model"
+ })
+ private RemoveModelLockResponse(
+ int __httpStatusCode__,
+ javax.ws.rs.core.MultivaluedMap headers,
+ String etag,
+ String opcRequestId,
+ com.oracle.bmc.aidocument.model.Model model) {
+ super(__httpStatusCode__, headers);
+ this.etag = etag;
+ this.opcRequestId = opcRequestId;
+ this.model = model;
+ }
+
+ public static class Builder {
+ private int __httpStatusCode__;
+
+ public Builder __httpStatusCode__(int __httpStatusCode__) {
+ this.__httpStatusCode__ = __httpStatusCode__;
+ return this;
+ }
+
+ private javax.ws.rs.core.MultivaluedMap headers;
+
+ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) {
+ this.headers = headers;
+ return this;
+ }
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @param etag the value to set
+ * @return this builder
+ */
+ public Builder etag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ */
+ private String opcRequestId;
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ * @param opcRequestId the value to set
+ * @return this builder
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /**
+ * The returned Model instance.
+ */
+ private com.oracle.bmc.aidocument.model.Model model;
+
+ /**
+ * The returned Model instance.
+ * @param model the value to set
+ * @return this builder
+ */
+ public Builder model(com.oracle.bmc.aidocument.model.Model model) {
+ this.model = model;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ * @return this builder instance
+ */
+ public Builder copy(RemoveModelLockResponse o) {
+ __httpStatusCode__(o.get__httpStatusCode__());
+ headers(o.getHeaders());
+ etag(o.getEtag());
+ opcRequestId(o.getOpcRequestId());
+ model(o.getModel());
+
+ return this;
+ }
+
+ /**
+ * Build the response object.
+ * @return the response object
+ */
+ public RemoveModelLockResponse build() {
+ return new RemoveModelLockResponse(
+ __httpStatusCode__, headers, etag, opcRequestId, model);
+ }
+ }
+
+ /**
+ * Return a new builder for this response object.
+ * @return builder for the response object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",etag=").append(String.valueOf(etag));
+ sb.append(",opcRequestId=").append(String.valueOf(opcRequestId));
+ sb.append(",model=").append(String.valueOf(model));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof RemoveModelLockResponse)) {
+ return false;
+ }
+
+ RemoveModelLockResponse other = (RemoveModelLockResponse) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.etag, other.etag)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.model, other.model);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result = (result * PRIME) + (this.model == null ? 43 : this.model.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveProjectLockResponse.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveProjectLockResponse.java
new file mode 100644
index 00000000000..1412948a8b1
--- /dev/null
+++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveProjectLockResponse.java
@@ -0,0 +1,210 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.aidocument.responses;
+
+import com.oracle.bmc.aidocument.model.*;
+
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109")
+public class RemoveProjectLockResponse extends com.oracle.bmc.responses.BmcResponse {
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @return the value
+ */
+ public String getEtag() {
+ return etag;
+ }
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ */
+ private String opcRequestId;
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ * @return the value
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+
+ /**
+ * The returned Project instance.
+ */
+ private com.oracle.bmc.aidocument.model.Project project;
+
+ /**
+ * The returned Project instance.
+ * @return the value
+ */
+ public com.oracle.bmc.aidocument.model.Project getProject() {
+ return project;
+ }
+
+ @java.beans.ConstructorProperties({
+ "__httpStatusCode__",
+ "headers",
+ "etag",
+ "opcRequestId",
+ "project"
+ })
+ private RemoveProjectLockResponse(
+ int __httpStatusCode__,
+ javax.ws.rs.core.MultivaluedMap headers,
+ String etag,
+ String opcRequestId,
+ com.oracle.bmc.aidocument.model.Project project) {
+ super(__httpStatusCode__, headers);
+ this.etag = etag;
+ this.opcRequestId = opcRequestId;
+ this.project = project;
+ }
+
+ public static class Builder {
+ private int __httpStatusCode__;
+
+ public Builder __httpStatusCode__(int __httpStatusCode__) {
+ this.__httpStatusCode__ = __httpStatusCode__;
+ return this;
+ }
+
+ private javax.ws.rs.core.MultivaluedMap headers;
+
+ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) {
+ this.headers = headers;
+ return this;
+ }
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @param etag the value to set
+ * @return this builder
+ */
+ public Builder etag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ */
+ private String opcRequestId;
+
+ /**
+ * A unique Oracle-assigned identifier for the request. If you need to contact
+ * Oracle about a particular request, please provide the request ID.
+ *
+ * @param opcRequestId the value to set
+ * @return this builder
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /**
+ * The returned Project instance.
+ */
+ private com.oracle.bmc.aidocument.model.Project project;
+
+ /**
+ * The returned Project instance.
+ * @param project the value to set
+ * @return this builder
+ */
+ public Builder project(com.oracle.bmc.aidocument.model.Project project) {
+ this.project = project;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ * @return this builder instance
+ */
+ public Builder copy(RemoveProjectLockResponse o) {
+ __httpStatusCode__(o.get__httpStatusCode__());
+ headers(o.getHeaders());
+ etag(o.getEtag());
+ opcRequestId(o.getOpcRequestId());
+ project(o.getProject());
+
+ return this;
+ }
+
+ /**
+ * Build the response object.
+ * @return the response object
+ */
+ public RemoveProjectLockResponse build() {
+ return new RemoveProjectLockResponse(
+ __httpStatusCode__, headers, etag, opcRequestId, project);
+ }
+ }
+
+ /**
+ * Return a new builder for this response object.
+ * @return builder for the response object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",etag=").append(String.valueOf(etag));
+ sb.append(",opcRequestId=").append(String.valueOf(opcRequestId));
+ sb.append(",project=").append(String.valueOf(project));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof RemoveProjectLockResponse)) {
+ return false;
+ }
+
+ RemoveProjectLockResponse other = (RemoveProjectLockResponse) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.etag, other.etag)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.project, other.project);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result = (result * PRIME) + (this.project == null ? 43 : this.project.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml
index f5a706c00e0..67b840046cf 100644
--- a/bmc-ailanguage/pom.xml
+++ b/bmc-ailanguage/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 2.73.0
+ 2.79.0
../pom.xml
oci-java-sdk-ailanguage
@@ -16,7 +16,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 2.73.0
+ 2.79.0
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectDominantLanguageDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectDominantLanguageDetails.java
index 8d1866a64d1..4d425fa3de1 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectDominantLanguageDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectDominantLanguageDetails.java
@@ -23,6 +23,7 @@ public final class BatchDetectDominantLanguageDetails
extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
@Deprecated
@java.beans.ConstructorProperties({
+ "alias",
"shouldIgnoreTransliteration",
"charsToConsider",
"endpointId",
@@ -30,12 +31,14 @@ public final class BatchDetectDominantLanguageDetails
"documents"
})
public BatchDetectDominantLanguageDetails(
+ String alias,
Boolean shouldIgnoreTransliteration,
Integer charsToConsider,
String endpointId,
String compartmentId,
java.util.List documents) {
super();
+ this.alias = alias;
this.shouldIgnoreTransliteration = shouldIgnoreTransliteration;
this.charsToConsider = charsToConsider;
this.endpointId = endpointId;
@@ -45,6 +48,22 @@ public BatchDetectDominantLanguageDetails(
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @param alias the value to set
+ * @return this builder
+ **/
+ public Builder alias(String alias) {
+ this.alias = alias;
+ this.__explicitlySet__.add("alias");
+ return this;
+ }
/**
* Specifies whether to consider or ignore transliteration. For example "hi, aap kaise ho? sab kuch teek hai? I will call you tomorrow." would be detected as English when ignore transliteration=true, Hindi when ignoreTransliteration=false.
**/
@@ -142,6 +161,7 @@ public Builder documents(java.util.List documents) {
public BatchDetectDominantLanguageDetails build() {
BatchDetectDominantLanguageDetails model =
new BatchDetectDominantLanguageDetails(
+ this.alias,
this.shouldIgnoreTransliteration,
this.charsToConsider,
this.endpointId,
@@ -155,6 +175,9 @@ public BatchDetectDominantLanguageDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(BatchDetectDominantLanguageDetails model) {
+ if (model.wasPropertyExplicitlySet("alias")) {
+ this.alias(model.getAlias());
+ }
if (model.wasPropertyExplicitlySet("shouldIgnoreTransliteration")) {
this.shouldIgnoreTransliteration(model.getShouldIgnoreTransliteration());
}
@@ -185,6 +208,20 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private final String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @return the value
+ **/
+ public String getAlias() {
+ return alias;
+ }
+
/**
* Specifies whether to consider or ignore transliteration. For example "hi, aap kaise ho? sab kuch teek hai? I will call you tomorrow." would be detected as English when ignore transliteration=true, Hindi when ignoreTransliteration=false.
**/
@@ -279,7 +316,8 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("BatchDetectDominantLanguageDetails(");
sb.append("super=").append(super.toString());
- sb.append("shouldIgnoreTransliteration=")
+ sb.append("alias=").append(String.valueOf(this.alias));
+ sb.append(", shouldIgnoreTransliteration=")
.append(String.valueOf(this.shouldIgnoreTransliteration));
sb.append(", charsToConsider=").append(String.valueOf(this.charsToConsider));
sb.append(", endpointId=").append(String.valueOf(this.endpointId));
@@ -299,7 +337,8 @@ public boolean equals(Object o) {
}
BatchDetectDominantLanguageDetails other = (BatchDetectDominantLanguageDetails) o;
- return java.util.Objects.equals(
+ return java.util.Objects.equals(this.alias, other.alias)
+ && java.util.Objects.equals(
this.shouldIgnoreTransliteration, other.shouldIgnoreTransliteration)
&& java.util.Objects.equals(this.charsToConsider, other.charsToConsider)
&& java.util.Objects.equals(this.endpointId, other.endpointId)
@@ -312,6 +351,7 @@ public boolean equals(Object o) {
public int hashCode() {
final int PRIME = 59;
int result = 1;
+ result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode());
result =
(result * PRIME)
+ (this.shouldIgnoreTransliteration == null
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectHealthEntityDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectHealthEntityDetails.java
index 07399f91e4d..12a59f2ec0f 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectHealthEntityDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectHealthEntityDetails.java
@@ -23,6 +23,7 @@ public final class BatchDetectHealthEntityDetails
extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
@Deprecated
@java.beans.ConstructorProperties({
+ "alias",
"endpointId",
"documents",
"linkOntologies",
@@ -31,6 +32,7 @@ public final class BatchDetectHealthEntityDetails
"profile"
})
public BatchDetectHealthEntityDetails(
+ String alias,
String endpointId,
java.util.List documents,
java.util.List linkOntologies,
@@ -38,6 +40,7 @@ public BatchDetectHealthEntityDetails(
Boolean isDetectRelationships,
Profile profile) {
super();
+ this.alias = alias;
this.endpointId = endpointId;
this.documents = documents;
this.linkOntologies = linkOntologies;
@@ -48,6 +51,22 @@ public BatchDetectHealthEntityDetails(
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @param alias the value to set
+ * @return this builder
+ **/
+ public Builder alias(String alias) {
+ this.alias = alias;
+ this.__explicitlySet__.add("alias");
+ return this;
+ }
/**
* The endpoint which have to be used for inferencing.
**/
@@ -144,6 +163,7 @@ public Builder profile(Profile profile) {
public BatchDetectHealthEntityDetails build() {
BatchDetectHealthEntityDetails model =
new BatchDetectHealthEntityDetails(
+ this.alias,
this.endpointId,
this.documents,
this.linkOntologies,
@@ -158,6 +178,9 @@ public BatchDetectHealthEntityDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(BatchDetectHealthEntityDetails model) {
+ if (model.wasPropertyExplicitlySet("alias")) {
+ this.alias(model.getAlias());
+ }
if (model.wasPropertyExplicitlySet("endpointId")) {
this.endpointId(model.getEndpointId());
}
@@ -191,6 +214,20 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private final String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @return the value
+ **/
+ public String getAlias() {
+ return alias;
+ }
+
/**
* The endpoint which have to be used for inferencing.
**/
@@ -282,7 +319,8 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("BatchDetectHealthEntityDetails(");
sb.append("super=").append(super.toString());
- sb.append("endpointId=").append(String.valueOf(this.endpointId));
+ sb.append("alias=").append(String.valueOf(this.alias));
+ sb.append(", endpointId=").append(String.valueOf(this.endpointId));
sb.append(", documents=").append(String.valueOf(this.documents));
sb.append(", linkOntologies=").append(String.valueOf(this.linkOntologies));
sb.append(", isDetectAssertions=").append(String.valueOf(this.isDetectAssertions));
@@ -302,7 +340,8 @@ public boolean equals(Object o) {
}
BatchDetectHealthEntityDetails other = (BatchDetectHealthEntityDetails) o;
- return java.util.Objects.equals(this.endpointId, other.endpointId)
+ return java.util.Objects.equals(this.alias, other.alias)
+ && java.util.Objects.equals(this.endpointId, other.endpointId)
&& java.util.Objects.equals(this.documents, other.documents)
&& java.util.Objects.equals(this.linkOntologies, other.linkOntologies)
&& java.util.Objects.equals(this.isDetectAssertions, other.isDetectAssertions)
@@ -315,6 +354,7 @@ public boolean equals(Object o) {
public int hashCode() {
final int PRIME = 59;
int result = 1;
+ result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode());
result = (result * PRIME) + (this.endpointId == null ? 43 : this.endpointId.hashCode());
result = (result * PRIME) + (this.documents == null ? 43 : this.documents.hashCode());
result =
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageEntitiesDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageEntitiesDetails.java
index 59edaa0fc60..2869bef80ea 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageEntitiesDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageEntitiesDetails.java
@@ -22,10 +22,14 @@
public final class BatchDetectLanguageEntitiesDetails
extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
@Deprecated
- @java.beans.ConstructorProperties({"compartmentId", "endpointId", "documents"})
+ @java.beans.ConstructorProperties({"alias", "compartmentId", "endpointId", "documents"})
public BatchDetectLanguageEntitiesDetails(
- String compartmentId, String endpointId, java.util.List documents) {
+ String alias,
+ String compartmentId,
+ String endpointId,
+ java.util.List documents) {
super();
+ this.alias = alias;
this.compartmentId = compartmentId;
this.endpointId = endpointId;
this.documents = documents;
@@ -33,6 +37,22 @@ public BatchDetectLanguageEntitiesDetails(
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @param alias the value to set
+ * @return this builder
+ **/
+ public Builder alias(String alias) {
+ this.alias = alias;
+ this.__explicitlySet__.add("alias");
+ return this;
+ }
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that calls the API, inference will be served from pre trained model
**/
@@ -88,7 +108,7 @@ public Builder documents(java.util.List documents) {
public BatchDetectLanguageEntitiesDetails build() {
BatchDetectLanguageEntitiesDetails model =
new BatchDetectLanguageEntitiesDetails(
- this.compartmentId, this.endpointId, this.documents);
+ this.alias, this.compartmentId, this.endpointId, this.documents);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -97,6 +117,9 @@ public BatchDetectLanguageEntitiesDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(BatchDetectLanguageEntitiesDetails model) {
+ if (model.wasPropertyExplicitlySet("alias")) {
+ this.alias(model.getAlias());
+ }
if (model.wasPropertyExplicitlySet("compartmentId")) {
this.compartmentId(model.getCompartmentId());
}
@@ -121,6 +144,20 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private final String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @return the value
+ **/
+ public String getAlias() {
+ return alias;
+ }
+
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that calls the API, inference will be served from pre trained model
**/
@@ -177,7 +214,8 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("BatchDetectLanguageEntitiesDetails(");
sb.append("super=").append(super.toString());
- sb.append("compartmentId=").append(String.valueOf(this.compartmentId));
+ sb.append("alias=").append(String.valueOf(this.alias));
+ sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
sb.append(", endpointId=").append(String.valueOf(this.endpointId));
sb.append(", documents=").append(String.valueOf(this.documents));
sb.append(")");
@@ -194,7 +232,8 @@ public boolean equals(Object o) {
}
BatchDetectLanguageEntitiesDetails other = (BatchDetectLanguageEntitiesDetails) o;
- return java.util.Objects.equals(this.compartmentId, other.compartmentId)
+ return java.util.Objects.equals(this.alias, other.alias)
+ && java.util.Objects.equals(this.compartmentId, other.compartmentId)
&& java.util.Objects.equals(this.endpointId, other.endpointId)
&& java.util.Objects.equals(this.documents, other.documents)
&& super.equals(other);
@@ -204,6 +243,7 @@ public boolean equals(Object o) {
public int hashCode() {
final int PRIME = 59;
int result = 1;
+ result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode());
result =
(result * PRIME)
+ (this.compartmentId == null ? 43 : this.compartmentId.hashCode());
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageKeyPhrasesDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageKeyPhrasesDetails.java
index a55b8a2dc1c..84f74273231 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageKeyPhrasesDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageKeyPhrasesDetails.java
@@ -22,10 +22,14 @@
public final class BatchDetectLanguageKeyPhrasesDetails
extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
@Deprecated
- @java.beans.ConstructorProperties({"endpointId", "compartmentId", "documents"})
+ @java.beans.ConstructorProperties({"alias", "endpointId", "compartmentId", "documents"})
public BatchDetectLanguageKeyPhrasesDetails(
- String endpointId, String compartmentId, java.util.List documents) {
+ String alias,
+ String endpointId,
+ String compartmentId,
+ java.util.List documents) {
super();
+ this.alias = alias;
this.endpointId = endpointId;
this.compartmentId = compartmentId;
this.documents = documents;
@@ -33,6 +37,22 @@ public BatchDetectLanguageKeyPhrasesDetails(
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @param alias the value to set
+ * @return this builder
+ **/
+ public Builder alias(String alias) {
+ this.alias = alias;
+ this.__explicitlySet__.add("alias");
+ return this;
+ }
/**
* The endpoint which have to be used for inferencing. If endpointId and compartmentId is provided, then inference will be served from custom model which is mapped to this Endpoint.
**/
@@ -88,7 +108,7 @@ public Builder documents(java.util.List documents) {
public BatchDetectLanguageKeyPhrasesDetails build() {
BatchDetectLanguageKeyPhrasesDetails model =
new BatchDetectLanguageKeyPhrasesDetails(
- this.endpointId, this.compartmentId, this.documents);
+ this.alias, this.endpointId, this.compartmentId, this.documents);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -97,6 +117,9 @@ public BatchDetectLanguageKeyPhrasesDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(BatchDetectLanguageKeyPhrasesDetails model) {
+ if (model.wasPropertyExplicitlySet("alias")) {
+ this.alias(model.getAlias());
+ }
if (model.wasPropertyExplicitlySet("endpointId")) {
this.endpointId(model.getEndpointId());
}
@@ -121,6 +144,20 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private final String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @return the value
+ **/
+ public String getAlias() {
+ return alias;
+ }
+
/**
* The endpoint which have to be used for inferencing. If endpointId and compartmentId is provided, then inference will be served from custom model which is mapped to this Endpoint.
**/
@@ -177,7 +214,8 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("BatchDetectLanguageKeyPhrasesDetails(");
sb.append("super=").append(super.toString());
- sb.append("endpointId=").append(String.valueOf(this.endpointId));
+ sb.append("alias=").append(String.valueOf(this.alias));
+ sb.append(", endpointId=").append(String.valueOf(this.endpointId));
sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
sb.append(", documents=").append(String.valueOf(this.documents));
sb.append(")");
@@ -194,7 +232,8 @@ public boolean equals(Object o) {
}
BatchDetectLanguageKeyPhrasesDetails other = (BatchDetectLanguageKeyPhrasesDetails) o;
- return java.util.Objects.equals(this.endpointId, other.endpointId)
+ return java.util.Objects.equals(this.alias, other.alias)
+ && java.util.Objects.equals(this.endpointId, other.endpointId)
&& java.util.Objects.equals(this.compartmentId, other.compartmentId)
&& java.util.Objects.equals(this.documents, other.documents)
&& super.equals(other);
@@ -204,6 +243,7 @@ public boolean equals(Object o) {
public int hashCode() {
final int PRIME = 59;
int result = 1;
+ result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode());
result = (result * PRIME) + (this.endpointId == null ? 43 : this.endpointId.hashCode());
result =
(result * PRIME)
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguagePiiEntitiesDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguagePiiEntitiesDetails.java
index e7e0e30b9ff..56fbeac6a1a 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguagePiiEntitiesDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguagePiiEntitiesDetails.java
@@ -23,6 +23,7 @@ public final class BatchDetectLanguagePiiEntitiesDetails
extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
@Deprecated
@java.beans.ConstructorProperties({
+ "alias",
"endpointId",
"compartmentId",
"documents",
@@ -30,12 +31,14 @@ public final class BatchDetectLanguagePiiEntitiesDetails
"profile"
})
public BatchDetectLanguagePiiEntitiesDetails(
+ String alias,
String endpointId,
String compartmentId,
java.util.List documents,
java.util.Map masking,
Profile profile) {
super();
+ this.alias = alias;
this.endpointId = endpointId;
this.compartmentId = compartmentId;
this.documents = documents;
@@ -45,6 +48,22 @@ public BatchDetectLanguagePiiEntitiesDetails(
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @param alias the value to set
+ * @return this builder
+ **/
+ public Builder alias(String alias) {
+ this.alias = alias;
+ this.__explicitlySet__.add("alias");
+ return this;
+ }
/**
* The endpoint which have to be used for inferencing. If endpointId and compartmentId is provided, then inference will be served from custom model which is mapped to this Endpoint.
**/
@@ -125,6 +144,7 @@ public Builder profile(Profile profile) {
public BatchDetectLanguagePiiEntitiesDetails build() {
BatchDetectLanguagePiiEntitiesDetails model =
new BatchDetectLanguagePiiEntitiesDetails(
+ this.alias,
this.endpointId,
this.compartmentId,
this.documents,
@@ -138,6 +158,9 @@ public BatchDetectLanguagePiiEntitiesDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(BatchDetectLanguagePiiEntitiesDetails model) {
+ if (model.wasPropertyExplicitlySet("alias")) {
+ this.alias(model.getAlias());
+ }
if (model.wasPropertyExplicitlySet("endpointId")) {
this.endpointId(model.getEndpointId());
}
@@ -168,6 +191,20 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private final String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @return the value
+ **/
+ public String getAlias() {
+ return alias;
+ }
+
/**
* The endpoint which have to be used for inferencing. If endpointId and compartmentId is provided, then inference will be served from custom model which is mapped to this Endpoint.
**/
@@ -245,7 +282,8 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("BatchDetectLanguagePiiEntitiesDetails(");
sb.append("super=").append(super.toString());
- sb.append("endpointId=").append(String.valueOf(this.endpointId));
+ sb.append("alias=").append(String.valueOf(this.alias));
+ sb.append(", endpointId=").append(String.valueOf(this.endpointId));
sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
sb.append(", documents=").append(String.valueOf(this.documents));
sb.append(", masking=").append(String.valueOf(this.masking));
@@ -264,7 +302,8 @@ public boolean equals(Object o) {
}
BatchDetectLanguagePiiEntitiesDetails other = (BatchDetectLanguagePiiEntitiesDetails) o;
- return java.util.Objects.equals(this.endpointId, other.endpointId)
+ return java.util.Objects.equals(this.alias, other.alias)
+ && java.util.Objects.equals(this.endpointId, other.endpointId)
&& java.util.Objects.equals(this.compartmentId, other.compartmentId)
&& java.util.Objects.equals(this.documents, other.documents)
&& java.util.Objects.equals(this.masking, other.masking)
@@ -276,6 +315,7 @@ public boolean equals(Object o) {
public int hashCode() {
final int PRIME = 59;
int result = 1;
+ result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode());
result = (result * PRIME) + (this.endpointId == null ? 43 : this.endpointId.hashCode());
result =
(result * PRIME)
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageSentimentsDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageSentimentsDetails.java
index 75abf07a3f5..09f6650b8b8 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageSentimentsDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageSentimentsDetails.java
@@ -22,10 +22,14 @@
public final class BatchDetectLanguageSentimentsDetails
extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
@Deprecated
- @java.beans.ConstructorProperties({"endpointId", "compartmentId", "documents"})
+ @java.beans.ConstructorProperties({"alias", "endpointId", "compartmentId", "documents"})
public BatchDetectLanguageSentimentsDetails(
- String endpointId, String compartmentId, java.util.List documents) {
+ String alias,
+ String endpointId,
+ String compartmentId,
+ java.util.List documents) {
super();
+ this.alias = alias;
this.endpointId = endpointId;
this.compartmentId = compartmentId;
this.documents = documents;
@@ -33,6 +37,22 @@ public BatchDetectLanguageSentimentsDetails(
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @param alias the value to set
+ * @return this builder
+ **/
+ public Builder alias(String alias) {
+ this.alias = alias;
+ this.__explicitlySet__.add("alias");
+ return this;
+ }
/**
* The endpoint which have to be used for inferencing. If endpointId and compartmentId is provided, then inference will be served from custom model which is mapped to this Endpoint.
**/
@@ -88,7 +108,7 @@ public Builder documents(java.util.List documents) {
public BatchDetectLanguageSentimentsDetails build() {
BatchDetectLanguageSentimentsDetails model =
new BatchDetectLanguageSentimentsDetails(
- this.endpointId, this.compartmentId, this.documents);
+ this.alias, this.endpointId, this.compartmentId, this.documents);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -97,6 +117,9 @@ public BatchDetectLanguageSentimentsDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(BatchDetectLanguageSentimentsDetails model) {
+ if (model.wasPropertyExplicitlySet("alias")) {
+ this.alias(model.getAlias());
+ }
if (model.wasPropertyExplicitlySet("endpointId")) {
this.endpointId(model.getEndpointId());
}
@@ -121,6 +144,20 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private final String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @return the value
+ **/
+ public String getAlias() {
+ return alias;
+ }
+
/**
* The endpoint which have to be used for inferencing. If endpointId and compartmentId is provided, then inference will be served from custom model which is mapped to this Endpoint.
**/
@@ -177,7 +214,8 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("BatchDetectLanguageSentimentsDetails(");
sb.append("super=").append(super.toString());
- sb.append("endpointId=").append(String.valueOf(this.endpointId));
+ sb.append("alias=").append(String.valueOf(this.alias));
+ sb.append(", endpointId=").append(String.valueOf(this.endpointId));
sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
sb.append(", documents=").append(String.valueOf(this.documents));
sb.append(")");
@@ -194,7 +232,8 @@ public boolean equals(Object o) {
}
BatchDetectLanguageSentimentsDetails other = (BatchDetectLanguageSentimentsDetails) o;
- return java.util.Objects.equals(this.endpointId, other.endpointId)
+ return java.util.Objects.equals(this.alias, other.alias)
+ && java.util.Objects.equals(this.endpointId, other.endpointId)
&& java.util.Objects.equals(this.compartmentId, other.compartmentId)
&& java.util.Objects.equals(this.documents, other.documents)
&& super.equals(other);
@@ -204,6 +243,7 @@ public boolean equals(Object o) {
public int hashCode() {
final int PRIME = 59;
int result = 1;
+ result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode());
result = (result * PRIME) + (this.endpointId == null ? 43 : this.endpointId.hashCode());
result =
(result * PRIME)
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageTextClassificationDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageTextClassificationDetails.java
index 4bc2be8b689..2ff63a9bd21 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageTextClassificationDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchDetectLanguageTextClassificationDetails.java
@@ -22,10 +22,14 @@
public final class BatchDetectLanguageTextClassificationDetails
extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
@Deprecated
- @java.beans.ConstructorProperties({"compartmentId", "endpointId", "documents"})
+ @java.beans.ConstructorProperties({"alias", "compartmentId", "endpointId", "documents"})
public BatchDetectLanguageTextClassificationDetails(
- String compartmentId, String endpointId, java.util.List documents) {
+ String alias,
+ String compartmentId,
+ String endpointId,
+ java.util.List documents) {
super();
+ this.alias = alias;
this.compartmentId = compartmentId;
this.endpointId = endpointId;
this.documents = documents;
@@ -33,6 +37,22 @@ public BatchDetectLanguageTextClassificationDetails(
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @param alias the value to set
+ * @return this builder
+ **/
+ public Builder alias(String alias) {
+ this.alias = alias;
+ this.__explicitlySet__.add("alias");
+ return this;
+ }
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that calls the API, inference will be served from pre trained model
**/
@@ -88,7 +108,7 @@ public Builder documents(java.util.List documents) {
public BatchDetectLanguageTextClassificationDetails build() {
BatchDetectLanguageTextClassificationDetails model =
new BatchDetectLanguageTextClassificationDetails(
- this.compartmentId, this.endpointId, this.documents);
+ this.alias, this.compartmentId, this.endpointId, this.documents);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -97,6 +117,9 @@ public BatchDetectLanguageTextClassificationDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(BatchDetectLanguageTextClassificationDetails model) {
+ if (model.wasPropertyExplicitlySet("alias")) {
+ this.alias(model.getAlias());
+ }
if (model.wasPropertyExplicitlySet("compartmentId")) {
this.compartmentId(model.getCompartmentId());
}
@@ -121,6 +144,20 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private final String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @return the value
+ **/
+ public String getAlias() {
+ return alias;
+ }
+
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that calls the API, inference will be served from pre trained model
**/
@@ -177,7 +214,8 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("BatchDetectLanguageTextClassificationDetails(");
sb.append("super=").append(super.toString());
- sb.append("compartmentId=").append(String.valueOf(this.compartmentId));
+ sb.append("alias=").append(String.valueOf(this.alias));
+ sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
sb.append(", endpointId=").append(String.valueOf(this.endpointId));
sb.append(", documents=").append(String.valueOf(this.documents));
sb.append(")");
@@ -195,7 +233,8 @@ public boolean equals(Object o) {
BatchDetectLanguageTextClassificationDetails other =
(BatchDetectLanguageTextClassificationDetails) o;
- return java.util.Objects.equals(this.compartmentId, other.compartmentId)
+ return java.util.Objects.equals(this.alias, other.alias)
+ && java.util.Objects.equals(this.compartmentId, other.compartmentId)
&& java.util.Objects.equals(this.endpointId, other.endpointId)
&& java.util.Objects.equals(this.documents, other.documents)
&& super.equals(other);
@@ -205,6 +244,7 @@ public boolean equals(Object o) {
public int hashCode() {
final int PRIME = 59;
int result = 1;
+ result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode());
result =
(result * PRIME)
+ (this.compartmentId == null ? 43 : this.compartmentId.hashCode());
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchLanguageTranslationDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchLanguageTranslationDetails.java
index 6b5c8a76efa..4975ed57112 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchLanguageTranslationDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/BatchLanguageTranslationDetails.java
@@ -22,12 +22,25 @@
public final class BatchLanguageTranslationDetails
extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
@Deprecated
- @java.beans.ConstructorProperties({"compartmentId", "targetLanguageCode", "documents"})
+ @java.beans.ConstructorProperties({
+ "alias",
+ "endpointId",
+ "noTranslate",
+ "compartmentId",
+ "targetLanguageCode",
+ "documents"
+ })
public BatchLanguageTranslationDetails(
+ String alias,
+ String endpointId,
+ java.util.List noTranslate,
String compartmentId,
String targetLanguageCode,
java.util.List documents) {
super();
+ this.alias = alias;
+ this.endpointId = endpointId;
+ this.noTranslate = noTranslate;
this.compartmentId = compartmentId;
this.targetLanguageCode = targetLanguageCode;
this.documents = documents;
@@ -35,6 +48,54 @@ public BatchLanguageTranslationDetails(
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ /**
+ * Unique name to identify an endpoint to be used for inferencing
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private String alias;
+
+ /**
+ * Unique name to identify an endpoint to be used for inferencing
+ * @param alias the value to set
+ * @return this builder
+ **/
+ public Builder alias(String alias) {
+ this.alias = alias;
+ this.__explicitlySet__.add("alias");
+ return this;
+ }
+ /**
+ * The endpoint that has to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("endpointId")
+ private String endpointId;
+
+ /**
+ * The endpoint that has to be used for inferencing.
+ * @param endpointId the value to set
+ * @return this builder
+ **/
+ public Builder endpointId(String endpointId) {
+ this.endpointId = endpointId;
+ this.__explicitlySet__.add("endpointId");
+ return this;
+ }
+ /**
+ * List of words not to be translated
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("noTranslate")
+ private java.util.List noTranslate;
+
+ /**
+ * List of words not to be translated
+ * @param noTranslate the value to set
+ * @return this builder
+ **/
+ public Builder noTranslate(java.util.List noTranslate) {
+ this.noTranslate = noTranslate;
+ this.__explicitlySet__.add("noTranslate");
+ return this;
+ }
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that calls the API, inference will be served from pre trained model
**/
@@ -154,7 +215,12 @@ public Builder documents(java.util.List documents) {
public BatchLanguageTranslationDetails build() {
BatchLanguageTranslationDetails model =
new BatchLanguageTranslationDetails(
- this.compartmentId, this.targetLanguageCode, this.documents);
+ this.alias,
+ this.endpointId,
+ this.noTranslate,
+ this.compartmentId,
+ this.targetLanguageCode,
+ this.documents);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -163,6 +229,15 @@ public BatchLanguageTranslationDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(BatchLanguageTranslationDetails model) {
+ if (model.wasPropertyExplicitlySet("alias")) {
+ this.alias(model.getAlias());
+ }
+ if (model.wasPropertyExplicitlySet("endpointId")) {
+ this.endpointId(model.getEndpointId());
+ }
+ if (model.wasPropertyExplicitlySet("noTranslate")) {
+ this.noTranslate(model.getNoTranslate());
+ }
if (model.wasPropertyExplicitlySet("compartmentId")) {
this.compartmentId(model.getCompartmentId());
}
@@ -187,6 +262,48 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
+ /**
+ * Unique name to identify an endpoint to be used for inferencing
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private final String alias;
+
+ /**
+ * Unique name to identify an endpoint to be used for inferencing
+ * @return the value
+ **/
+ public String getAlias() {
+ return alias;
+ }
+
+ /**
+ * The endpoint that has to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("endpointId")
+ private final String endpointId;
+
+ /**
+ * The endpoint that has to be used for inferencing.
+ * @return the value
+ **/
+ public String getEndpointId() {
+ return endpointId;
+ }
+
+ /**
+ * List of words not to be translated
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("noTranslate")
+ private final java.util.List noTranslate;
+
+ /**
+ * List of words not to be translated
+ * @return the value
+ **/
+ public java.util.List getNoTranslate() {
+ return noTranslate;
+ }
+
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that calls the API, inference will be served from pre trained model
**/
@@ -307,7 +424,10 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("BatchLanguageTranslationDetails(");
sb.append("super=").append(super.toString());
- sb.append("compartmentId=").append(String.valueOf(this.compartmentId));
+ sb.append("alias=").append(String.valueOf(this.alias));
+ sb.append(", endpointId=").append(String.valueOf(this.endpointId));
+ sb.append(", noTranslate=").append(String.valueOf(this.noTranslate));
+ sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
sb.append(", targetLanguageCode=").append(String.valueOf(this.targetLanguageCode));
sb.append(", documents=").append(String.valueOf(this.documents));
sb.append(")");
@@ -324,7 +444,10 @@ public boolean equals(Object o) {
}
BatchLanguageTranslationDetails other = (BatchLanguageTranslationDetails) o;
- return java.util.Objects.equals(this.compartmentId, other.compartmentId)
+ return java.util.Objects.equals(this.alias, other.alias)
+ && java.util.Objects.equals(this.endpointId, other.endpointId)
+ && java.util.Objects.equals(this.noTranslate, other.noTranslate)
+ && java.util.Objects.equals(this.compartmentId, other.compartmentId)
&& java.util.Objects.equals(this.targetLanguageCode, other.targetLanguageCode)
&& java.util.Objects.equals(this.documents, other.documents)
&& super.equals(other);
@@ -334,6 +457,9 @@ public boolean equals(Object o) {
public int hashCode() {
final int PRIME = 59;
int result = 1;
+ result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode());
+ result = (result * PRIME) + (this.endpointId == null ? 43 : this.endpointId.hashCode());
+ result = (result * PRIME) + (this.noTranslate == null ? 43 : this.noTranslate.hashCode());
result =
(result * PRIME)
+ (this.compartmentId == null ? 43 : this.compartmentId.hashCode());
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/CreateEndpointDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/CreateEndpointDetails.java
index 16aef34e5b4..a62c31cc2d8 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/CreateEndpointDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/CreateEndpointDetails.java
@@ -24,6 +24,8 @@ public final class CreateEndpointDetails
@Deprecated
@java.beans.ConstructorProperties({
"displayName",
+ "computeType",
+ "alias",
"description",
"compartmentId",
"modelId",
@@ -33,6 +35,8 @@ public final class CreateEndpointDetails
})
public CreateEndpointDetails(
String displayName,
+ ComputeType computeType,
+ String alias,
String description,
String compartmentId,
String modelId,
@@ -41,6 +45,8 @@ public CreateEndpointDetails(
java.util.Map> definedTags) {
super();
this.displayName = displayName;
+ this.computeType = computeType;
+ this.alias = alias;
this.description = description;
this.compartmentId = compartmentId;
this.modelId = modelId;
@@ -67,6 +73,38 @@ public Builder displayName(String displayName) {
this.__explicitlySet__.add("displayName");
return this;
}
+ /**
+ * Compute infra type for endpoint.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("computeType")
+ private ComputeType computeType;
+
+ /**
+ * Compute infra type for endpoint.
+ * @param computeType the value to set
+ * @return this builder
+ **/
+ public Builder computeType(ComputeType computeType) {
+ this.computeType = computeType;
+ this.__explicitlySet__.add("computeType");
+ return this;
+ }
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @param alias the value to set
+ * @return this builder
+ **/
+ public Builder alias(String alias) {
+ this.alias = alias;
+ this.__explicitlySet__.add("alias");
+ return this;
+ }
/**
* A short description of the an endpoint.
**/
@@ -180,6 +218,8 @@ public CreateEndpointDetails build() {
CreateEndpointDetails model =
new CreateEndpointDetails(
this.displayName,
+ this.computeType,
+ this.alias,
this.description,
this.compartmentId,
this.modelId,
@@ -197,6 +237,12 @@ public Builder copy(CreateEndpointDetails model) {
if (model.wasPropertyExplicitlySet("displayName")) {
this.displayName(model.getDisplayName());
}
+ if (model.wasPropertyExplicitlySet("computeType")) {
+ this.computeType(model.getComputeType());
+ }
+ if (model.wasPropertyExplicitlySet("alias")) {
+ this.alias(model.getAlias());
+ }
if (model.wasPropertyExplicitlySet("description")) {
this.description(model.getDescription());
}
@@ -244,6 +290,69 @@ public String getDisplayName() {
return displayName;
}
+ /**
+ * Compute infra type for endpoint.
+ **/
+ public enum ComputeType {
+ Cpu("CPU"),
+ Gpu("GPU"),
+ ;
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (ComputeType v : ComputeType.values()) {
+ map.put(v.getValue(), v);
+ }
+ }
+
+ ComputeType(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static ComputeType create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ throw new IllegalArgumentException("Invalid ComputeType: " + key);
+ }
+ };
+ /**
+ * Compute infra type for endpoint.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("computeType")
+ private final ComputeType computeType;
+
+ /**
+ * Compute infra type for endpoint.
+ * @return the value
+ **/
+ public ComputeType getComputeType() {
+ return computeType;
+ }
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private final String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @return the value
+ **/
+ public String getAlias() {
+ return alias;
+ }
+
/**
* A short description of the an endpoint.
**/
@@ -351,6 +460,8 @@ public String toString(boolean includeByteArrayContents) {
sb.append("CreateEndpointDetails(");
sb.append("super=").append(super.toString());
sb.append("displayName=").append(String.valueOf(this.displayName));
+ sb.append(", computeType=").append(String.valueOf(this.computeType));
+ sb.append(", alias=").append(String.valueOf(this.alias));
sb.append(", description=").append(String.valueOf(this.description));
sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
sb.append(", modelId=").append(String.valueOf(this.modelId));
@@ -372,6 +483,8 @@ public boolean equals(Object o) {
CreateEndpointDetails other = (CreateEndpointDetails) o;
return java.util.Objects.equals(this.displayName, other.displayName)
+ && java.util.Objects.equals(this.computeType, other.computeType)
+ && java.util.Objects.equals(this.alias, other.alias)
&& java.util.Objects.equals(this.description, other.description)
&& java.util.Objects.equals(this.compartmentId, other.compartmentId)
&& java.util.Objects.equals(this.modelId, other.modelId)
@@ -386,6 +499,8 @@ public int hashCode() {
final int PRIME = 59;
int result = 1;
result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode());
+ result = (result * PRIME) + (this.computeType == null ? 43 : this.computeType.hashCode());
+ result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode());
result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode());
result =
(result * PRIME)
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Endpoint.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Endpoint.java
index c1586efaef9..ff80a3f57e6 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Endpoint.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/Endpoint.java
@@ -21,6 +21,8 @@ public final class Endpoint extends com.oracle.bmc.http.internal.ExplicitlySetBm
@Deprecated
@java.beans.ConstructorProperties({
"id",
+ "alias",
+ "computeType",
"displayName",
"compartmentId",
"projectId",
@@ -37,6 +39,8 @@ public final class Endpoint extends com.oracle.bmc.http.internal.ExplicitlySetBm
})
public Endpoint(
String id,
+ String alias,
+ ComputeType computeType,
String displayName,
String compartmentId,
String projectId,
@@ -52,6 +56,8 @@ public Endpoint(
java.util.Map> systemTags) {
super();
this.id = id;
+ this.alias = alias;
+ this.computeType = computeType;
this.displayName = displayName;
this.compartmentId = compartmentId;
this.projectId = projectId;
@@ -85,6 +91,38 @@ public Builder id(String id) {
this.__explicitlySet__.add("id");
return this;
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @param alias the value to set
+ * @return this builder
+ **/
+ public Builder alias(String alias) {
+ this.alias = alias;
+ this.__explicitlySet__.add("alias");
+ return this;
+ }
+ /**
+ * Compute infra type for endpoint.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("computeType")
+ private ComputeType computeType;
+
+ /**
+ * Compute infra type for endpoint.
+ * @param computeType the value to set
+ * @return this builder
+ **/
+ public Builder computeType(ComputeType computeType) {
+ this.computeType = computeType;
+ this.__explicitlySet__.add("computeType");
+ return this;
+ }
/**
* A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
**/
@@ -314,6 +352,8 @@ public Endpoint build() {
Endpoint model =
new Endpoint(
this.id,
+ this.alias,
+ this.computeType,
this.displayName,
this.compartmentId,
this.projectId,
@@ -338,6 +378,12 @@ public Builder copy(Endpoint model) {
if (model.wasPropertyExplicitlySet("id")) {
this.id(model.getId());
}
+ if (model.wasPropertyExplicitlySet("alias")) {
+ this.alias(model.getAlias());
+ }
+ if (model.wasPropertyExplicitlySet("computeType")) {
+ this.computeType(model.getComputeType());
+ }
if (model.wasPropertyExplicitlySet("displayName")) {
this.displayName(model.getDisplayName());
}
@@ -406,6 +452,82 @@ public String getId() {
return id;
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private final String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @return the value
+ **/
+ public String getAlias() {
+ return alias;
+ }
+
+ /**
+ * Compute infra type for endpoint.
+ **/
+ public enum ComputeType {
+ Cpu("CPU"),
+ Gpu("GPU"),
+
+ /**
+ * This value is used if a service returns a value for this enum that is not recognized by this
+ * version of the SDK.
+ */
+ UnknownEnumValue(null);
+
+ private static final org.slf4j.Logger LOG =
+ org.slf4j.LoggerFactory.getLogger(ComputeType.class);
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (ComputeType v : ComputeType.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
+
+ ComputeType(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static ComputeType create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'ComputeType', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
+ }
+ };
+ /**
+ * Compute infra type for endpoint.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("computeType")
+ private final ComputeType computeType;
+
+ /**
+ * Compute infra type for endpoint.
+ * @return the value
+ **/
+ public ComputeType getComputeType() {
+ return computeType;
+ }
+
/**
* A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
**/
@@ -667,6 +789,8 @@ public String toString(boolean includeByteArrayContents) {
sb.append("Endpoint(");
sb.append("super=").append(super.toString());
sb.append("id=").append(String.valueOf(this.id));
+ sb.append(", alias=").append(String.valueOf(this.alias));
+ sb.append(", computeType=").append(String.valueOf(this.computeType));
sb.append(", displayName=").append(String.valueOf(this.displayName));
sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
sb.append(", projectId=").append(String.valueOf(this.projectId));
@@ -695,6 +819,8 @@ public boolean equals(Object o) {
Endpoint other = (Endpoint) o;
return java.util.Objects.equals(this.id, other.id)
+ && java.util.Objects.equals(this.alias, other.alias)
+ && java.util.Objects.equals(this.computeType, other.computeType)
&& java.util.Objects.equals(this.displayName, other.displayName)
&& java.util.Objects.equals(this.compartmentId, other.compartmentId)
&& java.util.Objects.equals(this.projectId, other.projectId)
@@ -716,6 +842,8 @@ public int hashCode() {
final int PRIME = 59;
int result = 1;
result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode());
+ result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode());
+ result = (result * PRIME) + (this.computeType == null ? 43 : this.computeType.hashCode());
result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode());
result =
(result * PRIME)
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/EndpointSummary.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/EndpointSummary.java
index aefc0eae2eb..c7a11c750b2 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/EndpointSummary.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/EndpointSummary.java
@@ -21,6 +21,8 @@ public final class EndpointSummary extends com.oracle.bmc.http.internal.Explicit
@Deprecated
@java.beans.ConstructorProperties({
"id",
+ "alias",
+ "computeType",
"displayName",
"compartmentId",
"projectId",
@@ -36,6 +38,8 @@ public final class EndpointSummary extends com.oracle.bmc.http.internal.Explicit
})
public EndpointSummary(
String id,
+ String alias,
+ ComputeType computeType,
String displayName,
String compartmentId,
String projectId,
@@ -50,6 +54,8 @@ public EndpointSummary(
java.util.Map> systemTags) {
super();
this.id = id;
+ this.alias = alias;
+ this.computeType = computeType;
this.displayName = displayName;
this.compartmentId = compartmentId;
this.projectId = projectId;
@@ -82,6 +88,38 @@ public Builder id(String id) {
this.__explicitlySet__.add("id");
return this;
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @param alias the value to set
+ * @return this builder
+ **/
+ public Builder alias(String alias) {
+ this.alias = alias;
+ this.__explicitlySet__.add("alias");
+ return this;
+ }
+ /**
+ * Compute infra type for endpoint.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("computeType")
+ private ComputeType computeType;
+
+ /**
+ * Compute infra type for endpoint.
+ * @param computeType the value to set
+ * @return this builder
+ **/
+ public Builder computeType(ComputeType computeType) {
+ this.computeType = computeType;
+ this.__explicitlySet__.add("computeType");
+ return this;
+ }
/**
* A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
**/
@@ -295,6 +333,8 @@ public EndpointSummary build() {
EndpointSummary model =
new EndpointSummary(
this.id,
+ this.alias,
+ this.computeType,
this.displayName,
this.compartmentId,
this.projectId,
@@ -318,6 +358,12 @@ public Builder copy(EndpointSummary model) {
if (model.wasPropertyExplicitlySet("id")) {
this.id(model.getId());
}
+ if (model.wasPropertyExplicitlySet("alias")) {
+ this.alias(model.getAlias());
+ }
+ if (model.wasPropertyExplicitlySet("computeType")) {
+ this.computeType(model.getComputeType());
+ }
if (model.wasPropertyExplicitlySet("displayName")) {
this.displayName(model.getDisplayName());
}
@@ -383,6 +429,82 @@ public String getId() {
return id;
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private final String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @return the value
+ **/
+ public String getAlias() {
+ return alias;
+ }
+
+ /**
+ * Compute infra type for endpoint.
+ **/
+ public enum ComputeType {
+ Cpu("CPU"),
+ Gpu("GPU"),
+
+ /**
+ * This value is used if a service returns a value for this enum that is not recognized by this
+ * version of the SDK.
+ */
+ UnknownEnumValue(null);
+
+ private static final org.slf4j.Logger LOG =
+ org.slf4j.LoggerFactory.getLogger(ComputeType.class);
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (ComputeType v : ComputeType.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
+
+ ComputeType(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static ComputeType create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'ComputeType', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
+ }
+ };
+ /**
+ * Compute infra type for endpoint.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("computeType")
+ private final ComputeType computeType;
+
+ /**
+ * Compute infra type for endpoint.
+ * @return the value
+ **/
+ public ComputeType getComputeType() {
+ return computeType;
+ }
+
/**
* A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
**/
@@ -578,6 +700,8 @@ public String toString(boolean includeByteArrayContents) {
sb.append("EndpointSummary(");
sb.append("super=").append(super.toString());
sb.append("id=").append(String.valueOf(this.id));
+ sb.append(", alias=").append(String.valueOf(this.alias));
+ sb.append(", computeType=").append(String.valueOf(this.computeType));
sb.append(", displayName=").append(String.valueOf(this.displayName));
sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
sb.append(", projectId=").append(String.valueOf(this.projectId));
@@ -605,6 +729,8 @@ public boolean equals(Object o) {
EndpointSummary other = (EndpointSummary) o;
return java.util.Objects.equals(this.id, other.id)
+ && java.util.Objects.equals(this.alias, other.alias)
+ && java.util.Objects.equals(this.computeType, other.computeType)
&& java.util.Objects.equals(this.displayName, other.displayName)
&& java.util.Objects.equals(this.compartmentId, other.compartmentId)
&& java.util.Objects.equals(this.projectId, other.projectId)
@@ -625,6 +751,8 @@ public int hashCode() {
final int PRIME = 59;
int result = 1;
result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode());
+ result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode());
+ result = (result * PRIME) + (this.computeType == null ? 43 : this.computeType.hashCode());
result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode());
result =
(result * PRIME)
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/HealthNluModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/HealthNluModelDetails.java
new file mode 100644
index 00000000000..9a08b53f0db
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/HealthNluModelDetails.java
@@ -0,0 +1,157 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Possible health NLU model information.
+ *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
+ * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in
+ * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called
+ * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take
+ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__}
+ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}).
+ **/
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = HealthNluModelDetails.Builder.class
+)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "modelType"
+)
+@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
+public final class HealthNluModelDetails extends ModelDetails {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("languageCode")
+ private String languageCode;
+
+ public Builder languageCode(String languageCode) {
+ this.languageCode = languageCode;
+ this.__explicitlySet__.add("languageCode");
+ return this;
+ }
+ /**
+ * Optional pre trained model version. If nothing specified latest pre trained model will be used.
+ * Supported versions can be found at /modelTypes/{modelType}
+ *
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional pre trained model version. If nothing specified latest pre trained model will be used.
+ * Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ **/
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public HealthNluModelDetails build() {
+ HealthNluModelDetails model =
+ new HealthNluModelDetails(this.languageCode, this.version);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(HealthNluModelDetails model) {
+ if (model.wasPropertyExplicitlySet("languageCode")) {
+ this.languageCode(model.getLanguageCode());
+ }
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
+ return this;
+ }
+ }
+
+ /**
+ * Create a new builder.
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public HealthNluModelDetails(String languageCode, String version) {
+ super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional pre trained model version. If nothing specified latest pre trained model will be used.
+ * Supported versions can be found at /modelTypes/{modelType}
+ *
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional pre trained model version. If nothing specified latest pre trained model will be used.
+ * Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ **/
+ public String getVersion() {
+ return version;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("HealthNluModelDetails(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof HealthNluModelDetails)) {
+ return false;
+ }
+
+ HealthNluModelDetails other = (HealthNluModelDetails) o;
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/HierarchicalEntity.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/HierarchicalEntity.java
index 03ecfd21257..e7f75e2cbb8 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/HierarchicalEntity.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/HierarchicalEntity.java
@@ -21,8 +21,17 @@
@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
public final class HierarchicalEntity extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
@Deprecated
- @java.beans.ConstructorProperties({"offset", "length", "text", "type", "subType", "score"})
+ @java.beans.ConstructorProperties({
+ "metaInfo",
+ "offset",
+ "length",
+ "text",
+ "type",
+ "subType",
+ "score"
+ })
public HierarchicalEntity(
+ MetaInfo metaInfo,
Integer offset,
Integer length,
String text,
@@ -30,6 +39,7 @@ public HierarchicalEntity(
String subType,
Double score) {
super();
+ this.metaInfo = metaInfo;
this.offset = offset;
this.length = length;
this.text = text;
@@ -40,6 +50,15 @@ public HierarchicalEntity(
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+
+ @com.fasterxml.jackson.annotation.JsonProperty("metaInfo")
+ private MetaInfo metaInfo;
+
+ public Builder metaInfo(MetaInfo metaInfo) {
+ this.metaInfo = metaInfo;
+ this.__explicitlySet__.add("metaInfo");
+ return this;
+ }
/**
* The number of Unicode code points preceding this entity in the submitted text.
**/
@@ -143,6 +162,7 @@ public Builder score(Double score) {
public HierarchicalEntity build() {
HierarchicalEntity model =
new HierarchicalEntity(
+ this.metaInfo,
this.offset,
this.length,
this.text,
@@ -157,6 +177,9 @@ public HierarchicalEntity build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(HierarchicalEntity model) {
+ if (model.wasPropertyExplicitlySet("metaInfo")) {
+ this.metaInfo(model.getMetaInfo());
+ }
if (model.wasPropertyExplicitlySet("offset")) {
this.offset(model.getOffset());
}
@@ -190,6 +213,13 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
+ @com.fasterxml.jackson.annotation.JsonProperty("metaInfo")
+ private final MetaInfo metaInfo;
+
+ public MetaInfo getMetaInfo() {
+ return metaInfo;
+ }
+
/**
* The number of Unicode code points preceding this entity in the submitted text.
**/
@@ -288,7 +318,8 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("HierarchicalEntity(");
sb.append("super=").append(super.toString());
- sb.append("offset=").append(String.valueOf(this.offset));
+ sb.append("metaInfo=").append(String.valueOf(this.metaInfo));
+ sb.append(", offset=").append(String.valueOf(this.offset));
sb.append(", length=").append(String.valueOf(this.length));
sb.append(", text=").append(String.valueOf(this.text));
sb.append(", type=").append(String.valueOf(this.type));
@@ -308,7 +339,8 @@ public boolean equals(Object o) {
}
HierarchicalEntity other = (HierarchicalEntity) o;
- return java.util.Objects.equals(this.offset, other.offset)
+ return java.util.Objects.equals(this.metaInfo, other.metaInfo)
+ && java.util.Objects.equals(this.offset, other.offset)
&& java.util.Objects.equals(this.length, other.length)
&& java.util.Objects.equals(this.text, other.text)
&& java.util.Objects.equals(this.type, other.type)
@@ -321,6 +353,7 @@ public boolean equals(Object o) {
public int hashCode() {
final int PRIME = 59;
int result = 1;
+ result = (result * PRIME) + (this.metaInfo == null ? 43 : this.metaInfo.hashCode());
result = (result * PRIME) + (this.offset == null ? 43 : this.offset.hashCode());
result = (result * PRIME) + (this.length == null ? 43 : this.length.hashCode());
result = (result * PRIME) + (this.text == null ? 43 : this.text.hashCode());
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/MetaInfo.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/MetaInfo.java
new file mode 100644
index 00000000000..b7ba8855c9f
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/MetaInfo.java
@@ -0,0 +1,282 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * MetaInfo of entity detected.
+ *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
+ * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in
+ * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called
+ * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take
+ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__}
+ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}).
+ **/
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MetaInfo.Builder.class)
+@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
+public final class MetaInfo extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({"offset", "length", "text", "subType", "score"})
+ public MetaInfo(Integer offset, Integer length, String text, String subType, Double score) {
+ super();
+ this.offset = offset;
+ this.length = length;
+ this.text = text;
+ this.subType = subType;
+ this.score = score;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /**
+ * The number of Unicode code points preceding this entity in the submitted text.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("offset")
+ private Integer offset;
+
+ /**
+ * The number of Unicode code points preceding this entity in the submitted text.
+ * @param offset the value to set
+ * @return this builder
+ **/
+ public Builder offset(Integer offset) {
+ this.offset = offset;
+ this.__explicitlySet__.add("offset");
+ return this;
+ }
+ /**
+ * Length of entity text.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("length")
+ private Integer length;
+
+ /**
+ * Length of entity text.
+ * @param length the value to set
+ * @return this builder
+ **/
+ public Builder length(Integer length) {
+ this.length = length;
+ this.__explicitlySet__.add("length");
+ return this;
+ }
+ /**
+ * Entity text like name of person, location, and so on.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("text")
+ private String text;
+
+ /**
+ * Entity text like name of person, location, and so on.
+ * @param text the value to set
+ * @return this builder
+ **/
+ public Builder text(String text) {
+ this.text = text;
+ this.__explicitlySet__.add("text");
+ return this;
+ }
+ /**
+ * Sub-type of entity text like GPE for LOCATION type.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("subType")
+ private String subType;
+
+ /**
+ * Sub-type of entity text like GPE for LOCATION type.
+ * @param subType the value to set
+ * @return this builder
+ **/
+ public Builder subType(String subType) {
+ this.subType = subType;
+ this.__explicitlySet__.add("subType");
+ return this;
+ }
+ /**
+ * Score or confidence for detected entity.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("score")
+ private Double score;
+
+ /**
+ * Score or confidence for detected entity.
+ * @param score the value to set
+ * @return this builder
+ **/
+ public Builder score(Double score) {
+ this.score = score;
+ this.__explicitlySet__.add("score");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public MetaInfo build() {
+ MetaInfo model =
+ new MetaInfo(this.offset, this.length, this.text, this.subType, this.score);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(MetaInfo model) {
+ if (model.wasPropertyExplicitlySet("offset")) {
+ this.offset(model.getOffset());
+ }
+ if (model.wasPropertyExplicitlySet("length")) {
+ this.length(model.getLength());
+ }
+ if (model.wasPropertyExplicitlySet("text")) {
+ this.text(model.getText());
+ }
+ if (model.wasPropertyExplicitlySet("subType")) {
+ this.subType(model.getSubType());
+ }
+ if (model.wasPropertyExplicitlySet("score")) {
+ this.score(model.getScore());
+ }
+ return this;
+ }
+ }
+
+ /**
+ * Create a new builder.
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /**
+ * The number of Unicode code points preceding this entity in the submitted text.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("offset")
+ private final Integer offset;
+
+ /**
+ * The number of Unicode code points preceding this entity in the submitted text.
+ * @return the value
+ **/
+ public Integer getOffset() {
+ return offset;
+ }
+
+ /**
+ * Length of entity text.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("length")
+ private final Integer length;
+
+ /**
+ * Length of entity text.
+ * @return the value
+ **/
+ public Integer getLength() {
+ return length;
+ }
+
+ /**
+ * Entity text like name of person, location, and so on.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("text")
+ private final String text;
+
+ /**
+ * Entity text like name of person, location, and so on.
+ * @return the value
+ **/
+ public String getText() {
+ return text;
+ }
+
+ /**
+ * Sub-type of entity text like GPE for LOCATION type.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("subType")
+ private final String subType;
+
+ /**
+ * Sub-type of entity text like GPE for LOCATION type.
+ * @return the value
+ **/
+ public String getSubType() {
+ return subType;
+ }
+
+ /**
+ * Score or confidence for detected entity.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("score")
+ private final Double score;
+
+ /**
+ * Score or confidence for detected entity.
+ * @return the value
+ **/
+ public Double getScore() {
+ return score;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("MetaInfo(");
+ sb.append("super=").append(super.toString());
+ sb.append("offset=").append(String.valueOf(this.offset));
+ sb.append(", length=").append(String.valueOf(this.length));
+ sb.append(", text=").append(String.valueOf(this.text));
+ sb.append(", subType=").append(String.valueOf(this.subType));
+ sb.append(", score=").append(String.valueOf(this.score));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof MetaInfo)) {
+ return false;
+ }
+
+ MetaInfo other = (MetaInfo) o;
+ return java.util.Objects.equals(this.offset, other.offset)
+ && java.util.Objects.equals(this.length, other.length)
+ && java.util.Objects.equals(this.text, other.text)
+ && java.util.Objects.equals(this.subType, other.subType)
+ && java.util.Objects.equals(this.score, other.score)
+ && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.offset == null ? 43 : this.offset.hashCode());
+ result = (result * PRIME) + (this.length == null ? 43 : this.length.hashCode());
+ result = (result * PRIME) + (this.text == null ? 43 : this.text.hashCode());
+ result = (result * PRIME) + (this.subType == null ? 43 : this.subType.hashCode());
+ result = (result * PRIME) + (this.score == null ? 43 : this.score.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelDetails.java
index db1bbf8949c..5af9cbdc65c 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/ModelDetails.java
@@ -26,6 +26,10 @@
value = PreTrainedKeyPhraseExtractionModelDetails.class,
name = "PRE_TRAINED_KEYPHRASE_EXTRACTION"
),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedTranslationModelDetails.class,
+ name = "PRE_TRAINED_TRANSLATION"
+ ),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = PreTrainedHealthNluModelDetails.class,
name = "PRE_TRAINED_HEALTH_NLU"
@@ -34,38 +38,42 @@
value = PreTrainedUniversalModel.class,
name = "PRE_TRAINED_UNIVERSAL"
),
- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
- value = NamedEntityRecognitionModelDetails.class,
- name = "NAMED_ENTITY_RECOGNITION"
- ),
- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
- value = PiiModelDetails.class,
- name = "PII"
- ),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = PreTrainedLanguageDetectionModelDetails.class,
name = "PRE_TRAINED_LANGUAGE_DETECTION"
),
- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
- value = PreTrainedNamedEntityRecognitionModelDetails.class,
- name = "PRE_TRAINED_NAMED_ENTITY_RECOGNITION"
- ),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = PreTrainedSentimentAnalysisModelDetails.class,
name = "PRE_TRAINED_SENTIMENT_ANALYSIS"
),
- @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
- value = PreTrainedTextClassificationModelDetails.class,
- name = "PRE_TRAINED_TEXT_CLASSIFICATION"
- ),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = TextClassificationModelDetails.class,
name = "TEXT_CLASSIFICATION"
),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = HealthNluModelDetails.class,
+ name = "HEALTH_NLU"
+ ),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = PreTrainedSummarization.class,
name = "PRE_TRAINED_SUMMARIZATION"
),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = NamedEntityRecognitionModelDetails.class,
+ name = "NAMED_ENTITY_RECOGNITION"
+ ),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PiiModelDetails.class,
+ name = "PII"
+ ),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedNamedEntityRecognitionModelDetails.class,
+ name = "PRE_TRAINED_NAMED_ENTITY_RECOGNITION"
+ ),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = PreTrainedTextClassificationModelDetails.class,
+ name = "PRE_TRAINED_TEXT_CLASSIFICATION"
+ ),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = PreTrainedPiiModelDetails.class,
name = "PRE_TRAINED_PII"
@@ -148,11 +156,12 @@ public enum ModelType {
PreTrainedKeyphraseExtraction("PRE_TRAINED_KEYPHRASE_EXTRACTION"),
PreTrainedLanguageDetection("PRE_TRAINED_LANGUAGE_DETECTION"),
PreTrainedPii("PRE_TRAINED_PII"),
- PreTrainedTranslation("PRE_TRAINED_TRANSLATION"),
PreTrainedHealthNlu("PRE_TRAINED_HEALTH_NLU"),
PreTrainedSummarization("PRE_TRAINED_SUMMARIZATION"),
PreTrainedUniversal("PRE_TRAINED_UNIVERSAL"),
Pii("PII"),
+ PreTrainedTranslation("PRE_TRAINED_TRANSLATION"),
+ HealthNlu("HEALTH_NLU"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityMask.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityMask.java
index 5201e0a1b09..65b4ef896d8 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityMask.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityMask.java
@@ -25,6 +25,23 @@
public final class PiiEntityMask extends PiiEntityMasking {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("exclude")
+ private java.util.List exclude;
+
+ public Builder exclude(java.util.List exclude) {
+ this.exclude = exclude;
+ this.__explicitlySet__.add("exclude");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("shouldDetect")
+ private Boolean shouldDetect;
+
+ public Builder shouldDetect(Boolean shouldDetect) {
+ this.shouldDetect = shouldDetect;
+ this.__explicitlySet__.add("shouldDetect");
+ return this;
+ }
/**
* Masking character. By default, the character is an asterisk (*)
**/
@@ -86,6 +103,8 @@ public Builder isUnmaskedFromEnd(Boolean isUnmaskedFromEnd) {
public PiiEntityMask build() {
PiiEntityMask model =
new PiiEntityMask(
+ this.exclude,
+ this.shouldDetect,
this.maskingCharacter,
this.leaveCharactersUnmasked,
this.isUnmaskedFromEnd);
@@ -97,6 +116,12 @@ public PiiEntityMask build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(PiiEntityMask model) {
+ if (model.wasPropertyExplicitlySet("exclude")) {
+ this.exclude(model.getExclude());
+ }
+ if (model.wasPropertyExplicitlySet("shouldDetect")) {
+ this.shouldDetect(model.getShouldDetect());
+ }
if (model.wasPropertyExplicitlySet("maskingCharacter")) {
this.maskingCharacter(model.getMaskingCharacter());
}
@@ -123,8 +148,12 @@ public Builder toBuilder() {
@Deprecated
public PiiEntityMask(
- String maskingCharacter, Integer leaveCharactersUnmasked, Boolean isUnmaskedFromEnd) {
- super();
+ java.util.List exclude,
+ Boolean shouldDetect,
+ String maskingCharacter,
+ Integer leaveCharactersUnmasked,
+ Boolean isUnmaskedFromEnd) {
+ super(exclude, shouldDetect);
this.maskingCharacter = maskingCharacter;
this.leaveCharactersUnmasked = leaveCharactersUnmasked;
this.isUnmaskedFromEnd = isUnmaskedFromEnd;
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityMasking.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityMasking.java
index c3b56ac7b3f..009efd30a19 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityMasking.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityMasking.java
@@ -35,9 +35,39 @@
@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
public class PiiEntityMasking extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel {
@Deprecated
- @java.beans.ConstructorProperties({})
- protected PiiEntityMasking() {
+ @java.beans.ConstructorProperties({"exclude", "shouldDetect"})
+ protected PiiEntityMasking(java.util.List exclude, Boolean shouldDetect) {
super();
+ this.exclude = exclude;
+ this.shouldDetect = shouldDetect;
+ }
+
+ /**
+ * List of offsets/entities to be removed from anonymization.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("exclude")
+ private final java.util.List exclude;
+
+ /**
+ * List of offsets/entities to be removed from anonymization.
+ * @return the value
+ **/
+ public java.util.List getExclude() {
+ return exclude;
+ }
+
+ /**
+ * To include excluded entities from masking in detected entities or not.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("shouldDetect")
+ private final Boolean shouldDetect;
+
+ /**
+ * To include excluded entities from masking in detected entities or not.
+ * @return the value
+ **/
+ public Boolean getShouldDetect() {
+ return shouldDetect;
}
@Override
@@ -54,6 +84,8 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("PiiEntityMasking(");
sb.append("super=").append(super.toString());
+ sb.append("exclude=").append(String.valueOf(this.exclude));
+ sb.append(", shouldDetect=").append(String.valueOf(this.shouldDetect));
sb.append(")");
return sb.toString();
}
@@ -68,13 +100,17 @@ public boolean equals(Object o) {
}
PiiEntityMasking other = (PiiEntityMasking) o;
- return super.equals(other);
+ return java.util.Objects.equals(this.exclude, other.exclude)
+ && java.util.Objects.equals(this.shouldDetect, other.shouldDetect)
+ && super.equals(other);
}
@Override
public int hashCode() {
final int PRIME = 59;
int result = 1;
+ result = (result * PRIME) + (this.exclude == null ? 43 : this.exclude.hashCode());
+ result = (result * PRIME) + (this.shouldDetect == null ? 43 : this.shouldDetect.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityRemove.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityRemove.java
index d7d47b1f49d..4ab5e5c108d 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityRemove.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityRemove.java
@@ -25,12 +25,29 @@
public final class PiiEntityRemove extends PiiEntityMasking {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("exclude")
+ private java.util.List exclude;
+
+ public Builder exclude(java.util.List exclude) {
+ this.exclude = exclude;
+ this.__explicitlySet__.add("exclude");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("shouldDetect")
+ private Boolean shouldDetect;
+
+ public Builder shouldDetect(Boolean shouldDetect) {
+ this.shouldDetect = shouldDetect;
+ this.__explicitlySet__.add("shouldDetect");
+ return this;
+ }
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public PiiEntityRemove build() {
- PiiEntityRemove model = new PiiEntityRemove();
+ PiiEntityRemove model = new PiiEntityRemove(this.exclude, this.shouldDetect);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -39,6 +56,12 @@ public PiiEntityRemove build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(PiiEntityRemove model) {
+ if (model.wasPropertyExplicitlySet("exclude")) {
+ this.exclude(model.getExclude());
+ }
+ if (model.wasPropertyExplicitlySet("shouldDetect")) {
+ this.shouldDetect(model.getShouldDetect());
+ }
return this;
}
}
@@ -55,8 +78,8 @@ public Builder toBuilder() {
}
@Deprecated
- public PiiEntityRemove() {
- super();
+ public PiiEntityRemove(java.util.List exclude, Boolean shouldDetect) {
+ super(exclude, shouldDetect);
}
@Override
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityReplace.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityReplace.java
index e1dbc9ef43c..14405431161 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityReplace.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PiiEntityReplace.java
@@ -25,6 +25,23 @@
public final class PiiEntityReplace extends PiiEntityMasking {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("exclude")
+ private java.util.List exclude;
+
+ public Builder exclude(java.util.List exclude) {
+ this.exclude = exclude;
+ this.__explicitlySet__.add("exclude");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("shouldDetect")
+ private Boolean shouldDetect;
+
+ public Builder shouldDetect(Boolean shouldDetect) {
+ this.shouldDetect = shouldDetect;
+ this.__explicitlySet__.add("shouldDetect");
+ return this;
+ }
/**
* Replace entities with given sequence of characters. By default PII entity will be replaced with .
**/
@@ -46,7 +63,8 @@ public Builder replaceWith(String replaceWith) {
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public PiiEntityReplace build() {
- PiiEntityReplace model = new PiiEntityReplace(this.replaceWith);
+ PiiEntityReplace model =
+ new PiiEntityReplace(this.exclude, this.shouldDetect, this.replaceWith);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -55,6 +73,12 @@ public PiiEntityReplace build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(PiiEntityReplace model) {
+ if (model.wasPropertyExplicitlySet("exclude")) {
+ this.exclude(model.getExclude());
+ }
+ if (model.wasPropertyExplicitlySet("shouldDetect")) {
+ this.shouldDetect(model.getShouldDetect());
+ }
if (model.wasPropertyExplicitlySet("replaceWith")) {
this.replaceWith(model.getReplaceWith());
}
@@ -74,8 +98,9 @@ public Builder toBuilder() {
}
@Deprecated
- public PiiEntityReplace(String replaceWith) {
- super();
+ public PiiEntityReplace(
+ java.util.List exclude, Boolean shouldDetect, String replaceWith) {
+ super(exclude, shouldDetect);
this.replaceWith = replaceWith;
}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedTranslationModelDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedTranslationModelDetails.java
new file mode 100644
index 00000000000..143702a2557
--- /dev/null
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/PreTrainedTranslationModelDetails.java
@@ -0,0 +1,157 @@
+/**
+ * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ailanguage.model;
+
+/**
+ * Possible pre trained translation model information.
+ *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields
+ * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in
+ * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called
+ * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take
+ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__}
+ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}).
+ **/
+@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = PreTrainedTranslationModelDetails.Builder.class
+)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "modelType"
+)
+@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
+public final class PreTrainedTranslationModelDetails extends ModelDetails {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("languageCode")
+ private String languageCode;
+
+ public Builder languageCode(String languageCode) {
+ this.languageCode = languageCode;
+ this.__explicitlySet__.add("languageCode");
+ return this;
+ }
+ /**
+ * Optional pre trained model version. If nothing specified latest pre trained model will be used.
+ * Supported versions can be found at /modelTypes/{modelType}
+ *
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private String version;
+
+ /**
+ * Optional pre trained model version. If nothing specified latest pre trained model will be used.
+ * Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @param version the value to set
+ * @return this builder
+ **/
+ public Builder version(String version) {
+ this.version = version;
+ this.__explicitlySet__.add("version");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public PreTrainedTranslationModelDetails build() {
+ PreTrainedTranslationModelDetails model =
+ new PreTrainedTranslationModelDetails(this.languageCode, this.version);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(PreTrainedTranslationModelDetails model) {
+ if (model.wasPropertyExplicitlySet("languageCode")) {
+ this.languageCode(model.getLanguageCode());
+ }
+ if (model.wasPropertyExplicitlySet("version")) {
+ this.version(model.getVersion());
+ }
+ return this;
+ }
+ }
+
+ /**
+ * Create a new builder.
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public PreTrainedTranslationModelDetails(String languageCode, String version) {
+ super(languageCode);
+ this.version = version;
+ }
+
+ /**
+ * Optional pre trained model version. If nothing specified latest pre trained model will be used.
+ * Supported versions can be found at /modelTypes/{modelType}
+ *
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("version")
+ private final String version;
+
+ /**
+ * Optional pre trained model version. If nothing specified latest pre trained model will be used.
+ * Supported versions can be found at /modelTypes/{modelType}
+ *
+ * @return the value
+ **/
+ public String getVersion() {
+ return version;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("PreTrainedTranslationModelDetails(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", version=").append(String.valueOf(this.version));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof PreTrainedTranslationModelDetails)) {
+ return false;
+ }
+
+ PreTrainedTranslationModelDetails other = (PreTrainedTranslationModelDetails) o;
+ return java.util.Objects.equals(this.version, other.version) && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/UpdateEndpointDetails.java b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/UpdateEndpointDetails.java
index 0f11da312ca..5a0938b30d7 100644
--- a/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/UpdateEndpointDetails.java
+++ b/bmc-ailanguage/src/main/java/com/oracle/bmc/ailanguage/model/UpdateEndpointDetails.java
@@ -24,6 +24,7 @@ public final class UpdateEndpointDetails
@Deprecated
@java.beans.ConstructorProperties({
"displayName",
+ "alias",
"description",
"modelId",
"inferenceUnits",
@@ -32,6 +33,7 @@ public final class UpdateEndpointDetails
})
public UpdateEndpointDetails(
String displayName,
+ String alias,
String description,
String modelId,
Integer inferenceUnits,
@@ -39,6 +41,7 @@ public UpdateEndpointDetails(
java.util.Map> definedTags) {
super();
this.displayName = displayName;
+ this.alias = alias;
this.description = description;
this.modelId = modelId;
this.inferenceUnits = inferenceUnits;
@@ -64,6 +67,22 @@ public Builder displayName(String displayName) {
this.__explicitlySet__.add("displayName");
return this;
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @param alias the value to set
+ * @return this builder
+ **/
+ public Builder alias(String alias) {
+ this.alias = alias;
+ this.__explicitlySet__.add("alias");
+ return this;
+ }
/**
* A short description of the endpoint.
**/
@@ -161,6 +180,7 @@ public UpdateEndpointDetails build() {
UpdateEndpointDetails model =
new UpdateEndpointDetails(
this.displayName,
+ this.alias,
this.description,
this.modelId,
this.inferenceUnits,
@@ -177,6 +197,9 @@ public Builder copy(UpdateEndpointDetails model) {
if (model.wasPropertyExplicitlySet("displayName")) {
this.displayName(model.getDisplayName());
}
+ if (model.wasPropertyExplicitlySet("alias")) {
+ this.alias(model.getAlias());
+ }
if (model.wasPropertyExplicitlySet("description")) {
this.description(model.getDescription());
}
@@ -221,6 +244,20 @@ public String getDisplayName() {
return displayName;
}
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ **/
+ @com.fasterxml.jackson.annotation.JsonProperty("alias")
+ private final String alias;
+
+ /**
+ * Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
+ * @return the value
+ **/
+ public String getAlias() {
+ return alias;
+ }
+
/**
* A short description of the endpoint.
**/
@@ -314,6 +351,7 @@ public String toString(boolean includeByteArrayContents) {
sb.append("UpdateEndpointDetails(");
sb.append("super=").append(super.toString());
sb.append("displayName=").append(String.valueOf(this.displayName));
+ sb.append(", alias=").append(String.valueOf(this.alias));
sb.append(", description=").append(String.valueOf(this.description));
sb.append(", modelId=").append(String.valueOf(this.modelId));
sb.append(", inferenceUnits=").append(String.valueOf(this.inferenceUnits));
@@ -334,6 +372,7 @@ public boolean equals(Object o) {
UpdateEndpointDetails other = (UpdateEndpointDetails) o;
return java.util.Objects.equals(this.displayName, other.displayName)
+ && java.util.Objects.equals(this.alias, other.alias)
&& java.util.Objects.equals(this.description, other.description)
&& java.util.Objects.equals(this.modelId, other.modelId)
&& java.util.Objects.equals(this.inferenceUnits, other.inferenceUnits)
@@ -347,6 +386,7 @@ public int hashCode() {
final int PRIME = 59;
int result = 1;
result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode());
+ result = (result * PRIME) + (this.alias == null ? 43 : this.alias.hashCode());
result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode());
result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode());
result =
diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml
index d15d5b48747..81a86cee246 100644
--- a/bmc-aispeech/pom.xml
+++ b/bmc-aispeech/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 2.73.0
+ 2.79.0
../pom.xml
oci-java-sdk-aispeech
@@ -16,7 +16,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 2.73.0
+ 2.79.0
\ No newline at end of file
diff --git a/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeech.java b/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeech.java
index 7f919e4b110..7851d6949eb 100644
--- a/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeech.java
+++ b/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeech.java
@@ -83,6 +83,19 @@ public interface AIServiceSpeech extends AutoCloseable {
*/
CancelTranscriptionTaskResponse cancelTranscriptionTask(CancelTranscriptionTaskRequest request);
+ /**
+ * Moves a Customization resource into a different compartment.
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use ChangeCustomizationCompartment API.
+ */
+ ChangeCustomizationCompartmentResponse changeCustomizationCompartment(
+ ChangeCustomizationCompartmentRequest request);
+
/**
* Moves a transcription Job resource into a different compartment.
* @param request The request object containing the details to send
@@ -96,6 +109,33 @@ public interface AIServiceSpeech extends AutoCloseable {
ChangeTranscriptionJobCompartmentResponse changeTranscriptionJobCompartment(
ChangeTranscriptionJobCompartmentRequest request);
+ /**
+ * Creates a new Customization.
+ *
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use CreateCustomization API.
+ */
+ CreateCustomizationResponse createCustomization(CreateCustomizationRequest request);
+
+ /**
+ * Returns an authentication token to the user.
+ *
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use CreateRealtimeSessionToken API.
+ */
+ CreateRealtimeSessionTokenResponse createRealtimeSessionToken(
+ CreateRealtimeSessionTokenRequest request);
+
/**
* Creates a new Transcription Job.
*
@@ -109,6 +149,18 @@ ChangeTranscriptionJobCompartmentResponse changeTranscriptionJobCompartment(
*/
CreateTranscriptionJobResponse createTranscriptionJob(CreateTranscriptionJobRequest request);
+ /**
+ * Delete Customization and its metadata from tenancy.
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use DeleteCustomization API.
+ */
+ DeleteCustomizationResponse deleteCustomization(DeleteCustomizationRequest request);
+
/**
* Delete API cleans job, tasks and the related metadata. However the generated transcriptions in customer tenancy will not be deleted.
* @param request The request object containing the details to send
@@ -121,6 +173,18 @@ ChangeTranscriptionJobCompartmentResponse changeTranscriptionJobCompartment(
*/
DeleteTranscriptionJobResponse deleteTranscriptionJob(DeleteTranscriptionJobRequest request);
+ /**
+ * Gets a Customization by identifier
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use GetCustomization API.
+ */
+ GetCustomizationResponse getCustomization(GetCustomizationRequest request);
+
/**
* Gets a Transcription Job by identifier
* @param request The request object containing the details to send
@@ -145,6 +209,19 @@ ChangeTranscriptionJobCompartmentResponse changeTranscriptionJobCompartment(
*/
GetTranscriptionTaskResponse getTranscriptionTask(GetTranscriptionTaskRequest request);
+ /**
+ * Returns a list of Customizations.
+ *
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use ListCustomizations API.
+ */
+ ListCustomizationsResponse listCustomizations(ListCustomizationsRequest request);
+
/**
* Returns a list of Transcription Jobs.
*
@@ -171,6 +248,44 @@ ChangeTranscriptionJobCompartmentResponse changeTranscriptionJobCompartment(
*/
ListTranscriptionTasksResponse listTranscriptionTasks(ListTranscriptionTasksRequest request);
+ /**
+ * Returns a list of speakers available to the user to choose from based on language code and voice type provided.
+ *
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use ListVoices API.
+ */
+ ListVoicesResponse listVoices(ListVoicesRequest request);
+
+ /**
+ * Creates an audio for the given input text based on other input parameters like language, voice type, etc.
+ *
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use SynthesizeSpeech API.
+ */
+ SynthesizeSpeechResponse synthesizeSpeech(SynthesizeSpeechRequest request);
+
+ /**
+ * Updates a Customization by identifier
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs.
+ * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it.
+ * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ *
+ * Example: Click here to see how to use UpdateCustomization API.
+ */
+ UpdateCustomizationResponse updateCustomization(UpdateCustomizationRequest request);
+
/**
* Updates the Transcription Job
* @param request The request object containing the details to send
diff --git a/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechAsync.java b/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechAsync.java
index 787380e44f2..35a4dab9af6 100644
--- a/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechAsync.java
+++ b/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechAsync.java
@@ -90,6 +90,24 @@ java.util.concurrent.Future cancelTranscription
CancelTranscriptionTaskRequest, CancelTranscriptionTaskResponse>
handler);
+ /**
+ * Moves a Customization resource into a different compartment.
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future
+ changeCustomizationCompartment(
+ ChangeCustomizationCompartmentRequest request,
+ com.oracle.bmc.responses.AsyncHandler<
+ ChangeCustomizationCompartmentRequest,
+ ChangeCustomizationCompartmentResponse>
+ handler);
+
/**
* Moves a transcription Job resource into a different compartment.
*
@@ -108,6 +126,40 @@ java.util.concurrent.Future cancelTranscription
ChangeTranscriptionJobCompartmentResponse>
handler);
+ /**
+ * Creates a new Customization.
+ *
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future createCustomization(
+ CreateCustomizationRequest request,
+ com.oracle.bmc.responses.AsyncHandler<
+ CreateCustomizationRequest, CreateCustomizationResponse>
+ handler);
+
+ /**
+ * Returns an authentication token to the user.
+ *
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future createRealtimeSessionToken(
+ CreateRealtimeSessionTokenRequest request,
+ com.oracle.bmc.responses.AsyncHandler<
+ CreateRealtimeSessionTokenRequest, CreateRealtimeSessionTokenResponse>
+ handler);
+
/**
* Creates a new Transcription Job.
*
@@ -125,6 +177,22 @@ java.util.concurrent.Future createTranscriptionJ
CreateTranscriptionJobRequest, CreateTranscriptionJobResponse>
handler);
+ /**
+ * Delete Customization and its metadata from tenancy.
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future deleteCustomization(
+ DeleteCustomizationRequest request,
+ com.oracle.bmc.responses.AsyncHandler<
+ DeleteCustomizationRequest, DeleteCustomizationResponse>
+ handler);
+
/**
* Delete API cleans job, tasks and the related metadata. However the generated transcriptions in customer tenancy will not be deleted.
*
@@ -141,6 +209,21 @@ java.util.concurrent.Future deleteTranscriptionJ
DeleteTranscriptionJobRequest, DeleteTranscriptionJobResponse>
handler);
+ /**
+ * Gets a Customization by identifier
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future getCustomization(
+ GetCustomizationRequest request,
+ com.oracle.bmc.responses.AsyncHandler
+ handler);
+
/**
* Gets a Transcription Job by identifier
*
@@ -173,6 +256,23 @@ java.util.concurrent.Future getTranscriptionTask(
GetTranscriptionTaskRequest, GetTranscriptionTaskResponse>
handler);
+ /**
+ * Returns a list of Customizations.
+ *
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future listCustomizations(
+ ListCustomizationsRequest request,
+ com.oracle.bmc.responses.AsyncHandler<
+ ListCustomizationsRequest, ListCustomizationsResponse>
+ handler);
+
/**
* Returns a list of Transcription Jobs.
*
@@ -207,6 +307,53 @@ java.util.concurrent.Future listTranscriptionTas
ListTranscriptionTasksRequest, ListTranscriptionTasksResponse>
handler);
+ /**
+ * Returns a list of speakers available to the user to choose from based on language code and voice type provided.
+ *
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future listVoices(
+ ListVoicesRequest request,
+ com.oracle.bmc.responses.AsyncHandler handler);
+
+ /**
+ * Creates an audio for the given input text based on other input parameters like language, voice type, etc.
+ *
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future synthesizeSpeech(
+ SynthesizeSpeechRequest request,
+ com.oracle.bmc.responses.AsyncHandler
+ handler);
+
+ /**
+ * Updates a Customization by identifier
+ *
+ * @param request The request object containing the details to send
+ * @param handler The request handler to invoke upon completion, may be null.
+ * @return A Future that can be used to get the response if no AsyncHandler was
+ * provided. Note, if you provide an AsyncHandler and use the Future, some
+ * types of responses (like java.io.InputStream) may not be able to be read in
+ * both places as the underlying stream may only be consumed once.
+ */
+ java.util.concurrent.Future updateCustomization(
+ UpdateCustomizationRequest request,
+ com.oracle.bmc.responses.AsyncHandler<
+ UpdateCustomizationRequest, UpdateCustomizationResponse>
+ handler);
+
/**
* Updates the Transcription Job
*
diff --git a/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechAsyncClient.java b/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechAsyncClient.java
index e36735b6645..be7c0987026 100644
--- a/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechAsyncClient.java
+++ b/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechAsyncClient.java
@@ -297,6 +297,11 @@ public AIServiceSpeechAsyncClient(
if (endpoint != null) {
setEndpoint(endpoint);
}
+ if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) {
+ LOG.warn(
+ com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage(
+ "AIServiceSpeechAsyncClient", "synthesizeSpeech"));
+ }
}
/**
@@ -556,6 +561,64 @@ protected void beforeRetryAction() {}
}
}
+ @Override
+ public java.util.concurrent.Future
+ changeCustomizationCompartment(
+ ChangeCustomizationCompartmentRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ ChangeCustomizationCompartmentRequest,
+ ChangeCustomizationCompartmentResponse>
+ handler) {
+ LOG.trace("Called async changeCustomizationCompartment");
+ final ChangeCustomizationCompartmentRequest interceptedRequest =
+ ChangeCustomizationCompartmentConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ ChangeCustomizationCompartmentConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "ChangeCustomizationCompartment",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/ChangeCustomizationCompartment");
+ final java.util.function.Function<
+ javax.ws.rs.core.Response, ChangeCustomizationCompartmentResponse>
+ transformer =
+ ChangeCustomizationCompartmentConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler<
+ ChangeCustomizationCompartmentRequest,
+ ChangeCustomizationCompartmentResponse>
+ handlerToUse = handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ ChangeCustomizationCompartmentRequest,
+ ChangeCustomizationCompartmentResponse>,
+ java.util.concurrent.Future>
+ futureSupplier =
+ client.postFutureSupplier(
+ interceptedRequest,
+ interceptedRequest.getChangeCustomizationCompartmentDetails(),
+ ib,
+ transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ ChangeCustomizationCompartmentRequest, ChangeCustomizationCompartmentResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
@Override
public java.util.concurrent.Future
changeTranscriptionJobCompartment(
@@ -615,6 +678,116 @@ protected void beforeRetryAction() {}
}
}
+ @Override
+ public java.util.concurrent.Future createCustomization(
+ CreateCustomizationRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ CreateCustomizationRequest, CreateCustomizationResponse>
+ handler) {
+ LOG.trace("Called async createCustomization");
+ final CreateCustomizationRequest interceptedRequest =
+ CreateCustomizationConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ CreateCustomizationConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "CreateCustomization",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/CreateCustomization");
+ final java.util.function.Function
+ transformer =
+ CreateCustomizationConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler<
+ CreateCustomizationRequest, CreateCustomizationResponse>
+ handlerToUse = handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ CreateCustomizationRequest, CreateCustomizationResponse>,
+ java.util.concurrent.Future>
+ futureSupplier =
+ client.postFutureSupplier(
+ interceptedRequest,
+ interceptedRequest.getCreateCustomizationDetails(),
+ ib,
+ transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ CreateCustomizationRequest, CreateCustomizationResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
+ @Override
+ public java.util.concurrent.Future
+ createRealtimeSessionToken(
+ CreateRealtimeSessionTokenRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ CreateRealtimeSessionTokenRequest,
+ CreateRealtimeSessionTokenResponse>
+ handler) {
+ LOG.trace("Called async createRealtimeSessionToken");
+ final CreateRealtimeSessionTokenRequest interceptedRequest =
+ CreateRealtimeSessionTokenConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ CreateRealtimeSessionTokenConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "CreateRealtimeSessionToken",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/RealtimeSessionToken/CreateRealtimeSessionToken");
+ final java.util.function.Function<
+ javax.ws.rs.core.Response, CreateRealtimeSessionTokenResponse>
+ transformer =
+ CreateRealtimeSessionTokenConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler<
+ CreateRealtimeSessionTokenRequest, CreateRealtimeSessionTokenResponse>
+ handlerToUse = handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ CreateRealtimeSessionTokenRequest,
+ CreateRealtimeSessionTokenResponse>,
+ java.util.concurrent.Future>
+ futureSupplier =
+ client.postFutureSupplier(
+ interceptedRequest,
+ interceptedRequest.getCreateRealtimeSessionTokenDetails(),
+ ib,
+ transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ CreateRealtimeSessionTokenRequest, CreateRealtimeSessionTokenResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
@Override
public java.util.concurrent.Future createTranscriptionJob(
CreateTranscriptionJobRequest request,
@@ -668,6 +841,54 @@ protected void beforeRetryAction() {}
}
}
+ @Override
+ public java.util.concurrent.Future deleteCustomization(
+ DeleteCustomizationRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ DeleteCustomizationRequest, DeleteCustomizationResponse>
+ handler) {
+ LOG.trace("Called async deleteCustomization");
+ final DeleteCustomizationRequest interceptedRequest =
+ DeleteCustomizationConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ DeleteCustomizationConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "DeleteCustomization",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/DeleteCustomization");
+ final java.util.function.Function
+ transformer =
+ DeleteCustomizationConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler<
+ DeleteCustomizationRequest, DeleteCustomizationResponse>
+ handlerToUse = handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ DeleteCustomizationRequest, DeleteCustomizationResponse>,
+ java.util.concurrent.Future>
+ futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ DeleteCustomizationRequest, DeleteCustomizationResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
@Override
public java.util.concurrent.Future deleteTranscriptionJob(
DeleteTranscriptionJobRequest request,
@@ -716,6 +937,52 @@ protected void beforeRetryAction() {}
}
}
+ @Override
+ public java.util.concurrent.Future getCustomization(
+ GetCustomizationRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ GetCustomizationRequest, GetCustomizationResponse>
+ handler) {
+ LOG.trace("Called async getCustomization");
+ final GetCustomizationRequest interceptedRequest =
+ GetCustomizationConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ GetCustomizationConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "GetCustomization",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/GetCustomization");
+ final java.util.function.Function
+ transformer =
+ GetCustomizationConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler
+ handlerToUse = handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ GetCustomizationRequest, GetCustomizationResponse>,
+ java.util.concurrent.Future>
+ futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ GetCustomizationRequest, GetCustomizationResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
@Override
public java.util.concurrent.Future getTranscriptionJob(
GetTranscriptionJobRequest request,
@@ -810,6 +1077,52 @@ protected void beforeRetryAction() {}
}
}
+ @Override
+ public java.util.concurrent.Future listCustomizations(
+ ListCustomizationsRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ ListCustomizationsRequest, ListCustomizationsResponse>
+ handler) {
+ LOG.trace("Called async listCustomizations");
+ final ListCustomizationsRequest interceptedRequest =
+ ListCustomizationsConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ ListCustomizationsConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "ListCustomizations",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/ListCustomizations");
+ final java.util.function.Function
+ transformer =
+ ListCustomizationsConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler
+ handlerToUse = handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ ListCustomizationsRequest, ListCustomizationsResponse>,
+ java.util.concurrent.Future>
+ futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ ListCustomizationsRequest, ListCustomizationsResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
@Override
public java.util.concurrent.Future listTranscriptionJobs(
ListTranscriptionJobsRequest request,
@@ -904,6 +1217,152 @@ protected void beforeRetryAction() {}
}
}
+ @Override
+ public java.util.concurrent.Future listVoices(
+ ListVoicesRequest request,
+ final com.oracle.bmc.responses.AsyncHandler
+ handler) {
+ LOG.trace("Called async listVoices");
+ final ListVoicesRequest interceptedRequest = ListVoicesConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ ListVoicesConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "ListVoices",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Voice/ListVoices");
+ final java.util.function.Function
+ transformer =
+ ListVoicesConverter.fromResponse(java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler handlerToUse =
+ handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ ListVoicesRequest, ListVoicesResponse>,
+ java.util.concurrent.Future>
+ futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ ListVoicesRequest, ListVoicesResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
+ @Override
+ public java.util.concurrent.Future synthesizeSpeech(
+ SynthesizeSpeechRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ SynthesizeSpeechRequest, SynthesizeSpeechResponse>
+ handler) {
+ LOG.trace("Called async synthesizeSpeech");
+ final SynthesizeSpeechRequest interceptedRequest =
+ SynthesizeSpeechConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ SynthesizeSpeechConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "SynthesizeSpeech",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/SynthesizeSpeech/SynthesizeSpeech");
+ final java.util.function.Function
+ transformer =
+ SynthesizeSpeechConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler
+ handlerToUse = handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ SynthesizeSpeechRequest, SynthesizeSpeechResponse>,
+ java.util.concurrent.Future>
+ futureSupplier =
+ client.postFutureSupplier(
+ interceptedRequest,
+ interceptedRequest.getSynthesizeSpeechDetails(),
+ ib,
+ transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ SynthesizeSpeechRequest, SynthesizeSpeechResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
+ @Override
+ public java.util.concurrent.Future updateCustomization(
+ UpdateCustomizationRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ UpdateCustomizationRequest, UpdateCustomizationResponse>
+ handler) {
+ LOG.trace("Called async updateCustomization");
+ final UpdateCustomizationRequest interceptedRequest =
+ UpdateCustomizationConverter.interceptRequest(request);
+ final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ UpdateCustomizationConverter.fromRequest(client, interceptedRequest);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "UpdateCustomization",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/UpdateCustomization");
+ final java.util.function.Function
+ transformer =
+ UpdateCustomizationConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ com.oracle.bmc.responses.AsyncHandler<
+ UpdateCustomizationRequest, UpdateCustomizationResponse>
+ handlerToUse = handler;
+
+ java.util.function.Function<
+ com.oracle.bmc.responses.AsyncHandler<
+ UpdateCustomizationRequest, UpdateCustomizationResponse>,
+ java.util.concurrent.Future>
+ futureSupplier =
+ client.putFutureSupplier(
+ interceptedRequest,
+ interceptedRequest.getUpdateCustomizationDetails(),
+ ib,
+ transformer);
+
+ if (this.authenticationDetailsProvider
+ instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
+ return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
+ UpdateCustomizationRequest, UpdateCustomizationResponse>(
+ (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
+ this.authenticationDetailsProvider,
+ handlerToUse,
+ futureSupplier) {
+ @Override
+ protected void beforeRetryAction() {}
+ };
+ } else {
+ return futureSupplier.apply(handlerToUse);
+ }
+ }
+
@Override
public java.util.concurrent.Future updateTranscriptionJob(
UpdateTranscriptionJobRequest request,
diff --git a/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechClient.java b/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechClient.java
index e93c429d8a0..611cc3397de 100644
--- a/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechClient.java
+++ b/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechClient.java
@@ -375,6 +375,11 @@ protected AIServiceSpeechClient(
if (endpoint != null) {
setEndpoint(endpoint);
}
+ if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) {
+ LOG.warn(
+ com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage(
+ "AIServiceSpeechClient", "synthesizeSpeech"));
+ }
}
/**
@@ -628,6 +633,51 @@ public CancelTranscriptionTaskResponse cancelTranscriptionTask(
});
}
+ @Override
+ public ChangeCustomizationCompartmentResponse changeCustomizationCompartment(
+ ChangeCustomizationCompartmentRequest request) {
+ LOG.trace("Called changeCustomizationCompartment");
+ final ChangeCustomizationCompartmentRequest interceptedRequest =
+ ChangeCustomizationCompartmentConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ ChangeCustomizationCompartmentConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, false);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "ChangeCustomizationCompartment",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/ChangeCustomizationCompartment");
+ java.util.function.Function<
+ javax.ws.rs.core.Response, ChangeCustomizationCompartmentResponse>
+ transformer =
+ ChangeCustomizationCompartmentConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response =
+ client.post(
+ ib,
+ retriedRequest
+ .getChangeCustomizationCompartmentDetails(),
+ retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
@Override
public ChangeTranscriptionJobCompartmentResponse changeTranscriptionJobCompartment(
ChangeTranscriptionJobCompartmentRequest request) {
@@ -673,6 +723,92 @@ public ChangeTranscriptionJobCompartmentResponse changeTranscriptionJobCompartme
});
}
+ @Override
+ public CreateCustomizationResponse createCustomization(CreateCustomizationRequest request) {
+ LOG.trace("Called createCustomization");
+ final CreateCustomizationRequest interceptedRequest =
+ CreateCustomizationConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ CreateCustomizationConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, false);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "CreateCustomization",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/CreateCustomization");
+ java.util.function.Function
+ transformer =
+ CreateCustomizationConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response =
+ client.post(
+ ib,
+ retriedRequest.getCreateCustomizationDetails(),
+ retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
+ @Override
+ public CreateRealtimeSessionTokenResponse createRealtimeSessionToken(
+ CreateRealtimeSessionTokenRequest request) {
+ LOG.trace("Called createRealtimeSessionToken");
+ final CreateRealtimeSessionTokenRequest interceptedRequest =
+ CreateRealtimeSessionTokenConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ CreateRealtimeSessionTokenConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, false);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "CreateRealtimeSessionToken",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/RealtimeSessionToken/CreateRealtimeSessionToken");
+ java.util.function.Function
+ transformer =
+ CreateRealtimeSessionTokenConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response =
+ client.post(
+ ib,
+ retriedRequest
+ .getCreateRealtimeSessionTokenDetails(),
+ retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
@Override
public CreateTranscriptionJobResponse createTranscriptionJob(
CreateTranscriptionJobRequest request) {
@@ -716,6 +852,45 @@ public CreateTranscriptionJobResponse createTranscriptionJob(
});
}
+ @Override
+ public DeleteCustomizationResponse deleteCustomization(DeleteCustomizationRequest request) {
+ LOG.trace("Called deleteCustomization");
+ final DeleteCustomizationRequest interceptedRequest =
+ DeleteCustomizationConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ DeleteCustomizationConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, false);
+ com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "DeleteCustomization",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/DeleteCustomization");
+ java.util.function.Function
+ transformer =
+ DeleteCustomizationConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response =
+ client.delete(ib, retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
@Override
public DeleteTranscriptionJobResponse deleteTranscriptionJob(
DeleteTranscriptionJobRequest request) {
@@ -756,6 +931,43 @@ public DeleteTranscriptionJobResponse deleteTranscriptionJob(
});
}
+ @Override
+ public GetCustomizationResponse getCustomization(GetCustomizationRequest request) {
+ LOG.trace("Called getCustomization");
+ final GetCustomizationRequest interceptedRequest =
+ GetCustomizationConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ GetCustomizationConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, false);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "GetCustomization",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/GetCustomization");
+ java.util.function.Function
+ transformer =
+ GetCustomizationConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response = client.get(ib, retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
@Override
public GetTranscriptionJobResponse getTranscriptionJob(GetTranscriptionJobRequest request) {
LOG.trace("Called getTranscriptionJob");
@@ -830,6 +1042,43 @@ public GetTranscriptionTaskResponse getTranscriptionTask(GetTranscriptionTaskReq
});
}
+ @Override
+ public ListCustomizationsResponse listCustomizations(ListCustomizationsRequest request) {
+ LOG.trace("Called listCustomizations");
+ final ListCustomizationsRequest interceptedRequest =
+ ListCustomizationsConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ ListCustomizationsConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, false);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "ListCustomizations",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/ListCustomizations");
+ java.util.function.Function
+ transformer =
+ ListCustomizationsConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response = client.get(ib, retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
@Override
public ListTranscriptionJobsResponse listTranscriptionJobs(
ListTranscriptionJobsRequest request) {
@@ -906,6 +1155,122 @@ public ListTranscriptionTasksResponse listTranscriptionTasks(
});
}
+ @Override
+ public ListVoicesResponse listVoices(ListVoicesRequest request) {
+ LOG.trace("Called listVoices");
+ final ListVoicesRequest interceptedRequest = ListVoicesConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ ListVoicesConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, false);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "ListVoices",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Voice/ListVoices");
+ java.util.function.Function transformer =
+ ListVoicesConverter.fromResponse(java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response = client.get(ib, retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
+ @Override
+ public SynthesizeSpeechResponse synthesizeSpeech(SynthesizeSpeechRequest request) {
+ LOG.trace("Called synthesizeSpeech");
+ final SynthesizeSpeechRequest interceptedRequest =
+ SynthesizeSpeechConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ SynthesizeSpeechConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, false);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "SynthesizeSpeech",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/SynthesizeSpeech/SynthesizeSpeech");
+ java.util.function.Function
+ transformer =
+ SynthesizeSpeechConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response =
+ client.post(
+ ib,
+ retriedRequest.getSynthesizeSpeechDetails(),
+ retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
+ @Override
+ public UpdateCustomizationResponse updateCustomization(UpdateCustomizationRequest request) {
+ LOG.trace("Called updateCustomization");
+ final UpdateCustomizationRequest interceptedRequest =
+ UpdateCustomizationConverter.interceptRequest(request);
+ com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
+ UpdateCustomizationConverter.fromRequest(client, interceptedRequest);
+
+ final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
+ com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
+ interceptedRequest.getRetryConfiguration(), retryConfiguration, false);
+ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
+ com.oracle.bmc.ServiceDetails serviceDetails =
+ new com.oracle.bmc.ServiceDetails(
+ "AIServiceSpeech",
+ "UpdateCustomization",
+ ib.getRequestUri().toString(),
+ "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/UpdateCustomization");
+ java.util.function.Function
+ transformer =
+ UpdateCustomizationConverter.fromResponse(
+ java.util.Optional.of(serviceDetails));
+ return retrier.execute(
+ interceptedRequest,
+ retryRequest -> {
+ final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
+ new com.oracle.bmc.retrier.TokenRefreshRetrier(
+ authenticationDetailsProvider);
+ return tokenRefreshRetrier.execute(
+ retryRequest,
+ retriedRequest -> {
+ javax.ws.rs.core.Response response =
+ client.put(
+ ib,
+ retriedRequest.getUpdateCustomizationDetails(),
+ retriedRequest);
+ return transformer.apply(response);
+ });
+ });
+ }
+
@Override
public UpdateTranscriptionJobResponse updateTranscriptionJob(
UpdateTranscriptionJobRequest request) {
diff --git a/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechPaginators.java b/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechPaginators.java
index 091e6814d54..7adc88ea0df 100644
--- a/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechPaginators.java
+++ b/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechPaginators.java
@@ -33,6 +33,119 @@ public AIServiceSpeechPaginators(AIServiceSpeech client) {
this.client = client;
}
+ /**
+ * Creates a new iterable which will iterate over the responses received from the listCustomizations operation. This iterable
+ * will fetch more data from the server as needed.
+ *
+ * @param request a request which can be sent to the service operation
+ * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service.
+ */
+ public Iterable listCustomizationsResponseIterator(
+ final ListCustomizationsRequest request) {
+ return new com.oracle.bmc.paginator.internal.ResponseIterable<
+ ListCustomizationsRequest.Builder, ListCustomizationsRequest,
+ ListCustomizationsResponse>(
+ new java.util.function.Supplier() {
+ @Override
+ public ListCustomizationsRequest.Builder get() {
+ return ListCustomizationsRequest.builder().copy(request);
+ }
+ },
+ new java.util.function.Function() {
+ @Override
+ public String apply(ListCustomizationsResponse response) {
+ return response.getOpcNextPage();
+ }
+ },
+ new java.util.function.Function<
+ com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
+ ListCustomizationsRequest.Builder>,
+ ListCustomizationsRequest>() {
+ @Override
+ public ListCustomizationsRequest apply(
+ com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
+ ListCustomizationsRequest.Builder>
+ input) {
+ if (input.getNextPageToken() == null) {
+ return input.getRequestBuilder().build();
+ } else {
+ return input.getRequestBuilder()
+ .page(input.getNextPageToken().orElse(null))
+ .build();
+ }
+ }
+ },
+ new java.util.function.Function<
+ ListCustomizationsRequest, ListCustomizationsResponse>() {
+ @Override
+ public ListCustomizationsResponse apply(ListCustomizationsRequest request) {
+ return client.listCustomizations(request);
+ }
+ });
+ }
+
+ /**
+ * Creates a new iterable which will iterate over the {@link com.oracle.bmc.aispeech.model.CustomizationSummary} objects
+ * contained in responses from the listCustomizations operation. This iterable will fetch more data from the
+ * server as needed.
+ *
+ * @param request a request which can be sent to the service operation
+ * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.aispeech.model.CustomizationSummary} objects
+ * contained in responses received from the service.
+ */
+ public Iterable
+ listCustomizationsRecordIterator(final ListCustomizationsRequest request) {
+ return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
+ ListCustomizationsRequest.Builder, ListCustomizationsRequest,
+ ListCustomizationsResponse, com.oracle.bmc.aispeech.model.CustomizationSummary>(
+ new java.util.function.Supplier() {
+ @Override
+ public ListCustomizationsRequest.Builder get() {
+ return ListCustomizationsRequest.builder().copy(request);
+ }
+ },
+ new java.util.function.Function() {
+ @Override
+ public String apply(ListCustomizationsResponse response) {
+ return response.getOpcNextPage();
+ }
+ },
+ new java.util.function.Function<
+ com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
+ ListCustomizationsRequest.Builder>,
+ ListCustomizationsRequest>() {
+ @Override
+ public ListCustomizationsRequest apply(
+ com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
+ ListCustomizationsRequest.Builder>
+ input) {
+ if (input.getNextPageToken() == null) {
+ return input.getRequestBuilder().build();
+ } else {
+ return input.getRequestBuilder()
+ .page(input.getNextPageToken().orElse(null))
+ .build();
+ }
+ }
+ },
+ new java.util.function.Function<
+ ListCustomizationsRequest, ListCustomizationsResponse>() {
+ @Override
+ public ListCustomizationsResponse apply(ListCustomizationsRequest request) {
+ return client.listCustomizations(request);
+ }
+ },
+ new java.util.function.Function<
+ ListCustomizationsResponse,
+ java.util.List>() {
+ @Override
+ public java.util.List apply(
+ ListCustomizationsResponse response) {
+ return response.getCustomizationCollection().getItems();
+ }
+ });
+ }
+
/**
* Creates a new iterable which will iterate over the responses received from the listTranscriptionJobs operation. This iterable
* will fetch more data from the server as needed.
diff --git a/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechWaiters.java b/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechWaiters.java
index 2e270a1a6fb..d39b1af50e1 100644
--- a/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechWaiters.java
+++ b/bmc-aispeech/src/main/java/com/oracle/bmc/aispeech/AIServiceSpeechWaiters.java
@@ -24,6 +24,110 @@ public AIServiceSpeechWaiters(
this.client = client;
}
+ /**
+ * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration.
+ *
+ * @param request the request to send
+ * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states
+ * @return a new {@code Waiter} instance
+ */
+ public com.oracle.bmc.waiter.Waiter
+ forCustomization(
+ GetCustomizationRequest request,
+ com.oracle.bmc.aispeech.model.Customization.LifecycleState... targetStates) {
+ com.oracle.bmc.util.internal.Validate.notEmpty(
+ targetStates, "At least one targetState must be provided");
+ com.oracle.bmc.util.internal.Validate.noNullElements(
+ targetStates, "Null targetState values are not permitted");
+
+ return forCustomization(
+ com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates);
+ }
+
+ /**
+ * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration.
+ *
+ * @param request the request to send
+ * @param targetState the desired state to wait for
+ * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use
+ * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use
+ * @return a new {@code com.oracle.bmc.waiter.Waiter} instance
+ */
+ public com.oracle.bmc.waiter.Waiter
+ forCustomization(
+ GetCustomizationRequest request,
+ com.oracle.bmc.aispeech.model.Customization.LifecycleState targetState,
+ com.oracle.bmc.waiter.TerminationStrategy terminationStrategy,
+ com.oracle.bmc.waiter.DelayStrategy delayStrategy) {
+ com.oracle.bmc.util.internal.Validate.notNull(
+ targetState, "The targetState cannot be null");
+
+ return forCustomization(
+ com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy),
+ request,
+ targetState);
+ }
+
+ /**
+ * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration.
+ *
+ * @param request the request to send
+ * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use
+ * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use
+ * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
+ * @return a new {@code com.oracle.bmc.waiter.Waiter} instance
+ */
+ public com.oracle.bmc.waiter.Waiter
+ forCustomization(
+ GetCustomizationRequest request,
+ com.oracle.bmc.waiter.TerminationStrategy terminationStrategy,
+ com.oracle.bmc.waiter.DelayStrategy delayStrategy,
+ com.oracle.bmc.aispeech.model.Customization.LifecycleState... targetStates) {
+ com.oracle.bmc.util.internal.Validate.notEmpty(
+ targetStates, "At least one target state must be provided");
+ com.oracle.bmc.util.internal.Validate.noNullElements(
+ targetStates, "Null target states are not permitted");
+
+ return forCustomization(
+ com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy),
+ request,
+ targetStates);
+ }
+
+ // Helper method to create a new Waiter for Customization.
+ private com.oracle.bmc.waiter.Waiter