diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e7730a6e7e..e13b752a564 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 1.30.0 - 2021-01-19 +### Added +- Support for Logging Analytics as a target in the Service Connector Hub service +- Support for lookups, agent collection warnings, task commands, and data archive/recall in the Logging Analytics service + +### Fixed +- Fixed a bug in the endpoint used for the Management Dashboard service + +### Breaking Changes +- Parameter `sortBy` in requests `ListMetaSourceTypesRequest`, `ListParserFunctionsRequest`, `ListParserMetaPluginsRequest`, `ListSourceLabelOperatorsRequest`, `ListSourceMetaFunctionsRequest` has changed its datatype from `String` to `SortBy` enum in the Logging Analytics service +- Parameter `lifecycleState` in `LogAnalyticsObjectCollectionRule` has changed its datatype from `LogAnalyticsObjectCollectionRule.LifecycleState` to `ObjectCollectionRuleLifecycleStates` in the Logging Analytics Service +- Methods `builder()`, `toBuilder()`, and `get__explicitlySet__()` has been removed from `UpdateScheduledTaskDetails` in the Logging Analytics Service +- Methods `builder()`, `toBuilder()`, and `get__explicitlySet__()` has been removed from `ScheduledTask` in the Logging Analytics Service + ## 1.29.0 - 2021-01-12 ### Added - Support for auto-scaling in the Big Data service diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index b28f9ce84c2..d5e0dda39a2 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 1.29.0 + 1.30.0 ../pom.xml @@ -42,7 +42,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 com.oracle.oci.sdk oci-java-sdk-audit - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-core - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-database - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-dns - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-email - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-identity - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 1.29.0 + 1.30.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 1.29.0 + 1.30.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-waas - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-ons - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-budget - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-limits - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-functions - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-events - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-dts - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-oce - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-oda - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-integration - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-applicationmigration - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-vault - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-bds - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-cims - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-logging - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-sch - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 1.29.0 + 1.30.0 false com.oracle.oci.sdk oci-java-sdk-rover - 1.29.0 + 1.30.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index c6603ec9644..16f2445500b 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index cc211b2ea70..6496f9b65b9 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 6c35f43ebab..3f5b85adf59 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index e8db04a67b2..bfae0ff3889 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 84bcc21109b..de293ca0b96 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml @@ -94,7 +94,7 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 1.29.0 + 1.30.0 diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 127c106af95..46b57f0f02f 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 52b2e9e2a74..427d5bdf945 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 241ece26d75..023a9b65c89 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 1.29.0 + 1.30.0 diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index a9f7a600b6d..ddb6b40aca7 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 1.29.0 + 1.30.0 diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 6921a6934ac..0664e903f7e 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 56ed7c6a3e0..7567e63f703 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 4c28ac22013..465ee6a4f9c 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 5f300e4319b..db4cf25d4f2 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 3ec8e5ef6a3..846b687c362 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 69f27d64743..c85d0403881 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index a35ec9b425b..bdee13fea21 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index a8b793ebd05..43b01919c62 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 066ae95b33a..45720ea53fe 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml @@ -25,17 +25,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 1.29.0 + 1.30.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 1.29.0 + 1.30.0 com.fasterxml.jackson.datatype diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 98122297ed1..0ba0bc26be7 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 26fc1b4c360..5c8010b950e 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml @@ -31,7 +31,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 1.29.0 + 1.30.0 pom import diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 408d7702acc..4aa92631cbf 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 866fbca66f8..3d9ca6d94da 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 1.29.0 + 1.30.0 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 260b65add39..e52bafa86ed 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index aab1c2b09b6..5cb6a386771 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-healthchecks @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index c5fa4a0b1ec..38ff1af777c 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 8dd32a7997d..18cb587491f 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index ea979fe51b2..8b01fd958be 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-keymanagement @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 832774058d5..d22e670a2b9 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 5850c08ed6b..b3eee0f42c3 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index cedcff26810..36e9ca900cf 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalytics.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalytics.java index a905fc38646..9a7659c7e02 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalytics.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalytics.java @@ -47,7 +47,7 @@ public interface LogAnalytics extends AutoCloseable { void setRegion(String regionId); /** - * Adds association between input source log analytics entity and destination entities. + * Adds association between input source log analytics entity and one or more existing destination entities. * @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. @@ -56,6 +56,45 @@ public interface LogAnalytics extends AutoCloseable { */ AddEntityAssociationResponse addEntityAssociation(AddEntityAssociationRequest request); + /** + * Append data to a lookup. The file containing the information to append + * must be provided. + * + * + * Note: This operation consumes a stream. + * + * If the stream supports {@link java.io.InputStream#mark(int)} and {@link java.io.InputStream#reset()}, when a retry is + * necessary, the stream is reset so it starts at the beginning (or whatever the stream's position was at the time this + * operation is called}. + * + * Note this means that if the caller has used {@link java.io.InputStream#mark(int)} before, then the mark + * will not be the same anymore after this operation, and a subsequent call to {@link java.io.InputStream#reset()} by + * the caller will reset the stream not to the caller's mark, but to the position the stream was in when this operation + * was called. + * + * If the stream is a {@link java.io.FileInputStream}, and the stream's {@link java.nio.channels.FileChannel} position + * can be changed (like for a regular file), the stream will be wrapped in such a way that it does provide + * support for {@link java.io.InputStream#mark(int)} and {@link java.io.InputStream#reset()}. Then the same procedure as + * above is followed. If the stream's {@link java.nio.channels.FileChannel} position cannot be changed (like for a + * named pipe), then the stream's contents will be buffered in memory, as described below. + * + * If the stream does not support {@link java.io.InputStream#mark(int)} and {@link java.io.InputStream#reset()}, then + * the stream is wrapped in a {@link java.io.BufferedInputStream}, which means the entire contents may + * be buffered in memory. Then the same procedure as above is followed. + * + * The contents of the stream, except when the stream is a {@link java.io.FileInputStream} whose + * {@link java.nio.channels.FileChannel} position can be changed, should be less than 2 GiB in size if retries are used. + * This is because streams 2 GiB in size or larger do no guarantee that mark-and-reset can be performed. If the stream + * is larger, do not use built-in retries and manage retries yourself. + * + * @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. + * + * Example: Click here to see how to use AppendLookupData API. + */ + AppendLookupDataResponse appendLookupData(AppendLookupDataRequest request); + /** * get basic information about a specified set of labels * @param request The request object containing the details to send @@ -99,7 +138,7 @@ ChangeLogAnalyticsLogGroupCompartmentResponse changeLogAnalyticsLogGroupCompartm ChangeLogAnalyticsLogGroupCompartmentRequest request); /** - * Move the rule from it's current compartment to given compartment. + * Move the rule from it's current compartment to the given compartment. * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. @@ -168,7 +207,7 @@ CreateLogAnalyticsLogGroupResponse createLogAnalyticsLogGroup( CreateLogAnalyticsLogGroupRequest request); /** - * Create a configuration to collect logs from object storage bucket. + * Creates a rule to collect logs from an object storage bucket. * @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. @@ -230,7 +269,7 @@ DeleteLogAnalyticsEntityResponse deleteLogAnalyticsEntity( DeleteLogAnalyticsEntityRequest request); /** - * Delete the log analytics entity type with the given name. + * Delete log analytics entity type with the given name. * @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. @@ -252,8 +291,8 @@ DeleteLogAnalyticsLogGroupResponse deleteLogAnalyticsLogGroup( DeleteLogAnalyticsLogGroupRequest request); /** - * Deletes a configured object storage bucket based collection rule to stop the log collection of the configured bucket . - * It will not delete the already collected log data from the configured bucket. + * Deletes the configured object storage bucket based collection rule and stop the log collection. + * It will not delete the existing processed data associated with this bucket from logging analytics storage. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -264,6 +303,17 @@ DeleteLogAnalyticsLogGroupResponse deleteLogAnalyticsLogGroup( DeleteLogAnalyticsObjectCollectionRuleResponse deleteLogAnalyticsObjectCollectionRule( DeleteLogAnalyticsObjectCollectionRuleRequest request); + /** + * Delete the specified lookup. + * + * @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. + * + * Example: Click here to see how to use DeleteLookup API. + */ + DeleteLookupResponse deleteLookup(DeleteLookupRequest request); + /** * delete parser with specified name * @param request The request object containing the details to send @@ -307,8 +357,8 @@ DeleteLogAnalyticsObjectCollectionRuleResponse deleteLogAnalyticsObjectCollectio DeleteUploadResponse deleteUpload(DeleteUploadRequest request); /** - * Deletes a specific log file inside an upload by providing upload file reference. - * It deletes all the logs in storage asscoiated with the upload file and the corresponding upload metadata. + * Deletes a specific log file inside an upload by upload file reference. + * It deletes all the logs from storage associated with the file and the corresponding metadata. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -362,6 +412,28 @@ DeleteLogAnalyticsObjectCollectionRuleResponse deleteLogAnalyticsObjectCollectio */ EstimatePurgeDataSizeResponse estimatePurgeDataSize(EstimatePurgeDataSizeRequest request); + /** + * This API gives an active storage usage estimate for archived data to be recalled and the time range of such data. + * + * @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. + * + * Example: Click here to see how to use EstimateRecallDataSize API. + */ + EstimateRecallDataSizeResponse estimateRecallDataSize(EstimateRecallDataSizeRequest request); + + /** + * This API gives an active storage usage estimate for recalled data to be released and the time range of such data. + * + * @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. + * + * Example: Click here to see how to use EstimateReleaseDataSize API. + */ + EstimateReleaseDataSizeResponse estimateReleaseDataSize(EstimateReleaseDataSizeRequest request); + /** * export * @param request The request object containing the details to send @@ -485,7 +557,7 @@ ExtractStructuredLogHeaderPathsResponse extractStructuredLogHeaderPaths( GetLabelSummaryResponse getLabelSummary(GetLabelSummaryRequest request); /** - * Returns log analytics entities count summary. + * Returns log analytics entities count summary report. * @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. @@ -548,6 +620,17 @@ GetLogAnalyticsLogGroupsSummaryResponse getLogAnalyticsLogGroupsSummary( GetLogAnalyticsObjectCollectionRuleResponse getLogAnalyticsObjectCollectionRule( GetLogAnalyticsObjectCollectionRuleRequest request); + /** + * Obtains the lookup with the specified reference. + * + * @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. + * + * Example: Click here to see how to use GetLookup API. + */ + GetLookupResponse getLookup(GetLookupRequest request); + /** * This API gets the namespace details of a tenancy already onboarded in Logging Analytics Application * @@ -667,7 +750,7 @@ GetLogAnalyticsObjectCollectionRuleResponse getLogAnalyticsObjectCollectionRule( GetStorageWorkRequestResponse getStorageWorkRequest(GetStorageWorkRequestRequest request); /** - * Gets an On-Demand Upload info by reference + * Gets an On-Demand Upload info by reference. * @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. @@ -838,7 +921,7 @@ ListLogAnalyticsLogGroupsResponse listLogAnalyticsLogGroups( ListLogAnalyticsLogGroupsRequest request); /** - * Gets list of configuration details of Object Storage based collection rules. + * Gets list of collection rules. * @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. @@ -848,6 +931,18 @@ ListLogAnalyticsLogGroupsResponse listLogAnalyticsLogGroups( ListLogAnalyticsObjectCollectionRulesResponse listLogAnalyticsObjectCollectionRules( ListLogAnalyticsObjectCollectionRulesRequest request); + /** + * Obtains a list of lookups. The list is filtered according to the filter criteria + * specified by the user, and sorted according to the ordering criteria specified. + * + * @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. + * + * Example: Click here to see how to use ListLookups API. + */ + ListLookupsResponse listLookups(ListLookupsRequest request); + /** * get all meta source types * @param request The request object containing the details to send @@ -910,6 +1005,17 @@ ListLogAnalyticsObjectCollectionRulesResponse listLogAnalyticsObjectCollectionRu */ ListQueryWorkRequestsResponse listQueryWorkRequests(ListQueryWorkRequestsRequest request); + /** + * This API returns the list of recalled data of a tenancy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * + * Example: Click here to see how to use ListRecalledData API. + */ + ListRecalledDataResponse listRecalledData(ListRecalledDataRequest request); + /** * Lists scheduled tasks. * @param request The request object containing the details to send @@ -1005,7 +1111,7 @@ ListStorageWorkRequestErrorsResponse listStorageWorkRequestErrors( ListStorageWorkRequestsResponse listStorageWorkRequests(ListStorageWorkRequestsRequest request); /** - * Gets the list of character encodings supported for log files. + * Gets list of character encodings which are supported by on-demand upload. * @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. @@ -1016,7 +1122,7 @@ ListSupportedCharEncodingsResponse listSupportedCharEncodings( ListSupportedCharEncodingsRequest request); /** - * Gets timezones that are supported when performing uploads. + * Gets list of timezones which are supported by on-demand upload. * @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. @@ -1026,7 +1132,7 @@ ListSupportedCharEncodingsResponse listSupportedCharEncodings( ListSupportedTimezonesResponse listSupportedTimezones(ListSupportedTimezonesRequest request); /** - * Gets list of files in an upload. + * Gets list of files in an upload along with its processing state. * @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. @@ -1036,7 +1142,7 @@ ListSupportedCharEncodingsResponse listSupportedCharEncodings( ListUploadFilesResponse listUploadFiles(ListUploadFilesRequest request); /** - * Gets list of warnings in an upload explaining the failures due to incorrect configuration. + * Gets list of warnings in an upload caused by incorrect configuration. * @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. @@ -1057,6 +1163,18 @@ ListSupportedCharEncodingsResponse listSupportedCharEncodings( */ ListUploadsResponse listUploads(ListUploadsRequest request); + /** + * Obtains a list of warnings. The list is filtered according to the filter criteria + * specified by the user, and sorted according to the ordering criteria specified. + * + * @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. + * + * Example: Click here to see how to use ListWarnings API. + */ + ListWarningsResponse listWarnings(ListWarningsRequest request); + /** * Return a (paginated) list of errors for a given work request. * @@ -1121,6 +1239,17 @@ ListSupportedCharEncodingsResponse listSupportedCharEncodings( */ ParseQueryResponse parseQuery(ParseQueryRequest request); + /** + * Pause the scheduled task specified by {scheduledTaskId}. + * + * @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. + * + * Example: Click here to see how to use PauseScheduledTask API. + */ + PauseScheduledTaskResponse pauseScheduledTask(PauseScheduledTaskRequest request); + /** * This API submits a work request to purge data. Only data from log groups that the user has permission to delete * will be purged. To purge all data, the user must have permission to all log groups. @@ -1225,6 +1354,17 @@ PutQueryWorkRequestBackgroundResponse putQueryWorkRequestBackground( RemoveEntityAssociationsResponse removeEntityAssociations( RemoveEntityAssociationsRequest request); + /** + * Resume the scheduled task specified by {scheduledTaskId}. + * + * @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. + * + * Example: Click here to see how to use ResumeScheduledTask API. + */ + ResumeScheduledTaskResponse resumeScheduledTask(ResumeScheduledTaskRequest request); + /** * Execute the saved search acceleration task in the foreground. * The ScheduledTask taskType must be ACCELERATION. @@ -1248,6 +1388,19 @@ RemoveEntityAssociationsResponse removeEntityAssociations( */ SuggestResponse suggest(SuggestRequest request); + /** + * Accepts a list of warnings. Any unsuppressed warnings in the input list will + * be suppressed. Warnings in the input list which are already suppressed will + * not be modified. + * + * @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. + * + * Example: Click here to see how to use SuppressWarning API. + */ + SuppressWarningResponse suppressWarning(SuppressWarningRequest request); + /** * test parser * @param request The request object containing the details to send @@ -1258,6 +1411,19 @@ RemoveEntityAssociationsResponse removeEntityAssociations( */ TestParserResponse testParser(TestParserRequest request); + /** + * Accepts a list of warnings. Any suppressed warnings in the input list will + * be unsuppressed. Warnings in the input list which are unsuppressed will + * not be modified. + * + * @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. + * + * Example: Click here to see how to use UnsuppressWarning API. + */ + UnsuppressWarningResponse unsuppressWarning(UnsuppressWarningRequest request); + /** * Update the log analytics entity with the given id. * @param request The request object containing the details to send @@ -1292,7 +1458,7 @@ UpdateLogAnalyticsLogGroupResponse updateLogAnalyticsLogGroup( UpdateLogAnalyticsLogGroupRequest request); /** - * Update the rule with the given id. + * Updates configuration of the object collection rule for the given id. * @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. @@ -1302,6 +1468,56 @@ UpdateLogAnalyticsLogGroupResponse updateLogAnalyticsLogGroup( UpdateLogAnalyticsObjectCollectionRuleResponse updateLogAnalyticsObjectCollectionRule( UpdateLogAnalyticsObjectCollectionRuleRequest request); + /** + * Updates the metadata of the specified lookup, such as the lookup description. + * + * @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. + * + * Example: Click here to see how to use UpdateLookup API. + */ + UpdateLookupResponse updateLookup(UpdateLookupRequest request); + + /** + * Updates the specified lookup with the details provided. This API will not update + * lookup metadata (such as lookup description). + * + * + * Note: This operation consumes a stream. + * + * If the stream supports {@link java.io.InputStream#mark(int)} and {@link java.io.InputStream#reset()}, when a retry is + * necessary, the stream is reset so it starts at the beginning (or whatever the stream's position was at the time this + * operation is called}. + * + * Note this means that if the caller has used {@link java.io.InputStream#mark(int)} before, then the mark + * will not be the same anymore after this operation, and a subsequent call to {@link java.io.InputStream#reset()} by + * the caller will reset the stream not to the caller's mark, but to the position the stream was in when this operation + * was called. + * + * If the stream is a {@link java.io.FileInputStream}, and the stream's {@link java.nio.channels.FileChannel} position + * can be changed (like for a regular file), the stream will be wrapped in such a way that it does provide + * support for {@link java.io.InputStream#mark(int)} and {@link java.io.InputStream#reset()}. Then the same procedure as + * above is followed. If the stream's {@link java.nio.channels.FileChannel} position cannot be changed (like for a + * named pipe), then the stream's contents will be buffered in memory, as described below. + * + * If the stream does not support {@link java.io.InputStream#mark(int)} and {@link java.io.InputStream#reset()}, then + * the stream is wrapped in a {@link java.io.BufferedInputStream}, which means the entire contents may + * be buffered in memory. Then the same procedure as above is followed. + * + * The contents of the stream, except when the stream is a {@link java.io.FileInputStream} whose + * {@link java.nio.channels.FileChannel} position can be changed, should be less than 2 GiB in size if retries are used. + * This is because streams 2 GiB in size or larger do no guarantee that mark-and-reset can be performed. If the stream + * is larger, do not use built-in retries and manage retries yourself. + * + * @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. + * + * Example: Click here to see how to use UpdateLookupData API. + */ + UpdateLookupDataResponse updateLookupData(UpdateLookupDataRequest request); + /** * Update the scheduled task. Schedules may be updated only for taskType SAVED_SEARCH and PURGE. * @param request The request object containing the details to send @@ -1423,7 +1639,7 @@ ValidateAssociationParametersResponse validateAssociationParameters( ValidateAssociationParametersRequest request); /** - * Validates a log file to check whether it is eligible to upload or not. + * Validates a log file to check whether it is eligible to be uploaded or not. * @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. @@ -1454,7 +1670,7 @@ ValidateSourceExtendedFieldDetailsResponse validateSourceExtendedFieldDetails( ValidateSourceExtendedFieldDetailsRequest request); /** - * Validates the source mapping for given file and provides match status and parsed representation of log data. + * Validates the source mapping for a given file and provides match status and the parsed representation of log data. * @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. diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsAsync.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsAsync.java index e165531555d..70d515a47f7 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsAsync.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsAsync.java @@ -47,7 +47,7 @@ public interface LogAnalyticsAsync extends AutoCloseable { void setRegion(String regionId); /** - * Adds association between input source log analytics entity and destination entities. + * Adds association between input source log analytics entity and one or more existing destination entities. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -62,6 +62,23 @@ java.util.concurrent.Future addEntityAssociation( AddEntityAssociationRequest, AddEntityAssociationResponse> handler); + /** + * Append data to a lookup. The file containing the information to append + * must be provided. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future appendLookupData( + AppendLookupDataRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * get basic information about a specified set of labels * @@ -131,7 +148,7 @@ java.util.concurrent.Future cancelQueryWorkReque handler); /** - * Move the rule from it's current compartment to given compartment. + * Move the rule from it's current compartment to the given compartment. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -233,7 +250,7 @@ java.util.concurrent.Future createLogAnalyti handler); /** - * Create a configuration to collect logs from object storage bucket. + * Creates a rule to collect logs from an object storage bucket. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -327,7 +344,7 @@ java.util.concurrent.Future deleteLogAnalytics handler); /** - * Delete the log analytics entity type with the given name. + * Delete log analytics entity type with the given name. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -360,8 +377,8 @@ java.util.concurrent.Future deleteLogAnalyti handler); /** - * Deletes a configured object storage bucket based collection rule to stop the log collection of the configured bucket . - * It will not delete the already collected log data from the configured bucket. + * Deletes the configured object storage bucket based collection rule and stop the log collection. + * It will not delete the existing processed data associated with this bucket from logging analytics storage. * * * @param request The request object containing the details to send @@ -379,6 +396,22 @@ java.util.concurrent.Future deleteLogAnalyti DeleteLogAnalyticsObjectCollectionRuleResponse> handler); + /** + * Delete the specified lookup. + * + * + * @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 deleteLookup( + DeleteLookupRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * delete parser with specified name * @@ -443,8 +476,8 @@ java.util.concurrent.Future deleteUpload( handler); /** - * Deletes a specific log file inside an upload by providing upload file reference. - * It deletes all the logs in storage asscoiated with the upload file and the corresponding upload metadata. + * Deletes a specific log file inside an upload by upload file reference. + * It deletes all the logs from storage associated with the file and the corresponding metadata. * * * @param request The request object containing the details to send @@ -525,6 +558,40 @@ java.util.concurrent.Future estimatePurgeDataSize EstimatePurgeDataSizeRequest, EstimatePurgeDataSizeResponse> handler); + /** + * This API gives an active storage usage estimate for archived data to be recalled and the time range of such data. + * + * + * @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 estimateRecallDataSize( + EstimateRecallDataSizeRequest request, + com.oracle.bmc.responses.AsyncHandler< + EstimateRecallDataSizeRequest, EstimateRecallDataSizeResponse> + handler); + + /** + * This API gives an active storage usage estimate for recalled data to be released and the time range of such data. + * + * + * @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 estimateReleaseDataSize( + EstimateReleaseDataSizeRequest request, + com.oracle.bmc.responses.AsyncHandler< + EstimateReleaseDataSizeRequest, EstimateReleaseDataSizeResponse> + handler); + /** * export * @@ -713,7 +780,7 @@ java.util.concurrent.Future getLabelSummary( handler); /** - * Returns log analytics entities count summary. + * Returns log analytics entities count summary report. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -814,6 +881,21 @@ java.util.concurrent.Future getLogAnalyticsLogG GetLogAnalyticsObjectCollectionRuleResponse> handler); + /** + * Obtains the lookup with the specified reference. + * + * + * @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 getLookup( + GetLookupRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * This API gets the namespace details of a tenancy already onboarded in Logging Analytics Application * @@ -987,7 +1069,7 @@ java.util.concurrent.Future getStorageWorkRequest handler); /** - * Gets an On-Demand Upload info by reference + * Gets an On-Demand Upload info by reference. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -1205,7 +1287,7 @@ java.util.concurrent.Future listLogAnalyticsL handler); /** - * Gets list of configuration details of Object Storage based collection rules. + * Gets list of collection rules. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -1222,6 +1304,22 @@ java.util.concurrent.Future listLogAnalyticsL ListLogAnalyticsObjectCollectionRulesResponse> handler); + /** + * Obtains a list of lookups. The list is filtered according to the filter criteria + * specified by the user, and sorted according to the ordering criteria specified. + * + * + * @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 listLookups( + ListLookupsRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * get all meta source types * @@ -1317,6 +1415,22 @@ java.util.concurrent.Future listQueryWorkRequests ListQueryWorkRequestsRequest, ListQueryWorkRequestsResponse> handler); + /** + * This API returns the list of recalled data of a tenancy. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listRecalledData( + ListRecalledDataRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Lists scheduled tasks. * @@ -1464,7 +1578,7 @@ java.util.concurrent.Future listStorageWorkRequ handler); /** - * Gets the list of character encodings supported for log files. + * Gets list of character encodings which are supported by on-demand upload. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -1480,7 +1594,7 @@ java.util.concurrent.Future listSupportedCha handler); /** - * Gets timezones that are supported when performing uploads. + * Gets list of timezones which are supported by on-demand upload. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -1496,7 +1610,7 @@ java.util.concurrent.Future listSupportedTimezon handler); /** - * Gets list of files in an upload. + * Gets list of files in an upload along with its processing state. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -1511,7 +1625,7 @@ java.util.concurrent.Future listUploadFiles( handler); /** - * Gets list of warnings in an upload explaining the failures due to incorrect configuration. + * Gets list of warnings in an upload caused by incorrect configuration. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -1542,6 +1656,23 @@ java.util.concurrent.Future listUploads( ListUploadsRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Obtains a list of warnings. The list is filtered according to the filter criteria + * specified by the user, and sorted according to the ordering criteria specified. + * + * + * @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 listWarnings( + ListWarningsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Return a (paginated) list of errors for a given work request. * @@ -1638,6 +1769,23 @@ java.util.concurrent.Future parseQuery( ParseQueryRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Pause the scheduled task specified by {scheduledTaskId}. + * + * + * @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 pauseScheduledTask( + PauseScheduledTaskRequest request, + com.oracle.bmc.responses.AsyncHandler< + PauseScheduledTaskRequest, PauseScheduledTaskResponse> + handler); + /** * This API submits a work request to purge data. Only data from log groups that the user has permission to delete * will be purged. To purge all data, the user must have permission to all log groups. @@ -1753,6 +1901,23 @@ java.util.concurrent.Future removeEntityAssoci RemoveEntityAssociationsRequest, RemoveEntityAssociationsResponse> handler); + /** + * Resume the scheduled task specified by {scheduledTaskId}. + * + * + * @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 resumeScheduledTask( + ResumeScheduledTaskRequest request, + com.oracle.bmc.responses.AsyncHandler< + ResumeScheduledTaskRequest, ResumeScheduledTaskResponse> + handler); + /** * Execute the saved search acceleration task in the foreground. * The ScheduledTask taskType must be ACCELERATION. @@ -1784,6 +1949,24 @@ java.util.concurrent.Future suggest( SuggestRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Accepts a list of warnings. Any unsuppressed warnings in the input list will + * be suppressed. Warnings in the input list which are already suppressed will + * not be modified. + * + * + * @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 suppressWarning( + SuppressWarningRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * test parser * @@ -1798,6 +1981,25 @@ java.util.concurrent.Future testParser( TestParserRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Accepts a list of warnings. Any suppressed warnings in the input list will + * be unsuppressed. Warnings in the input list which are unsuppressed will + * not be modified. + * + * + * @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 unsuppressWarning( + UnsuppressWarningRequest request, + com.oracle.bmc.responses.AsyncHandler< + UnsuppressWarningRequest, UnsuppressWarningResponse> + handler); + /** * Update the log analytics entity with the given id. * @@ -1848,7 +2050,7 @@ java.util.concurrent.Future updateLogAnalyti handler); /** - * Update the rule with the given id. + * Updates configuration of the object collection rule for the given id. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -1865,6 +2067,39 @@ java.util.concurrent.Future updateLogAnalyti UpdateLogAnalyticsObjectCollectionRuleResponse> handler); + /** + * Updates the metadata of the specified lookup, such as the lookup description. + * + * + * @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 updateLookup( + UpdateLookupRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates the specified lookup with the details provided. This API will not update + * lookup metadata (such as lookup description). + * + * + * @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 updateLookupData( + UpdateLookupDataRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Update the scheduled task. Schedules may be updated only for taskType SAVED_SEARCH and PURGE. * @@ -2006,7 +2241,7 @@ java.util.concurrent.Future upsertSource( handler); /** - * Validates a log file to check whether it is eligible to upload or not. + * Validates a log file to check whether it is eligible to be uploaded or not. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -2054,7 +2289,7 @@ java.util.concurrent.Future validateSource( handler); /** - * Validates the source mapping for given file and provides match status and parsed representation of log data. + * Validates the source mapping for a given file and provides match status and the parsed representation of log data. * * @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-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsAsyncClient.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsAsyncClient.java index 4091f700d05..dc159293eba 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsAsyncClient.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsAsyncClient.java @@ -367,6 +367,58 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future appendLookupData( + AppendLookupDataRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AppendLookupDataRequest, AppendLookupDataResponse> + handler) { + LOG.trace("Called async appendLookupData"); + if (request.getRetryConfiguration() != null + || authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + request = + com.oracle.bmc.retrier.Retriers.wrapBodyInputStreamIfNecessary( + request, AppendLookupDataRequest.builder()); + } + final AppendLookupDataRequest interceptedRequest = + AppendLookupDataConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + AppendLookupDataConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = AppendLookupDataConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = + new com.oracle.bmc.responses.internal.StreamClosingAsyncHandler<>(handler); + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + AppendLookupDataRequest, AppendLookupDataResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + AppendLookupDataRequest, AppendLookupDataResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() { + LOG.debug("Resetting stream"); + com.oracle.bmc.retrier.Retriers.tryResetStreamForRetry( + interceptedRequest.getAppendLookupFileBody(), true); + } + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future batchGetBasicInfo( BatchGetBasicInfoRequest request, @@ -1190,6 +1242,45 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future deleteLookup( + DeleteLookupRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async deleteLookup"); + final DeleteLookupRequest interceptedRequest = + DeleteLookupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteLookupConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteLookupConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteLookupRequest, DeleteLookupResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteLookupRequest, DeleteLookupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteParser( DeleteParserRequest request, @@ -1547,6 +1638,88 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future estimateRecallDataSize( + EstimateRecallDataSizeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EstimateRecallDataSizeRequest, EstimateRecallDataSizeResponse> + handler) { + LOG.trace("Called async estimateRecallDataSize"); + final EstimateRecallDataSizeRequest interceptedRequest = + EstimateRecallDataSizeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EstimateRecallDataSizeConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, EstimateRecallDataSizeResponse> + transformer = EstimateRecallDataSizeConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + EstimateRecallDataSizeRequest, EstimateRecallDataSizeResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + EstimateRecallDataSizeRequest, EstimateRecallDataSizeResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + EstimateRecallDataSizeRequest, EstimateRecallDataSizeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future estimateReleaseDataSize( + EstimateReleaseDataSizeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EstimateReleaseDataSizeRequest, EstimateReleaseDataSizeResponse> + handler) { + LOG.trace("Called async estimateReleaseDataSize"); + final EstimateReleaseDataSizeRequest interceptedRequest = + EstimateReleaseDataSizeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EstimateReleaseDataSizeConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, EstimateReleaseDataSizeResponse> + transformer = EstimateReleaseDataSizeConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + EstimateReleaseDataSizeRequest, EstimateReleaseDataSizeResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + EstimateReleaseDataSizeRequest, EstimateReleaseDataSizeResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + EstimateReleaseDataSizeRequest, EstimateReleaseDataSizeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future exportCustomContent( ExportCustomContentRequest request, @@ -2289,6 +2462,42 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getLookup( + GetLookupRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getLookup"); + final GetLookupRequest interceptedRequest = GetLookupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetLookupConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetLookupConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetLookupRequest, GetLookupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getNamespace( GetNamespaceRequest request, @@ -3339,6 +3548,44 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listLookups( + ListLookupsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listLookups"); + final ListLookupsRequest interceptedRequest = + ListLookupsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListLookupsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListLookupsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListLookupsRequest, ListLookupsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListLookupsRequest, ListLookupsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listMetaSourceTypes( ListMetaSourceTypesRequest request, @@ -3580,6 +3827,45 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listRecalledData( + ListRecalledDataRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListRecalledDataRequest, ListRecalledDataResponse> + handler) { + LOG.trace("Called async listRecalledData"); + final ListRecalledDataRequest interceptedRequest = + ListRecalledDataConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListRecalledDataConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListRecalledDataConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListRecalledDataRequest, ListRecalledDataResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListRecalledDataRequest, ListRecalledDataResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listScheduledTasks( ListScheduledTasksRequest request, @@ -4151,6 +4437,44 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listWarnings( + ListWarningsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listWarnings"); + final ListWarningsRequest interceptedRequest = + ListWarningsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWarningsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListWarningsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWarningsRequest, ListWarningsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListWarningsRequest, ListWarningsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listWorkRequestErrors( ListWorkRequestErrorsRequest request, @@ -4389,6 +4713,45 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future pauseScheduledTask( + PauseScheduledTaskRequest request, + final com.oracle.bmc.responses.AsyncHandler< + PauseScheduledTaskRequest, PauseScheduledTaskResponse> + handler) { + LOG.trace("Called async pauseScheduledTask"); + final PauseScheduledTaskRequest interceptedRequest = + PauseScheduledTaskConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PauseScheduledTaskConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = PauseScheduledTaskConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + PauseScheduledTaskRequest, PauseScheduledTaskResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + PauseScheduledTaskRequest, PauseScheduledTaskResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future purgeStorageData( PurgeStorageDataRequest request, @@ -4683,6 +5046,47 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future resumeScheduledTask( + ResumeScheduledTaskRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ResumeScheduledTaskRequest, ResumeScheduledTaskResponse> + handler) { + LOG.trace("Called async resumeScheduledTask"); + final ResumeScheduledTaskRequest interceptedRequest = + ResumeScheduledTaskConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ResumeScheduledTaskConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ResumeScheduledTaskResponse> + transformer = ResumeScheduledTaskConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + ResumeScheduledTaskRequest, ResumeScheduledTaskResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ResumeScheduledTaskRequest, ResumeScheduledTaskResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ResumeScheduledTaskRequest, ResumeScheduledTaskResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future run( RunRequest request, @@ -4753,6 +5157,46 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future suppressWarning( + SuppressWarningRequest request, + final com.oracle.bmc.responses.AsyncHandler< + SuppressWarningRequest, SuppressWarningResponse> + handler) { + LOG.trace("Called async suppressWarning"); + final SuppressWarningRequest interceptedRequest = + SuppressWarningConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SuppressWarningConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = SuppressWarningConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + SuppressWarningRequest, SuppressWarningResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + SuppressWarningRequest, SuppressWarningResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future testParser( TestParserRequest request, @@ -4791,6 +5235,46 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future unsuppressWarning( + UnsuppressWarningRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UnsuppressWarningRequest, UnsuppressWarningResponse> + handler) { + LOG.trace("Called async unsuppressWarning"); + final UnsuppressWarningRequest interceptedRequest = + UnsuppressWarningConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UnsuppressWarningConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UnsuppressWarningConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UnsuppressWarningRequest, UnsuppressWarningResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UnsuppressWarningRequest, UnsuppressWarningResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateLogAnalyticsEntity( UpdateLogAnalyticsEntityRequest request, @@ -4967,6 +5451,97 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future updateLookup( + UpdateLookupRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async updateLookup"); + final UpdateLookupRequest interceptedRequest = + UpdateLookupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateLookupConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateLookupConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateLookupRequest, UpdateLookupResponse>, + java.util.concurrent.Future> + futureSupplier = client.putFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateLookupRequest, UpdateLookupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateLookupData( + UpdateLookupDataRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateLookupDataRequest, UpdateLookupDataResponse> + handler) { + LOG.trace("Called async updateLookupData"); + if (request.getRetryConfiguration() != null + || authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + request = + com.oracle.bmc.retrier.Retriers.wrapBodyInputStreamIfNecessary( + request, UpdateLookupDataRequest.builder()); + } + final UpdateLookupDataRequest interceptedRequest = + UpdateLookupDataConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateLookupDataConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateLookupDataConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = + new com.oracle.bmc.responses.internal.StreamClosingAsyncHandler<>(handler); + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateLookupDataRequest, UpdateLookupDataResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateLookupDataRequest, UpdateLookupDataResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() { + LOG.debug("Resetting stream"); + com.oracle.bmc.retrier.Retriers.tryResetStreamForRetry( + interceptedRequest.getUpdateLookupFileBody(), true); + } + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateScheduledTask( UpdateScheduledTaskRequest request, diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsClient.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsClient.java index 17c5fec7286..1ba36df4383 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsClient.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsClient.java @@ -474,6 +474,69 @@ public AddEntityAssociationResponse addEntityAssociation(AddEntityAssociationReq }); } + @Override + public AppendLookupDataResponse appendLookupData(AppendLookupDataRequest request) { + LOG.trace("Called appendLookupData"); + try { + if (request.getRetryConfiguration() != null + || retryConfiguration != null + || authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + request = + com.oracle.bmc.retrier.Retriers.wrapBodyInputStreamIfNecessary( + request, AppendLookupDataRequest.builder()); + } + final AppendLookupDataRequest interceptedRequest = + AppendLookupDataConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + AppendLookupDataConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = AppendLookupDataConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + try { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getAppendLookupFileBody(), + retriedRequest); + return transformer.apply(response); + } catch (RuntimeException e) { + if (interceptedRequest.getRetryConfiguration() != null + || retryConfiguration != null + || (e instanceof com.oracle.bmc.model.BmcException + && tokenRefreshRetrier + .getRetryCondition() + .shouldBeRetried( + (com.oracle.bmc.model + .BmcException) + e))) { + com.oracle.bmc.retrier.Retriers.tryResetStreamForRetry( + interceptedRequest.getAppendLookupFileBody(), + true); + } + throw e; // rethrow + } + }); + }); + } finally { + com.oracle.bmc.io.internal.KeepOpenInputStream.closeStream( + request.getAppendLookupFileBody()); + } + } + @Override public BatchGetBasicInfoResponse batchGetBasicInfo(BatchGetBasicInfoRequest request) { LOG.trace("Called batchGetBasicInfo"); @@ -1108,6 +1171,36 @@ public DeleteLogAnalyticsObjectCollectionRuleResponse deleteLogAnalyticsObjectCo }); } + @Override + public DeleteLookupResponse deleteLookup(DeleteLookupRequest request) { + LOG.trace("Called deleteLookup"); + final DeleteLookupRequest interceptedRequest = + DeleteLookupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteLookupConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteLookupConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteParserResponse deleteParser(DeleteParserRequest request) { LOG.trace("Called deleteParser"); @@ -1376,6 +1469,72 @@ public EstimatePurgeDataSizeResponse estimatePurgeDataSize( }); } + @Override + public EstimateRecallDataSizeResponse estimateRecallDataSize( + EstimateRecallDataSizeRequest request) { + LOG.trace("Called estimateRecallDataSize"); + final EstimateRecallDataSizeRequest interceptedRequest = + EstimateRecallDataSizeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EstimateRecallDataSizeConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = EstimateRecallDataSizeConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getEstimateRecallDataSizeDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public EstimateReleaseDataSizeResponse estimateReleaseDataSize( + EstimateReleaseDataSizeRequest request) { + LOG.trace("Called estimateReleaseDataSize"); + final EstimateReleaseDataSizeRequest interceptedRequest = + EstimateReleaseDataSizeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EstimateReleaseDataSizeConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = EstimateReleaseDataSizeConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getEstimateReleaseDataSizeDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ExportCustomContentResponse exportCustomContent(ExportCustomContentRequest request) { LOG.trace("Called exportCustomContent"); @@ -1917,6 +2076,33 @@ public GetLogAnalyticsObjectCollectionRuleResponse getLogAnalyticsObjectCollecti }); } + @Override + public GetLookupResponse getLookup(GetLookupRequest request) { + LOG.trace("Called getLookup"); + final GetLookupRequest interceptedRequest = GetLookupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetLookupConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + GetLookupConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetNamespaceResponse getNamespace(GetNamespaceRequest request) { LOG.trace("Called getNamespace"); @@ -2691,6 +2877,34 @@ public ListLogAnalyticsObjectCollectionRulesResponse listLogAnalyticsObjectColle }); } + @Override + public ListLookupsResponse listLookups(ListLookupsRequest request) { + LOG.trace("Called listLookups"); + final ListLookupsRequest interceptedRequest = + ListLookupsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListLookupsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListLookupsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListMetaSourceTypesResponse listMetaSourceTypes(ListMetaSourceTypesRequest request) { LOG.trace("Called listMetaSourceTypes"); @@ -2861,6 +3075,34 @@ public ListQueryWorkRequestsResponse listQueryWorkRequests( }); } + @Override + public ListRecalledDataResponse listRecalledData(ListRecalledDataRequest request) { + LOG.trace("Called listRecalledData"); + final ListRecalledDataRequest interceptedRequest = + ListRecalledDataConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListRecalledDataConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListRecalledDataConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListScheduledTasksResponse listScheduledTasks(ListScheduledTasksRequest request) { LOG.trace("Called listScheduledTasks"); @@ -3264,6 +3506,34 @@ public ListUploadsResponse listUploads(ListUploadsRequest request) { }); } + @Override + public ListWarningsResponse listWarnings(ListWarningsRequest request) { + LOG.trace("Called listWarnings"); + final ListWarningsRequest interceptedRequest = + ListWarningsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWarningsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListWarningsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListWorkRequestErrorsResponse listWorkRequestErrors( ListWorkRequestErrorsRequest request) { @@ -3440,6 +3710,35 @@ public ParseQueryResponse parseQuery(ParseQueryRequest request) { }); } + @Override + public PauseScheduledTaskResponse pauseScheduledTask(PauseScheduledTaskRequest request) { + LOG.trace("Called pauseScheduledTask"); + final PauseScheduledTaskRequest interceptedRequest = + PauseScheduledTaskConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PauseScheduledTaskConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = PauseScheduledTaskConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public PurgeStorageDataResponse purgeStorageData(PurgeStorageDataRequest request) { LOG.trace("Called purgeStorageData"); @@ -3699,6 +3998,35 @@ public RemoveEntityAssociationsResponse removeEntityAssociations( }); } + @Override + public ResumeScheduledTaskResponse resumeScheduledTask(ResumeScheduledTaskRequest request) { + LOG.trace("Called resumeScheduledTask"); + final ResumeScheduledTaskRequest interceptedRequest = + ResumeScheduledTaskConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ResumeScheduledTaskConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ResumeScheduledTaskConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public RunResponse run(RunRequest request) { LOG.trace("Called run"); @@ -3759,6 +4087,39 @@ public SuggestResponse suggest(SuggestRequest request) { }); } + @Override + public SuppressWarningResponse suppressWarning(SuppressWarningRequest request) { + LOG.trace("Called suppressWarning"); + final SuppressWarningRequest interceptedRequest = + SuppressWarningConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SuppressWarningConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = SuppressWarningConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getWarningReferenceDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public TestParserResponse testParser(TestParserRequest request) { LOG.trace("Called testParser"); @@ -3791,6 +4152,39 @@ public TestParserResponse testParser(TestParserRequest request) { }); } + @Override + public UnsuppressWarningResponse unsuppressWarning(UnsuppressWarningRequest request) { + LOG.trace("Called unsuppressWarning"); + final UnsuppressWarningRequest interceptedRequest = + UnsuppressWarningConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UnsuppressWarningConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UnsuppressWarningConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getWarningReferenceDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateLogAnalyticsEntityResponse updateLogAnalyticsEntity( UpdateLogAnalyticsEntityRequest request) { @@ -3930,6 +4324,102 @@ public UpdateLogAnalyticsObjectCollectionRuleResponse updateLogAnalyticsObjectCo }); } + @Override + public UpdateLookupResponse updateLookup(UpdateLookupRequest request) { + LOG.trace("Called updateLookup"); + final UpdateLookupRequest interceptedRequest = + UpdateLookupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateLookupConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateLookupConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateLookupMetadataDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateLookupDataResponse updateLookupData(UpdateLookupDataRequest request) { + LOG.trace("Called updateLookupData"); + try { + if (request.getRetryConfiguration() != null + || retryConfiguration != null + || authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + request = + com.oracle.bmc.retrier.Retriers.wrapBodyInputStreamIfNecessary( + request, UpdateLookupDataRequest.builder()); + } + final UpdateLookupDataRequest interceptedRequest = + UpdateLookupDataConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateLookupDataConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateLookupDataConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + try { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getUpdateLookupFileBody(), + retriedRequest); + return transformer.apply(response); + } catch (RuntimeException e) { + if (interceptedRequest.getRetryConfiguration() != null + || retryConfiguration != null + || (e instanceof com.oracle.bmc.model.BmcException + && tokenRefreshRetrier + .getRetryCondition() + .shouldBeRetried( + (com.oracle.bmc.model + .BmcException) + e))) { + com.oracle.bmc.retrier.Retriers.tryResetStreamForRetry( + interceptedRequest.getUpdateLookupFileBody(), + true); + } + throw e; // rethrow + } + }); + }); + } finally { + com.oracle.bmc.io.internal.KeepOpenInputStream.closeStream( + request.getUpdateLookupFileBody()); + } + } + @Override public UpdateScheduledTaskResponse updateScheduledTask(UpdateScheduledTaskRequest request) { LOG.trace("Called updateScheduledTask"); diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsPaginators.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsPaginators.java index bd9dab136f0..e97b728dc1c 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsPaginators.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsPaginators.java @@ -1450,6 +1450,116 @@ public ListLogAnalyticsObjectCollectionRulesResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listLookups operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listLookupsResponseIterator( + final ListLookupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListLookupsRequest.Builder, ListLookupsRequest, ListLookupsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListLookupsRequest.Builder get() { + return ListLookupsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListLookupsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListLookupsRequest.Builder>, + ListLookupsRequest>() { + @Override + public ListLookupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListLookupsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListLookupsResponse apply(ListLookupsRequest request) { + return client.listLookups(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.loganalytics.model.LogAnalyticsLookup} objects + * contained in responses from the listLookups operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.loganalytics.model.LogAnalyticsLookup} objects + * contained in responses received from the service. + */ + public Iterable listLookupsRecordIterator( + final ListLookupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListLookupsRequest.Builder, ListLookupsRequest, ListLookupsResponse, + com.oracle.bmc.loganalytics.model.LogAnalyticsLookup>( + new com.google.common.base.Supplier() { + @Override + public ListLookupsRequest.Builder get() { + return ListLookupsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListLookupsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListLookupsRequest.Builder>, + ListLookupsRequest>() { + @Override + public ListLookupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListLookupsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListLookupsResponse apply(ListLookupsRequest request) { + return client.listLookups(request); + } + }, + new com.google.common.base.Function< + ListLookupsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListLookupsResponse response) { + return response.getLogAnalyticsLookupCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listMetaSourceTypes operation. This iterable * will fetch more data from the server as needed. @@ -2029,6 +2139,118 @@ public ListQueryWorkRequestsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listRecalledData operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listRecalledDataResponseIterator( + final ListRecalledDataRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListRecalledDataRequest.Builder, ListRecalledDataRequest, ListRecalledDataResponse>( + new com.google.common.base.Supplier() { + @Override + public ListRecalledDataRequest.Builder get() { + return ListRecalledDataRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListRecalledDataResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRecalledDataRequest.Builder>, + ListRecalledDataRequest>() { + @Override + public ListRecalledDataRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRecalledDataRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListRecalledDataRequest, ListRecalledDataResponse>() { + @Override + public ListRecalledDataResponse apply(ListRecalledDataRequest request) { + return client.listRecalledData(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.loganalytics.model.RecalledData} objects + * contained in responses from the listRecalledData operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.loganalytics.model.RecalledData} objects + * contained in responses received from the service. + */ + public Iterable listRecalledDataRecordIterator( + final ListRecalledDataRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListRecalledDataRequest.Builder, ListRecalledDataRequest, ListRecalledDataResponse, + com.oracle.bmc.loganalytics.model.RecalledData>( + new com.google.common.base.Supplier() { + @Override + public ListRecalledDataRequest.Builder get() { + return ListRecalledDataRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListRecalledDataResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRecalledDataRequest.Builder>, + ListRecalledDataRequest>() { + @Override + public ListRecalledDataRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRecalledDataRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListRecalledDataRequest, ListRecalledDataResponse>() { + @Override + public ListRecalledDataResponse apply(ListRecalledDataRequest request) { + return client.listRecalledData(request); + } + }, + new com.google.common.base.Function< + ListRecalledDataResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListRecalledDataResponse response) { + return response.getRecalledDataCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listScheduledTasks operation. This iterable * will fetch more data from the server as needed. @@ -3429,6 +3651,116 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listWarnings operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listWarningsResponseIterator( + final ListWarningsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWarningsRequest.Builder, ListWarningsRequest, ListWarningsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListWarningsRequest.Builder get() { + return ListWarningsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListWarningsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWarningsRequest.Builder>, + ListWarningsRequest>() { + @Override + public ListWarningsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWarningsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListWarningsResponse apply(ListWarningsRequest request) { + return client.listWarnings(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.loganalytics.model.LogAnalyticsWarning} objects + * contained in responses from the listWarnings operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.loganalytics.model.LogAnalyticsWarning} objects + * contained in responses received from the service. + */ + public Iterable + listWarningsRecordIterator(final ListWarningsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWarningsRequest.Builder, ListWarningsRequest, ListWarningsResponse, + com.oracle.bmc.loganalytics.model.LogAnalyticsWarning>( + new com.google.common.base.Supplier() { + @Override + public ListWarningsRequest.Builder get() { + return ListWarningsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListWarningsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWarningsRequest.Builder>, + ListWarningsRequest>() { + @Override + public ListWarningsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWarningsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListWarningsResponse apply(ListWarningsRequest request) { + return client.listWarnings(request); + } + }, + new com.google.common.base.Function< + ListWarningsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListWarningsResponse response) { + return response.getLogAnalyticsWarningCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listWorkRequestErrors operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsWaiters.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsWaiters.java index f38291a88ab..52139139bee 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsWaiters.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsWaiters.java @@ -233,16 +233,15 @@ public boolean apply(GetLogAnalyticsEntityTypeResponse response) { * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send - * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states - * @return a new {@code Waiter} instance + * @param targetState the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetLogAnalyticsObjectCollectionRuleRequest, GetLogAnalyticsObjectCollectionRuleResponse> forLogAnalyticsObjectCollectionRule( GetLogAnalyticsObjectCollectionRuleRequest request, - com.oracle.bmc.loganalytics.model.LogAnalyticsObjectCollectionRule - .LifecycleState... + com.oracle.bmc.loganalytics.model.ObjectCollectionRuleLifecycleStates... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); @@ -267,8 +266,7 @@ public boolean apply(GetLogAnalyticsEntityTypeResponse response) { GetLogAnalyticsObjectCollectionRuleResponse> forLogAnalyticsObjectCollectionRule( GetLogAnalyticsObjectCollectionRuleRequest request, - com.oracle.bmc.loganalytics.model.LogAnalyticsObjectCollectionRule - .LifecycleState + com.oracle.bmc.loganalytics.model.ObjectCollectionRuleLifecycleStates targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { @@ -287,7 +285,7 @@ public boolean apply(GetLogAnalyticsEntityTypeResponse response) { * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states - * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetLogAnalyticsObjectCollectionRuleRequest, @@ -296,13 +294,12 @@ public boolean apply(GetLogAnalyticsEntityTypeResponse response) { GetLogAnalyticsObjectCollectionRuleRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.loganalytics.model.LogAnalyticsObjectCollectionRule - .LifecycleState... + com.oracle.bmc.loganalytics.model.ObjectCollectionRuleLifecycleStates... targetStates) { org.apache.commons.lang3.Validate.notEmpty( - targetStates, "At least one target state must be provided"); + targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( - targetStates, "Null target states are not permitted"); + targetStates, "Null targetState values are not permitted"); return forLogAnalyticsObjectCollectionRule( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), @@ -317,12 +314,9 @@ public boolean apply(GetLogAnalyticsEntityTypeResponse response) { forLogAnalyticsObjectCollectionRule( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetLogAnalyticsObjectCollectionRuleRequest request, - final com.oracle.bmc.loganalytics.model.LogAnalyticsObjectCollectionRule - .LifecycleState... + final com.oracle.bmc.loganalytics.model.ObjectCollectionRuleLifecycleStates... targetStates) { - final java.util.Set< - com.oracle.bmc.loganalytics.model.LogAnalyticsObjectCollectionRule - .LifecycleState> + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -349,8 +343,8 @@ public boolean apply( } }, targetStatesSet.contains( - com.oracle.bmc.loganalytics.model.LogAnalyticsObjectCollectionRule - .LifecycleState.Deleted)), + com.oracle.bmc.loganalytics.model + .ObjectCollectionRuleLifecycleStates.Deleted)), request); } diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/AppendLookupDataConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/AppendLookupDataConverter.java new file mode 100644 index 00000000000..ab4b0404cae --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/AppendLookupDataConverter.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class AppendLookupDataConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.AppendLookupDataRequest interceptRequest( + com.oracle.bmc.loganalytics.requests.AppendLookupDataRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.AppendLookupDataRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notBlank(request.getLookupName(), "lookupName must not be blank"); + Validate.notNull(request.getAppendLookupFileBody(), "appendLookupFileBody is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("lookups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getLookupName())) + .path("actions") + .path("appendData"); + + if (request.getIsForce() != null) { + target = + target.queryParam( + "isForce", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsForce())); + } + + if (request.getCharEncoding() != null) { + target = + target.queryParam( + "charEncoding", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCharEncoding())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.AppendLookupDataResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.AppendLookupDataResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.AppendLookupDataResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses.AppendLookupDataResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.AppendLookupDataResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.AppendLookupDataResponse + .Builder + builder = + com.oracle.bmc.loganalytics.responses + .AppendLookupDataResponse.builder(); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.loganalytics.responses.AppendLookupDataResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/DeleteLookupConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/DeleteLookupConverter.java new file mode 100644 index 00000000000..c451935c050 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/DeleteLookupConverter.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class DeleteLookupConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.DeleteLookupRequest interceptRequest( + com.oracle.bmc.loganalytics.requests.DeleteLookupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.DeleteLookupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notBlank(request.getLookupName(), "lookupName must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("lookups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getLookupName())); + + if (request.getIsForce() != null) { + target = + target.queryParam( + "isForce", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsForce())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.DeleteLookupResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.DeleteLookupResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.DeleteLookupResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses.DeleteLookupResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.DeleteLookupResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.DeleteLookupResponse.Builder + builder = + com.oracle.bmc.loganalytics.responses + .DeleteLookupResponse.builder(); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.loganalytics.responses.DeleteLookupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/EstimateRecallDataSizeConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/EstimateRecallDataSizeConverter.java new file mode 100644 index 00000000000..411b32d4906 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/EstimateRecallDataSizeConverter.java @@ -0,0 +1,119 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class EstimateRecallDataSizeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.EstimateRecallDataSizeRequest + interceptRequest( + com.oracle.bmc.loganalytics.requests.EstimateRecallDataSizeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.EstimateRecallDataSizeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notNull( + request.getEstimateRecallDataSizeDetails(), + "estimateRecallDataSizeDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("storage") + .path("actions") + .path("estimateRecallDataSize"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.EstimateRecallDataSizeResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.EstimateRecallDataSizeResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses + .EstimateRecallDataSizeResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses + .EstimateRecallDataSizeResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.EstimateRecallDataSizeResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + EstimateRecallDataSizeResult>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + EstimateRecallDataSizeResult.class); + + com.oracle.bmc.http.internal.WithHeaders< + EstimateRecallDataSizeResult> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.EstimateRecallDataSizeResponse + .Builder + builder = + com.oracle.bmc.loganalytics.responses + .EstimateRecallDataSizeResponse.builder(); + + builder.estimateRecallDataSizeResult(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.loganalytics.responses.EstimateRecallDataSizeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/EstimateReleaseDataSizeConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/EstimateReleaseDataSizeConverter.java new file mode 100644 index 00000000000..79eb47d9621 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/EstimateReleaseDataSizeConverter.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class EstimateReleaseDataSizeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.EstimateReleaseDataSizeRequest + interceptRequest( + com.oracle.bmc.loganalytics.requests.EstimateReleaseDataSizeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.EstimateReleaseDataSizeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notNull( + request.getEstimateReleaseDataSizeDetails(), + "estimateReleaseDataSizeDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("storage") + .path("actions") + .path("estimateReleaseDataSize"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.EstimateReleaseDataSizeResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.EstimateReleaseDataSizeResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses + .EstimateReleaseDataSizeResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses + .EstimateReleaseDataSizeResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.EstimateReleaseDataSizeResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + EstimateReleaseDataSizeResult>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + EstimateReleaseDataSizeResult.class); + + com.oracle.bmc.http.internal.WithHeaders< + EstimateReleaseDataSizeResult> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses + .EstimateReleaseDataSizeResponse.Builder + builder = + com.oracle.bmc.loganalytics.responses + .EstimateReleaseDataSizeResponse.builder(); + + builder.estimateReleaseDataSizeResult(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.loganalytics.responses + .EstimateReleaseDataSizeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/GetLookupConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/GetLookupConverter.java new file mode 100644 index 00000000000..a801ecf939c --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/GetLookupConverter.java @@ -0,0 +1,122 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class GetLookupConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.GetLookupRequest interceptRequest( + com.oracle.bmc.loganalytics.requests.GetLookupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.GetLookupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notBlank(request.getLookupName(), "lookupName must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("lookups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getLookupName())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.GetLookupResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.GetLookupResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.GetLookupResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses.GetLookupResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.GetLookupResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + LogAnalyticsLookup>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + LogAnalyticsLookup.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.GetLookupResponse.Builder + builder = + com.oracle.bmc.loganalytics.responses + .GetLookupResponse.builder(); + + builder.logAnalyticsLookup(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.loganalytics.responses.GetLookupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListLookupsConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListLookupsConverter.java new file mode 100644 index 00000000000..055feeb636d --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListLookupsConverter.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class ListLookupsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.ListLookupsRequest interceptRequest( + com.oracle.bmc.loganalytics.requests.ListLookupsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.ListLookupsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notNull(request.getType(), "type is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("lookups"); + + if (request.getLookupDisplayText() != null) { + target = + target.queryParam( + "lookupDisplayText", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLookupDisplayText())); + } + + target = + target.queryParam( + "type", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getType().getValue())); + + if (request.getIsSystem() != null) { + target = + target.queryParam( + "isSystem", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsSystem().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getStatus() != null) { + target = + target.queryParam( + "status", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getStatus().getValue())); + } + + if (request.getIsHideSpecial() != null) { + target = + target.queryParam( + "isHideSpecial", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsHideSpecial())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.ListLookupsResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.ListLookupsResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.ListLookupsResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses.ListLookupsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.ListLookupsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + LogAnalyticsLookupCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + LogAnalyticsLookupCollection.class); + + com.oracle.bmc.http.internal.WithHeaders< + LogAnalyticsLookupCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.ListLookupsResponse.Builder + builder = + com.oracle.bmc.loganalytics.responses + .ListLookupsResponse.builder(); + + builder.logAnalyticsLookupCollection(response.getItem()); + + com.google.common.base.Optional> + opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.loganalytics.responses.ListLookupsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListMetaSourceTypesConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListMetaSourceTypesConverter.java index 10680ffbf83..c94a2e68bd9 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListMetaSourceTypesConverter.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListMetaSourceTypesConverter.java @@ -59,7 +59,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( target.queryParam( "sortBy", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy())); + request.getSortBy().getValue())); } if (request.getSortOrder() != null) { diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListParserFunctionsConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListParserFunctionsConverter.java index 1a511656791..26caf512329 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListParserFunctionsConverter.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListParserFunctionsConverter.java @@ -67,7 +67,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( target.queryParam( "sortBy", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy())); + request.getSortBy().getValue())); } if (request.getSortOrder() != null) { diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListParserMetaPluginsConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListParserMetaPluginsConverter.java index 0704c423539..6501f1374ac 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListParserMetaPluginsConverter.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListParserMetaPluginsConverter.java @@ -60,7 +60,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( target.queryParam( "sortBy", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy())); + request.getSortBy().getValue())); } if (request.getSortOrder() != null) { diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListRecalledDataConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListRecalledDataConverter.java new file mode 100644 index 00000000000..6126229b0f5 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListRecalledDataConverter.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class ListRecalledDataConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.ListRecalledDataRequest interceptRequest( + com.oracle.bmc.loganalytics.requests.ListRecalledDataRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.ListRecalledDataRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("storage") + .path("recalledData"); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getTimeDataStartedGreaterThanOrEqual() != null) { + target = + target.queryParam( + "timeDataStartedGreaterThanOrEqual", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeDataStartedGreaterThanOrEqual())); + } + + if (request.getTimeDataEndedLessThan() != null) { + target = + target.queryParam( + "timeDataEndedLessThan", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeDataEndedLessThan())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.ListRecalledDataResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.ListRecalledDataResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.ListRecalledDataResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses.ListRecalledDataResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.ListRecalledDataResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + RecalledDataCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + RecalledDataCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.ListRecalledDataResponse + .Builder + builder = + com.oracle.bmc.loganalytics.responses + .ListRecalledDataResponse.builder(); + + builder.recalledDataCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.loganalytics.responses.ListRecalledDataResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListSourceLabelOperatorsConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListSourceLabelOperatorsConverter.java index c1b60c78813..dbb4eedc9d0 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListSourceLabelOperatorsConverter.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListSourceLabelOperatorsConverter.java @@ -60,7 +60,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( target.queryParam( "sortBy", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy())); + request.getSortBy().getValue())); } if (request.getSortOrder() != null) { diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListSourceMetaFunctionsConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListSourceMetaFunctionsConverter.java index 078f67904ff..7cf24a8c51f 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListSourceMetaFunctionsConverter.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListSourceMetaFunctionsConverter.java @@ -60,7 +60,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( target.queryParam( "sortBy", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy())); + request.getSortBy().getValue())); } if (request.getSortOrder() != null) { diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListWarningsConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListWarningsConverter.java new file mode 100644 index 00000000000..3c7516a4cc3 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ListWarningsConverter.java @@ -0,0 +1,253 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class ListWarningsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.ListWarningsRequest interceptRequest( + com.oracle.bmc.loganalytics.requests.ListWarningsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.ListWarningsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("warnings"); + + if (request.getWarningState() != null) { + target = + target.queryParam( + "warningState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getWarningState().getValue())); + } + + if (request.getSourceName() != null) { + target = + target.queryParam( + "sourceName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSourceName())); + } + + if (request.getSourcePattern() != null) { + target = + target.queryParam( + "sourcePattern", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSourcePattern())); + } + + if (request.getWarningMessage() != null) { + target = + target.queryParam( + "warningMessage", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getWarningMessage())); + } + + if (request.getEntityName() != null) { + target = + target.queryParam( + "entityName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getEntityName())); + } + + if (request.getEntityType() != null) { + target = + target.queryParam( + "entityType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getEntityType())); + } + + if (request.getWarningType() != null) { + target = + target.queryParam( + "warningType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getWarningType())); + } + + if (request.getIsNoSource() != null) { + target = + target.queryParam( + "isNoSource", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsNoSource())); + } + + if (request.getStartTime() != null) { + target = + target.queryParam( + "startTime", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getStartTime())); + } + + if (request.getEndTime() != null) { + target = + target.queryParam( + "endTime", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getEndTime())); + } + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.ListWarningsResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.ListWarningsResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.ListWarningsResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses.ListWarningsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.ListWarningsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + LogAnalyticsWarningCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + LogAnalyticsWarningCollection.class); + + com.oracle.bmc.http.internal.WithHeaders< + LogAnalyticsWarningCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.ListWarningsResponse.Builder + builder = + com.oracle.bmc.loganalytics.responses + .ListWarningsResponse.builder(); + + builder.logAnalyticsWarningCollection(response.getItem()); + + com.google.common.base.Optional> + opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.loganalytics.responses.ListWarningsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/PauseScheduledTaskConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/PauseScheduledTaskConverter.java new file mode 100644 index 00000000000..eb67f332df4 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/PauseScheduledTaskConverter.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class PauseScheduledTaskConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.PauseScheduledTaskRequest interceptRequest( + com.oracle.bmc.loganalytics.requests.PauseScheduledTaskRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.PauseScheduledTaskRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notBlank(request.getScheduledTaskId(), "scheduledTaskId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("scheduledTasks") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getScheduledTaskId())) + .path("actions") + .path("pause"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.PauseScheduledTaskResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.PauseScheduledTaskResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses + .PauseScheduledTaskResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses.PauseScheduledTaskResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.PauseScheduledTaskResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ScheduledTask>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ScheduledTask.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.PauseScheduledTaskResponse + .Builder + builder = + com.oracle.bmc.loganalytics.responses + .PauseScheduledTaskResponse.builder(); + + if (response.getStatusCode() != 304) { + builder.scheduledTask(response.getItem()); + builder.isNotModified(false); + } else { + builder.isNotModified(true); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.loganalytics.responses.PauseScheduledTaskResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ResumeScheduledTaskConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ResumeScheduledTaskConverter.java new file mode 100644 index 00000000000..11a26db966d --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/ResumeScheduledTaskConverter.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class ResumeScheduledTaskConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.ResumeScheduledTaskRequest interceptRequest( + com.oracle.bmc.loganalytics.requests.ResumeScheduledTaskRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.ResumeScheduledTaskRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notBlank(request.getScheduledTaskId(), "scheduledTaskId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("scheduledTasks") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getScheduledTaskId())) + .path("actions") + .path("resume"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.ResumeScheduledTaskResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.ResumeScheduledTaskResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses + .ResumeScheduledTaskResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses.ResumeScheduledTaskResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.ResumeScheduledTaskResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ScheduledTask>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ScheduledTask.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.ResumeScheduledTaskResponse + .Builder + builder = + com.oracle.bmc.loganalytics.responses + .ResumeScheduledTaskResponse.builder(); + + if (response.getStatusCode() != 304) { + builder.scheduledTask(response.getItem()); + builder.isNotModified(false); + } else { + builder.isNotModified(true); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.loganalytics.responses.ResumeScheduledTaskResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/SuppressWarningConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/SuppressWarningConverter.java new file mode 100644 index 00000000000..22f6b729750 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/SuppressWarningConverter.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class SuppressWarningConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.SuppressWarningRequest interceptRequest( + com.oracle.bmc.loganalytics.requests.SuppressWarningRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.SuppressWarningRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notNull( + request.getWarningReferenceDetails(), "warningReferenceDetails is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("warnings") + .path("actions") + .path("suppress"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.SuppressWarningResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.SuppressWarningResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.SuppressWarningResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses.SuppressWarningResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.SuppressWarningResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.SuppressWarningResponse + .Builder + builder = + com.oracle.bmc.loganalytics.responses + .SuppressWarningResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.loganalytics.responses.SuppressWarningResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/UnsuppressWarningConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/UnsuppressWarningConverter.java new file mode 100644 index 00000000000..bfc0ce49a0e --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/UnsuppressWarningConverter.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class UnsuppressWarningConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.UnsuppressWarningRequest interceptRequest( + com.oracle.bmc.loganalytics.requests.UnsuppressWarningRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.UnsuppressWarningRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notNull( + request.getWarningReferenceDetails(), "warningReferenceDetails is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("warnings") + .path("actions") + .path("unsuppress"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.UnsuppressWarningResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.UnsuppressWarningResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.UnsuppressWarningResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses.UnsuppressWarningResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.UnsuppressWarningResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.UnsuppressWarningResponse + .Builder + builder = + com.oracle.bmc.loganalytics.responses + .UnsuppressWarningResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.loganalytics.responses.UnsuppressWarningResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/UpdateLookupConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/UpdateLookupConverter.java new file mode 100644 index 00000000000..dbc3ff60f53 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/UpdateLookupConverter.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class UpdateLookupConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.UpdateLookupRequest interceptRequest( + com.oracle.bmc.loganalytics.requests.UpdateLookupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.UpdateLookupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notBlank(request.getLookupName(), "lookupName must not be blank"); + Validate.notNull( + request.getUpdateLookupMetadataDetails(), + "updateLookupMetadataDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("lookups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getLookupName())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.UpdateLookupResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.UpdateLookupResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.UpdateLookupResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses.UpdateLookupResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.UpdateLookupResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + LogAnalyticsLookup>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + LogAnalyticsLookup.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.UpdateLookupResponse.Builder + builder = + com.oracle.bmc.loganalytics.responses + .UpdateLookupResponse.builder(); + + builder.logAnalyticsLookup(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.loganalytics.responses.UpdateLookupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/UpdateLookupDataConverter.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/UpdateLookupDataConverter.java new file mode 100644 index 00000000000..5d373a6ce9a --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/internal/http/UpdateLookupDataConverter.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.loganalytics.model.*; +import com.oracle.bmc.loganalytics.requests.*; +import com.oracle.bmc.loganalytics.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public class UpdateLookupDataConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.loganalytics.requests.UpdateLookupDataRequest interceptRequest( + com.oracle.bmc.loganalytics.requests.UpdateLookupDataRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.loganalytics.requests.UpdateLookupDataRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notBlank(request.getLookupName(), "lookupName must not be blank"); + Validate.notNull(request.getUpdateLookupFileBody(), "updateLookupFileBody is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200601") + .path("namespaces") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("lookups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getLookupName())) + .path("actions") + .path("updateData"); + + if (request.getIsForce() != null) { + target = + target.queryParam( + "isForce", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsForce())); + } + + if (request.getCharEncoding() != null) { + target = + target.queryParam( + "charEncoding", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCharEncoding())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.UpdateLookupDataResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.UpdateLookupDataResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.loganalytics.responses.UpdateLookupDataResponse>() { + @Override + public com.oracle.bmc.loganalytics.responses.UpdateLookupDataResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.loganalytics.responses.UpdateLookupDataResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.loganalytics.responses.UpdateLookupDataResponse + .Builder + builder = + com.oracle.bmc.loganalytics.responses + .UpdateLookupDataResponse.builder(); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.loganalytics.responses.UpdateLookupDataResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/AbstractCommandDescriptor.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/AbstractCommandDescriptor.java index 6f2143d84c5..b59122a2313 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/AbstractCommandDescriptor.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/AbstractCommandDescriptor.java @@ -73,10 +73,18 @@ value = FieldSummaryCommandDescriptor.class, name = "FIELD_SUMMARY" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = MapCommandDescriptor.class, + name = "MAP" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = EventStatsCommandDescriptor.class, name = "EVENT_STATS" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = HighlightGroupsCommandDescriptor.class, + name = "HIGHLIGHT_GROUPS" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = WhereCommandDescriptor.class, name = "WHERE" @@ -133,6 +141,10 @@ value = ExtractCommandDescriptor.class, name = "EXTRACT" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = NlpCommandDescriptor.class, + name = "NLP" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = BottomCommandDescriptor.class, name = "BOTTOM" @@ -165,6 +177,10 @@ value = HeadCommandDescriptor.class, name = "HEAD" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateViewCommandDescriptor.class, + name = "CREATE_VIEW" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = AddFieldsCommandDescriptor.class, name = "ADD_FIELDS" @@ -259,6 +275,10 @@ public enum Name { MultiSearch("MULTI_SEARCH"), Highlight("HIGHLIGHT"), HighlightRows("HIGHLIGHT_ROWS"), + HighlightGroups("HIGHLIGHT_GROUPS"), + CreateView("CREATE_VIEW"), + Map("MAP"), + Nlp("NLP"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/AbstractField.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/AbstractField.java index 50f719ccd78..b98f0fa2af8 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/AbstractField.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/AbstractField.java @@ -107,6 +107,13 @@ public class AbstractField { @com.fasterxml.jackson.annotation.JsonProperty("filterQueryString") String filterQueryString; + /** + * Field denoting field unit type. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("unitType") + String unitType; + /** * Field type classification. * diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/AddEntityAssociationDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/AddEntityAssociationDetails.java index ad42ee93300..4ed4f65ac85 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/AddEntityAssociationDetails.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/AddEntityAssociationDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * Information about the associations to be added between log analytics entity and other existing entities. + * Information about the associations to be added between a source log analytics entity and other existing destination entities. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ArchivingConfiguration.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ArchivingConfiguration.java index 2b02faf5be8..194a0399933 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ArchivingConfiguration.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ArchivingConfiguration.java @@ -73,7 +73,7 @@ public static Builder builder() { } /** - * Thi is the duration data in active storage before data is archived, as described in + * This is the duration data in active storage before data is archived, as described in * https://en.wikipedia.org/wiki/ISO_8601#Durations. * The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W). * @@ -82,7 +82,7 @@ public static Builder builder() { String activeStorageDuration; /** - * The is the duration before archived data is deleted from object storage, as described in + * This is the duration before archived data is deleted from object storage, as described in * https://en.wikipedia.org/wiki/ISO_8601#Durations * The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W). * diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ChangeLogAnalyticsEntityCompartmentDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ChangeLogAnalyticsEntityCompartmentDetails.java index 081d35fa6f6..0b971ea4523 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ChangeLogAnalyticsEntityCompartmentDetails.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ChangeLogAnalyticsEntityCompartmentDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * log analytics entity compartment to be updated. + * Log analytics entity compartment to be updated. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ChangeLogAnalyticsObjectCollectionRuleCompartmentDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ChangeLogAnalyticsObjectCollectionRuleCompartmentDetails.java index 9001d5d2728..1a346da311c 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ChangeLogAnalyticsObjectCollectionRuleCompartmentDetails.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ChangeLogAnalyticsObjectCollectionRuleCompartmentDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * The new compartment this Object Collection Rule will be moved to. + * New compartment details. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -63,7 +63,7 @@ public static Builder builder() { } /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment into which the rule should be moved. + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to which the rule have to be moved. * **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CharEncodingCollection.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CharEncodingCollection.java index 84a19e07d67..f1a29add03c 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CharEncodingCollection.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CharEncodingCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * List of supported character encodings + * List of supported character encodings. *
* 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 @@ -61,7 +61,7 @@ public static Builder builder() { } /** - * List of supported character encodings + * List of supported character encodings. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") java.util.List items; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateLogAnalyticsEntityDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateLogAnalyticsEntityDetails.java index 7e5788be354..f316af8b655 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateLogAnalyticsEntityDetails.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateLogAnalyticsEntityDetails.java @@ -176,7 +176,7 @@ public static Builder builder() { } /** - * Log analytics entity name. The name must be unique, within the tenancy, and cannot be changed. + * Log analytics entity name. * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateLogAnalyticsObjectCollectionRuleDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateLogAnalyticsObjectCollectionRuleDetails.java index a32c4de2672..414a94b1521 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateLogAnalyticsObjectCollectionRuleDetails.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateLogAnalyticsObjectCollectionRuleDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * The configuration details of an Object Storage based collection rule to enable automatic log collection. + * The configuration details of collection rule to enable automatic log collection from an object storage bucket. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -135,6 +135,15 @@ public Builder charEncoding(String charEncoding) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("overrides") private java.util.Map> overrides; @@ -182,6 +191,7 @@ public CreateLogAnalyticsObjectCollectionRuleDetails build() { logSourceName, entityId, charEncoding, + isEnabled, overrides, definedTags, freeformTags); @@ -204,6 +214,7 @@ public Builder copy(CreateLogAnalyticsObjectCollectionRuleDetails o) { .logSourceName(o.getLogSourceName()) .entityId(o.getEntityId()) .charEncoding(o.getCharEncoding()) + .isEnabled(o.getIsEnabled()) .overrides(o.getOverrides()) .definedTags(o.getDefinedTags()) .freeformTags(o.getFreeformTags()); @@ -254,7 +265,6 @@ public static Builder builder() { /** * The type of collection. - * Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE * **/ @com.fasterxml.jackson.annotation.JsonProperty("collectionType") @@ -263,16 +273,16 @@ public static Builder builder() { /** * The oldest time of the file in the bucket to consider for collection. * Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. - * When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error. + * Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error. * **/ @com.fasterxml.jackson.annotation.JsonProperty("pollSince") String pollSince; /** - * The oldest time of the file in the bucket to consider for collection. + * The newest time of the file in the bucket to consider for collection. * Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. - * When collectionType is LIVE, specifying pollTill will result in error. + * Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error. * **/ @com.fasterxml.jackson.annotation.JsonProperty("pollTill") @@ -298,7 +308,7 @@ public static Builder builder() { /** * An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. - * It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, + * It is recommended to set this value as ISO_8859_1 when configuring content of the objects having more numeric characters, * and very few alphabets. * For e.g. this applies when configuring VCN Flow Logs. * @@ -306,6 +316,13 @@ public static Builder builder() { @com.fasterxml.jackson.annotation.JsonProperty("charEncoding") String charEncoding; + /** + * Whether or not this rule is currently enabled. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + Boolean isEnabled; + /** * The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. * Supported propeties for override are - logSourceName, charEncoding. diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateStandardTaskDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateStandardTaskDetails.java index bede2d47534..8a7bc7af293 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateStandardTaskDetails.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateStandardTaskDetails.java @@ -162,6 +162,8 @@ public CreateStandardTaskDetails( /** * Schedules, typically a single schedule. + * Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("schedules") java.util.List schedules; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateViewCommandDescriptor.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateViewCommandDescriptor.java new file mode 100644 index 00000000000..128166e4d85 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/CreateViewCommandDescriptor.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * Command descriptor for querylanguage CREATEVIEW command. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateViewCommandDescriptor.Builder.class +) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "name" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class CreateViewCommandDescriptor extends AbstractCommandDescriptor { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayQueryString") + private String displayQueryString; + + public Builder displayQueryString(String displayQueryString) { + this.displayQueryString = displayQueryString; + this.__explicitlySet__.add("displayQueryString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("internalQueryString") + private String internalQueryString; + + public Builder internalQueryString(String internalQueryString) { + this.internalQueryString = internalQueryString; + this.__explicitlySet__.add("internalQueryString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("category") + private String category; + + public Builder category(String category) { + this.category = category; + this.__explicitlySet__.add("category"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("referencedFields") + private java.util.List referencedFields; + + public Builder referencedFields(java.util.List referencedFields) { + this.referencedFields = referencedFields; + this.__explicitlySet__.add("referencedFields"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("declaredFields") + private java.util.List declaredFields; + + public Builder declaredFields(java.util.List declaredFields) { + this.declaredFields = declaredFields; + this.__explicitlySet__.add("declaredFields"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateViewCommandDescriptor build() { + CreateViewCommandDescriptor __instance__ = + new CreateViewCommandDescriptor( + displayQueryString, + internalQueryString, + category, + referencedFields, + declaredFields); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateViewCommandDescriptor o) { + Builder copiedBuilder = + displayQueryString(o.getDisplayQueryString()) + .internalQueryString(o.getInternalQueryString()) + .category(o.getCategory()) + .referencedFields(o.getReferencedFields()) + .declaredFields(o.getDeclaredFields()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public CreateViewCommandDescriptor( + String displayQueryString, + String internalQueryString, + String category, + java.util.List referencedFields, + java.util.List declaredFields) { + super(displayQueryString, internalQueryString, category, referencedFields, declaredFields); + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EntityCloudType.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EntityCloudType.java index ac433d5af80..f08f0c7ba29 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EntityCloudType.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EntityCloudType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * Nature of log analytics entity type - whether it is a CLOUD or NON_CLOUD (on-premises) type. + * Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise. * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EntityLifecycleStates.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EntityLifecycleStates.java index ae45868a30a..a697799b7f9 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EntityLifecycleStates.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EntityLifecycleStates.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * Possible lifecycle states. + * Log analytics entity lifecycle state. Supported states are ACTIVE, DELETED * **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EstimateRecallDataSizeDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EstimateRecallDataSizeDetails.java new file mode 100644 index 00000000000..96680652aa7 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EstimateRecallDataSizeDetails.java @@ -0,0 +1,89 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * This is the input used to estimate the size of data to be recalled + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EstimateRecallDataSizeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class EstimateRecallDataSizeDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("timeDataStarted") + private java.util.Date timeDataStarted; + + public Builder timeDataStarted(java.util.Date timeDataStarted) { + this.timeDataStarted = timeDataStarted; + this.__explicitlySet__.add("timeDataStarted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeDataEnded") + private java.util.Date timeDataEnded; + + public Builder timeDataEnded(java.util.Date timeDataEnded) { + this.timeDataEnded = timeDataEnded; + this.__explicitlySet__.add("timeDataEnded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EstimateRecallDataSizeDetails build() { + EstimateRecallDataSizeDetails __instance__ = + new EstimateRecallDataSizeDetails(timeDataStarted, timeDataEnded); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EstimateRecallDataSizeDetails o) { + Builder copiedBuilder = + timeDataStarted(o.getTimeDataStarted()).timeDataEnded(o.getTimeDataEnded()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * This is the start of the time range for the data to be recalled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDataStarted") + java.util.Date timeDataStarted; + + /** + * This is the end of the time range for the data to be recalled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDataEnded") + java.util.Date timeDataEnded; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EstimateRecallDataSizeResult.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EstimateRecallDataSizeResult.java new file mode 100644 index 00000000000..4b5b7b0d1da --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EstimateRecallDataSizeResult.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * This is the size and time range of data to be recalled + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EstimateRecallDataSizeResult.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class EstimateRecallDataSizeResult { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("timeDataEnded") + private java.util.Date timeDataEnded; + + public Builder timeDataEnded(java.util.Date timeDataEnded) { + this.timeDataEnded = timeDataEnded; + this.__explicitlySet__.add("timeDataEnded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeDataStarted") + private java.util.Date timeDataStarted; + + public Builder timeDataStarted(java.util.Date timeDataStarted) { + this.timeDataStarted = timeDataStarted; + this.__explicitlySet__.add("timeDataStarted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private Long sizeInBytes; + + public Builder sizeInBytes(Long sizeInBytes) { + this.sizeInBytes = sizeInBytes; + this.__explicitlySet__.add("sizeInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isOverlappingWithExistingRecalls") + private Boolean isOverlappingWithExistingRecalls; + + public Builder isOverlappingWithExistingRecalls(Boolean isOverlappingWithExistingRecalls) { + this.isOverlappingWithExistingRecalls = isOverlappingWithExistingRecalls; + this.__explicitlySet__.add("isOverlappingWithExistingRecalls"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EstimateRecallDataSizeResult build() { + EstimateRecallDataSizeResult __instance__ = + new EstimateRecallDataSizeResult( + timeDataEnded, + timeDataStarted, + sizeInBytes, + isOverlappingWithExistingRecalls); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EstimateRecallDataSizeResult o) { + Builder copiedBuilder = + timeDataEnded(o.getTimeDataEnded()) + .timeDataStarted(o.getTimeDataStarted()) + .sizeInBytes(o.getSizeInBytes()) + .isOverlappingWithExistingRecalls( + o.getIsOverlappingWithExistingRecalls()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * This is the end of the time range of data to be recalled. timeDataStarted and timeDataEnded delineate + * the time range of the archived data to be recalled. They may not be exact the same as the + * parameters in the request input (EstimateRecallDataSizeDetails). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDataEnded") + java.util.Date timeDataEnded; + + /** + * This is the start of the time range of data to be recalled + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDataStarted") + java.util.Date timeDataStarted; + + /** + * This is the size in bytes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + Long sizeInBytes; + + /** + * This indicates if the time range of data to be recalled overlaps with existing recalled data + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isOverlappingWithExistingRecalls") + Boolean isOverlappingWithExistingRecalls; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EstimateReleaseDataSizeDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EstimateReleaseDataSizeDetails.java new file mode 100644 index 00000000000..31bc0f14fd7 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EstimateReleaseDataSizeDetails.java @@ -0,0 +1,89 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * This is the input used to estimate the size of data to be released + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EstimateReleaseDataSizeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class EstimateReleaseDataSizeDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("timeDataStarted") + private java.util.Date timeDataStarted; + + public Builder timeDataStarted(java.util.Date timeDataStarted) { + this.timeDataStarted = timeDataStarted; + this.__explicitlySet__.add("timeDataStarted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeDataEnded") + private java.util.Date timeDataEnded; + + public Builder timeDataEnded(java.util.Date timeDataEnded) { + this.timeDataEnded = timeDataEnded; + this.__explicitlySet__.add("timeDataEnded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EstimateReleaseDataSizeDetails build() { + EstimateReleaseDataSizeDetails __instance__ = + new EstimateReleaseDataSizeDetails(timeDataStarted, timeDataEnded); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EstimateReleaseDataSizeDetails o) { + Builder copiedBuilder = + timeDataStarted(o.getTimeDataStarted()).timeDataEnded(o.getTimeDataEnded()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * This is the start of the time range for the data to be released + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDataStarted") + java.util.Date timeDataStarted; + + /** + * This is the end of the time range for the data to be released + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDataEnded") + java.util.Date timeDataEnded; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EstimateReleaseDataSizeResult.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EstimateReleaseDataSizeResult.java new file mode 100644 index 00000000000..64073b676b0 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EstimateReleaseDataSizeResult.java @@ -0,0 +1,108 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * This is the size and time range of data to be released + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EstimateReleaseDataSizeResult.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class EstimateReleaseDataSizeResult { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("timeDataEnded") + private java.util.Date timeDataEnded; + + public Builder timeDataEnded(java.util.Date timeDataEnded) { + this.timeDataEnded = timeDataEnded; + this.__explicitlySet__.add("timeDataEnded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeDataStarted") + private java.util.Date timeDataStarted; + + public Builder timeDataStarted(java.util.Date timeDataStarted) { + this.timeDataStarted = timeDataStarted; + this.__explicitlySet__.add("timeDataStarted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private Long sizeInBytes; + + public Builder sizeInBytes(Long sizeInBytes) { + this.sizeInBytes = sizeInBytes; + this.__explicitlySet__.add("sizeInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EstimateReleaseDataSizeResult build() { + EstimateReleaseDataSizeResult __instance__ = + new EstimateReleaseDataSizeResult(timeDataEnded, timeDataStarted, sizeInBytes); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EstimateReleaseDataSizeResult o) { + Builder copiedBuilder = + timeDataEnded(o.getTimeDataEnded()) + .timeDataStarted(o.getTimeDataStarted()) + .sizeInBytes(o.getSizeInBytes()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * This is the end of the time range of data to be released. timeDataStarted and timeDataEnded delineate + * the time range of the recalled data to be released. They may not be exact the same as the + * parameters in the request input (EstimateReleaseDataSizeDetails). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDataEnded") + java.util.Date timeDataEnded; + + /** + * This is the start of the time range of data to be released + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDataStarted") + java.util.Date timeDataStarted; + + /** + * This is the size in bytes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + Long sizeInBytes; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EventType.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EventType.java new file mode 100644 index 00000000000..ea5120dad43 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/EventType.java @@ -0,0 +1,119 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * The event type. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = EventType.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class EventType { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("eventTypeName") + private String eventTypeName; + + public Builder eventTypeName(String eventTypeName) { + this.eventTypeName = eventTypeName; + this.__explicitlySet__.add("eventTypeName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("specVersion") + private String specVersion; + + public Builder specVersion(String specVersion) { + this.specVersion = specVersion; + this.__explicitlySet__.add("specVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isSystem") + private Boolean isSystem; + + public Builder isSystem(Boolean isSystem) { + this.isSystem = isSystem; + this.__explicitlySet__.add("isSystem"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EventType build() { + EventType __instance__ = new EventType(eventTypeName, specVersion, isEnabled, isSystem); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EventType o) { + Builder copiedBuilder = + eventTypeName(o.getEventTypeName()) + .specVersion(o.getSpecVersion()) + .isEnabled(o.getIsEnabled()) + .isSystem(o.getIsSystem()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The name of the event type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("eventTypeName") + String eventTypeName; + + /** + * The version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("specVersion") + String specVersion; + + /** + * A flag indicating whether or not the event type is enabled. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + Boolean isEnabled; + + /** + * A flag indicating whether or not the event type is user defined. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSystem") + Boolean isSystem; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/Field.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/Field.java index df517435cdc..f7f5b71bb9f 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/Field.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/Field.java @@ -112,6 +112,15 @@ public Builder filterQueryString(String filterQueryString) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("unitType") + private String unitType; + + public Builder unitType(String unitType) { + this.unitType = unitType; + this.__explicitlySet__.add("unitType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -126,7 +135,8 @@ public Field build() { isGroupable, isDuration, alias, - filterQueryString); + filterQueryString, + unitType); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @@ -142,7 +152,8 @@ public Builder copy(Field o) { .isGroupable(o.getIsGroupable()) .isDuration(o.getIsDuration()) .alias(o.getAlias()) - .filterQueryString(o.getFilterQueryString()); + .filterQueryString(o.getFilterQueryString()) + .unitType(o.getUnitType()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -166,7 +177,8 @@ public Field( Boolean isGroupable, Boolean isDuration, String alias, - String filterQueryString) { + String filterQueryString, + String unitType) { super( displayName, isDeclared, @@ -176,7 +188,8 @@ public Field( isGroupable, isDuration, alias, - filterQueryString); + filterQueryString, + unitType); } @com.fasterxml.jackson.annotation.JsonIgnore diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/FieldsAddRemoveField.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/FieldsAddRemoveField.java index 15de290875c..21ec6a00961 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/FieldsAddRemoveField.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/FieldsAddRemoveField.java @@ -114,6 +114,15 @@ public Builder filterQueryString(String filterQueryString) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("unitType") + private String unitType; + + public Builder unitType(String unitType) { + this.unitType = unitType; + this.__explicitlySet__.add("unitType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("operation") private Operation operation; @@ -138,6 +147,7 @@ public FieldsAddRemoveField build() { isDuration, alias, filterQueryString, + unitType, operation); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; @@ -155,6 +165,7 @@ public Builder copy(FieldsAddRemoveField o) { .isDuration(o.getIsDuration()) .alias(o.getAlias()) .filterQueryString(o.getFilterQueryString()) + .unitType(o.getUnitType()) .operation(o.getOperation()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); @@ -180,6 +191,7 @@ public FieldsAddRemoveField( Boolean isDuration, String alias, String filterQueryString, + String unitType, Operation operation) { super( displayName, @@ -190,7 +202,8 @@ public FieldsAddRemoveField( isGroupable, isDuration, alias, - filterQueryString); + filterQueryString, + unitType); this.operation = operation; } diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/FunctionField.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/FunctionField.java index ae733107268..3c19dc46442 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/FunctionField.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/FunctionField.java @@ -112,6 +112,15 @@ public Builder filterQueryString(String filterQueryString) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("unitType") + private String unitType; + + public Builder unitType(String unitType) { + this.unitType = unitType; + this.__explicitlySet__.add("unitType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("function") private String function; @@ -145,6 +154,7 @@ public FunctionField build() { isDuration, alias, filterQueryString, + unitType, function, arguments); __instance__.__explicitlySet__.addAll(__explicitlySet__); @@ -163,6 +173,7 @@ public Builder copy(FunctionField o) { .isDuration(o.getIsDuration()) .alias(o.getAlias()) .filterQueryString(o.getFilterQueryString()) + .unitType(o.getUnitType()) .function(o.getFunction()) .arguments(o.getArguments()); @@ -189,6 +200,7 @@ public FunctionField( Boolean isDuration, String alias, String filterQueryString, + String unitType, String function, java.util.List arguments) { super( @@ -200,7 +212,8 @@ public FunctionField( isGroupable, isDuration, alias, - filterQueryString); + filterQueryString, + unitType); this.function = function; this.arguments = arguments; } diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/HighlightGroupsCommandDescriptor.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/HighlightGroupsCommandDescriptor.java new file mode 100644 index 00000000000..78670ee70ae --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/HighlightGroupsCommandDescriptor.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * Command descriptor for querylanguage HIGHLIGHTGROUPS command. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HighlightGroupsCommandDescriptor.Builder.class +) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "name" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class HighlightGroupsCommandDescriptor extends AbstractCommandDescriptor { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayQueryString") + private String displayQueryString; + + public Builder displayQueryString(String displayQueryString) { + this.displayQueryString = displayQueryString; + this.__explicitlySet__.add("displayQueryString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("internalQueryString") + private String internalQueryString; + + public Builder internalQueryString(String internalQueryString) { + this.internalQueryString = internalQueryString; + this.__explicitlySet__.add("internalQueryString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("category") + private String category; + + public Builder category(String category) { + this.category = category; + this.__explicitlySet__.add("category"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("referencedFields") + private java.util.List referencedFields; + + public Builder referencedFields(java.util.List referencedFields) { + this.referencedFields = referencedFields; + this.__explicitlySet__.add("referencedFields"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("declaredFields") + private java.util.List declaredFields; + + public Builder declaredFields(java.util.List declaredFields) { + this.declaredFields = declaredFields; + this.__explicitlySet__.add("declaredFields"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("color") + private String color; + + public Builder color(String color) { + this.color = color; + this.__explicitlySet__.add("color"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("priority") + private String priority; + + public Builder priority(String priority) { + this.priority = priority; + this.__explicitlySet__.add("priority"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fields") + private java.util.List fields; + + public Builder fields(java.util.List fields) { + this.fields = fields; + this.__explicitlySet__.add("fields"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keywords") + private java.util.List keywords; + + public Builder keywords(java.util.List keywords) { + this.keywords = keywords; + this.__explicitlySet__.add("keywords"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subQueries") + private java.util.List subQueries; + + public Builder subQueries(java.util.List subQueries) { + this.subQueries = subQueries; + this.__explicitlySet__.add("subQueries"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HighlightGroupsCommandDescriptor build() { + HighlightGroupsCommandDescriptor __instance__ = + new HighlightGroupsCommandDescriptor( + displayQueryString, + internalQueryString, + category, + referencedFields, + declaredFields, + color, + priority, + fields, + keywords, + subQueries); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HighlightGroupsCommandDescriptor o) { + Builder copiedBuilder = + displayQueryString(o.getDisplayQueryString()) + .internalQueryString(o.getInternalQueryString()) + .category(o.getCategory()) + .referencedFields(o.getReferencedFields()) + .declaredFields(o.getDeclaredFields()) + .color(o.getColor()) + .priority(o.getPriority()) + .fields(o.getFields()) + .keywords(o.getKeywords()) + .subQueries(o.getSubQueries()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public HighlightGroupsCommandDescriptor( + String displayQueryString, + String internalQueryString, + String category, + java.util.List referencedFields, + java.util.List declaredFields, + String color, + String priority, + java.util.List fields, + java.util.List keywords, + java.util.List subQueries) { + super(displayQueryString, internalQueryString, category, referencedFields, declaredFields); + this.color = color; + this.priority = priority; + this.fields = fields; + this.keywords = keywords; + this.subQueries = subQueries; + } + + /** + * User specified color to highlight matches with if found. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("color") + String color; + + /** + * User specified priority assigned to highlighted matches if found. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("priority") + String priority; + + /** + * List of fields to search for terms or phrases to highlight. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fields") + java.util.List fields; + + /** + * List of terms or phrases to highlight if found. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("keywords") + java.util.List keywords; + + /** + * List of subQueries specified as highlightgroups command arguments + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subQueries") + java.util.List subQueries; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/HighlightRowsCommandDescriptor.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/HighlightRowsCommandDescriptor.java index e436baf4191..9340893e2b6 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/HighlightRowsCommandDescriptor.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/HighlightRowsCommandDescriptor.java @@ -78,6 +78,15 @@ public Builder declaredFields(java.util.List declaredFields) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("color") + private String color; + + public Builder color(String color) { + this.color = color; + this.__explicitlySet__.add("color"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("keywords") private java.util.List keywords; @@ -98,6 +107,7 @@ public HighlightRowsCommandDescriptor build() { category, referencedFields, declaredFields, + color, keywords); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; @@ -111,6 +121,7 @@ public Builder copy(HighlightRowsCommandDescriptor o) { .category(o.getCategory()) .referencedFields(o.getReferencedFields()) .declaredFields(o.getDeclaredFields()) + .color(o.getColor()) .keywords(o.getKeywords()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); @@ -132,11 +143,20 @@ public HighlightRowsCommandDescriptor( String category, java.util.List referencedFields, java.util.List declaredFields, + String color, java.util.List keywords) { super(displayQueryString, internalQueryString, category, referencedFields, declaredFields); + this.color = color; this.keywords = keywords; } + /** + * User specified color to highlight matches with if found. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("color") + String color; + /** * List of terms or phrases to find to mark the result row as highlighted. * diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsConfigWorkRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsConfigWorkRequest.java index ceba3a6c0bc..63fdbe60562 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsConfigWorkRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsConfigWorkRequest.java @@ -169,6 +169,9 @@ public static Builder builder() { public enum OperationType { CreateAssociations("CREATE_ASSOCIATIONS"), DeleteAssociations("DELETE_ASSOCIATIONS"), + AppendLookupData("APPEND_LOOKUP_DATA"), + UpdateLookupData("UPDATE_LOOKUP_DATA"), + DeleteLookup("DELETE_LOOKUP"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsConfigWorkRequestPayload.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsConfigWorkRequestPayload.java index 0c25c025d16..244cc129840 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsConfigWorkRequestPayload.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsConfigWorkRequestPayload.java @@ -53,12 +53,22 @@ public Builder lookupReference(Long lookupReference) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("lookupReferenceString") + private String lookupReferenceString; + + public Builder lookupReferenceString(String lookupReferenceString) { + this.lookupReferenceString = lookupReferenceString; + this.__explicitlySet__.add("lookupReferenceString"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public LogAnalyticsConfigWorkRequestPayload build() { LogAnalyticsConfigWorkRequestPayload __instance__ = - new LogAnalyticsConfigWorkRequestPayload(sourceName, entityId, lookupReference); + new LogAnalyticsConfigWorkRequestPayload( + sourceName, entityId, lookupReference, lookupReferenceString); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @@ -68,7 +78,8 @@ public Builder copy(LogAnalyticsConfigWorkRequestPayload o) { Builder copiedBuilder = sourceName(o.getSourceName()) .entityId(o.getEntityId()) - .lookupReference(o.getLookupReference()); + .lookupReference(o.getLookupReference()) + .lookupReferenceString(o.getLookupReferenceString()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -100,6 +111,12 @@ public static Builder builder() { @com.fasterxml.jackson.annotation.JsonProperty("lookupReference") Long lookupReference; + /** + * lookupReference + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lookupReferenceString") + String lookupReferenceString; + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); } diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsConfigWorkRequestSummary.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsConfigWorkRequestSummary.java index 589accbd160..50418f5e5a1 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsConfigWorkRequestSummary.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsConfigWorkRequestSummary.java @@ -147,6 +147,9 @@ public static Builder builder() { public enum OperationType { CreateAssociations("CREATE_ASSOCIATIONS"), DeleteAssociations("DELETE_ASSOCIATIONS"), + AppendLookupData("APPEND_LOOKUP_DATA"), + UpdateLookupData("UPDATE_LOOKUP_DATA"), + DeleteLookup("DELETE_LOOKUP"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntity.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntity.java index da86449e83b..b610684df11 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntity.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntity.java @@ -283,7 +283,7 @@ public static Builder builder() { String id; /** - * Log analytics entity name. The name must be unique, within the tenancy, and cannot be changed. + * Log analytics entity name. * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntitySummary.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntitySummary.java index 0a354fb360d..2ecb03e6c10 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntitySummary.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntitySummary.java @@ -239,7 +239,7 @@ public static Builder builder() { String id; /** - * Log analytics entity name. The name must be unique, within the tenancy, and cannot be changed. + * Log analytics entity name. * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntityType.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntityType.java index a4f55f88117..15e18a3fe91 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntityType.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntityType.java @@ -180,7 +180,7 @@ public static Builder builder() { String category; /** - * Nature of log analytics entity type. + * Log analytics entity type group. That can be CLOUD (OCI) or NON_CLOUD otherwise. * **/ @com.fasterxml.jackson.annotation.JsonProperty("cloudType") @@ -194,7 +194,7 @@ public static Builder builder() { java.util.List properties; /** - * The current state of the log analytics entity. + * The current lifecycle state of the log analytics entity. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntityTypeSummary.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntityTypeSummary.java index 11179f9a390..d90b5f0a2ea 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntityTypeSummary.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsEntityTypeSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * Summary of an log analytics entity type. + * Summary of a log analytics entity type. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -152,14 +152,14 @@ public static Builder builder() { String category; /** - * Nature of log analytics entity type. + * Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise. * **/ @com.fasterxml.jackson.annotation.JsonProperty("cloudType") EntityCloudType cloudType; /** - * The current state of the log analytics entity + * The current lifecycle state of the log analytics entity type. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsLookup.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsLookup.java index 033df42aba1..501499a7a27 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsLookup.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsLookup.java @@ -80,6 +80,24 @@ public Builder lookupReference(Long lookupReference) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("lookupReferenceString") + private String lookupReferenceString; + + public Builder lookupReferenceString(String lookupReferenceString) { + this.lookupReferenceString = lookupReferenceString; + this.__explicitlySet__.add("lookupReferenceString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; @@ -155,6 +173,8 @@ public LogAnalyticsLookup build() { editVersion, fields, lookupReference, + lookupReferenceString, + type, name, isBuiltIn, isHidden, @@ -175,6 +195,8 @@ public Builder copy(LogAnalyticsLookup o) { .editVersion(o.getEditVersion()) .fields(o.getFields()) .lookupReference(o.getLookupReference()) + .lookupReferenceString(o.getLookupReferenceString()) + .type(o.getType()) .name(o.getName()) .isBuiltIn(o.getIsBuiltIn()) .isHidden(o.getIsHidden()) @@ -226,11 +248,67 @@ public static Builder builder() { java.util.List fields; /** - * lookupReference + * The lookup reference as an integer. **/ @com.fasterxml.jackson.annotation.JsonProperty("lookupReference") Long lookupReference; + /** + * The lookup reference as a string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lookupReferenceString") + String lookupReferenceString; + /** + * The lookup type. Valid values are LOOKUP or DICTIONARY. + **/ + @lombok.extern.slf4j.Slf4j + public enum Type { + Lookup("Lookup"), + Dictionary("Dictionary"), + + /** + * 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 final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** + * The lookup type. Valid values are LOOKUP or DICTIONARY. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + Type type; + /** * iname **/ diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsLookupCollection.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsLookupCollection.java new file mode 100644 index 00000000000..5bfe44e9aff --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsLookupCollection.java @@ -0,0 +1,71 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * LogAnalytics Lookup Collection + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LogAnalyticsLookupCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class LogAnalyticsLookupCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + 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 LogAnalyticsLookupCollection build() { + LogAnalyticsLookupCollection __instance__ = new LogAnalyticsLookupCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LogAnalyticsLookupCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * list of fields + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsLookupFields.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsLookupFields.java new file mode 100644 index 00000000000..b1e6d5cd3a1 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsLookupFields.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * LogAnalyticsLookupFields + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LogAnalyticsLookupFields.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class LogAnalyticsLookupFields { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("commonFieldName") + private String commonFieldName; + + public Builder commonFieldName(String commonFieldName) { + this.commonFieldName = commonFieldName; + this.__explicitlySet__.add("commonFieldName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("defaultMatchValue") + private String defaultMatchValue; + + public Builder defaultMatchValue(String defaultMatchValue) { + this.defaultMatchValue = defaultMatchValue; + this.__explicitlySet__.add("defaultMatchValue"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isCommonField") + private Boolean isCommonField; + + public Builder isCommonField(Boolean isCommonField) { + this.isCommonField = isCommonField; + this.__explicitlySet__.add("isCommonField"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("matchOperator") + private String matchOperator; + + public Builder matchOperator(String matchOperator) { + this.matchOperator = matchOperator; + this.__explicitlySet__.add("matchOperator"); + 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("position") + private Long position; + + public Builder position(Long position) { + this.position = position; + this.__explicitlySet__.add("position"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LogAnalyticsLookupFields build() { + LogAnalyticsLookupFields __instance__ = + new LogAnalyticsLookupFields( + commonFieldName, + defaultMatchValue, + displayName, + isCommonField, + matchOperator, + name, + position); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LogAnalyticsLookupFields o) { + Builder copiedBuilder = + commonFieldName(o.getCommonFieldName()) + .defaultMatchValue(o.getDefaultMatchValue()) + .displayName(o.getDisplayName()) + .isCommonField(o.getIsCommonField()) + .matchOperator(o.getMatchOperator()) + .name(o.getName()) + .position(o.getPosition()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The common field name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("commonFieldName") + String commonFieldName; + + /** + * The default match value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultMatchValue") + String defaultMatchValue; + + /** + * The display name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * A flag indicating whether or not the field is a common field. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isCommonField") + Boolean isCommonField; + + /** + * The match operator. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("matchOperator") + String matchOperator; + + /** + * The field name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * The position. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("position") + Long position; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsObjectCollectionRule.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsObjectCollectionRule.java index c8e680c86fd..52de7cafbe4 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsObjectCollectionRule.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsObjectCollectionRule.java @@ -155,9 +155,9 @@ public Builder overrides( } @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LifecycleState lifecycleState; + private ObjectCollectionRuleLifecycleStates lifecycleState; - public Builder lifecycleState(LifecycleState lifecycleState) { + public Builder lifecycleState(ObjectCollectionRuleLifecycleStates lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; @@ -190,6 +190,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") private java.util.Map> definedTags; @@ -233,6 +242,7 @@ public LogAnalyticsObjectCollectionRule build() { lifecycleDetails, timeCreated, timeUpdated, + isEnabled, definedTags, freeformTags); __instance__.__explicitlySet__.addAll(__explicitlySet__); @@ -260,6 +270,7 @@ public Builder copy(LogAnalyticsObjectCollectionRule o) { .lifecycleDetails(o.getLifecycleDetails()) .timeCreated(o.getTimeCreated()) .timeUpdated(o.getTimeUpdated()) + .isEnabled(o.getIsEnabled()) .definedTags(o.getDefinedTags()) .freeformTags(o.getFreeformTags()); @@ -314,8 +325,7 @@ public static Builder builder() { String osBucketName; /** - * The type of collection. - * Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE + * The type of log collection. * **/ @com.fasterxml.jackson.annotation.JsonProperty("collectionType") @@ -324,16 +334,16 @@ public static Builder builder() { /** * The oldest time of the file in the bucket to consider for collection. * Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. - * When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error. + * Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error. * **/ @com.fasterxml.jackson.annotation.JsonProperty("pollSince") String pollSince; /** - * The oldest time of the file in the bucket to consider for collection. + * The newest time of the file in the bucket to consider for collection. * Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. - * When collectionType is LIVE, specifying pollTill will result in error. + * Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error. * **/ @com.fasterxml.jackson.annotation.JsonProperty("pollTill") @@ -359,7 +369,7 @@ public static Builder builder() { /** * An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. - * It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, + * It is recommended to set this value as ISO_8859_1 when configuring content of the objects having more numeric characters, * and very few alphabets. * For e.g. this applies when configuring VCN Flow Logs. * @@ -375,59 +385,13 @@ public static Builder builder() { **/ @com.fasterxml.jackson.annotation.JsonProperty("overrides") java.util.Map> overrides; - /** - * The current state of the rule. - * - **/ - @lombok.extern.slf4j.Slf4j - public enum LifecycleState { - Active("ACTIVE"), - Deleted("DELETED"), - - /** - * 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 final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (LifecycleState v : LifecycleState.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - LifecycleState(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static LifecycleState create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; /** * The current state of the rule. * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - LifecycleState lifecycleState; + ObjectCollectionRuleLifecycleStates lifecycleState; /** * A detailed status of the life cycle state. @@ -447,6 +411,13 @@ public static LifecycleState create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") java.util.Date timeUpdated; + /** + * Whether or not this rule is currently enabled. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + Boolean isEnabled; + /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsObjectCollectionRuleCollection.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsObjectCollectionRuleCollection.java index 50054472596..b6be9e15c29 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsObjectCollectionRuleCollection.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsObjectCollectionRuleCollection.java @@ -62,7 +62,7 @@ public static Builder builder() { } /** - * list of LogAnalyticsObjectCollectionRuleSummary objects. + * List of LogAnalyticsObjectCollectionRuleSummary objects. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") java.util.List items; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsObjectCollectionRuleSummary.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsObjectCollectionRuleSummary.java index 76f324c14bd..e9b5c887267 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsObjectCollectionRuleSummary.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsObjectCollectionRuleSummary.java @@ -91,10 +91,9 @@ public Builder collectionType(ObjectCollectionRuleCollectionTypes collectionType } @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LogAnalyticsObjectCollectionRule.LifecycleState lifecycleState; + private ObjectCollectionRuleLifecycleStates lifecycleState; - public Builder lifecycleState( - LogAnalyticsObjectCollectionRule.LifecycleState lifecycleState) { + public Builder lifecycleState(ObjectCollectionRuleLifecycleStates lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; @@ -127,6 +126,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") private java.util.Map> definedTags; @@ -163,6 +171,7 @@ public LogAnalyticsObjectCollectionRuleSummary build() { lifecycleDetails, timeCreated, timeUpdated, + isEnabled, definedTags, freeformTags); __instance__.__explicitlySet__.addAll(__explicitlySet__); @@ -183,6 +192,7 @@ public Builder copy(LogAnalyticsObjectCollectionRuleSummary o) { .lifecycleDetails(o.getLifecycleDetails()) .timeCreated(o.getTimeCreated()) .timeUpdated(o.getTimeUpdated()) + .isEnabled(o.getIsEnabled()) .definedTags(o.getDefinedTags()) .freeformTags(o.getFreeformTags()); @@ -237,8 +247,7 @@ public static Builder builder() { String osBucketName; /** - * The type of collection. - * Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE + * The type of log collection. * **/ @com.fasterxml.jackson.annotation.JsonProperty("collectionType") @@ -249,7 +258,7 @@ public static Builder builder() { * **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - LogAnalyticsObjectCollectionRule.LifecycleState lifecycleState; + ObjectCollectionRuleLifecycleStates lifecycleState; /** * A detailed status of the life cycle state. @@ -269,6 +278,13 @@ public static Builder builder() { @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") java.util.Date timeUpdated; + /** + * Whether or not this rule is currently enabled. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + Boolean isEnabled; + /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsSource.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsSource.java index b331a9c3674..830e6cd69c5 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsSource.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsSource.java @@ -348,6 +348,15 @@ public Builder timeUpdated(java.util.Date timeUpdated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("eventTypes") + private java.util.List eventTypes; + + public Builder eventTypes(java.util.List eventTypes) { + this.eventTypes = eventTypes; + this.__explicitlySet__.add("eventTypes"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -388,7 +397,8 @@ public LogAnalyticsSource build() { entityTypes, isTimezoneOverride, userParsers, - timeUpdated); + timeUpdated, + eventTypes); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @@ -430,7 +440,8 @@ public Builder copy(LogAnalyticsSource o) { .entityTypes(o.getEntityTypes()) .isTimezoneOverride(o.getIsTimezoneOverride()) .userParsers(o.getUserParsers()) - .timeUpdated(o.getTimeUpdated()); + .timeUpdated(o.getTimeUpdated()) + .eventTypes(o.getEventTypes()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -654,6 +665,12 @@ public static Builder builder() { @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") java.util.Date timeUpdated; + /** + * An array of event types. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("eventTypes") + java.util.List eventTypes; + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); } diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsWarning.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsWarning.java new file mode 100644 index 00000000000..648037bef43 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsWarning.java @@ -0,0 +1,502 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * LogAnalyticsWarning + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LogAnalyticsWarning.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class LogAnalyticsWarning { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("agentId") + private String agentId; + + public Builder agentId(String agentId) { + this.agentId = agentId; + this.__explicitlySet__.add("agentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private String hostName; + + public Builder hostName(String hostName) { + this.hostName = hostName; + this.__explicitlySet__.add("hostName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ruleDisplayName") + private String ruleDisplayName; + + public Builder ruleDisplayName(String ruleDisplayName) { + this.ruleDisplayName = ruleDisplayName; + this.__explicitlySet__.add("ruleDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceName") + private String sourceName; + + public Builder sourceName(String sourceName) { + this.sourceName = sourceName; + this.__explicitlySet__.add("sourceName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceDisplayName") + private String sourceDisplayName; + + public Builder sourceDisplayName(String sourceDisplayName) { + this.sourceDisplayName = sourceDisplayName; + this.__explicitlySet__.add("sourceDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entityName") + private String entityName; + + public Builder entityName(String entityName) { + this.entityName = entityName; + this.__explicitlySet__.add("entityName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCollected") + private java.util.Date timeCollected; + + public Builder timeCollected(java.util.Date timeCollected) { + this.timeCollected = timeCollected; + this.__explicitlySet__.add("timeCollected"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("warningId") + private String warningId; + + public Builder warningId(String warningId) { + this.warningId = warningId; + this.__explicitlySet__.add("warningId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeOfInitialWarning") + private java.util.Date timeOfInitialWarning; + + public Builder timeOfInitialWarning(java.util.Date timeOfInitialWarning) { + this.timeOfInitialWarning = timeOfInitialWarning; + this.__explicitlySet__.add("timeOfInitialWarning"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private Boolean isActive; + + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + this.__explicitlySet__.add("isActive"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isSuppressed") + private Boolean isSuppressed; + + public Builder isSuppressed(Boolean isSuppressed) { + this.isSuppressed = isSuppressed; + this.__explicitlySet__.add("isSuppressed"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeOfLatestWarning") + private java.util.Date timeOfLatestWarning; + + public Builder timeOfLatestWarning(java.util.Date timeOfLatestWarning) { + this.timeOfLatestWarning = timeOfLatestWarning; + this.__explicitlySet__.add("timeOfLatestWarning"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("warningLevel") + private String warningLevel; + + public Builder warningLevel(String warningLevel) { + this.warningLevel = warningLevel; + this.__explicitlySet__.add("warningLevel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("warningMessage") + private String warningMessage; + + public Builder warningMessage(String warningMessage) { + this.warningMessage = warningMessage; + this.__explicitlySet__.add("warningMessage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("patternId") + private String patternId; + + public Builder patternId(String patternId) { + this.patternId = patternId; + this.__explicitlySet__.add("patternId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("patternText") + private String patternText; + + public Builder patternText(String patternText) { + this.patternText = patternText; + this.__explicitlySet__.add("patternText"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ruleId") + private String ruleId; + + public Builder ruleId(String ruleId) { + this.ruleId = ruleId; + this.__explicitlySet__.add("ruleId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceId") + private String sourceId; + + public Builder sourceId(String sourceId) { + this.sourceId = sourceId; + this.__explicitlySet__.add("sourceId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("suppressedBy") + private String suppressedBy; + + public Builder suppressedBy(String suppressedBy) { + this.suppressedBy = suppressedBy; + this.__explicitlySet__.add("suppressedBy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entityId") + private String entityId; + + public Builder entityId(String entityId) { + this.entityId = entityId; + this.__explicitlySet__.add("entityId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + public Builder entityType(String entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entityTypeDisplayName") + private String entityTypeDisplayName; + + public Builder entityTypeDisplayName(String entityTypeDisplayName) { + this.entityTypeDisplayName = entityTypeDisplayName; + this.__explicitlySet__.add("entityTypeDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("typeDisplayName") + private String typeDisplayName; + + public Builder typeDisplayName(String typeDisplayName) { + this.typeDisplayName = typeDisplayName; + this.__explicitlySet__.add("typeDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("typeName") + private String typeName; + + public Builder typeName(String typeName) { + this.typeName = typeName; + this.__explicitlySet__.add("typeName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private Integer severity; + + public Builder severity(Integer severity) { + this.severity = severity; + this.__explicitlySet__.add("severity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LogAnalyticsWarning build() { + LogAnalyticsWarning __instance__ = + new LogAnalyticsWarning( + agentId, + hostName, + ruleDisplayName, + sourceName, + compartmentId, + sourceDisplayName, + entityName, + timeCollected, + warningId, + timeOfInitialWarning, + isActive, + isSuppressed, + timeOfLatestWarning, + warningLevel, + warningMessage, + patternId, + patternText, + ruleId, + sourceId, + suppressedBy, + entityId, + entityType, + entityTypeDisplayName, + typeDisplayName, + typeName, + severity); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LogAnalyticsWarning o) { + Builder copiedBuilder = + agentId(o.getAgentId()) + .hostName(o.getHostName()) + .ruleDisplayName(o.getRuleDisplayName()) + .sourceName(o.getSourceName()) + .compartmentId(o.getCompartmentId()) + .sourceDisplayName(o.getSourceDisplayName()) + .entityName(o.getEntityName()) + .timeCollected(o.getTimeCollected()) + .warningId(o.getWarningId()) + .timeOfInitialWarning(o.getTimeOfInitialWarning()) + .isActive(o.getIsActive()) + .isSuppressed(o.getIsSuppressed()) + .timeOfLatestWarning(o.getTimeOfLatestWarning()) + .warningLevel(o.getWarningLevel()) + .warningMessage(o.getWarningMessage()) + .patternId(o.getPatternId()) + .patternText(o.getPatternText()) + .ruleId(o.getRuleId()) + .sourceId(o.getSourceId()) + .suppressedBy(o.getSuppressedBy()) + .entityId(o.getEntityId()) + .entityType(o.getEntityType()) + .entityTypeDisplayName(o.getEntityTypeDisplayName()) + .typeDisplayName(o.getTypeDisplayName()) + .typeName(o.getTypeName()) + .severity(o.getSeverity()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The unique identifier of the agent associated with the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("agentId") + String agentId; + + /** + * The host containing the agent associated with the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + String hostName; + + /** + * The display name of the rule which triggered the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ruleDisplayName") + String ruleDisplayName; + + /** + * The name of the source associated with the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceName") + String sourceName; + + /** + * The entity compartment ID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * The display name of the source associated with the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDisplayName") + String sourceDisplayName; + + /** + * The name of the entity associated with the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityName") + String entityName; + + /** + * The time at which the warning was most recently collected + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCollected") + java.util.Date timeCollected; + + /** + * The unique identifier of the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warningId") + String warningId; + + /** + * The date at which the warning was initially triggered + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfInitialWarning") + java.util.Date timeOfInitialWarning; + + /** + * A flag indicating if the warning is currently active + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + Boolean isActive; + + /** + * A flag indicating if the warning is currently suppressed + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSuppressed") + Boolean isSuppressed; + + /** + * The most recent date on which the warning was triggered + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfLatestWarning") + java.util.Date timeOfLatestWarning; + + /** + * The warning level - either pattern, rule, or source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warningLevel") + String warningLevel; + + /** + * A description of the warning intended for the consumer of the warning. It will + * usually detail the cause of the warning, may suggest a remedy, and can contain any + * other relevant information the consumer might find useful + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warningMessage") + String warningMessage; + + /** + * The unique identifier of the warning pattern + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patternId") + String patternId; + + /** + * The text of the pattern used by the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("patternText") + String patternText; + + /** + * The unique identifier of the rule associated with the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ruleId") + String ruleId; + + /** + * The unique identifier of the source associated with the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceId") + String sourceId; + + /** + * The user who suppressed the warning, or empty if the warning is not suppressed + **/ + @com.fasterxml.jackson.annotation.JsonProperty("suppressedBy") + String suppressedBy; + + /** + * The unique identifier of the entity associated with the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityId") + String entityId; + + /** + * The type of the entity associated with the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + String entityType; + + /** + * The display name of the entity type associated with the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityTypeDisplayName") + String entityTypeDisplayName; + + /** + * The display name of the warning type + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeDisplayName") + String typeDisplayName; + + /** + * The internal name of the warning + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeName") + String typeName; + + /** + * The warning severity + **/ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + Integer severity; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsWarningCollection.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsWarningCollection.java new file mode 100644 index 00000000000..dd1953bf483 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/LogAnalyticsWarningCollection.java @@ -0,0 +1,71 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * A collection of warnings. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LogAnalyticsWarningCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class LogAnalyticsWarningCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + 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 LogAnalyticsWarningCollection build() { + LogAnalyticsWarningCollection __instance__ = new LogAnalyticsWarningCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LogAnalyticsWarningCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A collection of LogAnalyticsWarnings + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/MapCommandDescriptor.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/MapCommandDescriptor.java new file mode 100644 index 00000000000..a171b4dfc09 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/MapCommandDescriptor.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * Command descriptor for querylanguage MAP command. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MapCommandDescriptor.Builder.class +) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "name" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class MapCommandDescriptor extends AbstractCommandDescriptor { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayQueryString") + private String displayQueryString; + + public Builder displayQueryString(String displayQueryString) { + this.displayQueryString = displayQueryString; + this.__explicitlySet__.add("displayQueryString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("internalQueryString") + private String internalQueryString; + + public Builder internalQueryString(String internalQueryString) { + this.internalQueryString = internalQueryString; + this.__explicitlySet__.add("internalQueryString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("category") + private String category; + + public Builder category(String category) { + this.category = category; + this.__explicitlySet__.add("category"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("referencedFields") + private java.util.List referencedFields; + + public Builder referencedFields(java.util.List referencedFields) { + this.referencedFields = referencedFields; + this.__explicitlySet__.add("referencedFields"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("declaredFields") + private java.util.List declaredFields; + + public Builder declaredFields(java.util.List declaredFields) { + this.declaredFields = declaredFields; + this.__explicitlySet__.add("declaredFields"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MapCommandDescriptor build() { + MapCommandDescriptor __instance__ = + new MapCommandDescriptor( + displayQueryString, + internalQueryString, + category, + referencedFields, + declaredFields); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MapCommandDescriptor o) { + Builder copiedBuilder = + displayQueryString(o.getDisplayQueryString()) + .internalQueryString(o.getInternalQueryString()) + .category(o.getCategory()) + .referencedFields(o.getReferencedFields()) + .declaredFields(o.getDeclaredFields()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public MapCommandDescriptor( + String displayQueryString, + String internalQueryString, + String category, + java.util.List referencedFields, + java.util.List declaredFields) { + super(displayQueryString, internalQueryString, category, referencedFields, declaredFields); + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/MetricExtraction.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/MetricExtraction.java new file mode 100644 index 00000000000..87cb1ec37bf --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/MetricExtraction.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * Specify metric extraction for SAVED_SEARCH scheduled task execution + * to post to OCI Monitoring. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MetricExtraction.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class MetricExtraction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metricName") + private String metricName; + + public Builder metricName(String metricName) { + this.metricName = metricName; + this.__explicitlySet__.add("metricName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceGroup") + private String resourceGroup; + + public Builder resourceGroup(String resourceGroup) { + this.resourceGroup = resourceGroup; + this.__explicitlySet__.add("resourceGroup"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MetricExtraction build() { + MetricExtraction __instance__ = + new MetricExtraction(compartmentId, namespace, metricName, resourceGroup); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MetricExtraction o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .namespace(o.getNamespace()) + .metricName(o.getMetricName()) + .resourceGroup(o.getResourceGroup()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The compartment OCID (/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * The namespace of the extracted metric. + * A valid value starts with an alphabetical character and includes only + * alphanumeric characters and underscores (_). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + String namespace; + + /** + * The metric name of the extracted metric. + * A valid value starts with an alphabetical character and includes only + * alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metricName") + String metricName; + + /** + * The resourceGroup of the extracted metric. + * A valid value starts with an alphabetical character and includes only + * alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resourceGroup") + String resourceGroup; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/NlpCommandDescriptor.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/NlpCommandDescriptor.java new file mode 100644 index 00000000000..778af99d845 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/NlpCommandDescriptor.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * Command descriptor for querylanguage NLP command. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NlpCommandDescriptor.Builder.class +) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "name" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class NlpCommandDescriptor extends AbstractCommandDescriptor { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayQueryString") + private String displayQueryString; + + public Builder displayQueryString(String displayQueryString) { + this.displayQueryString = displayQueryString; + this.__explicitlySet__.add("displayQueryString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("internalQueryString") + private String internalQueryString; + + public Builder internalQueryString(String internalQueryString) { + this.internalQueryString = internalQueryString; + this.__explicitlySet__.add("internalQueryString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("category") + private String category; + + public Builder category(String category) { + this.category = category; + this.__explicitlySet__.add("category"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("referencedFields") + private java.util.List referencedFields; + + public Builder referencedFields(java.util.List referencedFields) { + this.referencedFields = referencedFields; + this.__explicitlySet__.add("referencedFields"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("declaredFields") + private java.util.List declaredFields; + + public Builder declaredFields(java.util.List declaredFields) { + this.declaredFields = declaredFields; + this.__explicitlySet__.add("declaredFields"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NlpCommandDescriptor build() { + NlpCommandDescriptor __instance__ = + new NlpCommandDescriptor( + displayQueryString, + internalQueryString, + category, + referencedFields, + declaredFields); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NlpCommandDescriptor o) { + Builder copiedBuilder = + displayQueryString(o.getDisplayQueryString()) + .internalQueryString(o.getInternalQueryString()) + .category(o.getCategory()) + .referencedFields(o.getReferencedFields()) + .declaredFields(o.getDeclaredFields()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public NlpCommandDescriptor( + String displayQueryString, + String internalQueryString, + String category, + java.util.List referencedFields, + java.util.List declaredFields) { + super(displayQueryString, internalQueryString, category, referencedFields, declaredFields); + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ObjectCollectionRuleLifecycleStates.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ObjectCollectionRuleLifecycleStates.java new file mode 100644 index 00000000000..f477bf49d25 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ObjectCollectionRuleLifecycleStates.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * Possible object collection rule life cycle states. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.extern.slf4j.Slf4j +public enum ObjectCollectionRuleLifecycleStates { + Active("ACTIVE"), + Deleted("DELETED"), + Inactive("INACTIVE"), + + /** + * 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 final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ObjectCollectionRuleLifecycleStates v : ObjectCollectionRuleLifecycleStates.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ObjectCollectionRuleLifecycleStates(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ObjectCollectionRuleLifecycleStates create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ObjectCollectionRuleLifecycleStates', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ParsedContent.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ParsedContent.java index 54118fc639a..a36bb98a749 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ParsedContent.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ParsedContent.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * Parsed Content + * Parsed representation of the log file. *
* 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 @@ -117,37 +117,37 @@ public static Builder builder() { } /** - * Field names + * List of field names. **/ @com.fasterxml.jackson.annotation.JsonProperty("fieldNames") java.util.List fieldNames; /** - * Display names for fields + * List of field display names. **/ @com.fasterxml.jackson.annotation.JsonProperty("fieldDisplayNames") java.util.List fieldDisplayNames; /** - * Parsed field values + * Parsed field values. **/ @com.fasterxml.jackson.annotation.JsonProperty("parsedFieldValues") java.util.List parsedFieldValues; /** - * Sample log entries picked up from the given file for validation + * Sample log entries picked up from the given file for validation. **/ @com.fasterxml.jackson.annotation.JsonProperty("logContent") String logContent; /** - * Sample Size taken for validation + * Sample Size taken for validation. **/ @com.fasterxml.jackson.annotation.JsonProperty("sampleSize") Integer sampleSize; /** - * Match Status + * Match Status. **/ @com.fasterxml.jackson.annotation.JsonProperty("matchStatus") String matchStatus; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ParsedField.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ParsedField.java index 950f85bf351..17d0943aa25 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ParsedField.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ParsedField.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * Parsed field response + * Parsed field 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 @@ -68,13 +68,13 @@ public static Builder builder() { } /** - * Sample log entries picked up from the given file for validation + * Sample log entries picked up from the given file for validation. **/ @com.fasterxml.jackson.annotation.JsonProperty("logContent") String logContent; /** - * Field Values + * List of field Values. **/ @com.fasterxml.jackson.annotation.JsonProperty("fieldValues") java.util.List fieldValues; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/PropertyOverride.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/PropertyOverride.java index b24b9d159b8..c3a83a45932 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/PropertyOverride.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/PropertyOverride.java @@ -94,7 +94,7 @@ public static Builder builder() { } /** - * Match Type. Accepted values are: contains + * Match Type. Accepted values are: contains. * **/ @com.fasterxml.jackson.annotation.JsonProperty("matchType") @@ -114,7 +114,7 @@ public static Builder builder() { String propertyName; /** - * Value. + * Value of the property. **/ @com.fasterxml.jackson.annotation.JsonProperty("propertyValue") String propertyValue; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/RecalledData.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/RecalledData.java new file mode 100644 index 00000000000..b916746d28f --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/RecalledData.java @@ -0,0 +1,204 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * This is the information about recalled data + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = RecalledData.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class RecalledData { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("timeDataEnded") + private java.util.Date timeDataEnded; + + public Builder timeDataEnded(java.util.Date timeDataEnded) { + this.timeDataEnded = timeDataEnded; + this.__explicitlySet__.add("timeDataEnded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeDataStarted") + private java.util.Date timeDataStarted; + + public Builder timeDataStarted(java.util.Date timeDataStarted) { + this.timeDataStarted = timeDataStarted; + this.__explicitlySet__.add("timeDataStarted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("recallCount") + private Integer recallCount; + + public Builder recallCount(Integer recallCount) { + this.recallCount = recallCount; + this.__explicitlySet__.add("recallCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storageUsageInBytes") + private Long storageUsageInBytes; + + public Builder storageUsageInBytes(Long storageUsageInBytes) { + this.storageUsageInBytes = storageUsageInBytes; + this.__explicitlySet__.add("storageUsageInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RecalledData build() { + RecalledData __instance__ = + new RecalledData( + timeDataEnded, + timeDataStarted, + timeStarted, + status, + recallCount, + storageUsageInBytes); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RecalledData o) { + Builder copiedBuilder = + timeDataEnded(o.getTimeDataEnded()) + .timeDataStarted(o.getTimeDataStarted()) + .timeStarted(o.getTimeStarted()) + .status(o.getStatus()) + .recallCount(o.getRecallCount()) + .storageUsageInBytes(o.getStorageUsageInBytes()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * This is the end of the time range of the related data + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDataEnded") + java.util.Date timeDataEnded; + + /** + * This is the start of the time range of the related data + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeDataStarted") + java.util.Date timeDataStarted; + + /** + * This is the time when the first recall operation was started for this RecalledData + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + java.util.Date timeStarted; + /** + * This is the status of the recall + **/ + @lombok.extern.slf4j.Slf4j + public enum Status { + Recalled("RECALLED"), + Pending("PENDING"), + + /** + * 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 final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * This is the status of the recall + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + Status status; + + /** + * This is the number of recall operations for this recall. Note one RecalledData can be merged from the results + * of several recall operations if the time duration of the results of the recall operations overlap. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recallCount") + Integer recallCount; + + /** + * This is the size in bytes + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageUsageInBytes") + Long storageUsageInBytes; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/RecalledDataCollection.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/RecalledDataCollection.java new file mode 100644 index 00000000000..9560aa20433 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/RecalledDataCollection.java @@ -0,0 +1,71 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * This is the list of recalled data + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RecalledDataCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class RecalledDataCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + 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 RecalledDataCollection build() { + RecalledDataCollection __instance__ = new RecalledDataCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RecalledDataCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * This is the array of recalled data + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/RemoveEntityAssociationsDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/RemoveEntityAssociationsDetails.java index 8526914534d..6d1660019ff 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/RemoveEntityAssociationsDetails.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/RemoveEntityAssociationsDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * Information about the associations to be deleted between entity and other existing entities. + * Information about the associations to be deleted between source entity and other existing destination entities. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ScheduledTask.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ScheduledTask.java index a15f733cb86..d8a39760218 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ScheduledTask.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ScheduledTask.java @@ -16,195 +16,26 @@ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") -@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.AllArgsConstructor( + onConstructor = @__({@Deprecated}), + access = lombok.AccessLevel.PROTECTED +) @lombok.Value -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ScheduledTask.Builder.class) +@lombok.experimental.NonFinal +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind", + defaultImpl = ScheduledTask.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = StandardTask.class, + name = "STANDARD" + ) +}) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -@lombok.Builder(builderClassName = "Builder", toBuilder = true) public class ScheduledTask { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - @lombok.experimental.Accessors(fluent = true) - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("taskType") - private TaskType taskType; - - public Builder taskType(TaskType taskType) { - this.taskType = taskType; - this.__explicitlySet__.add("taskType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("schedules") - private java.util.List schedules; - - public Builder schedules(java.util.List schedules) { - this.schedules = schedules; - this.__explicitlySet__.add("schedules"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("action") - private Action action; - - public Builder action(Action action) { - this.action = action; - this.__explicitlySet__.add("action"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("taskStatus") - private TaskStatus taskStatus; - - public Builder taskStatus(TaskStatus taskStatus) { - this.taskStatus = taskStatus; - this.__explicitlySet__.add("taskStatus"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") - private String workRequestId; - - public Builder workRequestId(String workRequestId) { - this.workRequestId = workRequestId; - this.__explicitlySet__.add("workRequestId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("numOccurrences") - private Long numOccurrences; - - public Builder numOccurrences(Long numOccurrences) { - this.numOccurrences = numOccurrences; - this.__explicitlySet__.add("numOccurrences"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LifecycleState lifecycleState; - - public Builder lifecycleState(LifecycleState lifecycleState) { - this.lifecycleState = lifecycleState; - this.__explicitlySet__.add("lifecycleState"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ScheduledTask build() { - ScheduledTask __instance__ = - new ScheduledTask( - id, - displayName, - taskType, - schedules, - action, - taskStatus, - workRequestId, - numOccurrences, - compartmentId, - timeCreated, - timeUpdated, - lifecycleState, - freeformTags, - definedTags); - __instance__.__explicitlySet__.addAll(__explicitlySet__); - return __instance__; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ScheduledTask o) { - Builder copiedBuilder = - id(o.getId()) - .displayName(o.getDisplayName()) - .taskType(o.getTaskType()) - .schedules(o.getSchedules()) - .action(o.getAction()) - .taskStatus(o.getTaskStatus()) - .workRequestId(o.getWorkRequestId()) - .numOccurrences(o.getNumOccurrences()) - .compartmentId(o.getCompartmentId()) - .timeCreated(o.getTimeCreated()) - .timeUpdated(o.getTimeUpdated()) - .lifecycleState(o.getLifecycleState()) - .freeformTags(o.getFreeformTags()) - .definedTags(o.getDefinedTags()); - - copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); - return copiedBuilder; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the data plane resource. @@ -390,6 +221,49 @@ public static LifecycleState create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("definedTags") java.util.Map> definedTags; - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + /** + * Discriminator. + **/ + @lombok.extern.slf4j.Slf4j + public enum Kind { + Acceleration("ACCELERATION"), + Standard("STANDARD"), + + /** + * 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 final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Kind v : Kind.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Kind(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Kind create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Kind', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; } diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ScheduledTaskSummary.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ScheduledTaskSummary.java index b3edcb5a9b5..b7a123be3e1 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ScheduledTaskSummary.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/ScheduledTaskSummary.java @@ -126,6 +126,24 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("lastExecutionStatus") + private LastExecutionStatus lastExecutionStatus; + + public Builder lastExecutionStatus(LastExecutionStatus lastExecutionStatus) { + this.lastExecutionStatus = lastExecutionStatus; + this.__explicitlySet__.add("lastExecutionStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeLastExecuted") + private java.util.Date timeLastExecuted; + + public Builder timeLastExecuted(java.util.Date timeLastExecuted) { + this.timeLastExecuted = timeLastExecuted; + this.__explicitlySet__.add("timeLastExecuted"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -142,7 +160,9 @@ public ScheduledTaskSummary build() { workRequestId, displayName, freeformTags, - definedTags); + definedTags, + lastExecutionStatus, + timeLastExecuted); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @@ -160,7 +180,9 @@ public Builder copy(ScheduledTaskSummary o) { .workRequestId(o.getWorkRequestId()) .displayName(o.getDisplayName()) .freeformTags(o.getFreeformTags()) - .definedTags(o.getDefinedTags()); + .definedTags(o.getDefinedTags()) + .lastExecutionStatus(o.getLastExecutionStatus()) + .timeLastExecuted(o.getTimeLastExecuted()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -297,6 +319,63 @@ public static TaskStatus create(String key) { **/ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") java.util.Map> definedTags; + /** + * The most recent task execution status. + **/ + @lombok.extern.slf4j.Slf4j + public enum LastExecutionStatus { + Failed("FAILED"), + Succeeded("SUCCEEDED"), + + /** + * 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 final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LastExecutionStatus v : LastExecutionStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LastExecutionStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LastExecutionStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LastExecutionStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The most recent task execution status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastExecutionStatus") + LastExecutionStatus lastExecutionStatus; + + /** + * The date and time the scheduled task last executed, in the format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastExecuted") + java.util.Date timeLastExecuted; @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/SortField.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/SortField.java index 0aca0b680fa..5c24095c335 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/SortField.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/SortField.java @@ -112,6 +112,15 @@ public Builder filterQueryString(String filterQueryString) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("unitType") + private String unitType; + + public Builder unitType(String unitType) { + this.unitType = unitType; + this.__explicitlySet__.add("unitType"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("direction") private Direction direction; @@ -136,6 +145,7 @@ public SortField build() { isDuration, alias, filterQueryString, + unitType, direction); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; @@ -153,6 +163,7 @@ public Builder copy(SortField o) { .isDuration(o.getIsDuration()) .alias(o.getAlias()) .filterQueryString(o.getFilterQueryString()) + .unitType(o.getUnitType()) .direction(o.getDirection()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); @@ -178,6 +189,7 @@ public SortField( Boolean isDuration, String alias, String filterQueryString, + String unitType, Direction direction) { super( displayName, @@ -188,7 +200,8 @@ public SortField( isGroupable, isDuration, alias, - filterQueryString); + filterQueryString, + unitType); this.direction = direction; } diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/SourceMappingResponse.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/SourceMappingResponse.java index f1558c8cca4..93545a760f6 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/SourceMappingResponse.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/SourceMappingResponse.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * Response object containing match status and parsed representation of log data + * Response object containing match status and parsed representation of log data. *
* 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 @@ -61,7 +61,7 @@ public static Builder builder() { } /** - * Parsed representation of the log file + * Parsed representation of the log file. **/ @com.fasterxml.jackson.annotation.JsonProperty("parsedResponse") java.util.List parsedResponse; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/StandardTask.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/StandardTask.java new file mode 100644 index 00000000000..5d53931a780 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/StandardTask.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * Log analytics scheduled task resource. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = StandardTask.Builder.class) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class StandardTask extends ScheduledTask { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("taskType") + private TaskType taskType; + + public Builder taskType(TaskType taskType) { + this.taskType = taskType; + this.__explicitlySet__.add("taskType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schedules") + private java.util.List schedules; + + public Builder schedules(java.util.List schedules) { + this.schedules = schedules; + this.__explicitlySet__.add("schedules"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("action") + private Action action; + + public Builder action(Action action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("taskStatus") + private TaskStatus taskStatus; + + public Builder taskStatus(TaskStatus taskStatus) { + this.taskStatus = taskStatus; + this.__explicitlySet__.add("taskStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private String workRequestId; + + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + this.__explicitlySet__.add("workRequestId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("numOccurrences") + private Long numOccurrences; + + public Builder numOccurrences(Long numOccurrences) { + this.numOccurrences = numOccurrences; + this.__explicitlySet__.add("numOccurrences"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastExecutionStatus") + private LastExecutionStatus lastExecutionStatus; + + public Builder lastExecutionStatus(LastExecutionStatus lastExecutionStatus) { + this.lastExecutionStatus = lastExecutionStatus; + this.__explicitlySet__.add("lastExecutionStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeLastExecuted") + private java.util.Date timeLastExecuted; + + public Builder timeLastExecuted(java.util.Date timeLastExecuted) { + this.timeLastExecuted = timeLastExecuted; + this.__explicitlySet__.add("timeLastExecuted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StandardTask build() { + StandardTask __instance__ = + new StandardTask( + id, + displayName, + taskType, + schedules, + action, + taskStatus, + workRequestId, + numOccurrences, + compartmentId, + timeCreated, + timeUpdated, + lifecycleState, + freeformTags, + definedTags, + lastExecutionStatus, + timeLastExecuted); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StandardTask o) { + Builder copiedBuilder = + id(o.getId()) + .displayName(o.getDisplayName()) + .taskType(o.getTaskType()) + .schedules(o.getSchedules()) + .action(o.getAction()) + .taskStatus(o.getTaskStatus()) + .workRequestId(o.getWorkRequestId()) + .numOccurrences(o.getNumOccurrences()) + .compartmentId(o.getCompartmentId()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .lifecycleState(o.getLifecycleState()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .lastExecutionStatus(o.getLastExecutionStatus()) + .timeLastExecuted(o.getTimeLastExecuted()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public StandardTask( + String id, + String displayName, + TaskType taskType, + java.util.List schedules, + Action action, + TaskStatus taskStatus, + String workRequestId, + Long numOccurrences, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + LastExecutionStatus lastExecutionStatus, + java.util.Date timeLastExecuted) { + super( + id, + displayName, + taskType, + schedules, + action, + taskStatus, + workRequestId, + numOccurrences, + compartmentId, + timeCreated, + timeUpdated, + lifecycleState, + freeformTags, + definedTags); + this.lastExecutionStatus = lastExecutionStatus; + this.timeLastExecuted = timeLastExecuted; + } + + /** + * The most recent task execution status. + **/ + @lombok.extern.slf4j.Slf4j + public enum LastExecutionStatus { + Failed("FAILED"), + Succeeded("SUCCEEDED"), + + /** + * 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 final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LastExecutionStatus v : LastExecutionStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LastExecutionStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LastExecutionStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LastExecutionStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The most recent task execution status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastExecutionStatus") + LastExecutionStatus lastExecutionStatus; + + /** + * The date and time the scheduled task last executed, in the format defined by RFC3339. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastExecuted") + java.util.Date timeLastExecuted; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/StreamAction.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/StreamAction.java index 4438bfb537b..e8b96cc1560 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/StreamAction.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/StreamAction.java @@ -39,18 +39,28 @@ public Builder savedSearchId(String savedSearchId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("metricExtraction") + private MetricExtraction metricExtraction; + + public Builder metricExtraction(MetricExtraction metricExtraction) { + this.metricExtraction = metricExtraction; + this.__explicitlySet__.add("metricExtraction"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public StreamAction build() { - StreamAction __instance__ = new StreamAction(savedSearchId); + StreamAction __instance__ = new StreamAction(savedSearchId, metricExtraction); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(StreamAction o) { - Builder copiedBuilder = savedSearchId(o.getSavedSearchId()); + Builder copiedBuilder = + savedSearchId(o.getSavedSearchId()).metricExtraction(o.getMetricExtraction()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -65,9 +75,10 @@ public static Builder builder() { } @Deprecated - public StreamAction(String savedSearchId) { + public StreamAction(String savedSearchId, MetricExtraction metricExtraction) { super(); this.savedSearchId = savedSearchId; + this.metricExtraction = metricExtraction; } /** @@ -76,6 +87,9 @@ public StreamAction(String savedSearchId) { @com.fasterxml.jackson.annotation.JsonProperty("savedSearchId") String savedSearchId; + @com.fasterxml.jackson.annotation.JsonProperty("metricExtraction") + MetricExtraction metricExtraction; + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); } diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateLogAnalyticsEntityDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateLogAnalyticsEntityDetails.java index 581ed0722e1..b46c00af8fb 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateLogAnalyticsEntityDetails.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateLogAnalyticsEntityDetails.java @@ -132,7 +132,7 @@ public static Builder builder() { } /** - * Log analytics entity name. The name must be unique, within the tenancy, and cannot be changed. + * Log analytics entity name. * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateLogAnalyticsObjectCollectionRuleDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateLogAnalyticsObjectCollectionRuleDetails.java index 864fb8a4f0c..1b52175b93e 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateLogAnalyticsObjectCollectionRuleDetails.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateLogAnalyticsObjectCollectionRuleDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * To update the attributes of an Object Storage based collection rule. + * Configuration of the collection rule to be updated. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -72,6 +72,15 @@ public Builder charEncoding(String charEncoding) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + private Boolean isEnabled; + + public Builder isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + this.__explicitlySet__.add("isEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("overrides") private java.util.Map> overrides; @@ -112,6 +121,7 @@ public UpdateLogAnalyticsObjectCollectionRuleDetails build() { logSourceName, entityId, charEncoding, + isEnabled, overrides, definedTags, freeformTags); @@ -127,6 +137,7 @@ public Builder copy(UpdateLogAnalyticsObjectCollectionRuleDetails o) { .logSourceName(o.getLogSourceName()) .entityId(o.getEntityId()) .charEncoding(o.getCharEncoding()) + .isEnabled(o.getIsEnabled()) .overrides(o.getOverrides()) .definedTags(o.getDefinedTags()) .freeformTags(o.getFreeformTags()); @@ -171,7 +182,7 @@ public static Builder builder() { /** * An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. - * It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, + * It is recommended to set this value as ISO_8859_1 when configuring content of the objects having more numeric characters, * and very few alphabets. * For e.g. this applies when configuring VCN Flow Logs. * @@ -179,6 +190,13 @@ public static Builder builder() { @com.fasterxml.jackson.annotation.JsonProperty("charEncoding") String charEncoding; + /** + * Whether or not this rule is currently enabled. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") + Boolean isEnabled; + /** * Use this to override some property values which are defined at bucket level to the scope of object. * Supported propeties for override are, logSourceName, charEncoding. diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateLookupMetadataDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateLookupMetadataDetails.java new file mode 100644 index 00000000000..60607727e07 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateLookupMetadataDetails.java @@ -0,0 +1,122 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * UpdateLookupMetadataDetails + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateLookupMetadataDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class UpdateLookupMetadataDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("defaultMatchValue") + private String defaultMatchValue; + + public Builder defaultMatchValue(String defaultMatchValue) { + this.defaultMatchValue = defaultMatchValue; + this.__explicitlySet__.add("defaultMatchValue"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fields") + private java.util.List fields; + + public Builder fields(java.util.List fields) { + this.fields = fields; + this.__explicitlySet__.add("fields"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maxMatches") + private Long maxMatches; + + public Builder maxMatches(Long maxMatches) { + this.maxMatches = maxMatches; + this.__explicitlySet__.add("maxMatches"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateLookupMetadataDetails build() { + UpdateLookupMetadataDetails __instance__ = + new UpdateLookupMetadataDetails( + defaultMatchValue, description, fields, maxMatches); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateLookupMetadataDetails o) { + Builder copiedBuilder = + defaultMatchValue(o.getDefaultMatchValue()) + .description(o.getDescription()) + .fields(o.getFields()) + .maxMatches(o.getMaxMatches()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The default match value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("defaultMatchValue") + String defaultMatchValue; + + /** + * The lookup description. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The lookup fields. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fields") + java.util.List fields; + + /** + * The maximum number of matches. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maxMatches") + Long maxMatches; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateScheduledTaskDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateScheduledTaskDetails.java index 338e7dbf03f..3eab6a58e7a 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateScheduledTaskDetails.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateScheduledTaskDetails.java @@ -16,84 +16,26 @@ * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") -@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.AllArgsConstructor( + onConstructor = @__({@Deprecated}), + access = lombok.AccessLevel.PROTECTED +) @lombok.Value -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateScheduledTaskDetails.Builder.class +@lombok.experimental.NonFinal +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind", + defaultImpl = UpdateScheduledTaskDetails.class ) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateStandardTaskDetails.class, + name = "STANDARD" + ) +}) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -@lombok.Builder(builderClassName = "Builder", toBuilder = true) public class UpdateScheduledTaskDetails { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - @lombok.experimental.Accessors(fluent = true) - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("schedules") - private java.util.List schedules; - - public Builder schedules(java.util.List schedules) { - this.schedules = schedules; - this.__explicitlySet__.add("schedules"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateScheduledTaskDetails build() { - UpdateScheduledTaskDetails __instance__ = - new UpdateScheduledTaskDetails( - displayName, freeformTags, definedTags, schedules); - __instance__.__explicitlySet__.addAll(__explicitlySet__); - return __instance__; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateScheduledTaskDetails o) { - Builder copiedBuilder = - displayName(o.getDisplayName()) - .freeformTags(o.getFreeformTags()) - .definedTags(o.getDefinedTags()) - .schedules(o.getSchedules()); - - copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); - return copiedBuilder; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } /** * A user-friendly name that is changeable and that does not have to be unique. @@ -122,12 +64,46 @@ public static Builder builder() { java.util.Map> definedTags; /** - * Schedules may be updated for task types SAVED_SEARCH and PURGE + * Schedules may be updated for task types SAVED_SEARCH and PURGE. + * Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks. * **/ @com.fasterxml.jackson.annotation.JsonProperty("schedules") java.util.List schedules; - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + /** + * Discriminator. + **/ + public enum Kind { + Acceleration("ACCELERATION"), + Standard("STANDARD"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Kind v : Kind.values()) { + map.put(v.getValue(), v); + } + } + + Kind(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Kind create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Kind: " + key); + } + }; } diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateStandardTaskDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateStandardTaskDetails.java new file mode 100644 index 00000000000..6151acf2901 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UpdateStandardTaskDetails.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * The details for updating a schedule task. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateStandardTaskDetails.Builder.class +) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class UpdateStandardTaskDetails extends UpdateScheduledTaskDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schedules") + private java.util.List schedules; + + public Builder schedules(java.util.List schedules) { + this.schedules = schedules; + this.__explicitlySet__.add("schedules"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("action") + private Action action; + + public Builder action(Action action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateStandardTaskDetails build() { + UpdateStandardTaskDetails __instance__ = + new UpdateStandardTaskDetails( + displayName, freeformTags, definedTags, schedules, action); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateStandardTaskDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .schedules(o.getSchedules()) + .action(o.getAction()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public UpdateStandardTaskDetails( + String displayName, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.List schedules, + Action action) { + super(displayName, freeformTags, definedTags, schedules); + this.action = action; + } + + @com.fasterxml.jackson.annotation.JsonProperty("action") + Action action; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/Upload.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/Upload.java index 7da61d99d23..856434f79b3 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/Upload.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/Upload.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * Upload is a container that can be used to optionally put all the relevant and related on-demand upload based log files. + * Upload is a container that can be used to put all the relevant and related on-demand upload based log files together. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -129,37 +129,37 @@ public static Builder builder() { } /** - * Unique internal identifier to refer to the upload container + * Unique internal identifier to refer the upload container. **/ @com.fasterxml.jackson.annotation.JsonProperty("reference") String reference; /** - * The name of the upload container + * The name of the upload container. **/ @com.fasterxml.jackson.annotation.JsonProperty("name") String name; /** - * The time when this upload container is created. An RFC3339 formatted datetime string + * The time when this upload container is created. An RFC3339 formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") java.util.Date timeCreated; /** - * The latest time when this upload container is modified. An RFC3339 formatted datetime string + * The latest time when this upload container is modified. An RFC3339 formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") java.util.Date timeUpdated; /** - * This time represents the earliest time of the log entry in this container. An RFC3339 formatted datetime string + * This time represents the earliest time of the log entry in this container. An RFC3339 formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeEarliestLogEntry") java.util.Date timeEarliestLogEntry; /** - * This time represents the latest time of the log entry in this container. An RFC3339 formatted datetime string + * This time represents the latest time of the log entry in this container. An RFC3339 formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLatestLogEntry") java.util.Date timeLatestLogEntry; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadFileStatus.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadFileStatus.java index 4ebbf52e744..650acf154a2 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadFileStatus.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadFileStatus.java @@ -68,13 +68,13 @@ public static Builder builder() { } /** - * Name of the file + * Name of the file. **/ @com.fasterxml.jackson.annotation.JsonProperty("fileName") String fileName; /** - * Is Valid flag + * Is Valid flag. **/ @com.fasterxml.jackson.annotation.JsonProperty("isValid") Boolean isValid; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadFileSummary.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadFileSummary.java index 698ff7c0295..00e6eb7fa76 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadFileSummary.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadFileSummary.java @@ -218,7 +218,7 @@ public static Builder builder() { } /** - * Unique internal identifier to refer to upload file + * Unique internal identifier to refer upload file. **/ @com.fasterxml.jackson.annotation.JsonProperty("reference") String reference; @@ -288,37 +288,37 @@ public static Status create(String key) { java.math.BigDecimal totalChunks; /** - * Number of chunks processed + * Number of chunks processed. **/ @com.fasterxml.jackson.annotation.JsonProperty("chunksConsumed") java.math.BigDecimal chunksConsumed; /** - * Number of chunks processed successfully + * Number of chunks processed successfully. **/ @com.fasterxml.jackson.annotation.JsonProperty("chunksSuccess") java.math.BigDecimal chunksSuccess; /** - * Number of chunks failed processing + * Number of chunks failed processing. **/ @com.fasterxml.jackson.annotation.JsonProperty("chunksFail") java.math.BigDecimal chunksFail; /** - * The time when this file processing started + * The time when this file processing started. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") java.util.Date timeStarted; /** - * Name of the log source used for processing this file + * Name of the log source used for processing this file. **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceName") String sourceName; /** - * Name of the entity type + * Name of the entity type. **/ @com.fasterxml.jackson.annotation.JsonProperty("entityType") String entityType; @@ -330,7 +330,7 @@ public static Status create(String key) { String entityName; /** - * Log namespace associated with the file. + * (Deprecated) Name of the log namespace associated with the file. **/ @com.fasterxml.jackson.annotation.JsonProperty("logNamespace") String logNamespace; @@ -342,13 +342,13 @@ public static Status create(String key) { String logGroupId; /** - * Log group name associated with the file. + * Name of the log group associated with the file. **/ @com.fasterxml.jackson.annotation.JsonProperty("logGroupName") String logGroupName; /** - * The details about upload processing failure + * The details about upload processing failure. **/ @com.fasterxml.jackson.annotation.JsonProperty("failureDetails") String failureDetails; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadSummary.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadSummary.java index e0abc6a5f73..8fbe897b9dd 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadSummary.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadSummary.java @@ -128,37 +128,37 @@ public static Builder builder() { } /** - * Unique internal identifier to refer to the upload container + * Unique internal identifier to refer the upload container. **/ @com.fasterxml.jackson.annotation.JsonProperty("reference") String reference; /** - * The name of the upload container + * The name of the upload container. **/ @com.fasterxml.jackson.annotation.JsonProperty("name") String name; /** - * The time when this upload container is created. An RFC3339 formatted datetime string + * The time when this upload container is created. An RFC3339 formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") java.util.Date timeCreated; /** - * The latest time when this upload container is modified. An RFC3339 formatted datetime string + * The latest time when this upload container is modified. An RFC3339 formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") java.util.Date timeUpdated; /** - * This time represents the earliest time of the log entry in this container. An RFC3339 formatted datetime string + * This time represents the earliest time of the log entry in this container. An RFC3339 formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeEarliestLogEntry") java.util.Date timeEarliestLogEntry; /** - * This time represents the latest time of the log entry in this container. An RFC3339 formatted datetime string + * This time represents the latest time of the log entry in this container. An RFC3339 formatted datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeLatestLogEntry") java.util.Date timeLatestLogEntry; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadWarningCollection.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadWarningCollection.java index fbe7e819c1d..aa20f28f446 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadWarningCollection.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadWarningCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.loganalytics.model; /** - * Collection of UploadFileSummary objects. + * Collection of UploadWarningSummary objects. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadWarningSummary.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadWarningSummary.java index 7cc20a15381..6ec9b584b74 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadWarningSummary.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/UploadWarningSummary.java @@ -93,25 +93,25 @@ public static Builder builder() { } /** - * Unique internal identifier to refer to upload warning + * Unique internal identifier to refer upload warning. **/ @com.fasterxml.jackson.annotation.JsonProperty("reference") String reference; /** - * Status of the upload. Ex - Failed + * Status of the upload. Ex - Failed. **/ @com.fasterxml.jackson.annotation.JsonProperty("status") String status; /** - * The time when the upload processing started + * The time when the upload processing started. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") java.util.Date timeStarted; /** - * The details about upload processing failure + * The details about upload processing failure. **/ @com.fasterxml.jackson.annotation.JsonProperty("errorMessage") String errorMessage; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/WarningReferenceDetails.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/WarningReferenceDetails.java new file mode 100644 index 00000000000..8f024afdfd5 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/model/WarningReferenceDetails.java @@ -0,0 +1,77 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.model; + +/** + * A list of LogAnalyticsWarning references. Used as input to APIs which operate on a + * list. For example, the suppress warning API accepts a list of warning references + * and will suppress all warnings in the input list. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WarningReferenceDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class WarningReferenceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("warningReferences") + private java.util.List warningReferences; + + public Builder warningReferences(java.util.List warningReferences) { + this.warningReferences = warningReferences; + this.__explicitlySet__.add("warningReferences"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WarningReferenceDetails build() { + WarningReferenceDetails __instance__ = new WarningReferenceDetails(warningReferences); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WarningReferenceDetails o) { + Builder copiedBuilder = warningReferences(o.getWarningReferences()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A list of LogAnalyticsWarning references. Used as input to APIs which operate on a + * list. For example, the suppress warning API accepts a list of warning references + * and will suppress all warnings in the input list. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warningReferences") + java.util.List warningReferences; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/AddEntityAssociationRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/AddEntityAssociationRequest.java index 1a7610fe5e8..912768e6d4a 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/AddEntityAssociationRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/AddEntityAssociationRequest.java @@ -27,7 +27,7 @@ public class AddEntityAssociationRequest private String logAnalyticsEntityId; /** - * This parameter specifies the entity OCIDs with which associations are to be created. Specify destination OCIDs as comma separated string. + * This parameter specifies the destination entity OCIDs with which associations are to be created. */ private AddEntityAssociationDetails addEntityAssociationDetails; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/AppendLookupDataRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/AppendLookupDataRequest.java new file mode 100644 index 00000000000..99bb0181c10 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/AppendLookupDataRequest.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.requests; + +import com.oracle.bmc.loganalytics.model.*; +/** + * Example: Click here to see how to use AppendLookupDataRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class AppendLookupDataRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * The name of the lookup to operate on. + */ + private String lookupName; + + /** + * The file to append. + */ + private java.io.InputStream appendLookupFileBody; + + /** + * is force + */ + private Boolean isForce; + + /** + * Character Encoding + */ + private String charEncoding; + + /** + * 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; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public java.io.InputStream getBody$() { + return appendLookupFileBody; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AppendLookupDataRequest, java.io.InputStream> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(AppendLookupDataRequest o) { + namespaceName(o.getNamespaceName()); + lookupName(o.getLookupName()); + appendLookupFileBody(o.getAppendLookupFileBody()); + isForce(o.getIsForce()); + charEncoding(o.getCharEncoding()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AppendLookupDataRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of AppendLookupDataRequest + */ + public AppendLookupDataRequest build() { + AppendLookupDataRequest 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$(java.io.InputStream body) { + appendLookupFileBody(body); + return this; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ChangeLogAnalyticsObjectCollectionRuleCompartmentRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ChangeLogAnalyticsObjectCollectionRuleCompartmentRequest.java index 5b93d5f3ac0..5b8a8ea7983 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ChangeLogAnalyticsObjectCollectionRuleCompartmentRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ChangeLogAnalyticsObjectCollectionRuleCompartmentRequest.java @@ -22,7 +22,7 @@ public class ChangeLogAnalyticsObjectCollectionRuleCompartmentRequest private String namespaceName; /** - * The Logging Analytics Object Collection Rule [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * The Logging Analytics Object Collection Rule [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ private String logAnalyticsObjectCollectionRuleId; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteLogAnalyticsObjectCollectionRuleRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteLogAnalyticsObjectCollectionRuleRequest.java index 504c6b3e0e4..f07a5872b07 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteLogAnalyticsObjectCollectionRuleRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteLogAnalyticsObjectCollectionRuleRequest.java @@ -21,7 +21,7 @@ public class DeleteLogAnalyticsObjectCollectionRuleRequest private String namespaceName; /** - * The Logging Analytics Object Collection Rule [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * The Logging Analytics Object Collection Rule [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ private String logAnalyticsObjectCollectionRuleId; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteLookupRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteLookupRequest.java new file mode 100644 index 00000000000..b842804dc5d --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteLookupRequest.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.requests; + +import com.oracle.bmc.loganalytics.model.*; +/** + * Example: Click here to see how to use DeleteLookupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteLookupRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * The name of the lookup to operate on. + */ + private String lookupName; + + /** + * is force + */ + private Boolean isForce; + + /** + * 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; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteLookupRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteLookupRequest o) { + namespaceName(o.getNamespaceName()); + lookupName(o.getLookupName()); + isForce(o.getIsForce()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteLookupRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteLookupRequest + */ + public DeleteLookupRequest build() { + DeleteLookupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteUploadFileRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteUploadFileRequest.java index 78e8841ce3a..95688b45458 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteUploadFileRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteUploadFileRequest.java @@ -20,12 +20,12 @@ public class DeleteUploadFileRequest extends com.oracle.bmc.requests.BmcRequest< private String namespaceName; /** - * Unique internal identifier to refer to upload container + * Unique internal identifier to refer upload container. */ private String uploadReference; /** - * Unique internal identifier to refer to upload file + * Unique internal identifier to refer upload file. */ private String fileReference; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteUploadRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteUploadRequest.java index fd49f3b24a6..1c422d4b953 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteUploadRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/DeleteUploadRequest.java @@ -20,7 +20,7 @@ public class DeleteUploadRequest extends com.oracle.bmc.requests.BmcRequestExample: Click here to see how to use EstimateRecallDataSizeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class EstimateRecallDataSizeRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * This is the input to estimate the size of data to be recalled. + */ + private EstimateRecallDataSizeDetails estimateRecallDataSizeDetails; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public EstimateRecallDataSizeDetails getBody$() { + return estimateRecallDataSizeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EstimateRecallDataSizeRequest, EstimateRecallDataSizeDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(EstimateRecallDataSizeRequest o) { + namespaceName(o.getNamespaceName()); + estimateRecallDataSizeDetails(o.getEstimateRecallDataSizeDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EstimateRecallDataSizeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of EstimateRecallDataSizeRequest + */ + public EstimateRecallDataSizeRequest build() { + EstimateRecallDataSizeRequest 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$(EstimateRecallDataSizeDetails body) { + estimateRecallDataSizeDetails(body); + return this; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/EstimateReleaseDataSizeRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/EstimateReleaseDataSizeRequest.java new file mode 100644 index 00000000000..4dcb7801220 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/EstimateReleaseDataSizeRequest.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.requests; + +import com.oracle.bmc.loganalytics.model.*; +/** + * Example: Click here to see how to use EstimateReleaseDataSizeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class EstimateReleaseDataSizeRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * This is the input to estimate the size of recalled data to be released. + */ + private EstimateReleaseDataSizeDetails estimateReleaseDataSizeDetails; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public EstimateReleaseDataSizeDetails getBody$() { + return estimateReleaseDataSizeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EstimateReleaseDataSizeRequest, EstimateReleaseDataSizeDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(EstimateReleaseDataSizeRequest o) { + namespaceName(o.getNamespaceName()); + estimateReleaseDataSizeDetails(o.getEstimateReleaseDataSizeDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EstimateReleaseDataSizeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of EstimateReleaseDataSizeRequest + */ + public EstimateReleaseDataSizeRequest build() { + EstimateReleaseDataSizeRequest 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$(EstimateReleaseDataSizeDetails body) { + estimateReleaseDataSizeDetails(body); + return this; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/GetLogAnalyticsObjectCollectionRuleRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/GetLogAnalyticsObjectCollectionRuleRequest.java index 5c190242af8..70c5c9424d5 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/GetLogAnalyticsObjectCollectionRuleRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/GetLogAnalyticsObjectCollectionRuleRequest.java @@ -21,7 +21,7 @@ public class GetLogAnalyticsObjectCollectionRuleRequest private String namespaceName; /** - * The Logging Analytics Object Collection Rule [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * The Logging Analytics Object Collection Rule [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ private String logAnalyticsObjectCollectionRuleId; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/GetLookupRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/GetLookupRequest.java new file mode 100644 index 00000000000..f84a0144c9d --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/GetLookupRequest.java @@ -0,0 +1,92 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.requests; + +import com.oracle.bmc.loganalytics.model.*; +/** + * Example: Click here to see how to use GetLookupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetLookupRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * The name of the lookup to operate on. + */ + private String lookupName; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetLookupRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetLookupRequest o) { + namespaceName(o.getNamespaceName()); + lookupName(o.getLookupName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetLookupRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetLookupRequest + */ + public GetLookupRequest build() { + GetLookupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/GetUploadRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/GetUploadRequest.java index 6b71b5560e7..2168a37c0b1 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/GetUploadRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/GetUploadRequest.java @@ -20,7 +20,7 @@ public class GetUploadRequest extends com.oracle.bmc.requests.BmcRequestExample: Click here to see how to use ListLookupsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListLookupsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * type - possible values are Lookup or Dictionary + */ + private Type type; + + /** + * type - possible values are Lookup or Dictionary + **/ + public enum Type { + Lookup("Lookup"), + Dictionary("Dictionary"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + map.put(v.getValue(), v); + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Type: " + key); + } + }; + /** + * Search by lookup display name or description. + */ + private String lookupDisplayText; + + /** + * Is system param of value (all, custom, sourceUsing) + * + */ + private IsSystem isSystem; + + /** + * Is system param of value (all, custom, sourceUsing) + * + **/ + public enum IsSystem { + All("ALL"), + Custom("CUSTOM"), + BuiltIn("BUILT_IN"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (IsSystem v : IsSystem.values()) { + map.put(v.getValue(), v); + } + } + + IsSystem(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static IsSystem create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid IsSystem: " + key); + } + }; + /** + * sort by field + */ + private SortBy sortBy; + + /** + * sort by field + **/ + public enum SortBy { + DisplayName("displayName"), + Status("status"), + Type("type"), + UpdatedTime("updatedTime"), + CreationType("creationType"), + ; + + 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 lookup status used for filtering when fetching a list of lookups. + */ + private Status status; + + /** + * The lookup status used for filtering when fetching a list of lookups. + **/ + public enum Status { + All("ALL"), + Succesful("SUCCESFUL"), + Failed("FAILED"), + Inprogress("INPROGRESS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + map.put(v.getValue(), v); + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Status: " + key); + } + }; + /** + * is include items + */ + private Boolean isHideSpecial; + + /** + * The maximum number of items to return. + */ + private Integer 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 sort order to use, either ascending (`ASC`) or descending (`DESC`). + * + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either ascending (`ASC`) or descending (`DESC`). + * + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListLookupsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListLookupsRequest o) { + namespaceName(o.getNamespaceName()); + type(o.getType()); + lookupDisplayText(o.getLookupDisplayText()); + isSystem(o.getIsSystem()); + sortBy(o.getSortBy()); + status(o.getStatus()); + isHideSpecial(o.getIsHideSpecial()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListLookupsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListLookupsRequest + */ + public ListLookupsRequest build() { + ListLookupsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListMetaSourceTypesRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListMetaSourceTypesRequest.java index 18e45aef2f1..5e81165a0bf 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListMetaSourceTypesRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListMetaSourceTypesRequest.java @@ -32,8 +32,42 @@ public class ListMetaSourceTypesRequest extends com.oracle.bmc.requests.BmcReque /** * sort by field */ - private String sortBy; + private SortBy sortBy; + /** + * sort by field + **/ + public enum SortBy { + Name("name"), + ; + + 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 sort order to use, either ascending (`ASC`) or descending (`DESC`). * diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListParserFunctionsRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListParserFunctionsRequest.java index f6a2118c398..aec052bafe6 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListParserFunctionsRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListParserFunctionsRequest.java @@ -37,8 +37,42 @@ public class ListParserFunctionsRequest extends com.oracle.bmc.requests.BmcReque /** * sort by field */ - private String sortBy; + private SortBy sortBy; + /** + * sort by field + **/ + public enum SortBy { + Name("name"), + ; + + 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 sort order to use, either ascending (`ASC`) or descending (`DESC`). * diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListParserMetaPluginsRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListParserMetaPluginsRequest.java index b2e1df0e450..c4d9af04444 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListParserMetaPluginsRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListParserMetaPluginsRequest.java @@ -33,8 +33,42 @@ public class ListParserMetaPluginsRequest /** * sort by field */ - private String sortBy; + private SortBy sortBy; + /** + * sort by field + **/ + public enum SortBy { + Name("name"), + ; + + 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 sort order to use, either ascending (`ASC`) or descending (`DESC`). * diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListRecalledDataRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListRecalledDataRequest.java new file mode 100644 index 00000000000..baf03090394 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListRecalledDataRequest.java @@ -0,0 +1,198 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.requests; + +import com.oracle.bmc.loganalytics.model.*; +/** + * Example: Click here to see how to use ListRecalledDataRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListRecalledDataRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The maximum number of items to return. + */ + private Integer 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; + + /** + * This is the query parameter of which field to sort by. Only one sort order may be provided. Default order for timeDataStarted + * is descending. If no value is specified timeDataStarted is default. + * + */ + private SortBy sortBy; + + /** + * This is the query parameter of which field to sort by. Only one sort order may be provided. Default order for timeDataStarted + * is descending. If no value is specified timeDataStarted is default. + * + **/ + public enum SortBy { + TimeStarted("timeStarted"), + TimeDataStarted("timeDataStarted"), + ; + + 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 sort order to use, either ascending (`ASC`) or descending (`DESC`). + * + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either ascending (`ASC`) or descending (`DESC`). + * + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + /** + * This is the start of the time range for recalled data + */ + private java.util.Date timeDataStartedGreaterThanOrEqual; + + /** + * This is the end of the time range for recalled data + */ + private java.util.Date timeDataEndedLessThan; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListRecalledDataRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListRecalledDataRequest o) { + namespaceName(o.getNamespaceName()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + timeDataStartedGreaterThanOrEqual(o.getTimeDataStartedGreaterThanOrEqual()); + timeDataEndedLessThan(o.getTimeDataEndedLessThan()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListRecalledDataRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListRecalledDataRequest + */ + public ListRecalledDataRequest build() { + ListRecalledDataRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListSourceLabelOperatorsRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListSourceLabelOperatorsRequest.java index 0953279f8d5..94dbaf94ca2 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListSourceLabelOperatorsRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListSourceLabelOperatorsRequest.java @@ -33,8 +33,42 @@ public class ListSourceLabelOperatorsRequest /** * sort by field */ - private String sortBy; + private SortBy sortBy; + /** + * sort by field + **/ + public enum SortBy { + Name("name"), + ; + + 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 sort order to use, either ascending (`ASC`) or descending (`DESC`). * diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListSourceMetaFunctionsRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListSourceMetaFunctionsRequest.java index c2c2ec10ca5..45f01f03c26 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListSourceMetaFunctionsRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListSourceMetaFunctionsRequest.java @@ -33,8 +33,42 @@ public class ListSourceMetaFunctionsRequest /** * sort by field */ - private String sortBy; + private SortBy sortBy; + /** + * sort by field + **/ + public enum SortBy { + Name("name"), + ; + + 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 sort order to use, either ascending (`ASC`) or descending (`DESC`). * diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListSourcesRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListSourcesRequest.java index f3ef1e892e8..0684c61d0a1 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListSourcesRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListSourcesRequest.java @@ -30,7 +30,7 @@ public class ListSourcesRequest extends com.oracle.bmc.requests.BmcRequest status; /** - * Upload Status. + * Upload File processing state. **/ public enum Status { InProgress("IN_PROGRESS"), diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListUploadWarningsRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListUploadWarningsRequest.java index 10c92ae499e..9935629054b 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListUploadWarningsRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListUploadWarningsRequest.java @@ -20,7 +20,7 @@ public class ListUploadWarningsRequest extends com.oracle.bmc.requests.BmcReques private String namespaceName; /** - * Unique internal identifier to refer to upload container + * Unique internal identifier to refer upload container. */ private String uploadReference; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListWarningsRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListWarningsRequest.java new file mode 100644 index 00000000000..d89ccd25d4e --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ListWarningsRequest.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.requests; + +import com.oracle.bmc.loganalytics.model.*; +/** + * Example: Click here to see how to use ListWarningsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListWarningsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The warning state used for filtering. A value of SUPPRESSED will return only + * suppressed warnings, a value of UNSUPPRESSED will return only unsuppressed + * warnings, and a value of ALL will return all warnings regardless of their + * suppression state. Default is UNSUPPRESSED. + * + */ + private WarningState warningState; + + /** + * The warning state used for filtering. A value of SUPPRESSED will return only + * suppressed warnings, a value of UNSUPPRESSED will return only unsuppressed + * warnings, and a value of ALL will return all warnings regardless of their + * suppression state. Default is UNSUPPRESSED. + * + **/ + public enum WarningState { + All("ALL"), + Suppressed("SUPPRESSED"), + Unsuppressed("UNSUPPRESSED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (WarningState v : WarningState.values()) { + map.put(v.getValue(), v); + } + } + + WarningState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static WarningState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid WarningState: " + key); + } + }; + /** + * sourceName + */ + private String sourceName; + + /** + * sourcePattern + */ + private String sourcePattern; + + /** + * warning message query parameter + */ + private String warningMessage; + + /** + * entityName + */ + private String entityName; + + /** + * entity type name + */ + private String entityType; + + /** + * The warning type query parameter. + */ + private String warningType; + + /** + * isNoSource + */ + private Boolean isNoSource; + + /** + * The warning start date query parameter. + */ + private String startTime; + + /** + * The warning end date query parameter. + */ + private String endTime; + + /** + * The maximum number of items to return. + */ + private Integer 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 sort order to use, either ascending (`ASC`) or descending (`DESC`). + * + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either ascending (`ASC`) or descending (`DESC`). + * + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + /** + * The attribute used to sort the returned warnings + */ + private SortBy sortBy; + + /** + * The attribute used to sort the returned warnings + **/ + public enum SortBy { + EntityType("EntityType"), + SourceName("SourceName"), + PatternText("PatternText"), + FirstReported("FirstReported"), + WarningMessage("WarningMessage"), + Host("Host"), + EntityName("EntityName"), + InitialWarningDate("InitialWarningDate"), + ; + + 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 client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWarningsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWarningsRequest o) { + namespaceName(o.getNamespaceName()); + compartmentId(o.getCompartmentId()); + warningState(o.getWarningState()); + sourceName(o.getSourceName()); + sourcePattern(o.getSourcePattern()); + warningMessage(o.getWarningMessage()); + entityName(o.getEntityName()); + entityType(o.getEntityType()); + warningType(o.getWarningType()); + isNoSource(o.getIsNoSource()); + startTime(o.getStartTime()); + endTime(o.getEndTime()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWarningsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListWarningsRequest + */ + public ListWarningsRequest build() { + ListWarningsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/PauseScheduledTaskRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/PauseScheduledTaskRequest.java new file mode 100644 index 00000000000..af78bd32487 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/PauseScheduledTaskRequest.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.requests; + +import com.oracle.bmc.loganalytics.model.*; +/** + * Example: Click here to see how to use PauseScheduledTaskRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class PauseScheduledTaskRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * Unique scheduledTask id returned from task create. + * If invalid will lead to a 404 not found. + * + */ + private String scheduledTaskId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PauseScheduledTaskRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(PauseScheduledTaskRequest o) { + namespaceName(o.getNamespaceName()); + scheduledTaskId(o.getScheduledTaskId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PauseScheduledTaskRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of PauseScheduledTaskRequest + */ + public PauseScheduledTaskRequest build() { + PauseScheduledTaskRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/RemoveEntityAssociationsRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/RemoveEntityAssociationsRequest.java index 734ce0998eb..d4607876a57 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/RemoveEntityAssociationsRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/RemoveEntityAssociationsRequest.java @@ -27,7 +27,7 @@ public class RemoveEntityAssociationsRequest private String logAnalyticsEntityId; /** - * This parameter specifies the entity OCIDs with which associations are to be deleted. Specify destination OCIDs as comma separated string. + * This parameter specifies the entity OCIDs with which associations are to be deleted. */ private RemoveEntityAssociationsDetails removeEntityAssociationsDetails; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ResumeScheduledTaskRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ResumeScheduledTaskRequest.java new file mode 100644 index 00000000000..c23a4939025 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/ResumeScheduledTaskRequest.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.requests; + +import com.oracle.bmc.loganalytics.model.*; +/** + * Example: Click here to see how to use ResumeScheduledTaskRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ResumeScheduledTaskRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * Unique scheduledTask id returned from task create. + * If invalid will lead to a 404 not found. + * + */ + private String scheduledTaskId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ResumeScheduledTaskRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ResumeScheduledTaskRequest o) { + namespaceName(o.getNamespaceName()); + scheduledTaskId(o.getScheduledTaskId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ResumeScheduledTaskRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ResumeScheduledTaskRequest + */ + public ResumeScheduledTaskRequest build() { + ResumeScheduledTaskRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/SuppressWarningRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/SuppressWarningRequest.java new file mode 100644 index 00000000000..24e2afdb509 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/SuppressWarningRequest.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.requests; + +import com.oracle.bmc.loganalytics.model.*; +/** + * Example: Click here to see how to use SuppressWarningRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class SuppressWarningRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * list of agent warning references to suppress + */ + private WarningReferenceDetails warningReferenceDetails; + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * 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; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public WarningReferenceDetails getBody$() { + return warningReferenceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SuppressWarningRequest, WarningReferenceDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(SuppressWarningRequest o) { + namespaceName(o.getNamespaceName()); + warningReferenceDetails(o.getWarningReferenceDetails()); + compartmentId(o.getCompartmentId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SuppressWarningRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of SuppressWarningRequest + */ + public SuppressWarningRequest build() { + SuppressWarningRequest 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$(WarningReferenceDetails body) { + warningReferenceDetails(body); + return this; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UnsuppressWarningRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UnsuppressWarningRequest.java new file mode 100644 index 00000000000..60e59b9effb --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UnsuppressWarningRequest.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.requests; + +import com.oracle.bmc.loganalytics.model.*; +/** + * Example: Click here to see how to use UnsuppressWarningRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UnsuppressWarningRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * warnings list + */ + private WarningReferenceDetails warningReferenceDetails; + + /** + * The ID of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * 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; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public WarningReferenceDetails getBody$() { + return warningReferenceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UnsuppressWarningRequest, WarningReferenceDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UnsuppressWarningRequest o) { + namespaceName(o.getNamespaceName()); + warningReferenceDetails(o.getWarningReferenceDetails()); + compartmentId(o.getCompartmentId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UnsuppressWarningRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UnsuppressWarningRequest + */ + public UnsuppressWarningRequest build() { + UnsuppressWarningRequest 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$(WarningReferenceDetails body) { + warningReferenceDetails(body); + return this; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLogAnalyticsEntityRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLogAnalyticsEntityRequest.java index 47919bc5a26..76b64f90ee3 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLogAnalyticsEntityRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLogAnalyticsEntityRequest.java @@ -27,7 +27,7 @@ public class UpdateLogAnalyticsEntityRequest private String logAnalyticsEntityId; /** - * The information to be updated. + * Log analytics entity information to be updated. */ private UpdateLogAnalyticsEntityDetails updateLogAnalyticsEntityDetails; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLogAnalyticsObjectCollectionRuleRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLogAnalyticsObjectCollectionRuleRequest.java index 3e6fee432d0..8dbd83d21cf 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLogAnalyticsObjectCollectionRuleRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLogAnalyticsObjectCollectionRuleRequest.java @@ -21,7 +21,7 @@ public class UpdateLogAnalyticsObjectCollectionRuleRequest private String namespaceName; /** - * The Logging Analytics Object Collection Rule [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * The Logging Analytics Object Collection Rule [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ private String logAnalyticsObjectCollectionRuleId; diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLookupDataRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLookupDataRequest.java new file mode 100644 index 00000000000..7caa61325f9 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLookupDataRequest.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.requests; + +import com.oracle.bmc.loganalytics.model.*; +/** + * Example: Click here to see how to use UpdateLookupDataRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateLookupDataRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * The name of the lookup to operate on. + */ + private String lookupName; + + /** + * The file to use for the lookup update. + */ + private java.io.InputStream updateLookupFileBody; + + /** + * is force + */ + private Boolean isForce; + + /** + * Character Encoding + */ + private String charEncoding; + + /** + * 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; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public java.io.InputStream getBody$() { + return updateLookupFileBody; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateLookupDataRequest, java.io.InputStream> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateLookupDataRequest o) { + namespaceName(o.getNamespaceName()); + lookupName(o.getLookupName()); + updateLookupFileBody(o.getUpdateLookupFileBody()); + isForce(o.getIsForce()); + charEncoding(o.getCharEncoding()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateLookupDataRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateLookupDataRequest + */ + public UpdateLookupDataRequest build() { + UpdateLookupDataRequest 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$(java.io.InputStream body) { + updateLookupFileBody(body); + return this; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLookupRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLookupRequest.java new file mode 100644 index 00000000000..eccde89c220 --- /dev/null +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UpdateLookupRequest.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.loganalytics.requests; + +import com.oracle.bmc.loganalytics.model.*; +/** + * Example: Click here to see how to use UpdateLookupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateLookupRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Logging Analytics namespace used for the request. + * + */ + private String namespaceName; + + /** + * The name of the lookup to operate on. + */ + private String lookupName; + + /** + * The information required to update a lookup. + */ + private UpdateLookupMetadataDetails updateLookupMetadataDetails; + + /** + * 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; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public UpdateLookupMetadataDetails getBody$() { + return updateLookupMetadataDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateLookupRequest, UpdateLookupMetadataDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateLookupRequest o) { + namespaceName(o.getNamespaceName()); + lookupName(o.getLookupName()); + updateLookupMetadataDetails(o.getUpdateLookupMetadataDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateLookupRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateLookupRequest + */ + public UpdateLookupRequest build() { + UpdateLookupRequest 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$(UpdateLookupMetadataDetails body) { + updateLookupMetadataDetails(body); + return this; + } + } +} diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UploadLogFileRequest.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UploadLogFileRequest.java index 6ff6ba5201c..4d2c44eee56 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UploadLogFileRequest.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/requests/UploadLogFileRequest.java @@ -61,7 +61,9 @@ public class UploadLogFileRequest extends com.oracle.bmc.requests.BmcRequest com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 8fba228c625..4a8a5263ea9 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 62523f1fa7b..5740b10249b 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index dd56ca853ef..2c047f614f4 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 672a7317e9a..da65edb2daa 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-managementdashboard/src/main/java/com/oracle/bmc/managementdashboard/DashxApisAsyncClient.java b/bmc-managementdashboard/src/main/java/com/oracle/bmc/managementdashboard/DashxApisAsyncClient.java index 2d573dd04b1..36978f29099 100644 --- a/bmc-managementdashboard/src/main/java/com/oracle/bmc/managementdashboard/DashxApisAsyncClient.java +++ b/bmc-managementdashboard/src/main/java/com/oracle/bmc/managementdashboard/DashxApisAsyncClient.java @@ -32,7 +32,7 @@ public class DashxApisAsyncClient implements DashxApisAsync { .serviceName("DASHXAPIS") .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://managementdashboards.{region}.oci.{secondLevelDomain}") + "https://managementdashboard.{region}.oci.{secondLevelDomain}") .build(); @lombok.Getter(value = lombok.AccessLevel.PACKAGE) diff --git a/bmc-managementdashboard/src/main/java/com/oracle/bmc/managementdashboard/DashxApisClient.java b/bmc-managementdashboard/src/main/java/com/oracle/bmc/managementdashboard/DashxApisClient.java index d1920a60071..aba98a2fa1b 100644 --- a/bmc-managementdashboard/src/main/java/com/oracle/bmc/managementdashboard/DashxApisClient.java +++ b/bmc-managementdashboard/src/main/java/com/oracle/bmc/managementdashboard/DashxApisClient.java @@ -19,7 +19,7 @@ public class DashxApisClient implements DashxApis { .serviceName("DASHXAPIS") .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://managementdashboards.{region}.oci.{secondLevelDomain}") + "https://managementdashboard.{region}.oci.{secondLevelDomain}") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index fec1461f8bd..7f7c6e9241b 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 9a266361c5d..37e5b1fe5d0 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 143912e73d6..b879c50f3bf 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 2c3ef002c97..208ffd05993 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 83b8fcb68d6..1095863e914 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 - 1.29.0 + 1.30.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 1.29.0 + 1.30.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 1.29.0 + 1.30.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index f2698ecb9da..f21ac53de82 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 - 1.29.0 + 1.30.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 1.29.0 + 1.30.0 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index b92e24dd81b..547d98c1e7c 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 - 1.29.0 + 1.30.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 852609ac078..8295c79c51f 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 3fca9581ba7..4d8b42280d9 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index c305f2f36c2..f5e261649ee 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 6ea7119ded4..95f5ca91e81 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 2f2f1587afb..3c825a656e0 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index c5bafcc6102..3348e16bf80 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 40033942cd7..f9655c1d1a4 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index 2fbc8fd4f02..b1d3ddc2260 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 0116175b6ac..3ddba3b55be 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index db6b85922b8..7783819b4f8 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-resourcesearch @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 170bfec6345..adf768d2ffe 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 51c6bcfc1a0..b29e0a269a8 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/FunctionsTargetDetails.java b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/FunctionsTargetDetails.java index bca6fda7766..b9713526d80 100644 --- a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/FunctionsTargetDetails.java +++ b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/FunctionsTargetDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.sch.model; /** - * The function target. + * The function used for the Functions target. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/LoggingAnalyticsTargetDetails.java b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/LoggingAnalyticsTargetDetails.java new file mode 100644 index 00000000000..9e603afee34 --- /dev/null +++ b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/LoggingAnalyticsTargetDetails.java @@ -0,0 +1,86 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.sch.model; + +/** + * The log group used for the Logging Analytics target. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200909") +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LoggingAnalyticsTargetDetails.Builder.class +) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class LoggingAnalyticsTargetDetails extends TargetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LoggingAnalyticsTargetDetails build() { + LoggingAnalyticsTargetDetails __instance__ = + new LoggingAnalyticsTargetDetails(logGroupId); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LoggingAnalyticsTargetDetails o) { + Builder copiedBuilder = logGroupId(o.getLogGroupId()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public LoggingAnalyticsTargetDetails(String logGroupId) { + super(); + this.logGroupId = logGroupId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Logging Analytics log group. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + String logGroupId; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/MonitoringTargetDetails.java b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/MonitoringTargetDetails.java index 36ed6bc7fdf..62afe58eecd 100644 --- a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/MonitoringTargetDetails.java +++ b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/MonitoringTargetDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.sch.model; /** - * The monitoring target. + * The metric and metric namespace used for the Monitoring target. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/NotificationsTargetDetails.java b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/NotificationsTargetDetails.java index 3600ca486b2..07b6390ab7d 100644 --- a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/NotificationsTargetDetails.java +++ b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/NotificationsTargetDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.sch.model; /** - * The notifications target. + * The topic used for the Notifications target. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/ObjectStorageTargetDetails.java b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/ObjectStorageTargetDetails.java index 3c9746f38be..61df1423848 100644 --- a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/ObjectStorageTargetDetails.java +++ b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/ObjectStorageTargetDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.sch.model; /** - * The object storage target. + * The bucket used for the Object Storage target. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -60,12 +60,35 @@ public Builder objectNamePrefix(String objectNamePrefix) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("batchRolloverSizeInMBs") + private Integer batchRolloverSizeInMBs; + + public Builder batchRolloverSizeInMBs(Integer batchRolloverSizeInMBs) { + this.batchRolloverSizeInMBs = batchRolloverSizeInMBs; + this.__explicitlySet__.add("batchRolloverSizeInMBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("batchRolloverTimeInMs") + private Integer batchRolloverTimeInMs; + + public Builder batchRolloverTimeInMs(Integer batchRolloverTimeInMs) { + this.batchRolloverTimeInMs = batchRolloverTimeInMs; + this.__explicitlySet__.add("batchRolloverTimeInMs"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ObjectStorageTargetDetails build() { ObjectStorageTargetDetails __instance__ = - new ObjectStorageTargetDetails(namespace, bucketName, objectNamePrefix); + new ObjectStorageTargetDetails( + namespace, + bucketName, + objectNamePrefix, + batchRolloverSizeInMBs, + batchRolloverTimeInMs); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @@ -75,7 +98,9 @@ public Builder copy(ObjectStorageTargetDetails o) { Builder copiedBuilder = namespace(o.getNamespace()) .bucketName(o.getBucketName()) - .objectNamePrefix(o.getObjectNamePrefix()); + .objectNamePrefix(o.getObjectNamePrefix()) + .batchRolloverSizeInMBs(o.getBatchRolloverSizeInMBs()) + .batchRolloverTimeInMs(o.getBatchRolloverTimeInMs()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -91,11 +116,17 @@ public static Builder builder() { @Deprecated public ObjectStorageTargetDetails( - String namespace, String bucketName, String objectNamePrefix) { + String namespace, + String bucketName, + String objectNamePrefix, + Integer batchRolloverSizeInMBs, + Integer batchRolloverTimeInMs) { super(); this.namespace = namespace; this.bucketName = bucketName; this.objectNamePrefix = objectNamePrefix; + this.batchRolloverSizeInMBs = batchRolloverSizeInMBs; + this.batchRolloverTimeInMs = batchRolloverTimeInMs; } /** @@ -119,6 +150,20 @@ public ObjectStorageTargetDetails( @com.fasterxml.jackson.annotation.JsonProperty("objectNamePrefix") String objectNamePrefix; + /** + * The batch rollover size in megabytes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("batchRolloverSizeInMBs") + Integer batchRolloverSizeInMBs; + + /** + * The batch rollover time in milliseconds. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("batchRolloverTimeInMs") + Integer batchRolloverTimeInMs; + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); } diff --git a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/StreamingTargetDetails.java b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/StreamingTargetDetails.java index dd3821542be..7ed2eb933ed 100644 --- a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/StreamingTargetDetails.java +++ b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/StreamingTargetDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.sch.model; /** - * The streaming target. + * The stream used for the Streaming target. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/TargetDetails.java b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/TargetDetails.java index c502681b2ac..a6cec257eaa 100644 --- a/bmc-sch/src/main/java/com/oracle/bmc/sch/model/TargetDetails.java +++ b/bmc-sch/src/main/java/com/oracle/bmc/sch/model/TargetDetails.java @@ -48,6 +48,10 @@ value = FunctionsTargetDetails.class, name = "functions" ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = LoggingAnalyticsTargetDetails.class, + name = "loggingAnalytics" + ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = StreamingTargetDetails.class, name = "streaming" @@ -62,11 +66,12 @@ public class TargetDetails { **/ @lombok.extern.slf4j.Slf4j public enum Kind { - Streaming("streaming"), - ObjectStorage("objectStorage"), - Monitoring("monitoring"), Functions("functions"), + LoggingAnalytics("loggingAnalytics"), + Monitoring("monitoring"), Notifications("notifications"), + ObjectStorage("objectStorage"), + Streaming("streaming"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 3243a0d0f5c..fdfea8defe2 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.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 fec695a8eb3..eed49da4954 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 - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index b95049d75dc..270f4c3817e 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 49b34631244..624bdb9af41 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 2df24ad345c..4db107251f7 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 74b942d4997..1738e4c4915 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index e8a9262fb08..66b4ff55e55 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-vault @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index a8e19943823..b243b4f5911 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-waas @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index d66af878fcd..d5d31d3cb28 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.29.0 + 1.30.0 diff --git a/pom.xml b/pom.xml index 381f2435e6e..bc1dda69e56 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 1.29.0 + 1.30.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure