diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b5f444c06a..ce4a03c0960 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,30 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.25.0 - 2023-09-05 +### Added +- Support for queue channels in the Queue Service +- Support for entity lineage retrieval and asynchronous glossary export in the Data Catalog service +- Support for filtering and sorting while listing work requests in the Container Instances service +- Support for the ability to create support requests for various support ticket types (TECH, LIMIT, ACCOUNT) in the Customer Incident Management Service +- Endpoint changed from https://incidentmanagement.{region}.{domainAndTopLevelDomain} to https://incidentmanagement.{region}.oci.{domainAndTopLevelDomain} (e.g. https://incidentmanagement.us-phoenix-1.oraclecloud.com to https://incidentmanagement.us-phoenix-1.oci.oraclecloud.com) in the Customer Incident Management Service + +### Breaking Changes +- Class `com.oracle.bmc.cims.User` has been removed in the Customer Incident Management Service +- Class `com.oracle.bmc.cims.UserClient` has been removed in the Customer Incident Management Service +- Class `com.oracle.bmc.cims.model.AvailabilityDomain` has been removed in the Customer Incident Management Service +- Method `public com.oracle.bmc.cims.model.AvailabilityDomain getAvailabilityDomain()` has been removed in the model `com.oracle.bmc.cims.model.CreateResourceDetails` in the Customer Incident Management Service +- Return type of method `public com.oracle.bmc.cims.model.Region getRegion()` has been changed to `java.lang.String` in the model `com.oracle.bmc.cims.model.CreateResourceDetails` in the Customer Incident Management Service +- Method `public java.lang.String getCountry()` has been removed in the model `com.oracle.bmc.cims.model.CreateUserDetails` in the Customer Incident Management Service +- Class `com.oracle.bmc.cims.model.Region` has been removed in the Customer Incident Management Service +- Method `public com.oracle.bmc.cims.model.AvailabilityDomain getAvailabilityDomain()` has been removed in the model `com.oracle.bmc.cims.model.Resource` in the Customer Incident Management Service +- Return type of method `public com.oracle.bmc.cims.model.Region getRegion()` has been changed to `java.lang.String` in the model `com.oracle.bmc.cims.model.Resource` in the Customer Incident Management Service +- Class `com.oracle.bmc.cims.requests.CreateUserRequest` has been removed in the Customer Incident Management Service +- Method `public java.lang.String getProblemType()` has been removed in `com.oracle.bmc.cims.requests.GetIncidentRequest` in the Customer Incident Management Service +- Method `public java.lang.String getSource()` has been removed in `com.oracle.bmc.cims.requests.GetStatusRequest` in the Customer Incident Management Service +- Return type of method `public java.lang.String getProblemType()` has been changed to `com.oracle.bmc.cims.model.ProblemType` in `com.oracle.bmc.cims.requests.ValidateUserRequest` in the Customer Incident Management Service +- Class `com.oracle.bmc.cims.responses.CreateUserResponse` has been removed in the Customer Incident Management Service + ## 3.24.0 - 2023-08-29 ### Added - Support for creating and updating network monitors in the Application Performance Monitoring Synthetics service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 2848b306903..18cfd0f1816 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index bd702f88c25..15f7bb080f8 100644 --- a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.24.0 + 3.25.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.24.0 + 3.25.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.24.0 + 3.25.0 pom import diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml index 7e2baac9f7b..5d77fab17e2 100644 --- a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.24.0 + 3.25.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.24.0 + 3.25.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.24.0 + 3.25.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index e7255ecb92e..56e3b49e4fa 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.24.0 + 3.25.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-addons/bmc-graalvm-addon/pom.xml b/bmc-addons/bmc-graalvm-addon/pom.xml index 23fc9741953..7cd34db061c 100644 --- a/bmc-addons/bmc-graalvm-addon/pom.xml +++ b/bmc-addons/bmc-graalvm-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-addons-graalvm @@ -141,37 +141,37 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 provided com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.24.0 + 3.25.0 provided com.oracle.oci.sdk oci-java-sdk-core - 3.24.0 + 3.25.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.24.0 + 3.25.0 test com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.24.0 + 3.25.0 test com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.24.0 + 3.25.0 test diff --git a/bmc-addons/bmc-graalvm-jersey3-addon/pom.xml b/bmc-addons/bmc-graalvm-jersey3-addon/pom.xml index 7a8ffc054cf..6a8ea81b71a 100644 --- a/bmc-addons/bmc-graalvm-jersey3-addon/pom.xml +++ b/bmc-addons/bmc-graalvm-jersey3-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-addons-graalvm-jersey3 @@ -142,37 +142,37 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 provided com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.24.0 + 3.25.0 provided com.oracle.oci.sdk oci-java-sdk-core - 3.24.0 + 3.25.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.24.0 + 3.25.0 test com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.24.0 + 3.25.0 test com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.24.0 + 3.25.0 test diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index 618fdfce9bb..11599d00f85 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 - 3.24.0 + 3.25.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.24.0 + 3.25.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.24.0 + 3.25.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.24.0 + 3.25.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index ec293f509a8..2daf794090c 100644 --- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml +++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.24.0 + 3.25.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index dcae2368717..33875b824bf 100644 --- a/bmc-addons/bmc-sasl/pom.xml +++ b/bmc-addons/bmc-sasl/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.24.0 + 3.25.0 ../pom.xml @@ -60,7 +60,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 19fb411a6a2..50b1444d648 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index e6d0aa82221..9c9a71ae36e 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml index 8c2b86c23d6..2664a20ff08 100644 --- a/bmc-aianomalydetection/pom.xml +++ b/bmc-aianomalydetection/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-aianomalydetection @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index ae0c11a123f..dc6d09371eb 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 06087f727ec..d828b6bf93f 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index ab57f058f97..49981058eb7 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index d7a5f349f7a..9dbc28563a4 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 18bbad8239c..c95c45faf0e 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index b50abefeaad..f8b1b8720d8 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 7cb05825fc7..744f16708ef 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index a5599884854..4f9a537106c 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index ae3d96fb7ef..8b4052dc824 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 98c72b7b5f2..83698361008 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 31aa78bd299..560f43ac030 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-applicationmigration/pom.xml b/bmc-applicationmigration/pom.xml index 40c09292a10..91e3f049521 100644 --- a/bmc-applicationmigration/pom.xml +++ b/bmc-applicationmigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-applicationmigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index bda2d4c8a8c..4332f8ddf7e 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index e500ded6b0f..a8ec049cb2a 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 93e16bf247b..01c049ea951 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index f448f1f356a..9c44e8a8e37 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 9265ab95338..0f04cccfd21 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 897065f89db..c763abc142f 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 6f798ff134b..172ee8d5a25 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index a549d7ebbab..185d50c0327 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.24.0 + 3.25.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,845 +38,845 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-addons-graalvm - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-dts - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-applicationmigration - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-aianomalydetection - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-servicemesh - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.24.0 + 3.25.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.24.0 + 3.25.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index ee287fda85d..cbd6baede6d 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index f475be158f1..b2648bbdd29 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 76ef3cbc91f..4a7e1a31db8 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 5d234a5e390..10ca7ca5ea4 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/Incident.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/Incident.java index 30276694d2b..d8018a4ae95 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/Incident.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/Incident.java @@ -10,11 +10,14 @@ /** * Use the Support Management API to manage support requests. For more information, see [Getting * Help and Contacting - * Support](https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/contactingsupport.htm). **Note**: - * Before you can create service requests with this API, you need to have an Oracle Single Sign On - * (SSO) account, and you need to register your Customer Support Identifier (CSI) with My Oracle - * Support. This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the - * operations by default if no circuit breaker configuration is defined by the user. + * Support](https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/contactingsupport.htm). + * + *

*Note**: Before you can create service requests with this API, you need to have an Oracle + * Single Sign On (SSO) account, and you need to register your Customer Support Identifier (CSI) + * with My Oracle Support. + * + *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by + * default if no circuit breaker configuration is defined by the user. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") public interface Incident extends AutoCloseable { @@ -68,7 +71,7 @@ public interface Incident extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Enables the customer to create an support ticket. + * Operation to create a support ticket. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -83,7 +86,22 @@ public interface Incident extends AutoCloseable { CreateIncidentResponse createIncident(CreateIncidentRequest request); /** - * Gets the details of the support ticket. + * Fetches csi number of 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 GetCsiNumber API. + */ + GetCsiNumberResponse getCsiNumber(GetCsiNumberRequest request); + + /** + * Gets details about the specified support ticket. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentAsync.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentAsync.java index a02488a8f5c..858d22fe8e1 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentAsync.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentAsync.java @@ -10,10 +10,11 @@ /** * Use the Support Management API to manage support requests. For more information, see [Getting * Help and Contacting - * Support](https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/contactingsupport.htm). **Note**: - * Before you can create service requests with this API, you need to have an Oracle Single Sign On - * (SSO) account, and you need to register your Customer Support Identifier (CSI) with My Oracle - * Support. + * Support](https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/contactingsupport.htm). + * + *

*Note**: Before you can create service requests with this API, you need to have an Oracle + * Single Sign On (SSO) account, and you need to register your Customer Support Identifier (CSI) + * with My Oracle Support. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") public interface IncidentAsync extends AutoCloseable { @@ -67,7 +68,7 @@ public interface IncidentAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Enables the customer to create an support ticket. + * Operation to create a support ticket. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -82,7 +83,22 @@ java.util.concurrent.Future createIncident( handler); /** - * Gets the details of the support ticket. + * Fetches csi number of 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 getCsiNumber( + GetCsiNumberRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets details about the specified support ticket. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentAsyncClient.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentAsyncClient.java index a0fd839aa04..79de288be75 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentAsyncClient.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentAsyncClient.java @@ -34,7 +34,7 @@ public class IncidentAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncC .serviceName("INCIDENT") .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://incidentmanagement.{region}.{secondLevelDomain}") + "https://incidentmanagement.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = @@ -104,8 +104,6 @@ public java.util.concurrent.Future createIncident( Objects.requireNonNull( request.getCreateIncidentDetails(), "createIncidentDetails is required"); - Objects.requireNonNull(request.getOcid(), "ocid is required"); - return clientCall(request, CreateIncidentResponse::builder) .logger(LOG, "createIncident") .serviceDetails( @@ -121,6 +119,10 @@ public java.util.concurrent.Future createIncident( .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("ocid", request.getOcid()) .appendHeader("homeregion", request.getHomeregion()) + .appendHeader("bearertokentype", request.getBearertokentype()) + .appendHeader("bearertoken", request.getBearertoken()) + .appendHeader("idtoken", request.getIdtoken()) + .appendHeader("domainid", request.getDomainid()) .hasBody() .handleBody( com.oracle.bmc.cims.model.Incident.class, @@ -130,6 +132,40 @@ public java.util.concurrent.Future createIncident( .callAsync(handler); } + @Override + public java.util.concurrent.Future getCsiNumber( + GetCsiNumberRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getTenantId(), "tenantId is required"); + + Objects.requireNonNull(request.getRegion(), "region is required"); + + return clientCall(request, GetCsiNumberResponse::builder) + .logger(LOG, "getCsiNumber") + .serviceDetails("Incident", "GetCsiNumber", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCsiNumberRequest::builder) + .basePath("/20181231") + .appendPathParam("v2") + .appendPathParam("incidents") + .appendPathParam("getCsiNumber") + .appendQueryParam("tenantId", request.getTenantId()) + .appendQueryParam("region", request.getRegion()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("ocid", request.getOcid()) + .appendHeader("homeregion", request.getHomeregion()) + .appendHeader("bearertokentype", request.getBearertokentype()) + .appendHeader("bearertoken", request.getBearertoken()) + .appendHeader("idtoken", request.getIdtoken()) + .appendHeader("domainid", request.getDomainid()) + .handleBody(String.class, GetCsiNumberResponse.Builder::value) + .handleResponseHeaderString( + "opc-request-id", GetCsiNumberResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getIncident( GetIncidentRequest request, @@ -137,9 +173,6 @@ public java.util.concurrent.Future getIncident( handler) { Validate.notBlank(request.getIncidentKey(), "incidentKey must not be blank"); - Objects.requireNonNull(request.getCsi(), "csi is required"); - - Objects.requireNonNull(request.getOcid(), "ocid is required"); return clientCall(request, GetIncidentResponse::builder) .logger(LOG, "getIncident") @@ -153,12 +186,17 @@ public java.util.concurrent.Future getIncident( .appendPathParam("v2") .appendPathParam("incidents") .appendPathParam(request.getIncidentKey()) + .appendQueryParam("compartmentId", request.getCompartmentId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("csi", request.getCsi()) .appendHeader("ocid", request.getOcid()) .appendHeader("homeregion", request.getHomeregion()) - .appendHeader("problem-type", request.getProblemType()) + .appendHeader("problemtype", request.getProblemtype()) + .appendHeader("bearertokentype", request.getBearertokentype()) + .appendHeader("bearertoken", request.getBearertoken()) + .appendHeader("idtoken", request.getIdtoken()) + .appendHeader("domainid", request.getDomainid()) .handleBody( com.oracle.bmc.cims.model.Incident.class, GetIncidentResponse.Builder::incident) @@ -173,9 +211,6 @@ public java.util.concurrent.Future getStatus( final com.oracle.bmc.responses.AsyncHandler handler) { - Validate.notBlank(request.getSource(), "source must not be blank"); - Objects.requireNonNull(request.getOcid(), "ocid is required"); - return clientCall(request, GetStatusResponse::builder) .logger(LOG, "getStatus") .serviceDetails( @@ -188,7 +223,6 @@ public java.util.concurrent.Future getStatus( .appendPathParam("v2") .appendPathParam("incidents") .appendPathParam("status") - .appendPathParam(request.getSource()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("ocid", request.getOcid()) @@ -210,10 +244,6 @@ public java.util.concurrent.Future listIncide Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - Objects.requireNonNull(request.getCsi(), "csi is required"); - - Objects.requireNonNull(request.getOcid(), "ocid is required"); - return clientCall(request, ListIncidentResourceTypesResponse::builder) .logger(LOG, "listIncidentResourceTypes") .serviceDetails( @@ -238,6 +268,7 @@ public java.util.concurrent.Future listIncide .appendHeader("csi", request.getCsi()) .appendHeader("ocid", request.getOcid()) .appendHeader("homeregion", request.getHomeregion()) + .appendHeader("domainid", request.getDomainid()) .handleBodyList( com.oracle.bmc.cims.model.IncidentResourceType.class, ListIncidentResourceTypesResponse.Builder::items) @@ -253,12 +284,8 @@ public java.util.concurrent.Future listIncidents( ListIncidentsRequest request, final com.oracle.bmc.responses.AsyncHandler handler) { - Objects.requireNonNull(request.getCsi(), "csi is required"); - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - Objects.requireNonNull(request.getOcid(), "ocid is required"); - return clientCall(request, ListIncidentsResponse::builder) .logger(LOG, "listIncidents") .serviceDetails( @@ -282,6 +309,10 @@ public java.util.concurrent.Future listIncidents( .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("ocid", request.getOcid()) .appendHeader("homeregion", request.getHomeregion()) + .appendHeader("bearertokentype", request.getBearertokentype()) + .appendHeader("bearertoken", request.getBearertoken()) + .appendHeader("idtoken", request.getIdtoken()) + .appendHeader("domainid", request.getDomainid()) .handleBodyList( com.oracle.bmc.cims.model.IncidentSummary.class, ListIncidentsResponse.Builder::items) @@ -289,6 +320,9 @@ public java.util.concurrent.Future listIncidents( "opc-request-id", ListIncidentsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListIncidentsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListIncidentsResponse.Builder::opcPrevPage) + .handleResponseHeaderString("as-of-time", ListIncidentsResponse.Builder::asOfTime) .callAsync(handler); } @@ -300,13 +334,9 @@ public java.util.concurrent.Future updateIncident( handler) { Validate.notBlank(request.getIncidentKey(), "incidentKey must not be blank"); - Objects.requireNonNull(request.getCsi(), "csi is required"); - Objects.requireNonNull( request.getUpdateIncidentDetails(), "updateIncidentDetails is required"); - Objects.requireNonNull(request.getOcid(), "ocid is required"); - return clientCall(request, UpdateIncidentResponse::builder) .logger(LOG, "updateIncident") .serviceDetails( @@ -319,12 +349,17 @@ public java.util.concurrent.Future updateIncident( .appendPathParam("v2") .appendPathParam("incidents") .appendPathParam(request.getIncidentKey()) + .appendQueryParam("compartmentId", request.getCompartmentId()) .accept("application/json") .appendHeader("csi", request.getCsi()) .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) .appendHeader("ocid", request.getOcid()) .appendHeader("homeregion", request.getHomeregion()) + .appendHeader("bearertokentype", request.getBearertokentype()) + .appendHeader("bearertoken", request.getBearertoken()) + .appendHeader("idtoken", request.getIdtoken()) + .appendHeader("domainid", request.getDomainid()) .hasBody() .handleBody( com.oracle.bmc.cims.model.Incident.class, @@ -339,9 +374,6 @@ public java.util.concurrent.Future validateUser( ValidateUserRequest request, final com.oracle.bmc.responses.AsyncHandler handler) { - Objects.requireNonNull(request.getCsi(), "csi is required"); - - Objects.requireNonNull(request.getOcid(), "ocid is required"); return clientCall(request, ValidateUserResponse::builder) .logger(LOG, "validateUser") @@ -356,12 +388,16 @@ public java.util.concurrent.Future validateUser( .appendPathParam("incidents") .appendPathParam("user") .appendPathParam("validate") - .appendQueryParam("problemType", request.getProblemType()) + .appendEnumQueryParam("problemType", request.getProblemType()) .accept("application/json") .appendHeader("csi", request.getCsi()) .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("ocid", request.getOcid()) .appendHeader("homeregion", request.getHomeregion()) + .appendHeader("bearertokentype", request.getBearertokentype()) + .appendHeader("bearertoken", request.getBearertoken()) + .appendHeader("idtoken", request.getIdtoken()) + .appendHeader("domainid", request.getDomainid()) .handleBody( com.oracle.bmc.cims.model.ValidationResponse.class, ValidateUserResponse.Builder::validationResponse) diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentClient.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentClient.java index 9bff4738d69..5e9876eb837 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentClient.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentClient.java @@ -21,7 +21,7 @@ public class IncidentClient extends com.oracle.bmc.http.internal.BaseSyncClient .serviceName("INCIDENT") .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://incidentmanagement.{region}.{secondLevelDomain}") + "https://incidentmanagement.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = @@ -94,8 +94,6 @@ public CreateIncidentResponse createIncident(CreateIncidentRequest request) { Objects.requireNonNull( request.getCreateIncidentDetails(), "createIncidentDetails is required"); - Objects.requireNonNull(request.getOcid(), "ocid is required"); - return clientCall(request, CreateIncidentResponse::builder) .logger(LOG, "createIncident") .serviceDetails( @@ -111,6 +109,10 @@ public CreateIncidentResponse createIncident(CreateIncidentRequest request) { .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("ocid", request.getOcid()) .appendHeader("homeregion", request.getHomeregion()) + .appendHeader("bearertokentype", request.getBearertokentype()) + .appendHeader("bearertoken", request.getBearertoken()) + .appendHeader("idtoken", request.getIdtoken()) + .appendHeader("domainid", request.getDomainid()) .hasBody() .handleBody( com.oracle.bmc.cims.model.Incident.class, @@ -120,13 +122,41 @@ public CreateIncidentResponse createIncident(CreateIncidentRequest request) { .callSync(); } + @Override + public GetCsiNumberResponse getCsiNumber(GetCsiNumberRequest request) { + Objects.requireNonNull(request.getTenantId(), "tenantId is required"); + + Objects.requireNonNull(request.getRegion(), "region is required"); + + return clientCall(request, GetCsiNumberResponse::builder) + .logger(LOG, "getCsiNumber") + .serviceDetails("Incident", "GetCsiNumber", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCsiNumberRequest::builder) + .basePath("/20181231") + .appendPathParam("v2") + .appendPathParam("incidents") + .appendPathParam("getCsiNumber") + .appendQueryParam("tenantId", request.getTenantId()) + .appendQueryParam("region", request.getRegion()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("ocid", request.getOcid()) + .appendHeader("homeregion", request.getHomeregion()) + .appendHeader("bearertokentype", request.getBearertokentype()) + .appendHeader("bearertoken", request.getBearertoken()) + .appendHeader("idtoken", request.getIdtoken()) + .appendHeader("domainid", request.getDomainid()) + .handleBody(String.class, GetCsiNumberResponse.Builder::value) + .handleResponseHeaderString( + "opc-request-id", GetCsiNumberResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetIncidentResponse getIncident(GetIncidentRequest request) { Validate.notBlank(request.getIncidentKey(), "incidentKey must not be blank"); - Objects.requireNonNull(request.getCsi(), "csi is required"); - - Objects.requireNonNull(request.getOcid(), "ocid is required"); return clientCall(request, GetIncidentResponse::builder) .logger(LOG, "getIncident") @@ -140,12 +170,17 @@ public GetIncidentResponse getIncident(GetIncidentRequest request) { .appendPathParam("v2") .appendPathParam("incidents") .appendPathParam(request.getIncidentKey()) + .appendQueryParam("compartmentId", request.getCompartmentId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("csi", request.getCsi()) .appendHeader("ocid", request.getOcid()) .appendHeader("homeregion", request.getHomeregion()) - .appendHeader("problem-type", request.getProblemType()) + .appendHeader("problemtype", request.getProblemtype()) + .appendHeader("bearertokentype", request.getBearertokentype()) + .appendHeader("bearertoken", request.getBearertoken()) + .appendHeader("idtoken", request.getIdtoken()) + .appendHeader("domainid", request.getDomainid()) .handleBody( com.oracle.bmc.cims.model.Incident.class, GetIncidentResponse.Builder::incident) @@ -157,9 +192,6 @@ public GetIncidentResponse getIncident(GetIncidentRequest request) { @Override public GetStatusResponse getStatus(GetStatusRequest request) { - Validate.notBlank(request.getSource(), "source must not be blank"); - Objects.requireNonNull(request.getOcid(), "ocid is required"); - return clientCall(request, GetStatusResponse::builder) .logger(LOG, "getStatus") .serviceDetails( @@ -172,7 +204,6 @@ public GetStatusResponse getStatus(GetStatusRequest request) { .appendPathParam("v2") .appendPathParam("incidents") .appendPathParam("status") - .appendPathParam(request.getSource()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("ocid", request.getOcid()) @@ -191,10 +222,6 @@ public ListIncidentResourceTypesResponse listIncidentResourceTypes( Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - Objects.requireNonNull(request.getCsi(), "csi is required"); - - Objects.requireNonNull(request.getOcid(), "ocid is required"); - return clientCall(request, ListIncidentResourceTypesResponse::builder) .logger(LOG, "listIncidentResourceTypes") .serviceDetails( @@ -219,6 +246,7 @@ public ListIncidentResourceTypesResponse listIncidentResourceTypes( .appendHeader("csi", request.getCsi()) .appendHeader("ocid", request.getOcid()) .appendHeader("homeregion", request.getHomeregion()) + .appendHeader("domainid", request.getDomainid()) .handleBodyList( com.oracle.bmc.cims.model.IncidentResourceType.class, ListIncidentResourceTypesResponse.Builder::items) @@ -231,12 +259,8 @@ public ListIncidentResourceTypesResponse listIncidentResourceTypes( @Override public ListIncidentsResponse listIncidents(ListIncidentsRequest request) { - Objects.requireNonNull(request.getCsi(), "csi is required"); - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - Objects.requireNonNull(request.getOcid(), "ocid is required"); - return clientCall(request, ListIncidentsResponse::builder) .logger(LOG, "listIncidents") .serviceDetails( @@ -260,6 +284,10 @@ public ListIncidentsResponse listIncidents(ListIncidentsRequest request) { .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("ocid", request.getOcid()) .appendHeader("homeregion", request.getHomeregion()) + .appendHeader("bearertokentype", request.getBearertokentype()) + .appendHeader("bearertoken", request.getBearertoken()) + .appendHeader("idtoken", request.getIdtoken()) + .appendHeader("domainid", request.getDomainid()) .handleBodyList( com.oracle.bmc.cims.model.IncidentSummary.class, ListIncidentsResponse.Builder::items) @@ -267,6 +295,9 @@ public ListIncidentsResponse listIncidents(ListIncidentsRequest request) { "opc-request-id", ListIncidentsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListIncidentsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListIncidentsResponse.Builder::opcPrevPage) + .handleResponseHeaderString("as-of-time", ListIncidentsResponse.Builder::asOfTime) .callSync(); } @@ -274,13 +305,9 @@ public ListIncidentsResponse listIncidents(ListIncidentsRequest request) { public UpdateIncidentResponse updateIncident(UpdateIncidentRequest request) { Validate.notBlank(request.getIncidentKey(), "incidentKey must not be blank"); - Objects.requireNonNull(request.getCsi(), "csi is required"); - Objects.requireNonNull( request.getUpdateIncidentDetails(), "updateIncidentDetails is required"); - Objects.requireNonNull(request.getOcid(), "ocid is required"); - return clientCall(request, UpdateIncidentResponse::builder) .logger(LOG, "updateIncident") .serviceDetails( @@ -293,12 +320,17 @@ public UpdateIncidentResponse updateIncident(UpdateIncidentRequest request) { .appendPathParam("v2") .appendPathParam("incidents") .appendPathParam(request.getIncidentKey()) + .appendQueryParam("compartmentId", request.getCompartmentId()) .accept("application/json") .appendHeader("csi", request.getCsi()) .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) .appendHeader("ocid", request.getOcid()) .appendHeader("homeregion", request.getHomeregion()) + .appendHeader("bearertokentype", request.getBearertokentype()) + .appendHeader("bearertoken", request.getBearertoken()) + .appendHeader("idtoken", request.getIdtoken()) + .appendHeader("domainid", request.getDomainid()) .hasBody() .handleBody( com.oracle.bmc.cims.model.Incident.class, @@ -310,9 +342,6 @@ public UpdateIncidentResponse updateIncident(UpdateIncidentRequest request) { @Override public ValidateUserResponse validateUser(ValidateUserRequest request) { - Objects.requireNonNull(request.getCsi(), "csi is required"); - - Objects.requireNonNull(request.getOcid(), "ocid is required"); return clientCall(request, ValidateUserResponse::builder) .logger(LOG, "validateUser") @@ -327,12 +356,16 @@ public ValidateUserResponse validateUser(ValidateUserRequest request) { .appendPathParam("incidents") .appendPathParam("user") .appendPathParam("validate") - .appendQueryParam("problemType", request.getProblemType()) + .appendEnumQueryParam("problemType", request.getProblemType()) .accept("application/json") .appendHeader("csi", request.getCsi()) .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("ocid", request.getOcid()) .appendHeader("homeregion", request.getHomeregion()) + .appendHeader("bearertokentype", request.getBearertokentype()) + .appendHeader("bearertoken", request.getBearertoken()) + .appendHeader("idtoken", request.getIdtoken()) + .appendHeader("domainid", request.getDomainid()) .handleBody( com.oracle.bmc.cims.model.ValidationResponse.class, ValidateUserResponse.Builder::validationResponse) diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/SdkClientsMetadata.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/SdkClientsMetadata.java index eb2464078a9..3f3d710aabe 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/SdkClientsMetadata.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/SdkClientsMetadata.java @@ -7,10 +7,5 @@ import com.oracle.bmc.SdkClients; @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") -@SdkClients({ - IncidentAsyncClient.class, - IncidentClient.class, - UserAsyncClient.class, - UserClient.class -}) +@SdkClients({IncidentAsyncClient.class, IncidentClient.class}) public final class SdkClientsMetadata {} diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/User.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/User.java deleted file mode 100644 index c99057b86ee..00000000000 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/User.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.cims; - -import com.oracle.bmc.cims.requests.*; -import com.oracle.bmc.cims.responses.*; - -/** - * Use the Support Management API to manage support requests. For more information, see [Getting - * Help and Contacting - * Support](https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/contactingsupport.htm). **Note**: - * Before you can create service requests with this API, you need to have an Oracle Single Sign On - * (SSO) account, and you need to register your Customer Support Identifier (CSI) with My Oracle - * Support. This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the - * operations by default if no circuit breaker configuration is defined by the user. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") -public interface User extends AutoCloseable { - - /** Rebuilds the client from scratch. Useful to refresh certificates. */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * - * @param endpoint The endpoint of the service. - */ - void setEndpoint(String endpoint); - - /** Gets the set endpoint for REST call (ex, https://www.example.com) */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - * - *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the - * endpoint. If the service is not available in this Region, however, an - * IllegalArgumentException will be raised. - * - * @param region The region of the service. - */ - void setRegion(com.oracle.bmc.Region region); - - /** - * Sets the region to call (ex, 'us-phoenix-1'). - * - *

Note, this will first try to map the region ID to a known Region and call {@link - * #setRegion(Region) setRegion}. - * - *

If no known Region could be determined, it will create an endpoint based on the default - * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. Set - * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm - * specific endpoint template, otherwise set it to "false" - * - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint - * template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Create user to request Customer Support Identifier(CSI) to Customer User Administrator(CUA). - * - * @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 CreateUser API. - */ - CreateUserResponse createUser(CreateUserRequest request); -} diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/UserAsync.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/UserAsync.java deleted file mode 100644 index ba90a52a2fa..00000000000 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/UserAsync.java +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.cims; - -import com.oracle.bmc.cims.requests.*; -import com.oracle.bmc.cims.responses.*; - -/** - * Use the Support Management API to manage support requests. For more information, see [Getting - * Help and Contacting - * Support](https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/contactingsupport.htm). **Note**: - * Before you can create service requests with this API, you need to have an Oracle Single Sign On - * (SSO) account, and you need to register your Customer Support Identifier (CSI) with My Oracle - * Support. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") -public interface UserAsync extends AutoCloseable { - - /** Rebuilds the client from scratch. Useful to refresh certificates. */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * - * @param endpoint The endpoint of the serice. - */ - void setEndpoint(String endpoint); - - /** Gets the set endpoint for REST call (ex, https://www.example.com) */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - * - *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the - * endpoint. If the service is not available in this region, however, an - * IllegalArgumentException will be raised. - * - * @param region The region of the service. - */ - void setRegion(com.oracle.bmc.Region region); - - /** - * Sets the region to call (ex, 'us-phoenix-1'). - * - *

Note, this will first try to map the region ID to a known Region and call {@link - * #setRegion(Region) setRegion}. - * - *

If no known Region could be determined, it will create an endpoint based on the default - * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. Set - * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm - * specific endpoint template, otherwise set it to "false" - * - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint - * template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Create user to request Customer Support Identifier(CSI) to Customer User Administrator(CUA). - * - * @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 createUser( - CreateUserRequest request, - com.oracle.bmc.responses.AsyncHandler handler); -} diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/UserAsyncClient.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/UserAsyncClient.java deleted file mode 100644 index e0843b189fb..00000000000 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/UserAsyncClient.java +++ /dev/null @@ -1,287 +0,0 @@ -/** - * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.cims; - -import com.oracle.bmc.util.internal.Validate; -import com.oracle.bmc.cims.requests.*; -import com.oracle.bmc.cims.responses.*; - -import java.util.Objects; - -/** - * Async client implementation for User service.
- * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response - * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, - * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream - * will be closed right after the AsyncHandler is invoked.
- * 2. Use Java Future: using Java Future, developers need to close the stream after they are done - * with the Java Future.
- * Accessing the result should be done in a mutually exclusive manner, either through the Future or - * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the - * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine - * whether or not the request was completed via Future.isDone/isCancelled.
- * Please refer to - * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") -public class UserAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient - implements UserAsync { - /** Service instance for User. */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName("USER") - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://incidentmanagement.{region}.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(UserAsyncClient.class); - - UserAsyncClient( - com.oracle.bmc.common.ClientBuilderBase builder, - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - super(builder, authenticationDetailsProvider); - } - - /** - * Create a builder for this client. - * - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be - * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder { - private Builder(com.oracle.bmc.Service service) { - super(service); - final String packageName = "cims"; - com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Build the client. - * - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public UserAsyncClient build( - @jakarta.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - return new UserAsyncClient(this, authenticationDetailsProvider); - } - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - super.setRegion(region); - } - - @Override - public void setRegion(String regionId) { - super.setRegion(regionId); - } - - @Override - public java.util.concurrent.Future createUser( - CreateUserRequest request, - final com.oracle.bmc.responses.AsyncHandler - handler) { - Objects.requireNonNull(request.getCreateUserDetails(), "createUserDetails is required"); - - Objects.requireNonNull(request.getOcid(), "ocid is required"); - - return clientCall(request, CreateUserResponse::builder) - .logger(LOG, "createUser") - .serviceDetails( - "User", - "CreateUser", - "https://docs.oracle.com/iaas/api/#/en/incidentmanagement/20181231/User/CreateUser") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder(CreateUserRequest::builder) - .basePath("/20181231") - .appendPathParam("v2") - .appendPathParam("users") - .accept("application/json") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("ocid", request.getOcid()) - .appendHeader("homeregion", request.getHomeregion()) - .hasBody() - .handleBody(com.oracle.bmc.cims.model.User.class, CreateUserResponse.Builder::user) - .handleResponseHeaderString( - "opc-request-id", CreateUserResponse.Builder::opcRequestId) - .callAsync(handler); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(builder(), authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(builder().configuration(configuration), authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - builder().configuration(configuration).clientConfigurator(clientConfigurator), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory) - .additionalClientConfigurators(additionalClientConfigurators), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} - * @param endpoint {@link Builder#endpoint} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory) - .additionalClientConfigurators(additionalClientConfigurators) - .endpoint(endpoint), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} - * @param endpoint {@link Builder#endpoint} - * @param signingStrategyRequestSignerFactories {@link - * Builder#signingStrategyRequestSignerFactories} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory) - .additionalClientConfigurators(additionalClientConfigurators) - .endpoint(endpoint) - .signingStrategyRequestSignerFactories( - signingStrategyRequestSignerFactories), - authenticationDetailsProvider); - } -} diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/UserClient.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/UserClient.java deleted file mode 100644 index 1e703992458..00000000000 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/UserClient.java +++ /dev/null @@ -1,272 +0,0 @@ -/** - * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.cims; - -import com.oracle.bmc.util.internal.Validate; -import com.oracle.bmc.cims.requests.*; -import com.oracle.bmc.cims.responses.*; -import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; -import com.oracle.bmc.util.CircuitBreakerUtils; - -import java.util.Objects; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") -public class UserClient extends com.oracle.bmc.http.internal.BaseSyncClient implements User { - /** Service instance for User. */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName("USER") - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://incidentmanagement.{region}.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(UserClient.class); - - UserClient( - com.oracle.bmc.common.ClientBuilderBase builder, - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - super( - builder, - authenticationDetailsProvider, - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); - } - - /** - * Create a builder for this client. - * - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be - * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder { - private Builder(com.oracle.bmc.Service service) { - super(service); - final String packageName = "cims"; - com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Build the client. - * - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public UserClient build( - @jakarta.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - return new UserClient(this, authenticationDetailsProvider); - } - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - super.setRegion(region); - } - - @Override - public void setRegion(String regionId) { - super.setRegion(regionId); - } - - @Override - public CreateUserResponse createUser(CreateUserRequest request) { - Objects.requireNonNull(request.getCreateUserDetails(), "createUserDetails is required"); - - Objects.requireNonNull(request.getOcid(), "ocid is required"); - - return clientCall(request, CreateUserResponse::builder) - .logger(LOG, "createUser") - .serviceDetails( - "User", - "CreateUser", - "https://docs.oracle.com/iaas/api/#/en/incidentmanagement/20181231/User/CreateUser") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder(CreateUserRequest::builder) - .basePath("/20181231") - .appendPathParam("v2") - .appendPathParam("users") - .accept("application/json") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("ocid", request.getOcid()) - .appendHeader("homeregion", request.getHomeregion()) - .hasBody() - .handleBody(com.oracle.bmc.cims.model.User.class, CreateUserResponse.Builder::user) - .handleResponseHeaderString( - "opc-request-id", CreateUserResponse.Builder::opcRequestId) - .callSync(); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(builder(), authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(builder().configuration(configuration), authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - builder().configuration(configuration).clientConfigurator(clientConfigurator), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory) - .additionalClientConfigurators(additionalClientConfigurators), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} - * @param endpoint {@link Builder#endpoint} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory) - .additionalClientConfigurators(additionalClientConfigurators) - .endpoint(endpoint), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} - * @param endpoint {@link Builder#endpoint} - * @param signingStrategyRequestSignerFactories {@link - * Builder#signingStrategyRequestSignerFactories} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public UserClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory) - .additionalClientConfigurators(additionalClientConfigurators) - .endpoint(endpoint) - .signingStrategyRequestSignerFactories( - signingStrategyRequestSignerFactories), - authenticationDetailsProvider); - } -} diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/AccountItem.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/AccountItem.java new file mode 100644 index 00000000000..95bc78fee5d --- /dev/null +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/AccountItem.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cims.model; + +/** + * Details about the AccountItem object.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AccountItem.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AccountItem extends Item { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("itemKey") + private String itemKey; + + public Builder itemKey(String itemKey) { + this.itemKey = itemKey; + this.__explicitlySet__.add("itemKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("category") + private Category category; + + public Builder category(Category category) { + this.category = category; + this.__explicitlySet__.add("category"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subCategory") + private SubCategory subCategory; + + public Builder subCategory(SubCategory subCategory) { + this.subCategory = subCategory; + this.__explicitlySet__.add("subCategory"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("issueType") + private IssueType issueType; + + public Builder issueType(IssueType issueType) { + this.issueType = issueType; + this.__explicitlySet__.add("issueType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AccountItem build() { + AccountItem model = + new AccountItem( + this.itemKey, + this.name, + this.category, + this.subCategory, + this.issueType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AccountItem model) { + if (model.wasPropertyExplicitlySet("itemKey")) { + this.itemKey(model.getItemKey()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("category")) { + this.category(model.getCategory()); + } + if (model.wasPropertyExplicitlySet("subCategory")) { + this.subCategory(model.getSubCategory()); + } + if (model.wasPropertyExplicitlySet("issueType")) { + this.issueType(model.getIssueType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AccountItem( + String itemKey, + String name, + Category category, + SubCategory subCategory, + IssueType issueType) { + super(itemKey, name, category, subCategory, issueType); + } + + @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("AccountItem("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AccountItem)) { + return false; + } + + AccountItem other = (AccountItem) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ActivityItem.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ActivityItem.java index fc32c61235e..3b251c9bdbb 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ActivityItem.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ActivityItem.java @@ -130,19 +130,37 @@ public Builder activityType(ActivityType activityType) { this.__explicitlySet__.add("activityType"); return this; } - /** The person who updates the activity on the support ticket. */ + @com.fasterxml.jackson.annotation.JsonProperty("activityAuthor") private ActivityAuthor activityAuthor; + public Builder activityAuthor(ActivityAuthor activityAuthor) { + this.activityAuthor = activityAuthor; + this.__explicitlySet__.add("activityAuthor"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("itemType") + private ItemType itemType; + + public Builder itemType(ItemType itemType) { + this.itemType = itemType; + this.__explicitlySet__.add("itemType"); + return this; + } + /** Who updates the activity on the support ticket. */ + @com.fasterxml.jackson.annotation.JsonProperty("itemStatus") + private ItemStatus itemStatus; + /** - * The person who updates the activity on the support ticket. + * Who updates the activity on the support ticket. * - * @param activityAuthor the value to set + * @param itemStatus the value to set * @return this builder */ - public Builder activityAuthor(ActivityAuthor activityAuthor) { - this.activityAuthor = activityAuthor; - this.__explicitlySet__.add("activityAuthor"); + public Builder itemStatus(ItemStatus itemStatus) { + this.itemStatus = itemStatus; + this.__explicitlySet__.add("itemStatus"); return this; } @@ -161,7 +179,9 @@ public ActivityItem build() { this.timeCreated, this.timeUpdated, this.activityType, - this.activityAuthor); + this.activityAuthor, + this.itemType, + this.itemStatus); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -200,6 +220,12 @@ public Builder copy(ActivityItem model) { if (model.wasPropertyExplicitlySet("activityAuthor")) { this.activityAuthor(model.getActivityAuthor()); } + if (model.wasPropertyExplicitlySet("itemType")) { + this.itemType(model.getItemType()); + } + if (model.wasPropertyExplicitlySet("itemStatus")) { + this.itemStatus(model.getItemStatus()); + } return this; } } @@ -224,13 +250,17 @@ public ActivityItem( Integer timeCreated, Integer timeUpdated, ActivityType activityType, - ActivityAuthor activityAuthor) { + ActivityAuthor activityAuthor, + ItemType itemType, + ItemStatus itemStatus) { super(itemKey, name, category, subCategory, issueType); this.comments = comments; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.activityType = activityType; this.activityAuthor = activityAuthor; + this.itemType = itemType; + this.itemStatus = itemStatus; } /** Comments added with the activity on the support ticket. */ @@ -278,6 +308,7 @@ public enum ActivityType implements com.oracle.bmc.http.internal.BmcEnum { ProblemDescription("PROBLEM_DESCRIPTION"), Update("UPDATE"), Close("CLOSE"), + Reopen("REOPEN"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -333,7 +364,7 @@ public ActivityType getActivityType() { return activityType; } - /** The person who updates the activity on the support ticket. */ + /** */ public enum ActivityAuthor implements com.oracle.bmc.http.internal.BmcEnum { Customer("CUSTOMER"), Oracle("ORACLE"), @@ -379,17 +410,127 @@ public static ActivityAuthor create(String key) { return UnknownEnumValue; } }; - /** The person who updates the activity on the support ticket. */ + @com.fasterxml.jackson.annotation.JsonProperty("activityAuthor") private final ActivityAuthor activityAuthor; + public ActivityAuthor getActivityAuthor() { + return activityAuthor; + } + + /** */ + public enum ItemType implements com.oracle.bmc.http.internal.BmcEnum { + Attachments("ATTACHMENTS"), + Comments("COMMENTS"), + + /** + * 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(ItemType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ItemType v : ItemType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ItemType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ItemType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ItemType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + + @com.fasterxml.jackson.annotation.JsonProperty("itemType") + private final ItemType itemType; + + public ItemType getItemType() { + return itemType; + } + + /** Who updates the activity on the support ticket. */ + public enum ItemStatus implements com.oracle.bmc.http.internal.BmcEnum { + Processing("PROCESSING"), + Attached("ATTACHED"), + Removed("REMOVED"), + Failed("FAILED"), + + /** + * 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(ItemStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ItemStatus v : ItemStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ItemStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ItemStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ItemStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Who updates the activity on the support ticket. */ + @com.fasterxml.jackson.annotation.JsonProperty("itemStatus") + private final ItemStatus itemStatus; + /** - * The person who updates the activity on the support ticket. + * Who updates the activity on the support ticket. * * @return the value */ - public ActivityAuthor getActivityAuthor() { - return activityAuthor; + public ItemStatus getItemStatus() { + return itemStatus; } @Override @@ -412,6 +553,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", activityType=").append(String.valueOf(this.activityType)); sb.append(", activityAuthor=").append(String.valueOf(this.activityAuthor)); + sb.append(", itemType=").append(String.valueOf(this.itemType)); + sb.append(", itemStatus=").append(String.valueOf(this.itemStatus)); sb.append(")"); return sb.toString(); } @@ -431,6 +574,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.activityType, other.activityType) && java.util.Objects.equals(this.activityAuthor, other.activityAuthor) + && java.util.Objects.equals(this.itemType, other.itemType) + && java.util.Objects.equals(this.itemStatus, other.itemStatus) && super.equals(other); } @@ -445,6 +590,8 @@ public int hashCode() { result = (result * PRIME) + (this.activityAuthor == null ? 43 : this.activityAuthor.hashCode()); + result = (result * PRIME) + (this.itemType == null ? 43 : this.itemType.hashCode()); + result = (result * PRIME) + (this.itemStatus == null ? 43 : this.itemStatus.hashCode()); return result; } } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/AvailabilityDomain.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/AvailabilityDomain.java deleted file mode 100644 index 40934a9c7fc..00000000000 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/AvailabilityDomain.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.cims.model; - -/** The list of availability domains supported by the Support Management API. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") -public enum AvailabilityDomain implements com.oracle.bmc.http.internal.BmcEnum { - Dev1("DEV_1"), - Dev2("DEV_2"), - Dev3("DEV_3"), - IntegNext1("INTEG_NEXT_1"), - IntegStable1("INTEG_STABLE_1"), - SeaAd1("SEA_AD_1"), - SeaAd2("SEA_AD_2"), - SeaAd3("SEA_AD_3"), - PhxAd1("PHX_AD_1"), - PhxAd2("PHX_AD_2"), - PhxAd3("PHX_AD_3"), - UsAshburnAd1("US_ASHBURN_AD_1"), - UsAshburnAd2("US_ASHBURN_AD_2"), - UsAshburnAd3("US_ASHBURN_AD_3"), - UsAshburnAd4("US_ASHBURN_AD_4"), - EuFrankfurt1Ad1("EU_FRANKFURT_1_AD_1"), - EuFrankfurt1Ad2("EU_FRANKFURT_1_AD_2"), - EuFrankfurt1Ad3("EU_FRANKFURT_1_AD_3"), - UkLondon1Ad1("UK_LONDON_1_AD_1"), - UkLondon1Ad2("UK_LONDON_1_AD_2"), - UkLondon1Ad3("UK_LONDON_1_AD_3"), - CaToronto1Ad1("CA_TORONTO_1_AD_1"), - ApTokyo1Ad1("AP_TOKYO_1_AD_1"), - ApSeoul1Ad1("AP_SEOUL_1_AD_1"), - ApMumbai1Ad1("AP_MUMBAI_1_AD_1"), - SaSaopaulo1Ad1("SA_SAOPAULO_1_AD_1"), - MeJeddah1Ad1("ME_JEDDAH_1_AD_1"), - ApOsaka1Ad1("AP_OSAKA_1_AD_1"), - ApSydney1Ad1("AP_SYDNEY_1_AD_1"), - EuZurich1Ad1("EU_ZURICH_1_AD_1"), - EuAmsterdam1Ad1("EU_AMSTERDAM_1_AD_1"), - ApMelbourne1Ad1("AP_MELBOURNE_1_AD_1"), - CaMontreal1Ad1("CA_MONTREAL_1_AD_1"), - ApHyderabad1Ad1("AP_HYDERABAD_1_AD_1"), - ApChuncheon1Ad1("AP_CHUNCHEON_1_AD_1"), - NoAd("NO_AD"), - - /** - * 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(AvailabilityDomain.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (AvailabilityDomain v : AvailabilityDomain.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - AvailabilityDomain(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static AvailabilityDomain create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'AvailabilityDomain', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } -} diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Category.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Category.java index ecd6a69f3dd..55fb6d7797f 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Category.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Category.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details about the category associated with the support ticket.
+ * Details about the service category associated with the support ticket.
* 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 @@ -30,12 +30,12 @@ public Category(String categoryKey, String name) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Unique identifier for the category. */ + /** Unique identifier for the service category. */ @com.fasterxml.jackson.annotation.JsonProperty("categoryKey") private String categoryKey; /** - * Unique identifier for the category. + * Unique identifier for the service category. * * @param categoryKey the value to set * @return this builder @@ -45,12 +45,12 @@ public Builder categoryKey(String categoryKey) { this.__explicitlySet__.add("categoryKey"); return this; } - /** The name of the category. For example, {@code Compute} or {@code Identity}. */ + /** The name of the service category. For example, {@code Compute} or {@code Identity}. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** - * The name of the category. For example, {@code Compute} or {@code Identity}. + * The name of the service category. For example, {@code Compute} or {@code Identity}. * * @param name the value to set * @return this builder @@ -93,12 +93,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Unique identifier for the category. */ + /** Unique identifier for the service category. */ @com.fasterxml.jackson.annotation.JsonProperty("categoryKey") private final String categoryKey; /** - * Unique identifier for the category. + * Unique identifier for the service category. * * @return the value */ @@ -106,12 +106,12 @@ public String getCategoryKey() { return categoryKey; } - /** The name of the category. For example, {@code Compute} or {@code Identity}. */ + /** The name of the service category. For example, {@code Compute} or {@code Identity}. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** - * The name of the category. For example, {@code Compute} or {@code Identity}. + * The name of the service category. For example, {@code Compute} or {@code Identity}. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Contact.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Contact.java index 9e27ac8e8d6..4935caa4b2b 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Contact.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Contact.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Contact details for the customer.
+ * Contact details for the customer. Avoid entering confidential 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 @@ -24,14 +24,20 @@ public final class Contact extends com.oracle.bmc.http.client.internal.Explicitl @java.beans.ConstructorProperties({ "contactName", "contactEmail", + "email", "contactPhone", "contactType" }) public Contact( - String contactName, String contactEmail, String contactPhone, ContactType contactType) { + String contactName, + String contactEmail, + String email, + String contactPhone, + ContactType contactType) { super(); this.contactName = contactName; this.contactEmail = contactEmail; + this.email = email; this.contactPhone = contactPhone; this.contactType = contactType; } @@ -68,6 +74,21 @@ public Builder contactEmail(String contactEmail) { this.__explicitlySet__.add("contactEmail"); return this; } + /** The email of the contact person. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + /** + * The email of the contact person. + * + * @param email the value to set + * @return this builder + */ + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } /** The phone number of the contact person. */ @com.fasterxml.jackson.annotation.JsonProperty("contactPhone") private String contactPhone; @@ -107,6 +128,7 @@ public Contact build() { new Contact( this.contactName, this.contactEmail, + this.email, this.contactPhone, this.contactType); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -123,6 +145,9 @@ public Builder copy(Contact model) { if (model.wasPropertyExplicitlySet("contactEmail")) { this.contactEmail(model.getContactEmail()); } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } if (model.wasPropertyExplicitlySet("contactPhone")) { this.contactPhone(model.getContactPhone()); } @@ -168,6 +193,19 @@ public String getContactEmail() { return contactEmail; } + /** The email of the contact person. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; + + /** + * The email of the contact person. + * + * @return the value + */ + public String getEmail() { + return email; + } + /** The phone number of the contact person. */ @com.fasterxml.jackson.annotation.JsonProperty("contactPhone") private final String contactPhone; @@ -260,6 +298,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("contactName=").append(String.valueOf(this.contactName)); sb.append(", contactEmail=").append(String.valueOf(this.contactEmail)); + sb.append(", email=").append(String.valueOf(this.email)); sb.append(", contactPhone=").append(String.valueOf(this.contactPhone)); sb.append(", contactType=").append(String.valueOf(this.contactType)); sb.append(")"); @@ -278,6 +317,7 @@ public boolean equals(Object o) { Contact other = (Contact) o; return java.util.Objects.equals(this.contactName, other.contactName) && java.util.Objects.equals(this.contactEmail, other.contactEmail) + && java.util.Objects.equals(this.email, other.email) && java.util.Objects.equals(this.contactPhone, other.contactPhone) && java.util.Objects.equals(this.contactType, other.contactType) && super.equals(other); @@ -289,6 +329,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.contactName == null ? 43 : this.contactName.hashCode()); result = (result * PRIME) + (this.contactEmail == null ? 43 : this.contactEmail.hashCode()); + result = (result * PRIME) + (this.email == null ? 43 : this.email.hashCode()); result = (result * PRIME) + (this.contactPhone == null ? 43 : this.contactPhone.hashCode()); result = (result * PRIME) + (this.contactType == null ? 43 : this.contactType.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ContextualData.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ContextualData.java index b6a40e7db80..bebff3fe85c 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ContextualData.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ContextualData.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cims.model; /** - *
+ * Information collected from user context during ticket creation.
* 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 @@ -34,12 +34,12 @@ public ContextualData( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The unique client identifier */ + /** The unique identifier for the client. */ @com.fasterxml.jackson.annotation.JsonProperty("clientId") private String clientId; /** - * The unique client identifier + * The unique identifier for the client. * * @param clientId the value to set * @return this builder @@ -49,12 +49,12 @@ public Builder clientId(String clientId) { this.__explicitlySet__.add("clientId"); return this; } - /** The schema name */ + /** The name assigned to the schema. */ @com.fasterxml.jackson.annotation.JsonProperty("schemaName") private String schemaName; /** - * The schema name + * The name assigned to the schema. * * @param schemaName the value to set * @return this builder @@ -64,12 +64,12 @@ public Builder schemaName(String schemaName) { this.__explicitlySet__.add("schemaName"); return this; } - /** The schema version */ + /** The version of the schema. */ @com.fasterxml.jackson.annotation.JsonProperty("schemaVersion") private String schemaVersion; /** - * The schema version + * The version of the schema. * * @param schemaVersion the value to set * @return this builder @@ -79,12 +79,12 @@ public Builder schemaVersion(String schemaVersion) { this.__explicitlySet__.add("schemaVersion"); return this; } - /** The context data payload */ + /** The payload for the contextual data. */ @com.fasterxml.jackson.annotation.JsonProperty("payload") private String payload; /** - * The context data payload + * The payload for the contextual data. * * @param payload the value to set * @return this builder @@ -135,12 +135,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The unique client identifier */ + /** The unique identifier for the client. */ @com.fasterxml.jackson.annotation.JsonProperty("clientId") private final String clientId; /** - * The unique client identifier + * The unique identifier for the client. * * @return the value */ @@ -148,12 +148,12 @@ public String getClientId() { return clientId; } - /** The schema name */ + /** The name assigned to the schema. */ @com.fasterxml.jackson.annotation.JsonProperty("schemaName") private final String schemaName; /** - * The schema name + * The name assigned to the schema. * * @return the value */ @@ -161,12 +161,12 @@ public String getSchemaName() { return schemaName; } - /** The schema version */ + /** The version of the schema. */ @com.fasterxml.jackson.annotation.JsonProperty("schemaVersion") private final String schemaVersion; /** - * The schema version + * The version of the schema. * * @return the value */ @@ -174,12 +174,12 @@ public String getSchemaVersion() { return schemaVersion; } - /** The context data payload */ + /** The payload for the contextual data. */ @com.fasterxml.jackson.annotation.JsonProperty("payload") private final String payload; /** - * The context data payload + * The payload for the contextual data. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateAccountItemDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateAccountItemDetails.java new file mode 100644 index 00000000000..a0f449a7997 --- /dev/null +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateAccountItemDetails.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cims.model; + +/** + * Details about the issue that the account support ticket relates to. Avoid entering confidential + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAccountItemDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAccountItemDetails extends CreateItemDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("category") + private CreateCategoryDetails category; + + public Builder category(CreateCategoryDetails category) { + this.category = category; + this.__explicitlySet__.add("category"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subCategory") + private CreateSubCategoryDetails subCategory; + + public Builder subCategory(CreateSubCategoryDetails subCategory) { + this.subCategory = subCategory; + this.__explicitlySet__.add("subCategory"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("issueType") + private CreateIssueTypeDetails issueType; + + public Builder issueType(CreateIssueTypeDetails issueType) { + this.issueType = issueType; + this.__explicitlySet__.add("issueType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAccountItemDetails build() { + CreateAccountItemDetails model = + new CreateAccountItemDetails( + this.category, this.subCategory, this.issueType, this.name); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAccountItemDetails model) { + if (model.wasPropertyExplicitlySet("category")) { + this.category(model.getCategory()); + } + if (model.wasPropertyExplicitlySet("subCategory")) { + this.subCategory(model.getSubCategory()); + } + if (model.wasPropertyExplicitlySet("issueType")) { + this.issueType(model.getIssueType()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateAccountItemDetails( + CreateCategoryDetails category, + CreateSubCategoryDetails subCategory, + CreateIssueTypeDetails issueType, + String name) { + super(category, subCategory, issueType, name); + } + + @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("CreateAccountItemDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAccountItemDetails)) { + return false; + } + + CreateAccountItemDetails other = (CreateAccountItemDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateCategoryDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateCategoryDetails.java index 6b8b4401cd1..618ffcd1c6d 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateCategoryDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateCategoryDetails.java @@ -5,10 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details for creating the category of the support ticket. - * - *

*Caution:** Avoid using any confidential information when you supply string values using the - * API.
+ * Details for creating the category of the support ticket.
* 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 @@ -34,12 +31,12 @@ public CreateCategoryDetails(String categoryKey) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Unique identifier for the category. */ + /** Unique identifier for the service category. */ @com.fasterxml.jackson.annotation.JsonProperty("categoryKey") private String categoryKey; /** - * Unique identifier for the category. + * Unique identifier for the service category. * * @param categoryKey the value to set * @return this builder @@ -79,12 +76,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Unique identifier for the category. */ + /** Unique identifier for the service category. */ @com.fasterxml.jackson.annotation.JsonProperty("categoryKey") private final String categoryKey; /** - * Unique identifier for the category. + * Unique identifier for the service category. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateIncident.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateIncident.java index 61226da4225..12e0ff0fe6d 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateIncident.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateIncident.java @@ -5,10 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details gathered during the creation of the support ticket. - * - *

*Caution:** Avoid using any confidential information when you supply string values using the - * API.
+ * Details gathered during the creation of the support ticket.
* 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 @@ -75,12 +72,16 @@ public Builder ticket(CreateTicketDetails ticket) { this.__explicitlySet__.add("ticket"); return this; } - /** The Customer Support Identifier number for the support account. */ + /** + * The Customer Support Identifier (CSI) number associated with the support account. The CSI + * is required for technical support tickets and optional for limits and billing tickets. + */ @com.fasterxml.jackson.annotation.JsonProperty("csi") private String csi; /** - * The Customer Support Identifier number for the support account. + * The Customer Support Identifier (CSI) number associated with the support account. The CSI + * is required for technical support tickets and optional for limits and billing tickets. * * @param csi the value to set * @return this builder @@ -90,12 +91,16 @@ public Builder csi(String csi) { this.__explicitlySet__.add("csi"); return this; } - /** The kind of support ticket, such as a technical issue request. */ + /** + * The kind of support ticket, such as a technical support request or a limit increase + * request. + */ @com.fasterxml.jackson.annotation.JsonProperty("problemType") private ProblemType problemType; /** - * The kind of support ticket, such as a technical issue request. + * The kind of support ticket, such as a technical support request or a limit increase + * request. * * @param problemType the value to set * @return this builder @@ -211,12 +216,16 @@ public CreateTicketDetails getTicket() { return ticket; } - /** The Customer Support Identifier number for the support account. */ + /** + * The Customer Support Identifier (CSI) number associated with the support account. The CSI is + * required for technical support tickets and optional for limits and billing tickets. + */ @com.fasterxml.jackson.annotation.JsonProperty("csi") private final String csi; /** - * The Customer Support Identifier number for the support account. + * The Customer Support Identifier (CSI) number associated with the support account. The CSI is + * required for technical support tickets and optional for limits and billing tickets. * * @return the value */ @@ -224,12 +233,14 @@ public String getCsi() { return csi; } - /** The kind of support ticket, such as a technical issue request. */ + /** + * The kind of support ticket, such as a technical support request or a limit increase request. + */ @com.fasterxml.jackson.annotation.JsonProperty("problemType") private final ProblemType problemType; /** - * The kind of support ticket, such as a technical issue request. + * The kind of support ticket, such as a technical support request or a limit increase request. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateIssueTypeDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateIssueTypeDetails.java index 3be41fe55f3..b376e6230c0 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateIssueTypeDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateIssueTypeDetails.java @@ -5,10 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details for creating the issue type of the support ticket. - * - *

*Caution:** Avoid using any confidential information when you supply string values using the - * API.
+ * Details for creating the issue type of the support ticket.
* 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 diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateItemDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateItemDetails.java index ae167417b0f..e83000055e9 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateItemDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateItemDetails.java @@ -5,10 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details gathered during item creation. - * - *

*Caution:** Avoid using any confidential information when you supply string values using the - * API.
+ * Details gathered during ticket creation.
* 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 @@ -30,7 +27,10 @@ name = "tech"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateLimitItemDetails.class, - name = "limit") + name = "limit"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateAccountItemDetails.class, + name = "account") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) @@ -70,12 +70,12 @@ public CreateIssueTypeDetails getIssueType() { return issueType; } - /** The display name of the item. */ + /** The display name of the ticket. Avoid entering confidential information. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** - * The display name of the item. + * The display name of the ticket. Avoid entering confidential information. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateLimitItemDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateLimitItemDetails.java index 3b13a6e1bb0..5012a5fc4aa 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateLimitItemDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateLimitItemDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Reserved for future use.
+ * Details about the service limit increase request. Avoid entering confidential 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 @@ -92,12 +92,12 @@ public Builder currentUsage(Integer currentUsage) { this.__explicitlySet__.add("currentUsage"); return this; } - /** Reserved for future use. */ + /** The new service limit being requested. */ @com.fasterxml.jackson.annotation.JsonProperty("requestedLimit") private Integer requestedLimit; /** - * Reserved for future use. + * The new service limit being requested. * * @param requestedLimit the value to set * @return this builder @@ -225,12 +225,12 @@ public Integer getCurrentUsage() { return currentUsage; } - /** Reserved for future use. */ + /** The new service limit being requested. */ @com.fasterxml.jackson.annotation.JsonProperty("requestedLimit") private final Integer requestedLimit; /** - * Reserved for future use. + * The new service limit being requested. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateResourceDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateResourceDetails.java index be4cf5463c2..4e6de980237 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateResourceDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateResourceDetails.java @@ -5,10 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details about the resource that the support ticket relates to. - * - *

*Caution:** Avoid using any confidential information when you supply string values using the - * API.
+ * Details about the resource that the support ticket relates to.
* 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 @@ -26,13 +23,11 @@ public final class CreateResourceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"item", "region", "availabilityDomain"}) - public CreateResourceDetails( - CreateItemDetails item, Region region, AvailabilityDomain availabilityDomain) { + @java.beans.ConstructorProperties({"item", "region"}) + public CreateResourceDetails(CreateItemDetails item, String region) { super(); this.item = item; this.region = region; - this.availabilityDomain = availabilityDomain; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -48,7 +43,7 @@ public Builder item(CreateItemDetails item) { } /** The list of available Oracle Cloud Infrastructure regions. */ @com.fasterxml.jackson.annotation.JsonProperty("region") - private Region region; + private String region; /** * The list of available Oracle Cloud Infrastructure regions. @@ -56,33 +51,17 @@ public Builder item(CreateItemDetails item) { * @param region the value to set * @return this builder */ - public Builder region(Region region) { + public Builder region(String region) { this.region = region; this.__explicitlySet__.add("region"); return this; } - /** The list of available Oracle Cloud Infrastructure availability domains. */ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private AvailabilityDomain availabilityDomain; - - /** - * The list of available Oracle Cloud Infrastructure availability domains. - * - * @param availabilityDomain the value to set - * @return this builder - */ - public Builder availabilityDomain(AvailabilityDomain availabilityDomain) { - this.availabilityDomain = availabilityDomain; - this.__explicitlySet__.add("availabilityDomain"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public CreateResourceDetails build() { - CreateResourceDetails model = - new CreateResourceDetails(this.item, this.region, this.availabilityDomain); + CreateResourceDetails model = new CreateResourceDetails(this.item, this.region); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -97,9 +76,6 @@ public Builder copy(CreateResourceDetails model) { if (model.wasPropertyExplicitlySet("region")) { this.region(model.getRegion()); } - if (model.wasPropertyExplicitlySet("availabilityDomain")) { - this.availabilityDomain(model.getAvailabilityDomain()); - } return this; } } @@ -122,30 +98,17 @@ public CreateItemDetails getItem() { /** The list of available Oracle Cloud Infrastructure regions. */ @com.fasterxml.jackson.annotation.JsonProperty("region") - private final Region region; + private final String region; /** * The list of available Oracle Cloud Infrastructure regions. * * @return the value */ - public Region getRegion() { + public String getRegion() { return region; } - /** The list of available Oracle Cloud Infrastructure availability domains. */ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private final AvailabilityDomain availabilityDomain; - - /** - * The list of available Oracle Cloud Infrastructure availability domains. - * - * @return the value - */ - public AvailabilityDomain getAvailabilityDomain() { - return availabilityDomain; - } - @Override public String toString() { return this.toString(true); @@ -163,7 +126,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("item=").append(String.valueOf(this.item)); sb.append(", region=").append(String.valueOf(this.region)); - sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(")"); return sb.toString(); } @@ -180,7 +142,6 @@ public boolean equals(Object o) { CreateResourceDetails other = (CreateResourceDetails) o; return java.util.Objects.equals(this.item, other.item) && java.util.Objects.equals(this.region, other.region) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && super.equals(other); } @@ -190,11 +151,6 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.item == null ? 43 : this.item.hashCode()); result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); - result = - (result * PRIME) - + (this.availabilityDomain == null - ? 43 - : this.availabilityDomain.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateSubCategoryDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateSubCategoryDetails.java index 966465a4a64..01b8162d8ef 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateSubCategoryDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateSubCategoryDetails.java @@ -5,10 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details for creating the subcategory of the support ticket. - * - *

*Caution:** Avoid using any confidential information when you supply string values using the - * API.
+ * Details for creating the service subcategory of the support ticket.
* 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 @@ -34,12 +31,12 @@ public CreateSubCategoryDetails(String subCategoryKey) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Unique identifier for the subcategory. */ + /** Unique identifier for the service subcategory. */ @com.fasterxml.jackson.annotation.JsonProperty("subCategoryKey") private String subCategoryKey; /** - * Unique identifier for the subcategory. + * Unique identifier for the service subcategory. * * @param subCategoryKey the value to set * @return this builder @@ -79,12 +76,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Unique identifier for the subcategory. */ + /** Unique identifier for the service subcategory. */ @com.fasterxml.jackson.annotation.JsonProperty("subCategoryKey") private final String subCategoryKey; /** - * Unique identifier for the subcategory. + * Unique identifier for the service subcategory. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateTechSupportItemDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateTechSupportItemDetails.java index 43d0665f81a..c1c736c4763 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateTechSupportItemDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateTechSupportItemDetails.java @@ -5,10 +5,8 @@ package com.oracle.bmc.cims.model; /** - * Details about the issue that the technical support request relates to. - * - *

*Caution:** Avoid using any confidential information when you supply string values using the - * API.
+ * Details about the issue that the technical support ticket relates to. Avoid entering confidential + * 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 diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateTicketDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateTicketDetails.java index 904c1ff6ebc..f24a3c98f65 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateTicketDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateTicketDetails.java @@ -5,10 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details relevant to the support ticket. - * - *

*Caution:** Avoid using any confidential information when you supply string values using the - * API.
+ * Details relevant to the support ticket.
* 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 @@ -79,12 +76,12 @@ public Builder resourceList(java.util.List resourceList) this.__explicitlySet__.add("resourceList"); return this; } - /** The title of the support ticket. */ + /** The title of the support ticket. Avoid entering confidential information. */ @com.fasterxml.jackson.annotation.JsonProperty("title") private String title; /** - * The title of the support ticket. + * The title of the support ticket. Avoid entering confidential information. * * @param title the value to set * @return this builder @@ -94,12 +91,12 @@ public Builder title(String title) { this.__explicitlySet__.add("title"); return this; } - /** The description of the support ticket. */ + /** The description of the support ticket. Avoid entering confidential information. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; /** - * The description of the support ticket. + * The description of the support ticket. Avoid entering confidential information. * * @param description the value to set * @return this builder @@ -109,16 +106,10 @@ public Builder description(String description) { this.__explicitlySet__.add("description"); return this; } - /** The context from where the ticket is getting created. */ + @com.fasterxml.jackson.annotation.JsonProperty("contextualData") private ContextualData contextualData; - /** - * The context from where the ticket is getting created. - * - * @param contextualData the value to set - * @return this builder - */ public Builder contextualData(ContextualData contextualData) { this.contextualData = contextualData; this.__explicitlySet__.add("contextualData"); @@ -177,6 +168,7 @@ public enum Severity implements com.oracle.bmc.http.internal.BmcEnum { Highest("HIGHEST"), High("HIGH"), Medium("MEDIUM"), + Low("LOW"), ; private final String value; @@ -232,12 +224,12 @@ public java.util.List getResourceList() { return resourceList; } - /** The title of the support ticket. */ + /** The title of the support ticket. Avoid entering confidential information. */ @com.fasterxml.jackson.annotation.JsonProperty("title") private final String title; /** - * The title of the support ticket. + * The title of the support ticket. Avoid entering confidential information. * * @return the value */ @@ -245,12 +237,12 @@ public String getTitle() { return title; } - /** The description of the support ticket. */ + /** The description of the support ticket. Avoid entering confidential information. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private final String description; /** - * The description of the support ticket. + * The description of the support ticket. Avoid entering confidential information. * * @return the value */ @@ -258,15 +250,9 @@ public String getDescription() { return description; } - /** The context from where the ticket is getting created. */ @com.fasterxml.jackson.annotation.JsonProperty("contextualData") private final ContextualData contextualData; - /** - * The context from where the ticket is getting created. - * - * @return the value - */ public ContextualData getContextualData() { return contextualData; } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateUserDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateUserDetails.java index c3d515abefb..3c9260c7aec 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateUserDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/CreateUserDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details about creation of user.
+ * Details for creating a new user.
* 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 @@ -27,30 +27,30 @@ public final class CreateUserDetails "compartmentId", "firstName", "lastName", - "country", "csi", "phone", "timezone", - "organizationName" + "organizationName", + "problemType" }) public CreateUserDetails( String compartmentId, String firstName, String lastName, - String country, String csi, String phone, String timezone, - String organizationName) { + String organizationName, + ProblemType problemType) { super(); this.compartmentId = compartmentId; this.firstName = firstName; this.lastName = lastName; - this.country = country; this.csi = csi; this.phone = phone; this.timezone = timezone; this.organizationName = organizationName; + this.problemType = problemType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -100,27 +100,12 @@ public Builder lastName(String lastName) { this.__explicitlySet__.add("lastName"); return this; } - /** Country of the user. */ - @com.fasterxml.jackson.annotation.JsonProperty("country") - private String country; - - /** - * Country of the user. - * - * @param country the value to set - * @return this builder - */ - public Builder country(String country) { - this.country = country; - this.__explicitlySet__.add("country"); - return this; - } - /** CSI to be associated to the user. */ + /** CSI associated with the user. */ @com.fasterxml.jackson.annotation.JsonProperty("csi") private String csi; /** - * CSI to be associated to the user. + * CSI associated with the user. * * @param csi the value to set * @return this builder @@ -175,6 +160,25 @@ public Builder organizationName(String organizationName) { this.__explicitlySet__.add("organizationName"); return this; } + /** + * The kind of support ticket, such as a technical support request or a limit increase + * request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("problemType") + private ProblemType problemType; + + /** + * The kind of support ticket, such as a technical support request or a limit increase + * request. + * + * @param problemType the value to set + * @return this builder + */ + public Builder problemType(ProblemType problemType) { + this.problemType = problemType; + this.__explicitlySet__.add("problemType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -185,11 +189,11 @@ public CreateUserDetails build() { this.compartmentId, this.firstName, this.lastName, - this.country, this.csi, this.phone, this.timezone, - this.organizationName); + this.organizationName, + this.problemType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -207,9 +211,6 @@ public Builder copy(CreateUserDetails model) { if (model.wasPropertyExplicitlySet("lastName")) { this.lastName(model.getLastName()); } - if (model.wasPropertyExplicitlySet("country")) { - this.country(model.getCountry()); - } if (model.wasPropertyExplicitlySet("csi")) { this.csi(model.getCsi()); } @@ -222,6 +223,9 @@ public Builder copy(CreateUserDetails model) { if (model.wasPropertyExplicitlySet("organizationName")) { this.organizationName(model.getOrganizationName()); } + if (model.wasPropertyExplicitlySet("problemType")) { + this.problemType(model.getProblemType()); + } return this; } } @@ -274,25 +278,12 @@ public String getLastName() { return lastName; } - /** Country of the user. */ - @com.fasterxml.jackson.annotation.JsonProperty("country") - private final String country; - - /** - * Country of the user. - * - * @return the value - */ - public String getCountry() { - return country; - } - - /** CSI to be associated to the user. */ + /** CSI associated with the user. */ @com.fasterxml.jackson.annotation.JsonProperty("csi") private final String csi; /** - * CSI to be associated to the user. + * CSI associated with the user. * * @return the value */ @@ -339,6 +330,21 @@ public String getOrganizationName() { return organizationName; } + /** + * The kind of support ticket, such as a technical support request or a limit increase request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("problemType") + private final ProblemType problemType; + + /** + * The kind of support ticket, such as a technical support request or a limit increase request. + * + * @return the value + */ + public ProblemType getProblemType() { + return problemType; + } + @Override public String toString() { return this.toString(true); @@ -357,11 +363,11 @@ public String toString(boolean includeByteArrayContents) { sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", firstName=").append(String.valueOf(this.firstName)); sb.append(", lastName=").append(String.valueOf(this.lastName)); - sb.append(", country=").append(String.valueOf(this.country)); sb.append(", csi=").append(String.valueOf(this.csi)); sb.append(", phone=").append(String.valueOf(this.phone)); sb.append(", timezone=").append(String.valueOf(this.timezone)); sb.append(", organizationName=").append(String.valueOf(this.organizationName)); + sb.append(", problemType=").append(String.valueOf(this.problemType)); sb.append(")"); return sb.toString(); } @@ -379,11 +385,11 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.firstName, other.firstName) && java.util.Objects.equals(this.lastName, other.lastName) - && java.util.Objects.equals(this.country, other.country) && java.util.Objects.equals(this.csi, other.csi) && java.util.Objects.equals(this.phone, other.phone) && java.util.Objects.equals(this.timezone, other.timezone) && java.util.Objects.equals(this.organizationName, other.organizationName) + && java.util.Objects.equals(this.problemType, other.problemType) && super.equals(other); } @@ -396,13 +402,13 @@ public int hashCode() { + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.firstName == null ? 43 : this.firstName.hashCode()); result = (result * PRIME) + (this.lastName == null ? 43 : this.lastName.hashCode()); - result = (result * PRIME) + (this.country == null ? 43 : this.country.hashCode()); result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); result = (result * PRIME) + (this.phone == null ? 43 : this.phone.hashCode()); result = (result * PRIME) + (this.timezone == null ? 43 : this.timezone.hashCode()); result = (result * PRIME) + (this.organizationName == null ? 43 : this.organizationName.hashCode()); + result = (result * PRIME) + (this.problemType == null ? 43 : this.problemType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ErrorCode.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ErrorCode.java index 30671fb9906..b2a634b4107 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ErrorCode.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ErrorCode.java @@ -4,6 +4,7 @@ */ package com.oracle.bmc.cims.model; +/** Service error codes that can be returned from the API calls. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") public enum ErrorCode implements com.oracle.bmc.http.internal.BmcEnum { ContentEmpty("CONTENT_EMPTY"), @@ -12,10 +13,13 @@ public enum ErrorCode implements com.oracle.bmc.http.internal.BmcEnum { InvalidJsonInput("INVALID_JSON_INPUT"), SslAuthorization("SSL_AUTHORIZATION"), AuthFailed("AUTH_FAILED"), + AuthzFailed("AUTHZ_FAILED"), CsiNotAuthorized("CSI_NOT_AUTHORIZED"), UserPolicyNotAuthorized("USER_POLICY_NOT_AUTHORIZED"), EmailNotVerified("EMAIL_NOT_VERIFIED"), EmailNotFound("EMAIL_NOT_FOUND"), + OciEmailNotFound("OCI_EMAIL_NOT_FOUND"), + MosEmailNotFound("MOS_EMAIL_NOT_FOUND"), IdcsEmailNotValid("IDCS_EMAIL_NOT_VALID"), InvalidPath("INVALID_PATH"), MethodNotAllowed("METHOD_NOT_ALLOWED"), @@ -29,6 +33,20 @@ public enum ErrorCode implements com.oracle.bmc.http.internal.BmcEnum { InvalidUserCsi("INVALID_USER_CSI"), DataAlreadyExists("DATA_ALREADY_EXISTS"), AuthUserNotMatching("AUTH_USER_NOT_MATCHING"), + ContactNotApproved("CONTACT_NOT_APPROVED"), + CreateProfileMosFailure("CREATE_PROFILE_MOS_FAILURE"), + CreateProfileCreateOssoFailure("CREATE_PROFILE_CREATE_OSSO_FAILURE"), + CreateProfileIdentityFailure("CREATE_PROFILE_IDENTITY_FAILURE"), + CreateProfileVerifyOssoFailure("CREATE_PROFILE_VERIFY_OSSO_FAILURE"), + ProfileAccountNotVerified("PROFILE_ACCOUNT_NOT_VERIFIED"), + SupportAccountNotFound("SUPPORT_ACCOUNT_NOT_FOUND"), + SupportAccountPendingCsiApproval("SUPPORT_ACCOUNT_PENDING_CSI_APPROVAL"), + FreeTierCustomerSliUnsupported("FREE_TIER_CUSTOMER_SLI_UNSUPPORTED"), + ProfileAccountVerified("PROFILE_ACCOUNT_VERIFIED"), + ProfileVerifiedCsiRequestPending("PROFILE_VERIFIED_CSI_REQUEST_PENDING"), + ProfileVerifiedCsiRequestNotFound("PROFILE_VERIFIED_CSI_REQUEST_NOT_FOUND"), + CreateProfileOrganizationNameInvalid("CREATE_PROFILE_ORGANIZATION_NAME_INVALID"), + CreateProfileEmailInvalid("CREATE_PROFILE_EMAIL_INVALID"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Incident.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Incident.java index 1d566df828a..e070edb9a6d 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Incident.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Incident.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details of about the incident object.
+ * Details about the support ticket.
* 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 @@ -119,12 +119,16 @@ public Builder incidentType(IncidentType incidentType) { this.__explicitlySet__.add("incidentType"); return this; } - /** The kind of support ticket, such as a technical support request. */ + /** + * The kind of support ticket, such as a technical support request or a limit increase + * request. + */ @com.fasterxml.jackson.annotation.JsonProperty("problemType") private ProblemType problemType; /** - * The kind of support ticket, such as a technical support request. + * The kind of support ticket, such as a technical support request or a limit increase + * request. * * @param problemType the value to set * @return this builder @@ -267,12 +271,14 @@ public IncidentType getIncidentType() { return incidentType; } - /** The kind of support ticket, such as a technical support request. */ + /** + * The kind of support ticket, such as a technical support request or a limit increase request. + */ @com.fasterxml.jackson.annotation.JsonProperty("problemType") private final ProblemType problemType; /** - * The kind of support ticket, such as a technical support request. + * The kind of support ticket, such as a technical support request or a limit increase request. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IncidentResourceType.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IncidentResourceType.java index 4f657d5374f..e8210f6bf24 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IncidentResourceType.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IncidentResourceType.java @@ -28,30 +28,36 @@ public final class IncidentResourceType "name", "label", "description", - "serviceCategoryList" + "serviceCategoryList", + "service", + "serviceCategories" }) public IncidentResourceType( String resourceTypeKey, String name, String label, String description, - java.util.List serviceCategoryList) { + java.util.List serviceCategoryList, + java.util.Map service, + java.util.List serviceCategories) { super(); this.resourceTypeKey = resourceTypeKey; this.name = name; this.label = label; this.description = description; this.serviceCategoryList = serviceCategoryList; + this.service = service; + this.serviceCategories = serviceCategories; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Unique identifier of the resource. */ + /** A unique identifier for the resource. */ @com.fasterxml.jackson.annotation.JsonProperty("resourceTypeKey") private String resourceTypeKey; /** - * Unique identifier of the resource. + * A unique identifier for the resource. * * @param resourceTypeKey the value to set * @return this builder @@ -121,6 +127,36 @@ public Builder serviceCategoryList(java.util.List serviceCatego this.__explicitlySet__.add("serviceCategoryList"); return this; } + /** The map of services for MOS Taxonomy. */ + @com.fasterxml.jackson.annotation.JsonProperty("service") + private java.util.Map service; + + /** + * The map of services for MOS Taxonomy. + * + * @param service the value to set + * @return this builder + */ + public Builder service(java.util.Map service) { + this.service = service; + this.__explicitlySet__.add("service"); + return this; + } + /** The service categories list for MOS Taxonomy. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceCategories") + private java.util.List serviceCategories; + + /** + * The service categories list for MOS Taxonomy. + * + * @param serviceCategories the value to set + * @return this builder + */ + public Builder serviceCategories(java.util.List serviceCategories) { + this.serviceCategories = serviceCategories; + this.__explicitlySet__.add("serviceCategories"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -132,7 +168,9 @@ public IncidentResourceType build() { this.name, this.label, this.description, - this.serviceCategoryList); + this.serviceCategoryList, + this.service, + this.serviceCategories); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -156,6 +194,12 @@ public Builder copy(IncidentResourceType model) { if (model.wasPropertyExplicitlySet("serviceCategoryList")) { this.serviceCategoryList(model.getServiceCategoryList()); } + if (model.wasPropertyExplicitlySet("service")) { + this.service(model.getService()); + } + if (model.wasPropertyExplicitlySet("serviceCategories")) { + this.serviceCategories(model.getServiceCategories()); + } return this; } } @@ -169,12 +213,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Unique identifier of the resource. */ + /** A unique identifier for the resource. */ @com.fasterxml.jackson.annotation.JsonProperty("resourceTypeKey") private final String resourceTypeKey; /** - * Unique identifier of the resource. + * A unique identifier for the resource. * * @return the value */ @@ -234,6 +278,32 @@ public java.util.List getServiceCategoryList() { return serviceCategoryList; } + /** The map of services for MOS Taxonomy. */ + @com.fasterxml.jackson.annotation.JsonProperty("service") + private final java.util.Map service; + + /** + * The map of services for MOS Taxonomy. + * + * @return the value + */ + public java.util.Map getService() { + return service; + } + + /** The service categories list for MOS Taxonomy. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceCategories") + private final java.util.List serviceCategories; + + /** + * The service categories list for MOS Taxonomy. + * + * @return the value + */ + public java.util.List getServiceCategories() { + return serviceCategories; + } + @Override public String toString() { return this.toString(true); @@ -254,6 +324,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", label=").append(String.valueOf(this.label)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", serviceCategoryList=").append(String.valueOf(this.serviceCategoryList)); + sb.append(", service=").append(String.valueOf(this.service)); + sb.append(", serviceCategories=").append(String.valueOf(this.serviceCategories)); sb.append(")"); return sb.toString(); } @@ -273,6 +345,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.label, other.label) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.serviceCategoryList, other.serviceCategoryList) + && java.util.Objects.equals(this.service, other.service) + && java.util.Objects.equals(this.serviceCategories, other.serviceCategories) && super.equals(other); } @@ -291,6 +365,10 @@ public int hashCode() { + (this.serviceCategoryList == null ? 43 : this.serviceCategoryList.hashCode()); + result = (result * PRIME) + (this.service == null ? 43 : this.service.hashCode()); + result = + (result * PRIME) + + (this.serviceCategories == null ? 43 : this.serviceCategories.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IncidentSummary.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IncidentSummary.java index ced7d1509f9..f7a7c247b10 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IncidentSummary.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IncidentSummary.java @@ -117,12 +117,16 @@ public Builder incidentType(IncidentResourceType incidentType) { this.__explicitlySet__.add("incidentType"); return this; } - /** The kind of support ticket, such as a technical support request. */ + /** + * The kind of support ticket, such as a technical support request or a limit increase + * request. + */ @com.fasterxml.jackson.annotation.JsonProperty("problemType") private ProblemType problemType; /** - * The kind of support ticket, such as a technical support request. + * The kind of support ticket, such as a technical support request or a limit increase + * request. * * @param problemType the value to set * @return this builder @@ -242,12 +246,14 @@ public IncidentResourceType getIncidentType() { return incidentType; } - /** The kind of support ticket, such as a technical support request. */ + /** + * The kind of support ticket, such as a technical support request or a limit increase request. + */ @com.fasterxml.jackson.annotation.JsonProperty("problemType") private final ProblemType problemType; /** - * The kind of support ticket, such as a technical support request. + * The kind of support ticket, such as a technical support request or a limit increase request. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IncidentType.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IncidentType.java index 3a24008ebd8..2e638a04ae2 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IncidentType.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IncidentType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details about the incident type object.
+ * Details about the incident type associated with the support ticket.
* 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 diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IssueType.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IssueType.java index c267eaf7711..1f7804dc1cb 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IssueType.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/IssueType.java @@ -21,11 +21,12 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class IssueType extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"issueTypeKey", "label"}) - public IssueType(String issueTypeKey, String label) { + @java.beans.ConstructorProperties({"issueTypeKey", "label", "name"}) + public IssueType(String issueTypeKey, String label, String name) { super(); this.issueTypeKey = issueTypeKey; this.label = label; + this.name = name; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -60,12 +61,27 @@ public Builder label(String label) { this.__explicitlySet__.add("label"); return this; } + /** The URL for the contextual documentation. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The URL for the contextual documentation. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public IssueType build() { - IssueType model = new IssueType(this.issueTypeKey, this.label); + IssueType model = new IssueType(this.issueTypeKey, this.label, this.name); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -80,6 +96,9 @@ public Builder copy(IssueType model) { if (model.wasPropertyExplicitlySet("label")) { this.label(model.getLabel()); } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } return this; } } @@ -119,6 +138,19 @@ public String getLabel() { return label; } + /** The URL for the contextual documentation. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The URL for the contextual documentation. + * + * @return the value + */ + public String getName() { + return name; + } + @Override public String toString() { return this.toString(true); @@ -136,6 +168,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("issueTypeKey=").append(String.valueOf(this.issueTypeKey)); sb.append(", label=").append(String.valueOf(this.label)); + sb.append(", name=").append(String.valueOf(this.name)); sb.append(")"); return sb.toString(); } @@ -152,6 +185,7 @@ public boolean equals(Object o) { IssueType other = (IssueType) o; return java.util.Objects.equals(this.issueTypeKey, other.issueTypeKey) && java.util.Objects.equals(this.label, other.label) + && java.util.Objects.equals(this.name, other.name) && super.equals(other); } @@ -161,6 +195,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.issueTypeKey == null ? 43 : this.issueTypeKey.hashCode()); result = (result * PRIME) + (this.label == null ? 43 : this.label.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Item.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Item.java index 66edbf46a4b..28b5795159a 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Item.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Item.java @@ -22,6 +22,9 @@ property = "type", defaultImpl = Item.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AccountItem.class, + name = "account"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = LimitItem.class, name = "limit"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = TechSupportItem.class, @@ -62,12 +65,12 @@ public String getItemKey() { return itemKey; } - /** The display name of the item. */ + /** The display name of the item. Avoid entering confidential information. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** - * The display name of the item. + * The display name of the item. Avoid entering confidential information. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/LimitItem.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/LimitItem.java index 449f6427d15..74488bc60d0 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/LimitItem.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/LimitItem.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Reserved for future use.
+ * Details about the LimitItem object.
* 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 @@ -70,12 +70,12 @@ public Builder issueType(IssueType issueType) { this.__explicitlySet__.add("issueType"); return this; } - /** The currently available limit of the resource. */ + /** The current service limit for the resource. */ @com.fasterxml.jackson.annotation.JsonProperty("currentLimit") private Integer currentLimit; /** - * The currently available limit of the resource. + * The current service limit for the resource. * * @param currentLimit the value to set * @return this builder @@ -85,12 +85,12 @@ public Builder currentLimit(Integer currentLimit) { this.__explicitlySet__.add("currentLimit"); return this; } - /** The current usage of the resource. */ + /** The current resource usage. */ @com.fasterxml.jackson.annotation.JsonProperty("currentUsage") private Integer currentUsage; /** - * The current usage of the resource. + * The current resource usage. * * @param currentUsage the value to set * @return this builder @@ -100,12 +100,12 @@ public Builder currentUsage(Integer currentUsage) { this.__explicitlySet__.add("currentUsage"); return this; } - /** The requested limit for the resource. */ + /** The new service limit being requested for the resource. */ @com.fasterxml.jackson.annotation.JsonProperty("requestedLimit") private Integer requestedLimit; /** - * The requested limit for the resource. + * The new service limit being requested for the resource. * * @param requestedLimit the value to set * @return this builder @@ -212,12 +212,12 @@ public LimitItem( this.limitStatus = limitStatus; } - /** The currently available limit of the resource. */ + /** The current service limit for the resource. */ @com.fasterxml.jackson.annotation.JsonProperty("currentLimit") private final Integer currentLimit; /** - * The currently available limit of the resource. + * The current service limit for the resource. * * @return the value */ @@ -225,12 +225,12 @@ public Integer getCurrentLimit() { return currentLimit; } - /** The current usage of the resource. */ + /** The current resource usage. */ @com.fasterxml.jackson.annotation.JsonProperty("currentUsage") private final Integer currentUsage; /** - * The current usage of the resource. + * The current resource usage. * * @return the value */ @@ -238,12 +238,12 @@ public Integer getCurrentUsage() { return currentUsage; } - /** The requested limit for the resource. */ + /** The new service limit being requested for the resource. */ @com.fasterxml.jackson.annotation.JsonProperty("requestedLimit") private final Integer requestedLimit; /** - * The requested limit for the resource. + * The new service limit being requested for the resource. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ProblemType.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ProblemType.java index fc6285e2c0a..78589b4250f 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ProblemType.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ProblemType.java @@ -4,13 +4,14 @@ */ package com.oracle.bmc.cims.model; -/** The kind of support ticket, such as a technical support request. */ +/** The kind of support ticket, such as a technical support request or a limit increase request. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") public enum ProblemType implements com.oracle.bmc.http.internal.BmcEnum { Limit("LIMIT"), LegacyLimit("LEGACY_LIMIT"), Tech("TECH"), Account("ACCOUNT"), + Taxonomy("TAXONOMY"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Resource.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Resource.java index c297c239550..93d1247934d 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Resource.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Resource.java @@ -21,12 +21,11 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class Resource extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"item", "region", "availabilityDomain"}) - public Resource(Item item, Region region, AvailabilityDomain availabilityDomain) { + @java.beans.ConstructorProperties({"item", "region"}) + public Resource(Item item, String region) { super(); this.item = item; this.region = region; - this.availabilityDomain = availabilityDomain; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -42,7 +41,7 @@ public Builder item(Item item) { } /** The list of available Oracle Cloud Infrastructure regions. */ @com.fasterxml.jackson.annotation.JsonProperty("region") - private Region region; + private String region; /** * The list of available Oracle Cloud Infrastructure regions. @@ -50,32 +49,17 @@ public Builder item(Item item) { * @param region the value to set * @return this builder */ - public Builder region(Region region) { + public Builder region(String region) { this.region = region; this.__explicitlySet__.add("region"); return this; } - /** The list of available Oracle Cloud Infrastructure availability domains. */ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private AvailabilityDomain availabilityDomain; - - /** - * The list of available Oracle Cloud Infrastructure availability domains. - * - * @param availabilityDomain the value to set - * @return this builder - */ - public Builder availabilityDomain(AvailabilityDomain availabilityDomain) { - this.availabilityDomain = availabilityDomain; - this.__explicitlySet__.add("availabilityDomain"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public Resource build() { - Resource model = new Resource(this.item, this.region, this.availabilityDomain); + Resource model = new Resource(this.item, this.region); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -90,9 +74,6 @@ public Builder copy(Resource model) { if (model.wasPropertyExplicitlySet("region")) { this.region(model.getRegion()); } - if (model.wasPropertyExplicitlySet("availabilityDomain")) { - this.availabilityDomain(model.getAvailabilityDomain()); - } return this; } } @@ -115,30 +96,17 @@ public Item getItem() { /** The list of available Oracle Cloud Infrastructure regions. */ @com.fasterxml.jackson.annotation.JsonProperty("region") - private final Region region; + private final String region; /** * The list of available Oracle Cloud Infrastructure regions. * * @return the value */ - public Region getRegion() { + public String getRegion() { return region; } - /** The list of available Oracle Cloud Infrastructure availability domains. */ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private final AvailabilityDomain availabilityDomain; - - /** - * The list of available Oracle Cloud Infrastructure availability domains. - * - * @return the value - */ - public AvailabilityDomain getAvailabilityDomain() { - return availabilityDomain; - } - @Override public String toString() { return this.toString(true); @@ -156,7 +124,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("item=").append(String.valueOf(this.item)); sb.append(", region=").append(String.valueOf(this.region)); - sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(")"); return sb.toString(); } @@ -173,7 +140,6 @@ public boolean equals(Object o) { Resource other = (Resource) o; return java.util.Objects.equals(this.item, other.item) && java.util.Objects.equals(this.region, other.region) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && super.equals(other); } @@ -183,11 +149,6 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.item == null ? 43 : this.item.hashCode()); result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); - result = - (result * PRIME) - + (this.availabilityDomain == null - ? 43 - : this.availabilityDomain.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ServiceCategories.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ServiceCategories.java new file mode 100644 index 00000000000..44a5a5d7379 --- /dev/null +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ServiceCategories.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cims.model; + +/** + * List of Service Categories of a Service for MOS Taxonomy.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServiceCategories.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServiceCategories + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"serviceCategory", "schema", "issueType"}) + public ServiceCategories( + java.util.Map serviceCategory, + String schema, + java.util.Map issueType) { + super(); + this.serviceCategory = serviceCategory; + this.schema = schema; + this.issueType = issueType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Service Category list. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceCategory") + private java.util.Map serviceCategory; + + /** + * Service Category list. + * + * @param serviceCategory the value to set + * @return this builder + */ + public Builder serviceCategory(java.util.Map serviceCategory) { + this.serviceCategory = serviceCategory; + this.__explicitlySet__.add("serviceCategory"); + return this; + } + /** Schema of a Service Category. */ + @com.fasterxml.jackson.annotation.JsonProperty("schema") + private String schema; + + /** + * Schema of a Service Category. + * + * @param schema the value to set + * @return this builder + */ + public Builder schema(String schema) { + this.schema = schema; + this.__explicitlySet__.add("schema"); + return this; + } + /** Issue type list. */ + @com.fasterxml.jackson.annotation.JsonProperty("issueType") + private java.util.Map issueType; + + /** + * Issue type list. + * + * @param issueType the value to set + * @return this builder + */ + public Builder issueType(java.util.Map issueType) { + this.issueType = issueType; + this.__explicitlySet__.add("issueType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ServiceCategories build() { + ServiceCategories model = + new ServiceCategories(this.serviceCategory, this.schema, this.issueType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceCategories model) { + if (model.wasPropertyExplicitlySet("serviceCategory")) { + this.serviceCategory(model.getServiceCategory()); + } + if (model.wasPropertyExplicitlySet("schema")) { + this.schema(model.getSchema()); + } + if (model.wasPropertyExplicitlySet("issueType")) { + this.issueType(model.getIssueType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Service Category list. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceCategory") + private final java.util.Map serviceCategory; + + /** + * Service Category list. + * + * @return the value + */ + public java.util.Map getServiceCategory() { + return serviceCategory; + } + + /** Schema of a Service Category. */ + @com.fasterxml.jackson.annotation.JsonProperty("schema") + private final String schema; + + /** + * Schema of a Service Category. + * + * @return the value + */ + public String getSchema() { + return schema; + } + + /** Issue type list. */ + @com.fasterxml.jackson.annotation.JsonProperty("issueType") + private final java.util.Map issueType; + + /** + * Issue type list. + * + * @return the value + */ + public java.util.Map getIssueType() { + return issueType; + } + + @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("ServiceCategories("); + sb.append("super=").append(super.toString()); + sb.append("serviceCategory=").append(String.valueOf(this.serviceCategory)); + sb.append(", schema=").append(String.valueOf(this.schema)); + sb.append(", issueType=").append(String.valueOf(this.issueType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ServiceCategories)) { + return false; + } + + ServiceCategories other = (ServiceCategories) o; + return java.util.Objects.equals(this.serviceCategory, other.serviceCategory) + && java.util.Objects.equals(this.schema, other.schema) + && java.util.Objects.equals(this.issueType, other.issueType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.serviceCategory == null ? 43 : this.serviceCategory.hashCode()); + result = (result * PRIME) + (this.schema == null ? 43 : this.schema.hashCode()); + result = (result * PRIME) + (this.issueType == null ? 43 : this.issueType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ServiceCategory.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ServiceCategory.java index 4708d9fa4fe..55b388c7c17 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ServiceCategory.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/ServiceCategory.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Information about the incident classifier.
+ * Information about the support ticket classifier.
* 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 diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/SubCategory.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/SubCategory.java index 5c450cffe49..603e7551513 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/SubCategory.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/SubCategory.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details about the subcategory associated with the support ticket.
+ * Details about the service subcategory associated with the support ticket.
* 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 @@ -30,12 +30,12 @@ public SubCategory(String subCategoryKey, String name) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Unique identifier for the subcategory. */ + /** Unique identifier for the service subcategory. */ @com.fasterxml.jackson.annotation.JsonProperty("subCategoryKey") private String subCategoryKey; /** - * Unique identifier for the subcategory. + * Unique identifier for the service subcategory. * * @param subCategoryKey the value to set * @return this builder @@ -46,15 +46,15 @@ public Builder subCategoryKey(String subCategoryKey) { return this; } /** - * The name of the subcategory. For example, {@code Backup Count} or {@code Custom Image - * Count}. + * The name of the service subcategory. For example, {@code Backup Count} or {@code Custom + * Image Count}. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** - * The name of the subcategory. For example, {@code Backup Count} or {@code Custom Image - * Count}. + * The name of the service subcategory. For example, {@code Backup Count} or {@code Custom + * Image Count}. * * @param name the value to set * @return this builder @@ -97,12 +97,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Unique identifier for the subcategory. */ + /** Unique identifier for the service subcategory. */ @com.fasterxml.jackson.annotation.JsonProperty("subCategoryKey") private final String subCategoryKey; /** - * Unique identifier for the subcategory. + * Unique identifier for the service subcategory. * * @return the value */ @@ -111,13 +111,15 @@ public String getSubCategoryKey() { } /** - * The name of the subcategory. For example, {@code Backup Count} or {@code Custom Image Count}. + * The name of the service subcategory. For example, {@code Backup Count} or {@code Custom Image + * Count}. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** - * The name of the subcategory. For example, {@code Backup Count} or {@code Custom Image Count}. + * The name of the service subcategory. For example, {@code Backup Count} or {@code Custom Image + * Count}. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/TenancyInformation.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/TenancyInformation.java index e5b988d3138..606fe99133b 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/TenancyInformation.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/TenancyInformation.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details about the customer's tenancy.
+ * Details about the tenancy.
* 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 @@ -32,12 +32,12 @@ public TenancyInformation(String customerSupportKey, String tenancyId) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The Customer Support Identifier number associated with the tenancy. */ + /** The Customer Support Identifier (CSI) number associated with the tenancy. */ @com.fasterxml.jackson.annotation.JsonProperty("customerSupportKey") private String customerSupportKey; /** - * The Customer Support Identifier number associated with the tenancy. + * The Customer Support Identifier (CSI) number associated with the tenancy. * * @param customerSupportKey the value to set * @return this builder @@ -96,12 +96,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The Customer Support Identifier number associated with the tenancy. */ + /** The Customer Support Identifier (CSI) number associated with the tenancy. */ @com.fasterxml.jackson.annotation.JsonProperty("customerSupportKey") private final String customerSupportKey; /** - * The Customer Support Identifier number associated with the tenancy. + * The Customer Support Identifier (CSI) number associated with the tenancy. * * @return the value */ diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Ticket.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Ticket.java index 132b01804f8..3d3a4f2143f 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Ticket.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Ticket.java @@ -273,6 +273,7 @@ public enum Severity implements com.oracle.bmc.http.internal.BmcEnum { Highest("HIGHEST"), High("HIGH"), Medium("MEDIUM"), + Low("LOW"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/TimeZone.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/TimeZone.java index b6a96fbfdbf..5c862381358 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/TimeZone.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/TimeZone.java @@ -4,6 +4,7 @@ */ package com.oracle.bmc.cims.model; +/** The list of timezones supported by the Support Management API. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") public enum TimeZone implements com.oracle.bmc.http.internal.BmcEnum { GreenwichMeanTime("GREENWICH_MEAN_TIME"), diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateActivityItemDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateActivityItemDetails.java index 55fda305031..773a2765eb4 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateActivityItemDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateActivityItemDetails.java @@ -5,10 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details for udpating the support ticket activity. - * - *

*Caution:** Avoid using any confidential information when you supply string values using the - * API.
+ * Details for updating the support ticket activity.
* 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 @@ -120,6 +117,7 @@ public enum ActivityType implements com.oracle.bmc.http.internal.BmcEnum { ProblemDescription("PROBLEM_DESCRIPTION"), Update("UPDATE"), Close("CLOSE"), + Reopen("REOPEN"), ; private final String value; diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateIncident.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateIncident.java index 2481e60d6e4..bda2f512985 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateIncident.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateIncident.java @@ -22,10 +22,11 @@ public final class UpdateIncident extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"ticket"}) - public UpdateIncident(UpdateTicketDetails ticket) { + @java.beans.ConstructorProperties({"ticket", "problemType"}) + public UpdateIncident(UpdateTicketDetails ticket, ProblemType problemType) { super(); this.ticket = ticket; + this.problemType = problemType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -39,12 +40,31 @@ public Builder ticket(UpdateTicketDetails ticket) { this.__explicitlySet__.add("ticket"); return this; } + /** + * The kind of support ticket, such as a technical support request or a limit increase + * request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("problemType") + private ProblemType problemType; + + /** + * The kind of support ticket, such as a technical support request or a limit increase + * request. + * + * @param problemType the value to set + * @return this builder + */ + public Builder problemType(ProblemType problemType) { + this.problemType = problemType; + this.__explicitlySet__.add("problemType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateIncident build() { - UpdateIncident model = new UpdateIncident(this.ticket); + UpdateIncident model = new UpdateIncident(this.ticket, this.problemType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -56,6 +76,9 @@ public Builder copy(UpdateIncident model) { if (model.wasPropertyExplicitlySet("ticket")) { this.ticket(model.getTicket()); } + if (model.wasPropertyExplicitlySet("problemType")) { + this.problemType(model.getProblemType()); + } return this; } } @@ -76,6 +99,21 @@ public UpdateTicketDetails getTicket() { return ticket; } + /** + * The kind of support ticket, such as a technical support request or a limit increase request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("problemType") + private final ProblemType problemType; + + /** + * The kind of support ticket, such as a technical support request or a limit increase request. + * + * @return the value + */ + public ProblemType getProblemType() { + return problemType; + } + @Override public String toString() { return this.toString(true); @@ -92,6 +130,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateIncident("); sb.append("super=").append(super.toString()); sb.append("ticket=").append(String.valueOf(this.ticket)); + sb.append(", problemType=").append(String.valueOf(this.problemType)); sb.append(")"); return sb.toString(); } @@ -106,7 +145,9 @@ public boolean equals(Object o) { } UpdateIncident other = (UpdateIncident) o; - return java.util.Objects.equals(this.ticket, other.ticket) && super.equals(other); + return java.util.Objects.equals(this.ticket, other.ticket) + && java.util.Objects.equals(this.problemType, other.problemType) + && super.equals(other); } @Override @@ -114,6 +155,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.ticket == null ? 43 : this.ticket.hashCode()); + result = (result * PRIME) + (this.problemType == null ? 43 : this.problemType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateItemDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateItemDetails.java index a10872e26e7..207c58c9711 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateItemDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateItemDetails.java @@ -5,10 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details for udpating an item. - * - *

*Caution:** Avoid using any confidential information when you supply string values using the - * API.
+ * Details for updating an item.
* 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 diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateResourceDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateResourceDetails.java index effe94e7ad7..92946934b49 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateResourceDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateResourceDetails.java @@ -5,10 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details about updates to the resource. - * - *

*Caution:** Avoid using any confidential information when you supply string values using the - * API.
+ * Details about updates 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 diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateTicketDetails.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateTicketDetails.java index 3b0304fcc72..97833899a0e 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateTicketDetails.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/UpdateTicketDetails.java @@ -5,10 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details about the ticket updated. - * - *

*Caution:** Avoid using any confidential information when you supply string values using the - * API.
+ * Details about the ticket updated.
* 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 diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/User.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/User.java index 3e158f7b053..fa2f8ead0cf 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/User.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/model/User.java @@ -5,7 +5,7 @@ package com.oracle.bmc.cims.model; /** - * Details about the user object.
+ * Details about the user.
* 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 @@ -31,7 +31,8 @@ public final class User extends com.oracle.bmc.http.client.internal.ExplicitlySe "timezone", "organizationName", "compartmentId", - "contactEmail" + "contactEmail", + "problemType" }) public User( String key, @@ -43,7 +44,8 @@ public User( String timezone, String organizationName, String compartmentId, - String contactEmail) { + String contactEmail, + ProblemType problemType) { super(); this.key = key; this.firstName = firstName; @@ -55,16 +57,17 @@ public User( this.organizationName = organizationName; this.compartmentId = compartmentId; this.contactEmail = contactEmail; + this.problemType = problemType; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Unique identifier for the user. */ + /** A unique identifier for the user. */ @com.fasterxml.jackson.annotation.JsonProperty("key") private String key; /** - * Unique identifier for the user. + * A unique identifier for the user. * * @param key the value to set * @return this builder @@ -74,12 +77,12 @@ public Builder key(String key) { this.__explicitlySet__.add("key"); return this; } - /** First name of the user. */ + /** The user's first name. */ @com.fasterxml.jackson.annotation.JsonProperty("firstName") private String firstName; /** - * First name of the user. + * The user's first name. * * @param firstName the value to set * @return this builder @@ -89,12 +92,12 @@ public Builder firstName(String firstName) { this.__explicitlySet__.add("firstName"); return this; } - /** Last name of the user. */ + /** The user's last name. */ @com.fasterxml.jackson.annotation.JsonProperty("lastName") private String lastName; /** - * Last name of the user. + * The user's last name. * * @param lastName the value to set * @return this builder @@ -104,12 +107,12 @@ public Builder lastName(String lastName) { this.__explicitlySet__.add("lastName"); return this; } - /** Country of the user. */ + /** The country of the user. */ @com.fasterxml.jackson.annotation.JsonProperty("country") private String country; /** - * Country of the user. + * The country of the user. * * @param country the value to set * @return this builder @@ -119,12 +122,12 @@ public Builder country(String country) { this.__explicitlySet__.add("country"); return this; } - /** CSI to be associated to the user. */ + /** The CSI associated with the user. */ @com.fasterxml.jackson.annotation.JsonProperty("csi") private String csi; /** - * CSI to be associated to the user. + * The CSI associated with the user. * * @param csi the value to set * @return this builder @@ -134,12 +137,12 @@ public Builder csi(String csi) { this.__explicitlySet__.add("csi"); return this; } - /** Contact number of the user. */ + /** The user's contact phone number. */ @com.fasterxml.jackson.annotation.JsonProperty("phone") private String phone; /** - * Contact number of the user. + * The user's contact phone number. * * @param phone the value to set * @return this builder @@ -149,12 +152,12 @@ public Builder phone(String phone) { this.__explicitlySet__.add("phone"); return this; } - /** Timezone of the user. */ + /** The timezone of the user. */ @com.fasterxml.jackson.annotation.JsonProperty("timezone") private String timezone; /** - * Timezone of the user. + * The timezone of the user. * * @param timezone the value to set * @return this builder @@ -164,12 +167,12 @@ public Builder timezone(String timezone) { this.__explicitlySet__.add("timezone"); return this; } - /** Organization of the user. */ + /** The company that the user belongs to. */ @com.fasterxml.jackson.annotation.JsonProperty("organizationName") private String organizationName; /** - * Organization of the user. + * The company that the user belongs to. * * @param organizationName the value to set * @return this builder @@ -209,6 +212,25 @@ public Builder contactEmail(String contactEmail) { this.__explicitlySet__.add("contactEmail"); return this; } + /** + * The kind of support ticket, such as a technical support request or a limit increase + * request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("problemType") + private ProblemType problemType; + + /** + * The kind of support ticket, such as a technical support request or a limit increase + * request. + * + * @param problemType the value to set + * @return this builder + */ + public Builder problemType(ProblemType problemType) { + this.problemType = problemType; + this.__explicitlySet__.add("problemType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -225,7 +247,8 @@ public User build() { this.timezone, this.organizationName, this.compartmentId, - this.contactEmail); + this.contactEmail, + this.problemType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -264,6 +287,9 @@ public Builder copy(User model) { if (model.wasPropertyExplicitlySet("contactEmail")) { this.contactEmail(model.getContactEmail()); } + if (model.wasPropertyExplicitlySet("problemType")) { + this.problemType(model.getProblemType()); + } return this; } } @@ -277,12 +303,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Unique identifier for the user. */ + /** A unique identifier for the user. */ @com.fasterxml.jackson.annotation.JsonProperty("key") private final String key; /** - * Unique identifier for the user. + * A unique identifier for the user. * * @return the value */ @@ -290,12 +316,12 @@ public String getKey() { return key; } - /** First name of the user. */ + /** The user's first name. */ @com.fasterxml.jackson.annotation.JsonProperty("firstName") private final String firstName; /** - * First name of the user. + * The user's first name. * * @return the value */ @@ -303,12 +329,12 @@ public String getFirstName() { return firstName; } - /** Last name of the user. */ + /** The user's last name. */ @com.fasterxml.jackson.annotation.JsonProperty("lastName") private final String lastName; /** - * Last name of the user. + * The user's last name. * * @return the value */ @@ -316,12 +342,12 @@ public String getLastName() { return lastName; } - /** Country of the user. */ + /** The country of the user. */ @com.fasterxml.jackson.annotation.JsonProperty("country") private final String country; /** - * Country of the user. + * The country of the user. * * @return the value */ @@ -329,12 +355,12 @@ public String getCountry() { return country; } - /** CSI to be associated to the user. */ + /** The CSI associated with the user. */ @com.fasterxml.jackson.annotation.JsonProperty("csi") private final String csi; /** - * CSI to be associated to the user. + * The CSI associated with the user. * * @return the value */ @@ -342,12 +368,12 @@ public String getCsi() { return csi; } - /** Contact number of the user. */ + /** The user's contact phone number. */ @com.fasterxml.jackson.annotation.JsonProperty("phone") private final String phone; /** - * Contact number of the user. + * The user's contact phone number. * * @return the value */ @@ -355,12 +381,12 @@ public String getPhone() { return phone; } - /** Timezone of the user. */ + /** The timezone of the user. */ @com.fasterxml.jackson.annotation.JsonProperty("timezone") private final String timezone; /** - * Timezone of the user. + * The timezone of the user. * * @return the value */ @@ -368,12 +394,12 @@ public String getTimezone() { return timezone; } - /** Organization of the user. */ + /** The company that the user belongs to. */ @com.fasterxml.jackson.annotation.JsonProperty("organizationName") private final String organizationName; /** - * Organization of the user. + * The company that the user belongs to. * * @return the value */ @@ -407,6 +433,21 @@ public String getContactEmail() { return contactEmail; } + /** + * The kind of support ticket, such as a technical support request or a limit increase request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("problemType") + private final ProblemType problemType; + + /** + * The kind of support ticket, such as a technical support request or a limit increase request. + * + * @return the value + */ + public ProblemType getProblemType() { + return problemType; + } + @Override public String toString() { return this.toString(true); @@ -432,6 +473,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", organizationName=").append(String.valueOf(this.organizationName)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", contactEmail=").append(String.valueOf(this.contactEmail)); + sb.append(", problemType=").append(String.valueOf(this.problemType)); sb.append(")"); return sb.toString(); } @@ -456,6 +498,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.organizationName, other.organizationName) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.contactEmail, other.contactEmail) + && java.util.Objects.equals(this.problemType, other.problemType) && super.equals(other); } @@ -477,6 +520,7 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.contactEmail == null ? 43 : this.contactEmail.hashCode()); + result = (result * PRIME) + (this.problemType == null ? 43 : this.problemType.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/CreateIncidentRequest.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/CreateIncidentRequest.java index 62238848b69..b1329621118 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/CreateIncidentRequest.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/CreateIncidentRequest.java @@ -21,19 +21,6 @@ public class CreateIncidentRequest public com.oracle.bmc.cims.model.CreateIncident getCreateIncidentDetails() { return createIncidentDetails; } - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - private String ocid; - - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - public String getOcid() { - return ocid; - } /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -47,6 +34,19 @@ public String getOcid() { public String getOpcRequestId() { return opcRequestId; } + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + private String ocid; + + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + public String getOcid() { + return ocid; + } /** The region of the tenancy. */ private String homeregion; @@ -54,6 +54,34 @@ public String getOpcRequestId() { public String getHomeregion() { return homeregion; } + /** Token type that determine which cloud provider the request come from. */ + private String bearertokentype; + + /** Token type that determine which cloud provider the request come from. */ + public String getBearertokentype() { + return bearertokentype; + } + /** Token that provided by multi cloud provider, which help to validate the email. */ + private String bearertoken; + + /** Token that provided by multi cloud provider, which help to validate the email. */ + public String getBearertoken() { + return bearertoken; + } + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + private String idtoken; + + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + public String getIdtoken() { + return idtoken; + } + /** The OCID of identity domain. */ + private String domainid; + + /** The OCID of identity domain. */ + public String getDomainid() { + return domainid; + } /** * Alternative accessor for the body parameter. @@ -87,6 +115,24 @@ public Builder createIncidentDetails( return this; } + /** + * 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 = null; + + /** + * 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 instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + /** * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle * Cloud Infrastructure account. @@ -105,35 +151,73 @@ public Builder ocid(String ocid) { return this; } + /** The region of the tenancy. */ + private String homeregion = null; + + /** + * The region of the tenancy. + * + * @param homeregion the value to set + * @return this builder instance + */ + public Builder homeregion(String homeregion) { + this.homeregion = homeregion; + return this; + } + + /** Token type that determine which cloud provider the request come from. */ + private String bearertokentype = null; + /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * Token type that determine which cloud provider the request come from. + * + * @param bearertokentype the value to set + * @return this builder instance */ - private String opcRequestId = null; + public Builder bearertokentype(String bearertokentype) { + this.bearertokentype = bearertokentype; + return this; + } + + /** Token that provided by multi cloud provider, which help to validate the email. */ + private String bearertoken = null; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * Token that provided by multi cloud provider, which help to validate the email. * - * @param opcRequestId the value to set + * @param bearertoken the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder bearertoken(String bearertoken) { + this.bearertoken = bearertoken; return this; } - /** The region of the tenancy. */ - private String homeregion = null; + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + private String idtoken = null; /** - * The region of the tenancy. + * IdToken that provided by multi cloud provider, which help to validate the email. * - * @param homeregion the value to set + * @param idtoken the value to set * @return this builder instance */ - public Builder homeregion(String homeregion) { - this.homeregion = homeregion; + public Builder idtoken(String idtoken) { + this.idtoken = idtoken; + return this; + } + + /** The OCID of identity domain. */ + private String domainid = null; + + /** + * The OCID of identity domain. + * + * @param domainid the value to set + * @return this builder instance + */ + public Builder domainid(String domainid) { + this.domainid = domainid; return this; } @@ -168,9 +252,13 @@ public Builder retryConfiguration( */ public Builder copy(CreateIncidentRequest o) { createIncidentDetails(o.getCreateIncidentDetails()); - ocid(o.getOcid()); opcRequestId(o.getOpcRequestId()); + ocid(o.getOcid()); homeregion(o.getHomeregion()); + bearertokentype(o.getBearertokentype()); + bearertoken(o.getBearertoken()); + idtoken(o.getIdtoken()); + domainid(o.getDomainid()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -218,11 +306,16 @@ public CreateIncidentRequest build() { public CreateIncidentRequest buildWithoutInvocationCallback() { CreateIncidentRequest request = new CreateIncidentRequest(); request.createIncidentDetails = createIncidentDetails; - request.ocid = ocid; request.opcRequestId = opcRequestId; + request.ocid = ocid; request.homeregion = homeregion; + request.bearertokentype = bearertokentype; + request.bearertoken = bearertoken; + request.idtoken = idtoken; + request.domainid = domainid; return request; - // new CreateIncidentRequest(createIncidentDetails, ocid, opcRequestId, homeregion); + // new CreateIncidentRequest(createIncidentDetails, opcRequestId, ocid, homeregion, + // bearertokentype, bearertoken, idtoken, domainid); } } @@ -234,9 +327,13 @@ public CreateIncidentRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .createIncidentDetails(createIncidentDetails) - .ocid(ocid) .opcRequestId(opcRequestId) - .homeregion(homeregion); + .ocid(ocid) + .homeregion(homeregion) + .bearertokentype(bearertokentype) + .bearertoken(bearertoken) + .idtoken(idtoken) + .domainid(domainid); } /** @@ -254,9 +351,13 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",createIncidentDetails=").append(String.valueOf(this.createIncidentDetails)); - sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",homeregion=").append(String.valueOf(this.homeregion)); + sb.append(",bearertokentype=").append(String.valueOf(this.bearertokentype)); + sb.append(",bearertoken=").append(String.valueOf(this.bearertoken)); + sb.append(",idtoken=").append(String.valueOf(this.idtoken)); + sb.append(",domainid=").append(String.valueOf(this.domainid)); sb.append(")"); return sb.toString(); } @@ -273,9 +374,13 @@ public boolean equals(Object o) { CreateIncidentRequest other = (CreateIncidentRequest) o; return super.equals(o) && java.util.Objects.equals(this.createIncidentDetails, other.createIncidentDetails) - && java.util.Objects.equals(this.ocid, other.ocid) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.homeregion, other.homeregion); + && java.util.Objects.equals(this.ocid, other.ocid) + && java.util.Objects.equals(this.homeregion, other.homeregion) + && java.util.Objects.equals(this.bearertokentype, other.bearertokentype) + && java.util.Objects.equals(this.bearertoken, other.bearertoken) + && java.util.Objects.equals(this.idtoken, other.idtoken) + && java.util.Objects.equals(this.domainid, other.domainid); } @Override @@ -287,9 +392,15 @@ public int hashCode() { + (this.createIncidentDetails == null ? 43 : this.createIncidentDetails.hashCode()); - result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.homeregion == null ? 43 : this.homeregion.hashCode()); + result = + (result * PRIME) + + (this.bearertokentype == null ? 43 : this.bearertokentype.hashCode()); + result = (result * PRIME) + (this.bearertoken == null ? 43 : this.bearertoken.hashCode()); + result = (result * PRIME) + (this.idtoken == null ? 43 : this.idtoken.hashCode()); + result = (result * PRIME) + (this.domainid == null ? 43 : this.domainid.hashCode()); return result; } } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/CreateUserRequest.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/GetCsiNumberRequest.java similarity index 52% rename from bmc-cims/src/main/java/com/oracle/bmc/cims/requests/CreateUserRequest.java rename to bmc-cims/src/main/java/com/oracle/bmc/cims/requests/GetCsiNumberRequest.java index ddcb3cbc52a..ac5726b0748 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/CreateUserRequest.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/GetCsiNumberRequest.java @@ -7,32 +7,25 @@ import com.oracle.bmc.cims.model.*; /** * Example: Click here to see how to use CreateUserRequest. + * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/cims/GetCsiNumberExample.java.html" + * target="_blank" rel="noopener noreferrer">here to see how to use GetCsiNumberRequest. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") -public class CreateUserRequest - extends com.oracle.bmc.requests.BmcRequest { +public class GetCsiNumberRequest extends com.oracle.bmc.requests.BmcRequest { - /** User information */ - private com.oracle.bmc.cims.model.CreateUserDetails createUserDetails; + /** Tenancy Ocid in oracle cloud Infrastructure */ + private String tenantId; - /** User information */ - public com.oracle.bmc.cims.model.CreateUserDetails getCreateUserDetails() { - return createUserDetails; + /** Tenancy Ocid in oracle cloud Infrastructure */ + public String getTenantId() { + return tenantId; } - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - private String ocid; + /** Home region of the customer which is part of oracle cloud infrastructure regions */ + private String region; - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - public String getOcid() { - return ocid; + /** Home region of the customer which is part of oracle cloud infrastructure regions */ + public String getRegion() { + return region; } /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -47,6 +40,19 @@ public String getOcid() { public String getOpcRequestId() { return opcRequestId; } + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + private String ocid; + + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + public String getOcid() { + return ocid; + } /** The region of the tenancy. */ private String homeregion; @@ -54,54 +60,66 @@ public String getOpcRequestId() { public String getHomeregion() { return homeregion; } + /** Token type that determine which cloud provider the request come from. */ + private String bearertokentype; - /** - * Alternative accessor for the body parameter. - * - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.cims.model.CreateUserDetails getBody$() { - return createUserDetails; + /** Token type that determine which cloud provider the request come from. */ + public String getBearertokentype() { + return bearertokentype; + } + /** Token that provided by multi cloud provider, which help to validate the email. */ + private String bearertoken; + + /** Token that provided by multi cloud provider, which help to validate the email. */ + public String getBearertoken() { + return bearertoken; + } + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + private String idtoken; + + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + public String getIdtoken() { + return idtoken; + } + /** The OCID of identity domain. */ + private String domainid; + + /** The OCID of identity domain. */ + public String getDomainid() { + return domainid; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - CreateUserRequest, com.oracle.bmc.cims.model.CreateUserDetails> { + GetCsiNumberRequest, java.lang.Void> { private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** User information */ - private com.oracle.bmc.cims.model.CreateUserDetails createUserDetails = null; + /** Tenancy Ocid in oracle cloud Infrastructure */ + private String tenantId = null; /** - * User information + * Tenancy Ocid in oracle cloud Infrastructure * - * @param createUserDetails the value to set + * @param tenantId the value to set * @return this builder instance */ - public Builder createUserDetails( - com.oracle.bmc.cims.model.CreateUserDetails createUserDetails) { - this.createUserDetails = createUserDetails; + public Builder tenantId(String tenantId) { + this.tenantId = tenantId; return this; } - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - private String ocid = null; + /** Home region of the customer which is part of oracle cloud infrastructure regions */ + private String region = null; /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. + * Home region of the customer which is part of oracle cloud infrastructure regions * - * @param ocid the value to set + * @param region the value to set * @return this builder instance */ - public Builder ocid(String ocid) { - this.ocid = ocid; + public Builder region(String region) { + this.region = region; return this; } @@ -123,6 +141,24 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + private String ocid = null; + + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + * + * @param ocid the value to set + * @return this builder instance + */ + public Builder ocid(String ocid) { + this.ocid = ocid; + return this; + } + /** The region of the tenancy. */ private String homeregion = null; @@ -137,6 +173,62 @@ public Builder homeregion(String homeregion) { return this; } + /** Token type that determine which cloud provider the request come from. */ + private String bearertokentype = null; + + /** + * Token type that determine which cloud provider the request come from. + * + * @param bearertokentype the value to set + * @return this builder instance + */ + public Builder bearertokentype(String bearertokentype) { + this.bearertokentype = bearertokentype; + return this; + } + + /** Token that provided by multi cloud provider, which help to validate the email. */ + private String bearertoken = null; + + /** + * Token that provided by multi cloud provider, which help to validate the email. + * + * @param bearertoken the value to set + * @return this builder instance + */ + public Builder bearertoken(String bearertoken) { + this.bearertoken = bearertoken; + return this; + } + + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + private String idtoken = null; + + /** + * IdToken that provided by multi cloud provider, which help to validate the email. + * + * @param idtoken the value to set + * @return this builder instance + */ + public Builder idtoken(String idtoken) { + this.idtoken = idtoken; + return this; + } + + /** The OCID of identity domain. */ + private String domainid = null; + + /** + * The OCID of identity domain. + * + * @param domainid the value to set + * @return this builder instance + */ + public Builder domainid(String domainid) { + this.domainid = domainid; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -166,18 +258,23 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(CreateUserRequest o) { - createUserDetails(o.getCreateUserDetails()); - ocid(o.getOcid()); + public Builder copy(GetCsiNumberRequest o) { + tenantId(o.getTenantId()); + region(o.getRegion()); opcRequestId(o.getOpcRequestId()); + ocid(o.getOcid()); homeregion(o.getHomeregion()); + bearertokentype(o.getBearertokentype()); + bearertoken(o.getBearertoken()); + idtoken(o.getIdtoken()); + domainid(o.getDomainid()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of CreateUserRequest as configured by this builder + * Build the instance of GetCsiNumberRequest as configured by this builder * *

Note that this method takes calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, @@ -185,44 +282,38 @@ public Builder copy(CreateUserRequest o) { * *

This is the preferred method to build an instance. * - * @return instance of CreateUserRequest + * @return instance of GetCsiNumberRequest */ - public CreateUserRequest build() { - CreateUserRequest request = buildWithoutInvocationCallback(); + public GetCsiNumberRequest build() { + GetCsiNumberRequest 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.cims.model.CreateUserDetails body) { - createUserDetails(body); - return this; - } - - /** - * Build the instance of CreateUserRequest as configured by this builder + * Build the instance of GetCsiNumberRequest as configured by this builder * *

Note that this method does not take calls to {@link * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, * while the method {@link Builder#build} does * - * @return instance of CreateUserRequest + * @return instance of GetCsiNumberRequest */ - public CreateUserRequest buildWithoutInvocationCallback() { - CreateUserRequest request = new CreateUserRequest(); - request.createUserDetails = createUserDetails; - request.ocid = ocid; + public GetCsiNumberRequest buildWithoutInvocationCallback() { + GetCsiNumberRequest request = new GetCsiNumberRequest(); + request.tenantId = tenantId; + request.region = region; request.opcRequestId = opcRequestId; + request.ocid = ocid; request.homeregion = homeregion; + request.bearertokentype = bearertokentype; + request.bearertoken = bearertoken; + request.idtoken = idtoken; + request.domainid = domainid; return request; - // new CreateUserRequest(createUserDetails, ocid, opcRequestId, homeregion); + // new GetCsiNumberRequest(tenantId, region, opcRequestId, ocid, homeregion, + // bearertokentype, bearertoken, idtoken, domainid); } } @@ -233,10 +324,15 @@ public CreateUserRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .createUserDetails(createUserDetails) - .ocid(ocid) + .tenantId(tenantId) + .region(region) .opcRequestId(opcRequestId) - .homeregion(homeregion); + .ocid(ocid) + .homeregion(homeregion) + .bearertokentype(bearertokentype) + .bearertoken(bearertoken) + .idtoken(idtoken) + .domainid(domainid); } /** @@ -253,10 +349,15 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); - sb.append(",createUserDetails=").append(String.valueOf(this.createUserDetails)); - sb.append(",ocid=").append(String.valueOf(this.ocid)); + sb.append(",tenantId=").append(String.valueOf(this.tenantId)); + sb.append(",region=").append(String.valueOf(this.region)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",homeregion=").append(String.valueOf(this.homeregion)); + sb.append(",bearertokentype=").append(String.valueOf(this.bearertokentype)); + sb.append(",bearertoken=").append(String.valueOf(this.bearertoken)); + sb.append(",idtoken=").append(String.valueOf(this.idtoken)); + sb.append(",domainid=").append(String.valueOf(this.domainid)); sb.append(")"); return sb.toString(); } @@ -266,28 +367,38 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateUserRequest)) { + if (!(o instanceof GetCsiNumberRequest)) { return false; } - CreateUserRequest other = (CreateUserRequest) o; + GetCsiNumberRequest other = (GetCsiNumberRequest) o; return super.equals(o) - && java.util.Objects.equals(this.createUserDetails, other.createUserDetails) - && java.util.Objects.equals(this.ocid, other.ocid) + && java.util.Objects.equals(this.tenantId, other.tenantId) + && java.util.Objects.equals(this.region, other.region) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.homeregion, other.homeregion); + && java.util.Objects.equals(this.ocid, other.ocid) + && java.util.Objects.equals(this.homeregion, other.homeregion) + && java.util.Objects.equals(this.bearertokentype, other.bearertokentype) + && java.util.Objects.equals(this.bearertoken, other.bearertoken) + && java.util.Objects.equals(this.idtoken, other.idtoken) + && java.util.Objects.equals(this.domainid, other.domainid); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); - result = - (result * PRIME) - + (this.createUserDetails == null ? 43 : this.createUserDetails.hashCode()); - result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); + result = (result * PRIME) + (this.tenantId == null ? 43 : this.tenantId.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.homeregion == null ? 43 : this.homeregion.hashCode()); + result = + (result * PRIME) + + (this.bearertokentype == null ? 43 : this.bearertokentype.hashCode()); + result = (result * PRIME) + (this.bearertoken == null ? 43 : this.bearertoken.hashCode()); + result = (result * PRIME) + (this.idtoken == null ? 43 : this.idtoken.hashCode()); + result = (result * PRIME) + (this.domainid == null ? 43 : this.domainid.hashCode()); return result; } } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/GetIncidentRequest.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/GetIncidentRequest.java index 75910475fa8..9f9af8f7d1e 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/GetIncidentRequest.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/GetIncidentRequest.java @@ -20,10 +20,23 @@ public class GetIncidentRequest extends com.oracle.bmc.requests.BmcRequest { - /** The system that generated the support ticket, such as My Oracle Support. */ - private String source; + /** + * 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; - /** The system that generated the support ticket, such as My Oracle Support. */ - public String getSource() { - return source; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; } /** * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle @@ -33,19 +39,6 @@ public String getSource() { public String getOcid() { return ocid; } - /** - * 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; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - public String getOpcRequestId() { - return opcRequestId; - } /** The region of the tenancy. */ private String homeregion; @@ -60,17 +53,21 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The system that generated the support ticket, such as My Oracle Support. */ - private String source = null; + /** + * 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 = null; /** - * The system that generated the support ticket, such as My Oracle Support. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. * - * @param source the value to set + * @param opcRequestId the value to set * @return this builder instance */ - public Builder source(String source) { - this.source = source; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } @@ -92,24 +89,6 @@ public Builder ocid(String ocid) { return this; } - /** - * 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 = null; - - /** - * 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 instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - /** The region of the tenancy. */ private String homeregion = null; @@ -154,9 +133,8 @@ public Builder retryConfiguration( * @return this builder instance */ public Builder copy(GetStatusRequest o) { - source(o.getSource()); - ocid(o.getOcid()); opcRequestId(o.getOpcRequestId()); + ocid(o.getOcid()); homeregion(o.getHomeregion()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -192,12 +170,11 @@ public GetStatusRequest build() { */ public GetStatusRequest buildWithoutInvocationCallback() { GetStatusRequest request = new GetStatusRequest(); - request.source = source; - request.ocid = ocid; request.opcRequestId = opcRequestId; + request.ocid = ocid; request.homeregion = homeregion; return request; - // new GetStatusRequest(source, ocid, opcRequestId, homeregion); + // new GetStatusRequest(opcRequestId, ocid, homeregion); } } @@ -207,11 +184,7 @@ public GetStatusRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder() - .source(source) - .ocid(ocid) - .opcRequestId(opcRequestId) - .homeregion(homeregion); + return new Builder().opcRequestId(opcRequestId).ocid(ocid).homeregion(homeregion); } /** @@ -228,9 +201,8 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); - sb.append(",source=").append(String.valueOf(this.source)); - sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",homeregion=").append(String.valueOf(this.homeregion)); sb.append(")"); return sb.toString(); @@ -247,9 +219,8 @@ public boolean equals(Object o) { GetStatusRequest other = (GetStatusRequest) o; return super.equals(o) - && java.util.Objects.equals(this.source, other.source) - && java.util.Objects.equals(this.ocid, other.ocid) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ocid, other.ocid) && java.util.Objects.equals(this.homeregion, other.homeregion); } @@ -257,9 +228,8 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); - result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); - result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.homeregion == null ? 43 : this.homeregion.hashCode()); return result; } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentResourceTypesRequest.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentResourceTypesRequest.java index 2622919f178..6c715eaab62 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentResourceTypesRequest.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentResourceTypesRequest.java @@ -29,26 +29,6 @@ public String getProblemType() { public String getCompartmentId() { return compartmentId; } - /** The Customer Support Identifier associated with the support account. */ - private String csi; - - /** The Customer Support Identifier associated with the support account. */ - public String getCsi() { - return csi; - } - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - private String ocid; - - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - public String getOcid() { - return ocid; - } /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -106,13 +86,33 @@ public com.oracle.bmc.cims.model.SortBy getSortBy() { public com.oracle.bmc.cims.model.SortOrder getSortOrder() { return sortOrder; } - /** The user-friendly name of the incident type. */ + /** The user-friendly name of the support ticket type. */ private String name; - /** The user-friendly name of the incident type. */ + /** The user-friendly name of the support ticket type. */ public String getName() { return name; } + /** The Customer Support Identifier (CSI) associated with the support account. */ + private String csi; + + /** The Customer Support Identifier (CSI) associated with the support account. */ + public String getCsi() { + return csi; + } + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + private String ocid; + + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + public String getOcid() { + return ocid; + } /** The region of the tenancy. */ private String homeregion; @@ -120,6 +120,13 @@ public String getName() { public String getHomeregion() { return homeregion; } + /** The OCID of identity domain. */ + private String domainid; + + /** The OCID of identity domain. */ + public String getDomainid() { + return domainid; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -155,38 +162,6 @@ public Builder compartmentId(String compartmentId) { return this; } - /** The Customer Support Identifier associated with the support account. */ - private String csi = null; - - /** - * The Customer Support Identifier associated with the support account. - * - * @param csi the value to set - * @return this builder instance - */ - public Builder csi(String csi) { - this.csi = csi; - return this; - } - - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - private String ocid = null; - - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - * - * @param ocid the value to set - * @return this builder instance - */ - public Builder ocid(String ocid) { - this.ocid = ocid; - return this; - } - /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -273,11 +248,11 @@ public Builder sortOrder(com.oracle.bmc.cims.model.SortOrder sortOrder) { return this; } - /** The user-friendly name of the incident type. */ + /** The user-friendly name of the support ticket type. */ private String name = null; /** - * The user-friendly name of the incident type. + * The user-friendly name of the support ticket type. * * @param name the value to set * @return this builder instance @@ -287,6 +262,38 @@ public Builder name(String name) { return this; } + /** The Customer Support Identifier (CSI) associated with the support account. */ + private String csi = null; + + /** + * The Customer Support Identifier (CSI) associated with the support account. + * + * @param csi the value to set + * @return this builder instance + */ + public Builder csi(String csi) { + this.csi = csi; + return this; + } + + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + private String ocid = null; + + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + * + * @param ocid the value to set + * @return this builder instance + */ + public Builder ocid(String ocid) { + this.ocid = ocid; + return this; + } + /** The region of the tenancy. */ private String homeregion = null; @@ -301,6 +308,20 @@ public Builder homeregion(String homeregion) { return this; } + /** The OCID of identity domain. */ + private String domainid = null; + + /** + * The OCID of identity domain. + * + * @param domainid the value to set + * @return this builder instance + */ + public Builder domainid(String domainid) { + this.domainid = domainid; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -333,15 +354,16 @@ public Builder retryConfiguration( public Builder copy(ListIncidentResourceTypesRequest o) { problemType(o.getProblemType()); compartmentId(o.getCompartmentId()); - csi(o.getCsi()); - ocid(o.getOcid()); opcRequestId(o.getOpcRequestId()); limit(o.getLimit()); page(o.getPage()); sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); name(o.getName()); + csi(o.getCsi()); + ocid(o.getOcid()); homeregion(o.getHomeregion()); + domainid(o.getDomainid()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -378,18 +400,19 @@ public ListIncidentResourceTypesRequest buildWithoutInvocationCallback() { ListIncidentResourceTypesRequest request = new ListIncidentResourceTypesRequest(); request.problemType = problemType; request.compartmentId = compartmentId; - request.csi = csi; - request.ocid = ocid; request.opcRequestId = opcRequestId; request.limit = limit; request.page = page; request.sortBy = sortBy; request.sortOrder = sortOrder; request.name = name; + request.csi = csi; + request.ocid = ocid; request.homeregion = homeregion; + request.domainid = domainid; return request; - // new ListIncidentResourceTypesRequest(problemType, compartmentId, csi, ocid, - // opcRequestId, limit, page, sortBy, sortOrder, name, homeregion); + // new ListIncidentResourceTypesRequest(problemType, compartmentId, opcRequestId, limit, + // page, sortBy, sortOrder, name, csi, ocid, homeregion, domainid); } } @@ -402,15 +425,16 @@ public Builder toBuilder() { return new Builder() .problemType(problemType) .compartmentId(compartmentId) - .csi(csi) - .ocid(ocid) .opcRequestId(opcRequestId) .limit(limit) .page(page) .sortBy(sortBy) .sortOrder(sortOrder) .name(name) - .homeregion(homeregion); + .csi(csi) + .ocid(ocid) + .homeregion(homeregion) + .domainid(domainid); } /** @@ -429,15 +453,16 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",problemType=").append(String.valueOf(this.problemType)); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(",csi=").append(String.valueOf(this.csi)); - sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",csi=").append(String.valueOf(this.csi)); + sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",homeregion=").append(String.valueOf(this.homeregion)); + sb.append(",domainid=").append(String.valueOf(this.domainid)); sb.append(")"); return sb.toString(); } @@ -455,15 +480,16 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.problemType, other.problemType) && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.csi, other.csi) - && java.util.Objects.equals(this.ocid, other.ocid) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.homeregion, other.homeregion); + && java.util.Objects.equals(this.csi, other.csi) + && java.util.Objects.equals(this.ocid, other.ocid) + && java.util.Objects.equals(this.homeregion, other.homeregion) + && java.util.Objects.equals(this.domainid, other.domainid); } @Override @@ -474,15 +500,16 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); - result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); + result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.homeregion == null ? 43 : this.homeregion.hashCode()); + result = (result * PRIME) + (this.domainid == null ? 43 : this.domainid.hashCode()); return result; } } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentsRequest.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentsRequest.java index d4f1ea5689f..f8b854178a1 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentsRequest.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ListIncidentsRequest.java @@ -13,13 +13,6 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") public class ListIncidentsRequest extends com.oracle.bmc.requests.BmcRequest { - /** The Customer Support Identifier associated with the support account. */ - private String csi; - - /** The Customer Support Identifier associated with the support account. */ - public String getCsi() { - return csi; - } /** The OCID of the tenancy. */ private String compartmentId; @@ -27,18 +20,12 @@ public String getCsi() { public String getCompartmentId() { return compartmentId; } - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - private String ocid; + /** The Customer Support Identifier (CSI) associated with the support account. */ + private String csi; - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - public String getOcid() { - return ocid; + /** The Customer Support Identifier (CSI) associated with the support account. */ + public String getCsi() { + return csi; } /** * For list pagination. The maximum number of results per page, or items to return in a @@ -104,6 +91,19 @@ public String getPage() { public String getOpcRequestId() { return opcRequestId; } + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + private String ocid; + + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + public String getOcid() { + return ocid; + } /** The region of the tenancy. */ private String homeregion; @@ -118,6 +118,34 @@ public String getHomeregion() { public String getProblemType() { return problemType; } + /** Token type that determine which cloud provider the request come from. */ + private String bearertokentype; + + /** Token type that determine which cloud provider the request come from. */ + public String getBearertokentype() { + return bearertokentype; + } + /** Token that provided by multi cloud provider, which help to validate the email. */ + private String bearertoken; + + /** Token that provided by multi cloud provider, which help to validate the email. */ + public String getBearertoken() { + return bearertoken; + } + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + private String idtoken; + + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + public String getIdtoken() { + return idtoken; + } + /** The OCID of identity domain. */ + private String domainid; + + /** The OCID of identity domain. */ + public String getDomainid() { + return domainid; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -125,20 +153,6 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The Customer Support Identifier associated with the support account. */ - private String csi = null; - - /** - * The Customer Support Identifier associated with the support account. - * - * @param csi the value to set - * @return this builder instance - */ - public Builder csi(String csi) { - this.csi = csi; - return this; - } - /** The OCID of the tenancy. */ private String compartmentId = null; @@ -153,21 +167,17 @@ public Builder compartmentId(String compartmentId) { return this; } - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - private String ocid = null; + /** The Customer Support Identifier (CSI) associated with the support account. */ + private String csi = null; /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. + * The Customer Support Identifier (CSI) associated with the support account. * - * @param ocid the value to set + * @param csi the value to set * @return this builder instance */ - public Builder ocid(String ocid) { - this.ocid = ocid; + public Builder csi(String csi) { + this.csi = csi; return this; } @@ -271,6 +281,24 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + private String ocid = null; + + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + * + * @param ocid the value to set + * @return this builder instance + */ + public Builder ocid(String ocid) { + this.ocid = ocid; + return this; + } + /** The region of the tenancy. */ private String homeregion = null; @@ -299,6 +327,62 @@ public Builder problemType(String problemType) { return this; } + /** Token type that determine which cloud provider the request come from. */ + private String bearertokentype = null; + + /** + * Token type that determine which cloud provider the request come from. + * + * @param bearertokentype the value to set + * @return this builder instance + */ + public Builder bearertokentype(String bearertokentype) { + this.bearertokentype = bearertokentype; + return this; + } + + /** Token that provided by multi cloud provider, which help to validate the email. */ + private String bearertoken = null; + + /** + * Token that provided by multi cloud provider, which help to validate the email. + * + * @param bearertoken the value to set + * @return this builder instance + */ + public Builder bearertoken(String bearertoken) { + this.bearertoken = bearertoken; + return this; + } + + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + private String idtoken = null; + + /** + * IdToken that provided by multi cloud provider, which help to validate the email. + * + * @param idtoken the value to set + * @return this builder instance + */ + public Builder idtoken(String idtoken) { + this.idtoken = idtoken; + return this; + } + + /** The OCID of identity domain. */ + private String domainid = null; + + /** + * The OCID of identity domain. + * + * @param domainid the value to set + * @return this builder instance + */ + public Builder domainid(String domainid) { + this.domainid = domainid; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -329,17 +413,21 @@ public Builder retryConfiguration( * @return this builder instance */ public Builder copy(ListIncidentsRequest o) { - csi(o.getCsi()); compartmentId(o.getCompartmentId()); - ocid(o.getOcid()); + csi(o.getCsi()); limit(o.getLimit()); sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); lifecycleState(o.getLifecycleState()); page(o.getPage()); opcRequestId(o.getOpcRequestId()); + ocid(o.getOcid()); homeregion(o.getHomeregion()); problemType(o.getProblemType()); + bearertokentype(o.getBearertokentype()); + bearertoken(o.getBearertoken()); + idtoken(o.getIdtoken()); + domainid(o.getDomainid()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -374,20 +462,25 @@ public ListIncidentsRequest build() { */ public ListIncidentsRequest buildWithoutInvocationCallback() { ListIncidentsRequest request = new ListIncidentsRequest(); - request.csi = csi; request.compartmentId = compartmentId; - request.ocid = ocid; + request.csi = csi; request.limit = limit; request.sortBy = sortBy; request.sortOrder = sortOrder; request.lifecycleState = lifecycleState; request.page = page; request.opcRequestId = opcRequestId; + request.ocid = ocid; request.homeregion = homeregion; request.problemType = problemType; + request.bearertokentype = bearertokentype; + request.bearertoken = bearertoken; + request.idtoken = idtoken; + request.domainid = domainid; return request; - // new ListIncidentsRequest(csi, compartmentId, ocid, limit, sortBy, sortOrder, - // lifecycleState, page, opcRequestId, homeregion, problemType); + // new ListIncidentsRequest(compartmentId, csi, limit, sortBy, sortOrder, + // lifecycleState, page, opcRequestId, ocid, homeregion, problemType, bearertokentype, + // bearertoken, idtoken, domainid); } } @@ -398,17 +491,21 @@ public ListIncidentsRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .csi(csi) .compartmentId(compartmentId) - .ocid(ocid) + .csi(csi) .limit(limit) .sortBy(sortBy) .sortOrder(sortOrder) .lifecycleState(lifecycleState) .page(page) .opcRequestId(opcRequestId) + .ocid(ocid) .homeregion(homeregion) - .problemType(problemType); + .problemType(problemType) + .bearertokentype(bearertokentype) + .bearertoken(bearertoken) + .idtoken(idtoken) + .domainid(domainid); } /** @@ -425,17 +522,21 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); - sb.append(",csi=").append(String.valueOf(this.csi)); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(",ocid=").append(String.valueOf(this.ocid)); + sb.append(",csi=").append(String.valueOf(this.csi)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",homeregion=").append(String.valueOf(this.homeregion)); sb.append(",problemType=").append(String.valueOf(this.problemType)); + sb.append(",bearertokentype=").append(String.valueOf(this.bearertokentype)); + sb.append(",bearertoken=").append(String.valueOf(this.bearertoken)); + sb.append(",idtoken=").append(String.valueOf(this.idtoken)); + sb.append(",domainid=").append(String.valueOf(this.domainid)); sb.append(")"); return sb.toString(); } @@ -451,28 +552,31 @@ public boolean equals(Object o) { ListIncidentsRequest other = (ListIncidentsRequest) o; return super.equals(o) - && java.util.Objects.equals(this.csi, other.csi) && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.ocid, other.ocid) + && java.util.Objects.equals(this.csi, other.csi) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ocid, other.ocid) && java.util.Objects.equals(this.homeregion, other.homeregion) - && java.util.Objects.equals(this.problemType, other.problemType); + && java.util.Objects.equals(this.problemType, other.problemType) + && java.util.Objects.equals(this.bearertokentype, other.bearertokentype) + && java.util.Objects.equals(this.bearertoken, other.bearertoken) + && java.util.Objects.equals(this.idtoken, other.idtoken) + && java.util.Objects.equals(this.domainid, other.domainid); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); - result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); + result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); @@ -481,8 +585,15 @@ public int hashCode() { + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.homeregion == null ? 43 : this.homeregion.hashCode()); result = (result * PRIME) + (this.problemType == null ? 43 : this.problemType.hashCode()); + result = + (result * PRIME) + + (this.bearertokentype == null ? 43 : this.bearertokentype.hashCode()); + result = (result * PRIME) + (this.bearertoken == null ? 43 : this.bearertoken.hashCode()); + result = (result * PRIME) + (this.idtoken == null ? 43 : this.idtoken.hashCode()); + result = (result * PRIME) + (this.domainid == null ? 43 : this.domainid.hashCode()); return result; } } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/UpdateIncidentRequest.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/UpdateIncidentRequest.java index 6d252378a62..a7143cb842b 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/UpdateIncidentRequest.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/UpdateIncidentRequest.java @@ -21,13 +21,6 @@ public class UpdateIncidentRequest public String getIncidentKey() { return incidentKey; } - /** The Customer Support Identifier associated with the support account. */ - private String csi; - - /** The Customer Support Identifier associated with the support account. */ - public String getCsi() { - return csi; - } /** Details about the support ticket being updated. */ private com.oracle.bmc.cims.model.UpdateIncident updateIncidentDetails; @@ -35,18 +28,12 @@ public String getCsi() { public com.oracle.bmc.cims.model.UpdateIncident getUpdateIncidentDetails() { return updateIncidentDetails; } - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - private String ocid; + /** The Customer Support Identifier (CSI) associated with the support account. */ + private String csi; - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - public String getOcid() { - return ocid; + /** The Customer Support Identifier (CSI) associated with the support account. */ + public String getCsi() { + return csi; } /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -61,6 +48,13 @@ public String getOcid() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the tenancy. */ + private String compartmentId; + + /** The OCID of the tenancy. */ + public String getCompartmentId() { + return compartmentId; + } /** * 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 @@ -78,6 +72,19 @@ public String getOpcRequestId() { public String getIfMatch() { return ifMatch; } + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + private String ocid; + + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + public String getOcid() { + return ocid; + } /** The region of the tenancy. */ private String homeregion; @@ -85,6 +92,34 @@ public String getIfMatch() { public String getHomeregion() { return homeregion; } + /** Token type that determine which cloud provider the request come from. */ + private String bearertokentype; + + /** Token type that determine which cloud provider the request come from. */ + public String getBearertokentype() { + return bearertokentype; + } + /** Token that provided by multi cloud provider, which help to validate the email. */ + private String bearertoken; + + /** Token that provided by multi cloud provider, which help to validate the email. */ + public String getBearertoken() { + return bearertoken; + } + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + private String idtoken; + + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + public String getIdtoken() { + return idtoken; + } + /** The OCID of identity domain. */ + private String domainid; + + /** The OCID of identity domain. */ + public String getDomainid() { + return domainid; + } /** * Alternative accessor for the body parameter. @@ -117,20 +152,6 @@ public Builder incidentKey(String incidentKey) { return this; } - /** The Customer Support Identifier associated with the support account. */ - private String csi = null; - - /** - * The Customer Support Identifier associated with the support account. - * - * @param csi the value to set - * @return this builder instance - */ - public Builder csi(String csi) { - this.csi = csi; - return this; - } - /** Details about the support ticket being updated. */ private com.oracle.bmc.cims.model.UpdateIncident updateIncidentDetails = null; @@ -146,21 +167,17 @@ public Builder updateIncidentDetails( return this; } - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - private String ocid = null; + /** The Customer Support Identifier (CSI) associated with the support account. */ + private String csi = null; /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. + * The Customer Support Identifier (CSI) associated with the support account. * - * @param ocid the value to set + * @param csi the value to set * @return this builder instance */ - public Builder ocid(String ocid) { - this.ocid = ocid; + public Builder csi(String csi) { + this.csi = csi; return this; } @@ -182,6 +199,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the tenancy. */ + private String compartmentId = null; + + /** + * The OCID of the tenancy. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + 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 @@ -204,6 +235,24 @@ public Builder ifMatch(String ifMatch) { return this; } + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + private String ocid = null; + + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + * + * @param ocid the value to set + * @return this builder instance + */ + public Builder ocid(String ocid) { + this.ocid = ocid; + return this; + } + /** The region of the tenancy. */ private String homeregion = null; @@ -218,6 +267,62 @@ public Builder homeregion(String homeregion) { return this; } + /** Token type that determine which cloud provider the request come from. */ + private String bearertokentype = null; + + /** + * Token type that determine which cloud provider the request come from. + * + * @param bearertokentype the value to set + * @return this builder instance + */ + public Builder bearertokentype(String bearertokentype) { + this.bearertokentype = bearertokentype; + return this; + } + + /** Token that provided by multi cloud provider, which help to validate the email. */ + private String bearertoken = null; + + /** + * Token that provided by multi cloud provider, which help to validate the email. + * + * @param bearertoken the value to set + * @return this builder instance + */ + public Builder bearertoken(String bearertoken) { + this.bearertoken = bearertoken; + return this; + } + + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + private String idtoken = null; + + /** + * IdToken that provided by multi cloud provider, which help to validate the email. + * + * @param idtoken the value to set + * @return this builder instance + */ + public Builder idtoken(String idtoken) { + this.idtoken = idtoken; + return this; + } + + /** The OCID of identity domain. */ + private String domainid = null; + + /** + * The OCID of identity domain. + * + * @param domainid the value to set + * @return this builder instance + */ + public Builder domainid(String domainid) { + this.domainid = domainid; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -249,12 +354,17 @@ public Builder retryConfiguration( */ public Builder copy(UpdateIncidentRequest o) { incidentKey(o.getIncidentKey()); - csi(o.getCsi()); updateIncidentDetails(o.getUpdateIncidentDetails()); - ocid(o.getOcid()); + csi(o.getCsi()); opcRequestId(o.getOpcRequestId()); + compartmentId(o.getCompartmentId()); ifMatch(o.getIfMatch()); + ocid(o.getOcid()); homeregion(o.getHomeregion()); + bearertokentype(o.getBearertokentype()); + bearertoken(o.getBearertoken()); + idtoken(o.getIdtoken()); + domainid(o.getDomainid()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -302,15 +412,21 @@ public UpdateIncidentRequest build() { public UpdateIncidentRequest buildWithoutInvocationCallback() { UpdateIncidentRequest request = new UpdateIncidentRequest(); request.incidentKey = incidentKey; - request.csi = csi; request.updateIncidentDetails = updateIncidentDetails; - request.ocid = ocid; + request.csi = csi; request.opcRequestId = opcRequestId; + request.compartmentId = compartmentId; request.ifMatch = ifMatch; + request.ocid = ocid; request.homeregion = homeregion; + request.bearertokentype = bearertokentype; + request.bearertoken = bearertoken; + request.idtoken = idtoken; + request.domainid = domainid; return request; - // new UpdateIncidentRequest(incidentKey, csi, updateIncidentDetails, ocid, - // opcRequestId, ifMatch, homeregion); + // new UpdateIncidentRequest(incidentKey, updateIncidentDetails, csi, opcRequestId, + // compartmentId, ifMatch, ocid, homeregion, bearertokentype, bearertoken, idtoken, + // domainid); } } @@ -322,12 +438,17 @@ public UpdateIncidentRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .incidentKey(incidentKey) - .csi(csi) .updateIncidentDetails(updateIncidentDetails) - .ocid(ocid) + .csi(csi) .opcRequestId(opcRequestId) + .compartmentId(compartmentId) .ifMatch(ifMatch) - .homeregion(homeregion); + .ocid(ocid) + .homeregion(homeregion) + .bearertokentype(bearertokentype) + .bearertoken(bearertoken) + .idtoken(idtoken) + .domainid(domainid); } /** @@ -345,12 +466,17 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",incidentKey=").append(String.valueOf(this.incidentKey)); - sb.append(",csi=").append(String.valueOf(this.csi)); sb.append(",updateIncidentDetails=").append(String.valueOf(this.updateIncidentDetails)); - sb.append(",ocid=").append(String.valueOf(this.ocid)); + sb.append(",csi=").append(String.valueOf(this.csi)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",homeregion=").append(String.valueOf(this.homeregion)); + sb.append(",bearertokentype=").append(String.valueOf(this.bearertokentype)); + sb.append(",bearertoken=").append(String.valueOf(this.bearertoken)); + sb.append(",idtoken=").append(String.valueOf(this.idtoken)); + sb.append(",domainid=").append(String.valueOf(this.domainid)); sb.append(")"); return sb.toString(); } @@ -367,12 +493,17 @@ public boolean equals(Object o) { UpdateIncidentRequest other = (UpdateIncidentRequest) o; return super.equals(o) && java.util.Objects.equals(this.incidentKey, other.incidentKey) - && java.util.Objects.equals(this.csi, other.csi) && java.util.Objects.equals(this.updateIncidentDetails, other.updateIncidentDetails) - && java.util.Objects.equals(this.ocid, other.ocid) + && java.util.Objects.equals(this.csi, other.csi) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.homeregion, other.homeregion); + && java.util.Objects.equals(this.ocid, other.ocid) + && java.util.Objects.equals(this.homeregion, other.homeregion) + && java.util.Objects.equals(this.bearertokentype, other.bearertokentype) + && java.util.Objects.equals(this.bearertoken, other.bearertoken) + && java.util.Objects.equals(this.idtoken, other.idtoken) + && java.util.Objects.equals(this.domainid, other.domainid); } @Override @@ -380,16 +511,25 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.incidentKey == null ? 43 : this.incidentKey.hashCode()); - result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); result = (result * PRIME) + (this.updateIncidentDetails == null ? 43 : this.updateIncidentDetails.hashCode()); - result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); + result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.homeregion == null ? 43 : this.homeregion.hashCode()); + result = + (result * PRIME) + + (this.bearertokentype == null ? 43 : this.bearertokentype.hashCode()); + result = (result * PRIME) + (this.bearertoken == null ? 43 : this.bearertoken.hashCode()); + result = (result * PRIME) + (this.idtoken == null ? 43 : this.idtoken.hashCode()); + result = (result * PRIME) + (this.domainid == null ? 43 : this.domainid.hashCode()); return result; } } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ValidateUserRequest.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ValidateUserRequest.java index 9361cfd356f..2b82a2161f0 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ValidateUserRequest.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/requests/ValidateUserRequest.java @@ -13,26 +13,13 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") public class ValidateUserRequest extends com.oracle.bmc.requests.BmcRequest { - /** The Customer Support Identifier number for the support account. */ + /** The Customer Support Identifier (CSI) associated with the support account. */ private String csi; - /** The Customer Support Identifier number for the support account. */ + /** The Customer Support Identifier (CSI) associated with the support account. */ public String getCsi() { return csi; } - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - private String ocid; - - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - public String getOcid() { - return ocid; - } /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -47,12 +34,25 @@ public String getOpcRequestId() { return opcRequestId; } /** The kind of support request. */ - private String problemType; + private com.oracle.bmc.cims.model.ProblemType problemType; /** The kind of support request. */ - public String getProblemType() { + public com.oracle.bmc.cims.model.ProblemType getProblemType() { return problemType; } + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + private String ocid; + + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + public String getOcid() { + return ocid; + } /** The region of the tenancy. */ private String homeregion; @@ -60,6 +60,34 @@ public String getProblemType() { public String getHomeregion() { return homeregion; } + /** Token type that determine which cloud provider the request come from. */ + private String bearertokentype; + + /** Token type that determine which cloud provider the request come from. */ + public String getBearertokentype() { + return bearertokentype; + } + /** Token that provided by multi cloud provider, which help to validate the email. */ + private String bearertoken; + + /** Token that provided by multi cloud provider, which help to validate the email. */ + public String getBearertoken() { + return bearertoken; + } + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + private String idtoken; + + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + public String getIdtoken() { + return idtoken; + } + /** The OCID of identity domain. */ + private String domainid; + + /** The OCID of identity domain. */ + public String getDomainid() { + return domainid; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -67,11 +95,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The Customer Support Identifier number for the support account. */ + /** The Customer Support Identifier (CSI) associated with the support account. */ private String csi = null; /** - * The Customer Support Identifier number for the support account. + * The Customer Support Identifier (CSI) associated with the support account. * * @param csi the value to set * @return this builder instance @@ -81,24 +109,6 @@ public Builder csi(String csi) { return this; } - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - */ - private String ocid = null; - - /** - * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle - * Cloud Infrastructure account. - * - * @param ocid the value to set - * @return this builder instance - */ - public Builder ocid(String ocid) { - this.ocid = ocid; - return this; - } - /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -118,7 +128,7 @@ public Builder opcRequestId(String opcRequestId) { } /** The kind of support request. */ - private String problemType = null; + private com.oracle.bmc.cims.model.ProblemType problemType = null; /** * The kind of support request. @@ -126,11 +136,29 @@ public Builder opcRequestId(String opcRequestId) { * @param problemType the value to set * @return this builder instance */ - public Builder problemType(String problemType) { + public Builder problemType(com.oracle.bmc.cims.model.ProblemType problemType) { this.problemType = problemType; return this; } + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + */ + private String ocid = null; + + /** + * User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle + * Cloud Infrastructure account. + * + * @param ocid the value to set + * @return this builder instance + */ + public Builder ocid(String ocid) { + this.ocid = ocid; + return this; + } + /** The region of the tenancy. */ private String homeregion = null; @@ -145,6 +173,62 @@ public Builder homeregion(String homeregion) { return this; } + /** Token type that determine which cloud provider the request come from. */ + private String bearertokentype = null; + + /** + * Token type that determine which cloud provider the request come from. + * + * @param bearertokentype the value to set + * @return this builder instance + */ + public Builder bearertokentype(String bearertokentype) { + this.bearertokentype = bearertokentype; + return this; + } + + /** Token that provided by multi cloud provider, which help to validate the email. */ + private String bearertoken = null; + + /** + * Token that provided by multi cloud provider, which help to validate the email. + * + * @param bearertoken the value to set + * @return this builder instance + */ + public Builder bearertoken(String bearertoken) { + this.bearertoken = bearertoken; + return this; + } + + /** IdToken that provided by multi cloud provider, which help to validate the email. */ + private String idtoken = null; + + /** + * IdToken that provided by multi cloud provider, which help to validate the email. + * + * @param idtoken the value to set + * @return this builder instance + */ + public Builder idtoken(String idtoken) { + this.idtoken = idtoken; + return this; + } + + /** The OCID of identity domain. */ + private String domainid = null; + + /** + * The OCID of identity domain. + * + * @param domainid the value to set + * @return this builder instance + */ + public Builder domainid(String domainid) { + this.domainid = domainid; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -176,10 +260,14 @@ public Builder retryConfiguration( */ public Builder copy(ValidateUserRequest o) { csi(o.getCsi()); - ocid(o.getOcid()); opcRequestId(o.getOpcRequestId()); problemType(o.getProblemType()); + ocid(o.getOcid()); homeregion(o.getHomeregion()); + bearertokentype(o.getBearertokentype()); + bearertoken(o.getBearertoken()); + idtoken(o.getIdtoken()); + domainid(o.getDomainid()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -215,12 +303,17 @@ public ValidateUserRequest build() { public ValidateUserRequest buildWithoutInvocationCallback() { ValidateUserRequest request = new ValidateUserRequest(); request.csi = csi; - request.ocid = ocid; request.opcRequestId = opcRequestId; request.problemType = problemType; + request.ocid = ocid; request.homeregion = homeregion; + request.bearertokentype = bearertokentype; + request.bearertoken = bearertoken; + request.idtoken = idtoken; + request.domainid = domainid; return request; - // new ValidateUserRequest(csi, ocid, opcRequestId, problemType, homeregion); + // new ValidateUserRequest(csi, opcRequestId, problemType, ocid, homeregion, + // bearertokentype, bearertoken, idtoken, domainid); } } @@ -232,10 +325,14 @@ public ValidateUserRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .csi(csi) - .ocid(ocid) .opcRequestId(opcRequestId) .problemType(problemType) - .homeregion(homeregion); + .ocid(ocid) + .homeregion(homeregion) + .bearertokentype(bearertokentype) + .bearertoken(bearertoken) + .idtoken(idtoken) + .domainid(domainid); } /** @@ -253,10 +350,14 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",csi=").append(String.valueOf(this.csi)); - sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",problemType=").append(String.valueOf(this.problemType)); + sb.append(",ocid=").append(String.valueOf(this.ocid)); sb.append(",homeregion=").append(String.valueOf(this.homeregion)); + sb.append(",bearertokentype=").append(String.valueOf(this.bearertokentype)); + sb.append(",bearertoken=").append(String.valueOf(this.bearertoken)); + sb.append(",idtoken=").append(String.valueOf(this.idtoken)); + sb.append(",domainid=").append(String.valueOf(this.domainid)); sb.append(")"); return sb.toString(); } @@ -273,10 +374,14 @@ public boolean equals(Object o) { ValidateUserRequest other = (ValidateUserRequest) o; return super.equals(o) && java.util.Objects.equals(this.csi, other.csi) - && java.util.Objects.equals(this.ocid, other.ocid) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.problemType, other.problemType) - && java.util.Objects.equals(this.homeregion, other.homeregion); + && java.util.Objects.equals(this.ocid, other.ocid) + && java.util.Objects.equals(this.homeregion, other.homeregion) + && java.util.Objects.equals(this.bearertokentype, other.bearertokentype) + && java.util.Objects.equals(this.bearertoken, other.bearertoken) + && java.util.Objects.equals(this.idtoken, other.idtoken) + && java.util.Objects.equals(this.domainid, other.domainid); } @Override @@ -284,10 +389,16 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.csi == null ? 43 : this.csi.hashCode()); - result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.problemType == null ? 43 : this.problemType.hashCode()); + result = (result * PRIME) + (this.ocid == null ? 43 : this.ocid.hashCode()); result = (result * PRIME) + (this.homeregion == null ? 43 : this.homeregion.hashCode()); + result = + (result * PRIME) + + (this.bearertokentype == null ? 43 : this.bearertokentype.hashCode()); + result = (result * PRIME) + (this.bearertoken == null ? 43 : this.bearertoken.hashCode()); + result = (result * PRIME) + (this.idtoken == null ? 43 : this.idtoken.hashCode()); + result = (result * PRIME) + (this.domainid == null ? 43 : this.domainid.hashCode()); return result; } } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/responses/CreateIncidentResponse.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/responses/CreateIncidentResponse.java index f12e105a854..d52a3781a96 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/responses/CreateIncidentResponse.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/responses/CreateIncidentResponse.java @@ -10,13 +10,13 @@ public class CreateIncidentResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * particular request, please provide the request identifier. */ private String opcRequestId; /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * particular request, please provide the request identifier. * * @return the value */ @@ -67,13 +67,13 @@ public Builder headers(java.util.Map> headers) { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * particular request, please provide the request identifier. */ private String opcRequestId; /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * particular request, please provide the request identifier. * * @param opcRequestId the value to set * @return this builder diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/responses/CreateUserResponse.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/responses/GetCsiNumberResponse.java similarity index 76% rename from bmc-cims/src/main/java/com/oracle/bmc/cims/responses/CreateUserResponse.java rename to bmc-cims/src/main/java/com/oracle/bmc/cims/responses/GetCsiNumberResponse.java index 5f82a966b23..22841527780 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/responses/CreateUserResponse.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/responses/GetCsiNumberResponse.java @@ -7,7 +7,7 @@ import com.oracle.bmc.cims.model.*; @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") -public class CreateUserResponse extends com.oracle.bmc.responses.BmcResponse { +public class GetCsiNumberResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -24,31 +24,31 @@ public String getOpcRequestId() { return opcRequestId; } - /** The returned {@code User} instance. */ - private com.oracle.bmc.cims.model.User user; + /** The returned {@code String} instance. */ + private String value; /** - * The returned {@code User} instance. + * The returned {@code String} instance. * * @return the value */ - public com.oracle.bmc.cims.model.User getUser() { - return user; + public String getValue() { + return value; } - @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId", "user"}) - private CreateUserResponse( + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId", "value"}) + private GetCsiNumberResponse( int __httpStatusCode__, java.util.Map> headers, String opcRequestId, - com.oracle.bmc.cims.model.User user) { + String value) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; - this.user = user; + this.value = value; } public static class Builder - implements com.oracle.bmc.responses.BmcResponse.Builder { + implements com.oracle.bmc.responses.BmcResponse.Builder { private int __httpStatusCode__; @Override @@ -83,17 +83,17 @@ public Builder opcRequestId(String opcRequestId) { return this; } - /** The returned {@code User} instance. */ - private com.oracle.bmc.cims.model.User user; + /** The returned {@code String} instance. */ + private String value; /** - * The returned {@code User} instance. + * The returned {@code String} instance. * - * @param user the value to set + * @param value the value to set * @return this builder */ - public Builder user(com.oracle.bmc.cims.model.User user) { - this.user = user; + public Builder value(String value) { + this.value = value; return this; } @@ -103,11 +103,11 @@ public Builder user(com.oracle.bmc.cims.model.User user) { * @return this builder instance */ @Override - public Builder copy(CreateUserResponse o) { + public Builder copy(GetCsiNumberResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); - user(o.getUser()); + value(o.getValue()); return this; } @@ -118,8 +118,8 @@ public Builder copy(CreateUserResponse o) { * @return the response object */ @Override - public CreateUserResponse build() { - return new CreateUserResponse(__httpStatusCode__, headers, opcRequestId, user); + public GetCsiNumberResponse build() { + return new GetCsiNumberResponse(__httpStatusCode__, headers, opcRequestId, value); } } @@ -138,7 +138,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",user=").append(String.valueOf(user)); + sb.append(",value=").append(String.valueOf(value)); sb.append(")"); return sb.toString(); } @@ -148,14 +148,14 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateUserResponse)) { + if (!(o instanceof GetCsiNumberResponse)) { return false; } - CreateUserResponse other = (CreateUserResponse) o; + GetCsiNumberResponse other = (GetCsiNumberResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.user, other.user); + && java.util.Objects.equals(this.value, other.value); } @Override @@ -163,7 +163,7 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.user == null ? 43 : this.user.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); return result; } } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/responses/ListIncidentsResponse.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/responses/ListIncidentsResponse.java index 746b69e9bc8..a370b4d98f1 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/responses/ListIncidentsResponse.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/responses/ListIncidentsResponse.java @@ -42,6 +42,40 @@ public String getOpcNextPage() { return opcNextPage; } + /** + * For list pagination. When this header appears in the response, previous pages of results can + * be queried. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcPrevPage; + + /** + * For list pagination. When this header appears in the response, previous pages of results can + * be queried. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** + * Returns the age of the incidents in the response in epoch milliseconds. This is used because + * the incidents might be cached. + */ + private String asOfTime; + + /** + * Returns the age of the incidents in the response in epoch milliseconds. This is used because + * the incidents might be cached. + * + * @return the value + */ + public String getAsOfTime() { + return asOfTime; + } + /** A list of {@code com.oracle.bmc.cims.model.IncidentSummary} instances. */ private java.util.List items; @@ -59,6 +93,8 @@ public java.util.List getItems() { "headers", "opcRequestId", "opcNextPage", + "opcPrevPage", + "asOfTime", "items" }) private ListIncidentsResponse( @@ -66,10 +102,14 @@ private ListIncidentsResponse( java.util.Map> headers, String opcRequestId, String opcNextPage, + String opcPrevPage, + String asOfTime, java.util.List items) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.asOfTime = asOfTime; this.items = items; } @@ -129,6 +169,44 @@ public Builder opcNextPage(String opcNextPage) { return this; } + /** + * For list pagination. When this header appears in the response, previous pages of results + * can be queried. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcPrevPage; + + /** + * For list pagination. When this header appears in the response, previous pages of results + * can be queried. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** + * Returns the age of the incidents in the response in epoch milliseconds. This is used + * because the incidents might be cached. + */ + private String asOfTime; + + /** + * Returns the age of the incidents in the response in epoch milliseconds. This is used + * because the incidents might be cached. + * + * @param asOfTime the value to set + * @return this builder + */ + public Builder asOfTime(String asOfTime) { + this.asOfTime = asOfTime; + return this; + } + /** A list of {@code com.oracle.bmc.cims.model.IncidentSummary} instances. */ private java.util.List items; @@ -154,6 +232,8 @@ public Builder copy(ListIncidentsResponse o) { headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + asOfTime(o.getAsOfTime()); items(o.getItems()); return this; @@ -167,7 +247,13 @@ public Builder copy(ListIncidentsResponse o) { @Override public ListIncidentsResponse build() { return new ListIncidentsResponse( - __httpStatusCode__, headers, opcRequestId, opcNextPage, items); + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + asOfTime, + items); } } @@ -187,6 +273,8 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",asOfTime=").append(String.valueOf(asOfTime)); sb.append(",items=").append(String.valueOf(items)); sb.append(")"); return sb.toString(); @@ -205,6 +293,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals(this.asOfTime, other.asOfTime) && java.util.Objects.equals(this.items, other.items); } @@ -214,6 +304,8 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = (result * PRIME) + (this.asOfTime == null ? 43 : this.asOfTime.hashCode()); result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); return result; } diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index b1cca969275..18e0293bc3d 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index fb2a5f2be0e..12556d9fcb1 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index dcc7619abb1..8e7ef47ab0a 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index d318b2367e7..e580a7eb70a 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml index feba762c3b9..499d3717b62 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.24.0 + 3.25.0 ../pom.xml @@ -68,7 +68,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.24.0 + 3.25.0 @@ -77,7 +77,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.24.0 + 3.25.0 org.glassfish.jersey.core diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml index 737bbdf6fff..6cb852c8030 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.24.0 + 3.25.0 ../pom.xml @@ -70,7 +70,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.24.0 + 3.25.0 @@ -79,7 +79,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.24.0 + 3.25.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index e2adb4cd1bd..30f6c1d3ffc 100644 --- a/bmc-common-httpclient-choices/pom.xml +++ b/bmc-common-httpclient-choices/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index ede66ba325d..bb25d020a69 100644 --- a/bmc-common-httpclient/pom.xml +++ b/bmc-common-httpclient/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 306f9452377..c8de2dec2f9 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml @@ -67,18 +67,18 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.24.0 + 3.25.0 test diff --git a/bmc-common/src/main/java/com/oracle/bmc/Realm.java b/bmc-common/src/main/java/com/oracle/bmc/Realm.java index 1d372537de6..7d070c303a2 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/Realm.java +++ b/bmc-common/src/main/java/com/oracle/bmc/Realm.java @@ -105,10 +105,13 @@ public String toString() { public static Realm[] values() { readLock.lock(); try { - if (Alloy.shouldUseOnlyAlloyRegions()) { - return ALLOY_REALMS.values().toArray(new Realm[ALLOY_REALMS.size()]); + if (Alloy.doesAlloyConfigExist()) { + if (Alloy.shouldUseOnlyAlloyRegions()) { + return ALLOY_REALMS.values().toArray(new Realm[ALLOY_REALMS.size()]); + } + return ALL_REALMS.values().toArray(new Realm[ALL_REALMS.size()]); } - return ALL_REALMS.values().toArray(new Realm[ALL_REALMS.size()]); + return KNOWN_REALMS.values().toArray(new Realm[KNOWN_REALMS.size()]); } finally { readLock.unlock(); } @@ -238,7 +241,12 @@ protected static void clearAlloyRealms() { writeLock.lock(); try { - ALL_REALMS.keySet().removeIf(ALLOY_REALMS::containsKey); + ALL_REALMS + .keySet() + .removeIf( + key -> + (ALLOY_REALMS.containsKey(key) + && !KNOWN_REALMS.containsKey(key))); ALLOY_REALMS.clear(); } finally { writeLock.unlock(); diff --git a/bmc-common/src/main/java/com/oracle/bmc/Region.java b/bmc-common/src/main/java/com/oracle/bmc/Region.java index e1c1ed872c1..41c5fff846e 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/Region.java +++ b/bmc-common/src/main/java/com/oracle/bmc/Region.java @@ -328,11 +328,14 @@ public static Region[] values() { registerAllRegions(); readLock.lock(); try { - // Recheck state because another thread might have acquired lock. - if (Alloy.shouldUseOnlyAlloyRegions()) { - return ALLOY_REGIONS.values().toArray(new Region[ALLOY_REGIONS.size()]); + if (Alloy.doesAlloyConfigExist()) { + // Recheck state because another thread might have acquired lock. + if (Alloy.shouldUseOnlyAlloyRegions()) { + return ALLOY_REGIONS.values().toArray(new Region[ALLOY_REGIONS.size()]); + } + return ALL_REGIONS.values().toArray(new Region[ALL_REGIONS.size()]); } - return ALL_REGIONS.values().toArray(new Region[ALL_REGIONS.size()]); + return KNOWN_REGIONS.values().toArray(new Region[KNOWN_REGIONS.size()]); } finally { readLock.unlock(); } @@ -945,7 +948,12 @@ public static boolean isServiceEnabled(String serviceName) { static void resetAlloyConfiguration() { writeLock.lock(); try { - ALL_REGIONS.keySet().removeIf(ALLOY_REGIONS::containsKey); + ALL_REGIONS + .keySet() + .removeIf( + key -> + (ALLOY_REGIONS.containsKey(key) + && !KNOWN_REGIONS.containsKey(key))); ALLOY_REGIONS.clear(); Realm.clearAlloyRealms(); hasUsedAlloyConfigFile = false; diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index ed5c3b905ac..65130ce1014 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 1ddc2e45eb8..ef50741cad7 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 998992b08a2..8c7fce8744f 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index 51ef04a9fd9..d6332c791db 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/ContainerInstanceAsyncClient.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/ContainerInstanceAsyncClient.java index 859e48f4818..68dc0eee47b 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/ContainerInstanceAsyncClient.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/ContainerInstanceAsyncClient.java @@ -464,6 +464,8 @@ public java.util.concurrent.Future listWorkReques .appendPathParam("errors") .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( @@ -499,6 +501,8 @@ public java.util.concurrent.Future listWorkRequestL .appendPathParam("logs") .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( @@ -533,6 +537,10 @@ public java.util.concurrent.Future listWorkRequests( .appendQueryParam("workRequestId", request.getWorkRequestId()) .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("availabilityDomain", request.getAvailabilityDomain()) + .appendEnumQueryParam("status", request.getStatus()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/ContainerInstanceClient.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/ContainerInstanceClient.java index 6fbb1e52053..ea3cc503d20 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/ContainerInstanceClient.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/ContainerInstanceClient.java @@ -462,6 +462,8 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( .appendPathParam("errors") .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( @@ -494,6 +496,8 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques .appendPathParam("logs") .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( @@ -525,6 +529,10 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request .appendQueryParam("workRequestId", request.getWorkRequestId()) .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("availabilityDomain", request.getAvailabilityDomain()) + .appendEnumQueryParam("status", request.getStatus()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/requests/ListWorkRequestErrorsRequest.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/requests/ListWorkRequestErrorsRequest.java index 7047a0b3f37..64421d267a3 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/requests/ListWorkRequestErrorsRequest.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/requests/ListWorkRequestErrorsRequest.java @@ -65,6 +65,62 @@ public String getPage() { public Integer getLimit() { return limit; } + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.containerinstances.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.containerinstances.model.SortOrder getSortOrder() { + return sortOrder; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -144,6 +200,38 @@ public Builder limit(Integer limit) { return this; } + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.containerinstances.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.containerinstances.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -178,6 +266,8 @@ public Builder copy(ListWorkRequestErrorsRequest o) { opcRequestId(o.getOpcRequestId()); page(o.getPage()); limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -216,8 +306,11 @@ public ListWorkRequestErrorsRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; request.page = page; request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; return request; - // new ListWorkRequestErrorsRequest(workRequestId, opcRequestId, page, limit); + // new ListWorkRequestErrorsRequest(workRequestId, opcRequestId, page, limit, sortBy, + // sortOrder); } } @@ -231,7 +324,9 @@ public Builder toBuilder() { .workRequestId(workRequestId) .opcRequestId(opcRequestId) .page(page) - .limit(limit); + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); } /** @@ -252,6 +347,8 @@ public String toString() { sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(")"); return sb.toString(); } @@ -270,7 +367,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.workRequestId, other.workRequestId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.limit, other.limit); + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); } @Override @@ -283,6 +382,8 @@ public int hashCode() { result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); return result; } } diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/requests/ListWorkRequestLogsRequest.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/requests/ListWorkRequestLogsRequest.java index bbf7f1217ac..67279203ebd 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/requests/ListWorkRequestLogsRequest.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/requests/ListWorkRequestLogsRequest.java @@ -63,6 +63,62 @@ public String getPage() { public Integer getLimit() { return limit; } + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.containerinstances.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.containerinstances.model.SortOrder getSortOrder() { + return sortOrder; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -142,6 +198,38 @@ public Builder limit(Integer limit) { return this; } + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.containerinstances.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.containerinstances.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -176,6 +264,8 @@ public Builder copy(ListWorkRequestLogsRequest o) { opcRequestId(o.getOpcRequestId()); page(o.getPage()); limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -214,8 +304,11 @@ public ListWorkRequestLogsRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; request.page = page; request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; return request; - // new ListWorkRequestLogsRequest(workRequestId, opcRequestId, page, limit); + // new ListWorkRequestLogsRequest(workRequestId, opcRequestId, page, limit, sortBy, + // sortOrder); } } @@ -229,7 +322,9 @@ public Builder toBuilder() { .workRequestId(workRequestId) .opcRequestId(opcRequestId) .page(page) - .limit(limit); + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); } /** @@ -250,6 +345,8 @@ public String toString() { sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(")"); return sb.toString(); } @@ -268,7 +365,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.workRequestId, other.workRequestId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.limit, other.limit); + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); } @Override @@ -281,6 +380,8 @@ public int hashCode() { result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); return result; } } diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/requests/ListWorkRequestsRequest.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/requests/ListWorkRequestsRequest.java index 48c83ca7984..71ec542e936 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/requests/ListWorkRequestsRequest.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/requests/ListWorkRequestsRequest.java @@ -76,6 +76,84 @@ public String getPage() { public Integer getLimit() { return limit; } + /** + * The name of the availability domain. + * + *

Example: {@code Uocm:PHX-AD-1} + */ + private String availabilityDomain; + + /** + * The name of the availability domain. + * + *

Example: {@code Uocm:PHX-AD-1} + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + /** A filter to return only resources their lifecycleState matches the given OperationStatus. */ + private com.oracle.bmc.containerinstances.model.OperationStatus status; + + /** A filter to return only resources their lifecycleState matches the given OperationStatus. */ + public com.oracle.bmc.containerinstances.model.OperationStatus getStatus() { + return status; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeAccepted("timeAccepted"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.containerinstances.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.containerinstances.model.SortOrder getSortOrder() { + return sortOrder; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -173,6 +251,74 @@ public Builder limit(Integer limit) { return this; } + /** + * The name of the availability domain. + * + *

Example: {@code Uocm:PHX-AD-1} + */ + private String availabilityDomain = null; + + /** + * The name of the availability domain. + * + *

Example: {@code Uocm:PHX-AD-1} + * + * @param availabilityDomain the value to set + * @return this builder instance + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given OperationStatus. + */ + private com.oracle.bmc.containerinstances.model.OperationStatus status = null; + + /** + * A filter to return only resources their lifecycleState matches the given OperationStatus. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(com.oracle.bmc.containerinstances.model.OperationStatus status) { + this.status = status; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted + * is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted + * is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.containerinstances.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.containerinstances.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -208,6 +354,10 @@ public Builder copy(ListWorkRequestsRequest o) { opcRequestId(o.getOpcRequestId()); page(o.getPage()); limit(o.getLimit()); + availabilityDomain(o.getAvailabilityDomain()); + status(o.getStatus()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -247,8 +397,13 @@ public ListWorkRequestsRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; request.page = page; request.limit = limit; + request.availabilityDomain = availabilityDomain; + request.status = status; + request.sortBy = sortBy; + request.sortOrder = sortOrder; return request; - // new ListWorkRequestsRequest(compartmentId, workRequestId, opcRequestId, page, limit); + // new ListWorkRequestsRequest(compartmentId, workRequestId, opcRequestId, page, limit, + // availabilityDomain, status, sortBy, sortOrder); } } @@ -263,7 +418,11 @@ public Builder toBuilder() { .workRequestId(workRequestId) .opcRequestId(opcRequestId) .page(page) - .limit(limit); + .limit(limit) + .availabilityDomain(availabilityDomain) + .status(status) + .sortBy(sortBy) + .sortOrder(sortOrder); } /** @@ -285,6 +444,10 @@ public String toString() { sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(")"); return sb.toString(); } @@ -304,7 +467,11 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.workRequestId, other.workRequestId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.limit, other.limit); + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); } @Override @@ -320,6 +487,14 @@ public int hashCode() { result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); return result; } } diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 0be215d5102..d92eb9858dd 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.24.0 + 3.25.0 diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index b7166560916..f4d4b854c60 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index c068cbda79d..2fbb63d63fa 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.24.0 + 3.25.0 diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 457ba514d26..a98e62a2a7e 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 6b748d671b6..d5af8d26bfc 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index c5ff7ee9951..f297bef25d8 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index f5e5f6158a3..c0360ed69e3 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalog.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalog.java index e1f5e35b583..e23cedd7b14 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalog.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalog.java @@ -98,6 +98,24 @@ public interface DataCatalog extends AutoCloseable { */ AssociateCustomPropertyResponse associateCustomProperty(AssociateCustomPropertyRequest request); + /** + * Exports the contents of a glossary in Excel format. Returns details about the job which + * actually performs the export. + * + * @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 + * AsynchronousExportGlossary API. + */ + AsynchronousExportGlossaryResponse asynchronousExportGlossary( + AsynchronousExportGlossaryRequest request); + /** * Attaches a private reverse connection endpoint resource to a data catalog resource. When * provided, 'If-Match' is checked against 'ETag' values of the resource. @@ -881,6 +899,22 @@ DisassociateCustomPropertyResponse disassociateCustomProperty( */ ExportGlossaryResponse exportGlossary(ExportGlossaryRequest request); + /** + * Returns lineage for a given entity object. + * + * @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 FetchEntityLineage + * API. + */ + FetchEntityLineageResponse fetchEntityLineage(FetchEntityLineageRequest request); + /** * Gets a specific entity attribute by key. * diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsync.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsync.java index 8a4da9cb86e..54d94fb6916 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsync.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsync.java @@ -95,6 +95,23 @@ java.util.concurrent.Future associateCustomProp AssociateCustomPropertyRequest, AssociateCustomPropertyResponse> handler); + /** + * Exports the contents of a glossary in Excel format. Returns details about the job which + * actually performs the export. + * + * @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 asynchronousExportGlossary( + AsynchronousExportGlossaryRequest request, + com.oracle.bmc.responses.AsyncHandler< + AsynchronousExportGlossaryRequest, AsynchronousExportGlossaryResponse> + handler); + /** * Attaches a private reverse connection endpoint resource to a data catalog resource. When * provided, 'If-Match' is checked against 'ETag' values of the resource. @@ -858,6 +875,22 @@ java.util.concurrent.Future exportGlossary( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Returns lineage for a given entity object. + * + * @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 fetchEntityLineage( + FetchEntityLineageRequest request, + com.oracle.bmc.responses.AsyncHandler< + FetchEntityLineageRequest, FetchEntityLineageResponse> + handler); + /** * Gets a specific entity attribute by key. * diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java index dc67d6b1b91..2964aea8b0c 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java @@ -206,6 +206,52 @@ public java.util.concurrent.Future associateCus .callAsync(handler); } + @Override + public java.util.concurrent.Future + asynchronousExportGlossary( + AsynchronousExportGlossaryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AsynchronousExportGlossaryRequest, + AsynchronousExportGlossaryResponse> + handler) { + + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Objects.requireNonNull( + request.getAsynchronousExportGlossaryDetails(), + "asynchronousExportGlossaryDetails is required"); + + return clientCall(request, AsynchronousExportGlossaryResponse::builder) + .logger(LOG, "asynchronousExportGlossary") + .serviceDetails( + "DataCatalog", + "AsynchronousExportGlossary", + "https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Glossary/AsynchronousExportGlossary") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AsynchronousExportGlossaryRequest::builder) + .basePath("/20190325") + .appendPathParam("catalogs") + .appendPathParam(request.getCatalogId()) + .appendPathParam("glossaries") + .appendPathParam(request.getGlossaryKey()) + .appendPathParam("actions") + .appendPathParam("asynchronousExport") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryResult.class, + AsynchronousExportGlossaryResponse.Builder + ::asynchronousExportGlossaryResult) + .handleResponseHeaderString( + "etag", AsynchronousExportGlossaryResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", AsynchronousExportGlossaryResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future attachCatalogPrivateEndpoint( @@ -2036,6 +2082,54 @@ public java.util.concurrent.Future exportGlossary( .callAsync(handler); } + @Override + public java.util.concurrent.Future fetchEntityLineage( + FetchEntityLineageRequest request, + final com.oracle.bmc.responses.AsyncHandler< + FetchEntityLineageRequest, FetchEntityLineageResponse> + handler) { + + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Objects.requireNonNull( + request.getFetchEntityLineageDetails(), "fetchEntityLineageDetails is required"); + + return clientCall(request, FetchEntityLineageResponse::builder) + .logger(LOG, "fetchEntityLineage") + .serviceDetails( + "DataCatalog", + "FetchEntityLineage", + "https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Entity/FetchEntityLineage") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(FetchEntityLineageRequest::builder) + .basePath("/20190325") + .appendPathParam("catalogs") + .appendPathParam(request.getCatalogId()) + .appendPathParam("dataAssets") + .appendPathParam(request.getDataAssetKey()) + .appendPathParam("entities") + .appendPathParam(request.getEntityKey()) + .appendPathParam("actions") + .appendPathParam("fetchLineage") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.datacatalog.model.EntityLineage.class, + FetchEntityLineageResponse.Builder::entityLineage) + .handleResponseHeaderString( + "opc-request-id", FetchEntityLineageResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", FetchEntityLineageResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getAttribute( GetAttributeRequest request, @@ -3913,6 +4007,7 @@ public java.util.concurrent.Future listFolders( "fields", request.getFields(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("typeKey", request.getTypeKey()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendQueryParam("limit", request.getLimit()) @@ -4005,6 +4100,7 @@ public java.util.concurrent.Future listJobDefinition .appendEnumQueryParam("jobType", request.getJobType()) .appendQueryParam("isIncremental", request.getIsIncremental()) .appendQueryParam("dataAssetKey", request.getDataAssetKey()) + .appendQueryParam("glossaryKey", request.getGlossaryKey()) .appendQueryParam("connectionKey", request.getConnectionKey()) .appendQueryParam("timeCreated", request.getTimeCreated()) .appendQueryParam("timeUpdated", request.getTimeUpdated()) @@ -4237,6 +4333,7 @@ public java.util.concurrent.Future listJobs( .appendEnumQueryParam("jobType", request.getJobType()) .appendQueryParam("jobDefinitionKey", request.getJobDefinitionKey()) .appendQueryParam("dataAssetKey", request.getDataAssetKey()) + .appendQueryParam("glossaryKey", request.getGlossaryKey()) .appendQueryParam("scheduleCronExpression", request.getScheduleCronExpression()) .appendQueryParam("timeScheduleBegin", request.getTimeScheduleBegin()) .appendQueryParam("timeScheduleEnd", request.getTimeScheduleEnd()) diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogClient.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogClient.java index 5fc680706fb..9fb6352e22e 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogClient.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogClient.java @@ -227,6 +227,47 @@ public AssociateCustomPropertyResponse associateCustomProperty( .callSync(); } + @Override + public AsynchronousExportGlossaryResponse asynchronousExportGlossary( + AsynchronousExportGlossaryRequest request) { + + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Objects.requireNonNull( + request.getAsynchronousExportGlossaryDetails(), + "asynchronousExportGlossaryDetails is required"); + + return clientCall(request, AsynchronousExportGlossaryResponse::builder) + .logger(LOG, "asynchronousExportGlossary") + .serviceDetails( + "DataCatalog", + "AsynchronousExportGlossary", + "https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Glossary/AsynchronousExportGlossary") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AsynchronousExportGlossaryRequest::builder) + .basePath("/20190325") + .appendPathParam("catalogs") + .appendPathParam(request.getCatalogId()) + .appendPathParam("glossaries") + .appendPathParam(request.getGlossaryKey()) + .appendPathParam("actions") + .appendPathParam("asynchronousExport") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryResult.class, + AsynchronousExportGlossaryResponse.Builder + ::asynchronousExportGlossaryResult) + .handleResponseHeaderString( + "etag", AsynchronousExportGlossaryResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", AsynchronousExportGlossaryResponse.Builder::opcRequestId) + .callSync(); + } + @Override public AttachCatalogPrivateEndpointResponse attachCatalogPrivateEndpoint( AttachCatalogPrivateEndpointRequest request) { @@ -1871,6 +1912,51 @@ public ExportGlossaryResponse exportGlossary(ExportGlossaryRequest request) { .callSync(); } + @Override + public FetchEntityLineageResponse fetchEntityLineage(FetchEntityLineageRequest request) { + + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Objects.requireNonNull( + request.getFetchEntityLineageDetails(), "fetchEntityLineageDetails is required"); + + return clientCall(request, FetchEntityLineageResponse::builder) + .logger(LOG, "fetchEntityLineage") + .serviceDetails( + "DataCatalog", + "FetchEntityLineage", + "https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Entity/FetchEntityLineage") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(FetchEntityLineageRequest::builder) + .basePath("/20190325") + .appendPathParam("catalogs") + .appendPathParam(request.getCatalogId()) + .appendPathParam("dataAssets") + .appendPathParam(request.getDataAssetKey()) + .appendPathParam("entities") + .appendPathParam(request.getEntityKey()) + .appendPathParam("actions") + .appendPathParam("fetchLineage") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.datacatalog.model.EntityLineage.class, + FetchEntityLineageResponse.Builder::entityLineage) + .handleResponseHeaderString( + "opc-request-id", FetchEntityLineageResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", FetchEntityLineageResponse.Builder::opcNextPage) + .operationUsesDefaultRetries() + .callSync(); + } + @Override public GetAttributeResponse getAttribute(GetAttributeRequest request) { @@ -3639,6 +3725,7 @@ public ListFoldersResponse listFolders(ListFoldersRequest request) { "fields", request.getFields(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("typeKey", request.getTypeKey()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendQueryParam("limit", request.getLimit()) @@ -3725,6 +3812,7 @@ public ListJobDefinitionsResponse listJobDefinitions(ListJobDefinitionsRequest r .appendEnumQueryParam("jobType", request.getJobType()) .appendQueryParam("isIncremental", request.getIsIncremental()) .appendQueryParam("dataAssetKey", request.getDataAssetKey()) + .appendQueryParam("glossaryKey", request.getGlossaryKey()) .appendQueryParam("connectionKey", request.getConnectionKey()) .appendQueryParam("timeCreated", request.getTimeCreated()) .appendQueryParam("timeUpdated", request.getTimeUpdated()) @@ -3947,6 +4035,7 @@ public ListJobsResponse listJobs(ListJobsRequest request) { .appendEnumQueryParam("jobType", request.getJobType()) .appendQueryParam("jobDefinitionKey", request.getJobDefinitionKey()) .appendQueryParam("dataAssetKey", request.getDataAssetKey()) + .appendQueryParam("glossaryKey", request.getGlossaryKey()) .appendQueryParam("scheduleCronExpression", request.getScheduleCronExpression()) .appendQueryParam("timeScheduleBegin", request.getTimeScheduleBegin()) .appendQueryParam("timeScheduleEnd", request.getTimeScheduleEnd()) diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AsynchronousExportGlossaryDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AsynchronousExportGlossaryDetails.java new file mode 100644 index 00000000000..ad318e99496 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AsynchronousExportGlossaryDetails.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Details needed by the glossary export request.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AsynchronousExportGlossaryDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AsynchronousExportGlossaryDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"objectStorageTarget"}) + public AsynchronousExportGlossaryDetails(ObjectStorageObjectReference objectStorageTarget) { + super(); + this.objectStorageTarget = objectStorageTarget; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageTarget") + private ObjectStorageObjectReference objectStorageTarget; + + public Builder objectStorageTarget(ObjectStorageObjectReference objectStorageTarget) { + this.objectStorageTarget = objectStorageTarget; + this.__explicitlySet__.add("objectStorageTarget"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AsynchronousExportGlossaryDetails build() { + AsynchronousExportGlossaryDetails model = + new AsynchronousExportGlossaryDetails(this.objectStorageTarget); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AsynchronousExportGlossaryDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageTarget")) { + this.objectStorageTarget(model.getObjectStorageTarget()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageTarget") + private final ObjectStorageObjectReference objectStorageTarget; + + public ObjectStorageObjectReference getObjectStorageTarget() { + return objectStorageTarget; + } + + @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("AsynchronousExportGlossaryDetails("); + sb.append("super=").append(super.toString()); + sb.append("objectStorageTarget=").append(String.valueOf(this.objectStorageTarget)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AsynchronousExportGlossaryDetails)) { + return false; + } + + AsynchronousExportGlossaryDetails other = (AsynchronousExportGlossaryDetails) o; + return java.util.Objects.equals(this.objectStorageTarget, other.objectStorageTarget) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.objectStorageTarget == null + ? 43 + : this.objectStorageTarget.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AsynchronousExportGlossaryResult.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AsynchronousExportGlossaryResult.java new file mode 100644 index 00000000000..d1163c9dc2d --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AsynchronousExportGlossaryResult.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Details about the job which performs an export.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AsynchronousExportGlossaryResult.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AsynchronousExportGlossaryResult + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "jobDefinitionName", + "jobDefinitionKey", + "jobKey", + "jobExecutionKey", + "sourceKey" + }) + public AsynchronousExportGlossaryResult( + String jobDefinitionName, + String jobDefinitionKey, + String jobKey, + String jobExecutionKey, + String sourceKey) { + super(); + this.jobDefinitionName = jobDefinitionName; + this.jobDefinitionKey = jobDefinitionKey; + this.jobKey = jobKey; + this.jobExecutionKey = jobExecutionKey; + this.sourceKey = sourceKey; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Display name of the export job. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionName") + private String jobDefinitionName; + + /** + * Display name of the export job. + * + * @param jobDefinitionName the value to set + * @return this builder + */ + public Builder jobDefinitionName(String jobDefinitionName) { + this.jobDefinitionName = jobDefinitionName; + this.__explicitlySet__.add("jobDefinitionName"); + return this; + } + /** Unique key of the export job definition. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionKey") + private String jobDefinitionKey; + + /** + * Unique key of the export job definition. + * + * @param jobDefinitionKey the value to set + * @return this builder + */ + public Builder jobDefinitionKey(String jobDefinitionKey) { + this.jobDefinitionKey = jobDefinitionKey; + this.__explicitlySet__.add("jobDefinitionKey"); + return this; + } + /** Unique key of the export job. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobKey") + private String jobKey; + + /** + * Unique key of the export job. + * + * @param jobKey the value to set + * @return this builder + */ + public Builder jobKey(String jobKey) { + this.jobKey = jobKey; + this.__explicitlySet__.add("jobKey"); + return this; + } + /** Unique key of the job execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobExecutionKey") + private String jobExecutionKey; + + /** + * Unique key of the job execution. + * + * @param jobExecutionKey the value to set + * @return this builder + */ + public Builder jobExecutionKey(String jobExecutionKey) { + this.jobExecutionKey = jobExecutionKey; + this.__explicitlySet__.add("jobExecutionKey"); + return this; + } + /** Unique key of the object being exported. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceKey") + private String sourceKey; + + /** + * Unique key of the object being exported. + * + * @param sourceKey the value to set + * @return this builder + */ + public Builder sourceKey(String sourceKey) { + this.sourceKey = sourceKey; + this.__explicitlySet__.add("sourceKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AsynchronousExportGlossaryResult build() { + AsynchronousExportGlossaryResult model = + new AsynchronousExportGlossaryResult( + this.jobDefinitionName, + this.jobDefinitionKey, + this.jobKey, + this.jobExecutionKey, + this.sourceKey); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AsynchronousExportGlossaryResult model) { + if (model.wasPropertyExplicitlySet("jobDefinitionName")) { + this.jobDefinitionName(model.getJobDefinitionName()); + } + if (model.wasPropertyExplicitlySet("jobDefinitionKey")) { + this.jobDefinitionKey(model.getJobDefinitionKey()); + } + if (model.wasPropertyExplicitlySet("jobKey")) { + this.jobKey(model.getJobKey()); + } + if (model.wasPropertyExplicitlySet("jobExecutionKey")) { + this.jobExecutionKey(model.getJobExecutionKey()); + } + if (model.wasPropertyExplicitlySet("sourceKey")) { + this.sourceKey(model.getSourceKey()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Display name of the export job. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionName") + private final String jobDefinitionName; + + /** + * Display name of the export job. + * + * @return the value + */ + public String getJobDefinitionName() { + return jobDefinitionName; + } + + /** Unique key of the export job definition. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionKey") + private final String jobDefinitionKey; + + /** + * Unique key of the export job definition. + * + * @return the value + */ + public String getJobDefinitionKey() { + return jobDefinitionKey; + } + + /** Unique key of the export job. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobKey") + private final String jobKey; + + /** + * Unique key of the export job. + * + * @return the value + */ + public String getJobKey() { + return jobKey; + } + + /** Unique key of the job execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobExecutionKey") + private final String jobExecutionKey; + + /** + * Unique key of the job execution. + * + * @return the value + */ + public String getJobExecutionKey() { + return jobExecutionKey; + } + + /** Unique key of the object being exported. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceKey") + private final String sourceKey; + + /** + * Unique key of the object being exported. + * + * @return the value + */ + public String getSourceKey() { + return sourceKey; + } + + @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("AsynchronousExportGlossaryResult("); + sb.append("super=").append(super.toString()); + sb.append("jobDefinitionName=").append(String.valueOf(this.jobDefinitionName)); + sb.append(", jobDefinitionKey=").append(String.valueOf(this.jobDefinitionKey)); + sb.append(", jobKey=").append(String.valueOf(this.jobKey)); + sb.append(", jobExecutionKey=").append(String.valueOf(this.jobExecutionKey)); + sb.append(", sourceKey=").append(String.valueOf(this.sourceKey)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AsynchronousExportGlossaryResult)) { + return false; + } + + AsynchronousExportGlossaryResult other = (AsynchronousExportGlossaryResult) o; + return java.util.Objects.equals(this.jobDefinitionName, other.jobDefinitionName) + && java.util.Objects.equals(this.jobDefinitionKey, other.jobDefinitionKey) + && java.util.Objects.equals(this.jobKey, other.jobKey) + && java.util.Objects.equals(this.jobExecutionKey, other.jobExecutionKey) + && java.util.Objects.equals(this.sourceKey, other.sourceKey) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.jobDefinitionName == null ? 43 : this.jobDefinitionName.hashCode()); + result = + (result * PRIME) + + (this.jobDefinitionKey == null ? 43 : this.jobDefinitionKey.hashCode()); + result = (result * PRIME) + (this.jobKey == null ? 43 : this.jobKey.hashCode()); + result = + (result * PRIME) + + (this.jobExecutionKey == null ? 43 : this.jobExecutionKey.hashCode()); + result = (result * PRIME) + (this.sourceKey == null ? 43 : this.sourceKey.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AsynchronousExportRequestDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AsynchronousExportRequestDetails.java new file mode 100644 index 00000000000..b46ec99b4ba --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AsynchronousExportRequestDetails.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Details for an export request.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AsynchronousExportRequestDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AsynchronousExportRequestDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"objectStorageTarget"}) + public AsynchronousExportRequestDetails(ObjectStorageObjectReference objectStorageTarget) { + super(); + this.objectStorageTarget = objectStorageTarget; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageTarget") + private ObjectStorageObjectReference objectStorageTarget; + + public Builder objectStorageTarget(ObjectStorageObjectReference objectStorageTarget) { + this.objectStorageTarget = objectStorageTarget; + this.__explicitlySet__.add("objectStorageTarget"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AsynchronousExportRequestDetails build() { + AsynchronousExportRequestDetails model = + new AsynchronousExportRequestDetails(this.objectStorageTarget); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AsynchronousExportRequestDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageTarget")) { + this.objectStorageTarget(model.getObjectStorageTarget()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageTarget") + private final ObjectStorageObjectReference objectStorageTarget; + + public ObjectStorageObjectReference getObjectStorageTarget() { + return objectStorageTarget; + } + + @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("AsynchronousExportRequestDetails("); + sb.append("super=").append(super.toString()); + sb.append("objectStorageTarget=").append(String.valueOf(this.objectStorageTarget)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AsynchronousExportRequestDetails)) { + return false; + } + + AsynchronousExportRequestDetails other = (AsynchronousExportRequestDetails) o; + return java.util.Objects.equals(this.objectStorageTarget, other.objectStorageTarget) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.objectStorageTarget == null + ? 43 + : this.objectStorageTarget.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AsynchronousExportResult.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AsynchronousExportResult.java new file mode 100644 index 00000000000..e42037ce421 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AsynchronousExportResult.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Details about the job which performs an export.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AsynchronousExportResult.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AsynchronousExportResult + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "jobDefinitionName", + "jobDefinitionKey", + "jobKey", + "jobExecutionKey", + "sourceKey" + }) + public AsynchronousExportResult( + String jobDefinitionName, + String jobDefinitionKey, + String jobKey, + String jobExecutionKey, + String sourceKey) { + super(); + this.jobDefinitionName = jobDefinitionName; + this.jobDefinitionKey = jobDefinitionKey; + this.jobKey = jobKey; + this.jobExecutionKey = jobExecutionKey; + this.sourceKey = sourceKey; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Display name of the export job. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionName") + private String jobDefinitionName; + + /** + * Display name of the export job. + * + * @param jobDefinitionName the value to set + * @return this builder + */ + public Builder jobDefinitionName(String jobDefinitionName) { + this.jobDefinitionName = jobDefinitionName; + this.__explicitlySet__.add("jobDefinitionName"); + return this; + } + /** Unique key of the export job definition. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionKey") + private String jobDefinitionKey; + + /** + * Unique key of the export job definition. + * + * @param jobDefinitionKey the value to set + * @return this builder + */ + public Builder jobDefinitionKey(String jobDefinitionKey) { + this.jobDefinitionKey = jobDefinitionKey; + this.__explicitlySet__.add("jobDefinitionKey"); + return this; + } + /** Unique key of the export job. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobKey") + private String jobKey; + + /** + * Unique key of the export job. + * + * @param jobKey the value to set + * @return this builder + */ + public Builder jobKey(String jobKey) { + this.jobKey = jobKey; + this.__explicitlySet__.add("jobKey"); + return this; + } + /** Unique key of the job execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobExecutionKey") + private String jobExecutionKey; + + /** + * Unique key of the job execution. + * + * @param jobExecutionKey the value to set + * @return this builder + */ + public Builder jobExecutionKey(String jobExecutionKey) { + this.jobExecutionKey = jobExecutionKey; + this.__explicitlySet__.add("jobExecutionKey"); + return this; + } + /** Unique key of the object being exported. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceKey") + private String sourceKey; + + /** + * Unique key of the object being exported. + * + * @param sourceKey the value to set + * @return this builder + */ + public Builder sourceKey(String sourceKey) { + this.sourceKey = sourceKey; + this.__explicitlySet__.add("sourceKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AsynchronousExportResult build() { + AsynchronousExportResult model = + new AsynchronousExportResult( + this.jobDefinitionName, + this.jobDefinitionKey, + this.jobKey, + this.jobExecutionKey, + this.sourceKey); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AsynchronousExportResult model) { + if (model.wasPropertyExplicitlySet("jobDefinitionName")) { + this.jobDefinitionName(model.getJobDefinitionName()); + } + if (model.wasPropertyExplicitlySet("jobDefinitionKey")) { + this.jobDefinitionKey(model.getJobDefinitionKey()); + } + if (model.wasPropertyExplicitlySet("jobKey")) { + this.jobKey(model.getJobKey()); + } + if (model.wasPropertyExplicitlySet("jobExecutionKey")) { + this.jobExecutionKey(model.getJobExecutionKey()); + } + if (model.wasPropertyExplicitlySet("sourceKey")) { + this.sourceKey(model.getSourceKey()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Display name of the export job. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionName") + private final String jobDefinitionName; + + /** + * Display name of the export job. + * + * @return the value + */ + public String getJobDefinitionName() { + return jobDefinitionName; + } + + /** Unique key of the export job definition. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionKey") + private final String jobDefinitionKey; + + /** + * Unique key of the export job definition. + * + * @return the value + */ + public String getJobDefinitionKey() { + return jobDefinitionKey; + } + + /** Unique key of the export job. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobKey") + private final String jobKey; + + /** + * Unique key of the export job. + * + * @return the value + */ + public String getJobKey() { + return jobKey; + } + + /** Unique key of the job execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("jobExecutionKey") + private final String jobExecutionKey; + + /** + * Unique key of the job execution. + * + * @return the value + */ + public String getJobExecutionKey() { + return jobExecutionKey; + } + + /** Unique key of the object being exported. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceKey") + private final String sourceKey; + + /** + * Unique key of the object being exported. + * + * @return the value + */ + public String getSourceKey() { + return sourceKey; + } + + @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("AsynchronousExportResult("); + sb.append("super=").append(super.toString()); + sb.append("jobDefinitionName=").append(String.valueOf(this.jobDefinitionName)); + sb.append(", jobDefinitionKey=").append(String.valueOf(this.jobDefinitionKey)); + sb.append(", jobKey=").append(String.valueOf(this.jobKey)); + sb.append(", jobExecutionKey=").append(String.valueOf(this.jobExecutionKey)); + sb.append(", sourceKey=").append(String.valueOf(this.sourceKey)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AsynchronousExportResult)) { + return false; + } + + AsynchronousExportResult other = (AsynchronousExportResult) o; + return java.util.Objects.equals(this.jobDefinitionName, other.jobDefinitionName) + && java.util.Objects.equals(this.jobDefinitionKey, other.jobDefinitionKey) + && java.util.Objects.equals(this.jobKey, other.jobKey) + && java.util.Objects.equals(this.jobExecutionKey, other.jobExecutionKey) + && java.util.Objects.equals(this.sourceKey, other.sourceKey) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.jobDefinitionName == null ? 43 : this.jobDefinitionName.hashCode()); + result = + (result * PRIME) + + (this.jobDefinitionKey == null ? 43 : this.jobDefinitionKey.hashCode()); + result = (result * PRIME) + (this.jobKey == null ? 43 : this.jobKey.hashCode()); + result = + (result * PRIME) + + (this.jobExecutionKey == null ? 43 : this.jobExecutionKey.hashCode()); + result = (result * PRIME) + (this.sourceKey == null ? 43 : this.sourceKey.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Attribute.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Attribute.java index 30a77f49586..54794640c8a 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Attribute.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Attribute.java @@ -29,6 +29,7 @@ public final class Attribute extends com.oracle.bmc.http.client.internal.Explici "description", "entityKey", "lifecycleState", + "lifecycleDetails", "timeCreated", "timeUpdated", "createdById", @@ -65,6 +66,7 @@ public Attribute( String description, String entityKey, LifecycleState lifecycleState, + String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, String createdById, @@ -100,6 +102,7 @@ public Attribute( this.description = description; this.entityKey = entityKey; this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.createdById = createdById; @@ -230,6 +233,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } /** * The date and time the attribute was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2019-03-25T21:10:29.600Z} @@ -732,6 +754,7 @@ public Attribute build() { this.description, this.entityKey, this.lifecycleState, + this.lifecycleDetails, this.timeCreated, this.timeUpdated, this.createdById, @@ -786,6 +809,9 @@ public Builder copy(Attribute model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -969,6 +995,23 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + /** * The date and time the attribute was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2019-03-25T21:10:29.600Z} @@ -1418,6 +1461,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", entityKey=").append(String.valueOf(this.entityKey)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", createdById=").append(String.valueOf(this.createdById)); @@ -1468,6 +1512,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.entityKey, other.entityKey) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.createdById, other.createdById) @@ -1513,6 +1558,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.createdById == null ? 43 : this.createdById.hashCode()); diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeSummary.java index b7466cc90d0..5c1fa6ede1e 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeSummary.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeSummary.java @@ -36,6 +36,7 @@ public final class AttributeSummary "isNullable", "uri", "lifecycleState", + "lifecycleDetails", "timeCreated", "externalDataType", "typeKey", @@ -66,6 +67,7 @@ public AttributeSummary( Boolean isNullable, String uri, LifecycleState lifecycleState, + String lifecycleDetails, java.util.Date timeCreated, String externalDataType, String typeKey, @@ -95,6 +97,7 @@ public AttributeSummary( this.isNullable = isNullable; this.uri = uri; this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; this.timeCreated = timeCreated; this.externalDataType = externalDataType; this.typeKey = typeKey; @@ -317,6 +320,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } /** * The date and time the attribute was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2019-03-25T21:10:29.600Z} @@ -615,6 +637,7 @@ public AttributeSummary build() { this.isNullable, this.uri, this.lifecycleState, + this.lifecycleDetails, this.timeCreated, this.externalDataType, this.typeKey, @@ -677,6 +700,9 @@ public Builder copy(AttributeSummary model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -912,6 +938,23 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + /** * The date and time the attribute was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2019-03-25T21:10:29.600Z} @@ -1183,6 +1226,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isNullable=").append(String.valueOf(this.isNullable)); sb.append(", uri=").append(String.valueOf(this.uri)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", externalDataType=").append(String.valueOf(this.externalDataType)); sb.append(", typeKey=").append(String.valueOf(this.typeKey)); @@ -1227,6 +1271,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isNullable, other.isNullable) && java.util.Objects.equals(this.uri, other.uri) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.externalDataType, other.externalDataType) && java.util.Objects.equals(this.typeKey, other.typeKey) @@ -1266,6 +1311,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDefinitionDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDefinitionDetails.java index 4d80a45a4ea..7d37d4cf436 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDefinitionDetails.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDefinitionDetails.java @@ -32,6 +32,7 @@ public final class CreateJobDefinitionDetails "jobType", "isIncremental", "dataAssetKey", + "glossaryKey", "connectionKey", "isSampleDataExtracted", "sampleDataSizeInMBs", @@ -43,6 +44,7 @@ public CreateJobDefinitionDetails( JobType jobType, Boolean isIncremental, String dataAssetKey, + String glossaryKey, String connectionKey, Boolean isSampleDataExtracted, Integer sampleDataSizeInMBs, @@ -53,6 +55,7 @@ public CreateJobDefinitionDetails( this.jobType = jobType; this.isIncremental = isIncremental; this.dataAssetKey = dataAssetKey; + this.glossaryKey = glossaryKey; this.connectionKey = connectionKey; this.isSampleDataExtracted = isSampleDataExtracted; this.sampleDataSizeInMBs = sampleDataSizeInMBs; @@ -140,6 +143,21 @@ public Builder dataAssetKey(String dataAssetKey) { this.__explicitlySet__.add("dataAssetKey"); return this; } + /** Unique key of the glossary to which this job applies. */ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + /** + * Unique key of the glossary to which this job applies. + * + * @param glossaryKey the value to set + * @return this builder + */ + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + return this; + } /** The key of the connection resource to be used for the job. */ @com.fasterxml.jackson.annotation.JsonProperty("connectionKey") private String connectionKey; @@ -228,6 +246,7 @@ public CreateJobDefinitionDetails build() { this.jobType, this.isIncremental, this.dataAssetKey, + this.glossaryKey, this.connectionKey, this.isSampleDataExtracted, this.sampleDataSizeInMBs, @@ -255,6 +274,9 @@ public Builder copy(CreateJobDefinitionDetails model) { if (model.wasPropertyExplicitlySet("dataAssetKey")) { this.dataAssetKey(model.getDataAssetKey()); } + if (model.wasPropertyExplicitlySet("glossaryKey")) { + this.glossaryKey(model.getGlossaryKey()); + } if (model.wasPropertyExplicitlySet("connectionKey")) { this.connectionKey(model.getConnectionKey()); } @@ -349,6 +371,19 @@ public String getDataAssetKey() { return dataAssetKey; } + /** Unique key of the glossary to which this job applies. */ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private final String glossaryKey; + + /** + * Unique key of the glossary to which this job applies. + * + * @return the value + */ + public String getGlossaryKey() { + return glossaryKey; + } + /** The key of the connection resource to be used for the job. */ @com.fasterxml.jackson.annotation.JsonProperty("connectionKey") private final String connectionKey; @@ -435,6 +470,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", jobType=").append(String.valueOf(this.jobType)); sb.append(", isIncremental=").append(String.valueOf(this.isIncremental)); sb.append(", dataAssetKey=").append(String.valueOf(this.dataAssetKey)); + sb.append(", glossaryKey=").append(String.valueOf(this.glossaryKey)); sb.append(", connectionKey=").append(String.valueOf(this.connectionKey)); sb.append(", isSampleDataExtracted=").append(String.valueOf(this.isSampleDataExtracted)); sb.append(", sampleDataSizeInMBs=").append(String.valueOf(this.sampleDataSizeInMBs)); @@ -458,6 +494,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.jobType, other.jobType) && java.util.Objects.equals(this.isIncremental, other.isIncremental) && java.util.Objects.equals(this.dataAssetKey, other.dataAssetKey) + && java.util.Objects.equals(this.glossaryKey, other.glossaryKey) && java.util.Objects.equals(this.connectionKey, other.connectionKey) && java.util.Objects.equals(this.isSampleDataExtracted, other.isSampleDataExtracted) && java.util.Objects.equals(this.sampleDataSizeInMBs, other.sampleDataSizeInMBs) @@ -476,6 +513,7 @@ public int hashCode() { (result * PRIME) + (this.isIncremental == null ? 43 : this.isIncremental.hashCode()); result = (result * PRIME) + (this.dataAssetKey == null ? 43 : this.dataAssetKey.hashCode()); + result = (result * PRIME) + (this.glossaryKey == null ? 43 : this.glossaryKey.hashCode()); result = (result * PRIME) + (this.connectionKey == null ? 43 : this.connectionKey.hashCode()); diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDetails.java index 9231a6e36e6..fb6f18be03e 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDetails.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDetails.java @@ -88,7 +88,8 @@ public Builder description(String description) { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. */ @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") private String scheduleCronExpression; @@ -96,7 +97,8 @@ public Builder description(String description) { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. * * @param scheduleCronExpression the value to set * @return this builder @@ -269,7 +271,8 @@ public String getDescription() { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. */ @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") private final String scheduleCronExpression; @@ -277,7 +280,8 @@ public String getDescription() { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. * * @return the value */ diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAsset.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAsset.java index 7fec6e41ae0..cecab791b4c 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAsset.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAsset.java @@ -32,6 +32,7 @@ public final class DataAsset extends com.oracle.bmc.http.client.internal.Explici "externalKey", "typeKey", "lifecycleState", + "lifecycleDetails", "timeCreated", "timeUpdated", "timeHarvested", @@ -50,6 +51,7 @@ public DataAsset( String externalKey, String typeKey, LifecycleState lifecycleState, + String lifecycleDetails, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Date timeHarvested, @@ -67,6 +69,7 @@ public DataAsset( this.externalKey = externalKey; this.typeKey = typeKey; this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.timeHarvested = timeHarvested; @@ -193,6 +196,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } /** * The date and time the data asset was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2019-03-25T21:10:29.600Z} @@ -371,6 +393,7 @@ public DataAsset build() { this.externalKey, this.typeKey, this.lifecycleState, + this.lifecycleDetails, this.timeCreated, this.timeUpdated, this.timeHarvested, @@ -409,6 +432,9 @@ public Builder copy(DataAsset model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -548,6 +574,23 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + /** * The date and time the data asset was created, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2019-03-25T21:10:29.600Z} @@ -715,6 +758,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", externalKey=").append(String.valueOf(this.externalKey)); sb.append(", typeKey=").append(String.valueOf(this.typeKey)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", timeHarvested=").append(String.valueOf(this.timeHarvested)); @@ -745,6 +789,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.externalKey, other.externalKey) && java.util.Objects.equals(this.typeKey, other.typeKey) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.timeHarvested, other.timeHarvested) @@ -770,6 +815,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetSummary.java index c171c82af31..3e9f382b8c5 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetSummary.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetSummary.java @@ -34,7 +34,8 @@ public final class DataAssetSummary "uri", "timeCreated", "typeKey", - "lifecycleState" + "lifecycleState", + "lifecycleDetails" }) public DataAssetSummary( String key, @@ -45,7 +46,8 @@ public DataAssetSummary( String uri, java.util.Date timeCreated, String typeKey, - LifecycleState lifecycleState) { + LifecycleState lifecycleState, + String lifecycleDetails) { super(); this.key = key; this.displayName = displayName; @@ -56,6 +58,7 @@ public DataAssetSummary( this.timeCreated = timeCreated; this.typeKey = typeKey; this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -207,6 +210,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -222,7 +244,8 @@ public DataAssetSummary build() { this.uri, this.timeCreated, this.typeKey, - this.lifecycleState); + this.lifecycleState, + this.lifecycleDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -258,6 +281,9 @@ public Builder copy(DataAssetSummary model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } return this; } } @@ -400,6 +426,23 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + @Override public String toString() { return this.toString(true); @@ -424,6 +467,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", typeKey=").append(String.valueOf(this.typeKey)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(")"); return sb.toString(); } @@ -447,6 +491,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.typeKey, other.typeKey) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && super.equals(other); } @@ -465,6 +510,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Entity.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Entity.java index 49c87952480..76196491524 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Entity.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Entity.java @@ -33,6 +33,7 @@ public final class Entity extends com.oracle.bmc.http.client.internal.Explicitly "createdById", "updatedById", "lifecycleState", + "lifecycleDetails", "externalKey", "patternKey", "realizedExpression", @@ -64,6 +65,7 @@ public Entity( String createdById, String updatedById, LifecycleState lifecycleState, + String lifecycleDetails, String externalKey, String patternKey, String realizedExpression, @@ -94,6 +96,7 @@ public Entity( this.createdById = createdById; this.updatedById = updatedById; this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; this.externalKey = externalKey; this.patternKey = patternKey; this.realizedExpression = realizedExpression; @@ -269,6 +272,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } /** Unique external key of this object in the source system. */ @com.fasterxml.jackson.annotation.JsonProperty("externalKey") private String externalKey; @@ -620,6 +642,7 @@ public Entity build() { this.createdById, this.updatedById, this.lifecycleState, + this.lifecycleDetails, this.externalKey, this.patternKey, this.realizedExpression, @@ -675,6 +698,9 @@ public Builder copy(Entity model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } if (model.wasPropertyExplicitlySet("externalKey")) { this.externalKey(model.getExternalKey()); } @@ -881,6 +907,23 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + /** Unique external key of this object in the source system. */ @com.fasterxml.jackson.annotation.JsonProperty("externalKey") private final String externalKey; @@ -1195,6 +1238,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", createdById=").append(String.valueOf(this.createdById)); sb.append(", updatedById=").append(String.valueOf(this.updatedById)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", externalKey=").append(String.valueOf(this.externalKey)); sb.append(", patternKey=").append(String.valueOf(this.patternKey)); sb.append(", realizedExpression=").append(String.valueOf(this.realizedExpression)); @@ -1238,6 +1282,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.createdById, other.createdById) && java.util.Objects.equals(this.updatedById, other.updatedById) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.externalKey, other.externalKey) && java.util.Objects.equals(this.patternKey, other.patternKey) && java.util.Objects.equals(this.realizedExpression, other.realizedExpression) @@ -1276,6 +1321,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + (this.externalKey == null ? 43 : this.externalKey.hashCode()); result = (result * PRIME) + (this.patternKey == null ? 43 : this.patternKey.hashCode()); result = diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityLineage.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityLineage.java new file mode 100644 index 00000000000..a96ca5522b0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityLineage.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Lineage for a data entity.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = EntityLineage.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EntityLineage extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "level", + "direction", + "objects", + "relationships", + "annotations" + }) + public EntityLineage( + Integer level, + LineageDirection direction, + java.util.List objects, + java.util.List relationships, + java.util.Map> annotations) { + super(); + this.level = level; + this.direction = direction; + this.objects = objects; + this.relationships = relationships; + this.annotations = annotations; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Object level at which the lineage is returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("level") + private Integer level; + + /** + * Object level at which the lineage is returned. + * + * @param level the value to set + * @return this builder + */ + public Builder level(Integer level) { + this.level = level; + this.__explicitlySet__.add("level"); + return this; + } + /** Direction of the lineage returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("direction") + private LineageDirection direction; + + /** + * Direction of the lineage returned. + * + * @param direction the value to set + * @return this builder + */ + public Builder direction(LineageDirection direction) { + this.direction = direction; + this.__explicitlySet__.add("direction"); + return this; + } + /** Set of objects that are involved in the lineage. */ + @com.fasterxml.jackson.annotation.JsonProperty("objects") + private java.util.List objects; + + /** + * Set of objects that are involved in the lineage. + * + * @param objects the value to set + * @return this builder + */ + public Builder objects(java.util.List objects) { + this.objects = objects; + this.__explicitlySet__.add("objects"); + return this; + } + /** Set of relationships between the objects in the 'objects' set. */ + @com.fasterxml.jackson.annotation.JsonProperty("relationships") + private java.util.List relationships; + + /** + * Set of relationships between the objects in the 'objects' set. + * + * @param relationships the value to set + * @return this builder + */ + public Builder relationships(java.util.List relationships) { + this.relationships = relationships; + this.__explicitlySet__.add("relationships"); + return this; + } + /** + * A map of maps that contains additional information in explanation of the lineage + * returned. The map keys are categories of information and the values are maps of + * annotation names to their corresponding values. Every annotation is contained inside a + * category. Example: {@code {"annotations": { "category": { "key": "value"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("annotations") + private java.util.Map> annotations; + + /** + * A map of maps that contains additional information in explanation of the lineage + * returned. The map keys are categories of information and the values are maps of + * annotation names to their corresponding values. Every annotation is contained inside a + * category. Example: {@code {"annotations": { "category": { "key": "value"}}}} + * + * @param annotations the value to set + * @return this builder + */ + public Builder annotations( + java.util.Map> annotations) { + this.annotations = annotations; + this.__explicitlySet__.add("annotations"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EntityLineage build() { + EntityLineage model = + new EntityLineage( + this.level, + this.direction, + this.objects, + this.relationships, + this.annotations); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EntityLineage model) { + if (model.wasPropertyExplicitlySet("level")) { + this.level(model.getLevel()); + } + if (model.wasPropertyExplicitlySet("direction")) { + this.direction(model.getDirection()); + } + if (model.wasPropertyExplicitlySet("objects")) { + this.objects(model.getObjects()); + } + if (model.wasPropertyExplicitlySet("relationships")) { + this.relationships(model.getRelationships()); + } + if (model.wasPropertyExplicitlySet("annotations")) { + this.annotations(model.getAnnotations()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Object level at which the lineage is returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("level") + private final Integer level; + + /** + * Object level at which the lineage is returned. + * + * @return the value + */ + public Integer getLevel() { + return level; + } + + /** Direction of the lineage returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("direction") + private final LineageDirection direction; + + /** + * Direction of the lineage returned. + * + * @return the value + */ + public LineageDirection getDirection() { + return direction; + } + + /** Set of objects that are involved in the lineage. */ + @com.fasterxml.jackson.annotation.JsonProperty("objects") + private final java.util.List objects; + + /** + * Set of objects that are involved in the lineage. + * + * @return the value + */ + public java.util.List getObjects() { + return objects; + } + + /** Set of relationships between the objects in the 'objects' set. */ + @com.fasterxml.jackson.annotation.JsonProperty("relationships") + private final java.util.List relationships; + + /** + * Set of relationships between the objects in the 'objects' set. + * + * @return the value + */ + public java.util.List getRelationships() { + return relationships; + } + + /** + * A map of maps that contains additional information in explanation of the lineage returned. + * The map keys are categories of information and the values are maps of annotation names to + * their corresponding values. Every annotation is contained inside a category. Example: {@code + * {"annotations": { "category": { "key": "value"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("annotations") + private final java.util.Map> annotations; + + /** + * A map of maps that contains additional information in explanation of the lineage returned. + * The map keys are categories of information and the values are maps of annotation names to + * their corresponding values. Every annotation is contained inside a category. Example: {@code + * {"annotations": { "category": { "key": "value"}}}} + * + * @return the value + */ + public java.util.Map> getAnnotations() { + return annotations; + } + + @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("EntityLineage("); + sb.append("super=").append(super.toString()); + sb.append("level=").append(String.valueOf(this.level)); + sb.append(", direction=").append(String.valueOf(this.direction)); + sb.append(", objects=").append(String.valueOf(this.objects)); + sb.append(", relationships=").append(String.valueOf(this.relationships)); + sb.append(", annotations=").append(String.valueOf(this.annotations)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EntityLineage)) { + return false; + } + + EntityLineage other = (EntityLineage) o; + return java.util.Objects.equals(this.level, other.level) + && java.util.Objects.equals(this.direction, other.direction) + && java.util.Objects.equals(this.objects, other.objects) + && java.util.Objects.equals(this.relationships, other.relationships) + && java.util.Objects.equals(this.annotations, other.annotations) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.level == null ? 43 : this.level.hashCode()); + result = (result * PRIME) + (this.direction == null ? 43 : this.direction.hashCode()); + result = (result * PRIME) + (this.objects == null ? 43 : this.objects.hashCode()); + result = + (result * PRIME) + + (this.relationships == null ? 43 : this.relationships.hashCode()); + result = (result * PRIME) + (this.annotations == null ? 43 : this.annotations.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntitySummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntitySummary.java index ce256ea3073..5598acfb82c 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntitySummary.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntitySummary.java @@ -44,6 +44,7 @@ public final class EntitySummary extends com.oracle.bmc.http.client.internal.Exp "uri", "objectStorageUrl", "lifecycleState", + "lifecycleDetails", "properties" }) public EntitySummary( @@ -67,6 +68,7 @@ public EntitySummary( String uri, String objectStorageUrl, LifecycleState lifecycleState, + String lifecycleDetails, java.util.Map> properties) { super(); this.key = key; @@ -89,6 +91,7 @@ public EntitySummary( this.uri = uri; this.objectStorageUrl = objectStorageUrl; this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; this.properties = properties; } @@ -424,6 +427,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } /** * A map of maps that contains the properties which are specific to the entity type. Each * entity type definition defines it's set of required and optional properties. The map keys @@ -478,6 +500,7 @@ public EntitySummary build() { this.uri, this.objectStorageUrl, this.lifecycleState, + this.lifecycleDetails, this.properties); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -547,6 +570,9 @@ public Builder copy(EntitySummary model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } if (model.wasPropertyExplicitlySet("properties")) { this.properties(model.getProperties()); } @@ -851,6 +877,23 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + /** * A map of maps that contains the properties which are specific to the entity type. Each entity * type definition defines it's set of required and optional properties. The map keys are @@ -909,6 +952,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", uri=").append(String.valueOf(this.uri)); sb.append(", objectStorageUrl=").append(String.valueOf(this.objectStorageUrl)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", properties=").append(String.valueOf(this.properties)); sb.append(")"); return sb.toString(); @@ -944,6 +988,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.uri, other.uri) && java.util.Objects.equals(this.objectStorageUrl, other.objectStorageUrl) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.properties, other.properties) && super.equals(other); } @@ -980,6 +1025,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FacetedSearchDateFilterRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FacetedSearchDateFilterRequest.java index 390ef2df670..62150c32f3a 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FacetedSearchDateFilterRequest.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FacetedSearchDateFilterRequest.java @@ -34,12 +34,16 @@ public FacetedSearchDateFilterRequest( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Date field name that needs to be filtered by. */ + /** + * Date field name that needs to be filtered by. Acceptable fields include TimeCreated and + * TimeUpdated. + */ @com.fasterxml.jackson.annotation.JsonProperty("fieldName") private String fieldName; /** - * Date field name that needs to be filtered by. + * Date field name that needs to be filtered by. Acceptable fields include TimeCreated and + * TimeUpdated. * * @param fieldName the value to set * @return this builder @@ -125,12 +129,16 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Date field name that needs to be filtered by. */ + /** + * Date field name that needs to be filtered by. Acceptable fields include TimeCreated and + * TimeUpdated. + */ @com.fasterxml.jackson.annotation.JsonProperty("fieldName") private final String fieldName; /** - * Date field name that needs to be filtered by. + * Date field name that needs to be filtered by. Acceptable fields include TimeCreated and + * TimeUpdated. * * @return the value */ diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FacetedSearchStringFilterRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FacetedSearchStringFilterRequest.java index 352ef5a875b..5247abaf4ca 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FacetedSearchStringFilterRequest.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FacetedSearchStringFilterRequest.java @@ -32,12 +32,18 @@ public FacetedSearchStringFilterRequest(String field, java.util.List val @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** String/boolean/numerical field name that needs to filtered with */ + /** + * String/boolean/numerical field name that needs to be filtered by. Acceptable field names: + * CatalogType, AttributeType, FolderType, DataAssetType, CreatedBy, UpdatedBy, Term, Tag, + * DataAssetName, LifeCycleState. + */ @com.fasterxml.jackson.annotation.JsonProperty("field") private String field; /** - * String/boolean/numerical field name that needs to filtered with + * String/boolean/numerical field name that needs to be filtered by. Acceptable field names: + * CatalogType, AttributeType, FolderType, DataAssetType, CreatedBy, UpdatedBy, Term, Tag, + * DataAssetName, LifeCycleState. * * @param field the value to set * @return this builder @@ -47,12 +53,20 @@ public Builder field(String field) { this.__explicitlySet__.add("field"); return this; } - /** Array of values that the search results needs to be filtered by. */ + /** + * Array of values that the search results needs to be filtered by. Acceptable values for + * field 'CatalogType': DataAsset, Folder, DataEntity, Attribute, Term, Category, Glossary, + * Pattern, Job, Schedule, CustomProperty. For other fields, acceptable values can be + * derived by inspecting the data object. + */ @com.fasterxml.jackson.annotation.JsonProperty("values") private java.util.List values; /** - * Array of values that the search results needs to be filtered by. + * Array of values that the search results needs to be filtered by. Acceptable values for + * field 'CatalogType': DataAsset, Folder, DataEntity, Attribute, Term, Category, Glossary, + * Pattern, Job, Schedule, CustomProperty. For other fields, acceptable values can be + * derived by inspecting the data object. * * @param values the value to set * @return this builder @@ -96,12 +110,18 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** String/boolean/numerical field name that needs to filtered with */ + /** + * String/boolean/numerical field name that needs to be filtered by. Acceptable field names: + * CatalogType, AttributeType, FolderType, DataAssetType, CreatedBy, UpdatedBy, Term, Tag, + * DataAssetName, LifeCycleState. + */ @com.fasterxml.jackson.annotation.JsonProperty("field") private final String field; /** - * String/boolean/numerical field name that needs to filtered with + * String/boolean/numerical field name that needs to be filtered by. Acceptable field names: + * CatalogType, AttributeType, FolderType, DataAssetType, CreatedBy, UpdatedBy, Term, Tag, + * DataAssetName, LifeCycleState. * * @return the value */ @@ -109,12 +129,20 @@ public String getField() { return field; } - /** Array of values that the search results needs to be filtered by. */ + /** + * Array of values that the search results needs to be filtered by. Acceptable values for field + * 'CatalogType': DataAsset, Folder, DataEntity, Attribute, Term, Category, Glossary, Pattern, + * Job, Schedule, CustomProperty. For other fields, acceptable values can be derived by + * inspecting the data object. + */ @com.fasterxml.jackson.annotation.JsonProperty("values") private final java.util.List values; /** - * Array of values that the search results needs to be filtered by. + * Array of values that the search results needs to be filtered by. Acceptable values for field + * 'CatalogType': DataAsset, Folder, DataEntity, Attribute, Term, Category, Glossary, Pattern, + * Job, Schedule, CustomProperty. For other fields, acceptable values can be derived by + * inspecting the data object. * * @return the value */ diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FetchEntityLineageDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FetchEntityLineageDetails.java new file mode 100644 index 00000000000..422a0fa6971 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FetchEntityLineageDetails.java @@ -0,0 +1,275 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * The information needed to obtain desired lineage.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FetchEntityLineageDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FetchEntityLineageDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "level", + "direction", + "isIntraLineage", + "intraLineageObjectKey" + }) + public FetchEntityLineageDetails( + Integer level, + LineageDirection direction, + Boolean isIntraLineage, + String intraLineageObjectKey) { + super(); + this.level = level; + this.direction = direction; + this.isIntraLineage = isIntraLineage; + this.intraLineageObjectKey = intraLineageObjectKey; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Object level at which the lineage is returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("level") + private Integer level; + + /** + * Object level at which the lineage is returned. + * + * @param level the value to set + * @return this builder + */ + public Builder level(Integer level) { + this.level = level; + this.__explicitlySet__.add("level"); + return this; + } + /** Direction of the lineage returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("direction") + private LineageDirection direction; + + /** + * Direction of the lineage returned. + * + * @param direction the value to set + * @return this builder + */ + public Builder direction(LineageDirection direction) { + this.direction = direction; + this.__explicitlySet__.add("direction"); + return this; + } + /** + * Intra-lineages are drill down lineages. This field indicates whether all intra-lineages + * need to be expanded inline in the lineage returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIntraLineage") + private Boolean isIntraLineage; + + /** + * Intra-lineages are drill down lineages. This field indicates whether all intra-lineages + * need to be expanded inline in the lineage returned. + * + * @param isIntraLineage the value to set + * @return this builder + */ + public Builder isIntraLineage(Boolean isIntraLineage) { + this.isIntraLineage = isIntraLineage; + this.__explicitlySet__.add("isIntraLineage"); + return this; + } + /** + * Unique object key for which intra-lineage needs to be fetched. Only drill-down lineage + * corresponding to the object whose object key is passed is returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("intraLineageObjectKey") + private String intraLineageObjectKey; + + /** + * Unique object key for which intra-lineage needs to be fetched. Only drill-down lineage + * corresponding to the object whose object key is passed is returned. + * + * @param intraLineageObjectKey the value to set + * @return this builder + */ + public Builder intraLineageObjectKey(String intraLineageObjectKey) { + this.intraLineageObjectKey = intraLineageObjectKey; + this.__explicitlySet__.add("intraLineageObjectKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FetchEntityLineageDetails build() { + FetchEntityLineageDetails model = + new FetchEntityLineageDetails( + this.level, + this.direction, + this.isIntraLineage, + this.intraLineageObjectKey); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FetchEntityLineageDetails model) { + if (model.wasPropertyExplicitlySet("level")) { + this.level(model.getLevel()); + } + if (model.wasPropertyExplicitlySet("direction")) { + this.direction(model.getDirection()); + } + if (model.wasPropertyExplicitlySet("isIntraLineage")) { + this.isIntraLineage(model.getIsIntraLineage()); + } + if (model.wasPropertyExplicitlySet("intraLineageObjectKey")) { + this.intraLineageObjectKey(model.getIntraLineageObjectKey()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Object level at which the lineage is returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("level") + private final Integer level; + + /** + * Object level at which the lineage is returned. + * + * @return the value + */ + public Integer getLevel() { + return level; + } + + /** Direction of the lineage returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("direction") + private final LineageDirection direction; + + /** + * Direction of the lineage returned. + * + * @return the value + */ + public LineageDirection getDirection() { + return direction; + } + + /** + * Intra-lineages are drill down lineages. This field indicates whether all intra-lineages need + * to be expanded inline in the lineage returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIntraLineage") + private final Boolean isIntraLineage; + + /** + * Intra-lineages are drill down lineages. This field indicates whether all intra-lineages need + * to be expanded inline in the lineage returned. + * + * @return the value + */ + public Boolean getIsIntraLineage() { + return isIntraLineage; + } + + /** + * Unique object key for which intra-lineage needs to be fetched. Only drill-down lineage + * corresponding to the object whose object key is passed is returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("intraLineageObjectKey") + private final String intraLineageObjectKey; + + /** + * Unique object key for which intra-lineage needs to be fetched. Only drill-down lineage + * corresponding to the object whose object key is passed is returned. + * + * @return the value + */ + public String getIntraLineageObjectKey() { + return intraLineageObjectKey; + } + + @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("FetchEntityLineageDetails("); + sb.append("super=").append(super.toString()); + sb.append("level=").append(String.valueOf(this.level)); + sb.append(", direction=").append(String.valueOf(this.direction)); + sb.append(", isIntraLineage=").append(String.valueOf(this.isIntraLineage)); + sb.append(", intraLineageObjectKey=").append(String.valueOf(this.intraLineageObjectKey)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FetchEntityLineageDetails)) { + return false; + } + + FetchEntityLineageDetails other = (FetchEntityLineageDetails) o; + return java.util.Objects.equals(this.level, other.level) + && java.util.Objects.equals(this.direction, other.direction) + && java.util.Objects.equals(this.isIntraLineage, other.isIntraLineage) + && java.util.Objects.equals(this.intraLineageObjectKey, other.intraLineageObjectKey) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.level == null ? 43 : this.level.hashCode()); + result = (result * PRIME) + (this.direction == null ? 43 : this.direction.hashCode()); + result = + (result * PRIME) + + (this.isIntraLineage == null ? 43 : this.isIntraLineage.hashCode()); + result = + (result * PRIME) + + (this.intraLineageObjectKey == null + ? 43 + : this.intraLineageObjectKey.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Folder.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Folder.java index 91ab77fbabc..b982e6b5419 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Folder.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Folder.java @@ -44,6 +44,7 @@ public final class Folder extends com.oracle.bmc.http.client.internal.Explicitly "updatedById", "timeExternal", "lifecycleState", + "lifecycleDetails", "harvestStatus", "lastJobKey", "uri", @@ -69,6 +70,7 @@ public Folder( String updatedById, java.util.Date timeExternal, LifecycleState lifecycleState, + String lifecycleDetails, HarvestStatus harvestStatus, String lastJobKey, String uri, @@ -93,6 +95,7 @@ public Folder( this.updatedById = updatedById; this.timeExternal = timeExternal; this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; this.harvestStatus = harvestStatus; this.lastJobKey = lastJobKey; this.uri = uri; @@ -419,6 +422,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } /** Status of the object as updated by the harvest process. */ @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") private HarvestStatus harvestStatus; @@ -505,6 +527,7 @@ public Folder build() { this.updatedById, this.timeExternal, this.lifecycleState, + this.lifecycleDetails, this.harvestStatus, this.lastJobKey, this.uri, @@ -574,6 +597,9 @@ public Builder copy(Folder model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } if (model.wasPropertyExplicitlySet("harvestStatus")) { this.harvestStatus(model.getHarvestStatus()); } @@ -876,6 +902,23 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + /** Status of the object as updated by the harvest process. */ @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") private final HarvestStatus harvestStatus; @@ -962,6 +1005,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", updatedById=").append(String.valueOf(this.updatedById)); sb.append(", timeExternal=").append(String.valueOf(this.timeExternal)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", harvestStatus=").append(String.valueOf(this.harvestStatus)); sb.append(", lastJobKey=").append(String.valueOf(this.lastJobKey)); sb.append(", uri=").append(String.valueOf(this.uri)); @@ -999,6 +1043,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.updatedById, other.updatedById) && java.util.Objects.equals(this.timeExternal, other.timeExternal) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.harvestStatus, other.harvestStatus) && java.util.Objects.equals(this.lastJobKey, other.lastJobKey) && java.util.Objects.equals(this.uri, other.uri) @@ -1043,6 +1088,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + (this.harvestStatus == null ? 43 : this.harvestStatus.hashCode()); diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderSummary.java index 3c54917b5c8..8dcecad109b 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderSummary.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderSummary.java @@ -40,7 +40,8 @@ public final class FolderSummary extends com.oracle.bmc.http.client.internal.Exp "timeUpdated", "uri", "objectStorageUrl", - "lifecycleState" + "lifecycleState", + "lifecycleDetails" }) public FolderSummary( String key, @@ -57,7 +58,8 @@ public FolderSummary( java.util.Date timeUpdated, String uri, String objectStorageUrl, - LifecycleState lifecycleState) { + LifecycleState lifecycleState, + String lifecycleDetails) { super(); this.key = key; this.displayName = displayName; @@ -74,6 +76,7 @@ public FolderSummary( this.uri = uri; this.objectStorageUrl = objectStorageUrl; this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -319,6 +322,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may + * have functional limitations, see service documentation for details. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -340,7 +362,8 @@ public FolderSummary build() { this.timeUpdated, this.uri, this.objectStorageUrl, - this.lifecycleState); + this.lifecycleState, + this.lifecycleDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -394,6 +417,9 @@ public Builder copy(FolderSummary model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } return this; } } @@ -618,6 +644,23 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have + * functional limitations, see service documentation for details. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + @Override public String toString() { return this.toString(true); @@ -648,6 +691,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", uri=").append(String.valueOf(this.uri)); sb.append(", objectStorageUrl=").append(String.valueOf(this.objectStorageUrl)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(")"); return sb.toString(); } @@ -677,6 +721,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.uri, other.uri) && java.util.Objects.equals(this.objectStorageUrl, other.objectStorageUrl) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && super.equals(other); } @@ -705,6 +750,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Job.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Job.java index 26115a5c7c0..a1962a36af2 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Job.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Job.java @@ -43,6 +43,7 @@ public final class Job extends com.oracle.bmc.http.client.internal.ExplicitlySet "updatedById", "jobDefinitionName", "dataAssetKey", + "glossaryKey", "errorCode", "errorMessage", "uri" @@ -69,6 +70,7 @@ public Job( String updatedById, String jobDefinitionName, String dataAssetKey, + String glossaryKey, String errorCode, String errorMessage, String uri) { @@ -94,6 +96,7 @@ public Job( this.updatedById = updatedById; this.jobDefinitionName = jobDefinitionName; this.dataAssetKey = dataAssetKey; + this.glossaryKey = glossaryKey; this.errorCode = errorCode; this.errorMessage = errorMessage; this.uri = uri; @@ -236,7 +239,8 @@ public Builder jobType(JobType jobType) { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. */ @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") private String scheduleCronExpression; @@ -244,7 +248,8 @@ public Builder jobType(JobType jobType) { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. * * @param scheduleCronExpression the value to set * @return this builder @@ -454,6 +459,21 @@ public Builder dataAssetKey(String dataAssetKey) { this.__explicitlySet__.add("dataAssetKey"); return this; } + /** Unique key of the glossary to which this job applies. */ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + /** + * Unique key of the glossary to which this job applies. + * + * @param glossaryKey the value to set + * @return this builder + */ + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + return this; + } /** * Error code returned from the latest job execution for this job. Useful when the latest * Job execution is in FAILED state. @@ -535,6 +555,7 @@ public Job build() { this.updatedById, this.jobDefinitionName, this.dataAssetKey, + this.glossaryKey, this.errorCode, this.errorMessage, this.uri); @@ -609,6 +630,9 @@ public Builder copy(Job model) { if (model.wasPropertyExplicitlySet("dataAssetKey")) { this.dataAssetKey(model.getDataAssetKey()); } + if (model.wasPropertyExplicitlySet("glossaryKey")) { + this.glossaryKey(model.getGlossaryKey()); + } if (model.wasPropertyExplicitlySet("errorCode")) { this.errorCode(model.getErrorCode()); } @@ -750,7 +774,8 @@ public JobType getJobType() { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. */ @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") private final String scheduleCronExpression; @@ -758,7 +783,8 @@ public JobType getJobType() { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. * * @return the value */ @@ -940,6 +966,19 @@ public String getDataAssetKey() { return dataAssetKey; } + /** Unique key of the glossary to which this job applies. */ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private final String glossaryKey; + + /** + * Unique key of the glossary to which this job applies. + * + * @return the value + */ + public String getGlossaryKey() { + return glossaryKey; + } + /** * Error code returned from the latest job execution for this job. Useful when the latest Job * execution is in FAILED state. @@ -1023,6 +1062,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", updatedById=").append(String.valueOf(this.updatedById)); sb.append(", jobDefinitionName=").append(String.valueOf(this.jobDefinitionName)); sb.append(", dataAssetKey=").append(String.valueOf(this.dataAssetKey)); + sb.append(", glossaryKey=").append(String.valueOf(this.glossaryKey)); sb.append(", errorCode=").append(String.valueOf(this.errorCode)); sb.append(", errorMessage=").append(String.valueOf(this.errorMessage)); sb.append(", uri=").append(String.valueOf(this.uri)); @@ -1062,6 +1102,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.updatedById, other.updatedById) && java.util.Objects.equals(this.jobDefinitionName, other.jobDefinitionName) && java.util.Objects.equals(this.dataAssetKey, other.dataAssetKey) + && java.util.Objects.equals(this.glossaryKey, other.glossaryKey) && java.util.Objects.equals(this.errorCode, other.errorCode) && java.util.Objects.equals(this.errorMessage, other.errorMessage) && java.util.Objects.equals(this.uri, other.uri) @@ -1117,6 +1158,7 @@ public int hashCode() { (result * PRIME) + (this.jobDefinitionName == null ? 43 : this.jobDefinitionName.hashCode()); result = (result * PRIME) + (this.dataAssetKey == null ? 43 : this.dataAssetKey.hashCode()); + result = (result * PRIME) + (this.glossaryKey == null ? 43 : this.glossaryKey.hashCode()); result = (result * PRIME) + (this.errorCode == null ? 43 : this.errorCode.hashCode()); result = (result * PRIME) + (this.errorMessage == null ? 43 : this.errorMessage.hashCode()); result = (result * PRIME) + (this.uri == null ? 43 : this.uri.hashCode()); diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinition.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinition.java index 1d9e1c85ef6..936c4471863 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinition.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinition.java @@ -31,6 +31,7 @@ public final class JobDefinition extends com.oracle.bmc.http.client.internal.Exp "jobType", "isIncremental", "dataAssetKey", + "glossaryKey", "description", "connectionKey", "internalVersion", @@ -55,6 +56,7 @@ public JobDefinition( JobType jobType, Boolean isIncremental, String dataAssetKey, + String glossaryKey, String description, String connectionKey, String internalVersion, @@ -78,6 +80,7 @@ public JobDefinition( this.jobType = jobType; this.isIncremental = isIncremental; this.dataAssetKey = dataAssetKey; + this.glossaryKey = glossaryKey; this.description = description; this.connectionKey = connectionKey; this.internalVersion = internalVersion; @@ -192,6 +195,21 @@ public Builder dataAssetKey(String dataAssetKey) { this.__explicitlySet__.add("dataAssetKey"); return this; } + /** Unique key of the glossary to which this job applies. */ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + /** + * Unique key of the glossary to which this job applies. + * + * @param glossaryKey the value to set + * @return this builder + */ + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + return this; + } /** Detailed description of the job definition. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; @@ -481,6 +499,7 @@ public JobDefinition build() { this.jobType, this.isIncremental, this.dataAssetKey, + this.glossaryKey, this.description, this.connectionKey, this.internalVersion, @@ -523,6 +542,9 @@ public Builder copy(JobDefinition model) { if (model.wasPropertyExplicitlySet("dataAssetKey")) { this.dataAssetKey(model.getDataAssetKey()); } + if (model.wasPropertyExplicitlySet("glossaryKey")) { + this.glossaryKey(model.getGlossaryKey()); + } if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } @@ -666,6 +688,19 @@ public String getDataAssetKey() { return dataAssetKey; } + /** Unique key of the glossary to which this job applies. */ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private final String glossaryKey; + + /** + * Unique key of the glossary to which this job applies. + * + * @return the value + */ + public String getGlossaryKey() { + return glossaryKey; + } + /** Detailed description of the job definition. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private final String description; @@ -929,6 +964,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", jobType=").append(String.valueOf(this.jobType)); sb.append(", isIncremental=").append(String.valueOf(this.isIncremental)); sb.append(", dataAssetKey=").append(String.valueOf(this.dataAssetKey)); + sb.append(", glossaryKey=").append(String.valueOf(this.glossaryKey)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", connectionKey=").append(String.valueOf(this.connectionKey)); sb.append(", internalVersion=").append(String.valueOf(this.internalVersion)); @@ -967,6 +1003,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.jobType, other.jobType) && java.util.Objects.equals(this.isIncremental, other.isIncremental) && java.util.Objects.equals(this.dataAssetKey, other.dataAssetKey) + && java.util.Objects.equals(this.glossaryKey, other.glossaryKey) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.connectionKey, other.connectionKey) && java.util.Objects.equals(this.internalVersion, other.internalVersion) @@ -1000,6 +1037,7 @@ public int hashCode() { (result * PRIME) + (this.isIncremental == null ? 43 : this.isIncremental.hashCode()); result = (result * PRIME) + (this.dataAssetKey == null ? 43 : this.dataAssetKey.hashCode()); + result = (result * PRIME) + (this.glossaryKey == null ? 43 : this.glossaryKey.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionSummary.java index 4294a8fd41b..7bf96893e58 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionSummary.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionSummary.java @@ -41,7 +41,8 @@ public final class JobDefinitionSummary "timeLatestExecutionEnded", "jobExecutionState", "scheduleType", - "dataAssetKey" + "dataAssetKey", + "glossaryKey" }) public JobDefinitionSummary( String key, @@ -58,7 +59,8 @@ public JobDefinitionSummary( java.util.Date timeLatestExecutionEnded, JobExecutionState jobExecutionState, JobScheduleType scheduleType, - String dataAssetKey) { + String dataAssetKey, + String glossaryKey) { super(); this.key = key; this.displayName = displayName; @@ -75,6 +77,7 @@ public JobDefinitionSummary( this.jobExecutionState = jobExecutionState; this.scheduleType = scheduleType; this.dataAssetKey = dataAssetKey; + this.glossaryKey = glossaryKey; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -322,6 +325,21 @@ public Builder dataAssetKey(String dataAssetKey) { this.__explicitlySet__.add("dataAssetKey"); return this; } + /** Unique key of the glossary to which this job applies, if the job involves a glossary. */ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + /** + * Unique key of the glossary to which this job applies, if the job involves a glossary. + * + * @param glossaryKey the value to set + * @return this builder + */ + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -343,7 +361,8 @@ public JobDefinitionSummary build() { this.timeLatestExecutionEnded, this.jobExecutionState, this.scheduleType, - this.dataAssetKey); + this.dataAssetKey, + this.glossaryKey); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -397,6 +416,9 @@ public Builder copy(JobDefinitionSummary model) { if (model.wasPropertyExplicitlySet("dataAssetKey")) { this.dataAssetKey(model.getDataAssetKey()); } + if (model.wasPropertyExplicitlySet("glossaryKey")) { + this.glossaryKey(model.getGlossaryKey()); + } return this; } } @@ -621,6 +643,19 @@ public String getDataAssetKey() { return dataAssetKey; } + /** Unique key of the glossary to which this job applies, if the job involves a glossary. */ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private final String glossaryKey; + + /** + * Unique key of the glossary to which this job applies, if the job involves a glossary. + * + * @return the value + */ + public String getGlossaryKey() { + return glossaryKey; + } + @Override public String toString() { return this.toString(true); @@ -653,6 +688,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", jobExecutionState=").append(String.valueOf(this.jobExecutionState)); sb.append(", scheduleType=").append(String.valueOf(this.scheduleType)); sb.append(", dataAssetKey=").append(String.valueOf(this.dataAssetKey)); + sb.append(", glossaryKey=").append(String.valueOf(this.glossaryKey)); sb.append(")"); return sb.toString(); } @@ -684,6 +720,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.jobExecutionState, other.jobExecutionState) && java.util.Objects.equals(this.scheduleType, other.scheduleType) && java.util.Objects.equals(this.dataAssetKey, other.dataAssetKey) + && java.util.Objects.equals(this.glossaryKey, other.glossaryKey) && super.equals(other); } @@ -724,6 +761,7 @@ public int hashCode() { + (this.jobExecutionState == null ? 43 : this.jobExecutionState.hashCode()); result = (result * PRIME) + (this.scheduleType == null ? 43 : this.scheduleType.hashCode()); result = (result * PRIME) + (this.dataAssetKey == null ? 43 : this.dataAssetKey.hashCode()); + result = (result * PRIME) + (this.glossaryKey == null ? 43 : this.glossaryKey.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobSummary.java index 20dfdaea3d0..b17e3eff4d9 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobSummary.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobSummary.java @@ -41,6 +41,7 @@ public final class JobSummary extends com.oracle.bmc.http.client.internal.Explic "timeOfLatestExecution", "jobDefinitionName", "dataAssetKey", + "glossaryKey", "errorCode", "errorMessage", "executions" @@ -65,6 +66,7 @@ public JobSummary( java.util.Date timeOfLatestExecution, String jobDefinitionName, String dataAssetKey, + String glossaryKey, String errorCode, String errorMessage, java.util.List executions) { @@ -88,6 +90,7 @@ public JobSummary( this.timeOfLatestExecution = timeOfLatestExecution; this.jobDefinitionName = jobDefinitionName; this.dataAssetKey = dataAssetKey; + this.glossaryKey = glossaryKey; this.errorCode = errorCode; this.errorMessage = errorMessage; this.executions = executions; @@ -305,7 +308,8 @@ public Builder updatedById(String updatedById) { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. */ @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") private String scheduleCronExpression; @@ -313,7 +317,8 @@ public Builder updatedById(String updatedById) { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. * * @param scheduleCronExpression the value to set * @return this builder @@ -408,6 +413,21 @@ public Builder dataAssetKey(String dataAssetKey) { this.__explicitlySet__.add("dataAssetKey"); return this; } + /** Unique key of the glossary to which this job applies. */ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + /** + * Unique key of the glossary to which this job applies. + * + * @param glossaryKey the value to set + * @return this builder + */ + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + return this; + } /** * Error code returned from the latest job execution for this job. Useful when the latest * Job execution is in FAILED state. @@ -487,6 +507,7 @@ public JobSummary build() { this.timeOfLatestExecution, this.jobDefinitionName, this.dataAssetKey, + this.glossaryKey, this.errorCode, this.errorMessage, this.executions); @@ -555,6 +576,9 @@ public Builder copy(JobSummary model) { if (model.wasPropertyExplicitlySet("dataAssetKey")) { this.dataAssetKey(model.getDataAssetKey()); } + if (model.wasPropertyExplicitlySet("glossaryKey")) { + this.glossaryKey(model.getGlossaryKey()); + } if (model.wasPropertyExplicitlySet("errorCode")) { this.errorCode(model.getErrorCode()); } @@ -761,7 +785,8 @@ public String getUpdatedById() { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. */ @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") private final String scheduleCronExpression; @@ -769,7 +794,8 @@ public String getUpdatedById() { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. * * @return the value */ @@ -850,6 +876,19 @@ public String getDataAssetKey() { return dataAssetKey; } + /** Unique key of the glossary to which this job applies. */ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private final String glossaryKey; + + /** + * Unique key of the glossary to which this job applies. + * + * @return the value + */ + public String getGlossaryKey() { + return glossaryKey; + } + /** * Error code returned from the latest job execution for this job. Useful when the latest Job * execution is in FAILED state. @@ -931,6 +970,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeOfLatestExecution=").append(String.valueOf(this.timeOfLatestExecution)); sb.append(", jobDefinitionName=").append(String.valueOf(this.jobDefinitionName)); sb.append(", dataAssetKey=").append(String.valueOf(this.dataAssetKey)); + sb.append(", glossaryKey=").append(String.valueOf(this.glossaryKey)); sb.append(", errorCode=").append(String.valueOf(this.errorCode)); sb.append(", errorMessage=").append(String.valueOf(this.errorMessage)); sb.append(", executions=").append(String.valueOf(this.executions)); @@ -968,6 +1008,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeOfLatestExecution, other.timeOfLatestExecution) && java.util.Objects.equals(this.jobDefinitionName, other.jobDefinitionName) && java.util.Objects.equals(this.dataAssetKey, other.dataAssetKey) + && java.util.Objects.equals(this.glossaryKey, other.glossaryKey) && java.util.Objects.equals(this.errorCode, other.errorCode) && java.util.Objects.equals(this.errorMessage, other.errorMessage) && java.util.Objects.equals(this.executions, other.executions) @@ -1015,6 +1056,7 @@ public int hashCode() { (result * PRIME) + (this.jobDefinitionName == null ? 43 : this.jobDefinitionName.hashCode()); result = (result * PRIME) + (this.dataAssetKey == null ? 43 : this.dataAssetKey.hashCode()); + result = (result * PRIME) + (this.glossaryKey == null ? 43 : this.glossaryKey.hashCode()); result = (result * PRIME) + (this.errorCode == null ? 43 : this.errorCode.hashCode()); result = (result * PRIME) + (this.errorMessage == null ? 43 : this.errorMessage.hashCode()); result = (result * PRIME) + (this.executions == null ? 43 : this.executions.hashCode()); diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobType.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobType.java index a98888c89fe..05de5803c8c 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobType.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobType.java @@ -15,7 +15,9 @@ * import glossary metadata from a file. EXPORT_GLOSSARY - Job type to export glossary metadata to a * file. ASYNC_DELETE - Job type for asynchronous bulk delete on data assets, folders and data * entities. PURGE - Job type for cleaning up schedules, executions and logs of a Job. - * IMPORT_DATA_ASSET - Job type to import technical objects to a data asset. + * IMPORT_DATA_ASSET - Job type to import technical objects to a data asset. CREATE_SCAN_PROXY - Job + * type to create scan proxy resource for RAC enabled data asset. ASYNC_EXPORT_GLOSSARY - Job type + * to export glossary metadata to a file asynchronously. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") public enum JobType implements com.oracle.bmc.http.internal.BmcEnum { @@ -36,6 +38,8 @@ public enum JobType implements com.oracle.bmc.http.internal.BmcEnum { ScheduledExecutionInstance("SCHEDULED_EXECUTION_INSTANCE"), AsyncDelete("ASYNC_DELETE"), ImportDataAsset("IMPORT_DATA_ASSET"), + CreateScanProxy("CREATE_SCAN_PROXY"), + AsyncExportGlossary("ASYNC_EXPORT_GLOSSARY"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Region.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LineageDirection.java similarity index 51% rename from bmc-cims/src/main/java/com/oracle/bmc/cims/model/Region.java rename to bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LineageDirection.java index 6c2e3ec8f3d..8d76f69070c 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/model/Region.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LineageDirection.java @@ -2,34 +2,18 @@ * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.cims.model; +package com.oracle.bmc.datacatalog.model; -/** The available Oracle Cloud Infrastructure regions supported by the Support Management API. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") -public enum Region implements com.oracle.bmc.http.internal.BmcEnum { - Dev("DEV"), - Sea("SEA"), - IntegNext("INTEG_NEXT"), - IntegStable("INTEG_STABLE"), - Phx("PHX"), - Iad("IAD"), - Fra("FRA"), - EuFrankfurt1("EU_FRANKFURT_1"), - Lhr("LHR"), - Yyz("YYZ"), - Nrt("NRT"), - Icn("ICN"), - Bom("BOM"), - Gru("GRU"), - Syd("SYD"), - Zrh("ZRH"), - Jed("JED"), - Ams("AMS"), - Kix("KIX"), - Mel("MEL"), - Yul("YUL"), - Hyd("HYD"), - Yny("YNY"), +/** + * Indicates the direction for lineage fetch. It is one of upstream (or source objects), downstream + * (or target objects), both. Corresponding enums are: UPSTREAM - Source objects. DOWNSTREAM - + * Target objects. BOTH - Both source and target objects. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public enum LineageDirection implements com.oracle.bmc.http.internal.BmcEnum { + Upstream("UPSTREAM"), + Both("BOTH"), + Downstream("DOWNSTREAM"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -37,21 +21,22 @@ public enum Region implements com.oracle.bmc.http.internal.BmcEnum { */ UnknownEnumValue(null); - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Region.class); + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LineageDirection.class); private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (Region v : Region.values()) { + for (LineageDirection v : LineageDirection.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } - Region(String value) { + LineageDirection(String value) { this.value = value; } @@ -61,11 +46,13 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static Region create(String key) { + public static LineageDirection create(String key) { if (map.containsKey(key)) { return map.get(key); } - LOG.warn("Received unknown value '{}' for enum 'Region', returning UnknownEnumValue", key); + LOG.warn( + "Received unknown value '{}' for enum 'LineageDirection', returning UnknownEnumValue", + key); return UnknownEnumValue; } } diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LineageObject.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LineageObject.java new file mode 100644 index 00000000000..61cf1c7fe75 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LineageObject.java @@ -0,0 +1,569 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Object describing an individual element of object lineage.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = LineageObject.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LineageObject extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "objectKey", + "displayName", + "description", + "isIntraLineageAvailable", + "parentKey", + "parentPath", + "timeCreated", + "timeUpdated", + "typeName", + "typeKey", + "properties" + }) + public LineageObject( + String objectKey, + String displayName, + String description, + Boolean isIntraLineageAvailable, + String parentKey, + String parentPath, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String typeName, + String typeKey, + java.util.Map> properties) { + super(); + this.objectKey = objectKey; + this.displayName = displayName; + this.description = description; + this.isIntraLineageAvailable = isIntraLineageAvailable; + this.parentKey = parentKey; + this.parentPath = parentPath; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.typeName = typeName; + this.typeKey = typeKey; + this.properties = properties; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Key of the object, such as an entity, about which this lineage applies. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectKey") + private String objectKey; + + /** + * Key of the object, such as an entity, about which this lineage applies. + * + * @param objectKey the value to set + * @return this builder + */ + public Builder objectKey(String objectKey) { + this.objectKey = objectKey; + this.__explicitlySet__.add("objectKey"); + return this; + } + /** Display name of the object. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name of the object. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Detailed description of the object. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Detailed description of the object. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Indicates if intra-lineage is available for this given object. If yes, drill-down can be + * requested for this object. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIntraLineageAvailable") + private Boolean isIntraLineageAvailable; + + /** + * Indicates if intra-lineage is available for this given object. If yes, drill-down can be + * requested for this object. + * + * @param isIntraLineageAvailable the value to set + * @return this builder + */ + public Builder isIntraLineageAvailable(Boolean isIntraLineageAvailable) { + this.isIntraLineageAvailable = isIntraLineageAvailable; + this.__explicitlySet__.add("isIntraLineageAvailable"); + return this; + } + /** Key of the parent object for this object. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentKey") + private String parentKey; + + /** + * Key of the parent object for this object. + * + * @param parentKey the value to set + * @return this builder + */ + public Builder parentKey(String parentKey) { + this.parentKey = parentKey; + this.__explicitlySet__.add("parentKey"); + return this; + } + /** Full path of the parent object. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentPath") + private String parentPath; + + /** + * Full path of the parent object. + * + * @param parentPath the value to set + * @return this builder + */ + public Builder parentPath(String parentPath) { + this.parentPath = parentPath; + this.__explicitlySet__.add("parentPath"); + return this; + } + /** + * The time that this object was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time that this object was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) + * formatted datetime string. + * + * @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; + } + /** + * The time that this object was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time that this object was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) + * formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Type name of the object. Type keys can be found via the '/types' endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("typeName") + private String typeName; + + /** + * Type name of the object. Type keys can be found via the '/types' endpoint. + * + * @param typeName the value to set + * @return this builder + */ + public Builder typeName(String typeName) { + this.typeName = typeName; + this.__explicitlySet__.add("typeName"); + return this; + } + /** Type key of the object. Type keys can be found via the '/types' endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + private String typeKey; + + /** + * Type key of the object. Type keys can be found via the '/types' endpoint. + * + * @param typeKey the value to set + * @return this builder + */ + public Builder typeKey(String typeKey) { + this.typeKey = typeKey; + this.__explicitlySet__.add("typeKey"); + return this; + } + /** + * A map of maps that contains the properties which are specific to the entity type. Each + * entity type definition defines it's set of required and optional properties. The map keys + * are category names and the values are maps of property name to property value. Every + * property is contained inside of a category. Most data entities have required properties + * within the "default" category. Example: {@code {"properties": { "default": { "key1": + * "value1"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + /** + * A map of maps that contains the properties which are specific to the entity type. Each + * entity type definition defines it's set of required and optional properties. The map keys + * are category names and the values are maps of property name to property value. Every + * property is contained inside of a category. Most data entities have required properties + * within the "default" category. Example: {@code {"properties": { "default": { "key1": + * "value1"}}}} + * + * @param properties the value to set + * @return this builder + */ + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LineageObject build() { + LineageObject model = + new LineageObject( + this.objectKey, + this.displayName, + this.description, + this.isIntraLineageAvailable, + this.parentKey, + this.parentPath, + this.timeCreated, + this.timeUpdated, + this.typeName, + this.typeKey, + this.properties); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LineageObject model) { + if (model.wasPropertyExplicitlySet("objectKey")) { + this.objectKey(model.getObjectKey()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("isIntraLineageAvailable")) { + this.isIntraLineageAvailable(model.getIsIntraLineageAvailable()); + } + if (model.wasPropertyExplicitlySet("parentKey")) { + this.parentKey(model.getParentKey()); + } + if (model.wasPropertyExplicitlySet("parentPath")) { + this.parentPath(model.getParentPath()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("typeName")) { + this.typeName(model.getTypeName()); + } + if (model.wasPropertyExplicitlySet("typeKey")) { + this.typeKey(model.getTypeKey()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Key of the object, such as an entity, about which this lineage applies. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectKey") + private final String objectKey; + + /** + * Key of the object, such as an entity, about which this lineage applies. + * + * @return the value + */ + public String getObjectKey() { + return objectKey; + } + + /** Display name of the object. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name of the object. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Detailed description of the object. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Detailed description of the object. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * Indicates if intra-lineage is available for this given object. If yes, drill-down can be + * requested for this object. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIntraLineageAvailable") + private final Boolean isIntraLineageAvailable; + + /** + * Indicates if intra-lineage is available for this given object. If yes, drill-down can be + * requested for this object. + * + * @return the value + */ + public Boolean getIsIntraLineageAvailable() { + return isIntraLineageAvailable; + } + + /** Key of the parent object for this object. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentKey") + private final String parentKey; + + /** + * Key of the parent object for this object. + * + * @return the value + */ + public String getParentKey() { + return parentKey; + } + + /** Full path of the parent object. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentPath") + private final String parentPath; + + /** + * Full path of the parent object. + * + * @return the value + */ + public String getParentPath() { + return parentPath; + } + + /** + * The time that this object was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time that this object was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) + * formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time that this object was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time that this object was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) + * formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Type name of the object. Type keys can be found via the '/types' endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("typeName") + private final String typeName; + + /** + * Type name of the object. Type keys can be found via the '/types' endpoint. + * + * @return the value + */ + public String getTypeName() { + return typeName; + } + + /** Type key of the object. Type keys can be found via the '/types' endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + private final String typeKey; + + /** + * Type key of the object. Type keys can be found via the '/types' endpoint. + * + * @return the value + */ + public String getTypeKey() { + return typeKey; + } + + /** + * A map of maps that contains the properties which are specific to the entity type. Each entity + * type definition defines it's set of required and optional properties. The map keys are + * category names and the values are maps of property name to property value. Every property is + * contained inside of a category. Most data entities have required properties within the + * "default" category. Example: {@code {"properties": { "default": { "key1": "value1"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final java.util.Map> properties; + + /** + * A map of maps that contains the properties which are specific to the entity type. Each entity + * type definition defines it's set of required and optional properties. The map keys are + * category names and the values are maps of property name to property value. Every property is + * contained inside of a category. Most data entities have required properties within the + * "default" category. Example: {@code {"properties": { "default": { "key1": "value1"}}}} + * + * @return the value + */ + public java.util.Map> getProperties() { + return properties; + } + + @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("LineageObject("); + sb.append("super=").append(super.toString()); + sb.append("objectKey=").append(String.valueOf(this.objectKey)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", isIntraLineageAvailable=") + .append(String.valueOf(this.isIntraLineageAvailable)); + sb.append(", parentKey=").append(String.valueOf(this.parentKey)); + sb.append(", parentPath=").append(String.valueOf(this.parentPath)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", typeName=").append(String.valueOf(this.typeName)); + sb.append(", typeKey=").append(String.valueOf(this.typeKey)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LineageObject)) { + return false; + } + + LineageObject other = (LineageObject) o; + return java.util.Objects.equals(this.objectKey, other.objectKey) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals( + this.isIntraLineageAvailable, other.isIntraLineageAvailable) + && java.util.Objects.equals(this.parentKey, other.parentKey) + && java.util.Objects.equals(this.parentPath, other.parentPath) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.typeName, other.typeName) + && java.util.Objects.equals(this.typeKey, other.typeKey) + && java.util.Objects.equals(this.properties, other.properties) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.objectKey == null ? 43 : this.objectKey.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.isIntraLineageAvailable == null + ? 43 + : this.isIntraLineageAvailable.hashCode()); + result = (result * PRIME) + (this.parentKey == null ? 43 : this.parentKey.hashCode()); + result = (result * PRIME) + (this.parentPath == null ? 43 : this.parentPath.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.typeName == null ? 43 : this.typeName.hashCode()); + result = (result * PRIME) + (this.typeKey == null ? 43 : this.typeKey.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LineageRelationship.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LineageRelationship.java new file mode 100644 index 00000000000..cacaf938dd2 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LineageRelationship.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Declares how two elements of object lineage are related.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LineageRelationship.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LineageRelationship + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"fromObjectKey", "toObjectKey", "relationshipType"}) + public LineageRelationship(String fromObjectKey, String toObjectKey, String relationshipType) { + super(); + this.fromObjectKey = fromObjectKey; + this.toObjectKey = toObjectKey; + this.relationshipType = relationshipType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Object key of source lineage element. */ + @com.fasterxml.jackson.annotation.JsonProperty("fromObjectKey") + private String fromObjectKey; + + /** + * Object key of source lineage element. + * + * @param fromObjectKey the value to set + * @return this builder + */ + public Builder fromObjectKey(String fromObjectKey) { + this.fromObjectKey = fromObjectKey; + this.__explicitlySet__.add("fromObjectKey"); + return this; + } + /** Object key of target lineage element. */ + @com.fasterxml.jackson.annotation.JsonProperty("toObjectKey") + private String toObjectKey; + + /** + * Object key of target lineage element. + * + * @param toObjectKey the value to set + * @return this builder + */ + public Builder toObjectKey(String toObjectKey) { + this.toObjectKey = toObjectKey; + this.__explicitlySet__.add("toObjectKey"); + return this; + } + /** Type of the relationship. */ + @com.fasterxml.jackson.annotation.JsonProperty("relationshipType") + private String relationshipType; + + /** + * Type of the relationship. + * + * @param relationshipType the value to set + * @return this builder + */ + public Builder relationshipType(String relationshipType) { + this.relationshipType = relationshipType; + this.__explicitlySet__.add("relationshipType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LineageRelationship build() { + LineageRelationship model = + new LineageRelationship( + this.fromObjectKey, this.toObjectKey, this.relationshipType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LineageRelationship model) { + if (model.wasPropertyExplicitlySet("fromObjectKey")) { + this.fromObjectKey(model.getFromObjectKey()); + } + if (model.wasPropertyExplicitlySet("toObjectKey")) { + this.toObjectKey(model.getToObjectKey()); + } + if (model.wasPropertyExplicitlySet("relationshipType")) { + this.relationshipType(model.getRelationshipType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Object key of source lineage element. */ + @com.fasterxml.jackson.annotation.JsonProperty("fromObjectKey") + private final String fromObjectKey; + + /** + * Object key of source lineage element. + * + * @return the value + */ + public String getFromObjectKey() { + return fromObjectKey; + } + + /** Object key of target lineage element. */ + @com.fasterxml.jackson.annotation.JsonProperty("toObjectKey") + private final String toObjectKey; + + /** + * Object key of target lineage element. + * + * @return the value + */ + public String getToObjectKey() { + return toObjectKey; + } + + /** Type of the relationship. */ + @com.fasterxml.jackson.annotation.JsonProperty("relationshipType") + private final String relationshipType; + + /** + * Type of the relationship. + * + * @return the value + */ + public String getRelationshipType() { + return relationshipType; + } + + @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("LineageRelationship("); + sb.append("super=").append(super.toString()); + sb.append("fromObjectKey=").append(String.valueOf(this.fromObjectKey)); + sb.append(", toObjectKey=").append(String.valueOf(this.toObjectKey)); + sb.append(", relationshipType=").append(String.valueOf(this.relationshipType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LineageRelationship)) { + return false; + } + + LineageRelationship other = (LineageRelationship) o; + return java.util.Objects.equals(this.fromObjectKey, other.fromObjectKey) + && java.util.Objects.equals(this.toObjectKey, other.toObjectKey) + && java.util.Objects.equals(this.relationshipType, other.relationshipType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.fromObjectKey == null ? 43 : this.fromObjectKey.hashCode()); + result = (result * PRIME) + (this.toObjectKey == null ? 43 : this.toObjectKey.hashCode()); + result = + (result * PRIME) + + (this.relationshipType == null ? 43 : this.relationshipType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ObjectLineage.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ObjectLineage.java new file mode 100644 index 00000000000..ebc3c2ead3b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ObjectLineage.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Lineage for an object.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ObjectLineage.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ObjectLineage extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "level", + "direction", + "objects", + "relationships", + "annotations" + }) + public ObjectLineage( + Integer level, + LineageDirection direction, + java.util.List objects, + java.util.List relationships, + java.util.Map> annotations) { + super(); + this.level = level; + this.direction = direction; + this.objects = objects; + this.relationships = relationships; + this.annotations = annotations; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Object level at which the lineage is returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("level") + private Integer level; + + /** + * Object level at which the lineage is returned. + * + * @param level the value to set + * @return this builder + */ + public Builder level(Integer level) { + this.level = level; + this.__explicitlySet__.add("level"); + return this; + } + /** Direction of the lineage returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("direction") + private LineageDirection direction; + + /** + * Direction of the lineage returned. + * + * @param direction the value to set + * @return this builder + */ + public Builder direction(LineageDirection direction) { + this.direction = direction; + this.__explicitlySet__.add("direction"); + return this; + } + /** Set of objects that are involved in the lineage. */ + @com.fasterxml.jackson.annotation.JsonProperty("objects") + private java.util.List objects; + + /** + * Set of objects that are involved in the lineage. + * + * @param objects the value to set + * @return this builder + */ + public Builder objects(java.util.List objects) { + this.objects = objects; + this.__explicitlySet__.add("objects"); + return this; + } + /** Set of relationships between the objects in the 'objects' set. */ + @com.fasterxml.jackson.annotation.JsonProperty("relationships") + private java.util.List relationships; + + /** + * Set of relationships between the objects in the 'objects' set. + * + * @param relationships the value to set + * @return this builder + */ + public Builder relationships(java.util.List relationships) { + this.relationships = relationships; + this.__explicitlySet__.add("relationships"); + return this; + } + /** + * A map of maps that contains additional information in explanation of the lineage + * returned. The map keys are categories of information and the values are maps of + * annotation names to their corresponding values. Every annotation is contained inside a + * category. Example: {@code {"annotations": { "category": { "key": "value"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("annotations") + private java.util.Map> annotations; + + /** + * A map of maps that contains additional information in explanation of the lineage + * returned. The map keys are categories of information and the values are maps of + * annotation names to their corresponding values. Every annotation is contained inside a + * category. Example: {@code {"annotations": { "category": { "key": "value"}}}} + * + * @param annotations the value to set + * @return this builder + */ + public Builder annotations( + java.util.Map> annotations) { + this.annotations = annotations; + this.__explicitlySet__.add("annotations"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ObjectLineage build() { + ObjectLineage model = + new ObjectLineage( + this.level, + this.direction, + this.objects, + this.relationships, + this.annotations); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ObjectLineage model) { + if (model.wasPropertyExplicitlySet("level")) { + this.level(model.getLevel()); + } + if (model.wasPropertyExplicitlySet("direction")) { + this.direction(model.getDirection()); + } + if (model.wasPropertyExplicitlySet("objects")) { + this.objects(model.getObjects()); + } + if (model.wasPropertyExplicitlySet("relationships")) { + this.relationships(model.getRelationships()); + } + if (model.wasPropertyExplicitlySet("annotations")) { + this.annotations(model.getAnnotations()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Object level at which the lineage is returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("level") + private final Integer level; + + /** + * Object level at which the lineage is returned. + * + * @return the value + */ + public Integer getLevel() { + return level; + } + + /** Direction of the lineage returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("direction") + private final LineageDirection direction; + + /** + * Direction of the lineage returned. + * + * @return the value + */ + public LineageDirection getDirection() { + return direction; + } + + /** Set of objects that are involved in the lineage. */ + @com.fasterxml.jackson.annotation.JsonProperty("objects") + private final java.util.List objects; + + /** + * Set of objects that are involved in the lineage. + * + * @return the value + */ + public java.util.List getObjects() { + return objects; + } + + /** Set of relationships between the objects in the 'objects' set. */ + @com.fasterxml.jackson.annotation.JsonProperty("relationships") + private final java.util.List relationships; + + /** + * Set of relationships between the objects in the 'objects' set. + * + * @return the value + */ + public java.util.List getRelationships() { + return relationships; + } + + /** + * A map of maps that contains additional information in explanation of the lineage returned. + * The map keys are categories of information and the values are maps of annotation names to + * their corresponding values. Every annotation is contained inside a category. Example: {@code + * {"annotations": { "category": { "key": "value"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("annotations") + private final java.util.Map> annotations; + + /** + * A map of maps that contains additional information in explanation of the lineage returned. + * The map keys are categories of information and the values are maps of annotation names to + * their corresponding values. Every annotation is contained inside a category. Example: {@code + * {"annotations": { "category": { "key": "value"}}}} + * + * @return the value + */ + public java.util.Map> getAnnotations() { + return annotations; + } + + @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("ObjectLineage("); + sb.append("super=").append(super.toString()); + sb.append("level=").append(String.valueOf(this.level)); + sb.append(", direction=").append(String.valueOf(this.direction)); + sb.append(", objects=").append(String.valueOf(this.objects)); + sb.append(", relationships=").append(String.valueOf(this.relationships)); + sb.append(", annotations=").append(String.valueOf(this.annotations)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ObjectLineage)) { + return false; + } + + ObjectLineage other = (ObjectLineage) o; + return java.util.Objects.equals(this.level, other.level) + && java.util.Objects.equals(this.direction, other.direction) + && java.util.Objects.equals(this.objects, other.objects) + && java.util.Objects.equals(this.relationships, other.relationships) + && java.util.Objects.equals(this.annotations, other.annotations) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.level == null ? 43 : this.level.hashCode()); + result = (result * PRIME) + (this.direction == null ? 43 : this.direction.hashCode()); + result = (result * PRIME) + (this.objects == null ? 43 : this.objects.hashCode()); + result = + (result * PRIME) + + (this.relationships == null ? 43 : this.relationships.hashCode()); + result = (result * PRIME) + (this.annotations == null ? 43 : this.annotations.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ObjectLineageRequestDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ObjectLineageRequestDetails.java new file mode 100644 index 00000000000..8b9bb3557a9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ObjectLineageRequestDetails.java @@ -0,0 +1,275 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Details needed by a lineage fetch request.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ObjectLineageRequestDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ObjectLineageRequestDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "level", + "direction", + "isIntraLineage", + "intraLineageObjectKey" + }) + public ObjectLineageRequestDetails( + Integer level, + LineageDirection direction, + Boolean isIntraLineage, + String intraLineageObjectKey) { + super(); + this.level = level; + this.direction = direction; + this.isIntraLineage = isIntraLineage; + this.intraLineageObjectKey = intraLineageObjectKey; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Object level at which the lineage is returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("level") + private Integer level; + + /** + * Object level at which the lineage is returned. + * + * @param level the value to set + * @return this builder + */ + public Builder level(Integer level) { + this.level = level; + this.__explicitlySet__.add("level"); + return this; + } + /** Direction of the lineage returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("direction") + private LineageDirection direction; + + /** + * Direction of the lineage returned. + * + * @param direction the value to set + * @return this builder + */ + public Builder direction(LineageDirection direction) { + this.direction = direction; + this.__explicitlySet__.add("direction"); + return this; + } + /** + * Intra-lineages are drill down lineages. This field indicates whether all intra-lineages + * need to be expanded inline in the lineage returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIntraLineage") + private Boolean isIntraLineage; + + /** + * Intra-lineages are drill down lineages. This field indicates whether all intra-lineages + * need to be expanded inline in the lineage returned. + * + * @param isIntraLineage the value to set + * @return this builder + */ + public Builder isIntraLineage(Boolean isIntraLineage) { + this.isIntraLineage = isIntraLineage; + this.__explicitlySet__.add("isIntraLineage"); + return this; + } + /** + * Unique object key for which intra-lineage needs to be fetched. Only drill-down lineage + * corresponding to the object whose object key is passed is returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("intraLineageObjectKey") + private String intraLineageObjectKey; + + /** + * Unique object key for which intra-lineage needs to be fetched. Only drill-down lineage + * corresponding to the object whose object key is passed is returned. + * + * @param intraLineageObjectKey the value to set + * @return this builder + */ + public Builder intraLineageObjectKey(String intraLineageObjectKey) { + this.intraLineageObjectKey = intraLineageObjectKey; + this.__explicitlySet__.add("intraLineageObjectKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ObjectLineageRequestDetails build() { + ObjectLineageRequestDetails model = + new ObjectLineageRequestDetails( + this.level, + this.direction, + this.isIntraLineage, + this.intraLineageObjectKey); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ObjectLineageRequestDetails model) { + if (model.wasPropertyExplicitlySet("level")) { + this.level(model.getLevel()); + } + if (model.wasPropertyExplicitlySet("direction")) { + this.direction(model.getDirection()); + } + if (model.wasPropertyExplicitlySet("isIntraLineage")) { + this.isIntraLineage(model.getIsIntraLineage()); + } + if (model.wasPropertyExplicitlySet("intraLineageObjectKey")) { + this.intraLineageObjectKey(model.getIntraLineageObjectKey()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Object level at which the lineage is returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("level") + private final Integer level; + + /** + * Object level at which the lineage is returned. + * + * @return the value + */ + public Integer getLevel() { + return level; + } + + /** Direction of the lineage returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("direction") + private final LineageDirection direction; + + /** + * Direction of the lineage returned. + * + * @return the value + */ + public LineageDirection getDirection() { + return direction; + } + + /** + * Intra-lineages are drill down lineages. This field indicates whether all intra-lineages need + * to be expanded inline in the lineage returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIntraLineage") + private final Boolean isIntraLineage; + + /** + * Intra-lineages are drill down lineages. This field indicates whether all intra-lineages need + * to be expanded inline in the lineage returned. + * + * @return the value + */ + public Boolean getIsIntraLineage() { + return isIntraLineage; + } + + /** + * Unique object key for which intra-lineage needs to be fetched. Only drill-down lineage + * corresponding to the object whose object key is passed is returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("intraLineageObjectKey") + private final String intraLineageObjectKey; + + /** + * Unique object key for which intra-lineage needs to be fetched. Only drill-down lineage + * corresponding to the object whose object key is passed is returned. + * + * @return the value + */ + public String getIntraLineageObjectKey() { + return intraLineageObjectKey; + } + + @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("ObjectLineageRequestDetails("); + sb.append("super=").append(super.toString()); + sb.append("level=").append(String.valueOf(this.level)); + sb.append(", direction=").append(String.valueOf(this.direction)); + sb.append(", isIntraLineage=").append(String.valueOf(this.isIntraLineage)); + sb.append(", intraLineageObjectKey=").append(String.valueOf(this.intraLineageObjectKey)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ObjectLineageRequestDetails)) { + return false; + } + + ObjectLineageRequestDetails other = (ObjectLineageRequestDetails) o; + return java.util.Objects.equals(this.level, other.level) + && java.util.Objects.equals(this.direction, other.direction) + && java.util.Objects.equals(this.isIntraLineage, other.isIntraLineage) + && java.util.Objects.equals(this.intraLineageObjectKey, other.intraLineageObjectKey) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.level == null ? 43 : this.level.hashCode()); + result = (result * PRIME) + (this.direction == null ? 43 : this.direction.hashCode()); + result = + (result * PRIME) + + (this.isIntraLineage == null ? 43 : this.isIntraLineage.hashCode()); + result = + (result * PRIME) + + (this.intraLineageObjectKey == null + ? 43 + : this.intraLineageObjectKey.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ObjectStorageObjectReference.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ObjectStorageObjectReference.java new file mode 100644 index 00000000000..97ecea42a85 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ObjectStorageObjectReference.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * A reference to an Object Storage object.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ObjectStorageObjectReference.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ObjectStorageObjectReference + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"namespaceName", "bucketName", "objectName"}) + public ObjectStorageObjectReference( + String namespaceName, String bucketName, String objectName) { + super(); + this.namespaceName = namespaceName; + this.bucketName = bucketName; + this.objectName = objectName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Object Storage namespace. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private String namespaceName; + + /** + * Object Storage namespace. + * + * @param namespaceName the value to set + * @return this builder + */ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + this.__explicitlySet__.add("namespaceName"); + return this; + } + /** Object Storage bucket name. */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * Object Storage bucket name. + * + * @param bucketName the value to set + * @return this builder + */ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** Object Storage object name. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * Object Storage object name. + * + * @param objectName the value to set + * @return this builder + */ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ObjectStorageObjectReference build() { + ObjectStorageObjectReference model = + new ObjectStorageObjectReference( + this.namespaceName, this.bucketName, this.objectName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ObjectStorageObjectReference model) { + if (model.wasPropertyExplicitlySet("namespaceName")) { + this.namespaceName(model.getNamespaceName()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Object Storage namespace. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private final String namespaceName; + + /** + * Object Storage namespace. + * + * @return the value + */ + public String getNamespaceName() { + return namespaceName; + } + + /** Object Storage bucket name. */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * Object Storage bucket name. + * + * @return the value + */ + public String getBucketName() { + return bucketName; + } + + /** Object Storage object name. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * Object Storage object name. + * + * @return the value + */ + public String getObjectName() { + return objectName; + } + + @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("ObjectStorageObjectReference("); + sb.append("super=").append(super.toString()); + sb.append("namespaceName=").append(String.valueOf(this.namespaceName)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ObjectStorageObjectReference)) { + return false; + } + + ObjectStorageObjectReference other = (ObjectStorageObjectReference) o; + return java.util.Objects.equals(this.namespaceName, other.namespaceName) + && java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.objectName, other.objectName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDefinitionDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDefinitionDetails.java index 76d6b13ffa5..39e909a617a 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDefinitionDetails.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDefinitionDetails.java @@ -27,6 +27,7 @@ public final class UpdateJobDefinitionDetails "displayName", "isIncremental", "dataAssetKey", + "glossaryKey", "description", "connectionKey", "isSampleDataExtracted", @@ -37,6 +38,7 @@ public UpdateJobDefinitionDetails( String displayName, Boolean isIncremental, String dataAssetKey, + String glossaryKey, String description, String connectionKey, Boolean isSampleDataExtracted, @@ -46,6 +48,7 @@ public UpdateJobDefinitionDetails( this.displayName = displayName; this.isIncremental = isIncremental; this.dataAssetKey = dataAssetKey; + this.glossaryKey = glossaryKey; this.description = description; this.connectionKey = connectionKey; this.isSampleDataExtracted = isSampleDataExtracted; @@ -104,6 +107,21 @@ public Builder dataAssetKey(String dataAssetKey) { this.__explicitlySet__.add("dataAssetKey"); return this; } + /** Unique key of the glossary to which this job applies. */ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + /** + * Unique key of the glossary to which this job applies. + * + * @param glossaryKey the value to set + * @return this builder + */ + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + return this; + } /** Detailed description of the job definition. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; @@ -205,6 +223,7 @@ public UpdateJobDefinitionDetails build() { this.displayName, this.isIncremental, this.dataAssetKey, + this.glossaryKey, this.description, this.connectionKey, this.isSampleDataExtracted, @@ -227,6 +246,9 @@ public Builder copy(UpdateJobDefinitionDetails model) { if (model.wasPropertyExplicitlySet("dataAssetKey")) { this.dataAssetKey(model.getDataAssetKey()); } + if (model.wasPropertyExplicitlySet("glossaryKey")) { + this.glossaryKey(model.getGlossaryKey()); + } if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } @@ -298,6 +320,19 @@ public String getDataAssetKey() { return dataAssetKey; } + /** Unique key of the glossary to which this job applies. */ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private final String glossaryKey; + + /** + * Unique key of the glossary to which this job applies. + * + * @return the value + */ + public String getGlossaryKey() { + return glossaryKey; + } + /** Detailed description of the job definition. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private final String description; @@ -395,6 +430,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", isIncremental=").append(String.valueOf(this.isIncremental)); sb.append(", dataAssetKey=").append(String.valueOf(this.dataAssetKey)); + sb.append(", glossaryKey=").append(String.valueOf(this.glossaryKey)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", connectionKey=").append(String.valueOf(this.connectionKey)); sb.append(", isSampleDataExtracted=").append(String.valueOf(this.isSampleDataExtracted)); @@ -417,6 +453,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.isIncremental, other.isIncremental) && java.util.Objects.equals(this.dataAssetKey, other.dataAssetKey) + && java.util.Objects.equals(this.glossaryKey, other.glossaryKey) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.connectionKey, other.connectionKey) && java.util.Objects.equals(this.isSampleDataExtracted, other.isSampleDataExtracted) @@ -434,6 +471,7 @@ public int hashCode() { (result * PRIME) + (this.isIncremental == null ? 43 : this.isIncremental.hashCode()); result = (result * PRIME) + (this.dataAssetKey == null ? 43 : this.dataAssetKey.hashCode()); + result = (result * PRIME) + (this.glossaryKey == null ? 43 : this.glossaryKey.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDetails.java index da6836e0ac4..19a6e448e9d 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDetails.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDetails.java @@ -85,7 +85,8 @@ public Builder description(String description) { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. */ @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") private String scheduleCronExpression; @@ -93,7 +94,8 @@ public Builder description(String description) { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. * * @param scheduleCronExpression the value to set * @return this builder @@ -241,7 +243,8 @@ public String getDescription() { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. */ @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") private final String scheduleCronExpression; @@ -249,7 +252,8 @@ public String getDescription() { /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. * * @return the value */ diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/AsynchronousExportGlossaryRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/AsynchronousExportGlossaryRequest.java new file mode 100644 index 00000000000..32a81902fce --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/AsynchronousExportGlossaryRequest.java @@ -0,0 +1,338 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; +/** + * Example: Click here to see how to use + * AsynchronousExportGlossaryRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public class AsynchronousExportGlossaryRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryDetails> { + + /** Unique catalog identifier. */ + private String catalogId; + + /** Unique catalog identifier. */ + public String getCatalogId() { + return catalogId; + } + /** Unique glossary key. */ + private String glossaryKey; + + /** Unique glossary key. */ + public String getGlossaryKey() { + return glossaryKey; + } + /** Details needed by the glossary export request. */ + private com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryDetails + asynchronousExportGlossaryDetails; + + /** Details needed by the glossary export request. */ + public com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryDetails + getAsynchronousExportGlossaryDetails() { + return asynchronousExportGlossaryDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryDetails getBody$() { + return asynchronousExportGlossaryDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AsynchronousExportGlossaryRequest, + com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique catalog identifier. */ + private String catalogId = null; + + /** + * Unique catalog identifier. + * + * @param catalogId the value to set + * @return this builder instance + */ + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + return this; + } + + /** Unique glossary key. */ + private String glossaryKey = null; + + /** + * Unique glossary key. + * + * @param glossaryKey the value to set + * @return this builder instance + */ + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + return this; + } + + /** Details needed by the glossary export request. */ + private com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryDetails + asynchronousExportGlossaryDetails = null; + + /** + * Details needed by the glossary export request. + * + * @param asynchronousExportGlossaryDetails the value to set + * @return this builder instance + */ + public Builder asynchronousExportGlossaryDetails( + com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryDetails + asynchronousExportGlossaryDetails) { + this.asynchronousExportGlossaryDetails = asynchronousExportGlossaryDetails; + 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; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + 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 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; + } + + /** + * 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.http.client.RequestInterceptor 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(AsynchronousExportGlossaryRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + asynchronousExportGlossaryDetails(o.getAsynchronousExportGlossaryDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AsynchronousExportGlossaryRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of AsynchronousExportGlossaryRequest + */ + public AsynchronousExportGlossaryRequest build() { + AsynchronousExportGlossaryRequest 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.datacatalog.model.AsynchronousExportGlossaryDetails body) { + asynchronousExportGlossaryDetails(body); + return this; + } + + /** + * Build the instance of AsynchronousExportGlossaryRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of AsynchronousExportGlossaryRequest + */ + public AsynchronousExportGlossaryRequest buildWithoutInvocationCallback() { + AsynchronousExportGlossaryRequest request = new AsynchronousExportGlossaryRequest(); + request.catalogId = catalogId; + request.glossaryKey = glossaryKey; + request.asynchronousExportGlossaryDetails = asynchronousExportGlossaryDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new AsynchronousExportGlossaryRequest(catalogId, glossaryKey, + // asynchronousExportGlossaryDetails, opcRequestId, opcRetryToken); + } + } + + /** + * 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() + .catalogId(catalogId) + .glossaryKey(glossaryKey) + .asynchronousExportGlossaryDetails(asynchronousExportGlossaryDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * 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(",catalogId=").append(String.valueOf(this.catalogId)); + sb.append(",glossaryKey=").append(String.valueOf(this.glossaryKey)); + sb.append(",asynchronousExportGlossaryDetails=") + .append(String.valueOf(this.asynchronousExportGlossaryDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AsynchronousExportGlossaryRequest)) { + return false; + } + + AsynchronousExportGlossaryRequest other = (AsynchronousExportGlossaryRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.catalogId, other.catalogId) + && java.util.Objects.equals(this.glossaryKey, other.glossaryKey) + && java.util.Objects.equals( + this.asynchronousExportGlossaryDetails, + other.asynchronousExportGlossaryDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.catalogId == null ? 43 : this.catalogId.hashCode()); + result = (result * PRIME) + (this.glossaryKey == null ? 43 : this.glossaryKey.hashCode()); + result = + (result * PRIME) + + (this.asynchronousExportGlossaryDetails == null + ? 43 + : this.asynchronousExportGlossaryDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/FetchEntityLineageRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/FetchEntityLineageRequest.java new file mode 100644 index 00000000000..f86295b0d50 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/FetchEntityLineageRequest.java @@ -0,0 +1,419 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; +/** + * Example: Click here to see how to use FetchEntityLineageRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public class FetchEntityLineageRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacatalog.model.FetchEntityLineageDetails> { + + /** Unique catalog identifier. */ + private String catalogId; + + /** Unique catalog identifier. */ + public String getCatalogId() { + return catalogId; + } + /** Unique data asset key. */ + private String dataAssetKey; + + /** Unique data asset key. */ + public String getDataAssetKey() { + return dataAssetKey; + } + /** Unique entity key. */ + private String entityKey; + + /** Unique entity key. */ + public String getEntityKey() { + return entityKey; + } + /** The information needed to obtain desired lineage. */ + private com.oracle.bmc.datacatalog.model.FetchEntityLineageDetails fetchEntityLineageDetails; + + /** The information needed to obtain desired lineage. */ + public com.oracle.bmc.datacatalog.model.FetchEntityLineageDetails + getFetchEntityLineageDetails() { + return fetchEntityLineageDetails; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datacatalog.model.FetchEntityLineageDetails getBody$() { + return fetchEntityLineageDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + FetchEntityLineageRequest, + com.oracle.bmc.datacatalog.model.FetchEntityLineageDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique catalog identifier. */ + private String catalogId = null; + + /** + * Unique catalog identifier. + * + * @param catalogId the value to set + * @return this builder instance + */ + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + return this; + } + + /** Unique data asset key. */ + private String dataAssetKey = null; + + /** + * Unique data asset key. + * + * @param dataAssetKey the value to set + * @return this builder instance + */ + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + return this; + } + + /** Unique entity key. */ + private String entityKey = null; + + /** + * Unique entity key. + * + * @param entityKey the value to set + * @return this builder instance + */ + public Builder entityKey(String entityKey) { + this.entityKey = entityKey; + return this; + } + + /** The information needed to obtain desired lineage. */ + private com.oracle.bmc.datacatalog.model.FetchEntityLineageDetails + fetchEntityLineageDetails = null; + + /** + * The information needed to obtain desired lineage. + * + * @param fetchEntityLineageDetails the value to set + * @return this builder instance + */ + public Builder fetchEntityLineageDetails( + com.oracle.bmc.datacatalog.model.FetchEntityLineageDetails + fetchEntityLineageDetails) { + this.fetchEntityLineageDetails = fetchEntityLineageDetails; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + 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; + } + + /** + * 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.http.client.RequestInterceptor 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(FetchEntityLineageRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + fetchEntityLineageDetails(o.getFetchEntityLineageDetails()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of FetchEntityLineageRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of FetchEntityLineageRequest + */ + public FetchEntityLineageRequest build() { + FetchEntityLineageRequest 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.datacatalog.model.FetchEntityLineageDetails body) { + fetchEntityLineageDetails(body); + return this; + } + + /** + * Build the instance of FetchEntityLineageRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of FetchEntityLineageRequest + */ + public FetchEntityLineageRequest buildWithoutInvocationCallback() { + FetchEntityLineageRequest request = new FetchEntityLineageRequest(); + request.catalogId = catalogId; + request.dataAssetKey = dataAssetKey; + request.entityKey = entityKey; + request.fetchEntityLineageDetails = fetchEntityLineageDetails; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new FetchEntityLineageRequest(catalogId, dataAssetKey, entityKey, + // fetchEntityLineageDetails, limit, page, opcRequestId, ifMatch); + } + } + + /** + * 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() + .catalogId(catalogId) + .dataAssetKey(dataAssetKey) + .entityKey(entityKey) + .fetchEntityLineageDetails(fetchEntityLineageDetails) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * 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(",catalogId=").append(String.valueOf(this.catalogId)); + sb.append(",dataAssetKey=").append(String.valueOf(this.dataAssetKey)); + sb.append(",entityKey=").append(String.valueOf(this.entityKey)); + sb.append(",fetchEntityLineageDetails=") + .append(String.valueOf(this.fetchEntityLineageDetails)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FetchEntityLineageRequest)) { + return false; + } + + FetchEntityLineageRequest other = (FetchEntityLineageRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.catalogId, other.catalogId) + && java.util.Objects.equals(this.dataAssetKey, other.dataAssetKey) + && java.util.Objects.equals(this.entityKey, other.entityKey) + && java.util.Objects.equals( + this.fetchEntityLineageDetails, other.fetchEntityLineageDetails) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.catalogId == null ? 43 : this.catalogId.hashCode()); + result = (result * PRIME) + (this.dataAssetKey == null ? 43 : this.dataAssetKey.hashCode()); + result = (result * PRIME) + (this.entityKey == null ? 43 : this.entityKey.hashCode()); + result = + (result * PRIME) + + (this.fetchEntityLineageDetails == null + ? 43 + : this.fetchEntityLineageDetails.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListAttributesRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListAttributesRequest.java index 122dddffe81..6516d3beb79 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListAttributesRequest.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListAttributesRequest.java @@ -270,21 +270,24 @@ public java.util.List getFields() { return fields; } /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is - * descending. Default order for DISPLAYNAME is ascending. Default order for POSITION is - * ascending. If no value is specified POSITION is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME considers + * businessName of a given object if set, else its displayName is used. Default sort order for + * TIMECREATED is descending and default sort order for DISPLAYNAME, POSITION and + * DISPLAYORBUSINESSNAME is ascending. If no order is specified, POSITION is the default. */ private SortBy sortBy; /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is - * descending. Default order for DISPLAYNAME is ascending. Default order for POSITION is - * ascending. If no value is specified POSITION is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME considers + * businessName of a given object if set, else its displayName is used. Default sort order for + * TIMECREATED is descending and default sort order for DISPLAYNAME, POSITION and + * DISPLAYORBUSINESSNAME is ascending. If no order is specified, POSITION is the default. */ public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { Timecreated("TIMECREATED"), Displayname("DISPLAYNAME"), Position("POSITION"), + Displayorbusinessname("DISPLAYORBUSINESSNAME"), ; private final String value; @@ -316,9 +319,10 @@ public static SortBy create(String key) { }; /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is - * descending. Default order for DISPLAYNAME is ascending. Default order for POSITION is - * ascending. If no value is specified POSITION is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME considers + * businessName of a given object if set, else its displayName is used. Default sort order for + * TIMECREATED is descending and default sort order for DISPLAYNAME, POSITION and + * DISPLAYORBUSINESSNAME is ascending. If no order is specified, POSITION is the default. */ public SortBy getSortBy() { return sortBy; @@ -758,16 +762,20 @@ public Builder fields(Fields singularValue) { } /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED - * is descending. Default order for DISPLAYNAME is ascending. Default order for POSITION is - * ascending. If no value is specified POSITION is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME + * considers businessName of a given object if set, else its displayName is used. Default + * sort order for TIMECREATED is descending and default sort order for DISPLAYNAME, POSITION + * and DISPLAYORBUSINESSNAME is ascending. If no order is specified, POSITION is the + * default. */ private SortBy sortBy = null; /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED - * is descending. Default order for DISPLAYNAME is ascending. Default order for POSITION is - * ascending. If no value is specified POSITION is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME + * considers businessName of a given object if set, else its displayName is used. Default + * sort order for TIMECREATED is descending and default sort order for DISPLAYNAME, POSITION + * and DISPLAYORBUSINESSNAME is ascending. If no order is specified, POSITION is the + * default. * * @param sortBy the value to set * @return this builder instance diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntitiesRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntitiesRequest.java index 13089d2cba1..cd9fba2f981 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntitiesRequest.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntitiesRequest.java @@ -286,20 +286,23 @@ public java.util.List getFields() { return fields; } /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is - * descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED - * is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME considers + * businessName of a given object if set, else its displayName is used. Default sort order for + * TIMECREATED is descending and default sort order for DISPLAYNAME and DISPLAYORBUSINESSNAME is + * ascending. If no order is specified, TIMECREATED is the default. */ private SortBy sortBy; /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is - * descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED - * is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME considers + * businessName of a given object if set, else its displayName is used. Default sort order for + * TIMECREATED is descending and default sort order for DISPLAYNAME and DISPLAYORBUSINESSNAME is + * ascending. If no order is specified, TIMECREATED is the default. */ public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { Timecreated("TIMECREATED"), Displayname("DISPLAYNAME"), + Displayorbusinessname("DISPLAYORBUSINESSNAME"), ; private final String value; @@ -331,9 +334,10 @@ public static SortBy create(String key) { }; /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is - * descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED - * is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME considers + * businessName of a given object if set, else its displayName is used. Default sort order for + * TIMECREATED is descending and default sort order for DISPLAYNAME and DISPLAYORBUSINESSNAME is + * ascending. If no order is specified, TIMECREATED is the default. */ public SortBy getSortBy() { return sortBy; @@ -797,16 +801,18 @@ public Builder fields(Fields singularValue) { } /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED - * is descending. Default order for DISPLAYNAME is ascending. If no value is specified - * TIMECREATED is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME + * considers businessName of a given object if set, else its displayName is used. Default + * sort order for TIMECREATED is descending and default sort order for DISPLAYNAME and + * DISPLAYORBUSINESSNAME is ascending. If no order is specified, TIMECREATED is the default. */ private SortBy sortBy = null; /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED - * is descending. Default order for DISPLAYNAME is ascending. If no value is specified - * TIMECREATED is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME + * considers businessName of a given object if set, else its displayName is used. Default + * sort order for TIMECREATED is descending and default sort order for DISPLAYNAME and + * DISPLAYORBUSINESSNAME is ascending. If no order is specified, TIMECREATED is the default. * * @param sortBy the value to set * @return this builder instance diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListFoldersRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListFoldersRequest.java index 6b42a6513b2..c6a6338f19f 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListFoldersRequest.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListFoldersRequest.java @@ -223,21 +223,31 @@ public static Fields create(String key) { public java.util.List getFields() { return fields; } + /** The key of the object type. */ + private String typeKey; + + /** The key of the object type. */ + public String getTypeKey() { + return typeKey; + } /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is - * descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED - * is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME considers + * businessName of a given object if set, else its displayName is used. Default sort order for + * TIMECREATED is descending and default sort order for DISPLAYNAME and DISPLAYORBUSINESSNAME is + * ascending. If no order is specified, TIMECREATED is the default. */ private SortBy sortBy; /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is - * descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED - * is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME considers + * businessName of a given object if set, else its displayName is used. Default sort order for + * TIMECREATED is descending and default sort order for DISPLAYNAME and DISPLAYORBUSINESSNAME is + * ascending. If no order is specified, TIMECREATED is the default. */ public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { Timecreated("TIMECREATED"), Displayname("DISPLAYNAME"), + Displayorbusinessname("DISPLAYORBUSINESSNAME"), ; private final String value; @@ -269,9 +279,10 @@ public static SortBy create(String key) { }; /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is - * descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED - * is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME considers + * businessName of a given object if set, else its displayName is used. Default sort order for + * TIMECREATED is descending and default sort order for DISPLAYNAME and DISPLAYORBUSINESSNAME is + * ascending. If no order is specified, TIMECREATED is the default. */ public SortBy getSortBy() { return sortBy; @@ -638,17 +649,33 @@ public Builder fields(Fields singularValue) { return this.fields(java.util.Arrays.asList(singularValue)); } + /** The key of the object type. */ + private String typeKey = null; + + /** + * The key of the object type. + * + * @param typeKey the value to set + * @return this builder instance + */ + public Builder typeKey(String typeKey) { + this.typeKey = typeKey; + return this; + } + /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED - * is descending. Default order for DISPLAYNAME is ascending. If no value is specified - * TIMECREATED is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME + * considers businessName of a given object if set, else its displayName is used. Default + * sort order for TIMECREATED is descending and default sort order for DISPLAYNAME and + * DISPLAYORBUSINESSNAME is ascending. If no order is specified, TIMECREATED is the default. */ private SortBy sortBy = null; /** - * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED - * is descending. Default order for DISPLAYNAME is ascending. If no value is specified - * TIMECREATED is default. + * The field to sort by. Only one sort order may be provided. DISPLAYORBUSINESSNAME + * considers businessName of a given object if set, else its displayName is used. Default + * sort order for TIMECREATED is descending and default sort order for DISPLAYNAME and + * DISPLAYORBUSINESSNAME is ascending. If no order is specified, TIMECREATED is the default. * * @param sortBy the value to set * @return this builder instance @@ -765,6 +792,7 @@ public Builder copy(ListFoldersRequest o) { harvestStatus(o.getHarvestStatus()); lastJobKey(o.getLastJobKey()); fields(o.getFields()); + typeKey(o.getTypeKey()); sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); limit(o.getLimit()); @@ -821,6 +849,7 @@ public ListFoldersRequest buildWithoutInvocationCallback() { request.harvestStatus = harvestStatus; request.lastJobKey = lastJobKey; request.fields = fields; + request.typeKey = typeKey; request.sortBy = sortBy; request.sortOrder = sortOrder; request.limit = limit; @@ -830,7 +859,7 @@ public ListFoldersRequest buildWithoutInvocationCallback() { // new ListFoldersRequest(catalogId, dataAssetKey, displayName, businessName, // displayOrBusinessNameContains, displayNameContains, lifecycleState, parentFolderKey, // path, externalKey, timeCreated, timeUpdated, createdById, updatedById, harvestStatus, - // lastJobKey, fields, sortBy, sortOrder, limit, page, opcRequestId); + // lastJobKey, fields, typeKey, sortBy, sortOrder, limit, page, opcRequestId); } } @@ -858,6 +887,7 @@ public Builder toBuilder() { .harvestStatus(harvestStatus) .lastJobKey(lastJobKey) .fields(fields) + .typeKey(typeKey) .sortBy(sortBy) .sortOrder(sortOrder) .limit(limit) @@ -897,6 +927,7 @@ public String toString() { sb.append(",harvestStatus=").append(String.valueOf(this.harvestStatus)); sb.append(",lastJobKey=").append(String.valueOf(this.lastJobKey)); sb.append(",fields=").append(String.valueOf(this.fields)); + sb.append(",typeKey=").append(String.valueOf(this.typeKey)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",limit=").append(String.valueOf(this.limit)); @@ -935,6 +966,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.harvestStatus, other.harvestStatus) && java.util.Objects.equals(this.lastJobKey, other.lastJobKey) && java.util.Objects.equals(this.fields, other.fields) + && java.util.Objects.equals(this.typeKey, other.typeKey) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.limit, other.limit) @@ -977,6 +1009,7 @@ public int hashCode() { + (this.harvestStatus == null ? 43 : this.harvestStatus.hashCode()); result = (result * PRIME) + (this.lastJobKey == null ? 43 : this.lastJobKey.hashCode()); result = (result * PRIME) + (this.fields == null ? 43 : this.fields.hashCode()); + result = (result * PRIME) + (this.typeKey == null ? 43 : this.typeKey.hashCode()); result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobDefinitionsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobDefinitionsRequest.java index 040f21b5fea..fefd05063d9 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobDefinitionsRequest.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobDefinitionsRequest.java @@ -89,6 +89,13 @@ public Boolean getIsIncremental() { public String getDataAssetKey() { return dataAssetKey; } + /** Unique glossary key. */ + private String glossaryKey; + + /** Unique glossary key. */ + public String getGlossaryKey() { + return glossaryKey; + } /** Unique connection key. */ private String connectionKey; @@ -455,6 +462,20 @@ public Builder dataAssetKey(String dataAssetKey) { return this; } + /** Unique glossary key. */ + private String glossaryKey = null; + + /** + * Unique glossary key. + * + * @param glossaryKey the value to set + * @return this builder instance + */ + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + return this; + } + /** Unique connection key. */ private String connectionKey = null; @@ -691,6 +712,7 @@ public Builder copy(ListJobDefinitionsRequest o) { jobType(o.getJobType()); isIncremental(o.getIsIncremental()); dataAssetKey(o.getDataAssetKey()); + glossaryKey(o.getGlossaryKey()); connectionKey(o.getConnectionKey()); timeCreated(o.getTimeCreated()); timeUpdated(o.getTimeUpdated()); @@ -745,6 +767,7 @@ public ListJobDefinitionsRequest buildWithoutInvocationCallback() { request.jobType = jobType; request.isIncremental = isIncremental; request.dataAssetKey = dataAssetKey; + request.glossaryKey = glossaryKey; request.connectionKey = connectionKey; request.timeCreated = timeCreated; request.timeUpdated = timeUpdated; @@ -759,7 +782,7 @@ public ListJobDefinitionsRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; return request; // new ListJobDefinitionsRequest(catalogId, displayName, displayNameContains, - // jobExecutionState, lifecycleState, jobType, isIncremental, dataAssetKey, + // jobExecutionState, lifecycleState, jobType, isIncremental, dataAssetKey, glossaryKey, // connectionKey, timeCreated, timeUpdated, createdById, updatedById, // sampleDataSizeInMBs, fields, sortBy, sortOrder, limit, page, opcRequestId); } @@ -780,6 +803,7 @@ public Builder toBuilder() { .jobType(jobType) .isIncremental(isIncremental) .dataAssetKey(dataAssetKey) + .glossaryKey(glossaryKey) .connectionKey(connectionKey) .timeCreated(timeCreated) .timeUpdated(timeUpdated) @@ -816,6 +840,7 @@ public String toString() { sb.append(",jobType=").append(String.valueOf(this.jobType)); sb.append(",isIncremental=").append(String.valueOf(this.isIncremental)); sb.append(",dataAssetKey=").append(String.valueOf(this.dataAssetKey)); + sb.append(",glossaryKey=").append(String.valueOf(this.glossaryKey)); sb.append(",connectionKey=").append(String.valueOf(this.connectionKey)); sb.append(",timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(",timeUpdated=").append(String.valueOf(this.timeUpdated)); @@ -851,6 +876,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.jobType, other.jobType) && java.util.Objects.equals(this.isIncremental, other.isIncremental) && java.util.Objects.equals(this.dataAssetKey, other.dataAssetKey) + && java.util.Objects.equals(this.glossaryKey, other.glossaryKey) && java.util.Objects.equals(this.connectionKey, other.connectionKey) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) @@ -887,6 +913,7 @@ public int hashCode() { (result * PRIME) + (this.isIncremental == null ? 43 : this.isIncremental.hashCode()); result = (result * PRIME) + (this.dataAssetKey == null ? 43 : this.dataAssetKey.hashCode()); + result = (result * PRIME) + (this.glossaryKey == null ? 43 : this.glossaryKey.hashCode()); result = (result * PRIME) + (this.connectionKey == null ? 43 : this.connectionKey.hashCode()); diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobsRequest.java index f3a2edbf5c4..c6e507eb440 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobsRequest.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobsRequest.java @@ -116,17 +116,26 @@ public String getJobDefinitionKey() { public String getDataAssetKey() { return dataAssetKey; } + /** Unique glossary key. */ + private String glossaryKey; + + /** Unique glossary key. */ + public String getGlossaryKey() { + return glossaryKey; + } /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. */ private String scheduleCronExpression; /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. */ public String getScheduleCronExpression() { return scheduleCronExpression; @@ -553,17 +562,33 @@ public Builder dataAssetKey(String dataAssetKey) { return this; } + /** Unique glossary key. */ + private String glossaryKey = null; + + /** + * Unique glossary key. + * + * @param glossaryKey the value to set + * @return this builder instance + */ + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + return this; + } + /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. */ private String scheduleCronExpression = null; /** * Interval on which the job will be run. Value is specified as a cron-supported time * specification "nickname". The following subset of those is - * supported: @monthly, @weekly, @daily, @hourly. + * supported: @monthly, @weekly, @daily, @hourly. For metastore sync, an additional + * option @default is supported, which will schedule jobs at a more granular frequency. * * @param scheduleCronExpression the value to set * @return this builder instance @@ -814,6 +839,7 @@ public Builder copy(ListJobsRequest o) { jobType(o.getJobType()); jobDefinitionKey(o.getJobDefinitionKey()); dataAssetKey(o.getDataAssetKey()); + glossaryKey(o.getGlossaryKey()); scheduleCronExpression(o.getScheduleCronExpression()); timeScheduleBegin(o.getTimeScheduleBegin()); timeScheduleEnd(o.getTimeScheduleEnd()); @@ -872,6 +898,7 @@ public ListJobsRequest buildWithoutInvocationCallback() { request.jobType = jobType; request.jobDefinitionKey = jobDefinitionKey; request.dataAssetKey = dataAssetKey; + request.glossaryKey = glossaryKey; request.scheduleCronExpression = scheduleCronExpression; request.timeScheduleBegin = timeScheduleBegin; request.timeScheduleEnd = timeScheduleEnd; @@ -888,9 +915,9 @@ public ListJobsRequest buildWithoutInvocationCallback() { return request; // new ListJobsRequest(catalogId, displayName, displayNameContains, lifecycleState, // timeCreated, timeUpdated, createdById, updatedById, jobType, jobDefinitionKey, - // dataAssetKey, scheduleCronExpression, timeScheduleBegin, timeScheduleEnd, - // scheduleType, connectionKey, fields, executionCount, timeOfLatestExecution, sortBy, - // sortOrder, limit, page, opcRequestId); + // dataAssetKey, glossaryKey, scheduleCronExpression, timeScheduleBegin, + // timeScheduleEnd, scheduleType, connectionKey, fields, executionCount, + // timeOfLatestExecution, sortBy, sortOrder, limit, page, opcRequestId); } } @@ -912,6 +939,7 @@ public Builder toBuilder() { .jobType(jobType) .jobDefinitionKey(jobDefinitionKey) .dataAssetKey(dataAssetKey) + .glossaryKey(glossaryKey) .scheduleCronExpression(scheduleCronExpression) .timeScheduleBegin(timeScheduleBegin) .timeScheduleEnd(timeScheduleEnd) @@ -952,6 +980,7 @@ public String toString() { sb.append(",jobType=").append(String.valueOf(this.jobType)); sb.append(",jobDefinitionKey=").append(String.valueOf(this.jobDefinitionKey)); sb.append(",dataAssetKey=").append(String.valueOf(this.dataAssetKey)); + sb.append(",glossaryKey=").append(String.valueOf(this.glossaryKey)); sb.append(",scheduleCronExpression=").append(String.valueOf(this.scheduleCronExpression)); sb.append(",timeScheduleBegin=").append(String.valueOf(this.timeScheduleBegin)); sb.append(",timeScheduleEnd=").append(String.valueOf(this.timeScheduleEnd)); @@ -991,6 +1020,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.jobType, other.jobType) && java.util.Objects.equals(this.jobDefinitionKey, other.jobDefinitionKey) && java.util.Objects.equals(this.dataAssetKey, other.dataAssetKey) + && java.util.Objects.equals(this.glossaryKey, other.glossaryKey) && java.util.Objects.equals( this.scheduleCronExpression, other.scheduleCronExpression) && java.util.Objects.equals(this.timeScheduleBegin, other.timeScheduleBegin) @@ -1030,6 +1060,7 @@ public int hashCode() { (result * PRIME) + (this.jobDefinitionKey == null ? 43 : this.jobDefinitionKey.hashCode()); result = (result * PRIME) + (this.dataAssetKey == null ? 43 : this.dataAssetKey.hashCode()); + result = (result * PRIME) + (this.glossaryKey == null ? 43 : this.glossaryKey.hashCode()); result = (result * PRIME) + (this.scheduleCronExpression == null diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/AsynchronousExportGlossaryResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/AsynchronousExportGlossaryResponse.java new file mode 100644 index 00000000000..5e0503213db --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/AsynchronousExportGlossaryResponse.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public class AsynchronousExportGlossaryResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency + * Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + */ + private String etag; + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency + * Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * 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; + + /** + * 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 {@code AsynchronousExportGlossaryResult} instance. */ + private com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryResult + asynchronousExportGlossaryResult; + + /** + * The returned {@code AsynchronousExportGlossaryResult} instance. + * + * @return the value + */ + public com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryResult + getAsynchronousExportGlossaryResult() { + return asynchronousExportGlossaryResult; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "asynchronousExportGlossaryResult" + }) + private AsynchronousExportGlossaryResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryResult + asynchronousExportGlossaryResult) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.asynchronousExportGlossaryResult = asynchronousExportGlossaryResult; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + AsynchronousExportGlossaryResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency + * Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + */ + private String etag; + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency + * Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * 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; + + /** + * 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 {@code AsynchronousExportGlossaryResult} instance. */ + private com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryResult + asynchronousExportGlossaryResult; + + /** + * The returned {@code AsynchronousExportGlossaryResult} instance. + * + * @param asynchronousExportGlossaryResult the value to set + * @return this builder + */ + public Builder asynchronousExportGlossaryResult( + com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryResult + asynchronousExportGlossaryResult) { + this.asynchronousExportGlossaryResult = asynchronousExportGlossaryResult; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(AsynchronousExportGlossaryResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + asynchronousExportGlossaryResult(o.getAsynchronousExportGlossaryResult()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public AsynchronousExportGlossaryResponse build() { + return new AsynchronousExportGlossaryResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + asynchronousExportGlossaryResult); + } + } + + /** + * 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(",asynchronousExportGlossaryResult=") + .append(String.valueOf(asynchronousExportGlossaryResult)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AsynchronousExportGlossaryResponse)) { + return false; + } + + AsynchronousExportGlossaryResponse other = (AsynchronousExportGlossaryResponse) 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.asynchronousExportGlossaryResult, + other.asynchronousExportGlossaryResult); + } + + @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.asynchronousExportGlossaryResult == null + ? 43 + : this.asynchronousExportGlossaryResult.hashCode()); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/FetchEntityLineageResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/FetchEntityLineageResponse.java new file mode 100644 index 00000000000..bd262731bb7 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/FetchEntityLineageResponse.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public class FetchEntityLineageResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + + /** + * 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; + } + + /** + * Retrieves the next page of results. When this header appears in the response, additional + * pages of results remain. See [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * Retrieves the next page of results. When this header appears in the response, additional + * pages of results remain. See [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code EntityLineage} instance. */ + private com.oracle.bmc.datacatalog.model.EntityLineage entityLineage; + + /** + * The returned {@code EntityLineage} instance. + * + * @return the value + */ + public com.oracle.bmc.datacatalog.model.EntityLineage getEntityLineage() { + return entityLineage; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "entityLineage" + }) + private FetchEntityLineageResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.datacatalog.model.EntityLineage entityLineage) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.entityLineage = entityLineage; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * 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; + + /** + * 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; + } + + /** + * Retrieves the next page of results. When this header appears in the response, additional + * pages of results remain. See [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * Retrieves the next page of results. When this header appears in the response, additional + * pages of results remain. See [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code EntityLineage} instance. */ + private com.oracle.bmc.datacatalog.model.EntityLineage entityLineage; + + /** + * The returned {@code EntityLineage} instance. + * + * @param entityLineage the value to set + * @return this builder + */ + public Builder entityLineage(com.oracle.bmc.datacatalog.model.EntityLineage entityLineage) { + this.entityLineage = entityLineage; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(FetchEntityLineageResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + entityLineage(o.getEntityLineage()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public FetchEntityLineageResponse build() { + return new FetchEntityLineageResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, entityLineage); + } + } + + /** + * 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(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",entityLineage=").append(String.valueOf(entityLineage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FetchEntityLineageResponse)) { + return false; + } + + FetchEntityLineageResponse other = (FetchEntityLineageResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.entityLineage, other.entityLineage); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.entityLineage == null ? 43 : this.entityLineage.hashCode()); + return result; + } +} diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 5e545f26c13..31fd7bc2c85 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 24aafb2bc8f..d3c2f726ef1 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 59783a98600..dd930d3f83a 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 0faeef89fb5..4b4175aae74 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index c17fa8190c4..0e61f03ae1b 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 7cca2e7f2c1..37fdae9f658 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index f7077888bff..fc8b502a1fa 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index d6e02f6dc01..336cf141cba 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index e60ff9dfbdd..77b46208733 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index 356e5bc0792..c453366642c 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 939337808e4..78d52660923 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 69e4f4f0d9b..c1a0dae5ef7 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 1d15ed87e9c..c01499e8b33 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.24.0 + 3.25.0 com.fasterxml.jackson.core @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.24.0 + 3.25.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 2e8a8ec99c8..fc16462f38b 100644 --- a/bmc-enforcer-rules/pom.xml +++ b/bmc-enforcer-rules/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 2014f090ee0..728bafa8968 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 008f91ed0e2..820d5bab7d6 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.24.0 + 3.25.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.24.0 + 3.25.0 pom import diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index dc70f3b9c42..1a58c9d96e1 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 66746a838d1..98e967ac3d0 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 2ccaa738e8d..c45c628d837 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.24.0 + 3.25.0 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index b1385deb1d2..4b536b913db 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index beb5ec8ad61..e398f65ab61 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index e36ba2215ac..73e21c5d0d9 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index cacb1f5857f..c23154c5b63 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index f3ef948a78f..7e2e0916546 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 9d712190c71..6bf70823310 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 577ce430d7a..638059014a9 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index 8ae6dcce5c0..ee0815d366f 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index cf1d98f7705..204d713aa2b 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index a76526d60f6..13036daa29c 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 6dcd2af845e..9fdc9d65a6e 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 95765a27bf1..3c9d3aa376d 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index e4c79812d87..6f32b089737 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 82543f7f376..06aa092da9b 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 3a519095d29..ec6adec98be 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 372cfcbe23a..b9f38815c77 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 79cbe2db462..929296ac168 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 9b8b9417007..f604244f535 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 0be275869d0..9b78915e194 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 177427e892e..6458ca44c5d 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index 75d13b00889..2187e78e4b8 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 3e005af2f9a..db45f07158b 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 4d3e28855c3..28f51c429f0 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 07de46e9814..d02716f0a31 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 47f55c66179..622fddfac77 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 204be714e3b..1847855a1a1 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index f6717f52776..89b9e075ef1 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 365d5f729bb..6725dca0190 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index c27ac446287..9e3bf0ec97a 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 5e288ebae84..b6d11ebd188 100644 --- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.24.0 + 3.25.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.24.0 + 3.25.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 83bafa781ca..5aec073e385 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.24.0 + 3.25.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.24.0 + 3.25.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.24.0 + 3.25.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 710df1178e4..56e3573329e 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.24.0 + 3.25.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index bb5c728a910..cb34cc0891d 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index f6fdbb872c7..14ce612e626 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 15287599684..df03c97148b 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index c47d2db87fa..e77f828e788 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 5a1dc645c94..e1eedd19ed5 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 8b7b739b52c..3cdc3d49c3e 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index ce9d5c50bf4..c5649065a76 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 2d92f87c286..ebbf6d903b9 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 3308f9b3ed7..322bc995bd5 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 2b4a008df89..d6e7865529b 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index aae2819ab1f..42a10fe3e37 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index e3c64de55fd..a5200b499ed 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index dc7ee84e736..2848213acc4 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 93fb85eede1..efd6176c30b 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 95e48693cb0..2256fc33bad 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 54d47cd197d..fb97bd13ba2 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 2e52cd0dbe6..95719ea21d0 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 511fc5d185e..8368e462404 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 3e99853e942..7fd2fcec489 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml index 61acd0e7ede..3f8c2b4682c 100644 --- a/bmc-other-examples/bmc-jersey-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey-examples - 3.24.0 + 3.25.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -49,7 +49,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.24.0 + 3.25.0 false @@ -75,14 +75,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.24.0 + 3.25.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.24.0 + 3.25.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index 3345a370c0a..5d028f368eb 100644 --- a/bmc-other-examples/bmc-jersey3-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey3-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey3-examples - 3.24.0 + 3.25.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -49,7 +49,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.24.0 + 3.25.0 false @@ -75,14 +75,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.24.0 + 3.25.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.24.0 + 3.25.0 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 73a95a6dfd4..9fb5a0b78ef 100644 --- a/bmc-other-examples/pom.xml +++ b/bmc-other-examples/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index c749d646a65..c70ac3718e8 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/Queue.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/Queue.java index bb43e856133..91514c38311 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/Queue.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/Queue.java @@ -8,9 +8,10 @@ import com.oracle.bmc.queue.responses.*; /** - * A description of the Queue API This service client uses - * CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit - * breaker configuration is defined by the user. + * Use the Queue API to produce and consume messages, create queues, and manage related items. For + * more information, see [Queue](https://docs.cloud.oracle.com/iaas/Content/queue/overview.htm). + * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by + * default if no circuit breaker configuration is defined by the user. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") public interface Queue extends AutoCloseable { @@ -64,7 +65,10 @@ public interface Queue extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Deletes from the queue the message represented by the receipt. + * Deletes the message represented by the receipt from the queue. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to delete messages. The messages endpoint may be different for different queues. Use {@link + * #getQueue(GetQueueRequest) getQueue} to find the queue's `messagesEndpoint`. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -79,7 +83,10 @@ public interface Queue extends AutoCloseable { DeleteMessageResponse deleteMessage(DeleteMessageRequest request); /** - * Deletes multiple messages from the queue. + * Deletes multiple messages from the queue. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to delete messages. The messages endpoint may be different for different queues. Use {@link + * #getQueue(GetQueueRequest) getQueue} to find the queue's `messagesEndpoint`. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -94,7 +101,14 @@ public interface Queue extends AutoCloseable { DeleteMessagesResponse deleteMessages(DeleteMessagesRequest request); /** - * Consumes message from the queue. + * Consumes messages from the queue. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to consume messages. The messages endpoint may be different for different queues. Use {@link + * #getQueue(GetQueueRequest) getQueue} to find the queue's `messagesEndpoint`. GetMessages + * accepts optional channelFilter query parameter that can filter source channels of the + * messages. When channelFilter is present, service will return available messages from the + * channel which ID exactly matched the filter. When filter is not specified, messages will be + * returned from a random non-empty channel within a queue. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -109,7 +123,10 @@ public interface Queue extends AutoCloseable { GetMessagesResponse getMessages(GetMessagesRequest request); /** - * Gets the statistics for the queue and its dead letter queue. + * Gets the statistics for the queue and its dead letter queue. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to get a queue's statistics. The messages endpoint may be different for different queues. Use + * {@link #getQueue(GetQueueRequest) getQueue} to find the queue's `messagesEndpoint`. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -124,7 +141,29 @@ public interface Queue extends AutoCloseable { GetStatsResponse getStats(GetStatsRequest request); /** - * Puts messages in the queue + * Gets the list of IDs of non-empty channels. It will return an approximate list of IDs of + * non-empty channels. That information is based on the queue level statistics. API supports + * optional channelFilter parameter which will filter the returned results according to the + * specified filter. List of channel IDs is approximate, because statistics is refreshed once + * per-second, and that list represents a snapshot of the past information. API is paginated. + * + * @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 ListChannels API. + */ + ListChannelsResponse listChannels(ListChannelsRequest request); + + /** + * Puts messages into the queue. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to produce messages. The messages endpoint may be different for different queues. Use {@link + * #getQueue(GetQueueRequest) getQueue} to find the queue's `messagesEndpoint`. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -139,7 +178,10 @@ public interface Queue extends AutoCloseable { PutMessagesResponse putMessages(PutMessagesRequest request); /** - * Updates the visibility of the message represented by the receipt. + * Updates the visibility of the message represented by the receipt. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to update messages. The messages endpoint may be different for different queues. Use {@link + * #getQueue(GetQueueRequest) getQueue} to find the queue's `messagesEndpoint`. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -154,7 +196,10 @@ public interface Queue extends AutoCloseable { UpdateMessageResponse updateMessage(UpdateMessageRequest request); /** - * Updates multiple messages in the queue. + * Updates multiple messages in the queue. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to update messages. The messages endpoint may be different for different queues. Use {@link + * #getQueue(GetQueueRequest) getQueue} to find the queue's `messagesEndpoint`. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAdmin.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAdmin.java index 689a4518078..21b1eab6c82 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAdmin.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAdmin.java @@ -8,9 +8,10 @@ import com.oracle.bmc.queue.responses.*; /** - * A description of the Queue API This service client uses - * CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit - * breaker configuration is defined by the user. + * Use the Queue API to produce and consume messages, create queues, and manage related items. For + * more information, see [Queue](https://docs.cloud.oracle.com/iaas/Content/queue/overview.htm). + * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by + * default if no circuit breaker configuration is defined by the user. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") public interface QueueAdmin extends AutoCloseable { @@ -64,8 +65,8 @@ public interface QueueAdmin extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Moves a Queue resource from one compartment identifier to another. When provided, If-Match is - * checked against ETag values of the resource. + * Moves a queue from one compartment to another. When provided, If-Match is checked against + * ETag values of the resource. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -81,7 +82,7 @@ public interface QueueAdmin extends AutoCloseable { ChangeQueueCompartmentResponse changeQueueCompartment(ChangeQueueCompartmentRequest request); /** - * Creates a new Queue. + * Creates a new queue. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -96,7 +97,7 @@ public interface QueueAdmin extends AutoCloseable { CreateQueueResponse createQueue(CreateQueueRequest request); /** - * Deletes a Queue resource by identifier + * Deletes a queue resource by identifier. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -111,7 +112,7 @@ public interface QueueAdmin extends AutoCloseable { DeleteQueueResponse deleteQueue(DeleteQueueRequest request); /** - * Gets a Queue by identifier + * Gets a queue by identifier. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -141,7 +142,7 @@ public interface QueueAdmin extends AutoCloseable { GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); /** - * Returns a list of Queues. + * Returns a list of queues. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -204,9 +205,11 @@ public interface QueueAdmin extends AutoCloseable { ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); /** - * Deletes all messages present in the queue at the time of invocation. Only one concurrent - * purge operation is supported for any given queue. However multiple concurrent purge - * operations are supported for different queues. + * Deletes all messages present in the queue, or deletes all the messages in the specific + * channel at the time of invocation. Only one concurrent purge operation is supported for any + * given queue. However multiple concurrent purge operations are supported for different queues. + * Purge request without specification of target channels will clean up all messages in the + * queue and in the child channels. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -221,7 +224,7 @@ public interface QueueAdmin extends AutoCloseable { PurgeQueueResponse purgeQueue(PurgeQueueRequest request); /** - * Updates the Queue + * Updates the specified queue. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAdminAsync.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAdminAsync.java index 9978bf1855f..b65c4274bb0 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAdminAsync.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAdminAsync.java @@ -7,7 +7,10 @@ import com.oracle.bmc.queue.requests.*; import com.oracle.bmc.queue.responses.*; -/** A description of the Queue API */ +/** + * Use the Queue API to produce and consume messages, create queues, and manage related items. For + * more information, see [Queue](https://docs.cloud.oracle.com/iaas/Content/queue/overview.htm). + */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") public interface QueueAdminAsync extends AutoCloseable { @@ -60,8 +63,8 @@ public interface QueueAdminAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Moves a Queue resource from one compartment identifier to another. When provided, If-Match is - * checked against ETag values of the resource. + * Moves a queue from one compartment to another. When provided, If-Match is checked against + * ETag values of the resource. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -77,7 +80,7 @@ java.util.concurrent.Future changeQueueCompartme handler); /** - * Creates a new Queue. + * Creates a new queue. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -91,7 +94,7 @@ java.util.concurrent.Future createQueue( com.oracle.bmc.responses.AsyncHandler handler); /** - * Deletes a Queue resource by identifier + * Deletes a queue resource by identifier. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -105,7 +108,7 @@ java.util.concurrent.Future deleteQueue( com.oracle.bmc.responses.AsyncHandler handler); /** - * Gets a Queue by identifier + * Gets a queue by identifier. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -134,7 +137,7 @@ java.util.concurrent.Future getWorkRequest( handler); /** - * Returns a list of Queues. + * Returns a list of queues. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -195,9 +198,11 @@ java.util.concurrent.Future listWorkRequests( handler); /** - * Deletes all messages present in the queue at the time of invocation. Only one concurrent - * purge operation is supported for any given queue. However multiple concurrent purge - * operations are supported for different queues. + * Deletes all messages present in the queue, or deletes all the messages in the specific + * channel at the time of invocation. Only one concurrent purge operation is supported for any + * given queue. However multiple concurrent purge operations are supported for different queues. + * Purge request without specification of target channels will clean up all messages in the + * queue and in the child channels. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -211,7 +216,7 @@ java.util.concurrent.Future purgeQueue( com.oracle.bmc.responses.AsyncHandler handler); /** - * Updates the Queue + * Updates the specified queue. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAsync.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAsync.java index adcefa2f80c..3e1fcd0f1cb 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAsync.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAsync.java @@ -7,7 +7,10 @@ import com.oracle.bmc.queue.requests.*; import com.oracle.bmc.queue.responses.*; -/** A description of the Queue API */ +/** + * Use the Queue API to produce and consume messages, create queues, and manage related items. For + * more information, see [Queue](https://docs.cloud.oracle.com/iaas/Content/queue/overview.htm). + */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") public interface QueueAsync extends AutoCloseable { @@ -60,7 +63,11 @@ public interface QueueAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Deletes from the queue the message represented by the receipt. + * Deletes the message represented by the receipt from the queue. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to delete messages. The messages endpoint may be different for different queues. Use {@link + * #getQueue(GetQueueRequest, Consumer, Consumer) getQueue} to find the queue's + * `messagesEndpoint`. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -75,7 +82,11 @@ java.util.concurrent.Future deleteMessage( handler); /** - * Deletes multiple messages from the queue. + * Deletes multiple messages from the queue. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to delete messages. The messages endpoint may be different for different queues. Use {@link + * #getQueue(GetQueueRequest, Consumer, Consumer) getQueue} to find the queue's + * `messagesEndpoint`. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -90,7 +101,14 @@ java.util.concurrent.Future deleteMessages( handler); /** - * Consumes message from the queue. + * Consumes messages from the queue. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to consume messages. The messages endpoint may be different for different queues. Use {@link + * #getQueue(GetQueueRequest, Consumer, Consumer) getQueue} to find the queue's + * `messagesEndpoint`. GetMessages accepts optional channelFilter query parameter that can + * filter source channels of the messages. When channelFilter is present, service will return + * available messages from the channel which ID exactly matched the filter. When filter is not + * specified, messages will be returned from a random non-empty channel within a queue. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -104,7 +122,11 @@ java.util.concurrent.Future getMessages( com.oracle.bmc.responses.AsyncHandler handler); /** - * Gets the statistics for the queue and its dead letter queue. + * Gets the statistics for the queue and its dead letter queue. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to get a queue's statistics. The messages endpoint may be different for different queues. Use + * {@link #getQueue(GetQueueRequest, Consumer, Consumer) getQueue} to find the queue's + * `messagesEndpoint`. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -118,7 +140,30 @@ java.util.concurrent.Future getStats( com.oracle.bmc.responses.AsyncHandler handler); /** - * Puts messages in the queue + * Gets the list of IDs of non-empty channels. It will return an approximate list of IDs of + * non-empty channels. That information is based on the queue level statistics. API supports + * optional channelFilter parameter which will filter the returned results according to the + * specified filter. List of channel IDs is approximate, because statistics is refreshed once + * per-second, and that list represents a snapshot of the past information. API is paginated. + * + * @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 listChannels( + ListChannelsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Puts messages into the queue. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to produce messages. The messages endpoint may be different for different queues. Use {@link + * #getQueue(GetQueueRequest, Consumer, Consumer) getQueue} to find the queue's + * `messagesEndpoint`. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -132,7 +177,11 @@ java.util.concurrent.Future putMessages( com.oracle.bmc.responses.AsyncHandler handler); /** - * Updates the visibility of the message represented by the receipt. + * Updates the visibility of the message represented by the receipt. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to update messages. The messages endpoint may be different for different queues. Use {@link + * #getQueue(GetQueueRequest, Consumer, Consumer) getQueue} to find the queue's + * `messagesEndpoint`. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -147,7 +196,11 @@ java.util.concurrent.Future updateMessage( handler); /** - * Updates multiple messages in the queue. + * Updates multiple messages in the queue. You must use the [messages + * endpoint](https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint) + * to update messages. The messages endpoint may be different for different queues. Use {@link + * #getQueue(GetQueueRequest, Consumer, Consumer) getQueue} to find the queue's + * `messagesEndpoint`. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAsyncClient.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAsyncClient.java index 3f9242485b2..2bcbfc0375f 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAsyncClient.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueAsyncClient.java @@ -183,6 +183,7 @@ public java.util.concurrent.Future getMessages( .appendQueryParam("visibilityInSeconds", request.getVisibilityInSeconds()) .appendQueryParam("timeoutInSeconds", request.getTimeoutInSeconds()) .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("channelFilter", request.getChannelFilter()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( @@ -213,6 +214,7 @@ public java.util.concurrent.Future getStats( .appendPathParam("queues") .appendPathParam(request.getQueueId()) .appendPathParam("stats") + .appendQueryParam("channelId", request.getChannelId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( @@ -223,6 +225,41 @@ public java.util.concurrent.Future getStats( .callAsync(handler); } + @Override + public java.util.concurrent.Future listChannels( + ListChannelsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getQueueId(), "queueId must not be blank"); + + return clientCall(request, ListChannelsResponse::builder) + .logger(LOG, "listChannels") + .serviceDetails( + "Queue", + "ListChannels", + "https://docs.oracle.com/iaas/api/#/en/queue/20210201/ChannelCollection/ListChannels") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListChannelsRequest::builder) + .basePath("/20210201") + .appendPathParam("queues") + .appendPathParam(request.getQueueId()) + .appendPathParam("channels") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("channelFilter", request.getChannelFilter()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.queue.model.ChannelCollection.class, + ListChannelsResponse.Builder::channelCollection) + .handleResponseHeaderString( + "opc-request-id", ListChannelsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListChannelsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future putMessages( PutMessagesRequest request, diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueClient.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueClient.java index 49b05dfef46..53815a48e0d 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueClient.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/QueueClient.java @@ -164,6 +164,7 @@ public GetMessagesResponse getMessages(GetMessagesRequest request) { .appendQueryParam("visibilityInSeconds", request.getVisibilityInSeconds()) .appendQueryParam("timeoutInSeconds", request.getTimeoutInSeconds()) .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("channelFilter", request.getChannelFilter()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( @@ -191,6 +192,7 @@ public GetStatsResponse getStats(GetStatsRequest request) { .appendPathParam("queues") .appendPathParam(request.getQueueId()) .appendPathParam("stats") + .appendQueryParam("channelId", request.getChannelId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( @@ -202,6 +204,39 @@ public GetStatsResponse getStats(GetStatsRequest request) { .callSync(); } + @Override + public ListChannelsResponse listChannels(ListChannelsRequest request) { + + Validate.notBlank(request.getQueueId(), "queueId must not be blank"); + + return clientCall(request, ListChannelsResponse::builder) + .logger(LOG, "listChannels") + .serviceDetails( + "Queue", + "ListChannels", + "https://docs.oracle.com/iaas/api/#/en/queue/20210201/ChannelCollection/ListChannels") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListChannelsRequest::builder) + .basePath("/20210201") + .appendPathParam("queues") + .appendPathParam(request.getQueueId()) + .appendPathParam("channels") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("channelFilter", request.getChannelFilter()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.queue.model.ChannelCollection.class, + ListChannelsResponse.Builder::channelCollection) + .handleResponseHeaderString( + "opc-request-id", ListChannelsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListChannelsResponse.Builder::opcNextPage) + .operationUsesDefaultRetries() + .callSync(); + } + @Override public PutMessagesResponse putMessages(PutMessagesRequest request) { diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/ChannelCollection.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/ChannelCollection.java new file mode 100644 index 00000000000..d36d46377f8 --- /dev/null +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/ChannelCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.queue.model; + +/** + * List of IDs of non-empty channels.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChannelCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChannelCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ChannelCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The approximate list of IDs of non-empty channels. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The approximate list of IDs of non-empty channels. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChannelCollection build() { + ChannelCollection model = new ChannelCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChannelCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The approximate list of IDs of non-empty channels. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The approximate list of IDs of non-empty channels. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @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("ChannelCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChannelCollection)) { + return false; + } + + ChannelCollection other = (ChannelCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/CreateQueueDetails.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/CreateQueueDetails.java index a0311ab0285..7155389b784 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/CreateQueueDetails.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/CreateQueueDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.queue.model; /** - * The information about new Queue.
+ * The information about a new queue.
* 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 @@ -29,6 +29,7 @@ public final class CreateQueueDetails "retentionInSeconds", "visibilityInSeconds", "timeoutInSeconds", + "channelConsumptionLimit", "deadLetterQueueDeliveryCount", "customEncryptionKeyId", "freeformTags", @@ -40,6 +41,7 @@ public CreateQueueDetails( Integer retentionInSeconds, Integer visibilityInSeconds, Integer timeoutInSeconds, + Integer channelConsumptionLimit, Integer deadLetterQueueDeliveryCount, String customEncryptionKeyId, java.util.Map freeformTags, @@ -50,6 +52,7 @@ public CreateQueueDetails( this.retentionInSeconds = retentionInSeconds; this.visibilityInSeconds = visibilityInSeconds; this.timeoutInSeconds = timeoutInSeconds; + this.channelConsumptionLimit = channelConsumptionLimit; this.deadLetterQueueDeliveryCount = deadLetterQueueDeliveryCount; this.customEncryptionKeyId = customEncryptionKeyId; this.freeformTags = freeformTags; @@ -58,12 +61,12 @@ public CreateQueueDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Queue Identifier */ + /** The user-friendly name of the queue. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Queue Identifier + * The user-friendly name of the queue. * * @param displayName the value to set * @return this builder @@ -73,12 +76,16 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** Compartment Identifier */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment containing the queue. + */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * Compartment Identifier + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment containing the queue. * * @param compartmentId the value to set * @return this builder @@ -88,12 +95,12 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** The retention period of the messages in the queue, in seconds. */ + /** The retention period of messages in the queue, in seconds. */ @com.fasterxml.jackson.annotation.JsonProperty("retentionInSeconds") private Integer retentionInSeconds; /** - * The retention period of the messages in the queue, in seconds. + * The retention period of messages in the queue, in seconds. * * @param retentionInSeconds the value to set * @return this builder @@ -103,12 +110,12 @@ public Builder retentionInSeconds(Integer retentionInSeconds) { this.__explicitlySet__.add("retentionInSeconds"); return this; } - /** The default visibility of the messages consumed from the queue. */ + /** The default visibility timeout of the messages consumed from the queue, in seconds. */ @com.fasterxml.jackson.annotation.JsonProperty("visibilityInSeconds") private Integer visibilityInSeconds; /** - * The default visibility of the messages consumed from the queue. + * The default visibility timeout of the messages consumed from the queue, in seconds. * * @param visibilityInSeconds the value to set * @return this builder @@ -133,6 +140,31 @@ public Builder timeoutInSeconds(Integer timeoutInSeconds) { this.__explicitlySet__.add("timeoutInSeconds"); return this; } + /** + * The percentage of allocated queue resources that can be consumed by a single channel. For + * example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is + * 0.1 (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit + * of 100% (default) means that a single channel can consume up-to all allocated queue's + * resources. + */ + @com.fasterxml.jackson.annotation.JsonProperty("channelConsumptionLimit") + private Integer channelConsumptionLimit; + + /** + * The percentage of allocated queue resources that can be consumed by a single channel. For + * example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is + * 0.1 (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit + * of 100% (default) means that a single channel can consume up-to all allocated queue's + * resources. + * + * @param channelConsumptionLimit the value to set + * @return this builder + */ + public Builder channelConsumptionLimit(Integer channelConsumptionLimit) { + this.channelConsumptionLimit = channelConsumptionLimit; + this.__explicitlySet__.add("channelConsumptionLimit"); + return this; + } /** * The number of times a message can be delivered to a consumer before being moved to the * dead letter queue. A value of 0 indicates that the DLQ is not used. @@ -152,12 +184,16 @@ public Builder deadLetterQueueDeliveryCount(Integer deadLetterQueueDeliveryCount this.__explicitlySet__.add("deadLetterQueueDeliveryCount"); return this; } - /** Id of the custom master encryption key which will be used to encrypt messages content */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the custom encryption key to be used to encrypt messages content. + */ @com.fasterxml.jackson.annotation.JsonProperty("customEncryptionKeyId") private String customEncryptionKeyId; /** - * Id of the custom master encryption key which will be used to encrypt messages content + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the custom encryption key to be used to encrypt messages content. * * @param customEncryptionKeyId the value to set * @return this builder @@ -218,6 +254,7 @@ public CreateQueueDetails build() { this.retentionInSeconds, this.visibilityInSeconds, this.timeoutInSeconds, + this.channelConsumptionLimit, this.deadLetterQueueDeliveryCount, this.customEncryptionKeyId, this.freeformTags, @@ -245,6 +282,9 @@ public Builder copy(CreateQueueDetails model) { if (model.wasPropertyExplicitlySet("timeoutInSeconds")) { this.timeoutInSeconds(model.getTimeoutInSeconds()); } + if (model.wasPropertyExplicitlySet("channelConsumptionLimit")) { + this.channelConsumptionLimit(model.getChannelConsumptionLimit()); + } if (model.wasPropertyExplicitlySet("deadLetterQueueDeliveryCount")) { this.deadLetterQueueDeliveryCount(model.getDeadLetterQueueDeliveryCount()); } @@ -270,12 +310,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Queue Identifier */ + /** The user-friendly name of the queue. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Queue Identifier + * The user-friendly name of the queue. * * @return the value */ @@ -283,12 +323,16 @@ public String getDisplayName() { return displayName; } - /** Compartment Identifier */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment containing the queue. + */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * Compartment Identifier + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment containing the queue. * * @return the value */ @@ -296,12 +340,12 @@ public String getCompartmentId() { return compartmentId; } - /** The retention period of the messages in the queue, in seconds. */ + /** The retention period of messages in the queue, in seconds. */ @com.fasterxml.jackson.annotation.JsonProperty("retentionInSeconds") private final Integer retentionInSeconds; /** - * The retention period of the messages in the queue, in seconds. + * The retention period of messages in the queue, in seconds. * * @return the value */ @@ -309,12 +353,12 @@ public Integer getRetentionInSeconds() { return retentionInSeconds; } - /** The default visibility of the messages consumed from the queue. */ + /** The default visibility timeout of the messages consumed from the queue, in seconds. */ @com.fasterxml.jackson.annotation.JsonProperty("visibilityInSeconds") private final Integer visibilityInSeconds; /** - * The default visibility of the messages consumed from the queue. + * The default visibility timeout of the messages consumed from the queue, in seconds. * * @return the value */ @@ -335,6 +379,27 @@ public Integer getTimeoutInSeconds() { return timeoutInSeconds; } + /** + * The percentage of allocated queue resources that can be consumed by a single channel. For + * example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 + * (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit of 100% + * (default) means that a single channel can consume up-to all allocated queue's resources. + */ + @com.fasterxml.jackson.annotation.JsonProperty("channelConsumptionLimit") + private final Integer channelConsumptionLimit; + + /** + * The percentage of allocated queue resources that can be consumed by a single channel. For + * example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 + * (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit of 100% + * (default) means that a single channel can consume up-to all allocated queue's resources. + * + * @return the value + */ + public Integer getChannelConsumptionLimit() { + return channelConsumptionLimit; + } + /** * The number of times a message can be delivered to a consumer before being moved to the dead * letter queue. A value of 0 indicates that the DLQ is not used. @@ -352,12 +417,16 @@ public Integer getDeadLetterQueueDeliveryCount() { return deadLetterQueueDeliveryCount; } - /** Id of the custom master encryption key which will be used to encrypt messages content */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the custom encryption key to be used to encrypt messages content. + */ @com.fasterxml.jackson.annotation.JsonProperty("customEncryptionKeyId") private final String customEncryptionKeyId; /** - * Id of the custom master encryption key which will be used to encrypt messages content + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the custom encryption key to be used to encrypt messages content. * * @return the value */ @@ -419,6 +488,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", retentionInSeconds=").append(String.valueOf(this.retentionInSeconds)); sb.append(", visibilityInSeconds=").append(String.valueOf(this.visibilityInSeconds)); sb.append(", timeoutInSeconds=").append(String.valueOf(this.timeoutInSeconds)); + sb.append(", channelConsumptionLimit=") + .append(String.valueOf(this.channelConsumptionLimit)); sb.append(", deadLetterQueueDeliveryCount=") .append(String.valueOf(this.deadLetterQueueDeliveryCount)); sb.append(", customEncryptionKeyId=").append(String.valueOf(this.customEncryptionKeyId)); @@ -443,6 +514,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.retentionInSeconds, other.retentionInSeconds) && java.util.Objects.equals(this.visibilityInSeconds, other.visibilityInSeconds) && java.util.Objects.equals(this.timeoutInSeconds, other.timeoutInSeconds) + && java.util.Objects.equals( + this.channelConsumptionLimit, other.channelConsumptionLimit) && java.util.Objects.equals( this.deadLetterQueueDeliveryCount, other.deadLetterQueueDeliveryCount) && java.util.Objects.equals(this.customEncryptionKeyId, other.customEncryptionKeyId) @@ -472,6 +545,11 @@ public int hashCode() { result = (result * PRIME) + (this.timeoutInSeconds == null ? 43 : this.timeoutInSeconds.hashCode()); + result = + (result * PRIME) + + (this.channelConsumptionLimit == null + ? 43 + : this.channelConsumptionLimit.hashCode()); result = (result * PRIME) + (this.deadLetterQueueDeliveryCount == null diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/DeleteMessagesDetailsEntry.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/DeleteMessagesDetailsEntry.java index 30637701c3f..a7f080fdf53 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/DeleteMessagesDetailsEntry.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/DeleteMessagesDetailsEntry.java @@ -31,12 +31,12 @@ public DeleteMessagesDetailsEntry(String receipt) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The receipt of the message to delete */ + /** The receipt of the message to delete. */ @com.fasterxml.jackson.annotation.JsonProperty("receipt") private String receipt; /** - * The receipt of the message to delete + * The receipt of the message to delete. * * @param receipt the value to set * @return this builder @@ -76,12 +76,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The receipt of the message to delete */ + /** The receipt of the message to delete. */ @com.fasterxml.jackson.annotation.JsonProperty("receipt") private final String receipt; /** - * The receipt of the message to delete + * The receipt of the message to delete. * * @return the value */ diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/GetMessage.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/GetMessage.java index 85970723b23..757a1f82db0 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/GetMessage.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/GetMessage.java @@ -27,7 +27,8 @@ public final class GetMessage extends com.oracle.bmc.http.client.internal.Explic "receipt", "deliveryCount", "visibleAfter", - "expireAfter" + "expireAfter", + "metadata" }) public GetMessage( Long id, @@ -35,7 +36,8 @@ public GetMessage( String receipt, Integer deliveryCount, java.util.Date visibleAfter, - java.util.Date expireAfter) { + java.util.Date expireAfter, + MessageMetadata metadata) { super(); this.id = id; this.content = content; @@ -43,19 +45,20 @@ public GetMessage( this.deliveryCount = deliveryCount; this.visibleAfter = visibleAfter; this.expireAfter = expireAfter; + this.metadata = metadata; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The id of the message - this is only used for tracing and debugging purposes and isn't + * The ID of the message. This ID is only used for tracing and debugging purposes and isn't * used as a parameter in any request. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private Long id; /** - * The id of the message - this is only used for tracing and debugging purposes and isn't + * The ID of the message. This ID is only used for tracing and debugging purposes and isn't * used as a parameter in any request. * * @param id the value to set @@ -66,12 +69,12 @@ public Builder id(Long id) { this.__explicitlySet__.add("id"); return this; } - /** The content of the message */ + /** The content of the message. */ @com.fasterxml.jackson.annotation.JsonProperty("content") private String content; /** - * The content of the message + * The content of the message. * * @param content the value to set * @return this builder @@ -100,12 +103,12 @@ public Builder receipt(String receipt) { this.__explicitlySet__.add("receipt"); return this; } - /** The number of time the message has been delivered to a consumer. */ + /** The number of times that the message has been delivered to a consumer. */ @com.fasterxml.jackson.annotation.JsonProperty("deliveryCount") private Integer deliveryCount; /** - * The number of time the message has been delivered to a consumer. + * The number of times that the message has been delivered to a consumer. * * @param deliveryCount the value to set * @return this builder @@ -116,15 +119,19 @@ public Builder deliveryCount(Integer deliveryCount) { return this; } /** - * The time after which the message will be visible to other consumers. An RFC3339 formatted - * datetime string + * The time after which the message will be visible to other consumers, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} */ @com.fasterxml.jackson.annotation.JsonProperty("visibleAfter") private java.util.Date visibleAfter; /** - * The time after which the message will be visible to other consumers. An RFC3339 formatted - * datetime string + * The time after which the message will be visible to other consumers, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @param visibleAfter the value to set * @return this builder @@ -135,15 +142,19 @@ public Builder visibleAfter(java.util.Date visibleAfter) { return this; } /** - * The time after which the message will be automatically deleted. An RFC3339 formatted - * datetime string + * The time after which the message will be automatically deleted, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} */ @com.fasterxml.jackson.annotation.JsonProperty("expireAfter") private java.util.Date expireAfter; /** - * The time after which the message will be automatically deleted. An RFC3339 formatted - * datetime string + * The time after which the message will be automatically deleted, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @param expireAfter the value to set * @return this builder @@ -154,6 +165,15 @@ public Builder expireAfter(java.util.Date expireAfter) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private MessageMetadata metadata; + + public Builder metadata(MessageMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -165,7 +185,8 @@ public GetMessage build() { this.receipt, this.deliveryCount, this.visibleAfter, - this.expireAfter); + this.expireAfter, + this.metadata); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -192,6 +213,9 @@ public Builder copy(GetMessage model) { if (model.wasPropertyExplicitlySet("expireAfter")) { this.expireAfter(model.getExpireAfter()); } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } return this; } } @@ -206,14 +230,14 @@ public Builder toBuilder() { } /** - * The id of the message - this is only used for tracing and debugging purposes and isn't used + * The ID of the message. This ID is only used for tracing and debugging purposes and isn't used * as a parameter in any request. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final Long id; /** - * The id of the message - this is only used for tracing and debugging purposes and isn't used + * The ID of the message. This ID is only used for tracing and debugging purposes and isn't used * as a parameter in any request. * * @return the value @@ -222,12 +246,12 @@ public Long getId() { return id; } - /** The content of the message */ + /** The content of the message. */ @com.fasterxml.jackson.annotation.JsonProperty("content") private final String content; /** - * The content of the message + * The content of the message. * * @return the value */ @@ -252,12 +276,12 @@ public String getReceipt() { return receipt; } - /** The number of time the message has been delivered to a consumer. */ + /** The number of times that the message has been delivered to a consumer. */ @com.fasterxml.jackson.annotation.JsonProperty("deliveryCount") private final Integer deliveryCount; /** - * The number of time the message has been delivered to a consumer. + * The number of times that the message has been delivered to a consumer. * * @return the value */ @@ -266,15 +290,19 @@ public Integer getDeliveryCount() { } /** - * The time after which the message will be visible to other consumers. An RFC3339 formatted - * datetime string + * The time after which the message will be visible to other consumers, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} */ @com.fasterxml.jackson.annotation.JsonProperty("visibleAfter") private final java.util.Date visibleAfter; /** - * The time after which the message will be visible to other consumers. An RFC3339 formatted - * datetime string + * The time after which the message will be visible to other consumers, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @return the value */ @@ -283,15 +311,19 @@ public java.util.Date getVisibleAfter() { } /** - * The time after which the message will be automatically deleted. An RFC3339 formatted datetime - * string + * The time after which the message will be automatically deleted, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} */ @com.fasterxml.jackson.annotation.JsonProperty("expireAfter") private final java.util.Date expireAfter; /** - * The time after which the message will be automatically deleted. An RFC3339 formatted datetime - * string + * The time after which the message will be automatically deleted, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @return the value */ @@ -299,6 +331,13 @@ public java.util.Date getExpireAfter() { return expireAfter; } + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final MessageMetadata metadata; + + public MessageMetadata getMetadata() { + return metadata; + } + @Override public String toString() { return this.toString(true); @@ -320,6 +359,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", deliveryCount=").append(String.valueOf(this.deliveryCount)); sb.append(", visibleAfter=").append(String.valueOf(this.visibleAfter)); sb.append(", expireAfter=").append(String.valueOf(this.expireAfter)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); sb.append(")"); return sb.toString(); } @@ -340,6 +380,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.deliveryCount, other.deliveryCount) && java.util.Objects.equals(this.visibleAfter, other.visibleAfter) && java.util.Objects.equals(this.expireAfter, other.expireAfter) + && java.util.Objects.equals(this.metadata, other.metadata) && super.equals(other); } @@ -355,6 +396,7 @@ public int hashCode() { + (this.deliveryCount == null ? 43 : this.deliveryCount.hashCode()); result = (result * PRIME) + (this.visibleAfter == null ? 43 : this.visibleAfter.hashCode()); result = (result * PRIME) + (this.expireAfter == null ? 43 : this.expireAfter.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/MessageMetadata.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/MessageMetadata.java new file mode 100644 index 00000000000..5ceda34a132 --- /dev/null +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/MessageMetadata.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.queue.model; + +/** + * Object that represents metadata for message.
+ * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MessageMetadata.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MessageMetadata + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"channelId", "customProperties"}) + public MessageMetadata(String channelId, java.util.Map customProperties) { + super(); + this.channelId = channelId; + this.customProperties = customProperties; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The channel ID which specifies the channel to publish or retrieve messages. */ + @com.fasterxml.jackson.annotation.JsonProperty("channelId") + private String channelId; + + /** + * The channel ID which specifies the channel to publish or retrieve messages. + * + * @param channelId the value to set + * @return this builder + */ + public Builder channelId(String channelId) { + this.channelId = channelId; + this.__explicitlySet__.add("channelId"); + return this; + } + /** Additional message properties */ + @com.fasterxml.jackson.annotation.JsonProperty("customProperties") + private java.util.Map customProperties; + + /** + * Additional message properties + * + * @param customProperties the value to set + * @return this builder + */ + public Builder customProperties(java.util.Map customProperties) { + this.customProperties = customProperties; + this.__explicitlySet__.add("customProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MessageMetadata build() { + MessageMetadata model = new MessageMetadata(this.channelId, this.customProperties); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MessageMetadata model) { + if (model.wasPropertyExplicitlySet("channelId")) { + this.channelId(model.getChannelId()); + } + if (model.wasPropertyExplicitlySet("customProperties")) { + this.customProperties(model.getCustomProperties()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The channel ID which specifies the channel to publish or retrieve messages. */ + @com.fasterxml.jackson.annotation.JsonProperty("channelId") + private final String channelId; + + /** + * The channel ID which specifies the channel to publish or retrieve messages. + * + * @return the value + */ + public String getChannelId() { + return channelId; + } + + /** Additional message properties */ + @com.fasterxml.jackson.annotation.JsonProperty("customProperties") + private final java.util.Map customProperties; + + /** + * Additional message properties + * + * @return the value + */ + public java.util.Map getCustomProperties() { + return customProperties; + } + + @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("MessageMetadata("); + sb.append("super=").append(super.toString()); + sb.append("channelId=").append(String.valueOf(this.channelId)); + sb.append(", customProperties=").append(String.valueOf(this.customProperties)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MessageMetadata)) { + return false; + } + + MessageMetadata other = (MessageMetadata) o; + return java.util.Objects.equals(this.channelId, other.channelId) + && java.util.Objects.equals(this.customProperties, other.customProperties) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.channelId == null ? 43 : this.channelId.hashCode()); + result = + (result * PRIME) + + (this.customProperties == null ? 43 : this.customProperties.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PurgeQueueDetails.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PurgeQueueDetails.java index 360c4fafb41..79a5717b8b2 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PurgeQueueDetails.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PurgeQueueDetails.java @@ -23,24 +23,25 @@ public final class PurgeQueueDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"purgeType"}) - public PurgeQueueDetails(PurgeType purgeType) { + @java.beans.ConstructorProperties({"purgeType", "channelIds"}) + public PurgeQueueDetails(PurgeType purgeType, java.util.List channelIds) { super(); this.purgeType = purgeType; + this.channelIds = channelIds; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Type of the purge to perform: - NORMAL - purge only normal queue - DLQ - purge only DLQ - - * BOTH - purge both normal queue and DLQ + * Type of the purge to perform: - NORMAL - purge only the normal queue - DLQ - purge only + * the dead letter queue - BOTH - purge both the normal queue and the dead letter queue */ @com.fasterxml.jackson.annotation.JsonProperty("purgeType") private PurgeType purgeType; /** - * Type of the purge to perform: - NORMAL - purge only normal queue - DLQ - purge only DLQ - - * BOTH - purge both normal queue and DLQ + * Type of the purge to perform: - NORMAL - purge only the normal queue - DLQ - purge only + * the dead letter queue - BOTH - purge both the normal queue and the dead letter queue * * @param purgeType the value to set * @return this builder @@ -50,12 +51,35 @@ public Builder purgeType(PurgeType purgeType) { this.__explicitlySet__.add("purgeType"); return this; } + /** + * Optional parameter to specify the destination of purge operation. If the channel ID is + * specified, the purge operation will delete all the messages in the specific channels. If + * the channel ID is not specified, the purge operation will delete all the messages in the + * queue and in the child channels. + */ + @com.fasterxml.jackson.annotation.JsonProperty("channelIds") + private java.util.List channelIds; + + /** + * Optional parameter to specify the destination of purge operation. If the channel ID is + * specified, the purge operation will delete all the messages in the specific channels. If + * the channel ID is not specified, the purge operation will delete all the messages in the + * queue and in the child channels. + * + * @param channelIds the value to set + * @return this builder + */ + public Builder channelIds(java.util.List channelIds) { + this.channelIds = channelIds; + this.__explicitlySet__.add("channelIds"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public PurgeQueueDetails build() { - PurgeQueueDetails model = new PurgeQueueDetails(this.purgeType); + PurgeQueueDetails model = new PurgeQueueDetails(this.purgeType, this.channelIds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -67,6 +91,9 @@ public Builder copy(PurgeQueueDetails model) { if (model.wasPropertyExplicitlySet("purgeType")) { this.purgeType(model.getPurgeType()); } + if (model.wasPropertyExplicitlySet("channelIds")) { + this.channelIds(model.getChannelIds()); + } return this; } } @@ -81,8 +108,8 @@ public Builder toBuilder() { } /** - * Type of the purge to perform: - NORMAL - purge only normal queue - DLQ - purge only DLQ - - * BOTH - purge both normal queue and DLQ + * Type of the purge to perform: - NORMAL - purge only the normal queue - DLQ - purge only the + * dead letter queue - BOTH - purge both the normal queue and the dead letter queue */ public enum PurgeType implements com.oracle.bmc.http.internal.BmcEnum { Normal("NORMAL"), @@ -118,15 +145,15 @@ public static PurgeType create(String key) { } }; /** - * Type of the purge to perform: - NORMAL - purge only normal queue - DLQ - purge only DLQ - - * BOTH - purge both normal queue and DLQ + * Type of the purge to perform: - NORMAL - purge only the normal queue - DLQ - purge only the + * dead letter queue - BOTH - purge both the normal queue and the dead letter queue */ @com.fasterxml.jackson.annotation.JsonProperty("purgeType") private final PurgeType purgeType; /** - * Type of the purge to perform: - NORMAL - purge only normal queue - DLQ - purge only DLQ - - * BOTH - purge both normal queue and DLQ + * Type of the purge to perform: - NORMAL - purge only the normal queue - DLQ - purge only the + * dead letter queue - BOTH - purge both the normal queue and the dead letter queue * * @return the value */ @@ -134,6 +161,27 @@ public PurgeType getPurgeType() { return purgeType; } + /** + * Optional parameter to specify the destination of purge operation. If the channel ID is + * specified, the purge operation will delete all the messages in the specific channels. If the + * channel ID is not specified, the purge operation will delete all the messages in the queue + * and in the child channels. + */ + @com.fasterxml.jackson.annotation.JsonProperty("channelIds") + private final java.util.List channelIds; + + /** + * Optional parameter to specify the destination of purge operation. If the channel ID is + * specified, the purge operation will delete all the messages in the specific channels. If the + * channel ID is not specified, the purge operation will delete all the messages in the queue + * and in the child channels. + * + * @return the value + */ + public java.util.List getChannelIds() { + return channelIds; + } + @Override public String toString() { return this.toString(true); @@ -150,6 +198,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("PurgeQueueDetails("); sb.append("super=").append(super.toString()); sb.append("purgeType=").append(String.valueOf(this.purgeType)); + sb.append(", channelIds=").append(String.valueOf(this.channelIds)); sb.append(")"); return sb.toString(); } @@ -164,7 +213,9 @@ public boolean equals(Object o) { } PurgeQueueDetails other = (PurgeQueueDetails) o; - return java.util.Objects.equals(this.purgeType, other.purgeType) && super.equals(other); + return java.util.Objects.equals(this.purgeType, other.purgeType) + && java.util.Objects.equals(this.channelIds, other.channelIds) + && super.equals(other); } @Override @@ -172,6 +223,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.purgeType == null ? 43 : this.purgeType.hashCode()); + result = (result * PRIME) + (this.channelIds == null ? 43 : this.channelIds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PutMessage.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PutMessage.java index baa681d5c54..4de0e219afe 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PutMessage.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PutMessage.java @@ -5,7 +5,7 @@ package com.oracle.bmc.queue.model; /** - * A message that has been published in a queue.
+ * A message that has been published to a queue.
* 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 @@ -21,20 +21,21 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class PutMessage extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"id"}) - public PutMessage(Long id) { + @java.beans.ConstructorProperties({"id", "expireAfter"}) + public PutMessage(Long id, java.util.Date expireAfter) { super(); this.id = id; + this.expireAfter = expireAfter; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The id of the message */ + /** The ID of the message. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private Long id; /** - * The id of the message + * The ID of the message. * * @param id the value to set * @return this builder @@ -44,12 +45,35 @@ public Builder id(Long id) { this.__explicitlySet__.add("id"); return this; } + /** + * The time after which the message will be automatically deleted, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("expireAfter") + private java.util.Date expireAfter; + + /** + * The time after which the message will be automatically deleted, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} + * + * @param expireAfter the value to set + * @return this builder + */ + public Builder expireAfter(java.util.Date expireAfter) { + this.expireAfter = expireAfter; + this.__explicitlySet__.add("expireAfter"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public PutMessage build() { - PutMessage model = new PutMessage(this.id); + PutMessage model = new PutMessage(this.id, this.expireAfter); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -61,6 +85,9 @@ public Builder copy(PutMessage model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } + if (model.wasPropertyExplicitlySet("expireAfter")) { + this.expireAfter(model.getExpireAfter()); + } return this; } } @@ -74,12 +101,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The id of the message */ + /** The ID of the message. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final Long id; /** - * The id of the message + * The ID of the message. * * @return the value */ @@ -87,6 +114,27 @@ public Long getId() { return id; } + /** + * The time after which the message will be automatically deleted, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("expireAfter") + private final java.util.Date expireAfter; + + /** + * The time after which the message will be automatically deleted, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} + * + * @return the value + */ + public java.util.Date getExpireAfter() { + return expireAfter; + } + @Override public String toString() { return this.toString(true); @@ -103,6 +151,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("PutMessage("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); + sb.append(", expireAfter=").append(String.valueOf(this.expireAfter)); sb.append(")"); return sb.toString(); } @@ -117,7 +166,9 @@ public boolean equals(Object o) { } PutMessage other = (PutMessage) o; - return java.util.Objects.equals(this.id, other.id) && super.equals(other); + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.expireAfter, other.expireAfter) + && super.equals(other); } @Override @@ -125,6 +176,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.expireAfter == null ? 43 : this.expireAfter.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PutMessages.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PutMessages.java index b5bc1bbd068..33b968a8792 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PutMessages.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PutMessages.java @@ -5,7 +5,7 @@ package com.oracle.bmc.queue.model; /** - * A list of the messages published in a queue.
+ * A list of the messages published to a queue.
* 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 @@ -29,12 +29,12 @@ public PutMessages(java.util.List messages) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The messages that have been published in a queue. */ + /** The messages that have been published to a queue. */ @com.fasterxml.jackson.annotation.JsonProperty("messages") private java.util.List messages; /** - * The messages that have been published in a queue. + * The messages that have been published to a queue. * * @param messages the value to set * @return this builder @@ -74,12 +74,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The messages that have been published in a queue. */ + /** The messages that have been published to a queue. */ @com.fasterxml.jackson.annotation.JsonProperty("messages") private final java.util.List messages; /** - * The messages that have been published in a queue. + * The messages that have been published to a queue. * * @return the value */ diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PutMessagesDetailsEntry.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PutMessagesDetailsEntry.java index 25637507da9..2d67760ca4c 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PutMessagesDetailsEntry.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/PutMessagesDetailsEntry.java @@ -23,10 +23,11 @@ public final class PutMessagesDetailsEntry extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"content"}) - public PutMessagesDetailsEntry(String content) { + @java.beans.ConstructorProperties({"content", "metadata"}) + public PutMessagesDetailsEntry(String content, MessageMetadata metadata) { super(); this.content = content; + this.metadata = metadata; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -47,11 +48,21 @@ public Builder content(String content) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private MessageMetadata metadata; + + public Builder metadata(MessageMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public PutMessagesDetailsEntry build() { - PutMessagesDetailsEntry model = new PutMessagesDetailsEntry(this.content); + PutMessagesDetailsEntry model = + new PutMessagesDetailsEntry(this.content, this.metadata); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -63,6 +74,9 @@ public Builder copy(PutMessagesDetailsEntry model) { if (model.wasPropertyExplicitlySet("content")) { this.content(model.getContent()); } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } return this; } } @@ -89,6 +103,13 @@ public String getContent() { return content; } + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final MessageMetadata metadata; + + public MessageMetadata getMetadata() { + return metadata; + } + @Override public String toString() { return this.toString(true); @@ -105,6 +126,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("PutMessagesDetailsEntry("); sb.append("super=").append(super.toString()); sb.append("content=").append(String.valueOf(this.content)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); sb.append(")"); return sb.toString(); } @@ -119,7 +141,9 @@ public boolean equals(Object o) { } PutMessagesDetailsEntry other = (PutMessagesDetailsEntry) o; - return java.util.Objects.equals(this.content, other.content) && super.equals(other); + return java.util.Objects.equals(this.content, other.content) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); } @Override @@ -127,6 +151,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.content == null ? 43 : this.content.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/Queue.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/Queue.java index 6f98b6187e1..0a2e72ff0a4 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/Queue.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/Queue.java @@ -5,7 +5,7 @@ package com.oracle.bmc.queue.model; /** - * Description of Queue.
+ * A detailed representation of a queue and its configuration.
* 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 @@ -37,7 +37,8 @@ public final class Queue extends com.oracle.bmc.http.client.internal.ExplicitlyS "customEncryptionKeyId", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "channelConsumptionLimit" }) public Queue( String id, @@ -55,7 +56,8 @@ public Queue( String customEncryptionKeyId, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + Integer channelConsumptionLimit) { super(); this.id = id; this.displayName = displayName; @@ -73,16 +75,17 @@ public Queue( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.channelConsumptionLimit = channelConsumptionLimit; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Unique identifier that is immutable on creation */ + /** A unique identifier for the queue that is immutable on creation. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * Unique identifier that is immutable on creation + * A unique identifier for the queue that is immutable on creation. * * @param id the value to set * @return this builder @@ -92,12 +95,16 @@ public Builder id(String id) { this.__explicitlySet__.add("id"); return this; } - /** Queue Identifier, can be renamed */ + /** + * A user-friendly name for the queue. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Queue Identifier, can be renamed + * A user-friendly name for the queue. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. * * @param displayName the value to set * @return this builder @@ -107,12 +114,16 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** Compartment Identifier */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment containing the queue. + */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * Compartment Identifier + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment containing the queue. * * @param compartmentId the value to set * @return this builder @@ -122,12 +133,20 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** The time the the Queue was created. An RFC3339 formatted datetime string */ + /** + * The time that the queue was created, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} + */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The time the the Queue was created. An RFC3339 formatted datetime string + * The time that the queue was created, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @param timeCreated the value to set * @return this builder @@ -137,12 +156,20 @@ public Builder timeCreated(java.util.Date timeCreated) { this.__explicitlySet__.add("timeCreated"); return this; } - /** The time the Queue was updated. An RFC3339 formatted datetime string */ + /** + * The time that the queue was updated, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} + */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private java.util.Date timeUpdated; /** - * The time the Queue was updated. An RFC3339 formatted datetime string + * The time that the queue was updated, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @param timeUpdated the value to set * @return this builder @@ -152,12 +179,12 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } - /** The current state of the Queue. */ + /** The current state of the queue. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The current state of the Queue. + * The current state of the queue. * * @param lifecycleState the value to set * @return this builder @@ -167,16 +194,12 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } - /** - * A message describing the current state in more detail. For example, can be used to - * provide actionable information for a resource in Failed state. - */ + /** Any additional details about the current state of the queue. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private String lifecycleDetails; /** - * A message describing the current state in more detail. For example, can be used to - * provide actionable information for a resource in Failed state. + * Any additional details about the current state of the queue. * * @param lifecycleDetails the value to set * @return this builder @@ -216,12 +239,12 @@ public Builder retentionInSeconds(Integer retentionInSeconds) { this.__explicitlySet__.add("retentionInSeconds"); return this; } - /** The default visibility of the messages consumed from the queue. */ + /** The default visibility timeout of the messages consumed from the queue, in seconds. */ @com.fasterxml.jackson.annotation.JsonProperty("visibilityInSeconds") private Integer visibilityInSeconds; /** - * The default visibility of the messages consumed from the queue. + * The default visibility timeout of the messages consumed from the queue, in seconds. * * @param visibilityInSeconds the value to set * @return this builder @@ -265,12 +288,16 @@ public Builder deadLetterQueueDeliveryCount(Integer deadLetterQueueDeliveryCount this.__explicitlySet__.add("deadLetterQueueDeliveryCount"); return this; } - /** Id of the custom master encryption key which will be used to encrypt messages content */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the custom encryption key to be used to encrypt messages content. + */ @com.fasterxml.jackson.annotation.JsonProperty("customEncryptionKeyId") private String customEncryptionKeyId; /** - * Id of the custom master encryption key which will be used to encrypt messages content + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the custom encryption key to be used to encrypt messages content. * * @param customEncryptionKeyId the value to set * @return this builder @@ -338,6 +365,31 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * The percentage of allocated queue resources that can be consumed by a single channel. For + * example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is + * 0.1 (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit + * of 100% (default) means that a single channel can consume up-to all allocated queue's + * resources. + */ + @com.fasterxml.jackson.annotation.JsonProperty("channelConsumptionLimit") + private Integer channelConsumptionLimit; + + /** + * The percentage of allocated queue resources that can be consumed by a single channel. For + * example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is + * 0.1 (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit + * of 100% (default) means that a single channel can consume up-to all allocated queue's + * resources. + * + * @param channelConsumptionLimit the value to set + * @return this builder + */ + public Builder channelConsumptionLimit(Integer channelConsumptionLimit) { + this.channelConsumptionLimit = channelConsumptionLimit; + this.__explicitlySet__.add("channelConsumptionLimit"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -360,7 +412,8 @@ public Queue build() { this.customEncryptionKeyId, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.channelConsumptionLimit); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -417,6 +470,9 @@ public Builder copy(Queue model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("channelConsumptionLimit")) { + this.channelConsumptionLimit(model.getChannelConsumptionLimit()); + } return this; } } @@ -430,12 +486,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Unique identifier that is immutable on creation */ + /** A unique identifier for the queue that is immutable on creation. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * Unique identifier that is immutable on creation + * A unique identifier for the queue that is immutable on creation. * * @return the value */ @@ -443,12 +499,16 @@ public String getId() { return id; } - /** Queue Identifier, can be renamed */ + /** + * A user-friendly name for the queue. Does not have to be unique, and it's changeable. Avoid + * entering confidential information. + */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Queue Identifier, can be renamed + * A user-friendly name for the queue. Does not have to be unique, and it's changeable. Avoid + * entering confidential information. * * @return the value */ @@ -456,12 +516,16 @@ public String getDisplayName() { return displayName; } - /** Compartment Identifier */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment containing the queue. + */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * Compartment Identifier + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment containing the queue. * * @return the value */ @@ -469,12 +533,20 @@ public String getCompartmentId() { return compartmentId; } - /** The time the the Queue was created. An RFC3339 formatted datetime string */ + /** + * The time that the queue was created, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} + */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The time the the Queue was created. An RFC3339 formatted datetime string + * The time that the queue was created, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @return the value */ @@ -482,12 +554,20 @@ public java.util.Date getTimeCreated() { return timeCreated; } - /** The time the Queue was updated. An RFC3339 formatted datetime string */ + /** + * The time that the queue was updated, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} + */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** - * The time the Queue was updated. An RFC3339 formatted datetime string + * The time that the queue was updated, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @return the value */ @@ -495,7 +575,7 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** The current state of the Queue. */ + /** The current state of the queue. */ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Creating("CREATING"), Updating("UPDATING"), @@ -545,12 +625,12 @@ public static LifecycleState create(String key) { return UnknownEnumValue; } }; - /** The current state of the Queue. */ + /** The current state of the queue. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The current state of the Queue. + * The current state of the queue. * * @return the value */ @@ -558,16 +638,12 @@ public LifecycleState getLifecycleState() { return lifecycleState; } - /** - * A message describing the current state in more detail. For example, can be used to provide - * actionable information for a resource in Failed state. - */ + /** Any additional details about the current state of the queue. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** - * A message describing the current state in more detail. For example, can be used to provide - * actionable information for a resource in Failed state. + * Any additional details about the current state of the queue. * * @return the value */ @@ -601,12 +677,12 @@ public Integer getRetentionInSeconds() { return retentionInSeconds; } - /** The default visibility of the messages consumed from the queue. */ + /** The default visibility timeout of the messages consumed from the queue, in seconds. */ @com.fasterxml.jackson.annotation.JsonProperty("visibilityInSeconds") private final Integer visibilityInSeconds; /** - * The default visibility of the messages consumed from the queue. + * The default visibility timeout of the messages consumed from the queue, in seconds. * * @return the value */ @@ -644,12 +720,16 @@ public Integer getDeadLetterQueueDeliveryCount() { return deadLetterQueueDeliveryCount; } - /** Id of the custom master encryption key which will be used to encrypt messages content */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the custom encryption key to be used to encrypt messages content. + */ @com.fasterxml.jackson.annotation.JsonProperty("customEncryptionKeyId") private final String customEncryptionKeyId; /** - * Id of the custom master encryption key which will be used to encrypt messages content + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the custom encryption key to be used to encrypt messages content. * * @return the value */ @@ -708,6 +788,27 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * The percentage of allocated queue resources that can be consumed by a single channel. For + * example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 + * (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit of 100% + * (default) means that a single channel can consume up-to all allocated queue's resources. + */ + @com.fasterxml.jackson.annotation.JsonProperty("channelConsumptionLimit") + private final Integer channelConsumptionLimit; + + /** + * The percentage of allocated queue resources that can be consumed by a single channel. For + * example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 + * (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit of 100% + * (default) means that a single channel can consume up-to all allocated queue's resources. + * + * @return the value + */ + public Integer getChannelConsumptionLimit() { + return channelConsumptionLimit; + } + @Override public String toString() { return this.toString(true); @@ -740,6 +841,8 @@ 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(", channelConsumptionLimit=") + .append(String.valueOf(this.channelConsumptionLimit)); sb.append(")"); return sb.toString(); } @@ -771,6 +874,8 @@ 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.channelConsumptionLimit, other.channelConsumptionLimit) && super.equals(other); } @@ -820,6 +925,11 @@ 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.channelConsumptionLimit == null + ? 43 + : this.channelConsumptionLimit.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/QueueStats.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/QueueStats.java index 79ee1bbd865..cc0aaf38e8d 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/QueueStats.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/QueueStats.java @@ -5,7 +5,8 @@ package com.oracle.bmc.queue.model; /** - * The stats for a queue and its dead letter queue.
+ * The stats for a queue and its dead letter queue. If channelId is specified in request field, it + * will return channel specific stats response.
* 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 @@ -21,11 +22,12 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class QueueStats extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"queue", "dlq"}) - public QueueStats(Stats queue, Stats dlq) { + @java.beans.ConstructorProperties({"queue", "dlq", "channelId"}) + public QueueStats(Stats queue, Stats dlq, String channelId) { super(); this.queue = queue; this.dlq = dlq; + this.channelId = channelId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -48,12 +50,31 @@ public Builder dlq(Stats dlq) { this.__explicitlySet__.add("dlq"); return this; } + /** + * If channelId is presented in GetStats call, the channel id will be returned in the + * GetStats response. + */ + @com.fasterxml.jackson.annotation.JsonProperty("channelId") + private String channelId; + + /** + * If channelId is presented in GetStats call, the channel id will be returned in the + * GetStats response. + * + * @param channelId the value to set + * @return this builder + */ + public Builder channelId(String channelId) { + this.channelId = channelId; + this.__explicitlySet__.add("channelId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public QueueStats build() { - QueueStats model = new QueueStats(this.queue, this.dlq); + QueueStats model = new QueueStats(this.queue, this.dlq, this.channelId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -68,6 +89,9 @@ public Builder copy(QueueStats model) { if (model.wasPropertyExplicitlySet("dlq")) { this.dlq(model.getDlq()); } + if (model.wasPropertyExplicitlySet("channelId")) { + this.channelId(model.getChannelId()); + } return this; } } @@ -95,6 +119,23 @@ public Stats getDlq() { return dlq; } + /** + * If channelId is presented in GetStats call, the channel id will be returned in the GetStats + * response. + */ + @com.fasterxml.jackson.annotation.JsonProperty("channelId") + private final String channelId; + + /** + * If channelId is presented in GetStats call, the channel id will be returned in the GetStats + * response. + * + * @return the value + */ + public String getChannelId() { + return channelId; + } + @Override public String toString() { return this.toString(true); @@ -112,6 +153,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("queue=").append(String.valueOf(this.queue)); sb.append(", dlq=").append(String.valueOf(this.dlq)); + sb.append(", channelId=").append(String.valueOf(this.channelId)); sb.append(")"); return sb.toString(); } @@ -128,6 +170,7 @@ public boolean equals(Object o) { QueueStats other = (QueueStats) o; return java.util.Objects.equals(this.queue, other.queue) && java.util.Objects.equals(this.dlq, other.dlq) + && java.util.Objects.equals(this.channelId, other.channelId) && super.equals(other); } @@ -137,6 +180,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.queue == null ? 43 : this.queue.hashCode()); result = (result * PRIME) + (this.dlq == null ? 43 : this.dlq.hashCode()); + result = (result * PRIME) + (this.channelId == null ? 43 : this.channelId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/QueueSummary.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/QueueSummary.java index a0f75a0f5b1..27cffd6c486 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/QueueSummary.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/QueueSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.queue.model; /** - * Summary of the Queue.
+ * Summary of the queue.
* 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 @@ -62,12 +62,12 @@ public QueueSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Unique identifier that is immutable on creation */ + /** A unique identifier for the queue that is immutable on creation. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * Unique identifier that is immutable on creation + * A unique identifier for the queue that is immutable on creation. * * @param id the value to set * @return this builder @@ -77,12 +77,16 @@ public Builder id(String id) { this.__explicitlySet__.add("id"); return this; } - /** Queue Identifier, can be renamed */ + /** + * A user-friendly name for the queue. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Queue Identifier, can be renamed + * A user-friendly name for the queue. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. * * @param displayName the value to set * @return this builder @@ -92,12 +96,16 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** Compartment Identifier */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment containing the queue. + */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * Compartment Identifier + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment containing the queue. * * @param compartmentId the value to set * @return this builder @@ -107,12 +115,20 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** The time the the Queue was created. An RFC3339 formatted datetime string */ + /** + * The time that the queue was created, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} + */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The time the the Queue was created. An RFC3339 formatted datetime string + * The time that the queue was created, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @param timeCreated the value to set * @return this builder @@ -122,12 +138,20 @@ public Builder timeCreated(java.util.Date timeCreated) { this.__explicitlySet__.add("timeCreated"); return this; } - /** The time the Queue was updated. An RFC3339 formatted datetime string */ + /** + * The time that the queue was updated, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} + */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private java.util.Date timeUpdated; /** - * The time the Queue was updated. An RFC3339 formatted datetime string + * The time that the queue was updated, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @param timeUpdated the value to set * @return this builder @@ -137,12 +161,12 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } - /** The current state of the Queue. */ + /** The current state of the queue. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private Queue.LifecycleState lifecycleState; /** - * The current state of the Queue. + * The current state of the queue. * * @param lifecycleState the value to set * @return this builder @@ -152,16 +176,12 @@ public Builder lifecycleState(Queue.LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } - /** - * A message describing the current state in more detail. For example, can be used to - * provide actionable information for a resource in Failed state. - */ + /** Any additional details about the current state of the queue. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private String lifecycleDetails; /** - * A message describing the current state in more detail. For example, can be used to - * provide actionable information for a resource in Failed state. + * Any additional details about the current state of the queue. * * @param lifecycleDetails the value to set * @return this builder @@ -171,12 +191,12 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } - /** The endpoint to use to get or put messages in the queue. */ + /** The endpoint to use to consume or publish messages in the queue. */ @com.fasterxml.jackson.annotation.JsonProperty("messagesEndpoint") private String messagesEndpoint; /** - * The endpoint to use to get or put messages in the queue. + * The endpoint to use to consume or publish messages in the queue. * * @param messagesEndpoint the value to set * @return this builder @@ -316,12 +336,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Unique identifier that is immutable on creation */ + /** A unique identifier for the queue that is immutable on creation. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * Unique identifier that is immutable on creation + * A unique identifier for the queue that is immutable on creation. * * @return the value */ @@ -329,12 +349,16 @@ public String getId() { return id; } - /** Queue Identifier, can be renamed */ + /** + * A user-friendly name for the queue. Does not have to be unique, and it's changeable. Avoid + * entering confidential information. + */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Queue Identifier, can be renamed + * A user-friendly name for the queue. Does not have to be unique, and it's changeable. Avoid + * entering confidential information. * * @return the value */ @@ -342,12 +366,16 @@ public String getDisplayName() { return displayName; } - /** Compartment Identifier */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment containing the queue. + */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * Compartment Identifier + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment containing the queue. * * @return the value */ @@ -355,12 +383,20 @@ public String getCompartmentId() { return compartmentId; } - /** The time the the Queue was created. An RFC3339 formatted datetime string */ + /** + * The time that the queue was created, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} + */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The time the the Queue was created. An RFC3339 formatted datetime string + * The time that the queue was created, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @return the value */ @@ -368,12 +404,20 @@ public java.util.Date getTimeCreated() { return timeCreated; } - /** The time the Queue was updated. An RFC3339 formatted datetime string */ + /** + * The time that the queue was updated, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} + */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** - * The time the Queue was updated. An RFC3339 formatted datetime string + * The time that the queue was updated, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @return the value */ @@ -381,12 +425,12 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** The current state of the Queue. */ + /** The current state of the queue. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final Queue.LifecycleState lifecycleState; /** - * The current state of the Queue. + * The current state of the queue. * * @return the value */ @@ -394,16 +438,12 @@ public Queue.LifecycleState getLifecycleState() { return lifecycleState; } - /** - * A message describing the current state in more detail. For example, can be used to provide - * actionable information for a resource in Failed state. - */ + /** Any additional details about the current state of the queue. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** - * A message describing the current state in more detail. For example, can be used to provide - * actionable information for a resource in Failed state. + * Any additional details about the current state of the queue. * * @return the value */ @@ -411,12 +451,12 @@ public String getLifecycleDetails() { return lifecycleDetails; } - /** The endpoint to use to get or put messages in the queue. */ + /** The endpoint to use to consume or publish messages in the queue. */ @com.fasterxml.jackson.annotation.JsonProperty("messagesEndpoint") private final String messagesEndpoint; /** - * The endpoint to use to get or put messages in the queue. + * The endpoint to use to consume or publish messages in the queue. * * @return the value */ diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/Stats.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/Stats.java index 21c83fc5e73..bd681f8a43a 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/Stats.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/Stats.java @@ -70,14 +70,14 @@ public Builder inFlightMessages(Long inFlightMessages) { return this; } /** - * The approximate size of the queue in bytes. Sum of the size of visible of in-flight + * The approximate size of the queue in bytes. Sum of the size of visible and in-flight * messages. */ @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") private Long sizeInBytes; /** - * The approximate size of the queue in bytes. Sum of the size of visible of in-flight + * The approximate size of the queue in bytes. Sum of the size of visible and in-flight * messages. * * @param sizeInBytes the value to set @@ -157,13 +157,15 @@ public Long getInFlightMessages() { } /** - * The approximate size of the queue in bytes. Sum of the size of visible of in-flight messages. + * The approximate size of the queue in bytes. Sum of the size of visible and in-flight + * messages. */ @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") private final Long sizeInBytes; /** - * The approximate size of the queue in bytes. Sum of the size of visible of in-flight messages. + * The approximate size of the queue in bytes. Sum of the size of visible and in-flight + * messages. * * @return the value */ diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesDetails.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesDetails.java index 3934c593ef2..d1367f8bb76 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesDetails.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.queue.model; /** - * The details of a UpdateMessages request.
+ * The details of an UpdateMessages request.
* 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 diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesDetailsEntry.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesDetailsEntry.java index b8585c1e1cf..f96c5b9892a 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesDetailsEntry.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesDetailsEntry.java @@ -32,12 +32,12 @@ public UpdateMessagesDetailsEntry(String receipt, Integer visibilityInSeconds) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The receipt of the message to update */ + /** The receipt of the message to update. */ @com.fasterxml.jackson.annotation.JsonProperty("receipt") private String receipt; /** - * The receipt of the message to update + * The receipt of the message to update. * * @param receipt the value to set * @return this builder @@ -100,12 +100,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The receipt of the message to update */ + /** The receipt of the message to update. */ @com.fasterxml.jackson.annotation.JsonProperty("receipt") private final String receipt; /** - * The receipt of the message to update + * The receipt of the message to update. * * @return the value */ diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesResult.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesResult.java index c7eb5ad5ffb..6380b58adff 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesResult.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesResult.java @@ -58,14 +58,14 @@ public Builder serverFailures(Integer serverFailures) { } /** * The number of messages that failed to be updated in the queue because of a client failure - * such as an invalid receipt or invalid visibilityInSeconds. + * such as an invalid receipt or invalid {@code visibilityInSeconds}. */ @com.fasterxml.jackson.annotation.JsonProperty("clientFailures") private Integer clientFailures; /** * The number of messages that failed to be updated in the queue because of a client failure - * such as an invalid receipt or invalid visibilityInSeconds. + * such as an invalid receipt or invalid {@code visibilityInSeconds}. * * @param clientFailures the value to set * @return this builder @@ -155,14 +155,14 @@ public Integer getServerFailures() { /** * The number of messages that failed to be updated in the queue because of a client failure - * such as an invalid receipt or invalid visibilityInSeconds. + * such as an invalid receipt or invalid {@code visibilityInSeconds}. */ @com.fasterxml.jackson.annotation.JsonProperty("clientFailures") private final Integer clientFailures; /** * The number of messages that failed to be updated in the queue because of a client failure - * such as an invalid receipt or invalid visibilityInSeconds. + * such as an invalid receipt or invalid {@code visibilityInSeconds}. * * @return the value */ diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesResultEntry.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesResultEntry.java index 18910c0f98d..d472abaa216 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesResultEntry.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateMessagesResultEntry.java @@ -38,12 +38,12 @@ public UpdateMessagesResultEntry( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The id of the message that's been updated. */ + /** The ID of the message that's been updated. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private Long id; /** - * The id of the message that's been updated. + * The ID of the message that's been updated. * * @param id the value to set * @return this builder @@ -54,15 +54,19 @@ public Builder id(Long id) { return this; } /** - * The time after which the message will be visible to other consumers. An RFC3339 formatted - * datetime string + * The time after which the message will be visible to other consumers, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} */ @com.fasterxml.jackson.annotation.JsonProperty("visibleAfter") private java.util.Date visibleAfter; /** - * The time after which the message will be visible to other consumers. An RFC3339 formatted - * datetime string + * The time after which the message will be visible to other consumers, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @param visibleAfter the value to set * @return this builder @@ -143,12 +147,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The id of the message that's been updated. */ + /** The ID of the message that's been updated. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final Long id; /** - * The id of the message that's been updated. + * The ID of the message that's been updated. * * @return the value */ @@ -157,15 +161,19 @@ public Long getId() { } /** - * The time after which the message will be visible to other consumers. An RFC3339 formatted - * datetime string + * The time after which the message will be visible to other consumers, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} */ @com.fasterxml.jackson.annotation.JsonProperty("visibleAfter") private final java.util.Date visibleAfter; /** - * The time after which the message will be visible to other consumers. An RFC3339 formatted - * datetime string + * The time after which the message will be visible to other consumers, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @return the value */ diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateQueueDetails.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateQueueDetails.java index bddd6b0d814..bfde684e62b 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateQueueDetails.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdateQueueDetails.java @@ -27,6 +27,7 @@ public final class UpdateQueueDetails "displayName", "visibilityInSeconds", "timeoutInSeconds", + "channelConsumptionLimit", "deadLetterQueueDeliveryCount", "customEncryptionKeyId", "freeformTags", @@ -36,6 +37,7 @@ public UpdateQueueDetails( String displayName, Integer visibilityInSeconds, Integer timeoutInSeconds, + Integer channelConsumptionLimit, Integer deadLetterQueueDeliveryCount, String customEncryptionKeyId, java.util.Map freeformTags, @@ -44,6 +46,7 @@ public UpdateQueueDetails( this.displayName = displayName; this.visibilityInSeconds = visibilityInSeconds; this.timeoutInSeconds = timeoutInSeconds; + this.channelConsumptionLimit = channelConsumptionLimit; this.deadLetterQueueDeliveryCount = deadLetterQueueDeliveryCount; this.customEncryptionKeyId = customEncryptionKeyId; this.freeformTags = freeformTags; @@ -52,12 +55,16 @@ public UpdateQueueDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Queue Identifier */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the queue. + */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Queue Identifier + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the queue. * * @param displayName the value to set * @return this builder @@ -67,12 +74,12 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** The default visibility of the messages consumed from the queue. */ + /** The default visibility timeout of the messages consumed from the queue, in seconds. */ @com.fasterxml.jackson.annotation.JsonProperty("visibilityInSeconds") private Integer visibilityInSeconds; /** - * The default visibility of the messages consumed from the queue. + * The default visibility timeout of the messages consumed from the queue, in seconds. * * @param visibilityInSeconds the value to set * @return this builder @@ -97,10 +104,35 @@ public Builder timeoutInSeconds(Integer timeoutInSeconds) { this.__explicitlySet__.add("timeoutInSeconds"); return this; } + /** + * The percentage of allocated queue resources that can be consumed by a single channel. For + * example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is + * 0.1 (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit + * of 100% (default) means that a single channel can consume up-to all allocated queue's + * resources. + */ + @com.fasterxml.jackson.annotation.JsonProperty("channelConsumptionLimit") + private Integer channelConsumptionLimit; + + /** + * The percentage of allocated queue resources that can be consumed by a single channel. For + * example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is + * 0.1 (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit + * of 100% (default) means that a single channel can consume up-to all allocated queue's + * resources. + * + * @param channelConsumptionLimit the value to set + * @return this builder + */ + public Builder channelConsumptionLimit(Integer channelConsumptionLimit) { + this.channelConsumptionLimit = channelConsumptionLimit; + this.__explicitlySet__.add("channelConsumptionLimit"); + return this; + } /** * The number of times a message can be delivered to a consumer before being moved to the * dead letter queue. A value of 0 indicates that the DLQ is not used. Changing that value - * to a lower threshold does not retro-actively move in-flight messages in the dead letter + * to a lower threshold does not retroactively move in-flight messages in the dead letter * queue. */ @com.fasterxml.jackson.annotation.JsonProperty("deadLetterQueueDeliveryCount") @@ -109,7 +141,7 @@ public Builder timeoutInSeconds(Integer timeoutInSeconds) { /** * The number of times a message can be delivered to a consumer before being moved to the * dead letter queue. A value of 0 indicates that the DLQ is not used. Changing that value - * to a lower threshold does not retro-actively move in-flight messages in the dead letter + * to a lower threshold does not retroactively move in-flight messages in the dead letter * queue. * * @param deadLetterQueueDeliveryCount the value to set @@ -121,15 +153,17 @@ public Builder deadLetterQueueDeliveryCount(Integer deadLetterQueueDeliveryCount return this; } /** - * Id of the custom master encryption key which will be used to encrypt messages content. - * String of length 0 means the custom key should be removed from queue + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the custom encryption key to be used to encrypt messages content. A string with a + * length of 0 means the custom key should be removed from queue. */ @com.fasterxml.jackson.annotation.JsonProperty("customEncryptionKeyId") private String customEncryptionKeyId; /** - * Id of the custom master encryption key which will be used to encrypt messages content. - * String of length 0 means the custom key should be removed from queue + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the custom encryption key to be used to encrypt messages content. A string with a + * length of 0 means the custom key should be removed from queue. * * @param customEncryptionKeyId the value to set * @return this builder @@ -188,6 +222,7 @@ public UpdateQueueDetails build() { this.displayName, this.visibilityInSeconds, this.timeoutInSeconds, + this.channelConsumptionLimit, this.deadLetterQueueDeliveryCount, this.customEncryptionKeyId, this.freeformTags, @@ -209,6 +244,9 @@ public Builder copy(UpdateQueueDetails model) { if (model.wasPropertyExplicitlySet("timeoutInSeconds")) { this.timeoutInSeconds(model.getTimeoutInSeconds()); } + if (model.wasPropertyExplicitlySet("channelConsumptionLimit")) { + this.channelConsumptionLimit(model.getChannelConsumptionLimit()); + } if (model.wasPropertyExplicitlySet("deadLetterQueueDeliveryCount")) { this.deadLetterQueueDeliveryCount(model.getDeadLetterQueueDeliveryCount()); } @@ -234,12 +272,16 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Queue Identifier */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the queue. + */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Queue Identifier + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the queue. * * @return the value */ @@ -247,12 +289,12 @@ public String getDisplayName() { return displayName; } - /** The default visibility of the messages consumed from the queue. */ + /** The default visibility timeout of the messages consumed from the queue, in seconds. */ @com.fasterxml.jackson.annotation.JsonProperty("visibilityInSeconds") private final Integer visibilityInSeconds; /** - * The default visibility of the messages consumed from the queue. + * The default visibility timeout of the messages consumed from the queue, in seconds. * * @return the value */ @@ -273,10 +315,31 @@ public Integer getTimeoutInSeconds() { return timeoutInSeconds; } + /** + * The percentage of allocated queue resources that can be consumed by a single channel. For + * example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 + * (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit of 100% + * (default) means that a single channel can consume up-to all allocated queue's resources. + */ + @com.fasterxml.jackson.annotation.JsonProperty("channelConsumptionLimit") + private final Integer channelConsumptionLimit; + + /** + * The percentage of allocated queue resources that can be consumed by a single channel. For + * example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 + * (10%), that means data size of a single channel can't exceed 200Mb. Consumption limit of 100% + * (default) means that a single channel can consume up-to all allocated queue's resources. + * + * @return the value + */ + public Integer getChannelConsumptionLimit() { + return channelConsumptionLimit; + } + /** * The number of times a message can be delivered to a consumer before being moved to the dead * letter queue. A value of 0 indicates that the DLQ is not used. Changing that value to a lower - * threshold does not retro-actively move in-flight messages in the dead letter queue. + * threshold does not retroactively move in-flight messages in the dead letter queue. */ @com.fasterxml.jackson.annotation.JsonProperty("deadLetterQueueDeliveryCount") private final Integer deadLetterQueueDeliveryCount; @@ -284,7 +347,7 @@ public Integer getTimeoutInSeconds() { /** * The number of times a message can be delivered to a consumer before being moved to the dead * letter queue. A value of 0 indicates that the DLQ is not used. Changing that value to a lower - * threshold does not retro-actively move in-flight messages in the dead letter queue. + * threshold does not retroactively move in-flight messages in the dead letter queue. * * @return the value */ @@ -293,15 +356,17 @@ public Integer getDeadLetterQueueDeliveryCount() { } /** - * Id of the custom master encryption key which will be used to encrypt messages content. String - * of length 0 means the custom key should be removed from queue + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the custom encryption key to be used to encrypt messages content. A string with a length of 0 + * means the custom key should be removed from queue. */ @com.fasterxml.jackson.annotation.JsonProperty("customEncryptionKeyId") private final String customEncryptionKeyId; /** - * Id of the custom master encryption key which will be used to encrypt messages content. String - * of length 0 means the custom key should be removed from queue + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the custom encryption key to be used to encrypt messages content. A string with a length of 0 + * means the custom key should be removed from queue. * * @return the value */ @@ -361,6 +426,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", visibilityInSeconds=").append(String.valueOf(this.visibilityInSeconds)); sb.append(", timeoutInSeconds=").append(String.valueOf(this.timeoutInSeconds)); + sb.append(", channelConsumptionLimit=") + .append(String.valueOf(this.channelConsumptionLimit)); sb.append(", deadLetterQueueDeliveryCount=") .append(String.valueOf(this.deadLetterQueueDeliveryCount)); sb.append(", customEncryptionKeyId=").append(String.valueOf(this.customEncryptionKeyId)); @@ -383,6 +450,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.visibilityInSeconds, other.visibilityInSeconds) && java.util.Objects.equals(this.timeoutInSeconds, other.timeoutInSeconds) + && java.util.Objects.equals( + this.channelConsumptionLimit, other.channelConsumptionLimit) && java.util.Objects.equals( this.deadLetterQueueDeliveryCount, other.deadLetterQueueDeliveryCount) && java.util.Objects.equals(this.customEncryptionKeyId, other.customEncryptionKeyId) @@ -404,6 +473,11 @@ public int hashCode() { result = (result * PRIME) + (this.timeoutInSeconds == null ? 43 : this.timeoutInSeconds.hashCode()); + result = + (result * PRIME) + + (this.channelConsumptionLimit == null + ? 43 + : this.channelConsumptionLimit.hashCode()); result = (result * PRIME) + (this.deadLetterQueueDeliveryCount == null diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdatedMessage.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdatedMessage.java index d9ce690e5d9..d716a090b65 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdatedMessage.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/UpdatedMessage.java @@ -31,12 +31,12 @@ public UpdatedMessage(Long id, java.util.Date visibleAfter) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The id of the message that's been updated. */ + /** The ID of the message that's been updated. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private Long id; /** - * The id of the message that's been updated. + * The ID of the message that's been updated. * * @param id the value to set * @return this builder @@ -47,15 +47,19 @@ public Builder id(Long id) { return this; } /** - * The time after which the message will be visible to other consumers. An RFC3339 formatted - * datetime string + * The time after which the message will be visible to other consumers, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} */ @com.fasterxml.jackson.annotation.JsonProperty("visibleAfter") private java.util.Date visibleAfter; /** - * The time after which the message will be visible to other consumers. An RFC3339 formatted - * datetime string + * The time after which the message will be visible to other consumers, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @param visibleAfter the value to set * @return this builder @@ -98,12 +102,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The id of the message that's been updated. */ + /** The ID of the message that's been updated. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final Long id; /** - * The id of the message that's been updated. + * The ID of the message that's been updated. * * @return the value */ @@ -112,15 +116,19 @@ public Long getId() { } /** - * The time after which the message will be visible to other consumers. An RFC3339 formatted - * datetime string + * The time after which the message will be visible to other consumers, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} */ @com.fasterxml.jackson.annotation.JsonProperty("visibleAfter") private final java.util.Date visibleAfter; /** - * The time after which the message will be visible to other consumers. An RFC3339 formatted - * datetime string + * The time after which the message will be visible to other consumers, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2018-04-20T00:00:07.405Z} * * @return the value */ diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequest.java index c9820ecb50f..35607fcfa18 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequest.java @@ -102,21 +102,21 @@ public Builder id(String id) { return this; } /** - * The ocid of the compartment that contains the work request. Work requests should be - * scoped to the same compartment as the resource the work request affects. If the work - * request affects multiple resources, and those resources are not in the same compartment, - * it is up to the service team to pick the primary resource whose compartment should be - * used + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains the work request. Work requests should be scoped to the + * same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The ocid of the compartment that contains the work request. Work requests should be - * scoped to the same compartment as the resource the work request affects. If the work - * request affects multiple resources, and those resources are not in the same compartment, - * it is up to the service team to pick the primary resource whose compartment should be - * used + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains the work request. Work requests should be scoped to the + * same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used * * @param compartmentId the value to set * @return this builder @@ -317,19 +317,21 @@ public String getId() { } /** - * The ocid of the compartment that contains the work request. Work requests should be scoped to - * the same compartment as the resource the work request affects. If the work request affects - * multiple resources, and those resources are not in the same compartment, it is up to the - * service team to pick the primary resource whose compartment should be used + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains the work request. Work requests should be scoped to the same + * compartment as the resource the work request affects. If the work request affects multiple + * resources, and those resources are not in the same compartment, it is up to the service team + * to pick the primary resource whose compartment should be used */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The ocid of the compartment that contains the work request. Work requests should be scoped to - * the same compartment as the resource the work request affects. If the work request affects - * multiple resources, and those resources are not in the same compartment, it is up to the - * service team to pick the primary resource whose compartment should be used + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains the work request. Work requests should be scoped to the same + * compartment as the resource the work request affects. If the work request affects multiple + * resources, and those resources are not in the same compartment, it is up to the service team + * to pick the primary resource whose compartment should be used * * @return the value */ diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequestError.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequestError.java index c530bed254e..362d4d0b871 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequestError.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequestError.java @@ -66,12 +66,16 @@ public Builder message(String message) { this.__explicitlySet__.add("message"); return this; } - /** The time the error occured. An RFC3339 formatted datetime string. */ + /** + * The time the error occured. An [RFC 3339](https://tools.ietf.org/rfc/rfc3339) formatted + * datetime string. + */ @com.fasterxml.jackson.annotation.JsonProperty("timestamp") private java.util.Date timestamp; /** - * The time the error occured. An RFC3339 formatted datetime string. + * The time the error occured. An [RFC 3339](https://tools.ietf.org/rfc/rfc3339) formatted + * datetime string. * * @param timestamp the value to set * @return this builder @@ -147,12 +151,16 @@ public String getMessage() { return message; } - /** The time the error occured. An RFC3339 formatted datetime string. */ + /** + * The time the error occured. An [RFC 3339](https://tools.ietf.org/rfc/rfc3339) formatted + * datetime string. + */ @com.fasterxml.jackson.annotation.JsonProperty("timestamp") private final java.util.Date timestamp; /** - * The time the error occured. An RFC3339 formatted datetime string. + * The time the error occured. An [RFC 3339](https://tools.ietf.org/rfc/rfc3339) formatted + * datetime string. * * @return the value */ diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequestLogEntry.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequestLogEntry.java index e46c8cd0e1a..acd05fca9dd 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequestLogEntry.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequestLogEntry.java @@ -47,12 +47,16 @@ public Builder message(String message) { this.__explicitlySet__.add("message"); return this; } - /** The time the log message was written. An RFC3339 formatted datetime string */ + /** + * The time the log message was written. An [RFC 3339](https://tools.ietf.org/rfc/rfc3339) + * formatted datetime string + */ @com.fasterxml.jackson.annotation.JsonProperty("timestamp") private java.util.Date timestamp; /** - * The time the log message was written. An RFC3339 formatted datetime string + * The time the log message was written. An [RFC 3339](https://tools.ietf.org/rfc/rfc3339) + * formatted datetime string * * @param timestamp the value to set * @return this builder @@ -108,12 +112,16 @@ public String getMessage() { return message; } - /** The time the log message was written. An RFC3339 formatted datetime string */ + /** + * The time the log message was written. An [RFC 3339](https://tools.ietf.org/rfc/rfc3339) + * formatted datetime string + */ @com.fasterxml.jackson.annotation.JsonProperty("timestamp") private final java.util.Date timestamp; /** - * The time the log message was written. An RFC3339 formatted datetime string + * The time the log message was written. An [RFC 3339](https://tools.ietf.org/rfc/rfc3339) + * formatted datetime string * * @return the value */ diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequestSummary.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequestSummary.java index 37fd0128e78..e9c6302e3ab 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequestSummary.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/model/WorkRequestSummary.java @@ -88,12 +88,12 @@ public Builder status(OperationStatus status) { this.__explicitlySet__.add("status"); return this; } - /** The id of the work request. */ + /** The ID of the work request. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The id of the work request. + * The ID of the work request. * * @param id the value to set * @return this builder @@ -104,21 +104,21 @@ public Builder id(String id) { return this; } /** - * The ocid of the compartment that contains the work request. Work requests should be - * scoped to the same compartment as the resource the work request affects. If the work - * request affects multiple resources, and those resources are not in the same compartment, - * it is up to the service team to pick the primary resource whose compartment should be - * used + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains the work request. Work requests should be scoped to the + * same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The ocid of the compartment that contains the work request. Work requests should be - * scoped to the same compartment as the resource the work request affects. If the work - * request affects multiple resources, and those resources are not in the same compartment, - * it is up to the service team to pick the primary resource whose compartment should be - * used + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains the work request. Work requests should be scoped to the + * same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used * * @param compartmentId the value to set * @return this builder @@ -305,12 +305,12 @@ public OperationStatus getStatus() { return status; } - /** The id of the work request. */ + /** The ID of the work request. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The id of the work request. + * The ID of the work request. * * @return the value */ @@ -319,19 +319,21 @@ public String getId() { } /** - * The ocid of the compartment that contains the work request. Work requests should be scoped to - * the same compartment as the resource the work request affects. If the work request affects - * multiple resources, and those resources are not in the same compartment, it is up to the - * service team to pick the primary resource whose compartment should be used + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains the work request. Work requests should be scoped to the same + * compartment as the resource the work request affects. If the work request affects multiple + * resources, and those resources are not in the same compartment, it is up to the service team + * to pick the primary resource whose compartment should be used */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The ocid of the compartment that contains the work request. Work requests should be scoped to - * the same compartment as the resource the work request affects. If the work request affects - * multiple resources, and those resources are not in the same compartment, it is up to the - * service team to pick the primary resource whose compartment should be used + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains the work request. Work requests should be scoped to the same + * compartment as the resource the work request affects. If the work request affects multiple + * resources, and those resources are not in the same compartment, it is up to the service team + * to pick the primary resource whose compartment should be used * * @return the value */ diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ChangeQueueCompartmentRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ChangeQueueCompartmentRequest.java index 5ac971764f9..e39fc9d7edd 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ChangeQueueCompartmentRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ChangeQueueCompartmentRequest.java @@ -16,10 +16,10 @@ public class ChangeQueueCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.queue.model.ChangeQueueCompartmentDetails> { - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getQueueId() { return queueId; } @@ -48,10 +48,16 @@ public String getQueueId() { public String getIfMatch() { return ifMatch; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } @@ -74,11 +80,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param queueId the value to set * @return this builder instance @@ -127,11 +133,15 @@ public Builder ifMatch(String ifMatch) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/CreateQueueRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/CreateQueueRequest.java index 211251004cc..d93be9600e5 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/CreateQueueRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/CreateQueueRequest.java @@ -40,10 +40,16 @@ public com.oracle.bmc.queue.model.CreateQueueDetails getCreateQueueDetails() { public String getOpcRetryToken() { return opcRetryToken; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } @@ -104,11 +110,15 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/DeleteMessageRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/DeleteMessageRequest.java index 7d795bb8d34..65df1811a04 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/DeleteMessageRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/DeleteMessageRequest.java @@ -13,10 +13,10 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") public class DeleteMessageRequest extends com.oracle.bmc.requests.BmcRequest { - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getQueueId() { return queueId; } @@ -27,10 +27,16 @@ public String getQueueId() { public String getMessageReceipt() { return messageReceipt; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } @@ -41,11 +47,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param queueId the value to set * @return this builder instance @@ -69,11 +75,15 @@ public Builder messageReceipt(String messageReceipt) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/DeleteMessagesRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/DeleteMessagesRequest.java index 294e484bdc3..09a06842577 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/DeleteMessagesRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/DeleteMessagesRequest.java @@ -15,10 +15,10 @@ public class DeleteMessagesRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.queue.model.DeleteMessagesDetails> { - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getQueueId() { return queueId; } @@ -29,10 +29,16 @@ public String getQueueId() { public com.oracle.bmc.queue.model.DeleteMessagesDetails getDeleteMessagesDetails() { return deleteMessagesDetails; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } @@ -54,11 +60,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param queueId the value to set * @return this builder instance @@ -83,11 +89,15 @@ public Builder deleteMessagesDetails( return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/DeleteQueueRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/DeleteQueueRequest.java index 1161b0025cb..eeead1c783d 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/DeleteQueueRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/DeleteQueueRequest.java @@ -13,10 +13,10 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") public class DeleteQueueRequest extends com.oracle.bmc.requests.BmcRequest { - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getQueueId() { return queueId; } @@ -37,10 +37,16 @@ public String getQueueId() { public String getIfMatch() { return ifMatch; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } @@ -51,11 +57,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param queueId the value to set * @return this builder instance @@ -87,11 +93,15 @@ public Builder ifMatch(String ifMatch) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetMessagesRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetMessagesRequest.java index fa2bfd4eafb..07d8ccfa6b0 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetMessagesRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetMessagesRequest.java @@ -13,83 +13,92 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") public class GetMessagesRequest extends com.oracle.bmc.requests.BmcRequest { - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getQueueId() { return queueId; } /** - * If the visibilityInSeconds parameter is set, messages will be hidden for visibilityInSeconds - * seconds and won't be consumable by other consumers during that time. If it isn't set it - * defaults to the value set at the queue level. The minimum is 0 and the maximum is 43,200 (12 - * hours). Using a visibilityInSeconds of 0, effectively acts as a peek functionality. Messages - * retrieved that way, aren't meant to be deleted because they will most likely be delivered to - * another consumer as their visibility won't change, but will still increase the delivery count - * by one. + * If the {@code visibilityInSeconds} parameter is set, messages will be hidden for {@code + * visibilityInSeconds} seconds and won't be consumable by other consumers during that time. If + * it isn't set it defaults to the value set at the queue level. + * + *

Using a {@code visibilityInSeconds} value of 0 effectively acts as a peek functionality. + * Messages retrieved that way aren't meant to be deleted because they will most likely be + * delivered to another consumer as their visibility won't change, but will still increase the + * delivery count by one. */ private Integer visibilityInSeconds; /** - * If the visibilityInSeconds parameter is set, messages will be hidden for visibilityInSeconds - * seconds and won't be consumable by other consumers during that time. If it isn't set it - * defaults to the value set at the queue level. The minimum is 0 and the maximum is 43,200 (12 - * hours). Using a visibilityInSeconds of 0, effectively acts as a peek functionality. Messages - * retrieved that way, aren't meant to be deleted because they will most likely be delivered to - * another consumer as their visibility won't change, but will still increase the delivery count - * by one. + * If the {@code visibilityInSeconds} parameter is set, messages will be hidden for {@code + * visibilityInSeconds} seconds and won't be consumable by other consumers during that time. If + * it isn't set it defaults to the value set at the queue level. + * + *

Using a {@code visibilityInSeconds} value of 0 effectively acts as a peek functionality. + * Messages retrieved that way aren't meant to be deleted because they will most likely be + * delivered to another consumer as their visibility won't change, but will still increase the + * delivery count by one. */ public Integer getVisibilityInSeconds() { return visibilityInSeconds; } /** - * If the timeoutInSeconds parameter isn't set or set to a value greater than zero, the request - * is using the long-polling mode and will only return when a message is available for - * consumption (it does not wait for limit messages but still only returns at-most limit - * messages) or after timeoutInSeconds seconds (in which case it will return an empty response) - * whichever comes first. If the parameter is set to zero, the request is using the - * short-polling mode and immediately returns whether messages have been retrieved or not. In - * same rare-cases a long-polling request could be interrupted (returned with empty response) - * before the end of the timeout. The minimum is 0 (long polling disabled), the maximum is 30 - * seconds and default is 30 seconds. + * If the {@code timeoutInSeconds parameter} isn't set or it is set to a value greater than 0, + * the request is using the long-polling mode and will only return when a message is available + * for consumption (it does not wait for limit messages but still only returns at-most limit + * messages) or after {@code timeoutInSeconds} seconds (in which case it will return an empty + * response), whichever comes first. + * + *

If the parameter is set to 0, the request is using the short-polling mode and immediately + * returns whether messages have been retrieved or not. In same rare-cases a long-polling + * request could be interrupted (returned with empty response) before the end of the timeout. */ private Integer timeoutInSeconds; /** - * If the timeoutInSeconds parameter isn't set or set to a value greater than zero, the request - * is using the long-polling mode and will only return when a message is available for - * consumption (it does not wait for limit messages but still only returns at-most limit - * messages) or after timeoutInSeconds seconds (in which case it will return an empty response) - * whichever comes first. If the parameter is set to zero, the request is using the - * short-polling mode and immediately returns whether messages have been retrieved or not. In - * same rare-cases a long-polling request could be interrupted (returned with empty response) - * before the end of the timeout. The minimum is 0 (long polling disabled), the maximum is 30 - * seconds and default is 30 seconds. + * If the {@code timeoutInSeconds parameter} isn't set or it is set to a value greater than 0, + * the request is using the long-polling mode and will only return when a message is available + * for consumption (it does not wait for limit messages but still only returns at-most limit + * messages) or after {@code timeoutInSeconds} seconds (in which case it will return an empty + * response), whichever comes first. + * + *

If the parameter is set to 0, the request is using the short-polling mode and immediately + * returns whether messages have been retrieved or not. In same rare-cases a long-polling + * request could be interrupted (returned with empty response) before the end of the timeout. */ public Integer getTimeoutInSeconds() { return timeoutInSeconds; } - /** - * The limit parameter controls how many messages is returned at-most. The default is 1, the - * minimum is 1 and the maximum is 32. - */ + /** The limit parameter controls how many messages is returned at-most. */ private Integer limit; - /** - * The limit parameter controls how many messages is returned at-most. The default is 1, the - * minimum is 1 and the maximum is 32. - */ + /** The limit parameter controls how many messages is returned at-most. */ public Integer getLimit() { return limit; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } + /** Optional parameter to filter the channels. */ + private String channelFilter; + + /** Optional parameter to filter the channels. */ + public String getChannelFilter() { + return channelFilter; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -97,11 +106,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param queueId the value to set * @return this builder instance @@ -112,24 +121,26 @@ public Builder queueId(String queueId) { } /** - * If the visibilityInSeconds parameter is set, messages will be hidden for - * visibilityInSeconds seconds and won't be consumable by other consumers during that time. - * If it isn't set it defaults to the value set at the queue level. The minimum is 0 and the - * maximum is 43,200 (12 hours). Using a visibilityInSeconds of 0, effectively acts as a - * peek functionality. Messages retrieved that way, aren't meant to be deleted because they - * will most likely be delivered to another consumer as their visibility won't change, but - * will still increase the delivery count by one. + * If the {@code visibilityInSeconds} parameter is set, messages will be hidden for {@code + * visibilityInSeconds} seconds and won't be consumable by other consumers during that time. + * If it isn't set it defaults to the value set at the queue level. + * + *

Using a {@code visibilityInSeconds} value of 0 effectively acts as a peek + * functionality. Messages retrieved that way aren't meant to be deleted because they will + * most likely be delivered to another consumer as their visibility won't change, but will + * still increase the delivery count by one. */ private Integer visibilityInSeconds = null; /** - * If the visibilityInSeconds parameter is set, messages will be hidden for - * visibilityInSeconds seconds and won't be consumable by other consumers during that time. - * If it isn't set it defaults to the value set at the queue level. The minimum is 0 and the - * maximum is 43,200 (12 hours). Using a visibilityInSeconds of 0, effectively acts as a - * peek functionality. Messages retrieved that way, aren't meant to be deleted because they - * will most likely be delivered to another consumer as their visibility won't change, but - * will still increase the delivery count by one. + * If the {@code visibilityInSeconds} parameter is set, messages will be hidden for {@code + * visibilityInSeconds} seconds and won't be consumable by other consumers during that time. + * If it isn't set it defaults to the value set at the queue level. + * + *

Using a {@code visibilityInSeconds} value of 0 effectively acts as a peek + * functionality. Messages retrieved that way aren't meant to be deleted because they will + * most likely be delivered to another consumer as their visibility won't change, but will + * still increase the delivery count by one. * * @param visibilityInSeconds the value to set * @return this builder instance @@ -140,28 +151,30 @@ public Builder visibilityInSeconds(Integer visibilityInSeconds) { } /** - * If the timeoutInSeconds parameter isn't set or set to a value greater than zero, the - * request is using the long-polling mode and will only return when a message is available - * for consumption (it does not wait for limit messages but still only returns at-most limit - * messages) or after timeoutInSeconds seconds (in which case it will return an empty - * response) whichever comes first. If the parameter is set to zero, the request is using - * the short-polling mode and immediately returns whether messages have been retrieved or - * not. In same rare-cases a long-polling request could be interrupted (returned with empty - * response) before the end of the timeout. The minimum is 0 (long polling disabled), the - * maximum is 30 seconds and default is 30 seconds. + * If the {@code timeoutInSeconds parameter} isn't set or it is set to a value greater than + * 0, the request is using the long-polling mode and will only return when a message is + * available for consumption (it does not wait for limit messages but still only returns + * at-most limit messages) or after {@code timeoutInSeconds} seconds (in which case it will + * return an empty response), whichever comes first. + * + *

If the parameter is set to 0, the request is using the short-polling mode and + * immediately returns whether messages have been retrieved or not. In same rare-cases a + * long-polling request could be interrupted (returned with empty response) before the end + * of the timeout. */ private Integer timeoutInSeconds = null; /** - * If the timeoutInSeconds parameter isn't set or set to a value greater than zero, the - * request is using the long-polling mode and will only return when a message is available - * for consumption (it does not wait for limit messages but still only returns at-most limit - * messages) or after timeoutInSeconds seconds (in which case it will return an empty - * response) whichever comes first. If the parameter is set to zero, the request is using - * the short-polling mode and immediately returns whether messages have been retrieved or - * not. In same rare-cases a long-polling request could be interrupted (returned with empty - * response) before the end of the timeout. The minimum is 0 (long polling disabled), the - * maximum is 30 seconds and default is 30 seconds. + * If the {@code timeoutInSeconds parameter} isn't set or it is set to a value greater than + * 0, the request is using the long-polling mode and will only return when a message is + * available for consumption (it does not wait for limit messages but still only returns + * at-most limit messages) or after {@code timeoutInSeconds} seconds (in which case it will + * return an empty response), whichever comes first. + * + *

If the parameter is set to 0, the request is using the short-polling mode and + * immediately returns whether messages have been retrieved or not. In same rare-cases a + * long-polling request could be interrupted (returned with empty response) before the end + * of the timeout. * * @param timeoutInSeconds the value to set * @return this builder instance @@ -171,15 +184,11 @@ public Builder timeoutInSeconds(Integer timeoutInSeconds) { return this; } - /** - * The limit parameter controls how many messages is returned at-most. The default is 1, the - * minimum is 1 and the maximum is 32. - */ + /** The limit parameter controls how many messages is returned at-most. */ private Integer limit = null; /** - * The limit parameter controls how many messages is returned at-most. The default is 1, the - * minimum is 1 and the maximum is 32. + * The limit parameter controls how many messages is returned at-most. * * @param limit the value to set * @return this builder instance @@ -189,11 +198,15 @@ public Builder limit(Integer limit) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance @@ -203,6 +216,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Optional parameter to filter the channels. */ + private String channelFilter = null; + + /** + * Optional parameter to filter the channels. + * + * @param channelFilter the value to set + * @return this builder instance + */ + public Builder channelFilter(String channelFilter) { + this.channelFilter = channelFilter; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -238,6 +265,7 @@ public Builder copy(GetMessagesRequest o) { timeoutInSeconds(o.getTimeoutInSeconds()); limit(o.getLimit()); opcRequestId(o.getOpcRequestId()); + channelFilter(o.getChannelFilter()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -277,9 +305,10 @@ public GetMessagesRequest buildWithoutInvocationCallback() { request.timeoutInSeconds = timeoutInSeconds; request.limit = limit; request.opcRequestId = opcRequestId; + request.channelFilter = channelFilter; return request; // new GetMessagesRequest(queueId, visibilityInSeconds, timeoutInSeconds, limit, - // opcRequestId); + // opcRequestId, channelFilter); } } @@ -294,7 +323,8 @@ public Builder toBuilder() { .visibilityInSeconds(visibilityInSeconds) .timeoutInSeconds(timeoutInSeconds) .limit(limit) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .channelFilter(channelFilter); } /** @@ -316,6 +346,7 @@ public String toString() { sb.append(",timeoutInSeconds=").append(String.valueOf(this.timeoutInSeconds)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",channelFilter=").append(String.valueOf(this.channelFilter)); sb.append(")"); return sb.toString(); } @@ -335,7 +366,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.visibilityInSeconds, other.visibilityInSeconds) && java.util.Objects.equals(this.timeoutInSeconds, other.timeoutInSeconds) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.channelFilter, other.channelFilter); } @Override @@ -353,6 +385,9 @@ public int hashCode() { + (this.timeoutInSeconds == null ? 43 : this.timeoutInSeconds.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.channelFilter == null ? 43 : this.channelFilter.hashCode()); return result; } } diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetQueueRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetQueueRequest.java index 3852cf80665..4ec1f351be4 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetQueueRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetQueueRequest.java @@ -13,17 +13,23 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") public class GetQueueRequest extends com.oracle.bmc.requests.BmcRequest { - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getQueueId() { return queueId; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } @@ -33,11 +39,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param queueId the value to set * @return this builder instance @@ -47,11 +53,15 @@ public Builder queueId(String queueId) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetStatsRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetStatsRequest.java index cfe8e501229..068f8cf2da5 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetStatsRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetStatsRequest.java @@ -13,31 +13,44 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") public class GetStatsRequest extends com.oracle.bmc.requests.BmcRequest { - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getQueueId() { return queueId; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } + /** Id to specify channel. */ + private String channelId; + + /** Id to specify channel. */ + public String getChannelId() { + return channelId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder { private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param queueId the value to set * @return this builder instance @@ -47,11 +60,15 @@ public Builder queueId(String queueId) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance @@ -61,6 +78,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Id to specify channel. */ + private String channelId = null; + + /** + * Id to specify channel. + * + * @param channelId the value to set + * @return this builder instance + */ + public Builder channelId(String channelId) { + this.channelId = channelId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -93,6 +124,7 @@ public Builder retryConfiguration( public Builder copy(GetStatsRequest o) { queueId(o.getQueueId()); opcRequestId(o.getOpcRequestId()); + channelId(o.getChannelId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -129,8 +161,9 @@ public GetStatsRequest buildWithoutInvocationCallback() { GetStatsRequest request = new GetStatsRequest(); request.queueId = queueId; request.opcRequestId = opcRequestId; + request.channelId = channelId; return request; - // new GetStatsRequest(queueId, opcRequestId); + // new GetStatsRequest(queueId, opcRequestId, channelId); } } @@ -140,7 +173,7 @@ public GetStatsRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().queueId(queueId).opcRequestId(opcRequestId); + return new Builder().queueId(queueId).opcRequestId(opcRequestId).channelId(channelId); } /** @@ -159,6 +192,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",queueId=").append(String.valueOf(this.queueId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",channelId=").append(String.valueOf(this.channelId)); sb.append(")"); return sb.toString(); } @@ -175,7 +209,8 @@ public boolean equals(Object o) { GetStatsRequest other = (GetStatsRequest) o; return super.equals(o) && java.util.Objects.equals(this.queueId, other.queueId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.channelId, other.channelId); } @Override @@ -184,6 +219,7 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.queueId == null ? 43 : this.queueId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.channelId == null ? 43 : this.channelId.hashCode()); return result; } } diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetWorkRequestRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetWorkRequestRequest.java index b0e5acd982c..ce23470641b 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetWorkRequestRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/GetWorkRequestRequest.java @@ -20,10 +20,16 @@ public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequestExample: Click here to see how to use ListChannelsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class ListChannelsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The unique queue identifier. */ + private String queueId; + + /** The unique queue identifier. */ + public String getQueueId() { + return queueId; + } + /** + * 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; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** Optional parameter to filter the channels. */ + private String channelFilter; + + /** Optional parameter to filter the channels. */ + public String getChannelFilter() { + return channelFilter; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListChannelsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The unique queue identifier. */ + private String queueId = null; + + /** + * The unique queue identifier. + * + * @param queueId the value to set + * @return this builder instance + */ + public Builder queueId(String queueId) { + this.queueId = queueId; + return this; + } + + /** + * 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 = null; + + /** + * 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 instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Optional parameter to filter the channels. */ + private String channelFilter = null; + + /** + * Optional parameter to filter the channels. + * + * @param channelFilter the value to set + * @return this builder instance + */ + public Builder channelFilter(String channelFilter) { + this.channelFilter = channelFilter; + 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.http.client.RequestInterceptor 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(ListChannelsRequest o) { + queueId(o.getQueueId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + channelFilter(o.getChannelFilter()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListChannelsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListChannelsRequest + */ + public ListChannelsRequest build() { + ListChannelsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListChannelsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListChannelsRequest + */ + public ListChannelsRequest buildWithoutInvocationCallback() { + ListChannelsRequest request = new ListChannelsRequest(); + request.queueId = queueId; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + request.channelFilter = channelFilter; + return request; + // new ListChannelsRequest(queueId, opcRequestId, limit, page, channelFilter); + } + } + + /** + * 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() + .queueId(queueId) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page) + .channelFilter(channelFilter); + } + + /** + * 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(",queueId=").append(String.valueOf(this.queueId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",channelFilter=").append(String.valueOf(this.channelFilter)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListChannelsRequest)) { + return false; + } + + ListChannelsRequest other = (ListChannelsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.queueId, other.queueId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.channelFilter, other.channelFilter); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.queueId == null ? 43 : this.queueId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = + (result * PRIME) + + (this.channelFilter == null ? 43 : this.channelFilter.hashCode()); + return result; + } +} diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListQueuesRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListQueuesRequest.java index 20b5c7513b1..21aa08c2d44 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListQueuesRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListQueuesRequest.java @@ -13,10 +13,16 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") public class ListQueuesRequest extends com.oracle.bmc.requests.BmcRequest { - /** The ID of the compartment in which to list resources. */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which to list resources. + */ private String compartmentId; - /** The ID of the compartment in which to list resources. */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which to list resources. + */ public String getCompartmentId() { return compartmentId; } @@ -34,29 +40,39 @@ public com.oracle.bmc.queue.model.Queue.LifecycleState getLifecycleState() { public String getDisplayName() { return displayName; } - /** unique Queue identifier */ + /** The unique queue identifier. */ private String id; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getId() { return id; } - /** The maximum number of items to return. */ + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ private Integer limit; - /** The maximum number of items to return. */ + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ public Integer getLimit() { return limit; } /** - * The page token representing the page at which to start retrieving results. This is usually - * retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). */ private String page; /** - * The page token representing the page at which to start retrieving results. This is usually - * retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). */ public String getPage() { return page; @@ -121,10 +137,16 @@ public static SortBy create(String key) { public SortBy getSortBy() { return sortBy; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } @@ -135,11 +157,15 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The ID of the compartment in which to list resources. */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment in which to list resources. + */ private String compartmentId = null; /** - * The ID of the compartment in which to list resources. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment in which to list resources. * * @param compartmentId the value to set * @return this builder instance @@ -180,11 +206,11 @@ public Builder displayName(String displayName) { return this; } - /** unique Queue identifier */ + /** The unique queue identifier. */ private String id = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param id the value to set * @return this builder instance @@ -194,11 +220,17 @@ public Builder id(String id) { return this; } - /** The maximum number of items to return. */ + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ private Integer limit = null; /** - * The maximum number of items to return. + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * * @param limit the value to set * @return this builder instance @@ -209,14 +241,16 @@ public Builder limit(Integer limit) { } /** - * The page token representing the page at which to start retrieving results. This is - * usually retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). */ private String page = null; /** - * The page token representing the page at which to start retrieving results. This is - * usually retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * * @param page the value to set * @return this builder instance @@ -260,11 +294,15 @@ public Builder sortBy(SortBy sortBy) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListWorkRequestErrorsRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListWorkRequestErrorsRequest.java index 74df6876437..ad25621edf7 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListWorkRequestErrorsRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListWorkRequestErrorsRequest.java @@ -22,30 +22,46 @@ public class ListWorkRequestErrorsRequest public String getWorkRequestId() { return workRequestId; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } /** - * The page token representing the page at which to start retrieving results. This is usually - * retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). */ private String page; /** - * The page token representing the page at which to start retrieving results. This is usually - * retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). */ public String getPage() { return page; } - /** The maximum number of items to return. */ + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ private Integer limit; - /** The maximum number of items to return. */ + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ public Integer getLimit() { return limit; } @@ -70,11 +86,15 @@ public Builder workRequestId(String workRequestId) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance @@ -85,14 +105,16 @@ public Builder opcRequestId(String opcRequestId) { } /** - * The page token representing the page at which to start retrieving results. This is - * usually retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). */ private String page = null; /** - * The page token representing the page at which to start retrieving results. This is - * usually retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * * @param page the value to set * @return this builder instance @@ -102,11 +124,17 @@ public Builder page(String page) { return this; } - /** The maximum number of items to return. */ + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ private Integer limit = null; /** - * The maximum number of items to return. + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * * @param limit the value to set * @return this builder instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListWorkRequestLogsRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListWorkRequestLogsRequest.java index 06c5e8ad04d..56e7c4d5ba2 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListWorkRequestLogsRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListWorkRequestLogsRequest.java @@ -20,30 +20,46 @@ public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcReque public String getWorkRequestId() { return workRequestId; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } /** - * The page token representing the page at which to start retrieving results. This is usually - * retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). */ private String page; /** - * The page token representing the page at which to start retrieving results. This is usually - * retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). */ public String getPage() { return page; } - /** The maximum number of items to return. */ + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ private Integer limit; - /** The maximum number of items to return. */ + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ public Integer getLimit() { return limit; } @@ -68,11 +84,15 @@ public Builder workRequestId(String workRequestId) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance @@ -83,14 +103,16 @@ public Builder opcRequestId(String opcRequestId) { } /** - * The page token representing the page at which to start retrieving results. This is - * usually retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). */ private String page = null; /** - * The page token representing the page at which to start retrieving results. This is - * usually retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * * @param page the value to set * @return this builder instance @@ -100,11 +122,17 @@ public Builder page(String page) { return this; } - /** The maximum number of items to return. */ + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ private Integer limit = null; /** - * The maximum number of items to return. + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * * @param limit the value to set * @return this builder instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListWorkRequestsRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListWorkRequestsRequest.java index 3ef1341d2bc..9deb94748ac 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListWorkRequestsRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/ListWorkRequestsRequest.java @@ -13,10 +13,16 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { - /** The ID of the compartment in which to list resources. */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which to list resources. + */ private String compartmentId; - /** The ID of the compartment in which to list resources. */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which to list resources. + */ public String getCompartmentId() { return compartmentId; } @@ -27,30 +33,46 @@ public String getCompartmentId() { public String getWorkRequestId() { return workRequestId; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } /** - * The page token representing the page at which to start retrieving results. This is usually - * retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). */ private String page; /** - * The page token representing the page at which to start retrieving results. This is usually - * retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). */ public String getPage() { return page; } - /** The maximum number of items to return. */ + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ private Integer limit; - /** The maximum number of items to return. */ + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ public Integer getLimit() { return limit; } @@ -61,11 +83,15 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The ID of the compartment in which to list resources. */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment in which to list resources. + */ private String compartmentId = null; /** - * The ID of the compartment in which to list resources. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment in which to list resources. * * @param compartmentId the value to set * @return this builder instance @@ -89,11 +115,15 @@ public Builder workRequestId(String workRequestId) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance @@ -104,14 +134,16 @@ public Builder opcRequestId(String opcRequestId) { } /** - * The page token representing the page at which to start retrieving results. This is - * usually retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). */ private String page = null; /** - * The page token representing the page at which to start retrieving results. This is - * usually retrieved from a previous list call. + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * * @param page the value to set * @return this builder instance @@ -121,11 +153,17 @@ public Builder page(String page) { return this; } - /** The maximum number of items to return. */ + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ private Integer limit = null; /** - * The maximum number of items to return. + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * * @param limit the value to set * @return this builder instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/PurgeQueueRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/PurgeQueueRequest.java index 1b3aee1a303..101b6e4b8b2 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/PurgeQueueRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/PurgeQueueRequest.java @@ -14,10 +14,10 @@ public class PurgeQueueRequest extends com.oracle.bmc.requests.BmcRequest { - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getQueueId() { return queueId; } @@ -45,10 +45,16 @@ public com.oracle.bmc.queue.model.PurgeQueueDetails getPurgeQueueDetails() { public String getIfMatch() { return ifMatch; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } @@ -70,11 +76,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param queueId the value to set * @return this builder instance @@ -121,11 +127,15 @@ public Builder ifMatch(String ifMatch) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/PutMessagesRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/PutMessagesRequest.java index 3d323922bf4..38652bb0513 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/PutMessagesRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/PutMessagesRequest.java @@ -14,10 +14,10 @@ public class PutMessagesRequest extends com.oracle.bmc.requests.BmcRequest { - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getQueueId() { return queueId; } @@ -28,10 +28,16 @@ public String getQueueId() { public com.oracle.bmc.queue.model.PutMessagesDetails getPutMessagesDetails() { return putMessagesDetails; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } @@ -53,11 +59,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param queueId the value to set * @return this builder instance @@ -82,11 +88,15 @@ public Builder putMessagesDetails( return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/UpdateMessageRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/UpdateMessageRequest.java index 2077ea147cd..287d47bcfc8 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/UpdateMessageRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/UpdateMessageRequest.java @@ -15,10 +15,10 @@ public class UpdateMessageRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.queue.model.UpdateMessageDetails> { - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getQueueId() { return queueId; } @@ -36,10 +36,16 @@ public String getMessageReceipt() { public com.oracle.bmc.queue.model.UpdateMessageDetails getUpdateMessageDetails() { return updateMessageDetails; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } @@ -61,11 +67,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param queueId the value to set * @return this builder instance @@ -104,11 +110,15 @@ public Builder updateMessageDetails( return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/UpdateMessagesRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/UpdateMessagesRequest.java index 22a4802f42e..1cf750d3a30 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/UpdateMessagesRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/UpdateMessagesRequest.java @@ -15,10 +15,10 @@ public class UpdateMessagesRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.queue.model.UpdateMessagesDetails> { - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getQueueId() { return queueId; } @@ -29,10 +29,16 @@ public String getQueueId() { public com.oracle.bmc.queue.model.UpdateMessagesDetails getUpdateMessagesDetails() { return updateMessagesDetails; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } @@ -54,11 +60,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param queueId the value to set * @return this builder instance @@ -83,11 +89,15 @@ public Builder updateMessagesDetails( return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/UpdateQueueRequest.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/UpdateQueueRequest.java index ff2ac81ecbf..fb172b66aa3 100644 --- a/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/UpdateQueueRequest.java +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/requests/UpdateQueueRequest.java @@ -14,10 +14,10 @@ public class UpdateQueueRequest extends com.oracle.bmc.requests.BmcRequest { - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId; - /** unique Queue identifier */ + /** The unique queue identifier. */ public String getQueueId() { return queueId; } @@ -45,10 +45,16 @@ public com.oracle.bmc.queue.model.UpdateQueueDetails getUpdateQueueDetails() { public String getIfMatch() { return ifMatch; } - /** The client request ID for tracing. */ + /** + * 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; - /** The client request ID for tracing. */ + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ public String getOpcRequestId() { return opcRequestId; } @@ -70,11 +76,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** unique Queue identifier */ + /** The unique queue identifier. */ private String queueId = null; /** - * unique Queue identifier + * The unique queue identifier. * * @param queueId the value to set * @return this builder instance @@ -121,11 +127,15 @@ public Builder ifMatch(String ifMatch) { return this; } - /** The client request ID for tracing. */ + /** + * 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 = null; /** - * The client request ID for tracing. + * 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 instance diff --git a/bmc-queue/src/main/java/com/oracle/bmc/queue/responses/ListChannelsResponse.java b/bmc-queue/src/main/java/com/oracle/bmc/queue/responses/ListChannelsResponse.java new file mode 100644 index 00000000000..81b193a17ea --- /dev/null +++ b/bmc-queue/src/main/java/com/oracle/bmc/queue/responses/ListChannelsResponse.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.queue.responses; + +import com.oracle.bmc.queue.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class ListChannelsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + + /** + * 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; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code ChannelCollection} instance. */ + private com.oracle.bmc.queue.model.ChannelCollection channelCollection; + + /** + * The returned {@code ChannelCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.queue.model.ChannelCollection getChannelCollection() { + return channelCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "channelCollection" + }) + private ListChannelsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.queue.model.ChannelCollection channelCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.channelCollection = channelCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * 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; + + /** + * 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; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code ChannelCollection} instance. */ + private com.oracle.bmc.queue.model.ChannelCollection channelCollection; + + /** + * The returned {@code ChannelCollection} instance. + * + * @param channelCollection the value to set + * @return this builder + */ + public Builder channelCollection( + com.oracle.bmc.queue.model.ChannelCollection channelCollection) { + this.channelCollection = channelCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListChannelsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + channelCollection(o.getChannelCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListChannelsResponse build() { + return new ListChannelsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, channelCollection); + } + } + + /** + * 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(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",channelCollection=").append(String.valueOf(channelCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListChannelsResponse)) { + return false; + } + + ListChannelsResponse other = (ListChannelsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.channelCollection, other.channelCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.channelCollection == null ? 43 : this.channelCollection.hashCode()); + return result; + } +} diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 9c6bd2b166a..55504226259 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 49fe1bf8192..58902699280 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 636af750a54..d646017671d 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 0d91e88aac8..b98403f0455 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index cd078631c0f..8994621fd88 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 12fcabba623..1437ebcbd86 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 387892a8b57..708a6439595 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 9d2da94ea1f..3de79782c1c 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-servicemesh/pom.xml b/bmc-servicemesh/pom.xml index 36330a15a2f..1b723d6b7e3 100644 --- a/bmc-servicemesh/pom.xml +++ b/bmc-servicemesh/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-servicemesh @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml index ae8cbc41b4f..3c42159586a 100644 --- a/bmc-shaded/bmc-shaded-full/pom.xml +++ b/bmc-shaded/bmc-shaded-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-shaded - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 835f822677f..72868469d5b 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 0b1635c28de..5c14a2ec8c3 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 6df1d4a9a27..78b9214e942 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index b8adba879a2..ca5de8194d5 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index c39334bd111..ee24a79c579 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 451d097e655..596fad1d53d 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 0d120e40407..01868eac32b 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index b1a3a302fed..14dfa0e55d0 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-vault @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index bb66d9f9440..d2c2a781dfe 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index d7cdc449073..9bef4b7131c 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 42678d76d70..669938d6002 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 0813e5016b0..b5b7dba8f16 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 73b6b0a39cf..030d75aef6f 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 57506bd0d81..66cb5e3af4e 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 3a3e41d0aae..8080d285659 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 95e73983443..e95074ef160 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.24.0 + 3.25.0 diff --git a/pom.xml b/pom.xml index 0491d254911..8a3af564c6c 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.24.0 + 3.25.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure